/* =====================================================================
   MyKosherGrocery — clean modern grocery storefront
   ===================================================================== */

:root {
  /* one accent color — deep teal */
  --brand:       #0a6d7c;
  --brand-dark:  #064a55;
  --brand-soft:  #e3f1f3;

  /* warm accent for sales / banner */
  --accent:      #f59e0b;
  --accent-soft: #fef3c7;

  --ink:         #0f172a;
  --ink-2:       #334155;
  --muted:       #64748b;
  --line:        #e2e8f0;
  --line-soft:   #f1f5f9;
  --bg:          #fafafa;
  --red:         #d6334a;

  --radius:      12px;
  --radius-lg:   20px;
  --shadow-1:    0 1px 2px rgba(15,23,42,.04);
  --shadow-2:    0 6px 20px rgba(15,23,42,.06);
  --shadow-3:    0 14px 32px rgba(10,109,124,.12);

  --font-display: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* reset / base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* utility / announcement bar */
.utility-bar {
  background: var(--ink);
  color: #fff;
  font-size: .82rem;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: .01em;
}

/* sticky header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -.02em;
}
.brand em { font-style: normal; color: var(--brand); }
.brand-mark {
  width: 36px; height: 36px;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
}

/* search */
.search { position: relative; max-width: 580px; margin: 0 auto; width: 100%; }
.search input {
  width: 100%; height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 56px 0 18px;
  font-size: .95rem;
  background: var(--line-soft);
  transition: border-color .15s, background .15s;
}
.search input:focus { outline: none; border-color: var(--brand); background: #fff; }
.search button {
  position: absolute; right: 6px; top: 6px;
  height: 34px; width: 44px;
  border: 0; background: var(--brand); color: white;
  border-radius: 9px;
  font-size: 14px;
}
.search button:hover { background: var(--brand-dark); }

/* account / cart */
.user-actions { display: flex; gap: 10px; align-items: center; }
.icon-link {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 6px 14px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: .72rem;
  font-weight: 500;
  position: relative;
}
.icon-link:hover { background: var(--brand-soft); color: var(--brand-dark); }
.icon-link .icon { font-size: 1.35rem; line-height: 1; }
[data-cart-count] {
  position: absolute;
  top: 2px; right: 6px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--accent); color: var(--ink);
  font-size: .65rem; font-weight: 800;
  border-radius: 999px;
  display: grid; place-items: center;
}
[data-cart-count].is-empty { display: none; }

/* department ribbon */
.dept-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.dept-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex; gap: 2px;
  align-items: center;
}
.dept-bar a {
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .9rem;
  color: var(--ink-2);
  font-weight: 500;
}
.dept-bar a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.dept-trigger {
  background: var(--brand) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
}
.dept-trigger::after {
  content: ' ▾';
  font-size: .75em;
  opacity: .8;
}
.dept-trigger:hover { background: var(--brand-dark) !important; }

/* mega-menu */
.megamenu {
  position: absolute;
  left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  z-index: 40;
}
.megamenu[hidden] { display: none; }
.megamenu-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}
.megamenu-tile {
  display: flex; flex-direction: column;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .15s ease;
}
.megamenu-tile:hover { transform: translateY(-2px); }
.megamenu-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.megamenu-tile span {
  padding: 8px 4px 12px;
  font-size: .84rem; font-weight: 600;
  color: var(--ink);
}

