@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,400..500&family=Inter:wght@400;500;600&family=Petit+Formal+Script&display=swap");

:root {
  --ivory: #f5efe4;
  --warm-ivory: #efe5d6;
  --heritage-green: #173e2c;
  --forest-green: #214b36;
  --deep-green: #102f22;
  --charcoal: #28231f;
  --warm-brown: #4a2b21;
  --muted-taupe: #8b8175;
  --line: rgba(40, 35, 31, 0.14);
  --line-on-dark: rgba(245, 239, 228, 0.18);
  --white: #fffdf9;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-script: "Petit Formal Script", cursive;
  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.35rem + 0.7vw, 1.85rem);
  --step-3: clamp(2rem, 1.7rem + 1.4vw, 2.75rem);
  --step-4: clamp(2.6rem, 2.1rem + 2.4vw, 4rem);
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 2px;
  --transition: 240ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  max-width: 38em;
}

:focus-visible {
  outline: 2px solid var(--heritage-green);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.7em;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition),
    border-color var(--transition);
  min-height: 44px;
}

.btn-primary {
  background: var(--heritage-green);
  color: var(--ivory);
}

.btn-primary:hover {
  background: var(--deep-green);
}

.btn-outline {
  background: transparent;
  color: var(--heritage-green);
  border-color: var(--heritage-green);
}

.btn-outline:hover {
  background: var(--heritage-green);
  color: var(--ivory);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--charcoal);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.meta {
  font-size: var(--step--1);
  color: var(--muted-taupe);
  letter-spacing: 0.02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: var(--step-1);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  color: var(--muted-taupe);
  font-weight: 500;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  gap: 36px;
}

.main-nav a {
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--heritage-green);
  transition: right var(--transition);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  position: relative;
  background: none;
  border: none;
  padding: 10px;
  color: var(--charcoal);
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  background: var(--heritage-green);
  color: var(--ivory);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
}

.nav-toggle {
  display: none;
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--heritage-green);
  z-index: 100;
  transform: translateX(100%);
  transition: transform var(--transition);
  padding: 28px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 28px;
  visibility: hidden;
}

.mobile-nav.is-open {
  transform: none;
  visibility: visible;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--ivory);
}

.mobile-nav .close-btn {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 1.4rem;
  min-width: 44px;
  min-height: 44px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  justify-content: space-between;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--muted-taupe);
  position: relative;
  min-width: 44px;
}

.bottom-nav a.is-active {
  color: var(--heritage-green);
}

.bottom-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

@media (max-width: 640px) {
  .bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: 64px;
  }
}

.site-footer {
  background: var(--heritage-green);
  color: var(--warm-ivory);
  margin-top: 96px;
}

.site-footer .container {
  padding-block: 72px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer-grid h5 {
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  margin-bottom: 1.1em;
  font-weight: 500;
}

.footer-grid a {
  display: block;
  padding: 5px 0;
  color: rgba(245, 239, 228, 0.78);
  font-size: var(--step--1);
}

.footer-grid a:hover {
  color: var(--ivory);
}

.footer-brand p {
  color: rgba(245, 239, 228, 0.7);
  font-size: var(--step--1);
}

.footer-bottom {
  display: grid;
  justify-content: space-between;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--line-on-dark);
  color: rgba(245, 239, 228, 0.55);
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  background-color: #499974;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 60%;
  object-fit: cover;
  object-position: bottom;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero {
  position: relative;
}

.hero-media {
  aspect-ratio: 16/9;
  min-height: 420px;
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--forest-green),
    var(--muted-taupe) 130%
  );
}

.hero-copy {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 48px var(--gutter);
  color: var(--white);
  width: 100%;
  background: linear-gradient(0deg, rgba(16, 25, 20, 0.55), transparent 80%);
}

.hero-copy .meta {
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.14em;
}

.hero-copy h1 {
  color: var(--white);
  font-size: var(--step-4);
}

.hero-copy .btn {
  margin-top: 1.2em;
}

.section {
  padding-block: 80px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: var(--step-3);
}

.link-more {
  font-size: var(--step--1);
  border-bottom: 1px solid var(--charcoal);
  padding-bottom: 2px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.collection-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--warm-ivory);
}

.collection-card .ph {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--muted-taupe), var(--warm-ivory));
  transition: transform 600ms ease;
}

