/* ==========================================================================
   Storefront theme
   ========================================================================== */

:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #7a7a7a;
  --line: #e6e6e6;
  --line-soft: #f1f1f1;
  --bg: #ffffff;
  --bg-soft: #faf8f6;
  --brand: #b1332f;
  --brand-dark: #8f2724;
  --gold: #c9a227;
  --ok: #17914e;
  --danger: #d0342c;
  --radius: 10px;
  --max: 1400px;
  --header-h: 68px;
  --font-body: "Jost", "Segoe UI", system-ui, sans-serif;
  --font-head: "Cormorant Garamond", "Georgia", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

/* hidden = fallback for browsers without overflow:clip (older Safari) */
html { overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* safety net: nothing may bleed past the viewport edge */
  overflow-x: hidden;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  /* horizontal only — .section owns vertical padding, so a .wrap.section
     element keeps side padding instead of losing it to the later rule */
  padding-left: 20px;
  padding-right: 20px;
}

.icon {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  flex: 0 0 auto;
}
.icon-sm { width: 16px; height: 16px; }

/* ==========================================================================
   Header
   ========================================================================== */

.promo-bar {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-main {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--ink);
  border-radius: 6px;
  line-height: 1;
  flex: 0 0 auto;
}
.menu-toggle:hover { background: var(--bg-soft); }

.logo {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 0 1 auto;
  text-decoration: none;
}

.logo span { color: var(--brand); }

.logo-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.header-search {
  position: relative;
  flex: 1 1 auto;
  max-width: 460px;
  min-width: 140px;
}

.header-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 30px;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  outline: none;
  font-size: 0.88rem;
  transition: border-color 0.15s;
}

.header-search input:focus { border-color: var(--ink); background: #fff; }

.header-search .icon {
  position: absolute;
  left: 0.85rem; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 17px; height: 17px;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
}

.header-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.82rem;
  position: relative;
  transition: background 0.15s;
}

.header-link:hover { background: var(--bg-soft); }

.count-dot {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Nav */
.main-nav {
  border-top: 1px solid var(--line-soft);
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-item { position: relative; }

.nav-item > a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s;
}

.nav-item:hover > a { color: var(--brand); }

.dropdown-panel {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09);
  padding: 0.5rem;
  opacity: 0; visibility: hidden;
  transition: all 0.18s ease;
  z-index: 90;
}

.nav-item:hover .dropdown-panel {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.dropdown-panel a:hover { background: var(--bg-soft); color: var(--brand); }

.menu-toggle { display: none; padding: 0.5rem; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}

.hero-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 24 / 9;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, #f6efe9, #efe6f2);
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-caption {
  position: relative;
  text-align: center;
  padding: 2rem;
  max-width: 640px;
  z-index: 2;
}

.hero-caption h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.hero-caption p {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}

.hero-dots {
  position: absolute;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 3;
}

.hero-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.28);
  transition: all 0.2s;
}

.hero-dots button.active { background: var(--ink); width: 22px; border-radius: 5px; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.hero-arrow.prev { left: 1rem; }
.hero-arrow.next { right: 1rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.18s;
  white-space: nowrap;
}

.btn:hover { background: var(--brand); border-color: var(--brand); }

.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-outline.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-outline.active .icon { fill: #fff; stroke: #fff; }

.btn-brand { background: var(--brand); border-color: var(--brand); }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.74rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding-top: 3rem; padding-bottom: 3rem; }
.section.tight { padding-top: 2rem; padding-bottom: 2rem; }
.section.soft { background: var(--bg-soft); }

.section-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: 0.3rem;
}

.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.section-head .link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* Category tiles */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.cat-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(140deg, #f3ece6, #e9e2f0);
  display: grid;
  place-items: end center;
  padding: 1rem;
  transition: transform 0.25s;
}

.cat-tile:hover { transform: translateY(-4px); }

.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.cat-tile:hover img { transform: scale(1.05); }

.cat-tile span {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  z-index: 2;
}