/* hero — split: text left, featured-product card right */
.hero { max-width: 1320px; margin: 28px auto 0; padding: 0 24px; }
.hero-inner {
  position: relative;
  background: linear-gradient(115deg, #064a55 0%, #0a6d7c 50%, #16a39e 100%);
  border-radius: var(--radius-lg);
  padding: 56px 56px;
  color: #fff;
  overflow: hidden;
  min-height: 360px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero-text { display: flex; flex-direction: column; gap: 16px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.13);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  align-self: flex-start;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.btn-secondary {
  align-self: start;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  transition: background .15s, transform .1s;
}
.btn-secondary:hover { background: rgba(255,255,255,.22); color: #fff; transform: translateY(-2px); }

/* featured-product card inside the hero */
.hero-featured { position: relative; }
.hero-feat-tag {
  position: absolute;
  top: -10px; left: 14px;
  background: var(--accent);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  z-index: 2;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}
.hero-feat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 22px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: center;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.hero-feat-card img {
  width: 130px; height: 130px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--line-soft);
}
.hero-feat-text { display: flex; flex-direction: column; gap: 4px; }
.hero-feat-brand {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); font-weight: 700;
}
.hero-feat-name {
  font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.25;
  margin-bottom: 6px;
}
.hero-feat-pricing { display: flex; align-items: baseline; gap: 8px; }
.hero-feat-price { font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.hero-feat-old   { font-size: .9rem; color: var(--muted); text-decoration: line-through; }
.hero-feat-cta {
  display: inline-block;
  margin-top: 10px;
  background: var(--brand);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .85rem;
  align-self: start;
}
.hero-feat-cta:hover { background: var(--brand-dark); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 28px; }
  .hero-featured { margin-top: 24px; }
}
@media (max-width: 500px) {
  .hero-feat-card { grid-template-columns: 1fr; text-align: center; }
  .hero-feat-card img { margin: 0 auto; }
}

/* (decorative glows kept from previous hero design) */
.hero-inner::before {
  /* large soft glow */
  content: '';
  position: absolute;
  right: -120px; top: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle at center, rgba(255,255,255,.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner::after {
  /* warm accent corner */
  content: '';
  position: absolute;
  left: -80px; bottom: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle at center, rgba(245,158,11,.32) 0%, transparent 60%);
  pointer-events: none;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 0;
  max-width: 580px;
}
.hero p { margin: 0; max-width: 520px; opacity: .92; font-size: 1.05rem; }
.hero .btn-primary {
  align-self: start;
  background: #fff;
  color: var(--ink);
  border: 0;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: transform .1s ease, box-shadow .15s ease;
}
.hero .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.22); }

/* trust strip just below hero */
.trust-strip { max-width: 1320px; margin: 24px auto 0; padding: 0 24px; }
.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  font-size: .88rem; color: var(--ink-2);
}
.trust-item > div > strong { display: block; color: var(--ink); font-weight: 700; font-size: .92rem; }
.trust-item > div > span   { display: block; color: var(--muted); font-size: .8rem; margin-top: 1px; }
.trust-icon { display: inline-block; font-size: 1.6rem; flex: 0 0 auto; line-height: 1; }
@media (max-width: 920px) {
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
}

/* section title */
.section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 18px;
  color: var(--ink);
  letter-spacing: -.015em;
  font-weight: 700;
}

/* DEPARTMENT GRID (homepage) */
section.departments {
  max-width: 1320px;
  margin: 48px auto 0;
  padding: 0 24px;
}
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.dept-tile {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-align: center;
}
.dept-tile:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow-2);
}
.dept-photo {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--line-soft);
}
.dept-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.dept-tile:hover .dept-photo img { transform: scale(1.06); }
.dept-name {
  padding: 12px 8px 14px;
  font-size: .92rem; font-weight: 600;
  color: var(--ink);
}

/* PRODUCT RAILS — now grid, not horizontal scroll */
[data-rails] {
  max-width: 1320px;
  margin: 56px auto;
  padding: 0 24px;
  display: flex; flex-direction: column; gap: 56px;
}
.rail-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
}
.rail-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.02em;
}
.rail-more { font-size: .9rem; font-weight: 600; color: var(--brand); }
.rail-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* PRODUCT CARD — clean, simple, spacious */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
  border-color: var(--brand);
}
.product-image {
  position: relative;
  background:
    radial-gradient(circle at 50% 40%, rgba(10,109,124,.06) 0%, transparent 55%),
    #fafbfc;
  aspect-ratio: 1;
  display: grid; place-items: center;
  overflow: hidden;
}
/* Elegant Add button — centered icon, only on hover */
.btn-add-icon {
  position: absolute;
  top: 38%;            /* roughly centered over the image area */
  left: 50%;
  transform: translate(-50%, -50%) scale(.85);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: 0;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  cursor: pointer;
  transition: opacity .18s ease, transform .18s ease, background .15s ease;
  box-shadow: 0 12px 28px rgba(10,109,124,.32),
              0 4px 8px rgba(0,0,0,.15);
  z-index: 3;
}
.btn-add-icon svg { width: 26px; height: 26px; stroke-width: 2.4; }
.product-card:hover .btn-add-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.btn-add-icon:hover { background: var(--brand-dark); }
.btn-add-icon:active { transform: translate(-50%, -50%) scale(.92); }
.btn-add-icon.is-added {
  background: #16a34a;
  animation: addPulse .5s ease;
}
@keyframes addPulse {
  0% { transform: translate(-50%, -50%) scale(.85); }
  50% { transform: translate(-50%, -50%) scale(1.15); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
/* Small heart for wishlist — top-right of image */
.btn-fav {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  max-width: 34px;
  max-height: 34px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 0;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  opacity: 0;
  transition: opacity .18s ease, transform .15s ease;
  overflow: hidden;
}
.btn-fav svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px;
  max-height: 18px;
  stroke: var(--ink-2);
  fill: none;
  stroke-width: 2;
  display: block;
}
.product-card:hover .btn-fav { opacity: 1; }
.btn-fav:hover { transform: scale(1.08); }
.btn-fav.is-fav { opacity: 1; }
.btn-fav.is-fav svg { stroke: var(--red); fill: var(--red); }
.product-image::before {
  /* subtle "photo" placeholder ring so empty cards don't look broken */
  content: '';
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 20px rgba(15,23,42,.06);
  pointer-events: none;
}
.product-image img {
  width: 100%; height: 100%; object-fit: contain; padding: 18px;
  position: relative; z-index: 1;
}
.image-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--brand-dark);
  text-align: center;
  padding: 30px;
  letter-spacing: -.01em;
  position: relative; z-index: 1;
  background: transparent;
}

