/* ========================================
   DGL STORE — FEUILLE DE STYLES PRINCIPALE
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* === VARIABLES === */
:root {
  --bg:          #080808;
  --bg-2:        #0e0e0e;
  --bg-card:     #111111;
  --bg-card-2:   #161616;
  --accent:      #5c5ff5;
  --accent-h:    #7174f7;
  --accent-2:    #8b5cf6;
  --text:        #ffffff;
  --text-2:      #b0b0b0;
  --text-3:      #666666;
  --border:      #1e1e1e;
  --border-2:    #2a2a2a;
  --success:     #10b981;
  --danger:      #ef4444;
  --warn:        #f59e0b;
  --font-h:      'Rajdhani', sans-serif;
  --font-b:      'Inter', sans-serif;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,.5);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.7);
  --transition:  .25s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-b); background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 { font-family: var(--font-h); line-height: 1.2; }
.section-label  { font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.section-title  { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; text-transform: uppercase; }
.section-sub    { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 300; color: var(--text-2); }
.section-desc   { color: var(--text-2); max-width: 560px; margin: 0 auto; }

/* === CONTAINER === */
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; font-size: .875rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; border-radius: var(--radius);
  transition: var(--transition); white-space: nowrap;
}
.btn-primary  { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(92,95,245,.35); }
.btn-outline  { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-dark     { background: var(--bg-card-2); color: #fff; border: 1px solid var(--border-2); }
.btn-dark:hover { background: var(--bg-card); border-color: var(--accent); }
.btn-sm       { padding: 8px 18px; font-size: .8rem; }
.btn-lg       { padding: 16px 36px; font-size: 1rem; }
.btn-full     { width: 100%; justify-content: center; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%; display: inline-block;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
  background: var(--accent); color: #fff; text-align: center;
  padding: 8px 24px; font-size: .8rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase;
}
.top-bar a { color: #fff; text-decoration: underline; }

/* ========================================
   HEADER / NAV
   ======================================== */
#header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(8,8,8,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
#header.scrolled { background: rgba(8,8,8,.97); border-color: var(--border); }

.navbar {
  display: flex; align-items: center; gap: 32px;
  padding: 0 24px; max-width: 1320px; margin: 0 auto; height: 72px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-h); font-size: 1.5rem; font-weight: 700;
  letter-spacing: .06em; color: #fff; white-space: nowrap;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px; background: var(--accent);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem;
}

.nav-links {
  display: flex; gap: 2px; flex: 1;
}
.nav-links a {
  padding: 8px 16px; font-size: .85rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-2); border-radius: 6px;
  transition: var(--transition); white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.06); }
.nav-links a.active { color: var(--accent); }

.nav-actions {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
}
.nav-icon-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: transparent; border-radius: 8px; color: var(--text-2);
  transition: var(--transition); position: relative;
}
.nav-icon-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-icon-btn svg { width: 20px; height: 20px; }

.cart-count {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--accent); color: #fff; font-size: .65rem;
  font-weight: 700; border-radius: 10px; display: flex;
  align-items: center; justify-content: center;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; padding: 8px; margin-left: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-2); border-radius: 2px; transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================
   SEARCH OVERLAY
   ======================================== */
#search-overlay {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.85);
  backdrop-filter: blur(12px); display: flex; align-items: flex-start;
  justify-content: center; padding-top: 100px;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
#search-overlay.open { opacity: 1; pointer-events: all; }
.search-box {
  width: 100%; max-width: 640px; padding: 0 24px;
}
.search-input-wrap {
  position: relative; display: flex; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); overflow: hidden;
}
.search-input {
  flex: 1; padding: 18px 20px; background: none; border: none; outline: none;
  color: var(--text); font-size: 1.1rem;
}
.search-close {
  background: none; padding: 18px 20px; color: var(--text-3);
  font-size: 1.4rem; transition: color var(--transition);
}
.search-close:hover { color: var(--text); }
.search-results {
  margin-top: 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.search-result-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-card-2); }
