/* ==========================================================================
   Mahitaji design system
   One hand-written stylesheet: tokens, reset, layout, components, pages.
   No framework dependencies. Icons come from Font Awesome 6.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-body);

  /* Brand blues (swatch: 0A1931 · 1A3D63 · 4A7FA7 · B3CFE5 · F6FAFD) */
  --brand-950: #0a1931;
  --brand-900: #112b4a;
  --brand-800: #1a3d63;
  --brand-700: #2b5580;
  --brand-600: #3a6b96;
  --brand-500: #4a7fa7;
  --brand-400: #7ea6c8;
  --brand-200: #b3cfe5;
  --brand-100: #d6e5f2;
  --brand-50: #f6fafd;

  --amber-600: #b98a33;
  --amber-500: #e0ad4f;
  --amber-100: #fbf1dc;

  --ink: #0a1931;
  --text: #17304d;
  --text-2: #3b5876;
  --muted: #5f7a98;
  --line: #dce7f1;
  --line-2: #b3cfe5;
  --bg: #f6fafd;
  --bg-2: #e8f1f8;
  --surface: #ffffff;

  --danger: #b4453d;
  --danger-100: #f6e6e4;
  --info: #4a7fa7;
  --info-100: #d6e5f2;
  --warning: #8a6a2c;
  --warning-100: #f3eddf;
  --success: #33705a;
  --success-700: #2a5b49;
  --success-200: #c8dfd3;
  --success-100: #e4f0ea;
  --success-400: #7fb69b;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 25, 49, .06);
  --shadow: 0 4px 14px rgba(10, 25, 49, .08);
  --shadow-lg: 0 16px 36px -14px rgba(10, 25, 49, .22);

  --header-h: 72px;
  --container: 1280px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 2.25rem; font-weight: 800; }
h2 { font-size: 1.75rem; font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
dl { margin: 0; }
ul.list, ol.list { padding-left: 1.25em; margin-bottom: 1em; }
ul:not(.list):not(.prose ul), ol:not(.list):not(.prose ol) { list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
small { font-size: .85em; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid rgba(11, 111, 179, .45); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-200); }

@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.1rem; }
}

/* --------------------------------------------------------------------------
   3. Layout utilities
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 880px; }
.section { padding: 48px 0; }
.section-lg { padding: 72px 0; }
.section-sm { padding: 28px 0; }
@media (min-width: 992px) {
  .section { padding: 64px 0; }
  .section-lg { padding: 96px 0; }
}
.bg-surface { background: var(--surface); }
.bg-soft { background: var(--bg-2); }
.bg-green { background: var(--brand-900); color: #d5dbe3; }
.bg-green h1, .bg-green h2, .bg-green h3 { color: #fff; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 639.98px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.wrap { flex-wrap: wrap; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 24px; } .gap-6 { gap: 32px; }
.grow { flex: 1 1 auto; min-width: 0; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 24px; } .mt-6 { margin-top: 32px; } .mt-8 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 24px; } .mb-6 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .78rem; }
.text-lg { font-size: 1.1rem; }
.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; } .fw-800 { font-weight: 800; }
.upper { text-transform: uppercase; letter-spacing: .08em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.w-full { width: 100%; }
.relative { position: relative; }
.desktop-only { display: none !important; }
@media (min-width: 992px) {
  .desktop-only { display: revert !important; }
  .mobile-only { display: none !important; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 10px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.bg-green .eyebrow, .hero .eyebrow { color: var(--amber-500); }
.lead { font-size: 1.1rem; color: var(--text-2); }
.prose { max-width: 72ch; }
.prose p, .prose li { color: var(--text-2); }
.prose h2 { font-size: 1.45rem; margin-top: 2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.prose ul { list-style: disc; padding-left: 1.25em; margin-bottom: 1em; }
.prose ol { list-style: decimal; padding-left: 1.25em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: background .18s var(--ease), color .18s, border-color .18s, transform .12s, box-shadow .18s;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand-800); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--brand-900); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; color: #fff; }
.btn-amber { background: var(--amber-500); color: var(--brand-950); }
.btn-amber:hover { background: var(--amber-600); color: var(--brand-950); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--brand-600); color: var(--brand-700); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); }
.btn-soft { background: var(--brand-100); color: var(--brand-700); }
.btn-soft:hover { background: var(--brand-200); color: var(--brand-800); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-danger-soft { background: var(--danger-100); color: var(--danger); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .85rem; border-radius: var(--radius-sm); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.02rem; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn-icon.btn-sm { width: 36px; }
.btn-pill { border-radius: var(--radius-pill); }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; }
.link { color: var(--brand-600); font-weight: 600; }
.link:hover { text-decoration: underline; }
.link-muted { color: var(--muted); }
.link-muted:hover { color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand-700); }
.link-arrow i { font-size: .85em; transition: transform .2s var(--ease); }
.link-arrow:hover i, a:hover .link-arrow i { transform: translateX(4px); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; color: var(--text-2);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }

.spinner {
  display: inline-block; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(0,0,0,.12); border-top-color: currentColor;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   5. Forms
   -------------------------------------------------------------------------- */
.field { margin-bottom: 16px; }
.label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.label .req { color: var(--danger); }
.input, .select, .textarea {
  display: block; width: 100%; min-height: 46px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(58, 93, 128, .16); }
.input::placeholder, .textarea::placeholder { color: #94a3b8; }
.input[readonly] { background: var(--bg-2); color: var(--muted); }
.select {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field-error { display: block; color: var(--danger); font-size: .8rem; margin-top: 5px; }
.field-help { display: block; color: var(--muted); font-size: .8rem; margin-top: 5px; }
.input-group { position: relative; }
.input-group .input { padding-right: 60px; }
.input-group .input-addon { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: .8rem; font-weight: 700; color: var(--brand-600); padding: 6px 10px; border-radius: 6px; }
.input-group .input-addon:hover { background: var(--brand-50); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .9rem; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-600); flex: none; }
.form-row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-alert:not(.is-visible) { display: none !important; }
.form-alert.is-visible { display: block; }
/* Two-column form: fields pair up from 640px, .field-wide spans the row. */
.form-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; }
.form-grid > .field { margin-bottom: 0; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid > .field-wide { grid-column: 1 / -1; } }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden;
}
.qty button { width: 38px; height: 40px; display: grid; place-items: center; color: var(--text-2); transition: background .15s; }
.qty button:hover { background: var(--bg-2); color: var(--ink); }
.qty input { width: 48px; height: 40px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; background: var(--brand-50); }
.qty-sm button { width: 32px; height: 34px; }
.qty-sm input { width: 40px; height: 34px; }

/* --------------------------------------------------------------------------
   6. Surfaces, badges, alerts, tables, tabs
   -------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-body { padding: 20px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.card-header h3, .card-header h4 { margin: 0; }
@media (min-width: 768px) { .card-body { padding: 24px; } }
.card-hover { transition: transform .2s var(--ease), box-shadow .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-title { font-size: 1.1rem; margin: 0; }
.card-body > .card-title { margin-bottom: 12px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack { display: grid; gap: 20px; }
.stack > * { min-width: 0; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 9px 20px; font-size: .92rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; min-width: 0; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: .74rem; font-weight: 700; letter-spacing: .02em; line-height: 1.4; white-space: nowrap; }
.badge-success { background: var(--success-100); color: var(--success-700); }
.badge-warning { background: var(--warning-100); color: var(--warning); }
.badge-info { background: var(--info-100); color: var(--info); }
.badge-danger { background: var(--danger-100); color: var(--danger); }
.badge-muted { background: var(--bg-2); color: var(--muted); }
.badge-amber { background: var(--amber-500); color: var(--brand-950); }
.badge-dark { background: var(--ink); color: #fff; }
.badge-green { background: var(--brand-600); color: #fff; }
.badge-sale { background: #a4433b; color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--bg-2); color: var(--text-2); font-size: .82rem; font-weight: 600; border: 1px solid transparent; transition: background .15s, color .15s; }
.chip:hover { background: var(--brand-100); color: var(--brand-700); }
.chip.is-active { background: var(--brand-600); color: #fff; }
.chip .chip-x { opacity: .7; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: var(--radius-pill); font-size: .72rem; font-weight: 700; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.pill-glass { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: var(--brand-100); }
.pill-amber { background: var(--amber-100); color: var(--warning); }
.pill-soft { background: var(--brand-100); color: var(--brand-700); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-500); animation: glow 1.2s ease-in-out infinite alternate; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius); border: 1px solid transparent; font-size: .92rem; margin-bottom: 16px; }
.alert i { margin-top: 3px; }
.alert-success { background: var(--success-100); border-color: var(--success-200); color: var(--success-700); }
.alert-info { background: var(--info-100); border-color: #bfdbfe; color: #1e3a8a; }
.alert-warning { background: var(--warning-100); border-color: #fde68a; color: #78350f; }
.alert-danger { background: var(--danger-100); border-color: #fecaca; color: #7f1d1d; }
.alert-muted { background: var(--bg-2); border-color: var(--line); color: var(--text-2); }

.table { font-size: .92rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; background: var(--bg); }
.table tbody tr:hover { background: var(--brand-50); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.table-wrap .table th:first-child, .table-wrap .table td:first-child { padding-left: 20px; }
.table .nowrap { white-space: nowrap; }
/* Phones: tighter cells; .hide-sm columns drop out and .show-sm details appear under the main cell. */
.show-sm { display: none; }
@media (max-width: 640px) {
  .table th, .table td { padding: 10px 8px; }
  .table th:first-child, .table td:first-child, .table-wrap .table th:first-child, .table-wrap .table td:first-child { padding-left: 14px; }
  .table th:last-child, .table td:last-child { padding-right: 14px; }
  .hide-sm { display: none !important; }
  .show-sm { display: block; }
}
.table tfoot td { border-top: 1px solid var(--line); border-bottom: 0; background: var(--bg); }
.card > .table-wrap { border: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { padding: 12px 16px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--brand-700); border-color: var(--brand-600); }
.tab-panel { display: none; padding-top: 20px; }
.tab-panel.is-active { display: block; }

