/* ═══════════════════════════════════════════════
   DR BRAIN — PRODUCT / BUY PAGE CSS
═══════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --bg-soft: #fbf7f0;
  --surface: rgba(255, 255, 255, 0.82);
  --text: #131313;
  --text-light: #f5f5f5;
  --muted: #626262;
  --line: rgba(19, 19, 19, 0.08);
  --accent: #f5a623;
  --accent-deep: #db8508;
  --accent-light: rgba(245, 166, 35, 0.12);
  --shadow-soft: 0 20px 50px rgba(19, 19, 19, 0.07);
  --shadow-strong: 0 30px 80px rgba(19, 19, 19, 0.13);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --page-width: min(1180px, calc(100vw - 40px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  /* Top is white, Bottom is dark — prevents white/black flash on overscroll */
  background: linear-gradient(180deg, #ffffff 50%, #080808 50%);
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 60%, #ffffff 100%);
  max-width: 100%;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.product-site {
  overflow-x: hidden;
}

.page-frame {
  width: var(--page-width);
  margin: 0 auto;
}

/* ════════════════════════════════
   STICKY BAR
════════════════════════════════ */
.sticky-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(19, 19, 19, 0.08);
  padding: 10px 0;
  transform: translateY(-100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-bar.is-visible {
  transform: translateY(0);
}

.sticky-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sticky-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sticky-brand {
  font-family: "Anton", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.sticky-sep {
  color: var(--muted);
}

.sticky-tag {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.sticky-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sticky-price {
  font-family: "Anton", sans-serif;
  font-size: 1.5rem;
  color: var(--accent-deep);
  letter-spacing: 0.02em;
}

.sticky-buy-btn {
  min-height: 44px !important;
  padding: 0 22px !important;
  font-size: 0.88rem !important;
  min-width: auto;
}

/* ════════════════════════════════
   TOP NAV BAR
════════════════════════════════ */
.product-topbar {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.product-brand {
  font-family: "Anton", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.02em;
}

.topbar-nav {
  display: flex;
  gap: 28px;
}

.topbar-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

.topbar-nav a:hover {
  color: var(--accent-deep);
}

.back-link {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
  white-space: nowrap;
}

.back-link:hover {
  color: var(--text);
}

/* ════════════════════════════════
   PRODUCT BUY SECTION
════════════════════════════════ */
.product-buy-section {
  padding: 72px 0 80px;
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 166, 35, 0.10), transparent 30%),
    linear-gradient(180deg, #fff9ef 0%, #ffffff 100%);
}

.product-buy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ── LEFT: Product Visual ── */
.buy-visuals {
  position: sticky;
  top: 80px;
}

.product-image-stage {
  position: relative;
  width: 100%;
  padding: 42px 30px;
  border-radius: 40px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 234, 0.94)),
    #ffffff;
  border: 1px solid rgba(19, 19, 19, 0.05);
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 480px;
}

.product-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.28) 0%, transparent 68%);
  filter: blur(40px);
  pointer-events: none;
}

.product-image-stage img {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  filter: drop-shadow(0 28px 52px rgba(19, 19, 19, 0.18));
  animation: floatProduct 6s ease-in-out infinite;
}

/* Floating badges on image */
.float-badge {
  position: absolute;
  z-index: 2;
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(19, 19, 19, 0.1);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  animation: floatBubble 5s ease-in-out infinite;
}

.badge-top {
  top: 14%;
  right: 6%;
  animation-delay: 0.5s;
}

.badge-bottom {
  bottom: 18%;
  left: 5%;
  animation-delay: 1.5s;
}

.badge-star {
  color: var(--accent);
}

/* Quick specs row under image */
.quick-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 8px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  text-align: center;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
}

.spec-icon {
  font-size: 1.3rem;
  line-height: 1;
}

/* ── RIGHT: Buy Card ── */
.buy-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-strong);
  padding: 40px 38px;
}