.search-result-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.sr-name { display: block; font-weight: 600; }
.sr-price { display: block; color: var(--accent); font-size: .85rem; }
.no-results { padding: 20px; color: var(--text-2); text-align: center; }

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative; overflow: hidden; height: calc(100vh - 113px); min-height: 560px;
  background: var(--bg-2);
}
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; transition: opacity .7s ease; pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: all; }

/* Diagonal stripe background */
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent, transparent 8px,
    rgba(255,255,255,.012) 8px, rgba(255,255,255,.012) 16px
  );
}
.hero-slide-1 { background: linear-gradient(135deg, #0a0a0a 40%, #0d0515 100%); }
.hero-slide-2 { background: linear-gradient(135deg, #0a0a14 40%, #0a1020 100%); }
.hero-slide-3 { background: linear-gradient(135deg, #080810 40%, #110a20 100%); }

.hero-bg-glow {
  position: absolute; right: -100px; top: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(92,95,245,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2; padding: 0 48px;
  max-width: 600px;
}
.hero-label {
  display: inline-block; font-size: .8rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-h); font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05; margin-bottom: 20px;
}
.hero-title .thin { font-weight: 300; color: rgba(255,255,255,.85); display: block; }
.hero-title .bold { font-weight: 700; color: #fff; display: block; }
.hero-desc { color: var(--text-2); margin-bottom: 32px; max-width: 440px; font-size: .95rem; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-price {
  font-family: var(--font-h); font-size: 1.8rem; font-weight: 700;
  color: rgba(255,255,255,.9);
}

.hero-image {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 55%; max-width: 800px; height: 100%; object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(to right, transparent 0%, black 20%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%);
}

.hero-controls {
  position: absolute; bottom: 40px; left: 48px; z-index: 3;
  display: flex; align-items: center; gap: 20px;
}
.hero-arrows { display: flex; gap: 8px; }
.hero-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: var(--transition);
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-dots { display: flex; gap: 8px; align-items: center; }
.hero-dot {
  width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25);
  transition: all .3s ease; cursor: pointer;
}
.hero-dot.active { background: var(--accent); width: 24px; }

/* ========================================
   CATEGORIES SECTION
   ======================================== */
.categories-section { background: var(--bg-2); padding: 60px 0; }
.categories-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px;
}
.category-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 24px; text-align: center;
  transition: var(--transition); cursor: pointer;
}
.category-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(92,95,245,.15); }
.category-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  background: rgba(92,95,245,.1); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.category-card h3 { font-family: var(--font-h); font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.category-card p { font-size: .8rem; color: var(--text-3); }

/* ========================================
   BUILD PC SECTION
   ======================================== */
.build-section {
  background: #090910;
  background-image: repeating-linear-gradient(-45deg,transparent,transparent 20px,rgba(92,95,245,.02) 20px,rgba(92,95,245,.02) 40px);
}
.build-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.build-image-slider { position: relative; }
.build-img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.build-slide { display: none; }
.build-slide.active { display: block; }
.build-slider-controls {
  position: absolute; bottom: -48px; left: 0;
  display: flex; gap: 8px;
}
.build-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-2); background: var(--bg-card);
  color: var(--text-2); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: var(--transition);
}
.build-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.build-text .section-label { margin-bottom: 12px; }
.build-text .section-title { margin-bottom: 8px; }
.build-text .section-sub   { margin-bottom: 20px; }
.build-text p { color: var(--text-2); margin-bottom: 32px; font-size: .95rem; }
.build-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px;
}
.spec-item { display: flex; align-items: flex-start; gap: 14px; }
.spec-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(92,95,245,.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.spec-item h4 { font-size: .9rem; font-weight: 600; margin-bottom: 2px; }
.spec-item p  { font-size: .8rem; color: var(--text-3); }
.build-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ========================================
   FEATURED PRODUCTS
   ======================================== */
.products-section { background: var(--bg); }
.section-header {
  text-align: center; margin-bottom: 48px;
}
.section-header .section-label  { margin-bottom: 8px; }
.section-header .section-title  { margin-bottom: 8px; }
.section-header .section-desc   { margin-top: 12px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ========================================
   PRODUCT CARD
   ======================================== */
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  transition: var(--transition);
}
.product-card:hover { border-color: var(--border-2); transform: translateY(-4px); box-shadow: var(--shadow); }

.product-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--accent); color: #fff; padding: 4px 10px;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; border-radius: 4px;
}
.badge-promo   { background: var(--danger); }
.badge-nouveau { background: var(--success); }
.badge-top     { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.product-img-wrap {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: linear-gradient(135deg, #111122, #0d0d20);
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transition: opacity var(--transition);
}
.product-card:hover .product-overlay { opacity: 1; }

.product-info { padding: 18px; }
.product-brand { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 600; }
.product-name {
  font-family: var(--font-h); font-size: 1rem; font-weight: 600; margin: 6px 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-name a { transition: color var(--transition); }
.product-name a:hover { color: var(--accent); }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.star { color: rgba(255,255,255,.2); font-size: .85rem; }
.star.full, .star.half { color: #fbbf24; }
.review-count { font-size: .75rem; color: var(--text-3); }
.product-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price-current { font-family: var(--font-h); font-size: 1.25rem; font-weight: 700; color: #fff; }
.price-old { font-size: .85rem; color: var(--text-3); text-decoration: line-through; }
.price-discount { font-size: .75rem; background: rgba(239,68,68,.15); color: var(--danger); padding: 2px 6px; border-radius: 4px; font-weight: 600; }

/* ========================================
   PRICING / PC BUILDS
   ======================================== */
.pricing-section {
  background: var(--bg-2);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235c5ff5' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; align-items: end;
}
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition);
}
.pricing-card.featured {
  border-color: var(--accent); transform: scale(1.03);
  box-shadow: 0 0 40px rgba(92,95,245,.2);
}
.pricing-card:hover { border-color: var(--accent); }
.pricing-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.pricing-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #111125, #0d0d22);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.pricing-body { padding: 28px 24px; }
.pricing-name { font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.pricing-price { display: flex; align-items: flex-start; gap: 4px; margin-bottom: 4px; }
.pricing-price .currency { font-family: var(--font-h); font-size: 1.3rem; font-weight: 600; margin-top: 4px; color: var(--text-2); }
.pricing-price .amount   { font-family: var(--font-h); font-size: 3.5rem; font-weight: 700; line-height: 1; }
.pricing-label { font-size: .75rem; color: var(--text-3); margin-bottom: 24px; }
.pricing-specs { padding: 0; margin-bottom: 28px; }
.pricing-specs li {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: .875rem; color: var(--text-2); display: flex; align-items: center; gap: 10px;
}
.pricing-specs li:last-child { border-bottom: none; }
.check { color: var(--accent); font-size: 1rem; }

/* ========================================
   PROMO / VIDEO SECTION
   ======================================== */
.promo-section { background: linear-gradient(135deg, #0a0a0a 0%, #0d0520 100%); }
.promo-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.promo-label { margin-bottom: 12px; }
.promo-title {
  font-family: var(--font-h); font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300; margin-bottom: 8px; color: rgba(255,255,255,.8);
}
.promo-title strong {
  display: block; font-weight: 800; font-size: clamp(3rem, 6vw, 5.5rem);
  color: #fff; line-height: 1;
}
.promo-text { color: var(--text-2); margin: 24px 0 36px; font-size: .95rem; line-height: 1.8; }
.promo-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.promo-video {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/10; background: #0a0a1a; cursor: pointer;
}
.promo-video img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.promo-video:hover img { transform: scale(1.05); }
.play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3);
}
.play-btn-inner {
  width: 70px; height: 70px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6); background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: var(--transition);
}
.play-btn:hover .play-btn-inner { background: var(--accent); border-color: var(--accent); transform: scale(1.1); }
.play-icon { font-size: 1.6rem; margin-left: 4px; }

/* ========================================
   CUSTOM DESKTOPS
   ======================================== */
.desktops-section { background: var(--bg); }
.desktops-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px;
}
.desktop-item {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
}
.desktop-item:nth-child(odd) .desktop-img { order: -1; }
.desktop-img {
  border-radius: var(--radius-lg); aspect-ratio: 3/4; object-fit: cover;
  transition: transform .4s ease;
}
.desktop-item:hover .desktop-img { transform: scale(1.03); }
.desktop-name { font-family: var(--font-h); font-size: 1.4rem; font-weight: 700; margin-bottom: 16px; }
.desktop-specs-list { margin-bottom: 24px; }
.desktop-specs-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: .875rem; color: var(--text-2); padding: 6px 0;
}
.desktop-check { color: var(--accent); }

/* ========================================
   TESTIMONIAL / GALLERY SECTION
   ======================================== */
.gallery-section {
  background: linear-gradient(135deg, #0a0a14 0%, #150a25 100%);
}
.gallery-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.gallery-photos {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 16px; aspect-ratio: 1;
}
.gallery-photo-main {
  grid-row: span 2; border-radius: var(--radius-lg);
  overflow: hidden; height: 100%;
}
.gallery-photo { border-radius: var(--radius-lg); overflow: hidden; height: 100%; }
.gallery-photo img, .gallery-photo-main img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease;
}
.gallery-photo:hover img, .gallery-photo-main:hover img { transform: scale(1.05); }
.gallery-text .section-title { text-transform: uppercase; margin-bottom: 8px; }
.gallery-text .section-sub { margin-bottom: 20px; }
.gallery-text p { color: var(--text-2); margin-bottom: 24px; line-height: 1.8; }
.gallery-quote {
  border-left: 3px solid var(--accent); padding-left: 20px;
  margin-bottom: 28px;
}
.gallery-quote blockquote { font-style: italic; color: var(--text-2); line-height: 1.7; }
.gallery-quote cite { display: block; margin-top: 12px; font-weight: 700; font-style: normal; font-size: .9rem; }

/* ========================================
   NEWSLETTER
   ======================================== */
.newsletter-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  padding: 60px 0;
}
.newsletter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.newsletter-text h2 { font-family: var(--font-h); font-size: 1.8rem; font-weight: 700; }
.newsletter-text p  { opacity: .85; margin-top: 6px; }
.newsletter-form { display: flex; gap: 0; max-width: 440px; width: 100%; }
.newsletter-input {
  flex: 1; padding: 14px 20px; background: rgba(255,255,255,.15); border: none;
  border-radius: var(--radius) 0 0 var(--radius); color: #fff; font-size: .9rem;
  outline: none;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-btn {
  padding: 14px 24px; background: rgba(255,255,255,.25); color: #fff;
  font-weight: 700; font-size: .875rem; letter-spacing: .05em; text-transform: uppercase;
  border-radius: 0 var(--radius) var(--radius) 0; border: none;
  transition: background var(--transition);
}
.newsletter-btn:hover { background: rgba(255,255,255,.4); }

/* ========================================
   FOOTER
   ======================================== */
footer { background: #050505; border-top: 1px solid var(--border); }
.footer-main {
  display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 40px;
  padding: 60px 0 40px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-2); font-size: .9rem; line-height: 1.7; max-width: 280px; }
.footer-socials { display: flex; gap: 10px; margin-top: 24px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid var(--border-2); background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: var(--transition); color: var(--text-2);
}
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.footer-col h4 { font-family: var(--font-h); font-size: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-2); font-size: .875rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }

.footer-contact { }
.footer-contact h4 { font-family: var(--font-h); font-size: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.contact-info li {
  display: flex; gap: 10px; margin-bottom: 14px;
  font-size: .875rem; color: var(--text-2); align-items: flex-start;
}
.contact-info li span { color: var(--text-3); font-size: 1rem; margin-top: 1px; }
.footer-payment { margin-top: 24px; }
.footer-payment p { font-size: .75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.payment-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-icon {
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 10px; font-size: .75rem; color: var(--text-2);
  font-weight: 600; white-space: nowrap;
}

.footer-bottom {
  border-top: 1px solid var(--border); padding: 24px 0;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: .8rem; color: var(--text-3); }
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal-links a { font-size: .8rem; color: var(--text-3); transition: color var(--transition); }
.footer-legal-links a:hover { color: var(--accent); }

/* ========================================
   COOKIE POPUP
   ======================================== */
#cookie-popup {
  position: fixed; bottom: -100%; left: 0; right: 0; z-index: 9999;
  transition: bottom .4s ease;
}
#cookie-popup.show { bottom: 0; }
.cookie-content {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--bg-card); border-top: 2px solid var(--accent);
  padding: 20px 32px; max-width: 100%;
  box-shadow: 0 -8px 40px rgba(0,0,0,.6);
}
.cookie-icon { font-size: 2rem; flex-shrink: 0; }
.cookie-text { flex: 1; min-width: 200px; }
.cookie-text h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.cookie-text p  { font-size: .8rem; color: var(--text-2); }
.cookie-text a  { color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
#toast-container {
  position: fixed; bottom: 32px; right: 32px; z-index: 9998;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border-2);
  border-left: 3px solid var(--accent);
  padding: 14px 18px; border-radius: var(--radius);
  font-size: .875rem; min-width: 280px; max-width: 360px;
  box-shadow: var(--shadow); transform: translateX(120%); transition: transform .3s ease;
}
.toast.show { transform: translateX(0); }
.toast-error { border-left-color: var(--danger); }
.toast-icon { color: var(--accent); font-weight: 700; font-size: 1rem; }
.toast-error .toast-icon { color: var(--danger); }

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
  position: fixed; bottom: 32px; left: 32px; z-index: 998;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: var(--transition);
  box-shadow: 0 4px 16px rgba(92,95,245,.4);
}
.back-to-top.show { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-4px); }

