:root {
  --ink: #29221f;
  --muted: #796e68;
  --accent: #a36f59;
  --paper: #f5f0e9;
  --line: rgba(56, 44, 39, 0.14);
  --duration: 10s;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

body {
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.showcase {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100vw;
  height: 100vh;
  min-height: 620px;
  padding: clamp(28px, 4vw, 72px) clamp(36px, 6vw, 120px) clamp(26px, 3vw, 56px);
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.02), rgba(247,243,237,.1) 43%, rgba(247,243,237,.3) 70%),
    url("images/backgrounds/oak-slats-premium.png") left center / cover no-repeat,
    var(--paper);
}

.showcase::before {
  display: none;
}

.showcase::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.03), transparent 38%, rgba(247, 243, 237, 0.28) 60%, rgba(247,243,237,.52)),
    radial-gradient(rgba(73, 55, 48, 0.05) 0.7px, transparent 0.7px);
  background-size: auto, 7px 7px;
  content: "";
  pointer-events: none;
}

.ambient {
  display: none;
}

.ambient--one {
  width: 44vw;
  height: 44vw;
  right: -17vw;
  top: -25vw;
  background: conic-gradient(#f2cfd9, #cfe5f2, #d9efd8, #f2dfbe, #e4d4f2, #f2cfd9);
  animation: ambient-drift 11s ease-in-out infinite alternate;
}

.ambient--two {
  width: 31vw;
  height: 31vw;
  left: 28vw;
  bottom: -24vw;
  background: conic-gradient(#d8e8f2, #f1d1d7, #efe3bc, #d2eadf, #d8e8f2);
  animation: ambient-drift 14s 1.5s ease-in-out infinite alternate-reverse;
}

.topbar,
.controls {
  display: flex;
  align-items: center;
  width: 100%;
}

.topbar {
  z-index: 2;
  justify-content: flex-start;
}

.logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  overflow: hidden;
  padding: 12px 22px 12px 13px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.48), rgba(255,255,255,.12) 46%, rgba(255,255,255,.32)),
    rgba(242,237,232,.18);
  box-shadow:
    0 14px 34px rgba(68,42,27,.14),
    inset 0 1px 1px rgba(255,255,255,.9),
    inset 0 -1px 1px rgba(115,82,62,.12);
  backdrop-filter: blur(18px) saturate(145%);
  color: inherit;
  text-decoration: none;
}

.logo::before,
.price::before {
  position: absolute;
  z-index: 0;
  inset: -70% -20%;
  background: conic-gradient(
    from 120deg,
    transparent 0 18%,
    rgba(255,176,199,.2) 25%,
    rgba(178,216,255,.24) 33%,
    rgba(207,255,218,.17) 40%,
    transparent 48% 70%,
    rgba(255,224,169,.2) 80%,
    transparent 88%
  );
  content: "";
  pointer-events: none;
  transform: translateX(-24%) rotate(-8deg);
}

.logo::before {
  animation: glass-shimmer 10s ease-in-out infinite alternate-reverse;
}

.logo::after,
.price::after {
  position: absolute;
  z-index: 0;
  top: 5px;
  right: 13%;
  left: 13%;
  height: 36%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.52), transparent);
  content: "";
  filter: blur(2px);
  opacity: .72;
  pointer-events: none;
}

.logo > * {
  position: relative;
  z-index: 1;
}

.logo__mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(55,42,36,.68);
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  box-shadow: inset 0 0 14px rgba(255,255,255,.58);
  font: italic 600 30px/1 "Cormorant Garamond", serif;
}

.logo strong,
.logo small {
  display: block;
}