.mini-tag {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.buy-card h1 {
  margin: 0 0 16px;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.02em;
}

.h1-sub {
  font-size: 0.42em;
  display: block;
  letter-spacing: 0.08em;
  opacity: 0.55;
  margin-top: 4px;
}

/* Rating row */
.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.stars-inline {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.rating-count {
  font-weight: 800;
  font-size: 0.9rem;
}

.rating-sep {
  color: var(--muted);
}

.rating-reviews {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Price block */
.price-block {
  margin-bottom: 20px;
}

.price {
  color: var(--accent-deep);
  font-family: "Anton", sans-serif;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.price-was {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.price-original {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: line-through;
}

.discount-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.price-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Divider */
.buy-divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

/* Bullet benefits */
.buy-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.buy-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
  font-weight: 500;
}

/* Quantity */
.qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.qty-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  min-width: 66px;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(19, 19, 19, 0.05);
}

.qty button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.qty button:hover,
.qty button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(219, 133, 8, 0.28);
}

.qty span {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
}

.qty-pack-note {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

/* Total row */
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--accent-light);
  border: 1px solid rgba(245, 166, 35, 0.2);
  margin-bottom: 20px;
  font-size: 0.94rem;
  font-weight: 600;
}

.total-row strong {
  font-family: "Anton", sans-serif;
  font-size: 1.5rem;
  color: var(--accent-deep);
  letter-spacing: 0.02em;
}

/* CTA Buttons */
.cta-buttons {
  margin-bottom: 12px;
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 34px rgba(219, 133, 8, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  border: 0;
}

.buy-btn:hover,
.buy-btn:focus-visible {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 24px 44px rgba(219, 133, 8, 0.34);
}

.primary-buy-btn {
  width: 100%;
  min-height: 62px;
  font-size: 1.08rem;
}

.stock-note {
  margin: 0 0 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #b45309;
  text-align: center;
}

/* Trust badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.trust-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(19, 19, 19, 0.04);
}

/* Delivery info */
.delivery-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}

.delivery-info strong {
  color: var(--text);
}

.delivery-icon {
  font-size: 1.1rem;
}

/* ════════════════════════════════
   PROOF BAR
════════════════════════════════ */
.proof-bar {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  padding: 20px 0;
}

.proof-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 36px;
  color: #ffffff;
}