.collection-card:hover .ph {
  transform: scale(1.04);
}

.collection-card .label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--step-1);
}

@media (max-width: 860px) {
  .collection-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .collection-grid {
    grid-template-columns: 1fr;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 14px;
  }
}

/* PRODUCT CARD & THUMBNAIL ZOOM (SINGLE IMAGE ONLY) */
.product-card .thumb {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--warm-ivory);
  overflow: hidden;
  margin-bottom: 14px;
}

.product-card .ph {
  position: absolute;
  inset: 0;
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.product-card .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Smooth scale zoom on hover for the same image */
.product-card:hover .thumb img,
.product-card:hover .ph {
  transform: scale(1.08);
}


/* 1. Set table width to auto-fit */
table.list {
  width: auto;             /* Prevents the table from stretching across 100% of the parent */
  max-width: 100%;         /* Ensures the table stays within the screen width if needed */
}

.list th,
.list td {
  width: 1%;               /* Forces cells to shrink-wrap around their content */
  white-space: nowrap;     /* Prevents text from wrapping to a new line */
}

/* 1. Set a scrolling container for the table */
.tablewrap {
  max-height: 500px; /* Adjust height as needed */
  overflow: auto;    /* Enables horizontal and vertical scrollbars when needed */
  position: relative;
}

/* 2. Freeze the Top Header Row */
.list thead th {
  position: sticky;
  top: 0;
  z-index: 2; /* Keeps headers above scrolling table body content */
  background-color: var(--adm-bg, #fcfaf7); /* Required to prevent text underneath from showing through */
}

/* 3. Freeze the First Column */
.list th:first-child,
.list td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background-color: var(--adm-bg, #fcfaf7); /* Required so content scrolling behind is hidden */
}

/* 4. Top-Left Corner Cell (Intersection of Header and First Column) */
.list thead th:first-child {
  z-index: 3; /* Highest z-index so it sits above both header row and first column */
}


/* ADMIN THUMBNAIL ZOOM OVERRIDES */

.adm select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--adm-line);
    border-radius: 0;
    background: transparent;
    font: inherit;
    font-size: var(--step--1);
    color: inherit;
    box-sizing: border-box;
}

.adm .thumb,
.list .pthumb {
  overflow: hidden;
}

.adm .thumb img,
.list .pthumb img,
img.pthumb {
  transition: transform 300ms ease;
  object-fit: cover;
}

.adm .thumb:hover img,
.list tr:hover img.pthumb,
img.pthumb:hover {
  transform: scale(1.12);
}

.wishlist-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(245, 239, 228, 0.9);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.wishlist-toggle svg {
  width: 16px;
  height: 16px;
}

.wishlist-toggle[aria-pressed="true"] svg {
  fill: var(--heritage-green);
}

.sold-out-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 0.7rem;
  padding: 4px 10px;
  z-index: 2;
}

.product-card .price-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: var(--step--1);
}

.compare {
  color: var(--muted-taupe);
  text-decoration: line-through;
}

.on-sale {
  color: var(--heritage-green);
}

.quick-actions {
  margin-top: 8px;
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover .quick-actions,
.quick-actions:focus-within {
  opacity: 1;
}

@media (max-width: 860px) {
  .quick-actions {
    opacity: 1;
  }
}

.editorial-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.editorial-block .media {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--forest-green), var(--muted-taupe));
}

.editorial-block h2 {
  font-size: var(--step-3);
  max-width: 12ch;
}

@media (max-width: 860px) {
  .editorial-block {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.newsletter-strip {
  background: var(--warm-ivory);
  text-align: center;
  padding-block: 64px;
}

.newsletter-strip h2 {
  font-size: var(--step-2);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 20px auto 0;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85em 1em;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--charcoal);
  border-radius: var(--radius);
  min-height: 44px;
}

input:focus,
select:focus {
  border-color: var(--heritage-green);
}

label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted-taupe);
  margin-bottom: 6px;
}

.field {
  margin-bottom: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 18px;
}

legend {
  font-size: 0.8rem;
  color: var(--muted-taupe);
  padding: 0 6px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
}

.filters-panel {
  position: sticky;
  top: 100px;
}

.filter-group {
  border-bottom: 1px solid var(--line);
  padding-block: 16px;
}

