/* FIFA WC 2026 theme – premium, Bangladeshi context */
:root {
  --wc-gold: #e8d48b;
  --wc-dark: #0d2137;
  --wc-blue: #1e3a5f;
  --wc-green: #006747;
  --bg-dark: #0a1628;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(201, 162, 39, 0.35);
  --text: #fff;
  --text-muted: #fff;
  --font-bengali: 'Anek Bangla', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-bengali);
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(30, 58, 95, 0.4), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 103, 71, 0.15), transparent),
    linear-gradient(180deg, var(--bg-dark) 0%, #0d2137 50%, #0a1628 100%);
  position: relative;
}

.body-watermark {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.body-watermark img {
  width: 100%;
  height: auto;
  max-width: 60vw;
  opacity: 0.08;
  object-fit: contain;
}

.body-content {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 1.25rem;
}

.hero {
  text-align: center;
  padding: 1.5rem 0 16px;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--wc-gold), var(--wc-gold));
  color: var(--wc-dark);
  font-weight: 700;
  font-size: 16px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  background: linear-gradient(180deg, #fff 0%, var(--wc-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-muted);
  font-size: 16px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: bolder;
  margin-bottom: 0.75rem;
  color: var(--wc-gold);
}

/* Screen-reader only (keep visible for focus) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.label-inline {
  display: block;
  font-size: 16px;
  margin-bottom: 0.25rem;
  color: var(--wc-gold);
  cursor: default;
  font-weight: 600;
}

/* Product block */
.product-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
}
.product-image-wrap {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info { min-width: 0; }
.product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--wc-gold);
  margin-bottom: 0;
}
/* Description teaser: blur + see more */
.product-description-teaser {
  position: relative;
}

.product-description-inner {
  position: relative;
  width: 100%;
  min-width: 0;
}

.product-description-inner.product-description-collapsed {
  max-height: 18rem;
  overflow: hidden;
}

.product-description-blur {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3rem;
  background: linear-gradient(to top, var(--card-bg) 50%, transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
  transition: opacity 0.2s;
}

.product-description-teaser.expanded .product-description-inner.product-description-collapsed {
  max-height: none;
  overflow: visible;
}

.product-description-teaser.expanded .product-description-blur {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.product-description-teaser.teaser-hidden .product-description-blur,
.product-description-teaser.teaser-hidden .product-description-toggle {
  display: none;
}

.product-description-teaser.teaser-hidden .product-description-inner.product-description-collapsed {
  max-height: none;
  overflow: visible;
}

.product-description-toggle {
  display: block;
  width: fit-content;
  margin: 0.75rem auto 0;
  padding: 0.4rem 0.75rem;
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--wc-gold-light);
  font-family: var(--font-bengali);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.product-description-toggle:hover {
  background: rgba(201, 162, 39, 0.3);
  border-color: var(--wc-gold);
}

.product-description-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.4);
}

.product-description-html {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}
.product-description-html .product-description-container {
  line-height: 1.6;
}
.product-description-html p,
.product-description-html li {
  color: var(--text-muted);
}
.product-description-placeholder {
  color: var(--text-muted);
  margin: 0;
}
.product-details {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.16px;
  margin: 0.5rem 0 0;
}
.product-details li { margin-bottom: 0.25rem; }
@media (max-width: 380px) {
  .product-card { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-size: 16px;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--wc-gold);
}

input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: rgba(0,0,0,0.25);
  color: var(--text);
  font-family: var(--font-bengali);
  font-size: 16px;
  margin-bottom: 0.5rem;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--wc-gold);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.25);
}

input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--wc-gold);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.35);
}

select option {
  background: var(--wc-dark);
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-row .full { grid-column: 1 / -1; }

.variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
}
.edition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
}

.variant-btn {
  padding: 0.6rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
  color: var(--text);
  font-family: var(--font-bengali);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 24px;
}

.variant-btn:hover {
  border-color: var(--wc-gold);
  background: rgba(201, 162, 39, 0.15);
}

.variant-btn:focus-visible {
  outline: none;
  border-color: var(--wc-gold);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.4);
}

.variant-btn.active {
  border-color: var(--wc-gold);
  background: linear-gradient(135deg, var(--wc-gold), var(--wc-gold));
  font-size: 1.15rem;
  color: var(--wc-dark);
  font-weight: bolder;
}

.variant-btn .country-flag {
  display: inline-block;
  margin-right: 0.35em;
  line-height: 1;
}

.variant-btn .country-flag svg {
  width: 1.4em;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}

.radio-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.radio-group-inline {
  flex-wrap: nowrap;
}
.radio-group-inline .radio-option {
  min-width: 0;
}

.radio-option {
  flex: 1;
  min-width: 140px;
  position: relative;
}

/* Visually hide radio but keep it focusable for required validation */
.radio-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
  font-weight: normal;
}

.radio-option label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  margin-bottom: 0;
  transition: all 0.2s;
}

.radio-option input:checked + label {
  border-color: var(--wc-gold);
  background: rgba(201, 162, 39, 0.2);
}

.radio-option label::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  flex-shrink: 0;
}

.radio-option input:checked + label::before {
  border-color: var(--wc-gold);
  background: radial-gradient(circle, var(--wc-gold) 40%, transparent 50%);
}

.total-box {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(201, 162, 39, 0.05));
  border: 1px solid var(--wc-gold);
  border-radius: 12px;
  padding: 16px 1.25rem;
  margin: 16px 0;
  text-align: center;
}

.total-label {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.total-amount {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--wc-gold);
}

.total-note {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--wc-gold), #a68520);
  border: none;
  border-radius: 10px;
  color: var(--wc-dark);
  font-family: var(--font-bengali);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

.btn-submit:active { transform: translateY(0); }

.footer-note {
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
  padding: 16px 0 1.5rem;
}

.footer-note strong { color: var(--wc-gold); }

/* Product gallery (per-country images & videos) */
.product-gallery-card .card-title { margin-bottom: 0.75rem; }
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}
.gallery-image-wrap {
  aspect-ratio: 1;
  cursor: pointer;
}
.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.gallery-image-wrap:hover .gallery-thumb { transform: scale(1.05); }
.gallery-video-wrap {
  position: relative;
  aspect-ratio: 16/10;
}
.gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-video-label {
  position: absolute;
  bottom: 4px;
  left: 6px;
  font-size: 0.7rem;
  background: rgba(0,0,0,0.7);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--wc-gold);
}

/* Lightbox (zoom view for photos): [ ← | Image | → ] then 1/6 below */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.lightbox-overlay.lightbox-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  max-height: calc(100vh - 80px);
}

.lightbox-prev,
.lightbox-next {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.3); }
@media (max-width: 600px) {
  .lightbox-content { gap: 8px; }
  .lightbox-prev,
  .lightbox-next { width: 44px; height: 44px; font-size: 24px; }
}

.lightbox-img {
  max-width: min(85vw, 900px);
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(201, 162, 39, 0.2);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

.lightbox-counter {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border-radius: 8px;
}

/* Thank you page */
.thank-you .hero { padding: 2rem 0; }
.thank-you .card { max-width: 360px; margin-left: auto; margin-right: auto; }
.thank-you .total-amount { font-size: 1.5rem; }
.thank-you .order-ref {
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  letter-spacing: 0.02em;
}
