/* 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: var(--bg);
  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: #f5f6f4;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --surface-ink: #17221e;
  --surface-muted: #e9eeeb;
  --card: #ffffff;
  --card-soft: rgba(255, 255, 255, 0.82);
  --border: #dfe4e1;
  --border-strong: #c9d1cd;
  --text: #18221e;
  --muted: #66736d;
  --heading: #101814;
  --primary: #087a55;
  --primary-2: #19a974;
  --accent: #e56f45;
  --accent-soft: #ffe0d5;
  --danger: #c94343;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 5px 18px rgba(15, 24, 20, 0.06);
  --shadow: 0 18px 48px rgba(15, 24, 20, 0.14);
  --ring: 0 0 0 3px rgba(8, 122, 85, 0.16);
  --maxw: 1280px;
  --sf-header-height: 72px;
}

@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;
}

.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: var(--radius);
  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: var(--radius);
  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;
  padding: 3px;
  border: 1px solid rgba(19, 40, 31, 0.08);
  border-radius: var(--radius);
  background: #ffffff;
  object-fit: contain;
  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,
.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 {
  padding: 0 16px;
  font-weight: 900;
}

.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;
}

.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-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.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);
}

.product-desc {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}

.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;
}

.drawer-footer .checkout-btn--stockpile {
  margin-top: 8px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--heading);
  box-shadow: none;
}

.drawer-footer .checkout-btn--stockpile:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* 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);
}

.checkout-confirm {
  position: relative;
  width: min(94vw, 720px);
  max-height: min(92dvh, 780px);
  overflow-y: auto;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.checkout-confirm__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #ffffff;
  color: var(--heading);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.checkout-confirm__heading {
  padding-right: 42px;
}

.checkout-confirm__heading > span {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-confirm__heading h2 {
  margin-bottom: 7px;
  font-size: 30px;
}

.checkout-confirm__heading p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.checkout-confirm .auth-error {
  margin-bottom: 14px;
  border-radius: var(--radius);
}

.checkout-confirm__legacy {
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid #e5c87b;
  border-radius: var(--radius);
  background: #fff9e9;
  color: #6f5514;
  font-size: 12px;
  line-height: 1.55;
}

.checkout-confirm__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-box .checkout-confirm__field {
  display: block;
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
}

.checkout-confirm__field--wide {
  grid-column: 1 / -1;
}

.checkout-confirm__field > span {
  display: flex;
  min-height: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  color: var(--heading);
  font-size: 12px;
  font-weight: 800;
}

.checkout-confirm__field em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.checkout-confirm__field input {
  height: 46px;
  background: #ffffff;
}

.checkout-confirm__field input[readonly] {
  background: #f1f4f2;
  color: var(--muted);
}

.checkout-confirm__field input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(201, 67, 67, 0.12);
}

.checkout-confirm__field small {
  display: block;
  min-height: 16px;
  padding-top: 2px;
  color: var(--danger);
  font-size: 10px;
  font-weight: 700;
}

.checkout-confirm__submit {
  width: 100%;
  margin-top: 12px;
}

.checkout-confirm__submit[aria-busy="true"] {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 620px) {
  #checkoutConfirmModal {
    align-items: end !important;
  }

  .checkout-confirm {
    width: 100%;
    max-height: 94dvh;
    padding: 20px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .checkout-confirm__heading h2 {
    font-size: 25px;
  }

  .checkout-confirm__grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .checkout-confirm__field--wide {
    grid-column: auto;
  }
}

/* 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) {
  .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;
  }
}

/* Product-first storefront */
.sf-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.sf-header .wrap {
  gap: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.sf-header .brand {
  gap: 9px;
}

.sf-header .brand img {
  width: 64px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: none;
  border: 1px solid var(--border);
}

.sf-header .brand span {
  font-size: 16px;
}

.sf-header .search {
  max-width: 700px;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8faf9;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sf-header .search:focus-within {
  border-color: rgba(8, 122, 85, 0.45);
  box-shadow: var(--ring);
}

.sf-header .search input {
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sf-header .search input:focus {
  border: 0;
  box-shadow: none;
}

.sf-header .search button {
  width: 46px;
  height: 44px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  display: grid;
  place-items: center;
}

.sf-header .search button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.sf-header .login-btn,
.cart-btn {
  height: 40px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: none;
}

.sf-header .login-btn:hover,
.cart-btn:hover,
.sf-header .search button:hover {
  background: #f0f4f2;
}

.cart-btn {
  width: 44px;
}

#cartCount {
  top: -7px;
  right: -6px;
  background: var(--accent);
  border-color: #ffffff;
}

/* Storefront home hero. It is intentionally compact so the catalogue remains
   visible in the first viewport, and it is rendered only on the unfiltered
   first page by storefront.php. */
.storefront-hero {
  position: relative;
  min-height: clamp(300px, 29vw, 390px);
  overflow: hidden;
  isolation: isolate;
  background: #13261f;
}

.storefront-hero__media,
.storefront-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.storefront-hero__media {
  z-index: -2;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.02);
}

.storefront-hero--brand-art .storefront-hero__media {
  object-fit: contain;
  object-position: right center;
  filter: none;
}

.storefront-hero--brand-art .storefront-hero__shade {
  background:
    linear-gradient(90deg, rgba(8, 20, 15, 0.98) 0%, rgba(8, 20, 15, 0.9) 42%, rgba(8, 20, 15, 0.2) 72%, rgba(8, 20, 15, 0.08) 100%),
    linear-gradient(180deg, rgba(8, 20, 15, 0.04), rgba(8, 20, 15, 0.18));
}

.storefront-hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 20, 15, 0.9) 0%, rgba(8, 20, 15, 0.73) 38%, rgba(8, 20, 15, 0.13) 75%, rgba(8, 20, 15, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 20, 15, 0.08), rgba(8, 20, 15, 0.24));
}

