/* =============================================================================
   Hotch — style.css  (storefront)
   Header, hero (honeycomb signature), buttons, product cards, category tiles,
   sections, forms, auth, alerts, footer, responsive.
   ========================================================================== */

/* ============================== Buttons ================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1;
  padding: .8rem 1.5rem;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease),
              background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--honey-light), var(--honey));
  color: var(--ink);
  box-shadow: var(--sh-honey);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(244, 169, 0, .4); transform: translateY(-2px); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--charcoal); transform: translateY(-2px); box-shadow: var(--sh); }

.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--honey); color: var(--honey-deep); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2rem; font-size: var(--fs-md); }
.btn-sm { padding: .55rem 1rem; font-size: var(--fs-sm); }

/* ============================== Header ================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(251, 250, 247, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo — hexagon mark + wordmark (signature) */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}
.logo-mark { width: 42px; height: 46px; flex-shrink: 0; color: var(--ink); }
.logo-mark .cell { fill: var(--honey); }
.logo-mark .cell-2 { fill: var(--ink); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font-size: 1.4rem; font-weight: 800; letter-spacing: .02em; color: var(--ink); }
.logo-text span { font-size: .68rem; color: var(--gray); font-weight: 500; }

/* Search */
.header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
  display: flex;
  align-items: center;
}
.header-search input {
  width: 100%;
  height: 46px;
  padding: 0 3rem 0 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.header-search input:focus {
  outline: none;
  border-color: var(--honey);
  box-shadow: 0 0 0 4px var(--honey-tint);
}
.header-search button {
  position: absolute;
  inset-inline-end: 6px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--honey);
  color: var(--ink);
}
.header-search button svg { width: 18px; height: 18px; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: .35rem; margin-inline-start: auto; }
.icon-btn {
  position: relative;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r);
  color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: var(--honey-tint); color: var(--honey-deep); }
.icon-btn svg { width: 23px; height: 23px; }
.icon-btn .badge {
  position: absolute;
  top: 6px; inset-inline-end: 6px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  display: grid; place-items: center;
  font-size: .68rem; font-weight: 700;
  background: var(--danger); color: var(--white);
  border-radius: var(--r-pill);
  border: 2px solid var(--paper);
}
.menu-toggle { display: none; }

/* Primary nav */
.nav-bar { border-bottom: 1px solid var(--line); background: var(--white); }
.nav-list { display: flex; align-items: center; gap: .25rem; height: 52px; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .9rem;
  border-radius: var(--r);
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--graphite);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-list a:hover { background: var(--mist); color: var(--ink); }
.nav-list a svg { width: 18px; height: 18px; opacity: .7; }
.nav-list .active { color: var(--honey-deep); background: var(--honey-tint); }

/* ================================ Hero ================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, var(--charcoal) 100%);
  color: var(--white);
  padding: 5rem 0 5.5rem;
  isolation: isolate;
}
/* Honeycomb pattern layer (signature element) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../images/honeycomb.svg");
  background-size: 116px;
  opacity: .10;
}
.hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -12%;
  top: -30%;
  width: 620px; height: 620px;
  z-index: -1;
  background: radial-gradient(circle, rgba(244, 169, 0, .55) 0%, rgba(244, 169, 0, 0) 62%);
  filter: blur(10px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--honey-light);
  background: rgba(244, 169, 0, .12);
  border: 1px solid rgba(244, 169, 0, .3);
  padding: .4rem 1rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.5rem;
}
.hero-eyebrow svg { width: 16px; height: 16px; }
.hero h1 {
  font-size: var(--fs-3xl);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.hero h1 .accent {
  color: var(--honey);
  position: relative;
  white-space: nowrap;
}
.hero p {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, .72);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-stat b { display: block; font-size: var(--fs-2xl); color: var(--honey); font-weight: 800; }
.hero-stat span { font-size: var(--fs-sm); color: rgba(255, 255, 255, .6); }

/* Hero art — stacked hexagon cells */
.hero-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero-hex {
  width: 300px; height: 330px;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, .5));
}
.hero-hex .c1 { fill: var(--honey); }
.hero-hex .c2 { fill: var(--honey-light); }
.hero-hex .c3 { fill: #FFFFFF; }
.hero-hex .c4 { fill: var(--honey-dark); }
.hero-hex .cg { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.15); stroke-width: 1.5; }

/* ============================== Sections =============================== */
.section { padding: 4rem 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-head .titles { display: flex; flex-direction: column; gap: .3rem; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--honey-deep);
}
.section-eyebrow::before {
  content: "";
  width: 22px; height: 3px;
  background: var(--honey);
  border-radius: var(--r-pill);
}
.section-head h2 { font-size: var(--fs-2xl); }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--graphite);
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.section-link:hover { color: var(--honey-deep); gap: .6rem; }
.section-link svg { width: 18px; height: 18px; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }

