:root {
  --ink: #171412;
  --paper: #f8f5ef;
  --soft-paper: #eee6da;
  --line: rgba(23, 20, 18, 0.14);
  --blue: #a9c8cf;
  --wine: #6f2732;
  --moss: #5f6b56;
  --white: #fffaf1;
  --shadow: 0 22px 60px rgba(23, 20, 18, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.drawer-open {
  overflow: hidden;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 48px);
  color: var(--white);
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(248, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.brand-mark {
  grid-column: 2;
  justify-self: center;
  text-decoration: none;
  font-family: Didot, "Bodoni 72", "Bodoni MT", "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  letter-spacing: 0.18em;
  font-weight: 500;
  line-height: 1;
}

.desktop-nav {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.desktop-nav a {
  text-decoration: none;
  opacity: 0.86;
}

.desktop-nav a:hover {
  opacity: 1;
}

.desktop-nav-right {
  justify-content: flex-end;
  padding-right: 54px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.menu-button {
  display: none;
  justify-self: start;
  gap: 5px;
  align-content: center;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
}

.bag-button {
  position: absolute;
  top: 14px;
  right: clamp(18px, 4vw, 48px);
}

.bag-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bag-count {
  position: absolute;
  right: 3px;
  bottom: 4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--wine);
  color: var(--white);
  font-size: 0.64rem;
  line-height: 1;
}

.bag-count.is-empty {
  display: none;
}

.hero {
  position: relative;
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #a9bfc0;
}

.hero picture {
  position: absolute;
  inset: 0;
  display: block;
  background: #a9bfc0;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 20, 18, 0.38) 0%, rgba(23, 20, 18, 0.05) 34%, rgba(23, 20, 18, 0.46) 100%),
    linear-gradient(90deg, rgba(23, 20, 18, 0.28), transparent 38%, rgba(23, 20, 18, 0.2));
}

.hero-content {
  position: absolute;
  right: clamp(20px, 7vw, 96px);
  bottom: clamp(36px, 8vw, 90px);
  width: min(560px, calc(100% - 40px));
  color: var(--white);
  text-align: right;
}

.eyebrow,
.section-heading p,
.journal-strip p,
.intro-copy span {
  margin: 0 0 12px;
  color: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 6.8rem);
  font-weight: 400;
  line-height: 0.95;
}

.hero-link,
.journal-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 28px;
  padding: 0 0 8px;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  padding: clamp(44px, 8vw, 98px) clamp(20px, 6vw, 92px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.intro-copy h2,
.section-heading h2,
.journal-strip h2 {
  margin: 0;
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-weight: 400;
  line-height: 1;
}

.intro-copy h2 {
  max-width: 860px;
  font-size: clamp(2.2rem, 5vw, 5rem);
}

.intro-band > p,
.atelier-text {
  margin: 0;
  max-width: 620px;
  color: rgba(23, 20, 18, 0.72);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.atelier-text {
  display: grid;
  gap: 16px;
}

.atelier-text p {
  margin: 0;
}

.collection-section {
  padding: clamp(42px, 7vw, 86px) clamp(16px, 5vw, 72px) clamp(54px, 8vw, 104px);
}

.new-arrivals-section {
  padding: clamp(42px, 7vw, 86px) 0 clamp(54px, 8vw, 104px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.section-heading h2 {
  font-size: clamp(2.3rem, 5vw, 5.2rem);
}

.carousel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(16px, 5vw, 72px);
}

.carousel-heading .section-heading {
  margin-bottom: clamp(24px, 4vw, 44px);
}

.carousel-controls {
  display: flex;
  gap: 10px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.carousel-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(23, 20, 18, 0.32);
  background: transparent;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.carousel-arrow:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.carousel-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.new-arrivals-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 31vw);
  gap: clamp(16px, 2.4vw, 30px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: clamp(16px, 5vw, 72px);
  scroll-snap-type: x mandatory;
  padding: 0 clamp(16px, 5vw, 72px) 10px;
  scrollbar-width: none;
}

.new-arrivals-track::-webkit-scrollbar {
  display: none;
}

.new-arrivals-track .product-card {
  scroll-snap-align: start;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
}

.product-card {
  background: var(--white);
  border: 1px solid rgba(23, 20, 18, 0.11);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(23, 20, 18, 0.08);
}

.product-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--soft-paper);
}

.product-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 500ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}
.product-media img {
  object-position: center top;
}

.product-card .add-button {
  font-weight: 600;
}


.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  background: rgba(248, 245, 239, 0.9);
  border: 1px solid rgba(23, 20, 18, 0.12);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-info {
  min-height: 98px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
}

.product-info h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

.product-info p {
  margin: 0;
  color: rgba(23, 20, 18, 0.58);
  font-size: 0.88rem;
}

.product-info strong {
  white-space: nowrap;
  font-size: 0.92rem;
}

.add-button,
.checkout-button {
  width: calc(100% - 36px);
  min-height: 46px;
  margin: 0 18px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.add-button:hover,
.checkout-button:hover {
  background: var(--wine);
  border-color: var(--wine);
}

.journal-strip {
  min-height: 280px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  padding: clamp(38px, 7vw, 78px) clamp(20px, 6vw, 92px);
  background: var(--moss);
  color: var(--white);
}

.journal-strip h2 {
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 4.8rem);
}

.catalog-hero {
  min-height: 48svh;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 120px clamp(20px, 6vw, 92px) clamp(38px, 7vw, 78px);
  background: var(--ink);
  color: var(--white);
}

.catalog-hero h1 {
  margin: 0;
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-size: clamp(3.2rem, 10vw, 9rem);
  font-weight: 400;
  line-height: 0.88;
}

.catalog-hero span {
  max-width: 680px;
  margin-top: 18px;
  color: rgba(255, 250, 241, 0.72);
  font-size: clamp(1rem, 1.8vw, 1.24rem);
}

.catalog-section {
  background: var(--paper);
}

.product-page .site-header {
  background: rgba(248, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(92px, 11vw, 132px) clamp(16px, 5vw, 72px) clamp(44px, 7vw, 86px);
}

.product-gallery {
  min-width: 0;
}

.gallery-frame {
  position: relative;
  min-height: 520px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--soft-paper);
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: opacity 180ms ease;
}

.gallery-frame img.is-changing {
  opacity: 0.35;
}

.gallery-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 26%;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 180ms ease;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: rgba(248, 245, 239, 0.34);
}

.gallery-arrow svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.32;
  transition: opacity 180ms ease;
}

.gallery-arrow:hover svg,
.gallery-arrow:focus-visible svg {
  opacity: 1;
}

.gallery-prev {
  left: 0;
}

.gallery-next {
  right: 0;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumb {
  aspect-ratio: 1;
  border: 1px solid transparent;
  padding: 0;
  background: var(--soft-paper);
  cursor: pointer;
  overflow: hidden;
}

.gallery-thumb.is-active {
  border-color: var(--ink);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-copy {
  position: sticky;
  top: 108px;
  padding-top: clamp(6px, 2vw, 26px);
}

.product-copy h1,
.product-story h2 {
  margin: 0;
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-weight: 400;
  line-height: 0.95;
}

.product-copy h1 {
  font-size: clamp(3.1rem, 7vw, 7rem);
}

.product-price {
  display: block;
  margin: 18px 0 28px;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.product-copy > p {
  max-width: 560px;
  margin: 0;
  color: rgba(23, 20, 18, 0.7);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
}

.product-facts {
  margin: 30px 0;
  border-top: 1px solid var(--line);
}

.product-facts div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.product-facts dt {
  color: rgba(23, 20, 18, 0.52);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-facts dd {
  margin: 0;
}

.product-buy {
  width: min(340px, 100%);
  margin: 0;
}

.product-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
  gap: clamp(28px, 6vw, 86px);
  padding: clamp(42px, 7vw, 86px) clamp(20px, 6vw, 92px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.product-story h2 {
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 5rem);
}

.product-story > p {
  margin: 0;
  color: rgba(23, 20, 18, 0.7);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 6vw, 92px);
  border-top: 1px solid var(--line);
  color: rgba(23, 20, 18, 0.72);
}

.site-footer span {
  font-family: Didot, "Bodoni 72", Georgia, serif;
  letter-spacing: 0.18em;
}

.site-footer p {
  margin: 0;
}

.mobile-menu,
.bag-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 45;
  width: min(390px, 88vw);
  padding: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 260ms ease;
}

.mobile-menu {
  left: 0;
  transform: translateX(-105%);
}

.bag-drawer {
  right: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
}

.mobile-menu.is-open,
.bag-drawer.is-open {
  transform: translateX(0);
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 30px;
  font-family: Didot, "Bodoni 72", Georgia, serif;
  font-size: 1.4rem;
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 1.12rem;
}

.drawer-note {
  margin-top: 28px;
  color: rgba(23, 20, 18, 0.58);
  font-size: 0.92rem;
}

.close-icon {
  position: relative;
  width: 24px;
  height: 24px;
}

.close-icon::before,
.close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  width: 20px;
  height: 1px;
  background: currentColor;
}

.close-icon::before {
  transform: rotate(45deg);
}

.close-icon::after {
  transform: rotate(-45deg);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(23, 20, 18, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bag-empty {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: rgba(23, 20, 18, 0.62);
}

.bag-empty p {
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 600;
}

.bag-items {
  flex: 1;
  overflow: auto;
}

.bag-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.bag-item strong,
.bag-item span {
  display: block;
}

.bag-item span {
  color: rgba(23, 20, 18, 0.58);
  font-size: 0.86rem;
}

.bag-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.checkout-button {
  width: 100%;
  margin: 0;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 64px;
    padding: 10px 14px;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
  }

  .menu-button {
    display: grid;
  }

  .desktop-nav {
    display: none;
  }

  .bag-button {
    top: 10px;
    right: 12px;
  }

  .brand-mark {
    grid-column: 2;
    font-size: clamp(1.36rem, 6vw, 1.9rem);
    letter-spacing: 0.16em;
  }

  .hero {
    min-height: 100svh;
    aspect-ratio: auto;
    height: auto;
  }

  .hero picture {
    background-image: url("assets/hero-mobile.jpg");
    background-position: center center;
  }

  .hero-image {
    object-fit: cover;
    object-position: center center;
  }

  .hero-content {
    right: auto;
    left: 18px;
    bottom: clamp(174px, 23svh, 220px);
    width: min(320px, calc(100% - 36px));
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.85rem);
    line-height: 1;
  }

  .mobile-menu {
    width: 100vw;
    padding: 18px 22px 34px;
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-menu .drawer-top {
    min-height: 54px;
    margin-bottom: 42px;
  }

  .mobile-menu a {
    padding: 20px 0;
    font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
    font-size: clamp(2rem, 11vw, 4.8rem);
    line-height: 0.95;
  }

  .drawer-note {
    max-width: 320px;
    margin-top: 36px;
  }

  .intro-band {
    grid-template-columns: 1fr;
  }

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

  .product-detail {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 82px 14px 44px;
  }

  .gallery-frame {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .gallery-arrow {
    display: none;
  }

  .gallery-thumbs {
    gap: 8px;
  }

  .product-copy {
    position: static;
    padding: 10px 2px 0;
  }

  .product-copy h1 {
    font-size: clamp(2.7rem, 15vw, 4.8rem);
  }

  .product-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-buy {
    width: 100%;
  }

  .product-story {
    grid-template-columns: 1fr;
  }

  .carousel-heading {
    display: block;
  }

  .carousel-controls {
    display: none;
  }

  .new-arrivals-track {
    grid-auto-columns: minmax(250px, 82vw);
    gap: 14px;
    padding-bottom: 4px;
  }

  .catalog-hero {
    min-height: 42svh;
    padding-top: 96px;
  }

  .product-info {
    min-height: 88px;
  }

  .journal-strip,
  .site-footer,
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .brand-mark {
    font-size: 1.24rem;
  }

  .eyebrow,
  .section-heading p,
  .journal-strip p,
  .intro-copy span {
    font-size: 0.68rem;
  }

  .intro-copy h2,
  .section-heading h2,
  .journal-strip h2 {
    font-size: 2rem;
  }
}


/* SPREZZA completion patch */
.checkout-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.bag-item-copy {
  min-width: 0;
}

.bag-item-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.bag-item-actions {
  display: inline-grid;
  grid-template-columns: 32px 32px 32px;
  align-items: center;
  border: 1px solid var(--line);
}

.bag-item-actions button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
}

.bag-item-actions span {
  text-align: center;
  font-size: 0.86rem;
}

.remove-item {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 2px;
  background: transparent;
  color: rgba(23, 20, 18, 0.6);
  cursor: pointer;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.checkout-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.checkout-card {
  width: min(560px, 100%);
  max-height: min(760px, calc(100svh - 32px));
  overflow: auto;
  padding: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.checkout-note {
  margin: 0 0 6px;
  color: rgba(23, 20, 18, 0.68);
  font-size: 0.92rem;
}

.checkout-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  color: rgba(23, 20, 18, 0.68);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.checkout-form textarea {
  resize: vertical;
}

.checkout-message {
  min-height: 1.4em;
  margin: 0;
  color: rgba(23, 20, 18, 0.68);
  font-size: 0.88rem;
}

.gallery-thumbs:has(.gallery-thumb:only-child) {
  grid-template-columns: minmax(0, 120px);
}

@media (max-width: 520px) {
  .bag-item {
    grid-template-columns: 1fr;
  }

  .bag-item-side {
    justify-items: start;
  }

  .checkout-card {
    padding: 18px;
  }
}

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

.luxe-footer {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0;
  border-top: 1px solid rgba(23, 20, 18, 0.12);
  background:
    radial-gradient(circle at 8% 0%, rgba(169, 200, 207, 0.28), transparent 34%),
    radial-gradient(circle at 92% 4%, rgba(111, 39, 50, 0.10), transparent 36%),
    linear-gradient(180deg, #f8f5ef 0%, #eee6da 100%);
  color: var(--ink);
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.luxe-footer a {
  color: inherit;
  text-decoration: none;
}

.luxe-footer span {
  font-family: inherit;
  letter-spacing: 0;
}

.luxe-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 250, 241, 0.5) 42%, transparent 68%);
  opacity: 0;
  transform: translateX(-38%);
}

.luxe-footer .footer-newsletter,
.luxe-footer .footer-brand-block,
.luxe-footer .footer-column,
.luxe-footer .footer-bottom {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(8px);
  transition:
    opacity 780ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 780ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 780ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.luxe-footer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.luxe-footer.is-visible::before {
  opacity: 1;
  transform: translateX(38%);
  transition: opacity 900ms ease 180ms, transform 1600ms cubic-bezier(0.22, 1, 0.36, 1) 180ms;
}

.luxe-footer.is-visible .footer-newsletter,
.luxe-footer.is-visible .footer-brand-block,
.luxe-footer.is-visible .footer-column,
.luxe-footer.is-visible .footer-bottom {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.luxe-footer.is-visible .footer-newsletter {
  transition-delay: 90ms;
}

.luxe-footer.is-visible .footer-brand-block {
  transition-delay: 220ms;
}

.luxe-footer.is-visible .footer-column:nth-of-type(1) {
  transition-delay: 310ms;
}

.luxe-footer.is-visible .footer-column:nth-of-type(2) {
  transition-delay: 400ms;
}

.luxe-footer.is-visible .footer-bottom {
  transition-delay: 520ms;
}

@media (prefers-reduced-motion: reduce) {
  .luxe-footer,
  .luxe-footer::before,
  .luxe-footer .footer-newsletter,
  .luxe-footer .footer-brand-block,
  .luxe-footer .footer-column,
  .luxe-footer .footer-bottom {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.footer-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: end;
  padding: clamp(48px, 8vw, 92px) clamp(20px, 6vw, 92px);
  border-bottom: 1px solid rgba(23, 20, 18, 0.10);
}

.footer-newsletter-copy h2 {
  max-width: 820px;
  margin: 0;
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-size: clamp(2.25rem, 4.8vw, 5.2rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.footer-newsletter-copy span {
  display: block;
  margin-top: 18px;
  color: rgba(23, 20, 18, 0.62);
}

.footer-subscribe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.footer-subscribe input {
  min-height: 52px;
  width: 100%;
  border: 1px solid rgba(23, 20, 18, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.72);
  color: var(--ink);
  padding: 0 18px;
  outline: none;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.footer-subscribe input::placeholder {
  color: rgba(23, 20, 18, 0.42);
}

.footer-subscribe input:focus {
  border-color: rgba(23, 20, 18, 0.38);
  background: rgba(255, 250, 241, 0.94);
}

.footer-subscribe button {
  min-height: 52px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  padding: 0 24px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.footer-subscribe button:hover {
  transform: translateY(-2px);
  background: transparent;
  color: var(--ink);
}

.newsletter-message {
  grid-column: 1 / -1;
  min-height: 1.35em;
  margin: 0;
  color: rgba(23, 20, 18, 0.58);
  font-size: 0.84rem;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(150px, 0.6fr));
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(36px, 6vw, 72px) clamp(20px, 6vw, 92px);
}

.footer-brand-block p {
  max-width: 460px;
  margin: 18px 0 0;
  color: rgba(23, 20, 18, 0.62);
}

.footer-logo {
  display: inline-flex;
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: 0.18em;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column h3 {
  margin: 0 0 8px;
  color: rgba(23, 20, 18, 0.82);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-column a,
.footer-muted-link {
  width: max-content;
  max-width: 100%;
  color: rgba(23, 20, 18, 0.62);
}

.footer-column a {
  transition: color 180ms ease, transform 180ms ease;
}

.footer-column a:hover {
  color: var(--ink);
  transform: translateX(4px);
}

.footer-muted-link {
  cursor: default;
  opacity: 0.52;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 6vw, 92px);
  border-top: 1px solid rgba(23, 20, 18, 0.10);
  color: rgba(23, 20, 18, 0.50);
  font-size: 0.84rem;
}

.footer-bottom > span {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-bottom a:hover {
  color: var(--ink);
}

.legal-page .site-header {
  background: rgba(248, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.legal-hero {
  padding: 132px clamp(20px, 6vw, 92px) clamp(34px, 6vw, 72px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.legal-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(23, 20, 18, 0.66);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.legal-hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-size: clamp(3rem, 8vw, 7.4rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.legal-content {
  display: grid;
  gap: 24px;
  max-width: 960px;
  padding: clamp(34px, 6vw, 72px) clamp(20px, 6vw, 92px);
}

.legal-card {
  padding: clamp(22px, 4vw, 38px);
  background: rgba(255, 250, 241, 0.68);
  border: 1px solid rgba(23, 20, 18, 0.10);
}

.legal-card h2 {
  margin: 0 0 14px;
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: 400;
}

.legal-card h3 {
  margin: 24px 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-card p,
.legal-card li {
  color: rgba(23, 20, 18, 0.68);
}

.legal-card ul {
  padding-left: 18px;
}

.legal-note {
  border-left: 2px solid var(--wine);
}

@media (max-width: 900px) {
  .footer-newsletter,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-subscribe {
    max-width: 560px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .footer-newsletter,
  .footer-main,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-subscribe {
    grid-template-columns: 1fr;
  }

  .footer-subscribe button {
    width: 100%;
  }
}


/* Final launch polish */
.desktop-nav a.is-active { color: var(--white); opacity: 1; }
.site-header.is-scrolled .desktop-nav a.is-active,
.product-page .site-header .desktop-nav a.is-active,
.legal-page .site-header .desktop-nav a.is-active,
.checkout-page .site-header .desktop-nav a.is-active { color: var(--ink); }
.text-link { color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.card-link-button { display: inline-flex; justify-content: center; text-decoration: none; }
.bag-free-shipping { margin: 16px 0 0; padding: 12px 14px; border: 1px solid rgba(42,39,34,.14); border-radius: 999px; color: var(--muted); font-size: .78rem; text-align: center; }
.checkout-link { text-decoration: none; text-align: center; }
.checkout-link.is-disabled { opacity: .45; pointer-events: none; }
.bag-item { grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.bag-thumb { width: 54px; height: 68px; object-fit: cover; border-radius: 10px; background: rgba(42,39,34,.05); }
.size-select { display: grid; gap: 10px; margin: 24px 0 10px; color: var(--ink); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }
.size-select select { width: 100%; border: 1px solid rgba(43,41,37,.18); background: var(--white); border-radius: 999px; padding: 14px 18px; font: inherit; letter-spacing: 0; text-transform: none; color: var(--ink); }
.product-message { min-height: 20px; margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.product-actions-note { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 16px; color: var(--muted); font-size: .88rem; }
.product-actions-note a { color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; }
.product-info-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: clamp(44px, 6vw, 92px) clamp(20px, 5vw, 74px); background: #f6f1e8; }
.product-info-blocks article { background: rgba(255,255,255,.62); border: 1px solid rgba(43,41,37,.08); border-radius: 24px; padding: clamp(22px, 3vw, 34px); }
.product-info-blocks h3 { margin: 0 0 14px; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 400; }
.product-info-blocks p, .product-info-blocks li { color: var(--muted); line-height: 1.75; }
.product-info-blocks ul { margin: 0; padding-left: 18px; }
.benefit-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(43,41,37,.12); padding: 1px; margin: 0 clamp(20px, 5vw, 74px) clamp(42px, 6vw, 80px); }
.benefit-strip article { background: #f7f1e7; padding: clamp(24px, 3vw, 38px); }
.benefit-strip span { display: block; margin-bottom: 30px; color: var(--muted); font-size: .72rem; letter-spacing: .2em; }
.benefit-strip h3 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 1.3rem; font-weight: 400; }
.benefit-strip p { margin: 0; color: var(--muted); line-height: 1.7; }
.checkout-main { background: #f6f1e8; min-height: 100vh; padding-top: 86px; }
.checkout-hero-page { padding: clamp(70px, 10vw, 132px) clamp(20px, 5vw, 74px) clamp(32px, 5vw, 58px); text-align: center; }
.checkout-hero-page h1 { margin: 0 auto 18px; max-width: 900px; font-family: Didot, "Bodoni 72", Georgia, serif; font-size: clamp(3rem, 7vw, 7rem); font-weight: 400; line-height: .95; }
.checkout-hero-page span { display: block; max-width: 620px; margin: 0 auto; color: var(--muted); line-height: 1.8; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: clamp(20px, 4vw, 52px); align-items: start; padding: 0 clamp(20px, 5vw, 74px) clamp(70px, 8vw, 120px); }
.checkout-page-form, .checkout-summary-card, .content-page-grid .legal-card, .about-story-grid article { border: 1px solid rgba(43,41,37,.09); background: rgba(255,255,255,.68); border-radius: 28px; box-shadow: 0 24px 80px rgba(43,41,37,.06); }
.checkout-page-form { padding: clamp(22px, 4vw, 42px); display: grid; gap: 28px; }
.form-section { display: grid; gap: 16px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
.checkout-page-form label { display: grid; gap: 8px; color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.checkout-page-form input, .checkout-page-form textarea { border: 1px solid rgba(43,41,37,.14); background: #fff; border-radius: 18px; padding: 14px 16px; color: var(--ink); font: inherit; letter-spacing: 0; text-transform: none; }
.checkout-page-form textarea { resize: vertical; }
.checkbox-line { grid-template-columns: auto 1fr !important; align-items: start; letter-spacing: 0 !important; text-transform: none !important; font-size: .9rem !important; line-height: 1.55; }
.checkbox-line input { width: 18px; height: 18px; margin-top: 2px; }
.checkout-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.checkout-button.secondary { background: transparent; color: var(--ink); border-color: rgba(43,41,37,.22); }
.checkout-summary-card { position: sticky; top: 104px; padding: clamp(22px, 3vw, 34px); }
.summary-top h2 { margin: 0 0 18px; font-family: Georgia, serif; font-weight: 400; font-size: 1.8rem; }
.checkout-lines { display: grid; gap: 16px; margin: 18px 0 24px; }
.checkout-line-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: start; }
.checkout-line-item img { width: 72px; height: 92px; border-radius: 12px; object-fit: cover; background: rgba(43,41,37,.06); }
.checkout-line-item strong { color: var(--ink); }
.checkout-line-item span { display: block; margin-top: 5px; color: var(--muted); font-size: .9rem; }
.checkout-qty { margin-top: 10px; justify-content: flex-start; }
.summary-line { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid rgba(43,41,37,.1); color: var(--muted); }
.summary-line.total { color: var(--ink); font-size: 1.18rem; }
.summary-note, .checkout-empty p { color: var(--muted); line-height: 1.7; }
.content-page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 0 clamp(20px, 5vw, 74px) clamp(72px, 8vw, 120px); }
.content-page-grid .wide-card { grid-column: 1 / -1; }
.table-wrap { overflow-x: auto; }
.size-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.size-table th, .size-table td { text-align: left; padding: 18px 14px; border-bottom: 1px solid rgba(43,41,37,.1); }
.size-table th { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.about-hero { padding: clamp(118px, 15vw, 190px) clamp(20px, 5vw, 74px) clamp(58px, 7vw, 96px); background: #eee6d9; text-align: center; }
.about-hero h1 { max-width: 980px; margin: 0 auto 22px; font-family: Didot, "Bodoni 72", Georgia, serif; font-size: clamp(3rem, 7vw, 7rem); font-weight: 400; line-height: .96; }
.about-hero span { display: block; max-width: 680px; margin: 0 auto; color: var(--muted); line-height: 1.8; }
.about-story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: clamp(50px, 7vw, 100px) clamp(20px, 5vw, 74px); background: #f6f1e8; }
.about-story-grid article { padding: clamp(24px, 3vw, 38px); }
.about-story-grid h2 { margin: 0 0 18px; font-family: Georgia, serif; font-weight: 400; font-size: 1.6rem; }
.about-story-grid p { color: var(--muted); line-height: 1.8; }
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 999px; background: #2b2925; color: #fff; text-decoration: none; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 18px 48px rgba(43,41,37,.18); }
.redirect-page { min-height: 100vh; display: grid; place-content: center; gap: 12px; text-align: center; background: #f6f1e8; }
.redirect-page h1 { font-family: Georgia, serif; font-weight: 400; }

@media (max-width: 900px) {
  .product-info-blocks, .benefit-strip, .about-story-grid, .checkout-layout, .content-page-grid { grid-template-columns: 1fr; }
  .checkout-summary-card { position: static; }
  .form-grid.two { grid-template-columns: 1fr; }
  .checkout-line-item { grid-template-columns: 60px 1fr; }
  .checkout-line-item > strong { grid-column: 2; }
}

@media (max-width: 640px) {
  .checkout-main { padding-top: 68px; }
  .checkout-hero-page { text-align: left; }
  .checkout-hero-page h1, .about-hero h1 { font-size: clamp(2.7rem, 16vw, 4.4rem); }
  .checkout-actions .checkout-button { width: 100%; }
  .whatsapp-float { right: 12px; bottom: 12px; min-height: 42px; padding: 0 14px; font-size: .68rem; }
  .bag-item { grid-template-columns: 48px 1fr; }
  .bag-item-side { grid-column: 2; align-items: flex-start; }
  .bag-thumb { width: 48px; height: 62px; }
}

/* Mobile checkout and drawer polish */
html, body { max-width: 100%; overflow-x: hidden; }
body.drawer-open { overflow: hidden; }

.bag-drawer,
.mobile-menu {
  max-width: 100vw;
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
}

.bag-drawer {
  z-index: 95;
}

.mobile-menu {
  z-index: 95;
}

.overlay {
  z-index: 90;
}

.bag-items {
  overscroll-behavior: contain;
  padding-right: 2px;
}

.bag-free-shipping {
  flex-shrink: 0;
}

.bag-summary,
.bag-drawer .checkout-link {
  flex-shrink: 0;
}

.bag-drawer.is-open ~ .whatsapp-float,
.mobile-menu.is-open ~ .whatsapp-float,
.drawer-open .whatsapp-float,
.checkout-page .whatsapp-float {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.whatsapp-float {
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.checkout-summary-card {
  overflow: hidden;
}

.checkout-line-item > div {
  min-width: 0;
}

.checkout-line-item > strong:last-child {
  white-space: nowrap;
  text-align: right;
}

.checkout-line-item .checkout-qty {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  margin-top: 12px;
}

.checkout-line-item .checkout-qty > button:not(.remove-item),
.checkout-line-item .checkout-qty > span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(43,41,37,.14);
  background: rgba(255,255,255,.78);
  border-radius: 999px;
}

.checkout-line-item .checkout-qty > span {
  color: var(--ink);
  margin: 0;
}

.checkout-line-item .checkout-qty .remove-item {
  width: auto;
  height: 34px;
  padding: 0 2px 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .checkout-summary-card {
    order: -1;
  }

  .checkout-layout {
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .bag-drawer,
  .mobile-menu {
    width: 100vw;
    padding: 18px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .bag-drawer .drawer-top,
  .mobile-menu .drawer-top {
    margin-bottom: 20px;
  }

  .bag-free-shipping {
    margin-top: 12px;
    padding: 10px 12px;
    font-size: .72rem;
    line-height: 1.35;
  }

  .bag-summary {
    padding: 14px 0;
  }

  .bag-drawer .checkout-link {
    min-height: 46px;
  }

  .checkout-layout {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 56px;
  }

  .checkout-page-form,
  .checkout-summary-card {
    border-radius: 22px;
  }

  .checkout-summary-card {
    padding: 20px 18px;
  }

  .checkout-line-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .checkout-line-item img {
    width: 58px;
    height: 74px;
  }

  .checkout-line-item > strong:last-child {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .checkout-line-item .checkout-qty {
    gap: 7px;
  }

  .checkout-line-item .checkout-qty > button:not(.remove-item),
  .checkout-line-item .checkout-qty > span {
    width: 32px;
    height: 32px;
  }

  .summary-line {
    gap: 12px;
  }

  .summary-note {
    font-size: .95rem;
    line-height: 1.65;
  }
}

@media (max-width: 380px) {
  .checkout-hero-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .checkout-page-form,
  .checkout-summary-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .checkout-line-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .checkout-line-item img {
    width: 52px;
    height: 68px;
  }

  .checkout-line-item .checkout-qty .remove-item {
    flex-basis: 100%;
    width: max-content;
    margin-top: 2px;
  }
}
