/* ============================================================
   ORAH BEN — Public Storefront
   ============================================================ */

/* ---- Top bar ---- */
.topbar { background: var(--charcoal); color: var(--off-white); font-size: 0.82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 38px; }
.topbar .topbar-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c9c4b8; }
.topbar a { color: var(--gold-light); }
.topbar .topbar-links { display: flex; gap: var(--space-4); flex-shrink: 0; white-space: nowrap; }

/* ---- Header ---- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; gap: var(--space-5); height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand .brand-mark { width: 44px; height: 44px; border-radius: 10px; background: var(--charcoal); color: var(--gold-light); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand .brand-logo { height: 44px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.brand .brand-text { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--charcoal); }
.header-search { flex: 1; max-width: 560px; position: relative; }
.header-search input { width: 100%; padding: 10px 14px 10px 40px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--surface-muted); }
.header-search .search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--gray); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-btn); color: var(--charcoal); }
.icon-btn:hover { background: var(--surface-muted); }
.icon-btn .count { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 0.65rem; font-weight: 700; display: grid; place-items: center; }
.nav-bar { border-bottom: 1px solid var(--border); background: var(--surface); }
.nav-bar .container { display: flex; gap: var(--space-5); min-height: 48px; align-items: center; }
.nav-bar > .container > a { font-size: 0.88rem; font-weight: 500; color: var(--text); white-space: nowrap; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav-bar > .container > a:hover, .nav-bar > .container > a.active { color: var(--gold); border-bottom-color: var(--gold); }
.menu-toggle { display: none; }

/* ---- Category dropdown ---- */
.cat-dropdown { position: relative; }
.cat-dropdown-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--charcoal); color: var(--off-white);
  border: none; cursor: pointer; font-weight: 600; font-size: 0.88rem;
  padding: 10px 16px; border-radius: var(--radius-btn); margin: 6px 0;
}
.cat-dropdown-btn:hover { background: #000; }
.cat-dropdown-btn .caret { font-size: 0.7rem; transition: transform .15s; }
.cat-dropdown.open .cat-dropdown-btn .caret { transform: rotate(180deg); }
.cat-dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg); padding: 8px; min-width: 240px;
  display: none; grid-template-columns: 1fr 1fr; gap: 2px; max-height: 70vh; overflow-y: auto;
}
.cat-dropdown.open .cat-dropdown-menu { display: grid; }
.cat-dropdown-menu a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text); white-space: nowrap; }
.cat-dropdown-menu a:hover { background: var(--surface-muted); color: var(--gold); }

/* ---- Hero: full-section background image + overlay ---- */
.hero { position: relative; color: var(--off-white); overflow: hidden; isolation: isolate; background: var(--charcoal); }
.hero--plain { background: linear-gradient(135deg, #161616 0%, #1f1f1f 60%, #262320 100%); }
.hero--image {
  background-image: var(--hero-img);
  background-size: cover;
  background-position: var(--hero-pos, center);
  background-repeat: no-repeat;
}
/* Overlay: layered gradients give the hero depth (no flat wash). Opacity is admin-controlled.
   1) left→right charcoal fade so text stays readable while the image shows on the right
   2) subtle warm-gold tint at bottom-left for brand warmth
   3) bottom vignette so CTAs + stats sit on a darker base */
.hero-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 55%, rgba(8,8,8, calc(var(--hero-overlay, .62) + .12)) 100%),
    radial-gradient(120% 90% at 12% 88%, rgba(184,135,45, calc(var(--hero-overlay, .62) * .32)) 0%, transparent 55%),
    linear-gradient(100deg,
      rgba(12,11,10, calc(var(--hero-overlay, .62) + .24)) 0%,
      rgba(12,11,10, var(--hero-overlay, .62)) 42%,
      rgba(12,11,10, calc(var(--hero-overlay, .62) * .35)) 78%,
      rgba(12,11,10, calc(var(--hero-overlay, .62) * .15)) 100%);
}
.hero--plain .hero-overlay { display: none; }
.hero-inner { position: relative; z-index: 2; max-width: 720px;
  padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(56px, 9vw, 112px); }