/* ============================ Category tiles =========================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  padding: 1.6rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.cat-tile:hover {
  transform: translateY(-4px);
  border-color: var(--honey);
  box-shadow: var(--sh);
}
.cat-hex {
  width: 66px; height: 72px;
  display: grid; place-items: center;
  color: var(--honey-deep);
  position: relative;
}
.cat-hex svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cat-hex svg.bg path { fill: var(--honey-tint); transition: fill .2s var(--ease); }
.cat-tile:hover .cat-hex svg.bg path { fill: var(--honey); }
.cat-hex .ic { position: relative; width: 30px; height: 30px; z-index: 1; }
.cat-tile:hover .cat-hex .ic { color: var(--ink); }
.cat-tile span { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }

/* ============================ Product cards ============================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.product-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--honey-light);
}
.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--mist);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .placeholder { width: 40%; opacity: .35; color: var(--honey-dark); }
.product-badges {
  position: absolute;
  top: 12px; inset-inline-start: 12px;
  display: flex; flex-direction: column; gap: .35rem;
  z-index: 2;
}
.tag-badge {
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: .22rem .6rem;
  border-radius: var(--r-pill);
  color: var(--white);
}
.tag-off { background: var(--danger); }
.tag-new { background: var(--success); }
.tag-hot { background: var(--honey-dark); color: var(--ink); }
.wish-btn {
  position: absolute;
  top: 12px; inset-inline-end: 12px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .9);
  border-radius: 50%;
  color: var(--graphite);
  z-index: 2;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.wish-btn:hover { color: var(--danger); background: var(--white); }
.wish-btn svg { width: 20px; height: 20px; }
.product-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; gap: .55rem; }
.product-cat { font-size: var(--fs-xs); color: var(--gray); font-weight: 500; }
.product-title {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3em;
}
.product-title:hover { color: var(--honey-deep); }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { display: flex; flex-direction: column; line-height: 1.2; }
.price .old { font-size: var(--fs-xs); color: var(--gray-2); text-decoration: line-through; }
.price .now { font-size: var(--fs-md); font-weight: 800; color: var(--ink); }
.price .now small { font-size: var(--fs-xs); font-weight: 500; color: var(--gray); }
.add-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--white);
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.add-btn:hover { background: var(--honey); color: var(--ink); }
.add-btn svg { width: 21px; height: 21px; }

/* ============================= Empty state ============================= */
.empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3.5rem 1rem;
  background: var(--white);
  border: 1.5px dashed var(--line);
  border-radius: var(--r-lg);
  text-align: center;
}
.empty .empty-hex { width: 72px; height: 80px; color: var(--honey); opacity: .8; }
.empty h3 { font-size: var(--fs-lg); color: var(--ink); }
.empty p { color: var(--gray); max-width: 42ch; }

/* ============================ Feature strip =========================== */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.feature {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.2rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
}
.feature-ic {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: var(--r);
  background: var(--honey-tint);
  color: var(--honey-deep);
}
.feature-ic svg { width: 24px; height: 24px; }
.feature b { display: block; font-size: var(--fs-base); color: var(--ink); }
.feature span { font-size: var(--fs-xs); color: var(--gray); }

/* ============================== Banner ================================= */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--honey), var(--honey-light));
  border-radius: var(--r-xl);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--ink);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/honeycomb.svg");
  background-size: 90px;
  opacity: .14;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: var(--fs-2xl); margin-bottom: .4rem; }
.cta-band p { color: rgba(15, 15, 16, .72); font-weight: 500; }

/* ================================ Forms =============================== */
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--graphite); }
.field .hint { font-size: var(--fs-xs); color: var(--gray); }
.input, .select, .textarea {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.textarea { height: auto; padding: .8rem 1rem; min-height: 120px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--honey);
  box-shadow: 0 0 0 4px var(--honey-tint);
}
.input-group { position: relative; }
.input-group .in-icon {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  color: var(--gray);
  pointer-events: none;
}
.input-group .input { padding-inline-start: 2.8rem; }

/* ============================== Auth card ============================= */
.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: var(--sh);
}
.auth-card .auth-mark { width: 56px; height: 62px; margin: 0 auto 1.2rem; color: var(--ink); display: block; }
.auth-card h1 { font-size: var(--fs-xl); text-align: center; margin-bottom: .4rem; }
.auth-card .sub { text-align: center; color: var(--gray); font-size: var(--fs-sm); margin-bottom: 1.8rem; }
.auth-alt { text-align: center; margin-top: 1.4rem; font-size: var(--fs-sm); color: var(--gray); }
.auth-alt a { color: var(--honey-deep); font-weight: 600; }
.auth-links { text-align: center; margin-top: 1.4rem; font-size: var(--fs-sm); color: var(--gray);
  display: flex; gap: .6rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.auth-links a { color: var(--honey-deep); font-weight: 600; }

/* ============================== Alerts ================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .9rem 1.1rem;
  border-radius: var(--r);
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--success-bg); color: #14713f; border-color: #bfe6cf; }
.alert-error   { background: var(--danger-bg);  color: #a12318; border-color: #f2c4bf; }
.alert-warn    { background: var(--warn-bg);     color: #8a6100; border-color: #f0dca8; }
.alert-info    { background: var(--info-bg);     color: #1c4c86; border-color: #c2d8f0; }

/* Flash stack (fixed) */
.flash-stack {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  inset-inline: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  pointer-events: none;
  padding: 0 1rem;
}
.flash-stack .alert {
  pointer-events: auto;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--sh);
  margin: 0;
  animation: flashIn .3s var(--ease);
}
@keyframes flashIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ============================== Footer ================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  padding: 3.5rem 0 0;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand .logo-text b { color: var(--white); }
.footer-brand p { margin: 1rem 0 1.2rem; font-size: var(--fs-sm); color: rgba(255, 255, 255, .55); max-width: 34ch; }
.footer-contact { display: flex; flex-direction: column; gap: .6rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); color: rgba(255, 255, 255, .7); }
.footer-contact a:hover { color: var(--honey); }
.footer-contact svg { width: 18px; height: 18px; color: var(--honey); }
.footer-col h4 { color: var(--white); font-size: var(--fs-base); margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { font-size: var(--fs-sm); color: rgba(255, 255, 255, .62); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--honey); }
.newsletter-box { display: flex; gap: .5rem; margin-top: 1rem; }
.newsletter-box input {
  flex: 1;
  height: 46px;
  padding: 0 1rem;
  border-radius: var(--r);
  border: 1.5px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .06);
  color: var(--white);
}
.newsletter-box input::placeholder { color: rgba(255, 255, 255, .4); }
.newsletter-box input:focus { outline: none; border-color: var(--honey); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .45);
}
.footer-socials { display: flex; gap: .5rem; }
.footer-socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .7);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.footer-socials a:hover { background: var(--honey); color: var(--ink); }
.footer-socials svg { width: 19px; height: 19px; }

/* ============================ Breadcrumb ============================== */
.crumb { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); color: var(--gray); padding: 1.5rem 0; }
.crumb a:hover { color: var(--honey-deep); }
.crumb svg { width: 16px; height: 16px; opacity: .6; }