/* badges — clean inline chips, no gimmicks */
.product-badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px; flex-wrap: wrap;
  z-index: 2;
}
.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-kfp  { background: var(--accent-soft); color: #92400e; border: 1px solid #fde68a; }
.badge-cy   { background: var(--brand-soft);  color: var(--brand-dark); border: 1px solid #bae0e5; }
.badge-sale { background: var(--red); color: #fff; }

.product-body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; gap: 4px; flex: 1;
  border-top: 1px solid var(--line-soft);
}
.product-brand {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
}
.product-name {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  line-height: 1.35;
}
.product-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 6px;
}
.product-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  font-feature-settings: 'tnum';
  letter-spacing: -.01em;
}
.price-old {
  font-size: .85rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 500;
}
.product-unit { font-size: .8rem; color: var(--muted); }
/* .btn-add (the old bottom-of-card pill) is no longer used inside product cards
   — replaced by .btn-add-icon. Kept here for PDP / cart pages that still use it. */
.btn-add {
  background: var(--brand);
  color: #fff;
  border: 0;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .88rem;
  margin-top: 10px;
  letter-spacing: .01em;
  transition: background .15s ease, transform .08s ease;
}
.btn-add:hover  { background: var(--brand-dark); }
.btn-add:active { transform: scale(.97); }
.btn-add.is-added { background: var(--accent); color: var(--ink); }
/* New rule: card-bottom pill is hidden, since cards use the centered icon */
.product-card .product-body .btn-add { display: none; }