.storefront-hero__content {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 42px;
  padding-bottom: 44px;
}

.storefront-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.storefront-hero__eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.storefront-hero h1 {
  max-width: 680px;
  margin: 0;
  color: #ffffff;
  font: 700 clamp(38px, 5vw, 62px)/1 "Fraunces", Georgia, serif;
  letter-spacing: 0;
  text-wrap: balance;
}

.storefront-hero p {
  max-width: 560px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.87);
  font-size: 16px;
  line-height: 1.55;
}

.storefront-hero__cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 23px;
  padding: 0 17px;
  border-radius: var(--radius);
  background: #ffffff;
  color: #102019;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(3, 11, 8, 0.22);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.storefront-hero__cta:hover {
  transform: translateY(-1px);
  background: #f4f8f6;
}

.storefront-hero__cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.storefront-nav {
  position: sticky;
  top: var(--sf-header-height);
  z-index: 65;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.storefront-nav .wrap {
  min-height: 52px;
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.storefront-nav .wrap::-webkit-scrollbar {
  display: none;
}

.storefront-nav__item {
  position: relative;
  flex: 0 0 auto;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: #34413b;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.storefront-nav__item::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.storefront-nav__item:hover,
.storefront-nav__item.is-active,
.storefront-nav__item.has-active-filters {
  color: var(--primary);
}

.storefront-nav__item.is-active::after,
.storefront-nav__item.has-active-filters::after {
  background: var(--primary);
}

.storefront-nav__item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.storefront-nav__item svg circle {
  fill: #ffffff;
}

.storefront-nav__count {
  min-width: 25px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #edf2ef;
  color: #526059;
  font-size: 10px;
  font-weight: 900;
}

.storefront-nav__count--active {
  background: var(--primary);
  color: #ffffff;
}

.storefront-nav__status {
  margin-left: auto;
  align-self: center;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.store-panel-shade {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(11, 18, 15, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.store-panel-shade[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.store-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 99;
  width: min(94vw, 480px);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: 0 0 48px rgba(11, 18, 15, 0.2);
  transition: transform 0.24s ease;
}

.store-panel--left {
  left: 0;
  transform: translateX(-102%);
}

.store-panel--right {
  right: 0;
  transform: translateX(102%);
}

.store-panel[aria-hidden="false"] {
  transform: translateX(0);
}

.store-panel__header {
  flex: 0 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.store-panel__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.store-panel__header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.store-panel__close {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--heading);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.store-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px 24px;
}

.store-menu-identity {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: #17221e;
  color: #ffffff;
}

.store-menu-identity__media,
.store-menu-identity__media::after {
  position: absolute;
  inset: 0;
}

.store-menu-identity__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-menu-identity__media::after {
  content: "";
  background: linear-gradient(180deg, rgba(10, 16, 13, 0.12), rgba(10, 16, 13, 0.88));
}

.store-menu-identity__copy {
  position: relative;
  z-index: 1;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}

.store-menu-identity__copy span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.store-menu-identity__copy strong {
  margin-top: 5px;
  font: 700 25px/1.12 "Fraunces", Georgia, serif;
  letter-spacing: 0;
}

.store-menu-identity__copy p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.category-menu {
  display: grid;
  gap: 4px;
}

.category-menu__item {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.category-menu__item:hover,
.category-menu__item.is-active {
  background: #f1f6f3;
  border-color: #d8e7df;
}

.category-menu__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #e9eeeb;
  color: #425049;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.category-menu__item--all .category-menu__icon {
  background: var(--heading);
  color: #ffffff;
}

.category-menu__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-menu__copy {
  min-width: 0;
}

.category-menu__copy strong,
.category-menu__copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-menu__copy strong {
  color: var(--heading);
  font-size: 14px;
}

.category-menu__copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.category-menu__count {
  min-width: 30px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

.store-menu-contact {
  margin-top: 18px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
}

.store-menu-contact > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.store-menu-contact div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 7px;
}

.store-menu-contact a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.store-filter-form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.store-filter-form__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 16px;
}

.store-filter-field {
  min-width: 0;
}

.store-filter-field--wide,
.store-filter-range,
.store-filter-form__body > .active-filter-bar {
  grid-column: 1 / -1;
}

.store-filter-field > span,
.store-filter-range legend,
.store-filter-range label > span:first-child {
  display: block;
  margin-bottom: 6px;
  color: #4f5d56;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.store-filter-field input,
.store-filter-field select {
  height: 48px;
  background: #ffffff;
}

.store-filter-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.store-filter-range legend {
  padding: 0 5px;
}

.money-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.money-input:focus-within {
  border-color: rgba(8, 122, 85, 0.45);
  box-shadow: var(--ring);
}

.money-input b {
  padding-left: 12px;
  color: var(--muted);
}

.money-input input {
  height: 44px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.money-input input:focus {
  box-shadow: none;
}

.store-filter-form__footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.store-filter-form__footer .btn {
  flex: 1 1 auto;
  max-width: 260px;
}

.store-filter-clear {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.active-filter-bar,
.catalogue-intro__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.active-filter-pill {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #f2c7b8;
  border-radius: 999px;
  background: #fff2ed;
  color: #963f24;
  font-size: 11px;
}

.catalogue-intro {
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding: 26px 18px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px 24px;
}

.catalogue-intro__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalogue-intro h1 {
  margin: 0;
  color: var(--heading);
  font: 700 34px/1.05 "Fraunces", Georgia, serif;
  letter-spacing: 0;
}

.catalogue-intro p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.catalogue-intro__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalogue-intro__meta span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.catalogue-intro__meta strong {
  color: var(--heading);
}

.catalogue-intro__filters {
  grid-column: 1 / -1;
  align-items: center;
}

.catalogue-intro__filters > a {
  margin-left: 3px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
}

#products {
  scroll-margin-top: calc(var(--sf-header-height) + 64px);
}

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

.product-grid .card {
  position: relative;
  height: 100%;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.product-grid .card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.product-grid .card .img-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid #e2e6e4;
  border-radius: var(--radius);
  background: #ecefed;
}

.product-grid .card .img-wrap img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.product-grid .card:hover .img-wrap img {
  transform: scale(1.025);
}

.product-grid .card-badge-row {
  position: absolute;
  z-index: 2;
  inset: 9px 9px auto;
  min-height: 0;
  pointer-events: none;
}

.product-grid .pill,
.product-grid .card-size {
  min-width: 0;
  max-width: 60%;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #24332c;
  box-shadow: 0 2px 9px rgba(15, 24, 20, 0.08);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-grid .card-size {
  max-width: 42%;
}

.product-grid .card h3 {
  min-height: 40px;
  margin: 2px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--heading);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-grid .product-desc {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.product-grid .rating {
  min-height: 20px;
  gap: 5px;
  color: #66736d;
  font-size: 11px;
  font-weight: 700;
}

.product-grid .rating svg {
  width: 14px;
  height: 14px;
  fill: #f0a12f;
}

.product-grid .card-bottom {
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.product-grid .price-stack {
  gap: 3px;
  min-width: 0;
}

.product-grid .price {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.15;
}

.product-grid .slash-price {
  color: #8b9691;
  font-size: 11px;
}

.product-grid .add-cart,
.card .add-cart {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 13px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--heading);
  color: #ffffff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.product-grid .add-cart:hover,
.card .add-cart:hover {
  background: var(--primary);
}

.product-grid .add-cart > span:first-child {
  font-size: 18px;
  line-height: 1;
}

.empty-products {
  border-radius: var(--radius);
  background: #ffffff;
}

.pager {
  margin-top: 28px;
  margin-bottom: 36px;
}

.pager ul {
  justify-content: center;
  gap: 6px;
}

.pager a,
.pager__ellipsis {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: none;
  color: var(--heading);
  font-size: 12px;
  font-weight: 900;
}

.pager a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pager a.active {
  background: var(--heading);
  border-color: var(--heading);
  color: #ffffff;
}

.pager__direction {
  min-width: 76px !important;
}

.pager__ellipsis {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

#cartDrawer,
.auth-box {
  background: #ffffff;
}

.cart-row {
  border-radius: var(--radius);
  background: #f7f9f8;
}

.drawer-footer .checkout-btn,
.auth-box .submit {
  border-radius: var(--radius);
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .sf-header .wrap {
    gap: 9px;
    padding: 8px 12px 10px;
  }

  .sf-header .search-row {
    flex-basis: 100%;
  }

  .sf-header .search {
    max-width: none;
  }

  .storefront-nav .wrap {
    padding: 0 8px;
  }

  .storefront-nav__status {
    display: none;
  }

  .catalogue-intro {
    padding-left: 12px;
    padding-right: 12px;
  }

  .product-grid,
  .pager {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 700px) {
  .storefront-hero {
    min-height: 260px;
  }

  .storefront-hero__shade {
    background:
      linear-gradient(90deg, rgba(8, 20, 15, 0.88) 0%, rgba(8, 20, 15, 0.68) 62%, rgba(8, 20, 15, 0.3) 100%),
      linear-gradient(180deg, rgba(8, 20, 15, 0.08), rgba(8, 20, 15, 0.3));
  }

  .storefront-hero--brand-art .storefront-hero__media {
    object-position: 72% center;
    opacity: 0.78;
  }

  .storefront-hero--brand-art .storefront-hero__shade {
    background: linear-gradient(90deg, rgba(8, 20, 15, 0.96) 0%, rgba(8, 20, 15, 0.82) 56%, rgba(8, 20, 15, 0.34) 100%);
  }

  .storefront-hero__content {
    padding-top: 30px;
    padding-bottom: 32px;
  }

  .storefront-hero h1 {
    max-width: 94%;
    font-size: 36px;
    line-height: 1.02;
  }

  .storefront-hero p {
    max-width: 92%;
    margin-top: 11px;
    font-size: 14px;
    line-height: 1.45;
  }

  .storefront-hero__cta {
    min-height: 42px;
    margin-top: 17px;
  }

  .catalogue-intro {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 18px;
    padding-bottom: 12px;
  }

  .catalogue-intro h1 {
    font-size: 29px;
  }

  .catalogue-intro__meta {
    display: none;
  }

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

  .product-grid .card {
    gap: 7px;
    padding: 0;
    border-radius: 0;
  }

  .product-grid .card .img-wrap {
    border-radius: 7px;
  }

  .product-grid .card h3 {
    min-height: 36px;
    font-size: 13.5px;
  }

  .product-grid .product-desc {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }

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

  .product-grid .add-cart {
    width: auto;
    min-height: 36px;
    padding: 0 10px;
    font-size: 11px;
  }

  .product-grid .card-badge-row {
    inset: 7px 7px auto;
    gap: 5px;
  }

  .product-grid .pill,
  .product-grid .card-size {
    min-height: 23px;
    padding: 0 6px;
    font-size: 8px;
  }

  .store-filter-form__body {
    grid-template-columns: 1fr;
  }

  .store-filter-field--wide,
  .store-filter-range,
  .store-filter-form__body > .active-filter-bar {
    grid-column: auto;
  }

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

  .pager a,
  .pager__ellipsis {
    min-width: 36px;
    height: 36px;
    padding: 0 9px;
  }

  .pager__direction {
    min-width: 64px !important;
  }
}

@media (max-width: 430px) {
  .sf-header .brand span {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

  .storefront-nav__item {
    min-height: 48px;
    padding: 0 9px;
    font-size: 12px;
  }

  .storefront-nav__item::after {
    left: 9px;
    right: 9px;
  }

  .storefront-nav__item svg {
    width: 16px;
    height: 16px;
  }

  .storefront-nav__count {
    display: none;
  }

  .storefront-nav__count--active {
    display: inline-grid;
  }

  .store-panel {
    width: 100vw;
  }

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

  .store-filter-form__footer .btn {
    max-width: none;
  }

  .pager__direction {
    font-size: 0;
    min-width: 38px !important;
  }

  .pager__direction[rel="prev"]::before {
    content: "‹";
    font-size: 22px;
  }

  .pager__direction[rel="next"]::before {
    content: "›";
    font-size: 22px;
  }
}

/* Promotion campaigns */
.storefront-offers {
  background: #102a22;
  color: #fff;
  padding: 28px 0 30px;
  scroll-margin-top: 112px;
}

.storefront-offers__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
}

.storefront-offers__head span {
  display: block;
  color: #94d3ba;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.storefront-offers__head h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 24px;
}

.storefront-offers__head p {
  margin: 0;
  color: #c7d8d1;
  font-size: 13px;
  font-weight: 700;
}

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

.storefront-offer {
  position: relative;
  min-height: 210px;
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #1d4437;
  border: 1px solid rgba(255,255,255,.16);
}

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

.storefront-offer__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,24,18,.08), rgba(6,24,18,.9));
}

.storefront-offer__copy {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 5px;
  padding: 16px;
}

.storefront-offer__copy b {
  width: max-content;
  max-width: 100%;
  padding: 5px 7px;
  border-radius: 5px;
  background: #f4c95d;
  color: #2d240c;
  font-size: 12px;
}

.storefront-offer__copy strong {
  color: #fff;
  font-size: 18px;
}

.storefront-offer__copy small {
  color: #e2ece8;
  font-size: 12px;
  line-height: 1.4;
}

.card-badge-row .pill--promo {
  background: #fff0c2;
  border-color: #efd26f;
  color: #5d4700;
}

.card-badge-row .pill--sold-out {
  background: #fff;
  border-color: #cdd5d1;
  color: #52605a;
}

.product-grid .add-cart:disabled,
.card .add-cart:disabled {
  background: #dfe5e2;
  color: #65716b;
  cursor: not-allowed;
}

.product-grid .add-cart:disabled:hover,
.card .add-cart:disabled:hover {
  background: #dfe5e2;
}

.promo-detail-badge {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid #a8dac6;
  border-radius: 6px;
  background: #e8f7f0;
  color: #075d42;
  font-size: 12px;
  font-weight: 900;
}

.promo-condition {
  margin-top: 3px;
  color: #8a4b08;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.cart-offer {
  margin-top: 5px;
  color: #8a4b08;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.cart-offer--active {
  color: #08704d;
}

.cart-offer--warning {
  color: #b42318;
}

.cart-row .line {
  display: grid;
  gap: 2px;
}

.cart-row .cart-original {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: line-through;
}

@media (max-width: 860px) {
  .storefront-offers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .storefront-offers {
    padding: 22px 0 24px;
  }

  .storefront-offers__head {
    display: block;
  }

  .storefront-offers__head h2 {
    font-size: 20px;
  }

  .storefront-offers__head p {
    margin-top: 7px;
  }

  .storefront-offers__grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }

  .storefront-offer {
    flex: 0 0 84%;
    min-height: 190px;
    scroll-snap-align: start;
  }
}