.hero h1 { color: #fff; line-height: 1.04; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero h1 .accent { color: var(--gold-light); }
.hero p { color: #e6e2d7; font-size: 1.1rem; max-width: 48ch; margin-top: var(--space-4); text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero-actions { display: flex; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap; }
.btn-hero-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(2px); }
.btn-hero-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); }
.hero-stats { display: flex; gap: var(--space-7); margin-top: var(--space-7); border-top: 1px solid rgba(255,255,255,.16); padding-top: var(--space-5); }
.hero-stats .stat b { display: block; font-size: 1.5rem; color: var(--gold-light); }
.hero-stats .stat span { font-size: 0.82rem; color: #cfcabf; }

/* ---- Category tiles ---- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-3); }
.cat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-4) var(--space-3); text-align: center; transition: border-color .15s, transform .1s, box-shadow .15s; }
.cat-tile:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cat-tile .cat-icon { width: 54px; height: 54px; margin: 0 auto var(--space-3); border-radius: 14px; background: #f7efd9; display: grid; place-items: center; color: var(--gold); transition: background .15s; }
.cat-tile:hover .cat-icon { background: var(--gold); color: #fff; }
.cat-tile .cat-icon svg { width: 26px; height: 26px; }
.cat-tile span { font-size: 0.84rem; font-weight: 600; line-height: 1.25; display: block; }

/* ---- Product grid & card (shared reusable component) ---- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.product-card:hover { border-color: #c9c1ad; box-shadow: var(--shadow-md); }
.product-card .pc-media { aspect-ratio: 1; background: var(--surface-muted); position: relative; overflow: hidden; }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pc-badge { position: absolute; top: 8px; left: 8px; }
.product-card .pc-body { padding: var(--space-3); display: flex; flex-direction: column; gap: 2px; flex: 1; }
.product-card .pc-cat { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gray); }
.product-card .pc-name { font-size: 0.9rem; font-weight: 600; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .pc-spec { font-size: 0.76rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card .pc-foot { margin-top: auto; padding-top: var(--space-2); display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.product-card .pc-price { font-size: 0.98rem; font-weight: 700; color: var(--charcoal); }
.product-card .pc-add { border: none; background: var(--charcoal); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; flex-shrink: 0; transition: background .15s ease, transform .08s ease, box-shadow .15s ease; box-shadow: var(--shadow-sm); }
.product-card .pc-add svg { width: 17px; height: 17px; }
.product-card .pc-add:hover { background: var(--gold); box-shadow: 0 4px 12px rgba(184,135,45,.35); }
.product-card .pc-add:active { transform: scale(.9); }

/* ---- About / feature blocks ---- */
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: var(--space-8); align-items: center; }
.about-media { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border); background: var(--surface-muted); box-shadow: var(--shadow-md); align-self: stretch; min-height: 420px; }
.about-media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }
.about-placeholder { width: 100%; height: 100%; min-height: 420px; display: grid; place-items: center; color: var(--gray); }
.about-content { align-self: center; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.why-item { padding: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.why-item .why-icon { width: 42px; height: 42px; border-radius: 10px; background: #f7efd9; color: var(--gold); display: grid; place-items: center; margin-bottom: var(--space-3); }
.why-item h4 { margin-bottom: 4px; }
.why-item p { font-size: 0.86rem; color: var(--text-muted); }

/* ---- CTA band ---- */
.cta-band { background: var(--charcoal); color: var(--off-white); border-radius: var(--radius-card); padding: var(--space-7); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9c4b8; margin-top: var(--space-2); }

/* ---- Footer ---- */
.site-footer { background: var(--charcoal); color: #cfcabf; margin-top: var(--space-8); }
.site-footer .container { padding-top: var(--space-6); padding-bottom: var(--space-4); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1.5fr; gap: var(--space-6); align-items: start; }
.footer-logo { height: 40px; width: auto; max-width: 200px; object-fit: contain; }
.footer-store-name { color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer-tagline { color: #98938a; font-size: 0.86rem; margin-top: 10px; max-width: 34ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px var(--space-5); align-content: start; }
.footer-links a { color: #cfcabf; font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: #e6e2d7; }
.footer-contact-row svg { width: 17px; height: 17px; color: var(--gold-light); flex-shrink: 0; margin-top: 2px; }
.footer-contact-row a { color: #e6e2d7; }
.footer-contact-row a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid #2a2a2a; margin-top: var(--space-5); padding-top: var(--space-4); font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); color: #98938a; }
.footer-bottom a { color: var(--gold-light); }
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* ---- Shop layout ---- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-5); }
.shop-filters { position: sticky; top: 90px; align-self: start; }
.filter-group { border-bottom: 1px solid var(--border); padding: var(--space-4) 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-size: 0.9rem; margin-bottom: var(--space-3); }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; padding: 3px 0; color: var(--text); cursor: pointer; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); gap: var(--space-3); flex-wrap: wrap; }
.shop-toolbar .select { min-width: 190px; }

/* ---- Product detail ---- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); }
.pdp-gallery .pdp-main { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 1; background: var(--surface-muted); }
.pdp-gallery .pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.pdp-thumbs img { width: 68px; height: 68px; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.pdp-thumbs img.active { border-color: var(--gold); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.spec-table th, .spec-table td { padding: 9px 0; border-bottom: 1px solid var(--border); text-align: left; }
.spec-table th { color: var(--text-muted); font-weight: 500; width: 40%; }
.variant-options { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.variant-chip { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-btn); cursor: pointer; font-size: 0.88rem; font-weight: 500; background: var(--surface); }
.variant-chip.active { border-color: var(--gold); background: #f7efd9; color: var(--gold); }
.variant-chip:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: var(--space-6); flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.88rem; background: var(--surface); }
.pagination .active span { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.pagination .disabled span { opacity: .4; }

/* ============================================================
   RESPONSIVE — mobile-first product grid: 3 columns
   ============================================================ */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters { position: static; }
}
@media (max-width: 768px) {
  .header-search { display: none; }
  .nav-bar { display: none; }
  .menu-toggle { display: grid; }
  .topbar .topbar-note { display: none; }
  .topbar .container { justify-content: flex-end; }
  /* Fit the header on small screens so the menu button is never clipped */
  .site-header .container { height: 62px; gap: var(--space-3); }
  .brand .brand-logo { height: 38px; max-width: 150px; }
  .header-actions { gap: 0; }
  .icon-btn { width: 38px; height: 38px; }
  /* Wishlist + account live in the drawer on mobile; keep cart + menu in the bar */
  .header-actions > a[aria-label="Wishlist"] { display: none; }
  .cat-dropdown-menu { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  /* KEY REQUIREMENT: at least 3 products per row on mobile */
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
  .product-card .pc-body { padding: var(--space-2); }
  .product-card .pc-name { font-size: 0.8rem; }
  .product-card .pc-price { font-size: 0.85rem; }
  .product-card .pc-add { width: 32px; height: 32px; }
  .product-card .pc-add svg { width: 15px; height: 15px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: var(--space-5); }
  /* On mobile the background image centers on its subject; overlay reads top→bottom
     with a warm-gold base so text + CTAs stay legible while the image still shows through */
  .hero--image { background-position: center; }
  .hero-overlay { background:
      radial-gradient(140% 60% at 20% 100%, rgba(184,135,45, calc(var(--hero-overlay, .62) * .3)) 0%, transparent 60%),
      linear-gradient(180deg,
        rgba(10,9,8, calc(var(--hero-overlay, .62) * .55)) 0%,
        rgba(10,9,8, calc(var(--hero-overlay, .62) + .1)) 55%,
        rgba(10,9,8, calc(var(--hero-overlay, .62) + .28)) 100%); }
  .hero p { font-size: 1rem; }
  .about-media, .about-media img, .about-placeholder { min-height: 260px; }
}
@media (max-width: 420px) {
  .container { padding: 0 var(--space-3); }
  /* Keep the three-column goal where physically reasonable */
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Toast notifications ---- */
.toast-host { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 40px); }
.toast { display: flex; align-items: center; gap: 10px; background: var(--charcoal); color: #fff; padding: 12px 16px; border-radius: var(--radius-btn); box-shadow: var(--shadow-lg); font-size: 0.9rem; font-weight: 500; opacity: 0; transform: translateY(12px); transition: opacity .28s ease, transform .28s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 0.8rem; font-weight: 700; background: var(--success); color: #fff; flex-shrink: 0; }
.toast--error .toast-ico { background: var(--error); }

/* ---- Add-to-cart busy state ---- */
.pc-add.is-busy, .btn.is-busy { opacity: .6; pointer-events: none; }

/* ---- Cart quantity stepper ---- */
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.qty-stepper button { width: 32px; height: 34px; border: none; background: var(--surface); cursor: pointer; font-size: 1rem; font-weight: 700; color: var(--charcoal); }
.qty-stepper button:hover { background: var(--surface-muted); }
.qty-stepper input { width: 46px; height: 34px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 768px) {
  .cart-layout { grid-template-columns: 1fr !important; }
  .toast-host { left: 12px; right: 12px; bottom: 12px; }
}

/* ---- Premium mobile drawer ---- */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(17,17,17,.5); opacity: 0; transition: opacity .28s ease; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; left: 0; height: 100%; width: min(86vw, 360px);
  background: var(--surface); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-close { background: none; border: none; font-size: 1.8rem; line-height: 1; color: var(--text-muted); cursor: pointer; width: 40px; height: 40px; }
.drawer-search { display: flex; align-items: center; gap: 8px; margin: 16px 20px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--surface-muted); color: var(--gray); }
.drawer-search input { flex: 1; border: none; background: none; padding: 11px 0; outline: none; }
.drawer-nav { padding: 4px 12px; }
.drawer-nav > a, .drawer-accordion { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 8px; font-size: 1rem; font-weight: 500; color: var(--text); border: none; background: none; text-align: left; cursor: pointer; border-radius: var(--radius-sm); }
.drawer-nav > a:hover, .drawer-accordion:hover { background: var(--surface-muted); }
.drawer-group .chev { transition: transform .2s; color: var(--gray); }
.drawer-group.open .chev { transform: rotate(90deg); }
.drawer-sub { display: none; padding: 2px 0 8px 14px; border-left: 2px solid var(--border); margin-left: 8px; }
.drawer-group.open .drawer-sub { display: block; }
.drawer-sub a { display: block; padding: 9px 10px; font-size: 0.92rem; color: var(--text-muted); border-radius: var(--radius-sm); }
.drawer-sub a:hover { background: var(--surface-muted); color: var(--gold); }
.drawer-section { border-top: 1px solid var(--border); margin-top: 8px; padding: 8px 12px; }
.drawer-line { display: flex; align-items: center; justify-content: space-between; padding: 13px 8px; font-size: 1rem; font-weight: 500; border-radius: var(--radius-sm); }
.drawer-line:hover { background: var(--surface-muted); }
.drawer-cart-badge { background: var(--gold); color: #fff; font-size: 0.72rem; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; }
.drawer-store { margin-top: auto; padding: 20px; border-top: 1px solid var(--border); background: var(--surface-muted); display: flex; flex-direction: column; gap: 3px; font-size: 0.86rem; color: var(--text-muted); }
.drawer-store strong { color: var(--charcoal); font-size: 0.95rem; }

/* ---- Brand partners ---- */
.partner-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
.partner-tile { display: grid; place-items: center; min-height: 96px; padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); transition: border-color .15s, box-shadow .15s; }
.partner-tile:hover { border-color: #c9c1ad; box-shadow: var(--shadow-sm); }
.partner-tile img { max-height: 52px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .2s, opacity .2s; }
.partner-tile:hover img { filter: grayscale(0); opacity: 1; }
.partner-tile .partner-name { font-weight: 600; color: var(--text-muted); text-align: center; font-size: 0.9rem; }
@media (max-width: 768px) { .partner-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-2); } .partner-tile { min-height: 72px; padding: var(--space-3); } }
@media (max-width: 420px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Checkout layout ---- */
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: var(--space-5); align-items: start; }
.checkout-heading { font-size: 1.02rem; margin: var(--space-5) 0 var(--space-3); }
.checkout-heading:first-child { margin-top: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-4); }

/* summary column */
.checkout-summary .card { position: sticky; top: 90px; }
.summary-lines { display: flex; flex-direction: column; gap: var(--space-3); }
.summary-line { display: flex; justify-content: space-between; gap: var(--space-4); font-size: 0.9rem; }
.summary-line-name { line-height: 1.35; }
.summary-line-total { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.25rem; font-weight: 800; }

/* choice options (fulfilment + payment) */
.choice-options { display: flex; flex-direction: column; gap: 10px; }
.choice-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-card); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice-option:hover { border-color: #c9c1ad; }
.choice-option input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; }
.choice-option:has(input:checked) { border-color: var(--gold); background: #f7efd9; box-shadow: inset 0 0 0 1px var(--gold); }
.choice-body { display: flex; flex-direction: column; gap: 2px; }
.choice-body .muted { font-size: 0.82rem; line-height: 1.35; }

@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary .card { position: static; }
  .checkout-summary { order: 2; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---- Bank transfer details on order page ---- */
.bank-details { display: grid; gap: 8px; }
.bank-details .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.bank-details .row:last-child { border-bottom: none; }
.bank-details .row b { font-variant-numeric: tabular-nums; }

/* ============================================================
   Customer account — premium dashboard
   ============================================================ */
.account-hero { background: linear-gradient(135deg, #171614 0%, #201d18 55%, #2a251c 100%); color: var(--off-white); position: relative; overflow: hidden; }
.account-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(184,135,45,.28), transparent 70%); }
.account-hero .container { position: relative; z-index: 1; }
.account-hero-inner { display: flex; align-items: center; gap: var(--space-5); padding: var(--space-7) 0; }
.account-avatar { width: 74px; height: 74px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #1b1b1b; display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; flex-shrink: 0; box-shadow: 0 6px 20px rgba(184,135,45,.4); }
.account-hero-text h1 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 2px 0 4px; }
.account-hero-text p { color: #c9c4b8; font-size: 0.95rem; }

.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-5); align-items: start; }
.account-nav { display: flex; flex-direction: column; gap: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-3); position: sticky; top: 90px; box-shadow: var(--shadow-sm); }
.account-nav a, .account-signout { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.92rem; font-weight: 500; color: var(--text); border: none; background: none; width: 100%; text-align: left; cursor: pointer; transition: background .14s, color .14s; }
.account-nav a svg, .account-signout svg { width: 19px; height: 19px; flex-shrink: 0; opacity: .85; }
.account-nav a span, .account-signout span { white-space: nowrap; }
.account-nav a:hover { background: var(--surface-muted); }
.account-nav a.active { background: var(--charcoal); color: #fff; box-shadow: var(--shadow-sm); }
.account-nav a.active svg { opacity: 1; color: var(--gold-light); }
.account-nav form { margin: 4px 0 0; border-top: 1px solid var(--border); padding-top: 4px; }
.account-signout { color: var(--error); }
.account-signout:hover { background: var(--error-bg); }

/* stat cards */
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.stat-tile { display: flex; align-items: center; gap: var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-4) var(--space-5); box-shadow: var(--shadow-sm); }
.stat-tile .stat-ico { width: 46px; height: 46px; border-radius: 12px; background: #f7efd9; color: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.stat-tile .stat-ico svg { width: 22px; height: 22px; }
.stat-tile .stat-num { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.stat-tile .stat-lbl { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }

/* quick actions — prominent grid cards */
.account-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.action-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: var(--space-5); min-height: 148px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); transition: border-color .15s, transform .12s, box-shadow .15s; }
.action-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.action-card .action-ico { width: 52px; height: 52px; border-radius: 13px; background: #f7efd9; color: var(--gold); display: grid; place-items: center; margin-bottom: var(--space-2); transition: background .15s, color .15s; }
.action-card:hover .action-ico { background: var(--gold); color: #fff; }
.action-card .action-ico svg { width: 24px; height: 24px; }
.action-card strong { font-size: 1rem; }
.action-card > span { font-size: 0.84rem; color: var(--text-muted); line-height: 1.4; }
@media (max-width: 900px) { .account-actions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .account-actions { grid-template-columns: 1fr; } .action-card { min-height: 0; flex-direction: row; align-items: center; } .action-card .action-ico { margin-bottom: 0; width: 44px; height: 44px; } }

/* order rows */
.order-list { display: flex; flex-direction: column; gap: var(--space-3); }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); transition: border-color .15s, box-shadow .15s; }
.order-row:hover { border-color: #c9c1ad; box-shadow: var(--shadow-sm); }
.order-row .order-no { font-weight: 700; }
.order-row .order-meta { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.order-row .order-right { display: flex; align-items: center; gap: var(--space-4); }
.order-row .order-total { font-weight: 700; font-variant-numeric: tabular-nums; }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-pending { background: #efece4; color: #8a857a; }
.pill-active { background: #f7efd9; color: var(--gold); }
.pill-success { background: var(--success-bg); color: var(--success); }
.pill-error { background: var(--error-bg); color: var(--error); }

/* section titles inside account */
.account-section-title { display: flex; align-items: center; justify-content: space-between; margin: var(--space-5) 0 var(--space-3); }
.account-section-title:first-child { margin-top: 0; }
.account-section-title h3 { font-size: 1.05rem; }

/* profile form sections */
.profile-card { max-width: 620px; }
.profile-section + .profile-section { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--border); }

@media (max-width: 900px) {
  .account-grid { grid-template-columns: 1fr; }
  /* Horizontal scrollable tab bar on mobile — labels stay visible, no odd empty box */
  .account-nav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; -webkit-overflow-scrolling: touch; }
  .account-nav a, .account-signout { width: auto; flex: 0 0 auto; padding: 10px 14px; }
  .account-nav a svg, .account-signout svg { opacity: 1; }
  .account-nav form { border-top: none; padding-top: 0; margin: 0; flex: 0 0 auto; }
  .account-stats { grid-template-columns: 1fr; }
}

/* ---- Line-item thumbnails (cart / checkout / orders) ---- */
.line-thumb { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-muted); }
.line-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.line-thumb-fallback { color: var(--gray); display: grid; place-items: center; }
.line-thumb-fallback svg { width: 45%; height: 45%; }
.line-item-cell { display: flex; align-items: center; gap: var(--space-3); }
.line-item-cell .line-item-text { min-width: 0; }