.filter-group summary {
  cursor: pointer;
  font-size: var(--step--1);
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: var(--step--1);
  color: var(--charcoal);
  margin: 0;
}

.filter-option input {
  width: 18px;
  height: 18px;
  min-height: 0;
}

.filters-trigger,
.filters-close {
  display: none;
}

@media (max-width: 900px) {
  .filters-panel {
    position: fixed;
    inset: 8% 0 0 0;
    background: var(--ivory);
    z-index: 90;
    padding: 24px var(--gutter) 100px;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform var(--transition);
    visibility: hidden;
  }
  .filters-panel.is-open {
    transform: none;
    visibility: visible;
  }
  .filters-trigger,
  .filters-close {
    display: inline-flex;
  }
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

.result-count {
  color: var(--muted-taupe);
  font-size: var(--step--1);
}

.sort-select {
  width: auto;
}

.autocomplete {
  position: relative;
}

.autocomplete-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  background: var(--white);
  border: 1px solid var(--line);
  z-index: 60;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.autocomplete-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
}

.autocomplete-item .ph {
  width: 44px;
  height: 44px;
  background: var(--warm-ivory);
  flex-shrink: 0;
  overflow: hidden;
}

.autocomplete-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-bar {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}

.search-bar.is-open {
  display: block;
}

.search-bar .container {
  padding-block: 12px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted-taupe);
}

.empty-state h3 {
  color: var(--charcoal);
}

.pdp-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
}

@media (max-width: 900px) {
  .pdp-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.gallery-main {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--warm-ivory);
  overflow: hidden;
  touch-action: pan-y;
}

.gallery-main .ph {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    var(--warm-ivory),
    var(--muted-taupe) 180%
  );
}

.gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zoom-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  z-index: 2;
}

.gallery-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}

.gallery-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
}

.gallery-dots button.is-active {
  background: var(--heritage-green);
  width: 20px;
  border-radius: 4px;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.gallery-thumbs button {
  width: 64px;
  height: 64px;
  background: var(--warm-ivory);
  border: 1px solid transparent;
  padding: 0;
  overflow: hidden;
}

.gallery-thumbs button.is-active {
  border-color: var(--heritage-green);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .gallery-thumbs {
    display: none;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 25, 20, 0.94);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.lightbox.is-open {
  display: flex;
}

.lightbox .stage {
  width: min(92vw, 900px);
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.lightbox .stage.zoomed {
  cursor: zoom-out;
}

.lightbox .stage.zoomed .inner {
  transform: scale(2);
}

.lightbox .inner {
  position: absolute;
  inset: 0;
  transition: transform var(--transition);
  background: linear-gradient(
    160deg,
    var(--warm-ivory),
    var(--muted-taupe) 180%
  );
}

.lightbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lb-close,
.lb-nav {
  position: absolute;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 1.8rem;
  min-width: 44px;
  min-height: 44px;
}

.lb-close {
  top: 14px;
  right: 14px;
}

.lb-nav.prev {
  left: 8px;
  top: 50%;
}

.lb-nav.next {
  right: 8px;
  top: 50%;
}

.pdp-info h1 {
  font-size: var(--step-3);
}

.pdp-price {
  font-size: var(--step-1);
  margin-bottom: 20px;
}

.pdp-price .compare {
  font-size: var(--step-0);
  margin-left: 8px;
}

.variant-group {
  margin-bottom: 22px;
}

.options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.variant-swatch {
  padding: 0.6em 1.1em;
  border: 1px solid var(--line);
  font-size: var(--step--1);
  background: var(--white);
  min-height: 44px;
}

.variant-swatch.is-selected {
  border-color: var(--heritage-green);
  background: var(--heritage-green);
  color: var(--ivory);
}

.variant-swatch[disabled] {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}

.availability-line {
  font-size: var(--step--1);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--heritage-green);
}

.availability-line.sold-out .availability-dot {
  background: var(--warm-brown);
}

.pdp-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.pdp-actions .btn-primary {
  flex: 1;
}

.sticky-add {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  gap: 16px;
  z-index: 70;
}

.sticky-add.is-visible {
  display: flex;
}

.sticky-add .btn {
  flex: 1;
}

@media (max-width: 640px) {
  .sticky-add {
    bottom: 64px;
    padding-bottom: 12px;
  }
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-item summary {
  padding: 16px 0;
  cursor: pointer;
  font-size: var(--step--1);
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item .content {
  padding-bottom: 18px;
  color: var(--muted-taupe);
  font-size: var(--step--1);
}

.related-strip {
  margin-top: 80px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--white);
  z-index: 110;
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

.cart-drawer.is-open {
  transform: none;
  visibility: visible;
}

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 25, 20, 0.4);
  z-index: 105;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition);
}

.cart-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--gutter);
}