/* ============================ Mobile menu ============================= */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 400;
  visibility: hidden;
  pointer-events: none;
}
.mobile-drawer.open { visibility: visible; pointer-events: auto; }
.drawer-scrim {
  position: absolute; inset: 0;
  background: rgba(15, 15, 16, .5);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.mobile-drawer.open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(320px, 84vw);
  background: var(--white);
  box-shadow: var(--sh-lg);
  transform: translateX(100%);
  transition: transform .28s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  overflow-y: auto;
}
[dir="rtl"] .drawer-panel { transform: translateX(-100%); }
.mobile-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.drawer-nav { display: flex; flex-direction: column; gap: .2rem; }
.drawer-nav a {
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem 1rem;
  border-radius: var(--r);
  font-weight: 500;
  color: var(--graphite);
}
.drawer-nav a:hover { background: var(--mist); color: var(--ink); }
.drawer-nav a svg { width: 20px; height: 20px; opacity: .7; }
.drawer-count {
  margin-inline-start: auto;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 700;
  background: var(--danger); color: var(--white);
  border-radius: var(--r-pill);
}
.drawer-count[hidden] { display: none; }

/* ============================== Responsive ============================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; min-height: 240px; }
  .hero-hex { width: 220px; height: 240px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --fs-3xl: 2.1rem; --fs-2xl: 1.6rem; --header-h: 68px; }
  .nav-bar { display: none; }
  .menu-toggle { display: grid; }
  .header-search { display: none; }
  .header-search.mobile-inline {
    display: flex; order: 3; flex-basis: 100%; max-width: none; padding-bottom: .8rem;
  }
  .header-inner { flex-wrap: wrap; gap: .5rem; height: auto; min-height: var(--header-h); }
  .header-actions { flex-shrink: 0; }
  /* Account + cart move into the drawer on mobile; only search (and the menu
     button) stay in the header. */
  .ha-desktop { display: none; }
  .logo { min-width: 0; }
  .logo-text { min-width: 0; overflow: hidden; }
  .logo-text b { white-space: nowrap; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 3rem 0 3.5rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .cta-band { flex-direction: column; text-align: center; padding: 2rem; }
  .section { padding: 2.5rem 0; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .features { grid-template-columns: 1fr; }
  .auth-card { padding: 1.8rem 1.4rem; }
  .logo-text span { display: none; }
}

/* Narrow phones (≤430px): the header only carries search + menu here, so there
   is room to keep comfortable touch targets; just tighten the spacing a little. */
@media (max-width: 430px) {
  .header-inner { gap: .4rem; }
  .logo { gap: .5rem; }
  .logo-mark { width: 38px; height: 42px; }
  .logo-text b { font-size: 1.25rem; }
  .header-actions { gap: .2rem; }
}

/* =============================================================================
   Phase 3 — Storefront catalog: catalog header, shop listing + filters,
   pagination, product detail page, category browse.
   ========================================================================== */

.muted { color: var(--gray); }

/* ----------------------------- Catalog header --------------------------- */
.catalog-head {
  background: linear-gradient(135deg, var(--honey-wash), var(--white));
  border-bottom: 1px solid var(--line);
}
.catalog-head-inner { display: flex; align-items: center; gap: 1.4rem; padding: 2rem 0; }
.catalog-head .ch-logo,
.catalog-head .ch-icon {
  flex-shrink: 0; width: 84px; height: 84px; border-radius: var(--r-lg);
  display: grid; place-items: center; background: var(--white);
  border: 1.5px solid var(--line); box-shadow: var(--sh-sm); overflow: hidden;
}
.catalog-head .ch-icon { --ch-accent: var(--honey); color: var(--ch-accent); background: color-mix(in srgb, var(--ch-accent) 12%, #fff); }
.catalog-head .ch-icon svg { width: 40px; height: 40px; }
.catalog-head .ch-icon img,
.catalog-head .ch-logo img { width: 100%; height: 100%; object-fit: contain; padding: .4rem; }
.catalog-head .ch-eyebrow { font-size: var(--fs-sm); font-weight: 600; color: var(--honey-deep); }
.catalog-head h1 { font-size: var(--fs-2xl); margin: .2rem 0; }
.catalog-head .ch-copy p { color: var(--gray); max-width: 70ch; font-size: var(--fs-sm); }

/* ------------------------------- Shop layout ---------------------------- */
.shop-section { padding-top: 1.5rem; }
.shop-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 1.6rem; align-items: start; }

.shop-sidebar {
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 1.2rem; position: sticky; top: calc(var(--header-h) + 1rem);
}
.filter-head { display: none; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.filter-head b { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-md); }
.filter-head b svg { width: 18px; height: 18px; color: var(--honey-deep); }
.filter-group { padding-block: 1rem; border-bottom: 1px solid var(--line-2); }
.filter-group:first-of-type { padding-top: 0; }
.filter-group:last-of-type { border-bottom: 0; }
.filter-title { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: var(--fs-sm); margin-bottom: .8rem; color: var(--ink); }
.filter-title svg { width: 17px; height: 17px; color: var(--honey-deep); }
.filter-list { display: flex; flex-direction: column; gap: .1rem; }
.filter-list.scroll { max-height: 230px; overflow-y: auto; margin-inline-end: -.4rem; padding-inline-end: .4rem; }
.filter-check {
  display: flex; align-items: center; gap: .55rem; padding: .45rem .5rem;
  border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--graphite); cursor: pointer;
}
.filter-check:hover { background: var(--paper); }
.filter-check.strong { font-weight: 600; color: var(--ink); }
.filter-check input { width: 17px; height: 17px; accent-color: var(--honey-dark); flex-shrink: 0; }
.price-range { display: flex; align-items: center; gap: .5rem; }
.price-range .input { height: 42px; padding: 0 .7rem; font-size: var(--fs-sm); text-align: center; }
.price-range span { font-size: var(--fs-xs); color: var(--gray); }
.filter-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.2rem; }
.filter-scrim { display: none; }

