/* ProStore storefront system */

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

/* Removed `html, body { height: 100% }`. With body locked to 100% of the
   viewport, document scroll was effectively disabled — window.scrollTo
   wouldn't move past 8px and users could only scroll the body's overflow
   container. Letting body height grow with content fixes scroll on every
   storefront page. */

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 540px at 0% -10%, rgba(33, 128, 98, 0.08), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(215, 141, 58, 0.08), transparent 55%),
    linear-gradient(180deg, #fffaf3 0%, #f7efe2 100%);
  font: 500 15px/1.6 "Manrope", "Segoe UI", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --bg: #fffaf3;
  --surface: rgba(255, 248, 238, 0.92);
  --surface-strong: #fffdf9;
  --surface-ink: #17231e;
  --surface-muted: #f3e6d6;
  --card: #fffdf8;
  --card-soft: rgba(255, 255, 255, 0.7);
  --border: rgba(44, 59, 52, 0.12);
  --border-strong: rgba(44, 59, 52, 0.2);
  --text: #18231f;
  --muted: #5f6e67;
  --heading: #102018;
  --primary: #1f8a63;
  --primary-2: #7abf88;
  --accent: #d78d3a;
  --accent-soft: #f4d6ae;
  --danger: #c84b44;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow-sm: 0 10px 28px rgba(19, 28, 23, 0.08);
  --shadow: 0 22px 48px rgba(19, 28, 23, 0.11);
  --ring: 0 0 0 4px rgba(31, 138, 99, 0.16);
  --maxw: 1180px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.wrap {
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding: 0 18px;
}

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

.section-head,
.facets-shell,
.cat-area,
.collections,
.featured-strip,
.product-grid,
.pager,
.product-section-head {
  width: min(100%, var(--maxw));
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

#categories,
#facets,
#facet-selectors,
#products {
  scroll-margin-top: 108px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  color: var(--heading);
  font: 700 clamp(28px, 4vw, 42px)/1.05 "Fraunces", Georgia, serif;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 10px 0 0;
  max-width: 640px;
  color: var(--muted);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  padding: 0 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

textarea {
  padding: 14px;
  min-height: 110px;
  resize: vertical;
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
  height: 48px;
}

input::placeholder,
textarea::placeholder {
  color: #87978f;
}

input:focus,
textarea:focus,
select:focus,
a:focus-visible,
button:focus-visible {
  box-shadow: var(--ring);
  border-color: rgba(31, 138, 99, 0.4);
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary,
.card .add-cart,
.drawer-footer .checkout-btn,
.auth-box .submit {
  background: linear-gradient(135deg, var(--primary) 0%, #2eaa7b 50%, var(--primary-2) 100%);
  color: #fffef9;
  box-shadow: 0 16px 28px rgba(31, 138, 99, 0.22);
}

.btn.secondary {
  background: rgba(255, 249, 241, 0.92);
  color: var(--heading);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(31, 138, 99, 0.1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Header */
.sf-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(255, 248, 238, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sf-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.sf-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--heading);
  font-weight: 900;
}

.sf-header .brand span {
  font-size: 15px;
  white-space: nowrap;
}

.sf-header .brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.sf-header .search-row {
  flex: 1 1 auto;
  min-width: 0;
}

.sf-header .search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 620px);
  margin: 0 auto;
}

.sf-header .search input {
  flex: 1 1 auto;
}

.sf-header .search button,
.sf-header .login-btn,
.sf-header .scan-go-btn,
.cart-btn {
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  color: var(--heading);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.sf-header .search button,
.sf-header .login-btn,
.sf-header .scan-go-btn {
  padding: 0 16px;
  font-weight: 900;
}

.sf-header .scan-go-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  white-space: nowrap;
}

.sf-header .account-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.sf-header .welcome,
.sf-header .logout {
  font-size: 13px;
  font-weight: 900;
}

.sf-header .logout {
  color: var(--muted);
}

.cart-btn {
  position: relative;
  width: 48px;
  display: inline-grid;
  place-items: center;
}

.cart-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--heading);
}

#cartCount {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, #efb572 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  border: 2px solid #fffaf3;
}

/* Hero */
.full-hero {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.full-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Stronger overlay: many supermarkets upload hero images that already
     have text or branding baked in. A heavier dark gradient + center-
     focused darkening keeps the foreground hero text legible regardless
     of what's behind it. */
  background:
    linear-gradient(180deg, rgba(16, 23, 20, 0.62), rgba(16, 23, 20, 0.86)),
    radial-gradient(circle at 30% 35%, rgba(0, 0, 0, 0.45), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(215, 141, 58, 0.15), transparent 50%);
}

