/* ========================================
   RE-GAMING.DE — Professional Redesign
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --bg-elevated: #1a1a1a;
  --border: #222222;
  --border-light: #2a2a2a;
  --text-primary: #f0f0f0;
  --text-secondary: #8a8a8a;
  --text-muted: #555555;
  --accent: #c8102e;
  --accent-hover: #a00d24;
  --accent-soft: rgba(200, 16, 46, 0.1);
  --accent-glow: rgba(200, 16, 46, 0.15);
  --green: #22c55e;
  --gold: #f59e0b;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1280px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

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

button {
  cursor: pointer;
  font-family: var(--font);
  border: none;
  background: none;
}

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Fade In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

section {
  padding: 96px 0;
}

/* --- Announcement Bar --- */
.announcement-bar {
  background: var(--bg-secondary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.announcement-slides {
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 1.4em;
  flex: 1;
}

.announcement-slide {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.announcement-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.announcement-arrow {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
  flex-shrink: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.announcement-prev {
  left: max(16px, calc((100% - var(--max-width)) / 2 + 16px));
}

.announcement-next {
  right: max(16px, calc((100% - var(--max-width)) / 2 + 16px));
}

.announcement-arrow:hover {
  color: var(--accent);
}

/* --- Navigation --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 3px;
}

.navbar-logo .logo-accent {
  color: var(--accent);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar-links > a,
.nav-dropdown > .nav-dropdown-trigger {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  padding: 0;
  display: flex;
  align-items: center;
}

.navbar-links > a:hover,
.navbar-links > a.active,
.nav-dropdown:hover > .nav-dropdown-trigger {
  color: var(--text-primary);
}

.navbar-links > a::after,
.nav-dropdown > .nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.navbar-links > a:hover::after,
.navbar-links > a.active::after,
.nav-dropdown:hover > .nav-dropdown-trigger::after {
  width: 100%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav-dropdown-menu a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-actions a,
.navbar-actions button {
  color: var(--text-secondary);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}

.navbar-actions a:hover,
.navbar-actions button:hover {
  color: var(--text-primary);
}

.navbar-actions svg {
  width: 20px;
  height: 20px;
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 1px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero-content {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(200, 16, 46, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero-description {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background: var(--bg-card);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat .value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-stat .label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: transparent;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

body.light-mode .hero-image::after {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

body.light-mode .hero::before {
  background: radial-gradient(ellipse, rgba(200, 16, 46, 0.05), transparent 70%);
}

/* --- Trust Bar --- */
.trust-bar {
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
}

.trust-item:last-child {
  border-right: none;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.trust-text h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.trust-text p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* --- Products Section --- */
.products-section {
  background: var(--bg-primary);
}

.products-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
}

.tab-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Filter Toolbar */
.filter-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-left {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-right {
  display: flex;
  gap: 12px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.filter-select {
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  min-width: 140px;
  transition: border-color var(--transition);
}

.filter-select:hover {
  border-color: var(--border-light);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.product-count {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
}

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #0d0d0d;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-new {
  background: var(--accent);
  color: white;
}

.badge-sold-out {
  background: var(--text-muted);
  color: white;
}

.badge-popular {
  background: var(--gold);
  color: #000;
}

.product-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.product-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.spec-tag {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.product-price .from {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.product-cta {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  background: var(--accent);
  color: white;
  transition: all var(--transition);
  display: inline-block;
}

.product-cta:hover {
  background: var(--accent-hover);
}

.product-cta.sold-out {
  background: var(--bg-primary);
  color: var(--text-muted);
  cursor: not-allowed;
  border: 1px solid var(--border);
}

.products-more {
  text-align: center;
  margin-top: 48px;
}

/* --- Categories Section --- */
.categories-section {
  background: var(--bg-secondary);
}

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

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card:nth-child(1):hover {
  border-color: #3b82f6;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.25), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.category-card:nth-child(2):hover,
.category-card.featured {
  border-color: var(--green);
}

.category-card:nth-child(2):hover {
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.25), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.category-card:nth-child(3):hover {
  border-color: #a855f7;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.25), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.category-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
}

.category-popular-tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.category-tier {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.category-name {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.category-price {
  font-size: 16px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 20px;
}

.category-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.category-games {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.game-tag {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

.category-link:hover {
  gap: 12px;
}

.category-link svg {
  width: 16px;
  height: 16px;
}

/* --- Reviews Section --- */
.reviews-section {
  background: var(--bg-primary);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
}

.review-card:hover {
  border-color: var(--border-light);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.review-name {
  font-size: 14px;
  font-weight: 600;
}

.review-product {
  font-size: 12px;
  color: var(--text-secondary);
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  fill: var(--gold);
}

.review-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

/* Quotation marks are already in the HTML */

.review-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.review-summary-item {
  text-align: center;
}

.review-summary-item .big {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.review-summary-item .small {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Why Re-Gaming Section --- */
.why-section {
  background: var(--bg-secondary);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: all var(--transition);
}

.why-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.why-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- FAQ Section --- */
.faq-section {
  background: var(--bg-primary);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.active {
  border-color: var(--border-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition);
}

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

.faq-icon svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Newsletter Section --- */
.newsletter-section {
  background: var(--bg-secondary);
}

.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

.newsletter-form button {
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--accent-hover);
}

.newsletter-consent {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.6;
}

.newsletter-consent a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

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

.footer-brand p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.footer-social a:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 0;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-methods img {
  height: 28px;
  width: auto;
  border-radius: 4px;
}

/* --- Scroll to Top --- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* --- Search Modal --- */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.search-modal.open {
  opacity: 1;
  visibility: visible;
}

.search-modal-inner {
  width: 100%;
  max-width: 600px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.search-header svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-close {
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-close:hover {
  color: var(--text-primary);
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.search-result-item:hover {
  background: var(--bg-primary);
}

.search-result-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.search-result-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.search-result-price {
  font-size: 13px;
  color: var(--text-secondary);
}

.search-hint {
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* --- Cart Notification --- */
.cart-notification {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.cart-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cart-notification svg {
  color: var(--green);
  flex-shrink: 0;
}

.cart-notification span {
  font-size: 14px;
  font-weight: 500;
}

.cart-notification a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-left: 8px;
  white-space: nowrap;
}

.cart-notification a:hover {
  text-decoration: underline;
}

/* --- Product Detail Page --- */
.product-detail {
  padding: 48px 0 96px;
}

.product-detail .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-gallery img {
  width: 100%;
  border-radius: var(--radius-lg);
  background: #0d0d0d;
}

.product-info {
  padding-top: 8px;
}

.product-info .product-category {
  margin-bottom: 12px;
}

.product-info h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.product-info .product-price {
  font-size: 32px;
  margin-bottom: 28px;
}

.product-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.product-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.option-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.option-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.option-btn:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.option-btn.active {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--accent-soft);
}

.add-to-cart-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  transition: all var(--transition);
  margin-bottom: 16px;
}

.add-to-cart-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.25);
}

.add-to-cart-btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.product-detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.detail-spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.detail-spec .spec-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.detail-spec .spec-value {
  font-size: 15px;
  font-weight: 600;
}

/* Gallery with Thumbnails */
.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d0d0d;
  margin-bottom: 12px;
}

.gallery-main img {
  width: 100%;
  display: block;
  border-radius: 0;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.gallery-thumb {
  flex: 0 0 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.5;
  transition: all var(--transition);
}

.gallery-thumb:hover {
  opacity: 0.8;
}

.gallery-thumb.active {
  border-color: var(--accent);
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Quantity Control */
.quantity-row {
  margin-bottom: 20px;
}

.quantity-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.quantity-control {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-primary);
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: background var(--transition);
}

.qty-btn:hover {
  background: var(--bg-card-hover);
}

.qty-input {
  width: 56px;
  height: 44px;
  text-align: center;
  background: var(--bg-primary);
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font);
  -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* Product Shipping Info */
.product-shipping-info {
  display: flex;
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Trust Badges on product page */
.product-trust-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.product-trust-badges span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.product-trust-badges svg {
  color: var(--green);
  flex-shrink: 0;
}

/* Payment Icons on product page */
.product-payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.payment-icon-img {
  height: 28px;
  width: auto;
  border-radius: 4px;
}

/* Product Tabs */
.product-tabs {
  margin-top: 40px;
  padding-top: 0;
  border-top: none;
}

.product-tabs-nav {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0;
  background: var(--bg-card);
}

.product-tabs-nav .tab-btn {
  flex: 1;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: none;
  border-bottom: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.product-tabs-nav .tab-btn:last-child {
  border-right: none;
}

.product-tabs-nav .tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.product-tabs-nav .tab-btn.active {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

.product-tabs .tab-content {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.tab-content p strong {
  color: var(--text-primary);
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.spec-td-label {
  padding: 12px 16px 12px 0;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  vertical-align: top;
  width: 120px;
}

.spec-td-value {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-primary);
}

/* Upgrades */
.upgrades-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 24px;
  margin-bottom: 12px;
}

.upgrades-table .spec-td-label {
  color: var(--text-muted);
}

.upgrades-table .spec-td-value {
  font-size: 13px;
}

/* Share Button */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 20px;
  transition: all var(--transition);
}

.share-btn:hover {
  color: var(--accent);
}

/* Sold out option */
.option-btn.sold-out-option {
  opacity: 0.4;
  text-decoration: line-through;
}

/* Related Products */
.related-products-section {
  padding: 64px 0 96px;
  border-top: 1px solid var(--border);
}

.related-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 32px;
}

/* --- Page Header (for sub-pages) --- */
.page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-secondary);
}

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

.breadcrumb svg {
  width: 14px;
  height: 14px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 800;
}

/* --- Cart Page --- */
.cart-page {
  padding: 48px 0 96px;
  min-height: 60vh;
}

.cart-empty {
  text-align: center;
  padding: 80px 0;
}

.cart-empty h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

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

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

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.cart-item-variant {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-control button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 16px;
  transition: background var(--transition);
}

.qty-control button:hover {
  background: var(--bg-primary);
}

.qty-control span {
  width: 40px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-primary);
  height: 36px;
  line-height: 36px;
}

.cart-item-remove {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.cart-item-remove:hover {
  color: var(--accent);
}

.cart-item-price {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

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

.cart-summary h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.cart-summary-row.total {
  font-size: 18px;
  font-weight: 800;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

.cart-summary-row .label {
  color: var(--text-secondary);
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  margin-top: 24px;
  transition: all var(--transition);
}

.checkout-btn:hover {
  background: var(--accent-hover);
}

.cart-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}

/* --- Login Page --- */
.login-page {
  padding: 80px 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.login-box {
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.login-box h1 {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.login-box .subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 36px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

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

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
}

.form-submit:hover {
  background: var(--accent-hover);
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.form-footer a {
  color: var(--accent);
  font-weight: 600;
}

.form-footer a:hover {
  text-decoration: underline;
}

.login-tabs {
  display: flex;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.login-tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.login-tab:hover {
  color: var(--text-primary);
}

.login-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* --- Contact Page --- */
.contact-page {
  padding: 48px 0 96px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.contact-method h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-method p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-method a {
  color: var(--accent);
  font-weight: 500;
}

.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-form-box h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* --- Legal Pages --- */
.legal-page {
  padding: 48px 0 96px;
}

.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 16px;
}

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

.legal-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

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

.legal-content a:hover {
  text-decoration: underline;
}

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

.legal-content li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
  list-style: decimal;
}

.legal-content ul li {
  list-style: disc;
}

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

.legal-content small {
  color: var(--text-muted);
}

/* --- Product Card Hover Preview --- */
.product-card-image {
  position: relative;
}

.product-card-image .hover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover .product-card-image .hover-img {
  opacity: 1;
}

/* --- Theme Toggle & Language Switch --- */
.navbar-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
}

.tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
}

.tool-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.tool-btn svg {
  width: 16px;
  height: 16px;
}

/* --- Light Mode --- */
body.light-mode {
  --bg-primary: #f5f5f5;
  --bg-secondary: #eaeaea;
  --bg-card: #ffffff;
  --bg-card-hover: #f9f9f9;
  --bg-elevated: #ffffff;
  --border: #e0e0e0;
  --border-light: #d0d0d0;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --accent-soft: rgba(200, 16, 46, 0.08);
  --accent-glow: rgba(200, 16, 46, 0.1);
}

body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

body.light-mode .product-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.light-mode .product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.light-mode .product-card-image {
  background: #f0f0f0;
}

body.light-mode .gallery-main {
  background: #f0f0f0;
}

body.light-mode .announcement-bar {
  background: #111111;
  color: #f0f0f0;
}

body.light-mode .section-label {
  color: var(--accent);
}

body.light-mode .spec-tag {
  background: #f0f0f0;
  color: #444;
  border-color: #e0e0e0;
}

body.light-mode .product-tabs .tab-content {
  background: #fff;
  border-color: var(--border);
}

body.light-mode .product-tabs-nav {
  border-color: var(--border);
  background: #f8f8f8;
}

body.light-mode .product-tabs-nav .tab-btn {
  border-color: var(--border);
}

body.light-mode .product-tabs-nav .tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

body.light-mode .option-btn {
  background: #fff;
  border-color: var(--border);
  color: var(--text-primary);
}

body.light-mode .option-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

body.light-mode .add-to-cart-btn {
  background: var(--accent);
  color: #fff;
}

body.light-mode .footer {
  background: #1a1a1a;
  color: #e0e0e0;
}

body.light-mode .footer a {
  color: #bbb;
}

body.light-mode .footer a:hover {
  color: #fff;
}

body.light-mode .footer h4 {
  color: #fff;
}

body.light-mode .footer-bottom {
  border-color: #333;
  color: #888;
}

body.light-mode .search-modal {
  background: rgba(0, 0, 0, 0.5);
}

body.light-mode .search-modal-inner {
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body.light-mode .search-input {
  color: var(--text-primary);
}

body.light-mode .search-result-item:hover {
  background: #f5f5f5;
}

body.light-mode .faq-question {
  color: var(--text-primary);
}

body.light-mode .faq-item {
  border-color: var(--border);
}

body.light-mode .why-card {
  background: #fff;
  border-color: var(--border);
}

body.light-mode .review-card {
  background: #fff;
  border-color: var(--border);
}

body.light-mode .category-card {
  border-color: var(--border);
}

body.light-mode .category-card:hover {
  border-color: var(--accent);
}

body.light-mode .newsletter {
  background: #fff;
  border-color: var(--border);
}

body.light-mode .filter-select {
  background: #fff;
  border-color: var(--border);
  color: var(--text-primary);
}

body.light-mode .breadcrumb a {
  color: var(--text-secondary);
}

body.light-mode .breadcrumb a:hover {
  color: var(--accent);
}

body.light-mode .tool-btn {
  background: #fff;
  border-color: var(--border);
}

body.light-mode .tool-btn:hover {
  background: #f0f0f0;
}

body.light-mode .scroll-top {
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

body.light-mode .legal-content {
  color: var(--text-primary);
}

body.light-mode .legal-content h2,
body.light-mode .legal-content h3 {
  color: var(--text-primary);
}

body.light-mode .contact-form input,
body.light-mode .contact-form textarea,
body.light-mode .contact-form select {
  background: #fff;
  border-color: var(--border);
  color: var(--text-primary);
}

body.light-mode .login-card {
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.light-mode .cart-item {
  background: #fff;
  border-color: var(--border);
}

body.light-mode .cart-summary {
  background: #fff;
  border-color: var(--border);
}

body.light-mode .page-header {
  background: #eee;
  border-bottom: 1px solid var(--border);
}

body.light-mode .login-box {
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.light-mode .login-tab {
  color: var(--text-secondary);
}

body.light-mode .login-tab.active {
  color: var(--accent);
  border-color: var(--accent);
}

body.light-mode .form-group input,
body.light-mode .form-group textarea,
body.light-mode .form-group select {
  background: #fff;
  border-color: var(--border);
  color: var(--text-primary);
}

body.light-mode .form-group input::placeholder,
body.light-mode .form-group textarea::placeholder {
  color: #aaa;
}

body.light-mode .cart-empty {
  color: var(--text-primary);
}

body.light-mode .product-shipping-info {
  color: var(--text-secondary);
}

body.light-mode .quantity-control .qty-btn {
  background: #fff;
  border-color: var(--border);
  color: var(--text-primary);
}

body.light-mode .quantity-control .qty-input {
  background: #fff;
  border-color: var(--border);
  color: var(--text-primary);
}

body.light-mode .share-btn {
  color: var(--text-secondary);
  border-color: var(--border);
}

body.light-mode .share-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

body.light-mode .product-payment-icons img {
  filter: none;
}

body.light-mode .contact-method-icon {
  background: rgba(200, 16, 46, 0.08);
  color: var(--accent);
}

/* ========================================
   Responsive
   ======================================== */

/* --- iPad landscape / small laptops (1024px) --- */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .cart-layout {
    grid-template-columns: 1fr 320px;
  }

  .hero .container {
    gap: 32px;
  }

  .hero-image img {
    max-width: 420px;
  }

  .product-detail .container {
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
  }
}

/* --- iPad portrait / tablets (768px - 1024px) --- */
@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 400px;
    margin: 0 auto;
  }

  .product-detail .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-gallery {
    position: static;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- Mobile landscape / small tablets (768px) --- */
@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }

  .navbar-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 24px;
    border-top: 1px solid var(--border);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links a {
    font-size: 18px;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 8px 0 0 16px;
    min-width: auto;
  }

  .nav-dropdown-menu a {
    padding: 8px 0;
    font-size: 16px;
    color: var(--text-secondary);
  }

  .menu-toggle {
    display: flex;
  }

  .trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2) {
    border-right: none;
  }

  .trust-item:nth-child(3),
  .trust-item:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .review-summary {
    gap: 28px;
  }

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

  .newsletter-form {
    flex-direction: column;
  }

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

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

  .payment-methods {
    flex-wrap: wrap;
    justify-content: center;
  }

  .filter-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-left {
    flex-direction: column;
  }

  .filter-select {
    min-width: 100%;
  }

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

  .product-tabs-nav {
    flex-direction: column;
  }

  .product-tabs-nav .tab-btn {
    text-align: left;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .product-tabs-nav .tab-btn:last-child {
    border-bottom: none;
  }

  .navbar-tools {
    gap: 4px;
    margin-right: 4px;
  }

  .tool-btn {
    width: 32px;
    height: 32px;
  }

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

  .gallery-thumbs {
    gap: 8px;
  }

  .gallery-thumb {
    width: 70px;
    height: 70px;
  }
}

/* --- Mobile portrait (480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  section {
    padding: 44px 0;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-image img {
    max-width: 280px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

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

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

  .trust-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
  }

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

  .cart-item {
    flex-direction: column;
  }

  .cart-item img {
    width: 100%;
    height: 200px;
  }

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

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

  .search-modal {
    padding-top: 80px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .announcement-bar {
    font-size: 11px;
  }

  .product-price {
    font-size: 1.3rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quantity-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .product-shipping-info {
    flex-direction: column;
    gap: 4px;
  }

  .option-buttons {
    flex-wrap: wrap;
  }

  .option-btn {
    flex: 1;
    min-width: 80px;
    text-align: center;
  }

  .gallery-thumb {
    width: 56px;
    height: 56px;
  }

  .review-card {
    padding: 20px;
  }

  .why-card {
    padding: 20px;
  }

  .faq-question {
    font-size: 14px;
    padding: 16px 0;
  }

  .faq-answer {
    font-size: 14px;
  }
}
