:root {
  --red: #e6241d;
  --red-dark: #b9100c;
  --yellow: #ffe44d;
  --ink: #171717;
  --muted: #666;
  --paper: #fffdf7;
  --line: #e6e1d8;
  --green: #168a4a;
  --sans: "DM Sans", sans-serif;
  --display: "Bebas Neue", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: 82px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 8px),
    var(--red-dark);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  position: fixed;
  top: 12vh;
  z-index: -1;
  color: rgba(255,255,255,.08);
  font: 25vw/1 var(--display);
  content: "SALE";
  transform: rotate(-90deg);
}

body::before { left: -18vw; }
body::after { right: -18vw; transform: rotate(90deg); }

a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.page-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 80px rgba(50,0,0,.25);
}

.sale-header {
  display: flex;
  height: 58px;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
}

.brand span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--yellow);
  font-size: 15px;
}

.header-tag {
  padding: 5px 8px;
  border: 1px solid #d9d4ca;
  border-radius: 20px;
  color: #67625a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.countdown-bar {
  display: flex;
  min-height: 67px;
  padding: 8px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  background: var(--red);
}

.countdown-bar > div:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: .05em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255,228,77,.18);
  animation: pulse 1.2s infinite;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 4px;
}

.countdown > span {
  display: grid;
  width: 39px;
  height: 45px;
  padding: 4px 0 3px;
  place-items: center;
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
}

.countdown b {
  font: 22px/1 var(--display);
}

.countdown small {
  color: #777;
  font-size: 6px;
  font-weight: 800;
}

.countdown i {
  color: var(--yellow);
  font: 22px/1 var(--display);
}

.product-card { position: relative; }

.promo-ribbon {
  position: absolute;
  top: 15px;
  left: 0;
  z-index: 2;
  padding: 8px 15px 8px 12px;
  color: #fff;
  background: var(--ink);
  clip-path: polygon(0 0,100% 0,88% 50%,100% 100%,0 100%);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}

.product-media {
  position: relative;
  aspect-ratio: 1.08;
  overflow: hidden;
  background: #f4eee3;
}

.product-media img,
.product-media .product-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-media img {
  padding: 22px;
  background: #fff;
  transition: opacity .16s ease, transform .16s ease;
}

.product-media img.is-changing {
  opacity: .35;
  transform: scale(.985);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 35px;
  height: 45px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(255,255,255,.9);
  box-shadow: 0 3px 12px rgba(0,0,0,.12);
  cursor: pointer;
  font: 30px/1 var(--display);
  transform: translateY(-50%);
}

.gallery-arrow-left { left: 9px; }
.gallery-arrow-right { right: 9px; }

.product-thumbnails {
  display: flex;
  padding: 10px 12px;
  gap: 8px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: var(--red) #eee;
}

