/* FlexiBeen — Sports Knee Pads Store (NL) */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --accent: #f97316;
  --bg-dark: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.85);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.2);
  --success: #22c55e;
  --disclosure-bg: #1e293b;
  --max-width: 1200px;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-color: var(--bg-dark);
}

/* Animated GIF background */
.bg-gif-wrapper {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.bg-gif-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(15, 23, 42, 0.75) 50%,
    rgba(14, 165, 233, 0.15) 100%
  );
  z-index: 1;
}

.bg-gif,
.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Compliance: Advertisement disclosure bar */
.disclosure-bar {
  background: var(--disclosure-bg);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  position: relative;
  z-index: 100;
}

.disclosure-bar strong {
  color: var(--accent);
  font-weight: 600;
}

/* Header */
.site-header {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 99;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.main-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: rgba(14, 165, 233, 0.15);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(14, 165, 233, 0.1);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #ea580c);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Main content */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.0625rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
}

.hero-content h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-card);
}

.hero-badge {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.hero-badge strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary);
}

/* Cards & sections */
.section {
  margin-bottom: 64px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.card-price {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.card-price .old-price {
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 400;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Product page */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-gallery {
  background: transparent;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5));
}

.product-info h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.product-rating {
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 0.9375rem;
}

.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.product-description {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.product-specs {
  list-style: none;
  margin-bottom: 28px;
}

.product-specs li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.product-specs li span:first-child {
  color: var(--text-muted);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.quantity-selector input {
  width: 60px;
  padding: 10px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 1rem;
}

/* Legal / text pages */
.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 900px;
}

.legal-content h2 {
  font-size: 1.375rem;
  margin: 32px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content a {
  color: var(--primary);
}

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-info-block h3 {
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.contact-item strong {
  color: var(--text);
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Disclaimer box */
.disclaimer-box {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 0.9375rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  max-width: var(--max-width);
  margin: 0 auto 24px;
  padding: 16px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 1000;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-inner p {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-muted);
  min-width: 280px;
}

.cookie-inner a {
  color: var(--primary);
}

.cookie-buttons {
  display: flex;
  gap: 12px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

/* About page */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

.about-content img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16/10;
  object-fit: cover;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
}

.stat-item span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Cart */
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.cart-link:hover {
  color: var(--text);
  background: rgba(14, 165, 233, 0.1);
}

.cart-count {
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.cart-count:empty,
.cart-count[data-count="0"] {
  display: none;
}

.cart-empty {
  text-align: center;
  padding: 64px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cart-empty p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cart-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  background: transparent;
  border-radius: 8px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.cart-item-info h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.cart-item-info p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.cart-item-price {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.cart-item-remove:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 400px;
  margin-left: auto;
}

.cart-summary h3 {
  margin-bottom: 20px;
  font-size: 1.125rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.summary-row.total {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.summary-row.total span:last-child {
  color: var(--primary);
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-actions .btn {
  width: 100%;
}

/* Checkout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.checkout-form-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.checkout-form-block h2 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

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

.checkout-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 100px;
}

.checkout-summary-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.checkout-summary-item:last-of-type {
  border-bottom: none;
}

.checkout-summary-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: transparent;
  border-radius: 6px;
  padding: 2px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.checkout-summary-item-info {
  flex: 1;
  font-size: 0.875rem;
}

.checkout-summary-item-info strong {
  display: block;
  margin-bottom: 2px;
}

.checkout-summary-item-info span {
  color: var(--text-muted);
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.payment-option:has(input:checked) {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.08);
}

.payment-option input {
  accent-color: var(--primary);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  color: var(--text);
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 1001;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .hero,
  .product-layout,
  .contact-layout,
  .about-content,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }

  .cart-item {
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }

  .cart-item-price,
  .cart-item .quantity-selector {
    grid-column: 2;
  }

  .cart-item-remove {
    grid-column: 2;
    justify-self: end;
  }

  .cart-summary {
    max-width: none;
  }

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

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
  }

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

  .legal-content {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
