:root {
  --bg-soft: #f3e9dc;
  --card-bg: #f8f4ee;
  --card-border: #d9b26a;
  --gold-1: #d4a64a;
  --gold-2: #f2d587;
  --gold-3: #8a5c1d;
  --red-deep: #8d0d14;
  --red-bright: #ca1129;
  --text: #2f1f14;
  --muted: #7f5a3c;
  --shadow: rgba(78, 42, 8, 0.16);
  --success: #1a7f45;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Poppins", "Inter", sans-serif;
  background: linear-gradient(180deg, #dfe4de 0%, #c7ccca 100%);
  color: var(--text);
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.page-shell {
  width: min(100%, 440px);
  min-height: 920px;
  background: linear-gradient(180deg, #f7efe7 0%, #f0e3d6 100%);
  border: 2px solid rgba(33, 17, 8, 0.25);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.16);
  position: relative;
  overflow: hidden;
}

.loading-screen {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: radial-gradient(circle at top, rgba(255,255,255,0.9), rgba(245, 230, 209, 0.95) 40%, rgba(227, 209, 175, 0.9));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-badge {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #815726;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(108, 78, 41, 0.25);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(117, 85, 41, 0.08);
}

.loader-spin {
  position: relative;
  width: 92px;
  height: 92px;
}

.spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 5px solid rgba(204, 145, 66, 0.22);
  border-top-color: var(--gold-1);
  border-right-color: #f9d67d;
  animation: spin 1.1s linear infinite;
}

.spinner-core {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7d6, #d4a64a 42%, #8c5c30 100%);
  box-shadow: inset 0 0 14px rgba(255,255,255,0.9), 0 0 18px rgba(196, 143, 50, 0.3);
}

.loader-label {
  font-size: 1rem;
  font-weight: 600;
  color: #553918;
}

.progress-wrap {
  width: 200px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(137, 106, 74, 0.2);
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-1), #f7d879, #cb7a24);
  box-shadow: 0 0 12px rgba(183, 126, 35, 0.4);
  transition: width 0.22s ease;
}

.progress-text {
  font-weight: 700;
  color: #7d5026;
  letter-spacing: 0.08em;
}

.ad-card {
  position: relative;
  background: rgba(255,255,255,0.2);
  padding: 18px 18px 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f3d48c, #d8a644 60%, #946615);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: inset 0 2px 10px rgba(255,255,255,0.6), 0 8px 18px rgba(139, 92, 24, 0.16);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 900;
  color: #1a1a1a;
}

.brand-copy small {
  font-size: 0.56rem;
  color: #8c6d52;
  letter-spacing: 0.06em;
}

.shop-tag {
  border: 1px solid rgba(128, 98, 62, 0.45);
  background: rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.68rem;
  color: #6f4f2e;
  font-weight: 700;
}

.hero {
  text-align: center;
  padding: 12px 4px 4px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: none;
  font-weight: 900;
  color: #1c140f;
}

.hero h1 span {
  display: inline-block;
  color: #1f1e1f;
}

.hero p {
  margin: 12px auto 16px;
  color: #6a4e33;
  font-size: 0.75rem;
  line-height: 1.7;
  width: min(100%, 340px);
}

.cta-primary,
.cta-secondary {
  border: none;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-primary {
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(180deg, #c69a3c 0%, #9a621f 100%);
  color: #fff;
  box-shadow: 0 12px 22px rgba(141, 94, 28, 0.22);
  font-size: 0.95rem;
}

.cta-secondary {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 18px;
  padding: 16px 20px;
  color: #fff;
  background: linear-gradient(180deg, #d5a54d 0%, #ba7b1b 100%);
  box-shadow: 0 12px 18px rgba(184, 116, 30, 0.18);
  font-size: 0.9rem;
}

.cta-primary:hover,
.cta-secondary:hover {
  transform: translateY(-1px);
}

.rating-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  margin-bottom: 8px;
  color: #6f4f2e;
  font-weight: 700;
  flex-wrap: wrap;
}

.stars {
  letter-spacing: 0.12em;
  color: #ffb31a;
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(255, 179, 26, 0.2);
}

.score {
  font-size: 1.1rem;
  color: #2b1f19;
}

.review {
  font-size: 0.78rem;
  background: rgba(255,255,255,0.38);
  border: 1px solid rgba(129, 92, 45, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
}

.product-block {
  margin-top: 10px;
  padding: 8px 2px 0;
}

.product-block h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.45rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
  text-align: center;
  color: #261a14;
}

.product-block p {
  margin: 14px auto 0;
  text-align: center;
  max-width: 370px;
  color: #734e33;
  font-size: 0.72rem;
  line-height: 1.7;
}

.product-showcase {
  position: relative;
  height: 430px;
  margin-top: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(220,219,219,0.12));
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  box-shadow: 0 18px 30px rgba(96, 67, 28, 0.14);
}

.product-caption {
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #e3b55e 0%, #c98b29 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  box-shadow: 0 10px 16px rgba(169, 102, 21, 0.16);
}

.price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.34);
  border: 1px solid rgba(129, 92, 45, 0.12);
  color: #5d3917;
}

.price-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: line-through;
}

.price-badge {
  border-radius: 999px;
  background: linear-gradient(180deg, #c14129 0%, #9d2b1d 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 8px 12px;
}

.promo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #4f2d18;
}

.promo-row strong {
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  color: #3b1c0f;
}

.footnote {
  margin-top: 8px;
  font-size: 0.72rem;
  color: #7b5d46;
  font-style: italic;
}

.trust-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(135, 107, 80, 0.12);
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #20a35d 0%, #116d43 100%);
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}

.trust-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-copy strong {
  font-size: 1rem;
  color: #2d1f18;
}

.trust-copy span {
  font-size: 0.7rem;
  color: #655548;
  line-height: 1.55;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 420px) {
  body {
    padding: 0;
  }

  .page-shell {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
  }
}