/* ========================================
   BOUTIQUE / SHOP PAGE
   ======================================== */
.page-banner {
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 48px 0;
  background-image: repeating-linear-gradient(-45deg,transparent,transparent 10px,rgba(255,255,255,.01) 10px,rgba(255,255,255,.01) 20px);
}
.page-banner h1 { font-family: var(--font-h); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; text-transform: uppercase; }
.breadcrumb { display: flex; gap: 8px; margin-top: 8px; font-size: .85rem; color: var(--text-3); }
.breadcrumb a { color: var(--text-3); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-3); }

.shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 48px 0; }

.filters-sidebar {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; height: fit-content;
  position: sticky; top: 90px;
}
.filter-title { font-family: var(--font-h); font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.filter-group { margin-bottom: 28px; }
.filter-group-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 12px; }
.filter-option {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; cursor: pointer; font-size: .875rem; color: var(--text-2);
  transition: color var(--transition);
}
.filter-option:hover, .filter-option.active { color: var(--accent); }
.filter-option input[type="checkbox"], .filter-option input[type="radio"] { accent-color: var(--accent); }
.filter-count { margin-left: auto; font-size: .75rem; color: var(--text-3); }
.price-range { display: flex; flex-direction: column; gap: 12px; }
.price-inputs { display: flex; gap: 10px; align-items: center; }
.price-inputs span { color: var(--text-3); font-size: .85rem; }
.price-input {
  flex: 1; padding: 8px 12px; background: var(--bg-card-2);
  border: 1px solid var(--border-2); border-radius: 6px;
  color: var(--text); font-size: .85rem; outline: none; width: 80px;
}
.price-input:focus { border-color: var(--accent); }
.filter-range { width: 100%; accent-color: var(--accent); }