details.accordion { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; }
details.accordion summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.accordion summary::-webkit-details-marker { display: none; }
details.accordion summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .75rem; color: var(--muted); transition: transform .2s; }
details.accordion[open] summary::after { transform: rotate(180deg); }
details.accordion[open] summary { color: var(--brand-700); }
details.accordion .accordion-body { padding: 0 20px 18px; color: var(--text-2); }

.stat { padding: 18px 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.stat-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stat-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.stat-note { font-size: .78rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 640px) { .stat { padding: 14px; } .stat-value { font-size: 1.25rem; } }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); font-size: 1.1rem; margin-bottom: 12px; }
.stat-icon.amber { background: var(--amber-100); color: var(--amber-600); }
.stat-icon.blue { background: var(--info-100); color: var(--info); }

.dash-pair { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .dash-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.addr-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 640px) { .addr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 20px; color: var(--text); font-weight: 600; font-size: .9rem; }
.link-list a:hover { background: var(--brand-50); color: var(--brand-800); }
.link-list small { flex: none; font-weight: 500; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-600); color: #fff; font-weight: 700; font-size: .9rem; flex: none; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.2rem; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-icon { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--bg-2); color: var(--muted); font-size: 1.7rem; }
.empty h3 { color: var(--ink); margin-bottom: 6px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-700); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--line-2); }
.breadcrumb .current { color: var(--text); font-weight: 600; }


/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.topbar { background: var(--brand-950); color: var(--brand-200); font-size: .8rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 16px; }
.topbar a { color: var(--brand-100); }
.topbar a:hover { color: #fff; }
.topbar ul { display: flex; gap: 18px; align-items: center; }
.topbar i { color: var(--brand-400); margin-right: 5px; }

.header { position: sticky; top: 0; z-index: 60; background: var(--surface); border-bottom: 1px solid var(--line); }
.header.is-stuck { box-shadow: var(--shadow); }
.header-main { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; flex: none; }
.brand img { height: 40px; width: auto; }
.brand span { color: var(--brand-700); }
.brand small { display: block; font: 600 .62rem/1 var(--font-body); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }

.search { position: relative; flex: 1 1 auto; max-width: 720px; }
.search-form { display: flex; border: 2px solid var(--brand-600); border-radius: var(--radius-pill); background: var(--surface); overflow: hidden; height: 46px; }
.search-form:focus-within { box-shadow: 0 0 0 3px rgba(58, 93, 128, .16); }
.search-form .select-wrap { display: none; border-right: 1px solid var(--line); }
.search-form select { border: 0; background: transparent; padding: 0 30px 0 16px; font-size: .85rem; font-weight: 600; color: var(--text-2); max-width: 180px; appearance: none; cursor: pointer; }
.search-form input { flex: 1; border: 0; padding: 0 16px; min-width: 0; font-size: .95rem; background: transparent; color: var(--ink); caret-color: var(--brand-800); }
.search-form input:focus { outline: none; }
.search-form button { width: 56px; background: var(--brand-600); color: #fff; font-size: 1rem; transition: background .15s; }
.search-form button:hover { background: var(--brand-700); }
@media (min-width: 1100px) {
  .search-form .select-wrap { display: flex; align-items: center; position: relative; }
  .search-form .select-wrap::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .65rem; position: absolute; right: 12px; color: var(--muted); pointer-events: none; }
}
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 8px; display: none; max-height: 70vh; overflow: auto;
}
.search-suggest.is-open { display: block; }
.search-suggest .sg-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 8px 10px 4px; font-weight: 700; }
.search-suggest a.sg-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text); }
.search-suggest a.sg-item:hover, .search-suggest a.sg-item.is-active { background: var(--brand-50); }
.search-suggest .sg-thumb { width: 40px; height: 40px; border-radius: 8px; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; flex: none; font-size: .75rem; font-weight: 700; }
.search-suggest .sg-thumb img { width: 100%; height: 100%; object-fit: contain; }
.search-suggest .sg-name { font-weight: 600; font-size: .9rem; }
.search-suggest .sg-meta { font-size: .78rem; color: var(--muted); }
.search-suggest .sg-price { margin-left: auto; font-weight: 700; color: var(--brand-700); white-space: nowrap; }
.search-suggest .sg-empty { padding: 14px; color: var(--muted); font-size: .9rem; text-align: center; }

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.h-action { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 52px; height: 52px; border-radius: var(--radius); color: var(--text-2); font-size: .68rem; font-weight: 600; transition: background .15s, color .15s; }
.h-action i { font-size: 1.15rem; color: var(--ink); }
.h-action:hover { background: var(--bg-2); color: var(--brand-700); }
.h-action .count { position: absolute; top: 4px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber-500); color: var(--brand-950); font-size: .68rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.h-action .count.is-zero { display: none; }
.h-cart { flex-direction: row; gap: 12px; padding: 0 20px 0 14px; margin-left: 6px; background: var(--brand-800); color: #fff; min-width: 0; height: 48px; border-radius: var(--radius-pill); box-shadow: 0 6px 16px -8px rgba(10, 25, 49, .5); }
.h-cart:hover { background: var(--brand-950); color: #fff; }
.h-cart .h-cart-icon { position: relative; display: grid; place-items: center; width: 30px; height: 30px; }
.h-cart i { color: #fff; font-size: 1.2rem; }
.h-cart .count { position: absolute; top: -7px; right: -9px; left: auto; background: var(--amber-500); color: var(--brand-950); box-shadow: 0 0 0 2px var(--brand-800); }
.h-cart:hover .count { box-shadow: 0 0 0 2px var(--brand-950); }
.h-cart .h-cart-text { display: none; flex-direction: column; justify-content: center; gap: 1px; line-height: 1.15; text-align: left; white-space: nowrap; }
.h-cart .h-cart-text small { font-size: .68rem; font-weight: 500; color: var(--brand-200); letter-spacing: .02em; }
.h-cart .h-cart-text strong { font-size: .92rem; font-weight: 700; }
@media (min-width: 768px) { .h-cart .h-cart-text { display: flex; } }
.h-label { display: none; }
@media (min-width: 992px) { .h-label { display: block; } }

.navbar { border-top: 1px solid var(--line); background: var(--surface); }
.navbar .container { display: flex; align-items: center; gap: 4px; height: 50px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; height: 50px; font-weight: 600; color: var(--text); font-size: .92rem; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav-link:hover, .nav-link.is-active { color: var(--brand-800); border-color: var(--brand-500); }
.nav-link .badge { margin-left: 2px; }
.nav-link.accent { color: #a4433b; }
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-cats { position: relative; margin-right: 8px; }
.nav-cats-btn { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px; border-radius: var(--radius-sm); background: var(--brand-900); color: #fff; font-weight: 700; font-size: .9rem; }
.nav-cats-btn:hover { background: var(--brand-800); }
.mega {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 65; width: 720px; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 18px; display: none; grid-template-columns: 1fr 1fr 1fr; gap: 6px 18px;
}
.mega.is-open { display: grid; }
.mega a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--text); font-size: .9rem; font-weight: 500; }
.mega a:hover { background: var(--brand-50); color: var(--brand-700); }
.mega a small { color: var(--muted); font-size: .75rem; }
.mega .mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.mega .mega-foot a { padding: 0; font-weight: 700; color: var(--brand-700); }

.nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); font-size: 1.2rem; color: var(--ink); }
.nav-toggle:hover { background: var(--bg-2); }
.search-toggle { display: inline-grid; }
@media (min-width: 992px) {
  .nav-toggle, .search-toggle { display: none; }
}
@media (max-width: 991.98px) {
  .header-main .search { display: none; }
  .header-main .search.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; padding: 10px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--line); max-width: none; box-shadow: var(--shadow); }
  .navbar { display: none; }
}