/* kosher filter chip strip — below trust strip */
.filter-strip { max-width: 1320px; margin: 28px auto 0; padding: 0 24px; }
.filter-strip-inner {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.filter-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: 6px;
}
.filter-chip {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--line-soft);
  transition: all .15s ease;
}
.filter-chip:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* shoppable recipes section */
.recipes {
  max-width: 1320px; margin: 64px auto 0;
  padding: 0 24px;
}
.recipes-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 20px;
}
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.recipe-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.recipe-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow-2);
}
.recipe-glyph {
  font-size: 4.5rem;
  text-align: center;
  padding: 28px 12px 18px;
  background: var(--brand-soft);
}
.recipe-bakery   .recipe-glyph { background: #fff7ed; }
.recipe-meat     .recipe-glyph { background: #fef2f2; }
.recipe-produce  .recipe-glyph { background: #ecfdf3; }
.recipe-pantry   .recipe-glyph { background: #fefce8; }
.recipe-body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 4px; flex: 1;
}
.recipe-meta {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 700;
}
.recipe-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 4px 0 8px;
  letter-spacing: -.01em;
}
.recipe-cta {
  margin-top: auto;
  font-size: .88rem;
  font-weight: 700;
  color: var(--brand);
}
@media (max-width: 920px) { .recipes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .recipes-grid { grid-template-columns: 1fr; } }

/* newsletter signup band */
.newsletter {
  max-width: 1320px; margin: 56px auto;
  padding: 0 24px;
}
.newsletter-inner {
  background:
    radial-gradient(circle at 90% 0%, rgba(245,158,11,.18), transparent 50%),
    linear-gradient(120deg, #0a6d7c, #064a55);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}
.newsletter-text h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 6px;
}
.newsletter-text p { margin: 0; opacity: .9; max-width: 460px; }
.newsletter-form { display: flex; gap: 8px; min-width: 380px; }
.newsletter-form input {
  flex: 1; padding: 13px 16px;
  border: 0; border-radius: 999px;
  font-size: .92rem;
  color: var(--ink);
  background: #fff;
}
.newsletter-form input:focus { outline: 2px solid var(--accent); }
.newsletter-form button {
  background: var(--accent);
  color: var(--ink);
  border: 0;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
  transition: transform .1s, box-shadow .15s;
}
.newsletter-form button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
@media (max-width: 800px) {
  .newsletter-inner { grid-template-columns: 1fr; padding: 36px 28px; }
  .newsletter-form { min-width: 0; }
}

/* holiday spotlight banner — between rails */
.holiday-banner {
  position: relative;
  background:
    radial-gradient(circle at 80% 30%, rgba(245,158,11,.22), transparent 60%),
    linear-gradient(120deg, #1e293b 0%, #0a6d7c 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
}
.holiday-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.13);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.holiday-banner h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.holiday-banner p { margin: 0 0 22px; opacity: .92; max-width: 480px; }
.holiday-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
}
.holiday-cta:hover { color: var(--ink); transform: translateY(-2px); }
.holiday-art {
  position: relative;
  height: 260px;
  display: grid; place-items: center;
}
.floater {
  position: absolute;
  font-size: 3.5rem;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.3));
  animation: floatY 6s ease-in-out infinite;
}
.f1 { left:  18%; top:  10%; animation-delay: 0s;   }
.f2 { left:  50%; top:  18%; animation-delay: .7s;  }
.f3 { left:  78%; top:  30%; animation-delay: 1.2s; }
.f4 { left:  35%; top:  60%; animation-delay: .3s; }
.f5 { left:  68%; top:  68%; animation-delay: 1.5s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@media (max-width: 800px) {
  .holiday-banner { grid-template-columns: 1fr; padding: 36px 28px; }
  .holiday-art { display: none; }
}

/* brands strip */
.brands {
  max-width: 1320px; margin: 64px auto;
  padding: 0 24px;
}
.brands-strip {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.brand-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  color: var(--ink-2);
  letter-spacing: -.005em;
  transition: border-color .15s, color .15s, transform .15s;
}
.brand-chip:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  transform: translateY(-2px);
}

/* ===== Product-card stepper (toggles with + icon based on cart qty) === */
.card-cart-control {
  position: absolute;
  top: 38%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}
/* When wrapped in .card-cart-control, the + button is no longer self-positioned —
   the wrapper handles position, hover-fade-in stays on the wrapper. */