.shop-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.shop-header h2 { font-family: var(--font-h); font-size: 1.4rem; font-weight: 700; }
.shop-count { font-size: .85rem; color: var(--text-3); }
.sort-select {
  background: var(--bg-card); border: 1px solid var(--border-2);
  border-radius: 8px; padding: 10px 16px; color: var(--text); font-size: .85rem; outline: none;
}
.sort-select:focus { border-color: var(--accent); }

/* Product Detail */
.product-detail { padding: 60px 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-gallery { position: sticky; top: 90px; }
.product-main-img {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 1; background: var(--bg-card);
}
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbnails { display: flex; gap: 10px; margin-top: 12px; }
.product-thumb {
  width: 72px; height: 72px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); cursor: pointer; transition: border-color var(--transition);
}
.product-thumb.active, .product-thumb:hover { border-color: var(--accent); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info .product-brand { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 8px; }
.product-detail-info h1 { font-family: var(--font-h); font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.product-detail-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.product-detail-price { margin-bottom: 24px; }
.product-detail-price .price-current { font-family: var(--font-h); font-size: 2.5rem; font-weight: 700; }
.product-detail-price .price-old { font-size: 1.1rem; color: var(--text-3); text-decoration: line-through; margin-left: 12px; }
.product-detail-desc { color: var(--text-2); line-height: 1.8; margin-bottom: 28px; }
.product-detail-specs { margin-bottom: 28px; }
.product-detail-specs h3 { font-family: var(--font-h); font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.spec-row { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .875rem; }
.spec-row:last-child { border-bottom: none; }
.spec-key { color: var(--text-3); min-width: 120px; }
.spec-val { color: var(--text); }

.product-qty { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-label { font-size: .85rem; color: var(--text-2); }
.qty-control { display: flex; align-items: center; gap: 0; background: var(--bg-card-2); border: 1px solid var(--border-2); border-radius: 8px; overflow: hidden; }
.qty-btn { width: 40px; height: 40px; background: none; color: var(--text); font-size: 1.1rem; transition: background var(--transition); }
.qty-btn:hover { background: var(--border-2); }
.qty-input { width: 50px; height: 40px; text-align: center; background: none; border: none; color: var(--text); font-size: .95rem; }
.qty-input::-webkit-inner-spin-button { display: none; }

.product-actions { display: flex; gap: 12px; margin-bottom: 24px; }
.product-actions .btn { flex: 1; }

.product-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: .8rem; color: var(--text-3); }
.product-meta-item { display: flex; align-items: center; gap: 6px; }
.product-meta-item span { color: var(--success); }

/* ========================================
   PANIER / CART PAGE
   ======================================== */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; padding: 48px 0; }
.cart-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { padding: 16px 24px; text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); border-bottom: 1px solid var(--border); }
.cart-table td { padding: 20px 24px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-product-info { display: flex; align-items: center; gap: 16px; }
.cart-product-img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: var(--bg-card-2); }
.cart-product-name { font-weight: 600; font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-remove { background: none; color: var(--text-3); font-size: 1.2rem; transition: color var(--transition); padding: 4px 8px; }
.cart-remove:hover { color: var(--danger); }
.cart-empty { text-align: center; padding: 80px 40px; }
.cart-empty-icon { font-size: 4rem; opacity: .3; margin-bottom: 16px; }
.cart-empty h3 { font-family: var(--font-h); font-size: 1.4rem; margin-bottom: 8px; }
.cart-empty p { color: var(--text-2); margin-bottom: 24px; }

.order-summary {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; height: fit-content; position: sticky; top: 90px;
}
.summary-title { font-family: var(--font-h); font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 24px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: .875rem; color: var(--text-2); border-bottom: 1px solid var(--border); }
.summary-row:last-of-type { border-bottom: none; }
.summary-total { display: flex; justify-content: space-between; padding: 16px 0; font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--border-2); margin-top: 8px; }
.summary-total .amount { color: var(--accent); font-family: var(--font-h); font-size: 1.4rem; }
.summary-badge { background: rgba(16,185,129,.1); color: var(--success); padding: 8px 14px; border-radius: 6px; font-size: .8rem; display: flex; align-items: center; gap: 6px; margin: 16px 0; }
.coupon-form { display: flex; gap: 8px; margin: 16px 0; }
.coupon-input { flex: 1; padding: 10px 14px; background: var(--bg-card-2); border: 1px solid var(--border-2); border-radius: 6px; color: var(--text); font-size: .85rem; outline: none; }
.coupon-input:focus { border-color: var(--accent); }
.coupon-btn { padding: 10px 16px; background: var(--bg-card-2); border: 1px solid var(--border-2); border-radius: 6px; color: var(--text-2); font-size: .8rem; transition: var(--transition); }
.coupon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ========================================
   COMMANDE / CHECKOUT PAGE
   ======================================== */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; padding: 48px 0; }