/* Off-canvas panels (mobile nav + cart drawer) */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(6, 31, 56, .55); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.overlay.is-open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; bottom: 0; width: min(420px, 92vw); z-index: 95; background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease); }
.drawer-right { right: 0; transform: translateX(105%); }
.drawer-left { left: 0; transform: translateX(-105%); }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 1.1rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); background: var(--bg); }

.mnav a { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line); }
.mnav a i { color: var(--muted); font-size: .8rem; }
.mnav .mnav-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 18px 8px 6px; }
.mnav a.sub { padding-left: 20px; font-weight: 500; font-size: .92rem; }

/* Cart drawer items */
.cd-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cd-thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.cd-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cd-name { font-weight: 600; font-size: .9rem; color: var(--ink); line-height: 1.3; }
.cd-meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.cd-price { font-weight: 700; font-size: .9rem; }
.cd-remove { color: var(--muted); font-size: .85rem; }
.cd-remove:hover { color: var(--danger); }
.cd-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cd-total strong { font-size: 1.25rem; }
.cd-empty { text-align: center; padding: 40px 10px; color: var(--muted); }

/* --------------------------------------------------------------------------
   8. Product card & grids
   -------------------------------------------------------------------------- */
.product-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .product-grid { gap: 18px; grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .product-grid.cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); } }
.product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.product-grid.is-loading { opacity: .45; pointer-events: none; }