/* ==========================================================================
   Product cards
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem 1rem;
}

.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.product-rail > * { scroll-snap-align: start; }

.product-card { position: relative; }

.product-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 3 / 4;
  margin-bottom: 0.65rem;
}

.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-media img { transform: scale(1.05); }

.product-tag {
  position: absolute;
  top: 0.6rem; left: 0.6rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

.product-tag.dark { background: var(--ink); }
.product-tag.gold { background: var(--gold); color: var(--ink); }

.wish-btn {
  position: absolute;
  top: 0.55rem; right: 0.55rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  place-items: center;
  z-index: 2;
  transition: color 0.2s, transform 0.2s;
  color: var(--ink-soft);
}

.wish-btn:hover { transform: scale(1.08); color: var(--brand); }
.wish-btn.active { color: var(--brand); }
.wish-btn.active .icon { fill: var(--brand); }

.product-oos {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 3;
}

.product-name {
  font-size: 0.88rem;
  font-weight: 400;
  margin: 0 0 0.25rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 600;
}

.product-price .was {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 400;
  font-size: 0.82rem;
}

.product-price .off {
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 600;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.stars { color: var(--gold); letter-spacing: 1px; }

/* ==========================================================================
   Catalog
   ========================================================================== */

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: #fff;
}

.filters-head,
.filters-foot,
.filter-backdrop,
.btn-filter-trigger,
.cat-pill-scroll {
  display: none;
}

/* Category Tree */
.category-tree {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cat-link {
  display: block;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.cat-link:hover {
  background: var(--bg-soft);
  color: var(--brand);
}
.cat-link.parent-cat {
  font-weight: 600;
  color: var(--ink);
  padding-top: 6px;
}
.cat-link.child-cat {
  padding-left: 18px;
  font-size: 0.82rem;
  color: var(--muted);
}
.cat-link.is-active {
  background: rgba(125, 29, 52, 0.08);
  color: var(--brand);
  font-weight: 600;
}

.filter-group { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line-soft); }
.filter-group:last-child { border: none; margin-bottom: 0; padding-bottom: 0; }

.filter-group h4 {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-weight: 600;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.22rem 0;
  cursor: pointer;
  color: var(--ink-soft);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.chip {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  transition: all 0.15s;
}

.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.swatch-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.swatch {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  display: block;
}

.swatch.active { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink); }

.price-row { display: flex; gap: 0.5rem; }

.field-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  outline: none;
  font-size: 0.88rem;
  background: #fff;
  transition: border-color 0.15s;
}

.field-input:focus { border-color: var(--ink); }

.catalog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.catalog-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.catalog-bar h1 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  margin: 0;
}

.catalog-bar .count { color: var(--muted); font-size: 0.85rem; }

.catalog-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sort-select {
  cursor: pointer;
  min-width: 170px;
  background-color: #fff;
}

/* Pagination */
.pager {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}