.checkout-form-section { }
.checkout-step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 20px; }
.checkout-step-title {
  font-family: var(--font-h); font-size: 1.2rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-full { grid-column: span 2; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.form-input, .form-select, .form-textarea {
  padding: 12px 16px; background: var(--bg-card-2); border: 1px solid var(--border-2);
  border-radius: var(--radius); color: var(--text); font-size: .9rem; outline: none;
  transition: border-color var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-3); }
.form-select option { background: var(--bg-card); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-error { font-size: .75rem; color: var(--danger); display: none; }
.form-group.has-error .form-input { border-color: var(--danger); }
.form-group.has-error .form-error { display: block; }

.stripe-section {
  background: var(--bg-card-2); border: 1px dashed var(--border-2);
  border-radius: var(--radius); padding: 28px; text-align: center; margin-top: 20px;
}
.stripe-logo { font-size: 1.5rem; margin-bottom: 8px; }
.stripe-info { color: var(--text-2); font-size: .875rem; line-height: 1.7; margin-bottom: 16px; }
.stripe-badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.stripe-badge {
  background: rgba(255,255,255,.05); border: 1px solid var(--border-2);
  border-radius: 4px; padding: 4px 10px; font-size: .75rem; color: var(--text-3);
}

/* ========================================
   CONFIRMATION PAGE
   ======================================== */
.confirmation-section { padding: 100px 0; text-align: center; }
.confirmation-icon {
  width: 96px; height: 96px; border-radius: 50%;
  background: rgba(16,185,129,.1); border: 2px solid var(--success);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; margin: 0 auto 28px;
}
.confirmation-section h1 { font-family: var(--font-h); font-size: 2.5rem; font-weight: 700; margin-bottom: 12px; }
.confirmation-section p { color: var(--text-2); font-size: 1rem; max-width: 480px; margin: 0 auto 8px; }
.confirmation-actions { margin-top: 36px; display: flex; gap: 16px; justify-content: center; }

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-section { padding: 60px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.contact-info-block h2 { font-family: var(--font-h); font-size: 2rem; margin-bottom: 12px; }
.contact-info-block p { color: var(--text-2); margin-bottom: 32px; }
.contact-info-items { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(92,95,245,.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.contact-info-item h4 { font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.contact-info-item p { color: var(--text-2); font-size: .875rem; margin: 0; }
.contact-form-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.contact-form-wrap h3 { font-family: var(--font-h); font-size: 1.4rem; font-weight: 700; margin-bottom: 24px; }

/* ========================================
   LEGAL PAGES
   ======================================== */
.legal-section { padding: 60px 0; max-width: 860px; margin: 0 auto; }
.legal-section h1 { font-family: var(--font-h); font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; }
.legal-date { color: var(--text-3); font-size: .85rem; margin-bottom: 40px; display: block; }
.legal-section h2 { font-family: var(--font-h); font-size: 1.3rem; margin: 36px 0 16px; border-left: 3px solid var(--accent); padding-left: 16px; }
.legal-section h3 { font-size: 1rem; font-weight: 600; margin: 24px 0 10px; }
.legal-section p { color: var(--text-2); line-height: 1.8; margin-bottom: 14px; }
.legal-section ul { margin: 12px 0 20px 20px; color: var(--text-2); line-height: 1.9; }
.legal-section ul li { list-style: disc; }
.legal-section a { color: var(--accent); }
.legal-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 20px 0; }
.legal-box p { margin: 0; }
.legal-box p + p { margin-top: 8px; }

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-hero { padding: 80px 0; }
.about-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-hero-text h1 { font-family: var(--font-h); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; text-transform: uppercase; margin-bottom: 20px; }
.about-hero-text p { color: var(--text-2); line-height: 1.8; margin-bottom: 16px; }
.about-hero-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.about-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-h); font-size: 3rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: .85rem; color: var(--text-2); margin-top: 4px; }

/* ========================================
   ANIMATE ON SCROLL
   ======================================== */
.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: none; }
.animate-on-scroll.delay-1 { transition-delay: .1s; }
.animate-on-scroll.delay-2 { transition-delay: .2s; }
.animate-on-scroll.delay-3 { transition-delay: .3s; }
.animate-on-scroll.delay-4 { transition-delay: .4s; }

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .desktops-grid { grid-template-columns: 1fr; }
  .gallery-inner { grid-template-columns: 1fr; }
  .gallery-photos { max-width: 600px; margin: 0 auto; }
  .build-inner { gap: 48px; }
}

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--bg-card); border-left: 1px solid var(--border);
    flex-direction: column; padding: 80px 24px 40px; gap: 4px;
    transition: right var(--transition); z-index: 999; overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .nav-links a { padding: 14px 16px; border-radius: 8px; font-size: .95rem; }

  .hero-image { width: 50%; opacity: .4; }
  .hero-content { padding: 0 28px; }

  .build-inner { grid-template-columns: 1fr; }
  .build-image-slider { max-width: 500px; }
  .build-slider-controls { position: static; margin-top: 16px; }

  .promo-inner { grid-template-columns: 1fr; }
  .promo-video { max-width: 600px; }

  .shop-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }

  .cart-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }

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

  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }

  .about-hero-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

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

  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { max-width: 100%; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .container { padding: 0 16px; }

  .hero { height: auto; min-height: 80vh; padding: 80px 0; }
  .hero-slide { position: relative; }
  .hero-image { display: none; }
  .hero-content { padding: 0 20px; }
  .hero-title { font-size: 2.5rem; }
  .hero-controls { left: 20px; bottom: 24px; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .desktop-item { grid-template-columns: 1fr; }
  .desktop-item:nth-child(odd) .desktop-img { order: 0; }

  .gallery-photos { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-photo-main { grid-row: span 1; height: 220px; }
  .gallery-photo { height: 160px; }

  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: span 1; }

  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cart-table th:nth-child(3), .cart-table td:nth-child(3) { display: none; }
  .cart-table th:nth-child(4), .cart-table td:nth-child(4) { display: none; }

  #toast-container { left: 16px; right: 16px; bottom: 16px; }
  .toast { min-width: 0; max-width: 100%; }
  .back-to-top { left: 16px; bottom: 80px; }

  .confirmation-actions { flex-direction: column; align-items: center; }
  .build-specs { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .product-actions { flex-direction: column; }
  .cart-table { font-size: .8rem; }
  .cart-table td { padding: 16px 12px; }
  .cart-table th { padding: 12px; }
  .checkout-step { padding: 20px 16px; }
  .order-summary { padding: 20px 16px; }
}
