:root {
  --orange: #F4711F;
  --orange-dark: #d4540c;
  --orange-bright: #FF8C35;
  --grey: #3A3A3A;
  --grey-mid: #888;
  --cream: #F5F0E8;
  --cream-dark: #EAE3D5;
  --black: #111111;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Space Grotesk', sans-serif; background: var(--cream-dark); color: var(--black); min-height: 100vh; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--black); border-bottom: 3px solid var(--orange);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 70px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-text { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: var(--cream); letter-spacing: 1px; }
.nav-logo-text span { color: var(--orange); }
.nav-center-logo { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; pointer-events: none; }
.nav-center-logo-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.nav-logo-img { width: 36px; height: 36px; max-width: 36px; max-height: 36px; object-fit: contain; display: block; flex-shrink: 0; }
.nav-links { display: flex; gap: 0.5rem; list-style: none; justify-content: flex-end; align-items: center; }
.nav-links a {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--cream);
  text-decoration: none; padding: 0.5rem 1rem; position: relative; transition: all 0.2s;
  border: 1px solid transparent;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px; background: var(--orange); transition: all 0.2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a:hover::after, .nav-links a.active::after { left: 0; right: 0; }
.nav-links a.active { color: var(--orange); }

/* ── PAGE WRAP ── */
.page-wrap { padding-top: 70px; min-height: 100vh; }

/* ── HERO ── */
.page-hero {
  background: var(--black);
  background-image: linear-gradient(rgba(244,113,31,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(244,113,31,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: 1.5rem 2rem 1.2rem; text-align: center;
  border-bottom: 1px solid rgba(244,113,31,0.2);
}
.page-tag { font-family: 'VT323', monospace; font-size: 1rem; color: var(--orange); letter-spacing: 4px; display: block; margin-bottom: 0.5rem; }
.page-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.8rem, 4vw, 3rem); color: var(--cream); line-height: 1; margin-bottom: 0.4rem; }
.page-title span { color: var(--orange); }
.page-title span[data-i18n$=".label"] { color: var(--cream); }
.page-sub { color: var(--grey-mid); font-size: 1rem; line-height: 1.7; }
.page-divider { width: 50px; height: 4px; background: var(--orange); margin: 0.8rem auto; position: relative; }
.page-divider::before, .page-divider::after { content: ''; position: absolute; width: 8px; height: 8px; background: var(--orange); top: -2px; }
.page-divider::before { left: -14px; }
.page-divider::after  { right: -14px; }

/* ── SUBNAV ── */
.shop-subnav {
  background: var(--black);
  border-bottom: 1px solid rgba(244,113,31,0.2);
  position: sticky; top: 70px; z-index: 900;
}
.shop-subnav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; gap: 0.25rem;
  overflow-x: auto; scrollbar-width: none;
}
.shop-subnav-inner::-webkit-scrollbar { display: none; }

.subnav-btn {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--grey-mid); background: transparent;
  border: none; border-bottom: 2px solid transparent;
  padding: 0.85rem 1rem; cursor: pointer; white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.subnav-btn:hover { color: var(--cream); }
.subnav-btn.active { color: var(--orange); border-bottom-color: var(--orange); }
.subnav-special { color: #f0c040; }
.subnav-special:hover, .subnav-special.active { color: #f0c040; border-bottom-color: #f0c040; }
.subnav-promo { color: var(--orange-bright); }
.subnav-promo:hover, .subnav-promo.active { color: var(--orange-bright); border-bottom-color: var(--orange-bright); }

.subnav-divider {
  width: 1px; height: 20px;
  background: rgba(244,113,31,0.3);
  margin: 0 0.5rem; flex-shrink: 0;
}

/* ── LAYOUT ── */
.shop-layout {
  max-width: 1200px; margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ── SIDEBAR ── */
.shop-sidebar {
  background: var(--cream);
  border: 1px solid rgba(244,113,31,0.15);
  padding: 1.5rem;
  position: sticky;
  top: calc(70px + 45px + 1rem);
}

.filter-block { margin-bottom: 1.5rem; }

.filter-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; letter-spacing: 3px;
  color: var(--black); margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(244,113,31,0.2);
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.price-list li label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--grey-light);
  transition: color 0.2s;
}
.price-list li label:hover { color: var(--white); }
.price-list input[type="radio"] {
  accent-color: var(--orange);
  cursor: pointer;
}

.size-list { display: flex; flex-direction: column; gap: 0.35rem; }
.size-chip {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; cursor: pointer; padding: 0.3rem 0;
  color: var(--grey); transition: color 0.2s;
}
.size-chip input[type=checkbox] { accent-color: var(--orange); cursor: pointer; }
.size-chip:hover { color: var(--black); }

.filter-reset {
  width: 100%; background: transparent;
  border: 1px solid rgba(244,113,31,0.3); color: var(--grey-mid);
  padding: 0.55rem; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-size: 0.75rem;
  letter-spacing: 1px; text-transform: uppercase;
  transition: all 0.2s; margin-top: 0.5rem;
}
.filter-reset:hover { border-color: var(--orange); color: var(--orange); }

/* ── MAIN / TOOLBAR ── */
.shop-main {}

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.shop-count {
  font-family: 'VT323', monospace; font-size: 1rem;
  color: var(--grey-mid); letter-spacing: 2px;
}
.shop-sort {
  background: var(--cream); border: 1px solid rgba(244,113,31,0.25);
  color: var(--black); padding: 0.4rem 0.75rem;
  font-family: 'Space Grotesk', sans-serif; font-size: 0.8rem;
  outline: none; cursor: pointer;
}

/* ── PRODUCT GRID ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--cream);
  border: 1px solid rgba(244,113,31,0.12);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(244,113,31,0.15);
  border-color: var(--orange);
}

.product-badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  font-family: 'VT323', monospace; font-size: 0.85rem;
  letter-spacing: 1px; padding: 0.15rem 0.5rem;
  z-index: 1;
}
.product-badge--promo    { background: var(--orange); color: var(--black); }
.product-badge--new      { background: var(--black); color: var(--orange); }
.product-badge--discount { background: #e53935; color: #fff; font-size: 0.9rem; font-weight: bold; }

.product-img {
  width: 100%; height: 180px; object-fit: cover;
  display: block; background: var(--cream-dark);
}
.product-img-placeholder {
  width: 100%; height: 180px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-dark);
  image-rendering: pixelated;
}
.product-img-placeholder canvas {
  width: 100%; height: 100%; display: block; image-rendering: pixelated;
}

.product-info { padding: 0.85rem; }
.product-category {
  font-family: 'VT323', monospace; font-size: 0.8rem;
  color: var(--orange); letter-spacing: 2px;
  text-transform: uppercase; display: block; margin-bottom: 0.25rem;
}
.product-name {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem;
  letter-spacing: 1px; color: var(--black); margin-bottom: 0.2rem;
  line-height: 1.2;
}
.product-size {
  font-size: 0.75rem; color: var(--grey-mid);
  margin-bottom: 0.5rem;
}
.product-price {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem;
  color: var(--orange); display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap;
}
.product-price--original {
  font-size: 1rem; color: var(--grey-mid);
  text-decoration: line-through; text-decoration-color: #e53935;
}
.product-price--sale {
  font-size: 1.3rem; color: #e53935;
}

/* ── ÉTATS ── */
.shop-loading, .shop-empty {
  grid-column: 1 / -1;
  font-family: 'VT323', monospace; font-size: 1.1rem;
  letter-spacing: 3px; color: var(--grey-mid);
  text-align: center; padding: 3rem 0;
}

/* ── FOOTER ── */
footer { background: var(--black); border-top: 1px solid rgba(244,113,31,0.2); padding: 2.5rem 2rem; text-align: center; }
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; color: var(--cream); letter-spacing: 3px; margin-bottom: 0.5rem; }
.footer-logo span { color: var(--orange); }
.footer-tagline { font-family: 'VT323', monospace; color: var(--grey-mid); font-size: 0.9rem; letter-spacing: 3px; margin-bottom: 1rem; }
.footer-bottom { font-size: 0.8rem; color: var(--grey-mid); }

@media (max-width: 768px) {
  .shop-layout {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }
  .shop-sidebar {
    position: static;
    padding: 1rem;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  .shop-toolbar { flex-wrap: wrap; gap: 0.5rem; }
}