.logo strong {
  font: 600 clamp(23px, 1.55vw, 31px)/0.85 "Cormorant Garamond", serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.logo small,
.topbar__note,
.controls__hint {
  color: var(--muted);
  font-size: clamp(9px, 0.65vw, 12px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.logo small {
  margin-top: 5px;
  letter-spacing: 0.25em;
}

.product {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(45px, 7vw, 145px);
  min-height: 0;
  padding: clamp(16px, 2vh, 32px) 0 clamp(104px, 12vh, 132px);
}

.product__visual {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  width: 100%;
  height: min(65vh, 720px);
  min-height: 380px;
}

.product__visual::before {
  position: absolute;
  right: 12%;
  bottom: 7%;
  left: 12%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(68,42,27,.32), rgba(68,42,27,.08) 48%, transparent 72%);
  filter: blur(14px);
  content: "";
}

.product__halo {
  display: none;
}

.product__visual img {
  z-index: 2;
  width: 78%;
  height: 88%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 4px rgba(255, 248, 230, 1))
    drop-shadow(0 0 14px rgba(245, 193, 151, 0.72))
    drop-shadow(0 0 34px rgba(190, 108, 85, 0.4))
    drop-shadow(0 0 55px rgba(255, 213, 168, 0.18))
    drop-shadow(0 28px 20px rgba(58, 36, 24, 0.3));
  transform: scale(1);
  animation: product-breathe 4.8s ease-in-out infinite;
}

.product__number {
  position: absolute;
  top: 3%;
  left: 0;
  color: rgba(72, 55, 48, 0.14);
  font: 500 clamp(80px, 8vw, 155px)/1 "Cormorant Garamond", serif;
}

.product__promo {
  position: absolute;
  z-index: 3;
  top: 10%;
  right: 3%;
  display: none;
  width: clamp(88px, 7vw, 126px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #a4584e;
  box-shadow: 0 16px 38px rgba(105, 52, 45, 0.24);
  color: #fff;
  font: 600 clamp(17px, 1.45vw, 27px)/1 "Cormorant Garamond", serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(8deg);
}

.product.is-promo .product__promo {
  display: grid;
  animation: promo-in 0.8s 0.5s cubic-bezier(.2,.72,.3,1) both;
}

.product__content {
  max-width: 720px;
}

.product__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(20px, 3vh, 38px);
  color: var(--accent);
  font-size: clamp(10px, 0.75vw, 14px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.product__eyebrow i {
  width: 42px;
  height: 1px;
  background: currentColor;
}

h1 {
  max-width: 680px;
  margin: 0;
  font: 500 clamp(48px, 4.4vw, 84px)/0.92 "Cormorant Garamond", serif;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.product__description {
  max-width: 650px;
  margin: clamp(16px, 2.2vh, 28px) 0;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 22px);
  font-weight: 400;
  line-height: 1.7;
}

.advice {
  display: flex;
  gap: 14px;
  max-width: 680px;
  margin-bottom: clamp(20px, 2.5vh, 32px);
  padding: 14px 17px;
  border: 1px solid rgba(125,83,62,.15);
  border-radius: 18px;
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(14px);
}

.advice__icon {
  display: grid;
  flex: 0 0 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
}

.advice span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.advice p,
.advice small {
  display: block;
  margin: 5px 0 0;
  color: var(--ink);
  font-size: clamp(10px, .72vw, 14px);
  line-height: 1.45;
}

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

.reviews {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 10px;
  width: min(44vw, 650px);
  padding: 16px 19px 13px;
  border: 1px solid rgba(94,64,48,.14);
  border-radius: 23px;
  background: rgba(255,252,248,.8);
  box-shadow: 0 18px 50px rgba(73,49,35,.15);
  backdrop-filter: blur(18px);
}

.reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.reviews__head span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reviews__head i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #74a36e;
  box-shadow: 0 0 0 4px rgba(116,163,110,.13);
}

.reviews__head strong {
  color: var(--accent);
}

.reviews__chat {
  display: flex;
  gap: 8px;
}

.review-bubble {
  display: flex;
  flex: 1;
  gap: 7px;
  align-items: flex-start;
  padding: 10px 11px;
  border-radius: 13px 13px 13px 4px;
  background: rgba(237,226,214,.72);
}

.review-bubble:nth-child(2) { background: rgba(229,235,225,.76); }
.review-bubble:nth-child(3) { background: rgba(240,224,217,.72); }

.review-bubble span {
  color: var(--accent);
  font-size: 11px;
}

.review-bubble p {
  margin: 0;
  color: #594e48;
  font-size: clamp(9px, .62vw, 12px);
  line-height: 1.4;
}

.reviews__source {
  margin-top: 7px;
  color: #978a83;
  font-size: 8px;
  letter-spacing: .05em;
  text-align: right;
}

.product__footer {
  display: flex;
  align-items: center;
  gap: clamp(35px, 5vw, 84px);
}

.price {
  position: relative;
  min-width: clamp(220px, 17vw, 320px);
  overflow: hidden;
  padding: 17px 22px 16px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.5), rgba(255,255,255,.12) 48%, rgba(255,255,255,.3)),
    rgba(240,234,228,.18);
  box-shadow:
    0 18px 42px rgba(68,42,27,.15),
    inset 0 1px 1px rgba(255,255,255,.92),
    inset 0 -1px 2px rgba(118,82,61,.1);
  backdrop-filter: blur(20px) saturate(150%);
}

.price > * {
  position: relative;
  z-index: 1;
}

.price::before {
  animation: glass-shimmer 8s ease-in-out infinite alternate;
}

.price span,
.ask small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: clamp(9px, 0.65vw, 12px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.price strong {
  font: 600 clamp(32px, 2.8vw, 54px)/1 "Cormorant Garamond", serif;
}

.price__values {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 54px;
}

.price del {
  color: #96877f;
  font: 500 clamp(17px, 1.25vw, 24px)/1 "Cormorant Garamond", serif;
  text-decoration-color: #a4584e;
  text-decoration-thickness: 2px;
}

.price del:empty,
.price em:empty {
  display: none;
}

.price em {
  align-self: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(164, 88, 78, 0.12);
  color: #a4584e;
  font-size: clamp(9px, .62vw, 12px);
  font-style: normal;
  font-weight: 600;
  letter-spacing: .08em;
}

.product.is-promo .price strong {
  color: #a4584e;
}

.ask {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: clamp(25px, 3vw, 55px);
  border-left: 1px solid var(--line);
}

.ask__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 18px;
}

