:root {
  --bg: #fff8f0;
  --surface: #ffffff;
  --surface-alt: #fff1df;
  --text: #181818;
  --muted: #6b6b6b;
  --line: rgba(24, 24, 24, 0.1);
  --orange: #ff5a00;
  --orange-deep: #ff6f1c;
  --orange-soft: #ffb06f;
  --green: #21a453;
  --shadow: 0 24px 60px rgba(145, 66, 19, 0.12);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 130, 26, 0.18), transparent 25%),
    linear-gradient(180deg, #fff5e7 0%, #fffdf9 40%, #fff5e7 100%);
}

button,
input,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.site-shell {
  width: min(1480px, calc(100% - 24px));
  margin: 12px auto;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 124, 27, 0.15);
  border-radius: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
  background: linear-gradient(90deg, #ef4e00 0%, #ff6a00 52%, #ff7d1f 100%);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand strong,
h1,
.cta,
.edition-pill,
.badge-floating,
.ad-slot span {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
}

.brand strong {
  display: block;
  font-size: 2rem;
  line-height: 0.95;
}

.brand small {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand__crest {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 8px 10px 8px 18px;
}

.searchbar input {
  flex: 1;
  border: 0;
  background: transparent;
  min-width: 0;
  outline: none;
}

.searchbar button {
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 90, 0, 0.08);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
}

.cart-badge {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--orange);
  font-size: 0.85rem;
}

.category-bar {
  display: flex;
  gap: 28px;
  padding: 16px 24px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
}

.category-bar a {
  white-space: nowrap;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.category-bar .is-active {
  color: var(--orange);
  position: relative;
}

.category-bar .is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
}

.page {
  padding: 20px 24px 28px;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumbs strong {
  color: var(--orange);
}

.product-layout {
  display: grid;
  grid-template-columns: 110px minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.gallery-rail {
  display: grid;
  gap: 12px;
}

.thumb {
  display: grid;
  place-items: center;
  min-height: 122px;
  border-radius: 18px;
  border: 1px solid rgba(255, 90, 0, 0.18);
  background: var(--surface);
  padding: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.thumb img {
  width: 100%;
  height: auto;
}

.thumb:hover,
.thumb.is-active {
  transform: translateY(-2px);
  border-color: var(--orange);
}

.thumb--video {
  background: linear-gradient(135deg, #2f2419, #131313);
  color: #fff;
  text-align: center;
}

.thumb--video span {
  font-size: 2rem;
}

.visual-stage {
  display: grid;
  gap: 20px;
}

.product-card,
.purchase-panel,
.ad-slot,
.social-proof,
.stats-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 142, 47, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(115, 74, 27, 0.08);
}

.product-card {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.92), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(255, 219, 182, 0.45), transparent 22%),
    linear-gradient(180deg, #fffdfa 0%, #fff3e5 100%);
}

.product-card img {
  width: min(100%, 760px);
  height: auto;
}

.badge-floating {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: linear-gradient(180deg, #ff7b24 0%, #f15200 100%);
  color: #fff;
  border-radius: 20px 20px 20px 4px;
  padding: 14px 18px;
  font-size: 1.35rem;
}

.social-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 18px 20px;
}

.social-proof strong,
.usp-grid strong,
.stats-panel h2 {
  display: block;
  margin-bottom: 4px;
}

.social-proof p,
.usp-grid p,
.stats-note,
.subtitle {
  margin: 0;
  color: var(--muted);
}

.purchase-panel {
  padding: 24px;
  display: grid;
  gap: 20px;
}

.rating-row,
.price-row,
.cta-row,
.stats-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.edition-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 90, 0, 0.12);
  color: var(--orange);
  font-size: 1.2rem;
}

.stars {
  color: #f6b300;
  letter-spacing: 0.15em;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 3vw, 4.4rem);
  line-height: 0.95;
}

.subtitle {
  font-size: 1.08rem;
}

.price-row strong {
  font-size: clamp(2.6rem, 3vw, 4rem);
  color: var(--orange);
}

.stock {
  color: var(--green);
  font-weight: 800;
}

.benefits {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.benefits li::marker {
  color: var(--orange);
}

.quantity-picker {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.quantity-picker button,
.quantity-picker span {
  min-width: 46px;
  min-height: 54px;
  display: grid;
  place-items: center;
}

.quantity-picker button {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
}

.cta {
  border: 0;
  border-radius: 20px;
  padding: 16px 24px;
  font-size: 1.6rem;
  min-height: 60px;
}

.cta--primary {
  flex: 1;
  color: #fff;
  background: linear-gradient(90deg, #ff5400, #ff7b1f);
}

.cta--secondary {
  background: #fff;
  border: 1px solid var(--line);
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.usp-grid > div,
.ad-slot,
.stats-panel {
  padding: 18px;
}

.usp-grid > div {
  border-radius: 20px;
  background: var(--surface-alt);
  border: 1px solid rgba(255, 142, 47, 0.12);
}

.ad-slot {
  display: grid;
  gap: 6px;
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(255, 111, 28, 0.08), rgba(255, 186, 135, 0.22)),
    #fff;
}

.ad-slot span {
  font-size: 1.4rem;
  color: var(--orange);
}

.ad-slot p {
  margin: 0;
  color: var(--muted);
}

.ad-slot--wide {
  min-height: 108px;
}

.ad-slot--box {
  min-height: 150px;
}

.stats-panel dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
}

.stats-panel dt {
  color: var(--muted);
  font-size: 0.92rem;
}

.stats-panel dd {
  margin: 4px 0 0;
  font-size: 1.9rem;
  font-weight: 800;
}

#reset-stats {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 90, 0, 0.12);
  color: var(--orange);
  padding: 8px 12px;
  font-weight: 800;
}

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  z-index: 1000;
}

.video-modal.is-open {
  display: grid;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 14, 6, 0.75);
  backdrop-filter: blur(8px);
}

.video-modal__panel {
  position: relative;
  width: min(920px, 100%);
  background: #111;
  color: #fff;
  border-radius: 28px;
  padding: 18px 18px 22px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

.video-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 18px;
}

.video-frame video,
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

@media (max-width: 1180px) {
  .product-layout {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .purchase-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: calc(100% - 12px);
    margin: 6px auto;
    border-radius: 22px;
  }

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

  .top-actions {
    justify-content: space-between;
    font-size: 0.95rem;
  }

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

  .gallery-rail {
    grid-auto-flow: column;
    grid-auto-columns: minmax(110px, 1fr);
    overflow-x: auto;
  }

  .product-card {
    min-height: 420px;
  }

  .social-proof,
  .usp-grid,
  .stats-panel dl {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 16px;
  }

  .purchase-panel {
    padding: 18px;
  }

  .cta-row {
    align-items: stretch;
  }

  .cta--primary {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .category-bar {
    gap: 18px;
    padding-inline: 16px;
  }

  .top-actions {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand strong {
    font-size: 1.7rem;
  }

  .searchbar {
    padding-inline: 12px 8px;
  }

  .breadcrumbs {
    font-size: 0.92rem;
  }

  .cta {
    font-size: 1.35rem;
  }
}
