.topline {
  height: 28px;
  letter-spacing: .13em;
}

.header {
  height: 70px;
}

.hero {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  min-height: 0;
  margin-top: 26px;
  border-color: #ece4d2;
  box-shadow: 26px 16px 72px -50px rgb(214 157 27 / .50);
}

.hero-copy {
  --gold-glow:
    radial-gradient(ellipse 31% 30% at 0% 0%, #ffe5a0 0%, #fff3ce 48%, transparent 100%),
    radial-gradient(ellipse 29% 29% at 103% 104%, #ffe8a4 0%, #fff6dd 51%, transparent 100%);
  padding: clamp(30px, 4vw, 64px);
  background: #fff;
}

.hero-copy h1 {
  max-width: 10ch;
  margin: 0 0 22px;
  font-size: clamp(42px, 5.3vw, 78px);
  line-height: 1.04;
}

.hero-copy h1 span::after {
  height: 5px;
  bottom: 2px;
}

.hero-copy p {
  max-width: 34ch;
  margin: 0;
  line-height: 1.55;
}

.hero-buttons {
  margin-top: 24px;
}

.featured-carousel {
  --gold-glow:
    radial-gradient(ellipse 26% 105% at 102% 70%, #f2c44c 0%, #ffe291 40%, #fff3d0 69%, transparent 100%),
    radial-gradient(ellipse 22% 38% at -2% 110%, #fff0c1 0%, transparent 100%);
  --gold-glow-position: right 70%, left bottom;
  display: grid;
  min-width: 0;
  border-left: 1px solid var(--line);
  background: #fafafa;
}

.hero-copy,
.featured-carousel,
.product-card {
  position: relative;
  isolation: isolate;
}

.hero-copy::before,
.featured-carousel::before,
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image: var(--gold-glow);
  background-position: var(--gold-glow-position, left top, right bottom);
  background-repeat: no-repeat;
  pointer-events: none;
}

@keyframes gold-glow-pulse {
  0%, 100% { background-size: 100% 100%; opacity: .95; }
  50% { background-size: 106% 106%; opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy::before,
  .featured-carousel::before {
    animation: gold-glow-pulse 16s ease-in-out infinite;
  }
}

.featured-product {
  position: relative;
  display: grid;
  place-items: center;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  padding: 0;
  padding-inline: 4% 9%;
  border: 0;
  background: transparent;
}

.featured-product img {
  display: block;
  width: 100%;
  height: clamp(360px, 48vw, 560px);
  object-fit: contain;
}

.featured-copy {
  width: 100%;
  max-width: 36ch;
  min-height: 76px;
  padding: 0 0 0 14px;
  border-left: 3px solid var(--yellow);
}

.hero-copy .featured-benefit {
  color: var(--ink);
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 700;
  line-height: 1.3;
}

.hero-copy .featured-name {
  margin-top: 5px;
  color: #5a5a5a;
  font-size: 13px;
  line-height: 1.35;
}

.problem-shortcuts {
  display: flex;
  align-items: center;
  gap: 14px 22px;
  flex-wrap: wrap;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.problem-shortcuts h2 {
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid var(--yellow);
  font-family: var(--heading);
  font-size: 17px;
  line-height: 1.3;
}

.problem-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.problem-options button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.problem-options button:hover {
  border-color: var(--ink);
  background: #fafafa;
}

.problem-options button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.shop-section {
  padding-top: clamp(46px, 6vw, 80px);
  padding-bottom: clamp(42px, 5vw, 68px);
  scroll-margin-top: 12px;
}

.collection-glow {
  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgb(246 194 64 / .43) 16%,
      rgb(255 218 120 / .28) 37%,
      rgb(255 236 177 / .13) 65%,
      transparent 100%
    ) top / 100% min(330px, 50%) no-repeat,
    linear-gradient(
      to top,
      transparent 0%,
      rgb(245 189 54 / .42) 17%,
      rgb(255 214 110 / .27) 39%,
      rgb(255 236 174 / .13) 68%,
      transparent 100%
    ) bottom / 100% min(300px, 50%) no-repeat,
    #fff;
}

.problem-shortcuts:has(+ .collection-glow),
.collection-glow + .store-story {
  border-color: transparent;
}

.section-heading {
  align-items: baseline;
  gap: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 46px);
}

.section-heading .shop-count {
  margin: 0;
  white-space: nowrap;
  color: #626262;
  font-size: 13px;
}

.shop-controls {
  margin: 22px 0 18px;
}

.product-grid {
  gap: 20px;
}

.product-card {
  --gold-glow:
    radial-gradient(ellipse 80% 37% at 0% 0%, #ffe5a0, #fff3d0 45%, transparent 100%),
    radial-gradient(ellipse 91% 39% at 100% 100%, #f8d77d, #ffedb9 36%, #fff8e6 68%, transparent 100%);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.product-card::before { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .product-card {
    transition:
      translate .85s cubic-bezier(.18, .7, .25, 1) var(--card-reveal-delay, 0ms),
      opacity .7s ease var(--card-reveal-delay, 0ms),
      transform .2s ease,
      border-color .2s ease,
      box-shadow .2s ease;
  }

  .product-card.card-reveal-pending {
    opacity: 0;
    translate: 0 72px;
    transition: none;
    pointer-events: none;
  }
}

.product-card .product-image-box {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  aspect-ratio: 1;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 9px 9px 0 0;
  background: #fafafa;
}

.product-card:hover .product-image-box,
.product-card:hover .product-image-box img {
  transform: none;
  box-shadow: none;
}

.product-ribbon {
  position: absolute;
  top: 14px;
  left: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 24px 6px 13px;
  background: #f5d64e;
  color: #17160e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
  pointer-events: none;
}

.product-card .product-add {
  position: relative;
  z-index: 2;
}

.product-open {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  overflow-wrap: inherit;
}

.product-open::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 10px;
}

.external-rating { margin: 10px 0 12px; color: #252525; }
.external-rating-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; font-size: 14px; line-height: 1.5; }
.rating-stars { position: relative; display: inline-block; flex: 0 0 auto; color: #d5d2ca; font-size: 16px; letter-spacing: 1px; line-height: 1; white-space: nowrap; }
.rating-stars > span { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #a87900; white-space: nowrap; }
.external-rating-score { font-weight: 700; }
.rating-scale { font-weight: 400; }
.external-rating-count { color: #56544e; }
.external-rating .external-rating-label { margin: 0; color: #5b584f; font-size: 14px; line-height: 1.45; }
.external-rating-detail { padding: 0; margin: 0 0 20px; }
.external-rating-marker { padding: 3px 5px; margin-left: -5px; border: 0; background: transparent; color: #454239; font-size: 17px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.external-rating-marker:focus-visible { outline: 2px solid #8d6a00; outline-offset: 2px; }
.external-rating-note { margin-top: 20px; padding-top: 14px; border-top: 1px solid #e7e3d9; scroll-margin: 24px; color: #56544e; }
.external-rating-note p { margin: 0; font-size: 14px; line-height: 1.6; }
.external-rating-note:focus-visible { outline: 2px solid #8d6a00; outline-offset: 5px; }
.external-rating .external-rating-source { margin: 9px 0 0; color: #56544e; font-size: 14px; line-height: 1.6; }
.external-rating-about { position: relative; z-index: 2; margin-top: 7px; padding: 2px 0; border: 0; background: none; color: #454239; text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: 14px; cursor: pointer; }
.product-open:focus-visible { outline: none; }
.product-open:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 3px; }
.product-card:has(.product-open:focus-visible) { border-color: #eadfc7; }
.product-card:has(.product-open:focus-visible)::before { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    z-index: 1;
    border-color: #eadfc7;
    box-shadow: 0 10px 25px rgb(26 20 4 / .13);
  }

  .product-card:hover::before { opacity: 1; }

  .product-card:hover .product-image-box {
    padding: clamp(4px, .5vw, 7px);
    border-bottom-color: transparent;
    background: transparent;
  }

  .product-card:hover .product-image-box img { border-radius: 6px; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product-card:hover { transform: translateY(-3px) scale(1.02); }
  .product-card:hover::before { animation: gold-glow-pulse 10s ease-in-out infinite; }
}

.product-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  padding: 16px;
}

.product-title {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.product-subtitle {
  min-height: 0;
  margin: 6px 0 14px;
  color: #515151;
  line-height: 1.45;
}

.product-price {
  margin: auto 0 12px;
  padding-top: 4px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.offer-prices del,
.search-item-price del {
  margin-right: 6px;
  color: #595959;
  font-size: .8em;
  font-weight: 500;
}

.test-offer {
  position: fixed;
  z-index: 40;
  right: 20px;
  bottom: 20px;
  width: min(360px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 36px #0002;
}

.test-offer .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
}

.test-offer-label {
  padding-right: 40px;
  margin: 0 0 8px;
  color: #595959;
  font-size: 12px;
  font-weight: 700;
}

.test-offer h2 {
  margin: 0 0 10px;
  font-family: var(--heading);
  font-size: 24px;
}

.test-offer p {
  line-height: 1.45;
}

#test-offer-end {
  color: #595959;
  font-size: 13px;
}

#offer-email-form {
  margin: 16px 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

#offer-email-form label { font-size: 13px; }

#offer-email {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 5px;
  padding: 8px 10px;
  border: 1px solid #a4a4a4;
  border-radius: 6px;
  font-size: 16px;
}

.offer-email-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.offer-email-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #151515;
}

.offer-email-note,
#offer-email-status { font-size: 13px; color: #505050; }
.offer-email-note a { text-decoration: underline; }
#offer-email-status:empty { display: none; }
.personalisation-controls { padding-bottom: 10px; }
.personalisation-controls:has(button[hidden]):has(p:empty) { display: none; }
#personalisation-status:empty { display: none; }
.test-offer .btn { min-height: 44px; }
#offer-email-submit {
  width: 100%;
  justify-content: center;
  background: var(--yellow);
  color: var(--ink);
  border-color: #e5c84b;
}

#cart-offer-unlock {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #ead6a2;
  border-radius: 8px;
  background: #fff8df;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.test-offer .btn.test-offer-dismiss {
  color: var(--ink);
  background: #fff;
  border-color: #a4a4a4;
}

.analytics-preferences {
  position: fixed;
  z-index: 35;
  bottom: 16px;
  left: 16px;
  width: min(392px, calc(100% - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px #0002;
}

.analytics-preferences h2 { margin: 0; font-size: 17px; }
.analytics-preferences p { margin: 7px 0; color: #444; font-size: 13px; line-height: 1.45; }
#analytics-choice-status:empty { display: none; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.analytics-actions button { min-height: 44px; padding: 6px 11px; border: 1px solid #222; border-radius: 6px; color: var(--ink); background: #fff; font-size: 13px; font-weight: 700; }
.analytics-actions button:hover { background: #f4f4f4; }
.analytics-text-link { border: 0; padding: 0; background: transparent; font-size: inherit; text-decoration: underline; }

.product-add {
  width: 100%;
  min-height: 44px;
  border-color: #e5b800;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
}

.product-add:hover {
  transform: none;
  background: #ffcd21;
  border-color: #c7a000;
}

.product-add span {
  color: inherit;
}

[data-modal-add],
#checkout-button:not(:disabled) {
  min-height: 54px;
  border-color: #e5b800;
  background: var(--yellow);
  color: #080808;
  font-weight: 800;
}

.product-buy-box [data-modal-add] {
  width: auto;
  flex: 1 0 auto;
}

[data-modal-add] {
  justify-content: space-between;
  gap: 14px;
  padding-inline: 16px;
}

[data-modal-add]:hover,
#checkout-button:not(:disabled):hover {
  background: #ffcd21;
  border-color: #c7a000;
}

[data-modal-add]:focus-visible,
#checkout-button:focus-visible,
.product-add:focus-visible {
  outline: 2px solid #080808;
  outline-offset: 3px;
}

.product-buy-box .offer-prices del {
  margin-right: 0;
}

@media (prefers-reduced-motion: no-preference) {
  :is(.product-add, [data-modal-add]) {
    transition:
      scale .2s cubic-bezier(.2, .8, .3, 1),
      transform .2s ease,
      background .2s ease,
      border-color .2s ease,
      box-shadow .2s ease;
  }

  :is(.product-add, [data-modal-add]):active:not(:disabled) {
    scale: .96;
    box-shadow: none;
    transition-duration: .065s;
  }
}

#cart-drawer {
  width: min(100%, 510px);
  visibility: hidden;
  transition: transform .24s ease, visibility .24s;
}

#cart-drawer.open { visibility: visible; }

#cart-drawer .drawer-head {
  flex: none;
  align-items: center;
  padding: 12px 20px;
}

#cart-drawer .drawer-head h2 {
  margin: 0;
  font-size: 24px;
}

#cart-drawer .drawer-head h2 span { color: #595959; }
#cart-drawer .cart-close { width: 44px; height: 44px; }

.cart-scroll {
  flex: 1;
  min-height: 0;
  padding: 0 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cart-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

#cart-drawer .cart-items { padding: 0; overflow: visible; }

#cart-drawer .shipping-progress {
  margin: 12px 0 2px;
  padding: 9px 11px;
  border-left: 3px solid var(--yellow);
  border-radius: 3px;
  background: #faf8ef;
  color: #454545;
  font-size: 12px;
}

#cart-drawer .cart-line {
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
}

#cart-drawer .cart-line-image {
  width: 68px;
  height: 68px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafafa;
}

.cart-line-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 10px;
}

.cart-line-heading .cart-line-name {
  flex: 1 1 135px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.cart-line-heading .cart-line-price {
  margin: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#cart-drawer .cart-line-bottom { margin-top: 5px; gap: 8px; }
#cart-drawer .qty-control { height: auto; }
#cart-drawer .qty-control button { min-width: 38px; min-height: 38px; }
#cart-drawer .remove-item { min-height: 38px; color: #595959; }

.cart-breakdown { padding: 10px 0; }

#cart-drawer .price-row {
  gap: 8px;
  margin: 0;
  padding: 4px 0;
}

#cart-drawer .price-row strong { font-variant-numeric: tabular-nums; }

#cart-drawer .cart-footer {
  flex: none;
  padding: 9px 20px max(10px, env(safe-area-inset-bottom));
}

#cart-drawer .price-row.total {
  padding: 0;
  border: 0;
  font-size: 17px;
}

#cart-drawer .checkout-button { margin-top: 8px; }

#cart-drawer .checkout-payment {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
}

#cart-drawer .checkout-card-brands {
  display: flex;
  align-items: center;
  gap: 4px;
}

#cart-drawer .checkout-card-brands img { object-fit: contain; }
#cart-drawer .checkout-note { margin: 0; color: #595959; }
#cart-drawer .cart-empty { min-height: 190px; padding: 24px 0; gap: 12px; }

@media (max-width: 520px) {
  #cart-drawer .drawer-head,
  .cart-scroll,
  #cart-drawer .cart-footer { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  #cart-drawer { transition: none; }
}

.store-story {
  padding: 26px 0 44px;
  border-top: 1px solid var(--line);
}

.store-story h2 {
  margin: 0 0 10px;
  font: 800 23px var(--heading);
}

.store-story p {
  max-width: 60ch;
  margin: 0;
  color: #515151;
  line-height: 1.6;
}

.footer {
  padding-top: 30px;
}

.footer-top {
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 26px;
}

@media (min-width: 1440px) {
  .container {
    width: calc(100% - clamp(84px, 8vw, 192px));
    max-width: 1920px;
  }

  .header {
    height: clamp(76px, 4.2vw, 88px);
  }

  .nav-link {
    font-size: clamp(14px, .8vw, 16px);
  }

  .brand {
    font-size: clamp(25px, 1.5vw, 30px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-copy {
    padding: clamp(48px, 3.6vw, 88px);
  }

  .hero-copy h1 {
    font-size: clamp(78px, 5.1vw, 108px);
  }

  .featured-product img {
    height: clamp(580px, 36vw, 760px);
  }

  .hero-copy .featured-benefit {
    font-size: clamp(22px, 1.4vw, 28px);
  }

  .hero-copy .featured-name {
    font-size: 15px;
  }

  .hero-buttons .btn {
    min-height: 60px;
    padding-inline: 28px;
    font-size: 15px;
  }

  .section-heading h2 {
    font-size: clamp(46px, 2.8vw, 56px);
  }

  .product-grid {
    gap: clamp(22px, 1.5vw, 32px);
  }

  .product-details {
    padding: 20px;
  }

  .product-title {
    font-size: 22px;
  }

  .product-subtitle {
    font-size: 14px;
  }

  .product-add {
    min-height: 48px;
    font-size: 14px;
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    box-shadow: 18px 10px 48px -38px rgb(214 157 27 / .48);
  }

  .hero-copy {
    --gold-glow: radial-gradient(ellipse 34% 36% at 0% 0%, #ffe9ad, #fff5d7 45%, transparent 100%);
    padding: 26px 24px 20px;
  }

  .hero-copy h1 {
    max-width: 18ch;
    margin-bottom: 0;
    font-size: clamp(36px, 7vw, 56px);
  }

  .hero-buttons {
    margin-top: 16px;
  }

  .featured-carousel {
    --gold-glow: radial-gradient(ellipse 24% 105% at 103% 72%, #f6d36b, #fff1c8 53%, transparent 100%);
    --gold-glow-position: right 72%;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .featured-copy {
    order: 1;
    margin-top: 16px;
    min-height: 50px;
  }

  .featured-product img {
    height: min(68vw, 350px);
  }
}

@media (max-width: 560px) {
  .header {
    height: 62px;
  }

  .hero {
    margin-top: 12px;
  }

  .hero-copy {
    padding: 22px 20px 16px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 7.5vw, 44px);
  }

  .featured-product img {
    height: min(68vw, 270px);
  }

  .problem-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .shop-controls {
    margin-top: 16px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-details {
    padding: 10px;
  }

  .product-add {
    padding: 0 8px;
    font-size: 12px;
  }

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