.ask strong {
  font-size: clamp(13px, 0.95vw, 18px);
  font-weight: 600;
}

.controls {
  gap: clamp(24px, 3vw, 50px);
}

.counter {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 86px;
  font: 600 13px/1 "Manrope", sans-serif;
  letter-spacing: 0.08em;
}

.counter i {
  width: 22px;
  height: 1px;
  background: var(--line);
}

.progress {
  position: relative;
  flex: 1;
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.progress__bar {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.progress__bar.is-running {
  animation: progress var(--duration) linear forwards;
}

.error {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
  background: var(--paper);
}

.error[hidden] {
  display: none;
}

.error strong {
  font: 600 42px/1.1 "Cormorant Garamond", serif;
}

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

.product.is-leaving .product__visual img {
  animation: image-out 0.55s cubic-bezier(.6,0,.8,.4) both;
}

.product.is-leaving .product__content > * {
  animation: text-out 0.4s ease both;
}

.product.is-entering .product__visual img {
  animation: image-in 1.15s cubic-bezier(.18,.75,.25,1) both;
}

.product.is-entering .product__halo {
  animation: halo-in 1.4s cubic-bezier(.18,.75,.25,1) both;
}

.product.is-entering .product__content > * {
  animation: text-in 0.85s cubic-bezier(.2,.72,.3,1) both;
}

.product.is-entering h1 { animation-delay: 0.08s; }
.product.is-entering .product__description { animation-delay: 0.16s; }
.product.is-entering .product__footer { animation-delay: 0.24s; }

@keyframes progress { to { transform: scaleX(1); } }
@keyframes image-in {
  from { opacity: 0; transform: translateY(45px) scale(.92) rotate(-2deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
@keyframes image-out {
  to { opacity: 0; transform: translateY(-24px) scale(1.03); }
}
@keyframes text-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes text-out {
  to { opacity: 0; transform: translateY(-14px); }
}
@keyframes halo-in {
  from { opacity: 0; transform: scale(.84); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes promo-in {
  from { opacity: 0; transform: rotate(-10deg) scale(.65); }
  to { opacity: 1; transform: rotate(8deg) scale(1); }
}
@keyframes glass-shimmer {
  from { transform: translateX(-31%) rotate(-8deg); }
  to { transform: translateX(24%) rotate(6deg); }
}
@keyframes product-breathe {
  0%, 100% {
    transform: scale(.96) translateY(5px);
    filter:
      drop-shadow(0 0 3px rgba(255,248,230,.82))
      drop-shadow(0 0 11px rgba(240,183,143,.52))
      drop-shadow(0 0 27px rgba(184,101,82,.28))
      drop-shadow(0 0 46px rgba(255,215,176,.14))
      drop-shadow(0 22px 18px rgba(58,36,24,.25));
  }
  50% {
    transform: scale(1.05) translateY(-5px);
    filter:
      drop-shadow(0 0 7px rgba(255,252,238,1))
      drop-shadow(0 0 21px rgba(250,201,158,.96))
      drop-shadow(0 0 46px rgba(193,104,82,.7))
      drop-shadow(0 0 76px rgba(255,211,163,.38))
      drop-shadow(0 32px 24px rgba(58,36,24,.34));
  }
}

@media (max-aspect-ratio: 4/3) {
  .product {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 35px;
  }

  .product__visual {
    height: 55vh;
  }
}

@media (max-width: 850px) {
  .showcase {
    min-height: 700px;
    overflow: auto;
    padding: 24px;
  }

  .product {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 0 190px;
  }

  .showcase::after {
    background:
      linear-gradient(180deg, transparent 0 30%, rgba(247, 243, 237, 0.48) 45%, #f7f3ed 64%),
      radial-gradient(rgba(73, 55, 48, 0.05) 0.7px, transparent 0.7px);
    background-size: auto, 7px 7px;
  }

  .product__visual {
    height: 40vh;
    min-height: 270px;
  }

  .product__content {
    text-align: center;
  }

  .advice {
    text-align: left;
  }

  .reviews {
    right: 0;
    bottom: 8px;
    left: 0;
    width: 100%;
  }

  .product__eyebrow,
  .product__footer {
    justify-content: center;
  }

  h1 {
    margin-inline: auto;
    font-size: clamp(46px, 13vw, 72px);
  }

  .product__description {
    margin: 18px auto 24px;
  }

  .topbar__note,
  .controls__hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