.cart-line {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line .thumb {
  width: 76px;
  height: 90px;
  background: var(--warm-ivory);
  flex-shrink: 0;
  overflow: hidden;
}

.cart-line .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line .info {
  flex: 1;
}

.cart-line .name {
  font-size: var(--step--1);
}

.cart-line .variant {
  color: var(--muted-taupe);
  font-size: 0.8rem;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  margin-top: 8px;
}

.qty-stepper button {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
}

.qty-stepper input {
  width: 36px;
  text-align: center;
  border: none;
  padding: 0;
  min-height: 0;
}

.remove-line {
  background: none;
  border: none;
  color: var(--muted-taupe);
  font-size: 0.78rem;
  text-decoration: underline;
  margin-top: 6px;
  padding: 8px 0;
}

.cart-drawer-foot {
  padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cart-page-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .cart-page-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

.order-summary {
  background: var(--warm-ivory);
  padding: 28px;
  position: sticky;
  top: 100px;
}

.order-summary .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: var(--step--1);
}

.order-summary .row.total {
  font-size: var(--step-1);
  font-family: var(--font-display);
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 16px;
}

.checkout-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
  font-size: 0.78rem;
  color: var(--muted-taupe);
}

.is-current {
  color: var(--heritage-green);
}

.shipping-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.shipping-option label {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--charcoal);
  font-size: var(--step--1);
}

.shipping-option input {
  width: auto;
  min-height: 0;
}

.review-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: var(--step--1);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 10px);
  background: var(--charcoal);
  color: var(--ivory);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: var(--step--1);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 200;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--warm-ivory) 25%,
    rgba(245, 239, 228, 0.5) 37%,
    var(--warm-ivory) 63%
  );
  background-size: 400% 100%;
  animation: sk 1.6s ease infinite;
}

@keyframes sk {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.whatsapp-fab {
  position: fixed;
  right: 16px;
  bottom: 88px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--heritage-green);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 641px) {
  .whatsapp-fab {
    bottom: 24px;
  }
}

.popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 25, 20, 0.5);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition);
}

.popup-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.newsletter-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  width: min(420px, 88vw);
  background: var(--ivory);
  z-index: 151;
  padding: 40px 32px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition);
}

.newsletter-popup.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

.newsletter-popup .close-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
}

.script {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--heritage-green);
}

.page-header {
  padding-block: 56px 32px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-size: var(--step-3);
}

.breadcrumb {
  font-size: 0.78rem;
  color: var(--muted-taupe);
  margin-bottom: 14px;
}

.prose {
  max-width: 820px;
  padding-block: 40px;
}

.prose h2 {
  font-size: var(--step-2);
  margin: 1.8em 0 0.5em;
}

.prose p,
.prose li {
  max-width: none;
  color: var(--charcoal);
}

.prose ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose a {
  border-bottom: 1px solid var(--heritage-green);
  color: var(--heritage-green);
}

.prose .last-updated {
  font-style: normal;
  font-size: var(--step--1);
  color: var(--muted-taupe);
  margin-bottom: 1.5em;
}

.prose .contact-card {
  background: var(--warm-ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.prose .contact-card p {
  margin: 0 0 0.6em;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .policy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .policy-grid {
    grid-template-columns: 1fr;
  }
}

.policy-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color var(--transition), background var(--transition);
}

.policy-card:hover {
  border-color: var(--heritage-green);
  background: var(--warm-ivory);
}

.policy-card h3 {
  font-size: var(--step-1);
  margin: 0;
}

.policy-card p {
  color: var(--muted-taupe);
  font-size: var(--step--1);
  margin: 0 0 12px;
}

.policy-card .link-more {
  align-self: flex-start;
  margin-top: auto;
}