.pc {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.pc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.pc-media { position: relative; aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.pc-media > a { display: block; width: 100%; height: 100%; }
.pc-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .35s var(--ease); }
.pc:hover .pc-media img { transform: scale(1.05); }
/* Drawn pack for products without a photo: bottle, can, jar, tub, bar, sack, sachet, roll or box
   in the product-line colour (--pc), with the name, unit and maker on a white label. */
.pack {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 12% 0 7%;
  background: radial-gradient(ellipse at 50% 96%, #dfe3e1 0 24%, transparent 25%), linear-gradient(#fbfcfb, #eef1ef);
  container-type: size;
}
.pack-body {
  --dark: color-mix(in srgb, var(--pc) 70%, black);
  --light: color-mix(in srgb, var(--pc) 78%, white);
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--pc);
  box-shadow: inset -12px 0 16px rgba(0,0,0,.22), inset 10px 0 12px rgba(255,255,255,.22), 0 4px 8px rgba(0,0,0,.12);
}
.pack-body::before, .pack-body::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); }
.pack-label {
  width: 84%; max-height: 74%; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 5px 4px; border-radius: 3px;
  background: #fff; text-align: center; line-height: 1.1;
  box-shadow: 0 0 0 2px var(--dark);
}
.pack-name {
  font-family: var(--font-display); font-size: clamp(.5rem, 5.2cqw, .78rem); font-weight: 800; color: var(--dark); text-transform: uppercase;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word;
}
.pack-size { margin-top: 2px; padding: 0 6px; border-radius: 999px; background: var(--pc); color: #fff; font-size: clamp(.46rem, 4.2cqw, .64rem); font-weight: 700; white-space: nowrap; }
.pack-maker {
  margin-top: 2px; font-size: clamp(.44rem, 4cqw, .6rem); font-weight: 600; color: #555; max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pack-tag { position: absolute; right: 8px; bottom: 5px; font-size: .56rem; color: #8a918d; letter-spacing: .02em; }
.pack-mono { font-family: var(--font-display); font-weight: 800; font-size: clamp(.5rem, 22cqw, .9rem); color: var(--dark); letter-spacing: -.02em; }

/* Narrow shapes get a smaller label type so long words fit. */
.pack--bottle .pack-name, .pack--can .pack-name { font-size: clamp(.46rem, 4.3cqw, .66rem); }
.pd-media .pack--bottle .pack-name, .pd-media .pack--can .pack-name { font-size: clamp(.66rem, 3.6cqw, 1rem); }
/* Bottle: body, neck and cap. */
.pack--bottle .pack-body { width: 40%; height: 80%; border-radius: 16px 16px 8px 8px; }
.pack--bottle .pack-body::before { top: -14%; width: 42%; height: 15%; background: var(--pc); border-radius: 6px 6px 0 0; }
.pack--bottle .pack-body::after { top: -22%; width: 48%; height: 9%; background: var(--dark); border-radius: 3px; }
/* Can: metal rims top and bottom. */
.pack--can .pack-body { width: 42%; height: 76%; border-radius: 8px / 5px; }
.pack--can .pack-body::before, .pack--can .pack-body::after { width: 104%; height: 6%; background: linear-gradient(90deg, #9aa3a0, #e4e8e6, #9aa3a0); border-radius: 4px; }
.pack--can .pack-body::before { top: -3%; }
.pack--can .pack-body::after { bottom: -3%; }
/* Jar: wide body with a lid. */
.pack--jar .pack-body { width: 50%; height: 68%; border-radius: 10px 10px 12px 12px; }
.pack--jar .pack-body::before { top: -14%; width: 96%; height: 14%; background: var(--dark); border-radius: 5px 5px 2px 2px; }
/* Tub: squat, tapered, with a wide lid. */
.pack--tub .pack-body { width: 62%; height: 58%; border-radius: 4px 4px 14px 14px; clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%); box-shadow: inset -12px 0 16px rgba(0,0,0,.22), inset 10px 0 12px rgba(255,255,255,.22); }
.pack--tub .pack-body::before { top: 0; width: 100%; height: 12%; background: var(--dark); }
.pack--tub .pack-label { width: 70%; margin-top: 8%; }
/* Bar: a soap block, wide and short. */
.pack--bar .pack-body { width: 68%; height: 46%; border-radius: 10px; box-shadow: inset 0 -10px 14px rgba(0,0,0,.18), inset 0 8px 10px rgba(255,255,255,.28), 0 6px 8px rgba(0,0,0,.14); }
.pack--bar .pack-label { width: 78%; max-height: 82%; }
/* Sack: crimped top seam. */
.pack--sack .pack-body { width: 56%; height: 86%; border-radius: 4px 4px 16px 16px; }
.pack--sack .pack-body::before { top: 0; width: 100%; height: 9%; background: repeating-linear-gradient(90deg, var(--dark) 0 4px, transparent 4px 8px); }
/* Sachet: crimped seams top and bottom, tear notch. */
.pack--sachet .pack-body { width: 52%; height: 72%; border-radius: 3px; }
.pack--sachet .pack-body::before { top: 0; width: 100%; height: 8%; background: repeating-linear-gradient(90deg, var(--dark) 0 3px, transparent 3px 6px); }
.pack--sachet .pack-body::after { bottom: 0; width: 100%; height: 8%; background: repeating-linear-gradient(90deg, var(--dark) 0 3px, transparent 3px 6px); }
/* Roll: tissue roll seen end-on, colour band around a white core. */
.pack--roll .pack-body { width: 66%; height: 66%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff 0 16%, #e8ebe9 17% 20%, #fff 21% 34%, var(--pc) 35% 100%); box-shadow: inset -8px 0 12px rgba(0,0,0,.18), 0 4px 8px rgba(0,0,0,.12); }
.pack--roll .pack-label { width: 56%; }
/* Box: carton with a top face. */
.pack--box .pack-body { width: 58%; height: 86%; border-radius: 2px; }
.pack--box .pack-body::before { top: -7%; width: 100%; height: 7%; background: var(--light); border-radius: 2px 2px 0 0; }

/* Compact packs inside small thumbnails: initials only, no shadowed ground. */
.pack--compact { padding: 14% 0 8%; }
.pack--compact .pack-label { width: 78%; padding: 2px 1px; box-shadow: 0 0 0 1px var(--dark); border-radius: 2px; }
.pack--compact .pack-body { box-shadow: inset -4px 0 6px rgba(0,0,0,.2), inset 3px 0 4px rgba(255,255,255,.2); }
.pack--compact.pack--bottle .pack-body::after { top: -20%; }
.cd-thumb .pack, .cart-thumb .pack { width: 100%; height: 100%; }
.pd-media .pack { padding: 9% 0 6%; }
.pd-media .pack-name { font-size: clamp(.7rem, 4.4cqw, 1.15rem); -webkit-line-clamp: 5; }
.pd-media .pack-size { font-size: clamp(.6rem, 3cqw, .85rem); padding: 2px 10px; }
.pd-media .pack-maker { font-size: clamp(.58rem, 2.8cqw, .8rem); }
.pd-media .pack-label { padding: 10px 8px; gap: 3px; box-shadow: 0 0 0 3px var(--dark); border-radius: 5px; }
.pd-media .pack-tag { font-size: .7rem; right: 12px; bottom: 10px; }
.pc:hover .pack .pack-body { transform: translateY(-2px); transition: transform .35s var(--ease); }
.pc-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.pc-wish { position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.95); border: 1px solid var(--line); color: var(--muted); display: grid; place-items: center; transition: color .15s, transform .15s, background .15s; }
.pc-wish:hover { color: #b4453d; transform: scale(1.08); }
.pc-wish.is-active { color: #e11d48; background: #fff1f2; border-color: #fecdd3; }
.pc-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.pc-brand { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-600); }
.pc-name { font-size: .92rem; font-weight: 600; line-height: 1.35; color: var(--ink); min-height: 2.6em; }
.pc-name a { color: inherit; }
.pc-name a:hover { color: var(--brand-700); }
.pc-code { font-size: .72rem; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.pc-price { margin-top: auto; padding-top: 6px; }
.pc-price .tier { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.pc-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.pc-price .now { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
.pc-price .per { font-size: .78rem; color: var(--muted); }
.pc-was { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: .76rem; }
.pc-was .was { color: var(--muted); text-decoration: line-through; white-space: nowrap; }
.pc-was .save { color: var(--success); font-weight: 700; white-space: nowrap; }
.stars { color: var(--amber-500); font-size: .72rem; letter-spacing: 1px; }
.pc-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pc-actions .btn { flex: 1; }
.pc-actions .qty { display: none; flex: 1; justify-content: space-between; }
.pc.in-cart .pc-actions .qty { display: inline-flex; }
.pc.in-cart .pc-actions .btn-add { display: none; }
.pc-actions .qty input { flex: 1; width: auto; }
.pc-list .pc { flex-direction: row; }
.pc-out { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.7); font-weight: 700; color: var(--muted); z-index: 1; }

/* Category & brand tiles */
.tile { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--text); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-200); color: var(--brand-800); }
.tile-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; font-size: 1.25rem; font-weight: 800; font-family: var(--font-display);
  background: var(--brand-100); color: var(--brand-700); overflow: hidden; }
.tile-icon img { width: 100%; height: 100%; object-fit: cover; }
.tile > span:not(.tile-icon) { display: block; min-width: 0; }
.tile-title { display: block; font-weight: 700; font-size: .95rem; line-height: 1.25; }
.tile-sub { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.tile-arrow { margin-left: auto; color: var(--line-2); transition: color .15s, transform .15s; }
.tile:hover .tile-arrow { color: var(--brand-600); transform: translateX(3px); }
.tile-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .tile-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-head .link { white-space: nowrap; }
.section-title { font-size: 1.3rem; margin: 0; }
.section-head.is-center { justify-content: center; text-align: center; }
.section-head.is-center .pill { margin-bottom: 14px; }
.section-head.is-center .eyebrow::after { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head.is-center p { max-width: 56ch; margin-inline: auto; font-size: 1.05rem; }

/* Rails: swipeable rows that bleed to the screen edges. Anything marked
   [data-autoscroll] also drifts on its own (script in home.html). */
.rail { display: flex; gap: 18px; overflow-x: auto; padding: 6px var(--gutter) 22px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: none; }
.rail > :first-child { margin-left: auto; }
.rail > :last-child { margin-right: auto; }
.rail-products > .pc { width: 230px; }
@media (min-width: 768px) { .rail-products > .pc { width: 270px; } }

/* --------------------------------------------------------------------------
   9. Page hero, catalog layout, filters, pagination
   -------------------------------------------------------------------------- */
/* Page head: breadcrumb, title and lead on the page background. */
.page-head { padding: 20px 0 4px; }
.page-head .breadcrumb { margin-bottom: 12px; }
.page-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }
.page-lead { margin: 6px 0 0; max-width: 68ch; color: var(--text-2); }
.page-head + .section, .page-head + .section-sm, .page-head + .section-lg { padding-top: 22px; }
/* Brand panel for pages that want a stronger opening (offers, about). */
.page-hero { position: relative; overflow: hidden; padding: 28px 24px; border-radius: var(--radius-xl); background: linear-gradient(120deg, var(--brand-950), var(--brand-800)); color: #fff; }
.page-hero::after { content: ''; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.07), transparent 65%); pointer-events: none; }
.page-hero .eyebrow { color: var(--amber-500); margin-bottom: 4px; }
.page-hero .page-title { color: #fff; }
.page-hero .page-lead { color: rgba(255,255,255,.78); }
.page-hero .page-lead strong { color: #fff; }
@media (min-width: 768px) { .page-hero { padding: 34px 32px; } }

.catalog { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); padding: 18px 0 56px; }
@media (min-width: 992px) { .catalog { grid-template-columns: 260px minmax(0, 1fr); } }
.filters { display: none; }
@media (min-width: 992px) { .filters { display: block; position: sticky; top: calc(var(--header-h) + 62px); align-self: start; max-height: calc(100vh - var(--header-h) - 80px); overflow: auto; } }
.filters-card { padding: 16px 16px 6px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.filters-head h2 { font-size: 1rem; margin: 0; }
.filter-group { padding: 12px 0; border-top: 1px solid var(--line); }
.filter-title { display: flex; justify-content: space-between; margin: 0 0 8px; font: 700 .74rem/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.filter-list { max-height: 260px; overflow: auto; }
.filter-list label { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: .9rem; cursor: pointer; }
.filter-list label:hover { background: var(--brand-50); }
.filter-list input { accent-color: var(--brand-600); width: 16px; height: 16px; flex: none; }
.filter-list .cnt { margin-left: auto; font-size: .74rem; color: var(--muted); }
.filter-search { margin-bottom: 6px; }
.filter-search .input { min-height: 36px; font-size: .88rem; }
.filters-drawer .filters { display: block; position: static; max-height: none; }
.filters-drawer .filters-card { padding: 0; border: 0; box-shadow: none; }
.filters-drawer .filters-head { justify-content: flex-end; }
.filters-drawer .filters-head h2 { display: none; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 18px; }
.toolbar .count { font-size: .9rem; color: var(--text-2); }
.toolbar .count strong { color: var(--ink); }
.toolbar .select { min-height: 40px; width: auto; padding-right: 36px; font-size: .88rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-top: 28px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; }
.pagination a:hover { border-color: var(--brand-500); color: var(--brand-700); }
.pagination .is-current { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.pagination .gap { border: 0; background: transparent; color: var(--muted); }

.tier-note { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--radius); background: var(--amber-100); color: #5f4a1e; font-size: .9rem; margin-bottom: 18px; }
.tier-note i { color: var(--amber-600); }

/* --------------------------------------------------------------------------
   10. Home
   -------------------------------------------------------------------------- */
/* The landing page uses the mahitaji-wa header (.lp-header), laid over the hero photo:
   logo | search | cart + account, then four drop-down menus. --overlay-h is its height,
   which the hero pads for. Once the page scrolls past it, the menu row pins to the top. */
.is-home { --overlay-h: 124px; }
@media (min-width: 992px) { .is-home { --overlay-h: 181px; } }
.lp-header { position: absolute; top: 0; left: 0; right: 0; z-index: 60; color: #fff; }
/* With Django messages under it the header sits in the flow on a dark band so both stay readable. */
.is-home .lp-header:has(+ .messages) { position: static; background: var(--brand-950); }
.lp-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; flex-wrap: wrap; }
.lp-burger { color: #fff; font-size: 1.3rem; width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; }
.lp-burger:hover { background: rgba(255,255,255,.12); }
.lp-logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; font: 600 22px/1 'Times New Roman', Times, serif; letter-spacing: 1px; text-transform: uppercase; flex: none; }
.lp-logo img { height: 40px; width: auto; display: block; }
.lp-logo:hover { color: #fff; }
.lp-logo:hover img { transform: scale(1.05); transition: transform .3s ease; }
.lp-search { position: relative; display: flex; align-items: center; height: 45px; background: #fff; border-radius: 6px; flex: 1 1 100%; order: 3; }
.lp-search-cat { position: relative; display: none; align-items: center; height: 100%; border-right: 1px solid #e1e1e1; }
.lp-search-cat select { height: 100%; border: 0; background: transparent; padding: 0 30px 0 25px; font-size: 13px; font-weight: 700; color: #1b1b1b; appearance: none; cursor: pointer; max-width: 190px; }
.lp-search-cat i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #1b1b1b; pointer-events: none; }
.lp-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 20px; font-size: 13px; color: #1b1b1b; }
.lp-search input:focus { outline: none; }
.lp-search input::placeholder { color: #8c8c8c; }
.lp-search button { width: 56px; height: 100%; color: #1b1b1b; font-size: 18px; background: transparent; }
.lp-search button:hover { color: var(--brand-700); }
.lp-search .search-suggest { color: var(--text); }
.lp-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lp-cart { display: inline-flex; align-items: center; height: 45px; padding: 0 15px; border: 2px solid #fff; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 500; background: transparent; transition: background .3s ease; }
.lp-cart i:first-child { font-size: 20px; padding-right: 15px; margin-right: 15px; border-right: 1px solid rgba(255,255,255,.5); }
.lp-cart-caret { font-size: 12px; margin-left: 8px; }
@media (max-width: 991.98px) {
  .lp-cart { padding: 0 12px; }
  .lp-cart i:first-child { padding: 0; margin: 0; border: 0; }
  .lp-cart-total, .lp-cart-caret { display: none; }
}
.lp-cart:hover { background: #313761; color: #fff; }
.lp-user { display: grid; place-items: center; width: 45px; height: 45px; border: 2px solid #fff; border-radius: 8px; color: #fff; font-size: 20px; transition: background .3s ease; }
.lp-user:hover { background: rgba(255,255,255,.12); color: #fff; }
.lp-nav { display: none; }
@media (min-width: 992px) {
  /* Equal side columns keep the search on the page's centre line whatever the logo and
     cart widths; the search is as wide as the carousel below it and the menu sits centred under it. */
  .lp-header { --lp-mid: var(--rotary-size); }
  .lp-top { display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, var(--lp-mid)) minmax(max-content, 1fr); padding: 30px 40px 0; gap: 40px; }
  .lp-logo { justify-self: start; }
  .lp-logo { gap: 15px; font-size: 33px; }
  .lp-logo img { height: 80px; }
  .lp-actions { gap: 20px; justify-self: end; margin-left: 0; }
  .lp-search { width: 100%; order: 0; }
  .lp-search-cat { display: flex; }
  .lp-burger { display: none; }
  .lp-nav { display: block; height: 51px; margin-top: 20px; transition: background .3s ease, box-shadow .3s ease; }
  .lp-nav > ul { display: flex; align-items: center; justify-content: center; gap: 12px; height: 100%; }
  .lp-nav > ul > li { position: relative; flex: none; white-space: nowrap; }
  .lp-nav > ul > li > a { display: block; padding: 10px 22px; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; line-height: 31px; border-radius: 4px; transition: background .3s; }
  .lp-nav > ul > li:hover > a { background: rgba(255,255,255,.1); backdrop-filter: blur(5px); color: #fff; }
  /* Frosted-glass drop-downs, opened on hover */
  .lp-nav ul ul { position: absolute; top: 100%; left: 0; width: 220px; padding: 20px 0; border-radius: 8px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 32px rgba(0,0,0,.3); opacity: 0; visibility: hidden; transform: scaleY(0); transform-origin: 0 0; transition: all .3s ease-in-out; z-index: 99; }
  .lp-nav > ul > li:hover > ul { opacity: 1; visibility: visible; transform: scaleY(1); }
  .lp-nav ul ul a { display: block; padding: 10px 20px; color: #fff; font-size: 14px; transition: all .3s ease; }
  .lp-nav ul ul a:hover { background: rgba(255,255,255,.1); color: #fff; transform: scale(1.1); }
}
@media (min-width: 992px) and (max-width: 1299.98px) {
  .is-home { --overlay-h: 212px; }
  .lp-top { grid-template-columns: 1fr 1fr; padding: 24px 24px 0; gap: 16px 24px; }
  .lp-search { grid-column: 1 / -1; grid-row: 2; justify-self: center; max-width: var(--lp-mid); }
  .lp-actions { grid-column: 2; grid-row: 1; }
  .lp-logo img { height: 64px; }
  .lp-nav { margin-top: 12px; }
}
@media (min-width: 992px) {
  /* Past the hero the menu row pins to the top of the window and turns solid white. */
  .lp-header.is-scrolled .lp-nav { position: fixed; top: 0; left: 0; right: 0; margin: 0; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
  .lp-header.is-scrolled .lp-nav > ul > li > a { color: #333; }
  .lp-header.is-scrolled .lp-nav > ul > li:hover > a { background: var(--bg-2); color: #313761; }
  .lp-header.is-scrolled .lp-nav ul ul { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: #e6eaf0; }
  .lp-header.is-scrolled .lp-nav ul ul a { color: #333; }
  .lp-header.is-scrolled .lp-nav ul ul a:hover { color: #313761; background: var(--bg-2); }
}
.is-home .footer { margin-top: 0; }

/* Hero: cross-fading product photos behind the rotary. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 620px; padding-top: calc(var(--overlay-h) + 28px);
  background: var(--brand-950); color: #fff;
}
.is-home .messages ~ main .hero { padding-top: 28px; }
@media (min-width: 768px) { .hero { padding-bottom: 40px; } }
@media (min-width: 992px) { .hero { min-height: 100vh; } }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slides { z-index: -1; }
.hero-slides::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(10,25,49,.1), rgba(10,25,49,.6)), linear-gradient(rgba(10,25,49,.7), rgba(10,25,49,.9)); }
.hero-slide { background: center / cover no-repeat; opacity: 0; transform: scale(1.08); transition: opacity .8s ease, transform 1.2s ease-out; }
.hero-slide.is-active { opacity: 1; transform: none; }
.hero-slide:nth-child(1) { background-image: url("../assets/slides/slide_four.b8935618438f.webp"); }
.hero-slide:nth-child(2) { background-image: url("../assets/slides/slide_two.2785c5a1940b.webp"); }
.hero-slide:nth-child(3) { background-image: url("../assets/slides/slide_five.9c09d8c8d6d3.webp"); }
.hero-slide:nth-child(4) { background-image: url("../assets/slides/slide_three.6759c7c4d84b.webp"); }

/* Rotary: logo hub with two rings of icons orbiting it (categories inside, brands outside).
   Each ring spins as a whole. An arm is one spoke: it points from the hub at angle --a
   (item --i of --n, starting at 12 o'clock) and carries its icon at the far end.
   The icon counter-rotates at the same speed so it always stays upright.
   Sizes: phones show the inner ring only; from 768px everything scales with --k. */
/* --k scales the carousel to the screen; --rotary-size (its diameter) is set on the page so
   the landing header can match it. */
.is-home { --k: .8; --rotary-size: calc(750px * var(--k)); }
@media (min-width: 992px) { .is-home { --k: 1; } }
@media (min-width: 992px) and (max-height: 920px) { .is-home { --k: .84; } }
@media (min-width: 992px) and (max-height: 780px) { .is-home { --k: .72; } }
.rotary {
  --speed-in: 35s; --speed-out: 50s;
  --size: 332px; --r-in: 128px; --r-out: 0px; --icon: 72px; --hub: 108px;
  position: relative; flex: none; width: var(--size); height: var(--size);
}
@media (min-width: 768px) {
  .rotary {
    --size: var(--rotary-size); --r-in: calc(185px * var(--k)); --r-out: calc(315px * var(--k));
    --icon: calc(90px * var(--k)); --hub: calc(150px * var(--k));
  }
}
.rotary-hub { position: absolute; inset: 0; z-index: 3; margin: auto; width: var(--hub); height: var(--hub); display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 15px 35px rgba(0,0,0,.4); }
.rotary-hub img { width: 95%; border-radius: 50%; }
.rotary-ring { --r: var(--r-in); --speed: var(--speed-in); position: absolute; left: 50%; top: 50%; z-index: 2; width: 0; height: 0; animation: rotary-spin var(--speed) linear infinite; }
.rotary-ring--outer { --r: var(--r-out); --speed: var(--speed-out); z-index: 1; display: none; }
@media (min-width: 768px) { .rotary-ring--outer { display: block; } }
.rotary-ring::before { content: ''; position: absolute; left: calc(var(--r) * -1); top: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.rotary-ring--outer::before { border-style: dashed; border-color: rgba(255,255,255,.14); }
.rotary-arm { --a: calc(360deg / var(--n) * var(--i) - 90deg); position: absolute; left: 0; top: 0; width: var(--r); height: 0; border-top: 1px solid rgba(255,255,255,.12); transform-origin: 0 0; transform: rotate(var(--a)); }
.rotary-ring--outer .rotary-arm { border-top: 1px dashed rgba(126,166,200,.2); }
.rotary-item { position: absolute; left: 100%; top: 0; width: var(--icon); height: var(--icon); margin: calc(var(--icon) / -2) 0 0 calc(var(--icon) / -2); transform: rotate(calc(-1 * var(--a))); animation: rotary-upright var(--speed) linear infinite; }
.rotary-item img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 8px 20px rgba(0,0,0,.3); transition: transform .4s ease; }
.rotary-item.is-photo img { object-fit: cover; }
.rotary-item:hover img, .rotary-item:focus-visible img { transform: scale(1.15); }
.rotary-tip { position: absolute; left: 50%; top: calc(100% + 8px); padding: 5px 11px; border-radius: 6px; background: rgba(10,25,49,.95); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .25s, transform .25s, visibility .25s; }
.rotary-item:hover .rotary-tip, .rotary-item:focus-visible .rotary-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.rotary:hover .rotary-ring, .rotary:hover .rotary-item,
.rotary:focus-within .rotary-ring, .rotary:focus-within .rotary-item { animation-play-state: paused; }
@keyframes rotary-spin { to { transform: rotate(360deg); } }
@keyframes rotary-upright { from { transform: rotate(calc(-1 * var(--a))); } to { transform: rotate(calc(-1 * var(--a) - 360deg)); } }

/* Phones swap the outer ring for a strip of brand logos. */
.hero-brands { width: 100%; margin-top: 12px; padding: 22px 0 26px; text-align: center; background: linear-gradient(transparent, rgba(10,25,49,.9)); }
.hero-brands h3 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.hero-brands .rail { gap: 20px; padding-bottom: 6px; }
.hero-brand img { width: 72px; height: 72px; padding: 8px; border-radius: 50%; background: #fff; object-fit: contain; }
@media (min-width: 768px) { .hero-brands { display: none; } }

/* Dark bands (intro, logistics, why): white type, amber accent, two soft glows. */
.home-dark { position: relative; isolation: isolate; overflow: hidden; color: rgba(255,255,255,.78); }
.home-dark h1, .home-dark h2, .home-dark h3 { color: #fff; }
.home-dark em { font-style: normal; color: var(--amber-500); }
.home-dark .lead { color: rgba(255,255,255,.78); max-width: 52ch; }
.home-dark .eyebrow { color: var(--amber-500); }
.home-dark .pill { margin-bottom: 22px; }
.home-dark .link-arrow, .home-dark .link-arrow:hover { color: #fff; }
.home-dark::before, .home-dark::after { content: ''; position: absolute; z-index: -1; width: 480px; height: 480px; border-radius: 50%; filter: blur(72px); pointer-events: none; animation: glow 5s ease-in-out infinite alternate; }
.home-dark::before { top: -160px; left: -160px; background: rgba(126,166,200,.22); }
.home-dark::after { bottom: -160px; right: -160px; background: rgba(74,127,167,.2); }
.display { font-size: clamp(2.2rem, 5.4vw, 4.2rem); line-height: 1.05; letter-spacing: -.02em; margin-bottom: .45em; }
.home-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.home-intro { background: var(--brand-800); }
.home-intro .container, .home-why .container { display: grid; gap: 48px; align-items: center; }
@media (min-width: 992px) { .home-intro .container, .home-why .container { grid-template-columns: 1fr 1fr; } }
.home-intro h1 em { display: block; }
.home-intro-card { display: none; padding: 44px; border-radius: var(--radius-xl); background: rgba(10,25,49,.3); border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow-lg); transition: background .2s; }
.home-intro-card:hover { background: rgba(10,25,49,.45); }
.home-intro-card h3 { font-size: 1.75rem; }
.home-intro-card p { max-width: 38ch; margin-bottom: 26px; }
@media (min-width: 992px) { .home-intro-card { display: block; } }

.home-band { background: var(--brand-950) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M0 31.5h32M31.5 0v32' stroke='rgba(255,255,255,0.05)' fill='none'/%3E%3C/svg%3E"); }
.home-band .display, .home-why .display { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.home-band em { color: var(--brand-200); }
.home-band .lead { margin-inline: auto; }

.home-why { background: linear-gradient(135deg, var(--brand-950), var(--brand-800) 50%, var(--brand-950)); }
.home-why-logo { display: flex; justify-content: center; }
.home-why-logo > div { width: min(320px, 70vw); aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--radius-xl); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); box-shadow: var(--shadow-lg); backdrop-filter: blur(24px); animation: float 6s ease-in-out infinite; }
.home-why-logo img { width: 65%; }

/* Curated categories: one tall photo card beside two short ones. */
.showcase, .showcase-side { display: grid; gap: 24px; }
@media (min-width: 992px) { .showcase { grid-template-columns: 7fr 5fr; } }
.showcase-card { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 248px; border-radius: var(--radius-xl); background: var(--brand-950); color: #fff; }
.showcase-card:hover { color: #fff; }
.showcase-card.is-feature { min-height: 400px; }
@media (min-width: 992px) { .showcase-card.is-feature { min-height: 520px; } }
.showcase-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.showcase-card:hover > img { transform: scale(1.05); }
.showcase-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,25,49,.94), rgba(10,25,49,.7) 50%, transparent 90%); }
.showcase-body { padding: 28px; }
.showcase-card h3 { color: #fff; font-size: 1.6rem; margin-bottom: 10px; }
.showcase-card p { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 44ch; margin-bottom: 22px; }
.showcase-card .link-arrow { color: #fff; font-weight: 600; font-size: .9rem; }
.showcase-card.is-feature h3 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.05; }
.showcase-tag { display: block; margin-bottom: 12px; color: var(--amber-500); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
@media (min-width: 768px) { .showcase-card.is-feature .showcase-body { padding: 44px; } }

/* How it works: three centred steps on a connector line. */
.home-how, .home-about { position: relative; isolation: isolate; overflow: hidden; }
.home-how::before, .home-about::before, .home-about::after { content: ''; position: absolute; z-index: -1; width: 480px; height: 480px; border-radius: 50%; background: var(--brand-100); filter: blur(80px); opacity: .7; pointer-events: none; }
.home-how::before { top: -220px; left: 50%; transform: translateX(-50%); }
.home-about::before { top: -200px; left: -200px; }
.home-about::after { bottom: -200px; right: -160px; }
.how { position: relative; display: grid; gap: 44px; counter-reset: how; margin-top: 40px; }
.how-step { position: relative; text-align: center; }
.how-icon { position: relative; display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 22px; border-radius: var(--radius-lg); background: var(--brand-100); color: var(--brand-700); font-size: 1.7rem; transition: transform .3s var(--ease), box-shadow .3s, background .3s; }
.how-icon::before { counter-increment: how; content: counter(how); position: absolute; top: -15px; left: 50%; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: var(--brand-800); color: #fff; font: 700 .82rem/30px var(--font-body); box-shadow: var(--shadow); }
.how-step:hover .how-icon { transform: scale(1.08); background: var(--brand-200); box-shadow: var(--shadow); }
.how-step h3 { font-size: 1.35rem; }
.how-step p { color: var(--text-2); max-width: 36ch; margin: 0 auto; }
@media (min-width: 768px) {
  .how { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .how::before { content: ''; position: absolute; top: 40px; left: 0; right: 0; height: 2px; background: var(--line); }
}

.trust-bar { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-bar .container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; padding-top: 44px; padding-bottom: 44px; text-align: center; }
.trust-bar strong { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; line-height: 1.1; color: var(--ink); }
.trust-bar span { color: var(--text-2); }
@media (min-width: 768px) { .trust-bar .container { grid-template-columns: repeat(4, 1fr); } }

.home-about .container { display: grid; gap: 40px; align-items: center; }
@media (min-width: 992px) { .home-about .container { grid-template-columns: 1fr 1fr; gap: 64px; } }
.home-about-media img { width: 100%; border-radius: var(--radius-xl); box-shadow: 0 30px 60px -20px rgba(10,25,49,.35); transition: transform .7s var(--ease); }
.home-about-media:hover img { transform: scale(1.02); }
.home-about h2 { margin: 18px 0 14px; }
.home-about .lead { max-width: 54ch; }
.home-about-points { display: grid; gap: 18px; margin: 26px 0 28px; }
@media (min-width: 560px) { .home-about-points { grid-template-columns: 1fr 1fr; } }
.home-about .feature-icon { background: var(--success-100); color: var(--success); }

/* Shared with the content pages */
.split-cta { display: grid; gap: 20px; }
@media (min-width: 900px) { .split-cta { grid-template-columns: 1fr 1fr; } }
.cta-card { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 32px; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; }
.cta-card.light { background: var(--surface); border: 1px solid var(--line); }
.cta-card.dark { background: var(--brand-900); color: #fff; }
.cta-card.dark h3 { color: #fff; }
.cta-card.dark p { color: rgba(255,255,255,.75); }
.cta-card .cta-icon { position: absolute; right: 24px; top: 24px; font-size: 5rem; opacity: .08; }
.cta-card h3 { font-size: 1.5rem; }
.cta-card p { color: var(--text-2); max-width: 40ch; }
.cta-card.dark .link-arrow, .cta-card.dark .link-arrow:hover { color: #fff; }
.is-home .cta-card { transition: box-shadow .2s, transform .2s var(--ease); }
.is-home .cta-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.is-home .cta-card.dark .eyebrow { color: var(--amber-500); }
@media (min-width: 768px) { .is-home .cta-card { padding: 44px; } }

.steps { display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 28px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: -14px; left: 20px; background: var(--brand-600); color: #fff; font-weight: 800; font-size: .8rem; padding: 4px 10px; border-radius: var(--radius-pill); }
.step i { font-size: 1.5rem; color: var(--brand-600); margin-bottom: 12px; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--text-2); margin: 0; font-size: .92rem; }

/* --------------------------------------------------------------------------
   11. Product detail
   -------------------------------------------------------------------------- */
.pd { display: grid; gap: 28px; padding: 18px 0 32px; align-items: start; }
.pd > * { min-width: 0; }
@media (min-width: 900px) { .pd { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; } }
.pd-media { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; position: relative; }
.pd-media img { width: 100%; height: 100%; object-fit: contain; padding: 32px; }
.pd-media .pack { width: 100%; height: 100%; }
@media (min-width: 900px) { .pd-media { position: sticky; top: calc(var(--header-h) + 70px); } }
.pd-title { font-size: 1.5rem; margin: 4px 0 10px; }
@media (min-width: 768px) { .pd-title { font-size: 1.9rem; } }
.pd-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pd-price .tier { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.pd-price .now { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; line-height: 1.15; color: var(--brand-800); }
.pd-price .per { color: var(--muted); font-size: .88rem; }
.pd-price .was { text-decoration: line-through; color: var(--muted); }
.pd-price .other-tier { font-size: .85rem; color: var(--text-2); margin-top: 8px; }
.variant-list { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-list a, .variant-list span { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-pill); background: var(--surface); font-size: .82rem; color: var(--text); }
.variant-list a:hover { border-color: var(--brand-600); color: var(--brand-700); }
.variant-list .is-active { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-800); font-weight: 600; }
.pd-buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.pd-buy .btn-primary { flex: 1 1 180px; }
.pd-buy .btn-icon.is-active { color: #b4453d; }
.pd-note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }
@media (max-width: 480px) { .pd-buy .qty { flex: 1 1 auto; justify-content: space-between; } .pd-buy .qty input { flex: 1; width: auto; } .pd-buy .btn-primary { order: 3; flex-basis: 100%; } }

/* --------------------------------------------------------------------------
   12. Cart, checkout, orders
   -------------------------------------------------------------------------- */
.cart-layout { display: grid; gap: 24px; padding: 18px 0 56px; align-items: start; }
.cart-layout > * { min-width: 0; }
@media (min-width: 992px) { .cart-layout { grid-template-columns: 1fr 360px; } }
.cart-row { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
@media (min-width: 720px) { .cart-row { grid-template-columns: 80px 1fr 130px 140px 40px; } }
.cart-remove { color: var(--muted); }
.cart-remove:hover { color: var(--danger); background: var(--danger-100); }
.cart-head { display: none; }
@media (min-width: 720px) { .cart-head { display: grid; grid-template-columns: 80px 1fr 130px 140px 40px; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .cart-head span:first-child { grid-column: span 2; } .cart-head .num { text-align: right; } }
.cart-row:last-child { border-bottom: 0; }
.cart-thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-name { font-weight: 600; color: var(--ink); }
.cart-sub { font-size: .8rem; color: var(--muted); }
.cart-mobile-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; grid-column: 1 / -1; }
@media (min-width: 720px) { .cart-mobile-row { display: contents; } }
.cart-line-total { font-weight: 700; text-align: right; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .95rem; color: var(--text-2); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.1rem; color: var(--ink); font-weight: 700; }
.summary-row.total strong { font-family: var(--font-display); font-size: 1.4rem; }
.summary-row > :last-child { text-align: right; }
/* Stock status (in / low / out); products whose stock is not tracked show nothing. */
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; }
.stock-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.stock-in { color: var(--success); }
.stock-low { color: var(--warning); }
.stock-out { color: var(--danger); }
.pc-price .stock { margin-top: 4px; }
/* Coupon entry and the VAT rows in the cart, checkout and order summaries. */
.coupon { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; }
.coupon .input { flex: 1; min-width: 0; min-height: 36px; padding: 6px 12px; border-style: dashed; text-transform: uppercase; }
.coupon .input::placeholder { text-transform: none; }
.coupon.is-applied { justify-content: space-between; padding: 6px 6px 6px 12px; border-radius: var(--radius-sm); background: var(--success-100); color: var(--success-700); font-size: .88rem; }
.discount { color: var(--success); font-weight: 600; }
.summary-row.vat-row { padding: 3px 0; font-size: .84rem; color: var(--muted); }
/* Offer pop-up advertising the promoted coupon. */
.promo-card { position: relative; max-width: 400px; padding: 30px 26px 22px; text-align: center; background: radial-gradient(circle at 50% 0%, var(--amber-100), transparent 60%), var(--surface); }
.promo-card .eyebrow { justify-content: center; color: var(--danger); }
.promo-card .eyebrow::before { display: none; }
.promo-close { position: absolute; top: 10px; right: 10px; }
.promo-big { font-size: 3rem; line-height: 1; color: var(--brand-800); margin: 4px 0 8px; }
.promo-text { color: var(--text-2); margin: 0; }
.promo-code { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 16px; padding: 10px 20px; border: 2px dashed var(--amber-500); border-radius: var(--radius); background: var(--amber-100); font-size: 1.4rem; font-weight: 800; letter-spacing: .12em; color: var(--ink); }
.promo-code i { font-size: 1rem; color: var(--muted); }
.promo-fine { margin: 10px 0 0; font-size: .74rem; color: var(--muted); }
.order-lines { display: grid; max-height: 320px; overflow: auto; }
.order-lines li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.order-lines li:last-child { border-bottom: 0; }
.order-lines .ol-name { display: block; font-weight: 600; color: var(--ink); line-height: 1.3; }
.order-lines .ol-meta { display: block; font-size: .78rem; color: var(--muted); }
.order-lines b { white-space: nowrap; }
.pay-option { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; margin-bottom: 10px; }
.pay-option:hover { border-color: var(--brand-400); }
.pay-option.is-selected { border-color: var(--brand-600); background: var(--brand-50); }
.pay-option > input { flex: none; margin-top: 3px; accent-color: var(--brand-600); width: 18px; height: 18px; }
.pay-option .po-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .7rem; flex: none; }
.pay-option .po-icon.mpesa { width: auto; padding: 0 9px; white-space: nowrap; font-size: .62rem; letter-spacing: .02em; background: var(--success-100); color: var(--success-700); }
.pay-option .po-icon.cod { background: var(--bg-2); color: var(--text-2); font-size: 1.1rem; }
.pay-option strong { display: block; }
.pay-option small { color: var(--muted); }
.pay-option .po-extra { display: none; margin-top: 12px; }
.pay-option.is-selected .po-extra { display: block; }
.pay-option .po-extra .field { display: block; margin: 0; max-width: 320px; }
.pay-option .field-help { display: block; }
.pay-option.is-disabled { opacity: .6; cursor: not-allowed; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 8px 0 20px; }
.tl-step { text-align: center; position: relative; font-size: .75rem; color: var(--muted); font-weight: 600; }
.tl-step::before { content: ''; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--line-2); margin: 0 auto 8px; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.tl-step::after { content: ''; position: absolute; top: 7px; left: 50%; width: 100%; height: 2px; background: var(--line); z-index: -1; }
.tl-step:last-child::after { display: none; }
.tl-step.is-done { color: var(--brand-700); }
.tl-step.is-done::before { background: var(--brand-600); box-shadow: 0 0 0 1px var(--brand-600); }
.tl-step.is-done::after { background: var(--brand-600); }
.tl-step.is-current::before { background: var(--amber-500); box-shadow: 0 0 0 1px var(--amber-500); }
.timeline.is-cancelled .tl-step { opacity: .5; }

.order-grid { display: grid; gap: 20px; align-items: start; }
.order-grid > * { min-width: 0; }
@media (min-width: 900px) { .order-grid { grid-template-columns: 1.4fr 1fr; } }
@media (min-width: 992px) { .order-layout { grid-template-columns: 1fr 380px; } }
.order-total { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--ink); }
/* Order item tables drop the unit-price column on phones so they fit without scrolling. */
@media (max-width: 640px) { .table-items .col-unit { display: none; } }
.done { text-align: center; padding: 34px 20px 30px; }
.done-icon { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--success-100); color: var(--success); font-size: 1.8rem; animation: pop .5s var(--ease); }
.done-title { font-size: 1.6rem; margin: 0 0 6px; }
.done-text { color: var(--text-2); margin: 0 auto; max-width: 56ch; }
.done-ref { display: inline-block; margin-top: 14px; padding: 8px 18px; border-radius: var(--radius-pill); background: var(--brand-100); color: var(--brand-800); font-weight: 700; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.pay-wait { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--amber-100); border: 1px solid #e6d9b8; color: #5f4a1e; }
.pay-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pay-options > span { flex: 1 1 100%; }
@media (min-width: 480px) { .pay-options > span { flex: 1 1 auto; } }
.pay-wait .spinner { color: var(--amber-600); border-color: rgba(167,130,63,.25); border-top-color: var(--amber-600); }

/* --------------------------------------------------------------------------
   13. Auth & account
   -------------------------------------------------------------------------- */
.auth { display: grid; place-items: center; padding: 32px var(--gutter) 56px; }
.auth-card { width: min(480px, 100%); padding: 28px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.auth-card.wide { width: min(720px, 100%); }
.auth-title { font-size: 1.5rem; margin: 0 0 4px; }
.auth-lead { color: var(--text-2); margin: 0 0 20px; }
.auth-foot { margin: 18px 0 0; text-align: center; font-size: .9rem; color: var(--muted); }
.auth-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); font-size: 1.6rem; }
@media (min-width: 640px) { .auth-card { padding: 34px 32px; } }

.account { display: grid; gap: 24px; padding: 18px 0 56px; align-items: start; }
.account > * { min-width: 0; }
@media (min-width: 992px) { .account { grid-template-columns: 250px 1fr; } }
.account-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px; }
.account-nav .who { display: flex; align-items: center; gap: 12px; padding: 10px 10px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.account-nav .who strong { display: block; font-size: .95rem; color: var(--ink); }
.account-nav .who small { color: var(--muted); }
.account-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 600; font-size: .92rem; }
.account-nav a i { width: 18px; text-align: center; color: var(--muted); }
.account-nav a:hover { background: var(--bg-2); color: var(--ink); }
.account-nav a.is-active { background: var(--brand-600); color: #fff; }
.account-nav a.is-active i { color: #fff; }
.account-nav .logout { color: var(--danger); }
.account-nav .logout i { color: var(--danger); }
.account-nav form { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
.account-nav form button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--danger); font-weight: 600; font-size: .92rem; }
.account-nav form button:hover { background: var(--danger-100); }
@media (max-width: 991.98px) { .account-nav { display: flex; overflow-x: auto; gap: 4px; padding: 8px; } .account-nav .who, .account-nav form { display: none; } .account-nav a { white-space: nowrap; } }

.address-card { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.address-card.is-primary { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }
.address-card .badge { position: absolute; top: 14px; right: 14px; }
.address-card h4 { margin-bottom: 6px; }
.address-card p { color: var(--text-2); margin-bottom: 12px; font-size: .92rem; }

/* --------------------------------------------------------------------------
   14. Content pages
   -------------------------------------------------------------------------- */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); font-size: 1.1rem; flex: none; }
.feature h4 { margin-bottom: 4px; }
.feature p { color: var(--text-2); margin: 0; font-size: .92rem; }
.value-card { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); height: 100%; }
.value-card i { font-size: 1.4rem; color: var(--brand-600); margin-bottom: 12px; display: block; }
.value-card p { color: var(--text-2); margin: 0; font-size: .92rem; }
.bg-green .value-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.bg-green .value-card h3, .bg-green .value-card h4 { color: #fff; }
.bg-green .value-card p { color: rgba(255,255,255,.7); }
.bg-green .value-card i { color: var(--amber-500); }
.map-frame { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }
.contact-card { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.contact-card i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); flex: none; }
.contact-card h4 { margin-bottom: 2px; font-size: .95rem; }
.contact-card p { margin: 0; color: var(--text-2); font-size: .9rem; }
.help-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .help-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .help-grid { grid-template-columns: repeat(3, 1fr); } }
.help-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.policy-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.policy-list li:last-child { border-bottom: 0; }
.policy-list i { color: var(--brand-600); margin-top: 4px; }
.policy-list strong { display: block; color: var(--ink); margin-bottom: 2px; }
.policy-list p { margin: 0; color: var(--text-2); font-size: .92rem; }
.team-card { text-align: center; padding: 24px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.team-card .avatar { margin: 0 auto 12px; width: 72px; height: 72px; font-size: 1.4rem; background: var(--brand-800); }
.team-card h4 { margin-bottom: 2px; }
.team-card p { color: var(--muted); font-size: .85rem; margin: 0; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--brand-950); color: var(--brand-200); margin-top: 48px; }
.footer a { color: #d2d9e1; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 32px; padding: 52px 0 36px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer ul { display: grid; gap: 8px; font-size: .9rem; }
.footer .brand { color: #fff; }
.footer .brand span { color: var(--amber-500); }
.footer .brand small { color: rgba(255,255,255,.55); }
.footer p { font-size: .9rem; color: #aab4c0; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--brand-400); margin-top: 4px; width: 16px; text-align: center; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.footer-social a:hover { background: var(--brand-600); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .82rem; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; color: #8391a0; }
.footer-bottom .pay { display: flex; gap: 8px; align-items: center; }
.footer-bottom .pay span { padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: .72rem; }

/* --------------------------------------------------------------------------
   16. Toasts, modal, chat, back-to-top, messages
   -------------------------------------------------------------------------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: .9rem; animation: toast-in .3s var(--ease); }
.toast i { margin-top: 2px; }
.toast-success i { color: var(--success-400); }
.toast-danger i { color: #e0a19b; }
.toast-info i { color: var(--brand-400); }
.toast-warning i { color: var(--amber-500); }
.toast .toast-close { margin-left: auto; color: rgba(255,255,255,.6); }
.toast a { color: var(--amber-500); font-weight: 600; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }

.modal { position: fixed; inset: 0; z-index: 110; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 25, 49, .6); }
.modal.is-open { display: flex; }
.modal-box { width: 100%; max-width: 720px; max-height: 90vh; overflow: auto; background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); animation: pop .3s var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 22px; }

.messages { position: relative; z-index: 5; }
.messages .container { padding-top: 16px; }
.messages .alert { margin-bottom: 0; }
.messages .alert + .alert { margin-top: 8px; }

.chat-fab { position: fixed; right: 16px; bottom: 16px; z-index: 80; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-600); color: #fff; font-size: 1.3rem; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .15s, background .15s; }
.chat-fab:hover { transform: scale(1.06); background: var(--brand-700); }
.chat-fab.is-open { background: var(--ink); }
body.has-toasts .chat-fab { bottom: 16px; }
.chat { position: fixed; right: 16px; bottom: 84px; z-index: 100; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: none; flex-direction: column; overflow: hidden; }
.chat.is-open { display: flex; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--brand-900); color: #fff; }
.chat-head strong { display: block; font-size: .95rem; }
.chat-head small { color: rgba(255,255,255,.65); font-size: .75rem; }
.chat-head .chat-close { margin-left: auto; color: rgba(255,255,255,.7); font-size: 1.1rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.msg.assistant { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--brand-600); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.typing { color: var(--muted); font-style: italic; }
.msg .msg-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg .msg-links a { font-size: .78rem; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--brand-100); color: var(--brand-700); font-weight: 600; }
.chat-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-foot input { flex: 1; min-height: 42px; }
.chat-quick { display: flex; gap: 6px; padding: 0 12px 10px; flex-wrap: wrap; }
.chat-quick button { font-size: .75rem; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--bg-2); color: var(--text-2); font-weight: 600; }
.chat-quick button:hover { background: var(--brand-100); color: var(--brand-700); }
.chat-fab, .chat { right: 16px; }
.chat-fab { bottom: 16px; }
.chat-fab.with-cart { bottom: 16px; }

.back-top { position: fixed; left: 16px; bottom: 16px; z-index: 99; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.back-top.is-visible { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   17. Motion helpers
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .15s; }
.reveal-d2 { transition-delay: .3s; }
.reveal-d3 { transition-delay: .45s; }
@keyframes glow { from { opacity: .55; } to { opacity: 1; } }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .rotary-ring, .rotary-item, .home-dark::before, .home-dark::after, .home-why-logo > div, .pill .dot { animation: none !important; }
}

/* Print */
@media print {
  .header, .topbar, .footer, .chat-fab, .chat, .toasts, .back-top, .drawer, .overlay { display: none !important; }
  body { background: #fff; }
}

/* Mobile header: keep logo, search, account and cart on one row */
@media (max-width: 991.98px) {
  .header-main { gap: 4px; }
  .brand { font-size: 1.05rem; gap: 6px; }
  .brand img { height: 34px; }
  .brand small { display: none; }
  .header-actions { gap: 0; }
  .h-action { min-width: 40px; height: 44px; }
  .h-action .count { top: 2px; right: 2px; }
  .h-cart { padding: 0 12px; height: 42px; min-width: 42px; margin-left: 4px; }
  .h-cart .count { left: auto; right: -6px; top: -6px; }
  .nav-toggle { width: 40px; }
}
@media (max-width: 420px) {
  .header-actions .h-action:not(.h-cart):not(.search-toggle) { min-width: 36px; }
  .brand { font-size: .95rem; }
}