.pager a, .pager span {
  min-width: 36px; height: 36px;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.pager a:hover { border-color: var(--ink); }
.pager .active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ==========================================================================
   Product detail
   ========================================================================== */

.pdp {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.pdp-gallery { display: grid; grid-template-columns: 74px 1fr; gap: 0.75rem; }

.pdp-thumbs { display: flex; flex-direction: column; gap: 0.5rem; }

.pdp-thumbs img {
  width: 74px; aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s, border-color 0.15s;
}

.pdp-thumbs img:hover, .pdp-thumbs img.active { opacity: 1; border-color: var(--ink); }

.pdp-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 3/4;
}

.pdp-main img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info h1 {
  font-family: var(--font-head);
  font-size: 1.95rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.pdp-brand {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.pdp-price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1rem 0 0.3rem;
}

.pdp-price .now { font-size: 1.6rem; font-weight: 600; }
.pdp-price .was { color: var(--muted); text-decoration: line-through; }
.pdp-price .off { color: var(--ok); font-weight: 600; }

.pdp-tax { font-size: 0.78rem; color: var(--muted); }

.opt-group { margin-top: 1.4rem; }

.opt-group h4 {
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
  font-weight: 600;
}

.size-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.size-btn {
  min-width: 46px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.size-btn:hover { border-color: var(--ink); }
.size-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-btn:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.qty-box button { width: 38px; height: 42px; font-size: 1.05rem; }
.qty-box input { width: 46px; height: 42px; text-align: center; border: none; outline: none; }

.pdp-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.pdp-actions .btn { flex: 1; min-width: 160px; padding: 0.85rem 1.5rem; }

.usp-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.85rem;
  margin-top: 1.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.usp {
  text-align: center;
  font-size: 0.74rem;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

/* Reviews + write-review panel on the product page */
.pdp-reviews {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.usp .icon { color: var(--brand); }

.accordion { margin-top: 1.5rem; border-top: 1px solid var(--line); }

.accordion details { border-bottom: 1px solid var(--line); }

.accordion summary {
  padding: 0.9rem 0;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.1rem; color: var(--muted); }
.accordion details[open] summary::after { content: "−"; }

.accordion .body { padding: 0 0 1rem; font-size: 0.88rem; color: var(--ink-soft); }

/* ==========================================================================
   Cart / Checkout
   ========================================================================== */

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.cart-item img {
  width: 96px; aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-soft);
}

.cart-item h3 { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.2rem; }
.cart-item .meta { font-size: 0.8rem; color: var(--muted); }

.summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 12px);
}

.summary h3 {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.88rem;
}

.summary-row.total {
  border-top: 1px solid var(--line);
  margin-top: 0.6rem;
  padding-top: 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.coupon-row { display: flex; gap: 0.5rem; margin: 1rem 0; }
.coupon-row input { flex: 1; }

.ship-note {
  background: #f3f9f4;
  border: 1px dashed #b9e0c6;
  color: var(--ok);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.form-field textarea { min-height: 84px; resize: vertical; }

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

.pay-option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

.pay-option:hover { border-color: var(--ink); }
.pay-option input:checked ~ div { color: var(--ink); }
.pay-option strong { display: block; font-size: 0.9rem; font-weight: 500; }
.pay-option small { color: var(--muted); font-size: 0.78rem; }

/* ==========================================================================
   Account
   ========================================================================== */

.account-layout { display: grid; grid-template-columns: 230px 1fr; gap: 2rem; align-items: start; }

.account-nav { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.account-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
}

.account-nav a:last-child { border-bottom: none; }
.account-nav a:hover { background: var(--bg-soft); }
.account-nav a.active { background: var(--ink); color: #fff; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }

.stat-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.stat-box small { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-box strong { display: block; font-size: 1.4rem; margin-top: 0.25rem; }

.auth-page { display: grid; place-items: center; padding: 3.5rem 1rem; }
.auth-box { width: min(420px, 100%); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.auth-box h1 { font-family: var(--font-head); font-size: 1.8rem; margin-bottom: 0.3rem; }
.auth-box > p { color: var(--muted); font-size: 0.88rem; margin: 0 0 1.5rem; }
.auth-box .form-field { margin-bottom: 0.9rem; }

/* Badges / alerts */
.badge {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #f1f1f1;
  color: var(--ink-soft);
}

.badge.ok { background: #e8f6ee; color: var(--ok); }
.badge.warn { background: #fdf3e0; color: #b3781a; }
.badge.info { background: #e9f2fd; color: #1f6fd0; }
.badge.danger { background: #fdecea; color: var(--danger); }
.badge.muted { background: #f1f1f1; color: var(--muted); }

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert.success { background: #eefaf2; border-color: #bfe6ce; color: var(--ok); }
.alert.error { background: #fdeeed; border-color: #f3c8c5; color: var(--danger); }
.alert.info { background: #eef4fb; border-color: #c4d9f0; color: #1f5b94; }
.alert ul { margin: 0; padding-left: 1.1rem; list-style: disc; }

.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--muted); }
.empty-state .icon { width: 40px; height: 40px; margin: 0 auto 0.85rem; opacity: 0.4; }
.empty-state h3 { font-family: var(--font-head); font-size: 1.4rem; color: var(--ink); margin-bottom: 0.4rem; }

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  font-size: 0.84rem;
}

.trust .icon { color: var(--brand); width: 26px; height: 26px; }
.trust strong { display: block; font-weight: 500; }
.trust small { color: var(--muted); font-size: 0.75rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: #d8d8d8;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid h4 {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.9rem;
  font-weight: 600;
}

.footer-grid a, .footer-grid p { font-size: 0.85rem; color: #b9b9b9; line-height: 2; }
.footer-grid a:hover { color: #fff; }

.footer-logo { font-family: var(--font-head); font-size: 1.6rem; color: #fff; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.6rem; }

.news-form { display: flex; gap: 0.5rem; margin-top: 0.9rem; max-width: 330px; }

.news-form input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  color: #fff;
  outline: none;
  font-size: 0.85rem;
}

.news-form input::placeholder { color: #8b8b8b; }

.news-form button {
  padding: 0.6rem 1.1rem;
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #8b8b8b;
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(300px, 84vw);
  background: #fff;
  z-index: 200;
  transform: translateX(-100%);
  visibility: hidden; /* offscreen alone still expands scroll area on mobile browsers */
  transition: transform 0.28s ease, visibility 0.28s ease;
  overflow-y: auto;
  padding: 1.25rem;
}

.drawer.open { transform: translateX(0); visibility: visible; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 190;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s;
}

.drawer-backdrop.open { opacity: 1; visibility: visible; }

.drawer a {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
}

.drawer .sub a { padding-left: 1rem; font-size: 0.84rem; color: var(--muted); }

/* ==========================================================
   Account area
   ========================================================== */
.account-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.account-user .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  flex-shrink: 0;
}

.account-user strong { display: block; font-size: 0.88rem; font-weight: 500; }
.account-user small { color: var(--muted); font-size: 0.74rem; word-break: break-all; }

.account-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }

.stat-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.stat-tile span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.stat-tile .icon { color: var(--brand); }
.stat-tile strong { display: block; font-size: 1.5rem; font-weight: 600; margin-top: 0.4rem; }

.mini-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.mini-table td { padding: 0.6rem 0; border-bottom: 1px solid var(--line-soft); }
.mini-table tr:last-child td { border-bottom: none; }

.order-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
}

.pill {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f1f1f1;
  color: var(--muted);
  white-space: nowrap;
}

.pill-pending { background: #fdf3e0; color: #b3781a; }
.pill-confirmed,
.pill-packed { background: #e9f2fd; color: #1f6fd0; }
.pill-shipped { background: #ece8fb; color: #5b46c9; }
.pill-delivered { background: #e8f6ee; color: var(--ok); }
.pill-cancelled,
.pill-returned { background: #fdecea; color: var(--danger); }

.track-strip { display: flex; justify-content: space-between; gap: 0.5rem; }

.track-step { flex: 1; text-align: center; position: relative; }

.track-step::before {
  content: "";
  position: absolute;
  top: 13px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line);
}

.track-step:first-child::before { display: none; }
.track-step.done::before { background: var(--ok); }

.track-step .dot {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  color: #fff;
}

.track-step.done .dot { background: var(--ok); border-color: var(--ok); }
.track-step small { font-size: 0.72rem; color: var(--muted); }
.track-step.done small { color: var(--ink); font-weight: 500; }

.icon-xs { width: 13px; height: 13px; }

.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }

.address-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.address-card p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.7; margin: 0.6rem 0; }

/* ==========================================================
   Auth cards
   ========================================================== */
.auth-card {
  width: min(430px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.05);
}

.auth-card h1 { font-family: var(--font-head); font-size: 1.8rem; margin-bottom: 0.3rem; }
.auth-card .sub { color: var(--muted); font-size: 0.88rem; margin: 0 0 1.6rem; }
.auth-alt { text-align: center; font-size: 0.85rem; color: var(--muted); margin: 1.2rem 0 0; }
.auth-alt a { color: var(--brand); font-weight: 500; }

/* ==========================================================
   OTP verification
   ========================================================== */
.otp-card { width: min(470px, 100%); }

.otp-targets { margin-bottom: 1.4rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.otp-target {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
}
.otp-target + .otp-target { border-top: 1px solid var(--line); }
.otp-label { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; width: 52px; flex: 0 0 auto; }
.otp-value { font-weight: 500; word-break: break-all; }
.otp-badge {
  margin-left: auto;
  background: #eefaf2;
  color: var(--ok);
  border: 1px solid #bfe6ce;
  border-radius: 20px;
  padding: 0.12rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.dev-otp-hint {
  background: #fff8e6;
  border: 1px solid #f0d98c;
  color: #7a5c00;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  margin-bottom: 1.3rem;
}
.dev-otp-hint code { font-weight: 700; letter-spacing: 0.15em; }

.otp-group { margin-bottom: 1.15rem; }
.otp-group-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.otp-ttl { font-style: normal; color: var(--muted); font-weight: 400; font-size: 0.72rem; }

.otp-inputs { display: flex; gap: 0.55rem; }
.otp-box {
  flex: 1 1 0;
  min-width: 0;
  max-width: 46px;
  height: 52px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.otp-box:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06); }

.otp-error { color: var(--danger); font-size: 0.78rem; margin: 0.45rem 0 0; }

.otp-resends { display: flex; gap: 0.6rem; justify-content: center; margin-top: 1.1rem; }
.otp-resends form { flex: 1; }
.otp-resends .btn { width: 100%; }

/* Payment instructions on order success page */
.pay-instructions {
  border-top: 1px solid var(--line);
  margin-top: 0.85rem;
  padding: 1rem 0 0.25rem;
  text-align: center;
}
.pay-instructions h4 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 0.7rem; }
.upi-qr {
  width: 190px;
  height: 190px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  background: #fff;
  margin-bottom: 0.6rem;
}
.pay-instructions .bank-details {
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  line-height: 1.7;
  text-align: left;
  display: inline-block;
}
.pay-instructions .pay-note { color: var(--muted); font-size: 0.8rem; margin-top: 0.6rem; }

/* ==========================================================
   CMS content
   ========================================================== */
.cms { max-width: 820px; margin: 0 auto; }
.cms h1 { font-family: var(--font-head); font-size: 2rem; margin-bottom: 1.25rem; }
.cms h2 { font-family: var(--font-head); font-size: 1.35rem; margin: 1.8rem 0 0.6rem; }
.cms h3 { font-size: 1.05rem; margin: 1.4rem 0 0.5rem; }
.cms p, .cms li { color: var(--ink-soft); line-height: 1.85; font-size: 0.94rem; }
.cms ul, .cms ol { padding-left: 1.3rem; margin: 0.6rem 0; list-style: disc; }
.cms ol { list-style: decimal; }
.cms a { color: var(--brand); text-decoration: underline; }

/* Responsive */
@media (max-width: 1024px) {
  /* Catalog: Mobile / Tablet Off-canvas Drawer & Products-First Layout */
  .catalog-layout {
    display: block;
  }

  /* Backdrop overlay */
  .filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 290;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.26s ease, visibility 0.26s ease;
  }
  .filter-backdrop.open {
    opacity: 1;
    visibility: visible;
  }

  /* Side Drawer: slides in from right side like native e-commerce apps */
  .filters {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    height: 100%;
    max-height: 100vh;
    background: #fff;
    z-index: 300;
    display: flex;
    flex-direction: column;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.16);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
    visibility: hidden;
  }
  .filters.open {
    transform: translateX(0);
    visibility: visible;
  }

  /* Drawer Header */
  .filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
    flex-shrink: 0;
  }
  .filters-head-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
  }
  .filters-head-title .icon,
  .filters-head-title .icon-sm {
    width: 18px;
    height: 18px;
    color: var(--brand);
  }
  .filter-count-badge {
    background: var(--brand);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  .filters-close-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s;
  }
  .filters-close-btn:hover {
    background: var(--bg-soft);
  }
  .filters-close-btn svg,
  .filters-close-btn .icon {
    width: 20px;
    height: 20px;
  }

  /* Drawer Body: scrollable category list and filter options */
  .filters-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.15rem;
  }

  /* Drawer Footer */
  .filters-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    border-top: 1px solid var(--line);
    background: #fff;
    flex-shrink: 0;
  }
  .filters-foot .btn {
    text-align: center;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.6rem 0.75rem;
  }

  /* Top Category Pills (Swipeable on mobile) */
  .cat-pill-scroll {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.2rem 0 0.75rem;
    margin-bottom: 0.6rem;
  }
  .cat-pill-scroll::-webkit-scrollbar {
    display: none;
  }
  .cat-pill {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    background: var(--bg-soft);
    color: var(--ink-soft);
    text-decoration: none;
    border: 1px solid var(--line);
    transition: all 0.15s ease;
  }
  .cat-pill:hover {
    border-color: var(--brand);
    color: var(--brand);
  }
  .cat-pill.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    font-weight: 600;
  }

  /* Mobile Filter Trigger Button */
  .btn-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s;
  }
  .btn-filter-trigger:hover {
    border-color: var(--ink);
    background: var(--bg-soft);
  }
  .btn-filter-trigger .icon,
  .btn-filter-trigger .icon-sm {
    width: 15px;
    height: 15px;
    color: var(--brand);
  }

  .catalog-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .pdp { grid-template-columns: 1fr; gap: 1.5rem; }
  .pdp-reviews { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .account-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .wrap { padding-left: 12px; padding-right: 12px; }
  .header-main { height: 58px; gap: 8px; justify-content: space-between; }
  .header-search { display: none; }
  .main-nav { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; flex: 0 0 32px; }
  .logo { font-size: 1.15rem; gap: 0.35rem; min-width: 0; display: inline-flex; align-items: center; }
  .logo-img { width: 32px; height: 32px; flex: 0 0 32px; }
  .logo-text { font-size: 1.1rem; display: inline-flex; align-items: center; }
  .header-actions { margin-left: auto; gap: 2px; flex: 0 0 auto; }
  .header-link { padding: 4px; min-width: 30px; height: 32px; flex: 0 0 30px; justify-content: center; }
  .header-link span { display: none; }
  .hero-slide { aspect-ratio: 4 / 5; }

  /* Catalog Mobile Action Strip */
  .catalog-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }
  .catalog-title-wrap {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
  }
  .catalog-title-wrap h1 {
    font-size: 1.35rem;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .catalog-title-wrap .count {
    font-size: 0.76rem;
    color: var(--muted);
    flex-shrink: 0;
  }
  .catalog-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
  }
  .btn-filter-trigger {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 0.52rem 0.6rem;
    font-size: 0.8rem;
  }
  .sort-form {
    flex: 1;
    min-width: 0;
  }
  .sort-select {
    width: 100%;
    min-width: 0; /* base rule sets 170px — that overflows half of a small screen */
    padding: 0.52rem 0.6rem;
    font-size: 0.8rem;
  }

  .section { padding-top: 2.25rem; padding-bottom: 2.25rem; }
  .section.tight { padding-top: 1.4rem; padding-bottom: 1.4rem; }
  .panel { padding: 1.1rem; }

  .pdp-gallery { grid-template-columns: 1fr; }
  .pdp-main { order: -1; } /* main image first, thumbnails scroll underneath */
  .pdp-thumbs { flex-direction: row; overflow-x: auto; padding-bottom: 0.25rem; }
  .pdp-thumbs img { width: 60px; flex: 0 0 auto; }
  .pdp-info h1 { font-size: 1.5rem; }
  .pdp-actions .btn { min-width: 130px; padding: 0.8rem 1rem; }
  .cart-item { grid-template-columns: 78px 1fr; }
  .cart-item img { width: 78px; }
  .col-3, .col-4, .col-6 { grid-column: span 12; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem 0.75rem; }
  .order-row { grid-template-columns: 1fr auto; row-gap: 0.6rem; }
  .track-step small { font-size: 0.62rem; }
  .auth-card { padding: 1.5rem; }
  .otp-box { max-width: 42px; height: 48px; font-size: 1.15rem; }
  .otp-resends { flex-direction: column; }

  /* Footer: brand block full-width, then links in two columns */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 1.25rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 0.35rem; text-align: center; }
}

@media (max-width: 480px) {
  .wrap { padding-left: 8px; padding-right: 8px; }
  .header-main { gap: 6px; height: 56px; }
  .menu-toggle { width: 30px; height: 30px; flex: 0 0 30px; }
  .logo { gap: 0.3rem; }
  .logo-img { width: 30px; height: 30px; flex: 0 0 30px; }
  .logo-text { font-size: 1rem; }
  .header-actions { gap: 1px; }
  .header-link { min-width: 28px; height: 30px; flex: 0 0 28px; padding: 3px; }
  .promo-bar { font-size: 0.72rem; padding: 0.35rem 0.5rem; }
  .pdp-info h1 { font-size: 1.32rem; }
  .pdp-actions { gap: 0.5rem; }
  .pdp-actions .btn { min-width: 0; flex: 1 1 100%; }
  .otp-box { max-width: 38px; height: 46px; font-size: 1.05rem; }
  .otp-inputs { gap: 0.4rem; }
  .auth-card { padding: 1.2rem 1rem; }
  .product-grid { gap: 0.85rem 0.6rem; }
  .footer-grid { gap: 1.4rem 0.9rem; }
}

@media (max-width: 360px) {
  .wrap { padding-left: 6px; padding-right: 6px; }
  .header-main { gap: 4px; }
  .menu-toggle { width: 28px; height: 28px; flex: 0 0 28px; }
  .logo-img { width: 28px; height: 28px; flex: 0 0 28px; }
  .logo-text { font-size: 0.92rem; }
  .header-link { min-width: 26px; height: 28px; flex: 0 0 26px; padding: 2px; }
}