.proof-item strong {
  font-family: "Anton", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.proof-item span {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 4px;
}

.proof-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

/* ════════════════════════════════
   REVIEWS
════════════════════════════════ */
.reviews-section {
  padding: 80px 0;
  background: #ffffff;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 44px;
}

.centered {
  text-align: center;
  justify-items: center;
}

.section-kicker {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.01em;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(19, 19, 19, 0.1);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.review-header>div strong {
  display: block;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 3px;
}

.reviewer-meta {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.stars {
  color: var(--accent);
  font-size: 0.96rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.review-card>p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.review-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.09);
  color: #16a34a;
  font-size: 0.73rem;
  font-weight: 700;
}

.review-tag::before {
  content: "✓ ";
}

/* Rating Summary */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}

.rating-big {
  font-family: "Anton", sans-serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
}

.rating-big span {
  font-size: 2rem;
  color: var(--muted);
}

.rating-bars {
  flex: 1;
  min-width: 200px;
  display: grid;
  gap: 8px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.rating-bar-row>span:first-child {
  width: 22px;
  text-align: right;
}

.rating-bar-row>span:last-child {
  width: 30px;
}

.rating-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.rating-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}

.rating-total {
  font-size: 0.8rem;
  color: var(--muted);
  align-self: flex-end;
}

/* ════════════════════════════════
   FAQ
════════════════════════════════ */
.faq-section {
  padding: 80px 0 48px;
  background: var(--bg-soft);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  text-align: left;
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--accent-deep);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 26px;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.faq-item.is-open .faq-answer {
  max-height: 220px;
  padding: 0 26px 22px;
  opacity: 1;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

/* FAQ CTA block */
.faq-cta {
  max-width: 820px;
  margin: 36px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 36px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  flex-wrap: wrap;
}

.faq-cta p {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--muted);
}

.faq-cta p a {
  color: var(--accent-deep);
  font-weight: 700;
}

.faq-cta p a:hover {
  text-decoration: underline;
}

.faq-buy-btn {
  min-height: 50px;
  padding: 0 28px;
  font-size: 0.94rem;
  flex-shrink: 0;
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.product-footer {
  background: #0f0f0f;
  color: var(--text-light);
  padding-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand {
  font-family: "Anton", sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  color: #ffffff;
  display: block;
}

.footer-tagline {
  margin: 12px 0 20px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  font-weight: 800;
  transition: background 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.footer-links-col h4,
.footer-contact-col h4 {
  margin: 0 0 16px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.footer-links-col a {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 11px;
  transition: color 0.2s;
}

.footer-links-col a:hover {
  color: var(--accent);
}

.footer-contact-col p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.6;
}

.footer-payment-icons {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.footer-payment-icons span {
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.footer-bottom {
  padding: 18px 0;
  background: #080808;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-disclaimer {
  font-size: 0.7rem !important;
  font-style: italic;
}

/* ════════════════════════════════
   SCROLL REVEAL
════════════════════════════════ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════
   ANIMATIONS
════════════════════════════════ */
@keyframes floatProduct {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes floatBubble {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
/* ════════════════════════════════
   SHIPPING CHECKOUT MODAL
════════════════════════════════ */
.checkout-form-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.checkout-form-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

.checkout-form-popup {
  background: #ffffff;
  width: 100%;
  max-width: 500px;
  border-radius: 28px;
  padding: 40px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  transform: translateY(40px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  opacity: 0;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(219,133,8,0.4) transparent;
}

.checkout-form-popup::-webkit-scrollbar {
  width: 10px;
}

.checkout-form-popup::-webkit-scrollbar-track {
  background: transparent;
  margin: 60px 0;
}

.checkout-form-popup::-webkit-scrollbar-thumb {
  background: rgba(219, 133, 8, 0.45);
  border-radius: 99px;
  border-right: 5px solid white;
  border-left: 1px solid transparent;
  background-clip: padding-box;
}

.checkout-form-popup::-webkit-scrollbar-thumb:hover {
  background: #db8508;
  border-right: 5px solid white;
  background-clip: padding-box;
}

.checkout-form-overlay.is-active .checkout-form-popup {
  transform: translateY(0);
  opacity: 1;
}

.form-close-x {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  border: 0;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.form-close-x:hover {
  background: #e0e0e0;
}

.checkout-form-popup h3 {
  font-family: "Anton", sans-serif;
  font-size: 2rem;
  margin: 0 0 8px;
  text-transform: uppercase;
  color: #111;
}

.form-desc {
  color: #666;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid #eee;
  font-size: 1rem;
  background: #fafafa;
  transition: all 0.2s;
  color: #111;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: 0;
  border-color: #db8508;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(219, 133, 8, 0.1);
}

.input-group textarea {
  height: 90px;
  resize: none;
}

.form-row-pincode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Payment Methods */
.payment-method-shell {
  margin-top: 10px;
  margin-bottom: 30px;
  text-align: left;
}

.method-label {
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.method-options {
  display: grid;
  gap: 12px;
}

.method-card {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 2px solid #eee;
  border-radius: 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  background: #fff;
}

.method-card input {
  position: absolute;
  opacity: 0;
}

.method-card.is-selected {
  border-color: #db8508;
  background: rgba(219, 133, 8, 0.04);
}

.method-card::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  margin-right: 14px;
  display: block;
  flex-shrink: 0;
  background: #fff;
}

.method-card.is-selected::before {
  border: 6px solid #db8508;
}

.method-info {
  display: flex;
  flex-direction: column;
}

.method-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #111;
}

.method-sub {
  font-size: 0.8rem;
  color: #888;
}

.order-submit-btn {
  width: 100%;
  padding: 18px;
  border-radius: 99px;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.order-submit-btn:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 500px) {
  .checkout-form-popup {
    padding: 30px 20px;
  }
}

@media (max-width: 1000px) {
  .product-buy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .buy-visuals {
    position: static;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

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

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

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .page-frame {
    width: calc(100vw - 28px);
  }

  .product-buy-section {
    padding: 48px 0 60px;
  }

  .reviews-section,
  .faq-section {
    padding: 60px 0;
  }

  .product-topbar {
    padding: 14px 0;
  }

  .product-brand {
    font-size: 1.6rem;
  }

  .back-link {
    font-size: 0.82rem;
  }

  .topbar-nav {
    display: none;
  }

  .quick-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .buy-card {
    padding: 26px 22px;
  }

  .buy-card h1 {
    font-size: 2.2rem;
  }

  .primary-buy-btn {
    font-size: 1rem;
  }

  .trust-badges span {
    flex: 1;
    min-width: calc(50% - 8px);
    justify-content: center;
  }

  .proof-item {
    padding: 0 16px;
  }

  .proof-divider {
    height: 28px;
  }

  .rating-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
  }

  .faq-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px;
  }

  .faq-buy-btn {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sticky-tag,
  .sticky-sep {
    display: none;
  }

  .sticky-brand {
    font-size: 1.1rem;
  }

  .sticky-price {
    font-size: 1.2rem;
  }
}

/* ════════════════════════════════
   CHECKOUT SUCCESS POPUP
════════════════════════════════ */
.checkout-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.checkout-success-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

.checkout-success-popup {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 28px;
  padding: 48px 40px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  opacity: 0;
}

.checkout-success-overlay.is-active .checkout-success-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.success-icon-frame {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.success-icon-frame svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(76, 175, 80, 0.3));
}

.success-ring {
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(76, 175, 80, 0.4);
  border-radius: 50%;
  animation: successRingPulse 2s ease-out infinite;
}

@keyframes successRingPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  70% {
    transform: scale(1.6);
    opacity: 0;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.checkout-success-popup h3 {
  font-family: "Anton", sans-serif;
  font-size: 2.2rem;
  margin: 0 0 12px;
  color: #0b0b0c;
  text-transform: uppercase;
  line-height: 1.1;
}

.checkout-success-popup p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 24px;
}

.success-card {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.success-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.success-row span:first-child {
  color: #888;
}

.success-row span:last-child {
  font-weight: 600;
  color: #111;
}

.success-row:last-child {
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.status-pill {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 2px 10px;
  border-radius: 99px;
  font-weight: 700 !important;
  font-size: 0.8rem;
}

.success-note {
  font-size: 0.88rem;
  opacity: 0.8;
}

.success-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Global button styles for modal (fallback) */
.checkout-success-popup .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 99px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 0;
  cursor: pointer;
}

.button-black {
  background: #111;
  color: #fff;
}

.button-secondary {
  background: #f0f0f0;
  color: #111;
}

.checkout-success-popup .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}