/* ------------------------------- Shop main ------------------------------ */
.shop-main { min-width: 0; }
.shop-toolbar {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r);
  padding: .7rem 1rem;
}
.shop-count { font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.filter-toggle { display: none; }
.sort-form { margin-inline-start: auto; display: flex; align-items: center; gap: .6rem; }
.sort-label { font-size: var(--fs-sm); color: var(--gray); white-space: nowrap; }
.sort-select { height: 42px; width: auto; min-width: 150px; padding: 0 2.4rem 0 1rem; font-size: var(--fs-sm);
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B73' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left .8rem center; background-size: 18px; }

.active-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.3rem; }
.fchip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .5rem .35rem .8rem;
  background: var(--honey-tint); color: var(--honey-deep); border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600;
}
.fchip svg { width: 14px; height: 14px; }
.fchip:hover { background: var(--honey); color: var(--ink); }
.fchip-clear { background: var(--mist); color: var(--graphite); padding-inline: .8rem; }
.fchip-clear:hover { background: var(--danger); color: #fff; }

.shop-grid { grid-template-columns: repeat(3, 1fr); }

/* ------------------------------ Pagination ------------------------------ */
.pagination { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: 2.4rem; flex-wrap: wrap; }
.pg-btn {
  min-width: 42px; height: 42px; padding: 0 .7rem; display: inline-grid; place-items: center;
  border-radius: var(--r); border: 1.5px solid var(--line); background: var(--white);
  font-weight: 700; font-size: var(--fs-sm); color: var(--graphite);
  transition: all .18s var(--ease);
}
.pg-btn svg { width: 18px; height: 18px; }
.pg-btn:hover { border-color: var(--honey); color: var(--honey-deep); }
.pg-btn.cur { background: var(--ink); border-color: var(--ink); color: #fff; }
.pg-btn.dis { opacity: .4; pointer-events: none; }
.pg-gap { padding: 0 .3rem; color: var(--gray-2); }

/* =========================== Product detail ============================= */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; }

.pdp-gallery { position: sticky; top: calc(var(--header-h) + 1rem); }
.pdp-main {
  position: relative; aspect-ratio: 1 / 1; background: var(--mist);
  border: 1.5px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
  display: grid; place-items: center;
}
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-placeholder { width: 34%; color: var(--honey-dark); opacity: .3; }
.pdp-badges { position: absolute; top: 14px; inset-inline-start: 14px; display: flex; flex-direction: column; gap: .4rem; }
.pdp-thumbs { display: flex; gap: .7rem; margin-top: .9rem; flex-wrap: wrap; }
.pdp-thumb {
  width: 74px; height: 74px; border-radius: var(--r); overflow: hidden;
  border: 2px solid var(--line); background: var(--mist); cursor: pointer; padding: 0;
  transition: border-color .18s var(--ease);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb:hover { border-color: var(--honey-light); }
.pdp-thumb.active { border-color: var(--honey); }

.pdp-info { display: flex; flex-direction: column; }
.pdp-brand { display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
  padding: .35rem .7rem; border: 1.5px solid var(--line); border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; color: var(--graphite); margin-bottom: 1rem; }
.pdp-brand img { width: 20px; height: 20px; object-fit: contain; }
.pdp-brand:hover { border-color: var(--honey); color: var(--honey-deep); }
.pdp-title { font-size: var(--fs-2xl); line-height: 1.35; margin-bottom: .8rem; }
.pdp-lead { color: var(--graphite); line-height: 1.9; margin-bottom: 1.4rem; }

.pdp-price-box {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: 1.2rem 1.4rem; background: var(--honey-wash); border: 1.5px solid var(--honey-light);
  border-radius: var(--r-lg); margin-bottom: 1.2rem;
}
.pdp-off-badge { background: var(--danger); color: #fff; font-weight: 800; font-size: var(--fs-sm); padding: .2rem .6rem; border-radius: var(--r-pill); }
.pdp-price-old { color: var(--gray-2); text-decoration: line-through; font-size: var(--fs-md); }
.pdp-price-now { font-size: var(--fs-2xl); font-weight: 800; color: var(--ink); margin-inline-start: auto; }
.pdp-price-now small { font-size: var(--fs-sm); font-weight: 500; color: var(--gray); }

.pdp-stock { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 1.4rem; }
.pdp-stock svg { width: 19px; height: 19px; }
.pdp-stock.ok { color: var(--success); }
.pdp-stock.no { color: var(--danger); }

.pdp-buy { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; height: 52px; }
.qty-btn { width: 46px; height: 100%; background: var(--paper); font-size: 1.3rem; font-weight: 700; color: var(--graphite); cursor: pointer; border: none; }
.qty-btn:hover { background: var(--honey-tint); color: var(--honey-deep); }
.qty-input { width: 54px; height: 100%; text-align: center; border: none; border-inline: 1.5px solid var(--line); font-weight: 700; font-size: var(--fs-md); background: var(--white); }
.pdp-add { flex: 1; min-width: 180px; }
.pdp-wish { width: 52px; height: 52px; border: 1.5px solid var(--line); border-radius: var(--r); color: var(--graphite); }
.pdp-wish:hover { border-color: var(--danger); color: var(--danger); }

.pdp-meta { border-top: 1px solid var(--line); padding-top: 1.2rem; display: flex; flex-direction: column; gap: .7rem; }
.pdp-meta li { display: flex; gap: .8rem; font-size: var(--fs-sm); }
.pdp-meta li > span { color: var(--gray); min-width: 90px; }
.pdp-meta li > b { color: var(--ink); font-weight: 600; }
.pdp-links a:hover { color: var(--honey-deep); }
.pdp-tags { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.pdp-tag { padding: .2rem .6rem; background: var(--mist); border-radius: var(--r-pill); font-size: var(--fs-xs); color: var(--graphite); }
.pdp-tag:hover { background: var(--honey-tint); color: var(--honey-deep); }

/* Description + specs */
.pdp-details { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.6rem; margin-top: 3rem; align-items: start; }
.pdp-desc, .pdp-specs { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem 1.8rem; }
.pdp-h { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-lg); margin-bottom: 1.1rem; }
.pdp-h svg { width: 20px; height: 20px; color: var(--honey-deep); }
.prose { color: var(--graphite); line-height: 2; font-size: var(--fs-base); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: start; padding: .7rem 0; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); vertical-align: top; }
.spec-table th { color: var(--gray); font-weight: 500; width: 45%; }
.spec-table td { color: var(--ink); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.pdp-related { margin-top: 3.5rem; }

/* ============================ Category browse =========================== */
.cats-browse { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cat-block { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.cat-block:hover { border-color: var(--honey-light); box-shadow: var(--sh); }
.cat-block-head { display: flex; align-items: center; gap: .9rem; padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--line-2); }
.cb-ic { --cb-accent: var(--honey); flex-shrink: 0; width: 52px; height: 52px; border-radius: var(--r); display: grid; place-items: center; background: color-mix(in srgb, var(--cb-accent) 14%, #fff); color: var(--cb-accent); overflow: hidden; }
.cb-ic svg { width: 26px; height: 26px; }
.cb-ic img { width: 100%; height: 100%; object-fit: cover; }
.cb-name { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.cb-name b { font-size: var(--fs-md); color: var(--ink); }
.cb-name small { font-size: var(--fs-xs); color: var(--gray); }
.cb-go { color: var(--gray-2); }
.cat-block:hover .cb-go { color: var(--honey-deep); }
.cb-children { padding: .8rem 1rem; display: flex; flex-direction: column; gap: .1rem; }
.cb-children a { display: flex; align-items: center; justify-content: space-between; padding: .5rem .6rem; border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--graphite); }
.cb-children a:hover { background: var(--paper); color: var(--honey-deep); }
.cb-children a span { font-size: var(--fs-xs); color: var(--gray-2); background: var(--mist); border-radius: var(--r-pill); padding: .05rem .5rem; }

/* ============================== Responsive ============================= */
@media (max-width: 1024px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .cats-browse { grid-template-columns: repeat(2, 1fr); }
  .pdp-details { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 1.6rem; }
  .pdp-gallery { position: static; }
}
@media (max-width: 768px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; }
  /* Off-canvas filter drawer. Physical right/translateX are used on purpose:
     mixing logical insets with a physical transform is what previously left the
     panel parked half-way inside the viewport in RTL. `visibility` guarantees
     nothing is painted while closed. */
  .shop-sidebar {
    position: fixed;
    top: 0; bottom: 0; right: 0; left: auto;
    z-index: 420; width: min(330px, 88vw);
    border-radius: 0; border: 0; box-shadow: var(--sh-lg);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .28s var(--ease), visibility 0s linear .28s;
  }
  [dir="rtl"] .shop-sidebar { transform: translateX(100%); }
  .shop-sidebar.open,
  [dir="rtl"] .shop-sidebar.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .28s var(--ease), visibility 0s;
  }
  .filter-head { display: flex; position: sticky; top: 0; background: var(--white); padding-block: .2rem .8rem; z-index: 1; }
  .filter-scrim.open { display: block; position: fixed; inset: 0; z-index: 410; background: rgba(15,15,16,.5); }
  .sort-form { margin-inline-start: 0; }
  .shop-toolbar { flex-wrap: wrap; }
  .catalog-head-inner { gap: 1rem; }
  .catalog-head .ch-logo, .catalog-head .ch-icon { width: 64px; height: 64px; }
}
@media (max-width: 480px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .cats-browse { grid-template-columns: 1fr; }
  .pdp-price-now { font-size: var(--fs-xl); }
  .shop-count { font-size: var(--fs-xs); }
}

/* =============================================================================
   Customer account panel (dashboard)
   ========================================================================== */
.account-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.acc-profile {
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.acc-avatar {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--honey-light), var(--honey)); color: var(--ink);
  font-size: 1.9rem; font-weight: 800; margin-bottom: .3rem;
}
.acc-name { font-size: var(--fs-md); color: var(--ink); }
.acc-meta { width: 100%; display: flex; flex-direction: column; gap: .5rem; margin: .4rem 0 1rem; text-align: start; }
.acc-meta li { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); color: var(--graphite); }
.acc-meta li svg { width: 17px; height: 17px; color: var(--gray); flex-shrink: 0; }

.acc-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.acc-link {
  display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.acc-link:hover { border-color: var(--honey-light); box-shadow: var(--sh); transform: translateY(-2px); }
.acc-link-ic {
  width: 46px; height: 46px; border-radius: var(--r); display: grid; place-items: center;
  background: var(--honey-tint); color: var(--honey-deep); flex-shrink: 0;
}
.acc-link-ic svg { width: 22px; height: 22px; }
.acc-link-body { flex: 1; display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.acc-link-body b { color: var(--ink); font-size: var(--fs-base); }
.acc-link-body small { color: var(--gray); font-size: var(--fs-xs); }
.acc-link > svg { width: 18px; height: 18px; color: var(--gray-2); }
.acc-link:hover > svg { color: var(--honey-deep); }

.acc-note {
  display: flex; gap: .7rem; margin-top: 1.2rem; padding: 1.1rem 1.3rem;
  background: var(--info-bg); border: 1px solid color-mix(in srgb, var(--info) 30%, #fff);
  border-radius: var(--r-lg); color: var(--graphite); font-size: var(--fs-sm); line-height: 1.9;
}
.acc-note svg { width: 20px; height: 20px; color: var(--info); flex-shrink: 0; margin-top: .15rem; }

@media (max-width: 768px) {
  .account-grid { grid-template-columns: 1fr; }
  .acc-links { grid-template-columns: 1fr; }
}

/* =============================================================================
   Phase 4 — Cart, Checkout & Order confirmation
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }

/* Product-card add button wrapped in a form */
.add-form { margin: 0; display: inline-flex; }

/* ------------------------------- Cart page ------------------------------ */
.cart-empty { text-align: center; padding: 3.5rem 1rem; }
.cart-empty-ic { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--honey-tint); color: var(--honey-deep); margin-bottom: 1rem; }
.cart-empty-ic svg { width: 40px; height: 40px; }
.cart-empty h3 { font-size: var(--fs-xl); color: var(--ink); margin-bottom: .4rem; }
.cart-empty p { color: var(--gray); margin-bottom: 1.4rem; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.6rem; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: .8rem; }
.cart-row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto auto auto; gap: 1rem; align-items: center;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: .8rem;
}
.cart-thumb { width: 92px; height: 92px; border-radius: var(--r); overflow: hidden; background: var(--paper);
  display: grid; place-items: center; flex-shrink: 0; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .placeholder svg { width: 34px; height: 34px; color: var(--gray-2); }
.cart-info { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.cart-name { color: var(--ink); font-weight: 600; font-size: var(--fs-base); line-height: 1.6; }
.cart-name:hover { color: var(--honey-deep); }
.cart-unit { color: var(--gray); font-size: var(--fs-sm); }
.cart-qty { display: inline-flex; align-items: center; gap: .3rem; }
.qty-form { margin: 0; }
.cart-qty .qty-btn { width: 34px; height: 34px; border: 1.5px solid var(--line); background: var(--white);
  border-radius: var(--r-sm); font-size: 1.1rem; color: var(--ink); cursor: pointer; line-height: 1;
  transition: border-color .15s var(--ease), background .15s var(--ease); }
.cart-qty .qty-btn:hover { border-color: var(--honey); background: var(--honey-wash); }
.qty-val { min-width: 32px; text-align: center; font-weight: 700; color: var(--ink); }
.cart-line { font-weight: 700; color: var(--ink); white-space: nowrap; }
.cart-line small { font-size: .7em; font-weight: 500; color: var(--gray); }
.cart-remove { margin: 0; }
.cart-remove-btn { width: 38px; height: 38px; display: grid; place-items: center; border: none; cursor: pointer;
  background: var(--danger-bg); color: var(--danger); border-radius: var(--r); transition: background .15s var(--ease); }
.cart-remove-btn:hover { background: var(--danger); color: #fff; }
.cart-remove-btn svg { width: 18px; height: 18px; }

/* ------------------------- Summary (cart + checkout) -------------------- */
.cart-summary, .checkout-summary {
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem;
  position: sticky; top: calc(var(--header-h) + 1rem);
}
.cart-summary-title { font-size: var(--fs-lg); color: var(--ink); margin-bottom: 1rem; }
.coupon-form { display: flex; gap: .5rem; margin-bottom: 1.1rem; }
.coupon-form .input-group { flex: 1; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1.1rem;
  padding: .5rem .7rem; background: var(--success-bg); border-radius: var(--r); }
.coupon-chip { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--success); font-size: var(--fs-sm); }
.coupon-chip svg { width: 17px; height: 17px; }
.coupon-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: var(--fs-sm); font-weight: 600; }

.sum-rows { display: flex; flex-direction: column; gap: .7rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.sum-rows li { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-sm); color: var(--graphite); }
.sum-rows li b { color: var(--ink); font-weight: 600; }
.sum-off b { color: var(--success) !important; }
.sum-ship b, .sum-rows li b { white-space: nowrap; }
.sum-total { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; margin-bottom: 1rem;
  border-top: 2px solid var(--line-2); }
.sum-total span { color: var(--ink); font-weight: 700; }
.sum-total b { color: var(--honey-deep); font-size: var(--fs-lg); font-weight: 800; }
.sum-hint { font-size: var(--fs-xs); color: var(--gray); line-height: 1.8; margin-bottom: 1rem; }

/* ------------------------------ Checkout -------------------------------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.6rem; align-items: start; }
.checkout-main { display: flex; flex-direction: column; gap: 1.2rem; }
.checkout-card { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; }
.checkout-card h3 { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-md); color: var(--ink); margin-bottom: 1.1rem; }
.checkout-card h3 svg { width: 20px; height: 20px; color: var(--honey-deep); }
.checkout-card textarea.input { resize: vertical; min-height: 62px; font-family: inherit; }

.ship-list { display: flex; flex-direction: column; gap: .7rem; }
.ship-opt { position: relative; cursor: pointer; display: block; }
.ship-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ship-box { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.1rem;
  border: 1.5px solid var(--line); border-radius: var(--r); transition: border-color .15s var(--ease), background .15s var(--ease); }
.ship-box b { color: var(--ink); font-weight: 600; font-size: var(--fs-base); }
.ship-cost { color: var(--graphite); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }
.ship-opt:hover .ship-box { border-color: var(--honey-light); }
.ship-opt input:checked + .ship-box { border-color: var(--honey); background: var(--honey-wash); box-shadow: 0 0 0 3px var(--honey-tint); }

.co-items { display: flex; flex-direction: column; gap: .6rem; padding-bottom: 1rem; margin-bottom: 0; border-bottom: 1px solid var(--line); }
.co-items li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem; align-items: baseline; font-size: var(--fs-sm); }
.co-q { color: var(--honey-deep); font-weight: 700; }
.co-n { color: var(--graphite); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-p { color: var(--ink); font-weight: 600; white-space: nowrap; }
.co-p small { font-size: .72em; color: var(--gray); font-weight: 500; }
.co-pay-note { display: flex; gap: .5rem; margin-top: 1rem; padding: .9rem 1rem; background: var(--info-bg);
  border-radius: var(--r); color: var(--graphite); font-size: var(--fs-xs); line-height: 1.9; }
.co-pay-note svg { width: 18px; height: 18px; color: var(--info); flex-shrink: 0; margin-top: .1rem; }

.pdp-cart-form { display: flex; gap: .8rem; flex: 1; align-items: stretch; }

/* ------------------------- Order confirmation --------------------------- */
.order-done { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.order-done-ic { display: inline-grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  background: var(--success-bg); color: var(--success); margin-bottom: 1rem; }
.order-done-ic svg { width: 46px; height: 46px; }
.order-done h2 { font-size: var(--fs-2xl); color: var(--ink); margin-bottom: .5rem; }
.order-done p { color: var(--gray); margin-bottom: 1.2rem; }
.order-meta { display: inline-flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: center; }
.order-no { font-size: var(--fs-sm); color: var(--graphite); }
.order-no b { color: var(--ink); }
.order-status { padding: .35rem .9rem; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700;
  background: var(--honey-tint); color: var(--honey-deep); }
.order-status.status-pending { background: #fff4d6; color: #92600a; }
.order-status.status-paid, .order-status.status-completed { background: var(--success-bg); color: var(--success); }

.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.4rem; align-items: start; max-width: 960px; margin: 0 auto; }
.order-box { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; }
.order-box h3 { font-size: var(--fs-md); color: var(--ink); margin-bottom: 1rem; }
.order-info { display: flex; flex-direction: column; gap: .8rem; }
.order-info li { display: grid; grid-template-columns: 68px 1fr; gap: .6rem; font-size: var(--fs-sm); }
.order-info li span { color: var(--gray); }
.order-info li b { color: var(--ink); font-weight: 600; line-height: 1.7; }
.order-pay-note { display: flex; gap: .5rem; margin: 1.1rem 0; padding: .9rem 1rem; background: var(--info-bg);
  border-radius: var(--r); color: var(--graphite); font-size: var(--fs-xs); line-height: 1.9; }
.order-pay-note svg { width: 18px; height: 18px; color: var(--info); flex-shrink: 0; margin-top: .1rem; }
.order-actions { display: flex; flex-direction: column; gap: .6rem; }

/* --------------------------- Add-to-cart toast -------------------------- */
.cart-toast { position: fixed; inset-block-end: 1.4rem; inset-inline-start: 50%; transform: translateX(-50%) translateY(1.5rem);
  background: var(--ink); color: #fff; padding: .85rem 1.3rem; border-radius: var(--r-pill); font-size: var(--fs-sm);
  font-weight: 600; box-shadow: var(--sh-lg); display: flex; align-items: center; gap: .5rem; opacity: 0;
  pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); z-index: 1200; }
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cart-toast svg { width: 18px; height: 18px; color: var(--honey); }
.cart-toast.is-error svg { color: var(--danger); }

@media (max-width: 900px) {
  .cart-layout, .checkout-layout, .order-grid { grid-template-columns: 1fr; }
  .cart-summary, .checkout-summary { position: static; }
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 68px minmax(0, 1fr) auto; grid-auto-rows: auto; row-gap: .6rem; }
  .cart-thumb { width: 68px; height: 68px; }
  .cart-qty { grid-column: 2 / 3; }
  .cart-line { grid-column: 3 / 4; grid-row: 1 / 2; }
  .cart-remove { grid-column: 3 / 4; grid-row: 2 / 3; justify-self: end; }
}

/* =============================================================================
   Phase 5 — Payment page & confirmation status
   ========================================================================== */
.pay-order-line { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; justify-content: space-between; align-items: center;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.3rem; margin-bottom: 1.2rem; }
.pay-order-line span { color: var(--graphite); font-size: var(--fs-sm); }
.pay-order-line b { color: var(--ink); }
.pay-amount { color: var(--honey-deep) !important; font-size: var(--fs-lg); font-weight: 800; }

.pay-box { flex-direction: column; align-items: flex-start; gap: .3rem; }
.pay-name { color: var(--ink); font-weight: 700; font-size: var(--fs-base); }
.pay-desc { color: var(--gray); font-size: var(--fs-xs); line-height: 1.8; }

.order-pay-note.is-paid { background: var(--success-bg); color: #14663f; }
.order-pay-note.is-paid svg { color: var(--success); }
.order-pay-note.is-failed { background: var(--danger-bg); color: #a12318; }
.order-pay-note.is-failed svg { color: var(--danger); }

/* =============================================================================
   Phase 6 — Customer account panel, OTP verify & order status badges
   ========================================================================== */

/* Order status badge — extend Phase 4 set to cover every status */
.order-status.status-processing { background: var(--info-bg, #e3f4f8); color: #0b6b83; }
.order-status.status-shipped    { background: #e7e9ff; color: #3b3ba6; }
.order-status.status-canceled   { background: #ececec; color: #666; }
.order-status.status-refunded   { background: #ffe8d6; color: #a1521a; }
.order-status.status-failed     { background: var(--danger-bg, #fdecea); color: #a12318; }

/* Profile aside extras */
.acc-mobile { direction: ltr; color: var(--gray); font-size: var(--fs-sm); margin-top: .15rem; }
.acc-joined { color: var(--gray); font-size: var(--fs-xs); margin: .5rem 0 1rem; }

/* Main column */
.acc-main { display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; }

/* Stats */
.acc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.acc-stat { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.1rem; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: border-color .15s, transform .15s; }
.acc-stat:hover { border-color: var(--honey); transform: translateY(-2px); }
.acc-stat .as-ic { color: var(--honey-deep); }
.acc-stat .as-ic svg { width: 26px; height: 26px; }
.acc-stat .as-val { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.acc-stat .as-lbl { font-size: var(--fs-xs); color: var(--gray); }

/* Cards on the account main column */
.acc-card { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.acc-card-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.acc-card-head h3 { font-size: var(--fs-md); }
.acc-card-head a { font-size: var(--fs-xs); color: var(--honey-deep); text-decoration: none; display: inline-flex; align-items: center; gap: .2rem; }
.acc-card-head a svg { width: 14px; height: 14px; }

.acc-orders { padding: .4rem 1.2rem 1rem; }
.acc-orders li { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line-2); }
.acc-orders li:last-child { border-bottom: none; }
.acc-orders .ao-num { direction: ltr; text-align: start; font-weight: 700; color: var(--ink); text-decoration: none; }
.acc-orders .ao-num:hover { color: var(--honey-deep); }
.acc-orders .ao-date { font-size: var(--fs-xs); }
.acc-orders .ao-total { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; color: var(--ink); }
.acc-orders .order-status { grid-column: 1; justify-self: start; }

.acc-empty { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2rem 1rem; text-align: center; color: var(--gray); }
.acc-empty svg { width: 40px; height: 40px; color: var(--line-3, #d8d2c6); }

/* Quick nav row */
.acc-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.acc-nav a { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1rem; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; transition: border-color .15s; }
.acc-nav a:hover { border-color: var(--honey); }
.acc-nav a svg { width: 18px; height: 18px; color: var(--honey-deep); }

/* Orders list page */
.acc-order-list { display: flex; flex-direction: column; gap: .8rem; }
.acc-order-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: .8rem; align-items: center; padding: 1rem 1.2rem; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: border-color .15s; }
.acc-order-row:hover { border-color: var(--honey); }
.aor-main { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.aor-main b { color: var(--ink); direction: ltr; text-align: start; }
.aor-total { font-weight: 700; color: var(--ink); white-space: nowrap; }
.aor-go svg { width: 18px; height: 18px; color: var(--gray); }

/* Simple pager */
.acc-pager { display: flex; justify-content: center; gap: .4rem; margin-top: 1.6rem; }
.acc-pager a, .acc-pager span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--white); color: var(--graphite); text-decoration: none; font-weight: 600; }
.acc-pager a:hover { border-color: var(--honey); }
.acc-pager .cur { background: var(--honey); border-color: var(--honey); color: var(--ink); }
.acc-pager .dis { border: none; background: transparent; }

/* Address book */
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.addr-card { position: relative; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem; }
.addr-default { position: absolute; inset-block-start: 1rem; inset-inline-end: 1rem; display: inline-flex; align-items: center; gap: .25rem; font-size: var(--fs-xs); font-weight: 700; color: #1a7a4b; background: var(--success-bg, #e5f5ec); padding: .2rem .55rem; border-radius: var(--r-pill); }
.addr-default svg { width: 13px; height: 13px; }
.addr-name { font-weight: 700; color: var(--ink); }
.addr-phone { margin-top: .1rem; }
.addr-body { color: var(--graphite); font-size: var(--fs-sm); line-height: 1.9; margin: .6rem 0 1rem; }
.addr-actions { display: flex; gap: .5rem; align-items: center; }
.addr-actions form { margin: 0; }
.btn-danger-ghost { color: #a12318 !important; }
.btn-danger-ghost:hover { background: var(--danger-bg, #fdecea) !important; }

/* OTP verify */
.otp-input { text-align: center; letter-spacing: .5em; font-size: 1.3rem; font-weight: 700; padding-inline: 1rem; }
.otp-resend { margin-top: 1.1rem; text-align: center; }
.otp-resend form { margin: 0; }
.verify-note { display: flex; align-items: center; gap: .45rem; font-size: var(--fs-xs); color: var(--gray); margin: .2rem 0 .8rem; }
.verify-note svg { width: 15px; height: 15px; color: var(--honey-deep); }

@media (max-width: 560px) {
  .acc-order-row { grid-template-columns: 1fr auto; }
  .acc-order-row .order-status { grid-column: 1; justify-self: start; }
  .acc-order-row .aor-go { display: none; }
}

/* =============================================================================
   Phase 7 — Homepage banners, promo strip & newsletter feedback
   ========================================================================== */

.home-banners { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.home-banners:has(.home-banner:nth-child(2)) { grid-template-columns: 1fr 1fr; }
.home-banner {
  display: block;
  border-radius: var(--r-lg, 16px);
  overflow: hidden;
  border: 1.5px solid var(--line, #eee);
  line-height: 0;
}
.home-banner img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
a.home-banner:hover img { transform: scale(1.02); }

.promo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.promo-item { display: block; border-radius: var(--r, 12px); overflow: hidden; line-height: 0; border: 1.5px solid var(--line, #eee); }
.promo-item img { width: 100%; height: auto; display: block; }

.newsletter-msg {
  margin-top: .6rem;
  font-size: var(--fs-xs, .8rem);
  color: #7ee3a7;
}
.newsletter-msg.is-error { color: #ffb4a8; }

@media (max-width: 640px) {
  .home-banners, .home-banners:has(.home-banner:nth-child(2)) { grid-template-columns: 1fr; }
}

/* Contact page */
.contact-head { text-align: center; max-width: 560px; margin: 0 auto 2.2rem; }
.contact-head h1 { font-size: var(--fs-2xl); margin-bottom: .5rem; }
.contact-head p { color: var(--gray); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 720px; margin: 0 auto; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg, 16px); text-decoration: none; color: inherit; transition: border-color .15s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease); }
a.contact-card:hover { border-color: var(--honey); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.06); }
.contact-card.is-static { cursor: default; }
.contact-card-wide { grid-column: 1 / -1; }
.contact-card .cc-ic { flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center; background: var(--honey-tint, #fbf5e8); color: var(--honey-deep, #b7791f); border-radius: 12px; }
.contact-card .cc-ic svg { width: 22px; height: 22px; }
.contact-card .cc-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.contact-card .cc-label { font-size: var(--fs-xs); color: var(--gray); }
.contact-card .cc-value { font-weight: 600; word-break: break-word; }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }

/* Wishlist: active (favourited) state + toggle animation */
.product-card .wish-form { display: contents; }
.wish-btn.is-active { color: var(--danger); background: #fff; }
.wish-btn.is-active svg { fill: var(--danger); }
.pdp-wish.is-active { border-color: var(--danger); color: var(--danger); }
.pdp-wish.is-active svg { fill: var(--danger); }
.wish-pop { animation: wishPop .3s var(--ease); }
@keyframes wishPop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }

/* Small helper text under form fields (storefront) */
.form-hint { margin-top: .4rem; font-size: var(--fs-xs); color: var(--gray); line-height: 1.8; }