.full-hero .hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 120px 18px 90px;
  text-align: left;
}

.hero-premium {
  display: grid;
  gap: 18px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff8ef;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.full-hero h1 {
  margin: 0;
  max-width: 780px;
  color: #fffaf2;
  font: 700 clamp(38px, 6vw, 76px)/0.95 "Fraunces", Georgia, serif;
  letter-spacing: -0.04em;
}

.full-hero p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 248, 238, 0.92);
  font-size: clamp(15px, 2.2vw, 19px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero-stat {
  min-width: 148px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 249, 241, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-stat strong {
  display: block;
  color: #fffdf8;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 248, 238, 0.76);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.full-hero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.full-hero .wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 1;
}

/* Collections */
.collections {
  margin-top: 18px;
}

.collection-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collection-card {
  overflow: hidden;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.collection-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 138, 99, 0.26);
  box-shadow: var(--shadow);
}

.collection-card.active {
  border-color: rgba(31, 138, 99, 0.38);
  box-shadow: 0 0 0 5px rgba(31, 138, 99, 0.1), var(--shadow);
}

.collection-media {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at top left, rgba(31, 138, 99, 0.14), transparent 38%),
    linear-gradient(135deg, #efe0cc 0%, #fff7eb 50%, #dcebdd 100%);
  overflow: hidden;
}

.collection-media img,
.collection-placeholder {
  width: 100%;
  height: 100%;
}

.collection-media img {
  object-fit: cover;
}

.collection-placeholder {
  display: grid;
  place-items: center;
  padding: 22px;
  color: var(--heading);
  font: 700 28px/1.05 "Fraunces", Georgia, serif;
  text-align: center;
}

.collection-copy {
  padding: 20px;
}

.collection-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.collection-range {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.collection-copy h3 {
  margin: 0;
  color: var(--heading);
  font: 700 28px/1.05 "Fraunces", Georgia, serif;
}

.collection-copy p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Featured strip */
.featured-strip {
  margin-top: 34px;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 242, 0.95));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.feature-media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #fffaf2 0%, #efe0cc 100%);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-copy {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.feature-copy h3 {
  margin: 0;
  color: var(--heading);
  font-size: 22px;
  line-height: 1.2;
}

.feature-copy h3 a:hover {
  color: var(--primary);
}

.feature-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Filters */
.facets-shell {
  margin-top: 38px;
}

.active-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(215, 141, 58, 0.12);
  color: #8a5419;
  font-size: 12px;
  font-weight: 900;
}

.tools {
  background: rgba(255, 253, 248, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.merch-tools {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 0.8fr));
  padding: 18px;
}

.range-grid {
  grid-column: 1 / -1;
  display: grid;
  align-items: center;
  gap: 10px 12px;
  grid-template-columns: 120px minmax(0, 1fr) 18px 120px minmax(0, 1fr) auto;
}

.range-grid label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.cat-area {
  margin-top: 14px;
}

.cat-dropdown-wrapper {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Product grid */
.product-section-head {
  margin-top: 32px;
}

.product-grid {
  display: grid;
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 241, 0.95));
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 138, 99, 0.24);
  box-shadow: var(--shadow);
}

.card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
}

.card-size {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card .img-wrap {
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #fffdf8 0%, #f1e2cf 100%);
  aspect-ratio: 4 / 5;
}

.card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.no-img {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.card h3 {
  margin: 0;
  color: var(--heading);
  font-size: 18px;
  line-height: 1.32;
}

.card h3 a:hover {
  color: var(--primary);
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.rating svg {
  width: 16px;
  height: 16px;
  fill: #e8aa59;
}

.card-bottom,
.price {
  margin-top: auto;
}

.card-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.price-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.slash-price {
  color: #9b8f84;
  font-size: 13px;
  font-weight: 900;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.price {
  color: var(--heading);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.card .add-cart {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
}

.empty-products {
  grid-column: 1 / -1;
  padding: 38px 20px;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

/* Pager */
.pager {
  margin-bottom: 26px;
}

.pager ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pager a {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--heading);
  font-weight: 900;
}

.pager a.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  color: #fffef9;
}

/* Cart drawer */
#drawerShade {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 23, 20, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#cartDrawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 81;
  width: min(92vw, 420px);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.24s ease;
  background: #fffdf8;
  border-left: 1px solid var(--border);
  box-shadow: -18px 0 40px rgba(16, 23, 20, 0.16);
}

#cartDrawer[aria-hidden="false"] {
  transform: translateX(0);
}

#drawerShade[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.drawer-header,
.drawer-footer {
  padding: 16px 18px;
  border-color: var(--border);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.drawer-header h2 {
  margin: 0;
  color: var(--heading);
  font: 700 28px/1.1 "Fraunces", Georgia, serif;
}

#cartClose {
  border: 0;
  background: transparent;
  color: var(--heading);
  font-size: 28px;
  cursor: pointer;
}

#cartItems {
  flex: 1;
  overflow: auto;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 14px 18px;
}

.cart-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 84px 92px 28px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 248, 238, 0.8);
}