.card-cart-control .btn-add-icon {
  position: static;
  transform: scale(.85);
  opacity: 0;
  pointer-events: none;
}
.product-card:hover .card-cart-control .btn-add-icon {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.card-cart-control .btn-add-icon:active { transform: scale(.92); }
.card-cart-control .btn-add-icon.is-added {
  background: #16a34a;
  animation: none;
}
.card-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--brand);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 6px 18px rgba(10, 109, 124, .35);
  opacity: 1;
  pointer-events: auto;
}
.card-step-btn {
  width: 36px; height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.card-step-btn:hover { background: rgba(255,255,255,.18); }
.card-step-btn svg { width: 18px; height: 18px; }
.card-step-qty {
  color: #fff;
  font-weight: 800;
  min-width: 28px;
  text-align: center;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}

/* ===== AUTH ====================================================== */
.auth-wrap { max-width: 480px; margin: 56px auto; padding: 0 24px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 36px; box-shadow: var(--shadow-2); }
.auth-card h1 { font-family: var(--font-display); font-size: 1.65rem; margin: 0 0 8px; letter-spacing:-.02em; color: var(--ink); font-weight: 800; }
.auth-sub { color: var(--muted); margin: 0 0 24px; font-size: .92rem; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.auth-form input { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: .95rem; font-family: var(--font-body); }
.auth-form input:focus { outline: none; border-color: var(--brand); }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-link-tiny { font-size: .85rem; color: var(--brand); align-self: flex-end; }
.auth-tos { font-size: .8rem; color: var(--muted); margin: 0; }
.auth-tos a { color: var(--brand); }
.auth-submit { background: var(--brand); color: #fff; border: 0; padding: 14px; border-radius: 10px; font-weight: 700; font-size: .95rem; cursor: pointer; transition: background .15s; }
.auth-submit:hover { background: var(--brand-dark); }
.auth-divider { text-align: center; margin: 22px 0; color: var(--muted); font-size: .85rem; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--line); }
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }
.auth-google { width: 100%; background: #fff; border: 1.5px solid var(--line); padding: 12px; border-radius: 10px; font-weight: 600; cursor: pointer; }
.auth-google:hover { border-color: var(--ink-2); }
.auth-footer { text-align: center; color: var(--muted); font-size: .9rem; margin: 22px 0 0; }
.auth-footer a { color: var(--brand); font-weight: 600; }

/* ===== ACCOUNT ==================================================== */
.account-wrap { max-width: 1280px; margin: 24px auto 64px; padding: 0 24px; display: grid; grid-template-columns: 260px 1fr; gap: 36px; }
.account-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; height: max-content; position: sticky; top: 120px; }
.account-side-user { padding: 10px 6px 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.account-side-user strong { color: var(--ink); font-size: 1rem; }
.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav a { padding: 10px 12px; border-radius: 8px; font-size: .92rem; color: var(--ink-2); font-weight: 500; }
.account-nav a:hover { background: var(--line-soft); color: var(--ink); }
.account-nav a.is-active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.account-main h1 { font-family: var(--font-display); font-size: 1.8rem; margin: 0 0 20px; color: var(--ink); letter-spacing:-.02em; font-weight: 800; }

.account-hero-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px; background: linear-gradient(120deg, var(--brand-dark), var(--brand)); color: #fff; border-radius: var(--radius-lg); }
.account-hero-eyebrow { display:inline-block; background:rgba(255,255,255,.13); padding:4px 12px; border-radius:999px; font-size:.7rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color: var(--accent); margin-bottom: 10px; }
.account-hero-card h2 { font-family: var(--font-display); margin: 0 0 8px; font-size: 1.5rem; letter-spacing:-.02em; font-weight: 800; }
.account-hero-sub { margin: 0; opacity: .92; font-size: .92rem; }
.account-hero-cta { background: var(--accent); color: var(--ink); border: 0; padding: 14px 22px; border-radius: 999px; font-weight: 800; font-size: .95rem; cursor: pointer; white-space: nowrap; transition: transform .1s, box-shadow .15s; }
.account-hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.25); }

.account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 28px 0; }
.account-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; transition: border-color .15s, transform .15s; }
.account-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.account-card-icon { font-size: 1.8rem; margin-bottom: 8px; }
.account-card h3 { margin: 0 0 4px; font-size: 1rem; color: var(--ink); font-weight: 700; }
.account-card p { margin: 0; color: var(--muted); font-size: .85rem; }

.account-recent { margin-top: 32px; }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.order-row-id { font-weight: 700; color: var(--ink); }
.order-row-meta { font-size: .85rem; color: var(--muted); }
.order-row-status { color: #16a34a; font-weight: 600; }
.order-row-actions { display: flex; gap: 12px; align-items: center; }
.order-row-total { font-weight: 700; font-size: 1.05rem; }
.rebuy-btn { background: var(--brand-soft); color: var(--brand-dark); border: 1.5px solid var(--brand-soft); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .82rem; cursor: pointer; }
.rebuy-btn:hover { background: var(--brand); color: #fff; }

.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 16px; }
.order-card header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.order-items { list-style: none; padding: 0; margin: 16px 0; }
.order-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; }
.order-items img { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; background: var(--line-soft); }
.order-item-price { font-weight: 700; color: var(--ink); }
.order-card footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }

.empty-state { text-align: center; padding: 60px 24px; color: var(--muted); }