.product-thumbnails button {
  width: 62px;
  height: 62px;
  padding: 3px;
  flex: 0 0 62px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.product-thumbnails button.active {
  border-color: var(--red);
}

.product-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.discount-burst {
  position: absolute;
  top: 18px;
  right: 16px;
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  align-content: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 5px 15px rgba(0,0,0,.18);
  transform: rotate(8deg);
}

.discount-burst::after {
  position: absolute;
  inset: -8px;
  z-index: -1;
  content: "";
  background: var(--yellow);
  clip-path: polygon(50% 0,61% 10%,76% 4%,82% 19%,98% 22%,92% 38%,100% 50%,90% 61%,96% 76%,81% 82%,78% 98%,62% 92%,50% 100%,39% 90%,24% 96%,18% 81%,2% 78%,8% 62%,0 50%,10% 39%,4% 24%,19% 18%,22% 2%,38% 8%);
}

.discount-burst b { font: 30px/1 var(--display); }
.discount-burst small { font-size: 9px; font-weight: 900; }

.deal-burst b { font-size: 27px; }
.deal-burst small { max-width: 50px; margin-top: 2px; text-align: center; line-height: 1.1; }

.image-label {
  position: absolute;
  right: 13px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 3px;
  color: #fff;
  background: rgba(23,23,23,.83);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.product-info { padding: 21px 18px 25px; }

.popular-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #76716a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}

.rating { color: #f0a000; font-size: 12px; letter-spacing: 0; }

h1 {
  margin: 8px 0 4px;
  font-size: clamp(28px, 8.4vw, 39px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.product-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.price-row {
  display: flex;
  margin: 20px 0 17px;
  align-items: center;
  gap: 13px;
}

.sale-price {
  color: var(--red);
  font: 48px/1 var(--display);
}

.compare-block {
  display: flex;
  flex-direction: column;
}

.compare-block s { color: #777; font-size: 13px; }
.compare-block b { margin-top: 2px; color: var(--green); font-size: 9px; }

.offer-expired .compare-block,
.offer-expired .discount-burst,
.offer-expired .final-price s {
  display: none;
}

.stock-panel {
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid #ffd0cd;
  border-radius: 6px;
  background: #fff3f2;
}

.stock-panel > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
}

.stock-panel strong { color: var(--red-dark); }
.stock-panel div span { color: #8b5c59; }

.stock-track {
  height: 6px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 10px;
  background: #efcac7;
}

.stock-track span {
  display: block;
  width: 76%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7a52, var(--red));
  animation: stock-fill 1s both ease-out;
}

.buy-button {
  display: flex;
  min-height: 59px;
  padding: 0 19px;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 5px 0 var(--red-dark);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: .03em;
  transition: transform .15s ease, filter .15s ease;
}

.buy-button:hover { filter: brightness(1.05); transform: translateY(-2px); }
.buy-button:active { box-shadow: 0 2px 0 var(--red-dark); transform: translateY(3px); }
.buy-button b { font-size: 24px; }

.button-note {
  margin: 11px 0 0;
  color: #777;
  text-align: center;
  font-size: 8px;
}

.quick-benefits {
  display: grid;
  padding: 16px 0 0;
  margin: 18px 0 0;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--line);
  list-style: none;
}

.quick-benefits li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-right: 1px solid var(--line);
  color: #5e5a54;
  font-size: 7px;
}

.quick-benefits li:last-child { border: 0; }
.quick-benefits span { color: var(--green); font-size: 11px; }

.why-section,
.faq-section {
  padding: 36px 18px;
  border-top: 8px solid #f1ede5;
}

.section-label {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

h2 {
  margin: 0;
  font: 43px/.95 var(--display);
  letter-spacing: .01em;
}

h2 mark {
  padding: 0 5px;
  color: var(--ink);
  background: var(--yellow);
}

.benefit-grid {
  display: grid;
  margin-top: 25px;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}

.benefit-grid article {
  min-width: 0;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.benefit-grid article > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font: 18px/1 var(--display);
}

.benefit-grid h3 { margin: 15px 0 5px; font-size: 11px; }
.benefit-grid p { margin: 0; color: #777; font-size: 8px; line-height: 1.45; }
.claim-note { margin: 12px 0 0; color: #8b867e; font-size: 7px; line-height: 1.5; }

.bundle-section {
  display: grid;
  padding: 34px 18px;
  align-items: center;
  grid-template-columns: 1.3fr .7fr;
  gap: 15px;
  color: #fff;
  background: var(--ink);
}

.bundle-section .section-label { color: var(--yellow); }
.bundle-section h2 { font-size: 37px; }
.bundle-section ul { padding: 0; margin: 20px 0 0; list-style: none; }
.bundle-section li { margin-top: 7px; color: #d0d0d0; font-size: 10px; }
.bundle-section li span { margin-right: 5px; color: var(--yellow); }

.bundle-price {
  display: flex;
  min-height: 135px;
  padding: 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--ink);
  background: var(--yellow);
  transform: rotate(2deg);
}

.bundle-price small { font-size: 8px; font-weight: 900; }
.bundle-price strong { margin: 4px 0; color: var(--red); font: 39px/1 var(--display); }
.bundle-price s { color: #6e631e; font-size: 11px; }
.bundle-price span { color: #6e631e; font-size: 8px; font-weight: 900; }

.description-section,
.manufacturer-section {
  padding: 38px 18px;
  border-top: 8px solid #f1ede5;
}

.description-section h2,
.manufacturer-section h2 {
  font-size: 41px;
}

.description-section > p:not(.section-label),
.manufacturer-section > p:not(.section-label) {
  margin: 15px 0 0;
  color: #645f58;
  font-size: 11px;
  line-height: 1.7;
}

.description-facts {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.description-facts div {
  display: flex;
  min-width: 0;
  padding: 15px 8px;
  align-items: center;
  flex-direction: column;
  border-right: 1px solid var(--line);
  text-align: center;
}

.description-facts div:last-child { border: 0; }
.description-facts strong { color: var(--red); font: 29px/1 var(--display); }
.description-facts span { margin-top: 5px; color: #777; font-size: 7px; line-height: 1.35; }

.manufacturer-section {
  color: #fff;
  background: var(--red);
}

.manufacturer-section .section-label { color: var(--yellow); }
.manufacturer-section > p:not(.section-label) { color: rgba(255,255,255,.82); }

.manufacturer-points {
  display: grid;
  margin-top: 24px;
  gap: 1px;
  background: rgba(255,255,255,.2);
}

.manufacturer-points article {
  display: grid;
  padding: 14px;
  align-items: center;
  grid-template-columns: 42px 1fr;
  background: rgba(123,0,0,.22);
}

.manufacturer-points article > b {
  color: var(--yellow);
  font: 22px/1 var(--display);
}

.manufacturer-points article div {
  display: flex;
  flex-direction: column;
}

.manufacturer-points strong { font-size: 11px; }
.manufacturer-points span { margin-top: 3px; color: rgba(255,255,255,.7); font-size: 8px; }
.manufacturer-section > small { display: block; margin-top: 13px; color: rgba(255,255,255,.58); font-size: 7px; line-height: 1.5; }

.faq-section h2 { margin-bottom: 20px; }
.faq-section details { border-top: 1px solid var(--line); }
.faq-section details:last-child { border-bottom: 1px solid var(--line); }

.faq-section summary {
  display: flex;
  padding: 17px 0;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary span { color: var(--red); font-size: 20px; transition: transform .2s; }
.faq-section details[open] summary span { transform: rotate(45deg); }
.faq-section details p { margin: -2px 28px 17px 0; color: #6d6861; font-size: 10px; line-height: 1.6; }

.final-offer {
  position: relative;
  padding: 45px 18px 40px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,228,77,.2), transparent 45%),
    var(--red);
}

.final-offer::before {
  position: absolute;
  top: -30px;
  left: -10px;
  color: rgba(255,255,255,.06);
  font: 190px/1 var(--display);
  content: "%";
}

.final-offer > * { position: relative; }
.final-badge { display: inline-block; padding: 7px 12px; color: var(--ink); background: var(--yellow); font-size: 10px; font-weight: 900; transform: rotate(-3deg); }
.final-offer > p { margin: 18px 0 6px; font-size: 8px; font-weight: 900; letter-spacing: .17em; }
.final-offer h2 { font-size: 52px; }
.final-price { display: flex; margin: 14px 0 18px; align-items: baseline; justify-content: center; gap: 8px; }
.final-price strong { color: var(--yellow); font: 46px/1 var(--display); }
.final-price s { color: rgba(255,255,255,.65); }
.buy-button-light { color: var(--red); background: #fff; box-shadow: 0 5px 0 #b5aaa8; }
.final-offer > small { display: block; margin-top: 14px; color: rgba(255,255,255,.7); font-size: 7px; }

footer {
  padding: 26px 18px 30px;
  color: #aaa;
  background: #111;
}

footer > strong { color: #fff; font-size: 13px; }
footer > div { display: flex; gap: 18px; margin: 13px 0; }
footer a, footer button { padding: 0; border: 0; color: #ccc; background: none; cursor: pointer; font: 9px var(--sans); text-decoration: underline; }
footer p { margin: 0; font-size: 7px; line-height: 1.6; }

.sticky-buy {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  width: min(100%,520px);
  min-height: 74px;
  padding: 9px 10px 9px 15px;
  margin: auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #ddd;
  background: rgba(255,255,255,.97);
  box-shadow: 0 -8px 25px rgba(0,0,0,.12);
  backdrop-filter: blur(10px);
}

.sticky-buy > div { display: flex; flex-direction: column; }
.sticky-buy small { color: var(--red); font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.sticky-buy strong { font: 29px/1 var(--display); }
.sticky-buy > a { display: flex; min-height: 48px; padding: 0 18px; align-items: center; gap: 17px; border-radius: 5px; color: #fff; background: var(--red); font-size: 11px; font-weight: 900; text-decoration: none; }
.sticky-buy a span { font-size: 18px; }

.legal-dialog {
  width: min(440px,calc(100% - 30px));
  padding: 30px 24px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 20px 80px rgba(0,0,0,.35);
}

.legal-dialog::backdrop { background: rgba(0,0,0,.72); }
.legal-dialog h2 { padding-right: 30px; font-size: 38px; }
.legal-dialog p { color: #666; font-size: 11px; line-height: 1.6; }
.dialog-close { position: absolute; top: 12px; right: 15px; border: 0; background: transparent; cursor: pointer; font-size: 25px; }

@keyframes pulse {
  50% { opacity: .45; box-shadow: 0 0 0 8px rgba(255,228,77,0); }
}

@keyframes stock-fill {
  from { width: 0; }
}

@media (max-width: 370px) {
  .countdown-bar { padding-right: 10px; padding-left: 10px; }
  .countdown-bar > div:first-child { font-size: 8px; }
  .countdown > span { width: 34px; }
  .quick-benefits b { font-size: 6px; }
  .sticky-buy > a { padding: 0 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