.cart-row .meta strong {
  display: block;
  color: var(--heading);
}

.cart-row .meta .sub {
  color: var(--muted);
  font-size: 12px;
}

.cart-row .qty input {
  text-align: center;
}

.cart-row .line {
  text-align: right;
  color: var(--heading);
  font-weight: 900;
}

.cart-row .rm {
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 22px;
  cursor: pointer;
}

.drawer-footer {
  border-top: 1px solid var(--border);
}

.drawer-footer .cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--heading);
}

.drawer-footer .checkout-btn {
  width: 100%;
  border-radius: 999px;
}

/* Auth modal */
#authModal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 23, 20, 0.46);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#authModal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.auth-box {
  width: min(92vw, 460px);
  padding: 22px;
  border-radius: 28px;
  background: #fffdf8;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.auth-box h2 {
  margin: 0 0 10px;
  color: var(--heading);
  font: 700 34px/1.02 "Fraunces", Georgia, serif;
}

.auth-box label {
  display: block;
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-box .switch-msg {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.auth-box .switch-msg a {
  color: var(--primary);
  font-weight: 900;
}

.auth-error,
.auth-success {
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
}

.auth-error {
  color: #8f302b;
  background: rgba(200, 75, 68, 0.12);
  border: 1px solid rgba(200, 75, 68, 0.2);
}

.auth-success {
  color: #176444;
  background: rgba(31, 138, 99, 0.1);
  border: 1px solid rgba(31, 138, 99, 0.18);
}

/* Product detail support */
.pd-card {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.05fr 1fr;
}

.pd-media {
  min-height: 420px;
  max-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #fffdf8 0%, #ecdbc4 100%);
  overflow: hidden;
}

.pd-img {
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  cursor: zoom-in;
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  background: rgba(16, 23, 20, 0.94);
  padding: 12px;
}

.lb.open {
  display: grid;
}

.lb img {
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lb-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fffdf8;
  font-size: 28px;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
}

/* Back to top / toast */
#toTopBtn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(255, 253, 248, 0.92);
  color: var(--heading);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

#toTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#ps_toast {
  border-radius: 999px;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .collection-grid,
  .feature-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .sf-header .wrap {
    flex-wrap: wrap;
  }

  .sf-header .search-row {
    order: 3;
    width: 100%;
  }

  .pd-card {
    grid-template-columns: 1fr;
  }

  .merch-tools {
    grid-template-columns: 1fr 1fr;
  }

  .range-grid {
    grid-template-columns: 1fr 1fr;
  }

  .range-grid div {
    display: none;
  }
}

@media (max-width: 640px) {
  .sf-header .account-area {
    gap: 8px;
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .sf-header .scan-go-btn,
  .sf-header .login-btn,
  .cart-btn {
    height: 40px;
  }

  .sf-header .scan-go-btn,
  .sf-header .login-btn {
    padding: 0 12px;
    font-size: 12px;
  }

  .cart-btn {
    width: 44px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .full-hero {
    min-height: 68vh;
  }

  .full-hero .hero-content {
    padding-top: 102px;
    padding-bottom: 78px;
  }

  .full-hero h1 {
    font-size: clamp(34px, 12vw, 54px);
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .collection-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cat-dropdown-wrapper,
  .merch-tools {
    grid-template-columns: 1fr;
  }

  .range-grid {
    grid-template-columns: 1fr;
  }

  .card-bottom,
  .feature-footer {
    align-items: start;
    flex-direction: column;
  }

  .product-grid .card {
    padding: 12px;
    gap: 10px;
    border-radius: 18px;
  }

  .product-grid .card h3 {
    font-size: 15px;
    line-height: 1.3;
  }

  .product-grid .card .img-wrap {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
  }

  .product-grid .card .img-wrap img {
    padding: 8px;
  }

  .product-grid .card-bottom {
    gap: 8px;
  }

  .product-grid .price {
    font-size: 18px;
  }

  .product-grid .slash-price {
    font-size: 11px;
  }

  .product-grid .add-cart {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .cart-row {
    grid-template-columns: 1fr 72px 72px 24px;
  }
}