.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.addr-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 20px; position: relative; cursor: pointer; }
.addr-card:hover { border-color: var(--brand); }
.addr-card.is-selected, .addr-card.is-default { border-color: var(--brand); background: var(--brand-soft); }
.addr-default-tag { position: absolute; top: 12px; right: 12px; background: var(--brand); color: #fff; padding: 3px 9px; border-radius: 999px; font-size: .65rem; font-weight: 700; letter-spacing: .05em; }
.addr-card h3 { margin: 0 0 6px; font-size: 1rem; color: var(--ink); font-weight: 700; }
.addr-card p { margin: 0; font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
.addr-actions { display: flex; gap: 12px; margin-top: 10px; }
.addr-actions a { font-size: .82rem; font-weight: 600; cursor: pointer; }

/* ===== CHECKOUT =================================================== */
.checkout-wrap { max-width: 1280px; margin: 32px auto 64px; padding: 0 24px; display: grid; grid-template-columns: 1fr 380px; gap: 36px; }
.checkout-main h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 20px; color: var(--ink); letter-spacing:-.02em; font-weight: 800; }
.checkout-steps { display: flex; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.checkout-steps li { flex: 1; display: flex; gap: 10px; align-items: center; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem; color: var(--muted); }
.checkout-steps li span { width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .82rem; }
.checkout-steps li.is-current { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); font-weight: 700; }
.checkout-steps li.is-current span { background: var(--brand); }
.checkout-steps li.is-done span { background: #16a34a; }
.checkout-steps li.is-done span::after { content: '✓'; }

.ship-methods { display: flex; flex-direction: column; gap: 10px; }
.ship-method { display: grid; grid-template-columns: 32px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 20px; cursor: pointer; transition: border-color .15s, background .15s; }
.ship-method:hover { border-color: var(--brand); }
.ship-method.is-selected { border-color: var(--brand); background: var(--brand-soft); }
.ship-method input { position: absolute; opacity: 0; }
.ship-icon { font-size: 1.6rem; }
.ship-text strong { display: block; color: var(--ink); font-weight: 700; }
.ship-text .ship-eta { display: block; font-size: .82rem; color: var(--muted); margin-top: 1px; }
.ship-text .ship-note { display: inline-block; background: var(--accent-soft); color: #92400e; padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; margin-top: 4px; }
.ship-rate { font-weight: 800; color: var(--ink); font-size: 1.15rem; text-align: right; line-height: 1.2; }
.ship-rate small { font-size: .7rem; font-weight: 500; }

.payment-method { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border: 1.5px solid var(--brand); background: var(--brand-soft); border-radius: var(--radius); }
.payment-logo { font-size: 2rem; }
.payment-method strong { color: var(--ink); font-size: 1rem; }
.payment-method p { margin: 4px 0 0; color: var(--ink-2); font-size: .9rem; }

.step-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 24px; }
.review-list { list-style: none; padding: 0; margin: 0; }
.review-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); }
.review-list .grand { font-size: 1.2rem; font-weight: 800; color: var(--ink); border-top: 2px solid var(--ink); padding-top: 14px; margin-top: 6px; }

.order-confirm { text-align: center; padding: 60px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.order-confirm-icon { width: 80px; height: 80px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; margin: 0 auto 20px; }
.order-confirm h2 { font-family: var(--font-display); font-size: 1.8rem; margin: 0 0 10px; color: var(--ink); }
.order-confirm p { color: var(--muted); margin: 0 0 24px; }

.checkout-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; height: max-content; position: sticky; top: 120px; }
.checkout-side h3 { margin: 0 0 16px; font-size: 1rem; color: var(--ink); }
.checkout-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: .88rem; }
.checkout-line img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: var(--line-soft); }
.checkout-totals { margin-top: 16px; }
.checkout-totals .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .92rem; color: var(--ink-2); }
.checkout-totals .row small { color: var(--muted); font-size: .8rem; font-weight: 500; }
.checkout-totals .row.total { font-size: 1.2rem; font-weight: 800; color: var(--ink); border-top: 2px solid var(--ink); padding-top: 12px; margin-top: 8px; }

@media (max-width: 900px) {
  .account-wrap, .checkout-wrap { grid-template-columns: 1fr; }
  .account-side, .checkout-side { position: static; }
  .checkout-steps li { padding: 8px 10px; font-size: .8rem; }
  .checkout-steps li span { width: 20px; height: 20px; font-size: .72rem; }
}

/* footer */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 56px 24px 32px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px 40px;
}
.footer-col h3 {
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .03em;
  margin: 0 0 14px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #cbd5e1; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1320px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem;
  color: #94a3b8;
  text-align: center;
}
.footer-bottom a { color: inherit; }

/* mobile */
@media (max-width: 920px) {
  .megamenu-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .header-inner {
    grid-template-columns: auto auto;
    grid-template-areas: 'brand actions' 'search search';
    gap: 12px;
  }
  .brand        { grid-area: brand; }
  .search       { grid-area: search; max-width: none; }
  .user-actions { grid-area: actions; }
  .icon-link .label { display: none; }
  .hero-inner { padding: 44px 24px; min-height: 220px; }
  .dept-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .rail-scroll { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 600px) {
  .megamenu { display: none; }
}
