/* ============================================ */
/* CATALOGUE E-COMMERCE Tadam                  */
/* ============================================ */

:root {
  --gold: #D4AF37;
  --gold-light: #F4D03F;
  --gold-dark: #B8941F;
  --orange: #FF8C42;
  --green: #10B981;
  --red: #EF4444;
  --bg: #FFFBF5;
  --surface: #FFFFFF;
  --border: #E8D5B5;
  --text: #1A1A1A;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-gold: 0 8px 30px rgba(212,175,55,0.25);
  --radius: 16px;
  --radius-lg: 24px;
}

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

html {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
}

/* Prevent nested scrolling */
.hero,
.filters,
.products,
section {
  overflow: visible;
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,251,245,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,175,55,0.15);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img { width: 44px; height: 44px; }

.logo span {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}

.nav a:hover, .nav a.active { color: var(--gold); }

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  border-radius: 2px;
}

.header-btns {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline {
  border: 2px solid var(--border);
  background: white;
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,175,55,0.4);
}

/* === HERO === */
.hero {
  padding: 120px 32px 60px;
  background: linear-gradient(180deg, var(--bg) 0%, #FFF5E6 100%);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(255,140,66,0.1));
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 550px;
}

/* === FILTERS === */
.filters {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 72px;
  z-index: 100;
}

.filters-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* === CATEGORY TABS === */
.category-tabs {
  display: flex;
  gap: 0;
  background: white;
  border-radius: 16px;
  padding: 6px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.category-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.category-tab i {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.category-tab:hover:not(.active) {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.category-tab:hover:not(.active) i {
  transform: scale(1.1);
}

.category-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.category-tab.active i {
  transform: scale(1.1);
}

.category-tab .tab-count {
  background: rgba(255,255,255,0.25);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.category-tab:not(.active) .tab-count {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-dark);
}

/* === PRODUCTS GRID === */
.products {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 32px 120px;
}

.products-count {
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.products-count strong {
  color: var(--text);
}

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

/* === PRODUCT CARD === */
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(212,175,55,0.15);
}

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

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-badge.popular {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: white;
}

.product-badge.new {
  background: linear-gradient(135deg, var(--green), #059669);
  color: white;
}

.product-badge.accessoire {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  color: white;
}

.product-img {
  height: 200px;
  background: linear-gradient(180deg, #F9FAFB 0%, #F3F4F6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.4s;
}

.product-info {
  padding: 20px;
}

.product-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-brand {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

.product-spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.product-spec i {
  color: var(--gold);
  font-size: 0.85rem;
}

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

.product-price {
  display: flex;
  flex-direction: column;
}

.product-price-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

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

.product-price-value span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.product-action {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.product-action:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-gold);
}

/* === MODAL DETAIL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 10;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #F3F4F6;
}

.modal-gallery {
  position: relative;
  height: 300px;
  min-height: 200px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #F9FAFB, #F3F4F6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-gallery img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.modal-gallery-nav {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

.modal-content {
  padding: 24px 32px 32px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-header {
  margin-bottom: 24px;
}

.modal-type {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.modal-brand {
  font-size: 1rem;
  color: var(--text-muted);
}

.modal-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.modal-spec {
  background: #F9FAFB;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.modal-spec i {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.modal-spec-value {
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
}

.modal-spec-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* === DURATION SELECTOR === */
.duration-section {
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(255,140,66,0.04));
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.duration-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.duration-title i {
  color: var(--gold);
}

.duration-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.duration-option {
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.duration-option:hover {
  border-color: var(--gold);
}

.duration-option.selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(255,140,66,0.05));
}

.duration-option.selected .duration-months {
  color: var(--gold);
}

.duration-months {
  font-size: 1.3rem;
  font-weight: 800;
  display: block;
}

.duration-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.duration-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.duration-price span {
  font-size: 0.75rem;
  font-weight: 500;
}

.duration-save {
  font-size: 0.7rem;
  color: var(--green);
  font-weight: 600;
  margin-top: 4px;
}

/* === ACCESSOIRE (ACHAT) === */
.purchase-section {
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(109,40,217,0.04));
  border: 2px solid #DDD6FE;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.purchase-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6D28D9;
}

.purchase-price-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.purchase-price-value {
  font-size: 2rem;
  font-weight: 800;
}

.purchase-price-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* === MODAL FOOTER === */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  gap: 20px;
  flex-wrap: wrap;
  background: white;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
}

.modal-pricing {
  display: flex;
  flex-direction: column;
}

.modal-pricing-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-pricing-value {
  font-size: 1.8rem;
  font-weight: 800;
}

.modal-pricing-value span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.modal-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* === FLOATING CART === */
.cart-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.cart-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(212,175,55,0.4);
  transition: all 0.3s;
  position: relative;
}

.cart-btn:hover {
  transform: scale(1.1);
}

.cart-btn i {
  font-size: 1.5rem;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  background: var(--red);
  border-radius: 50%;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s;
}

.cart-count.visible {
  opacity: 1;
  transform: scale(1);
}

/* === CART PANEL === */
.cart-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: white;
  z-index: 2500;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}

.cart-panel.open {
  right: 0;
}

.cart-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2400;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.cart-panel-overlay.open {
  opacity: 1;
  visibility: visible;
}

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

.cart-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-header h2 i {
  color: var(--gold);
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F3F4F6;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-close:hover {
  background: #E5E7EB;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.cart-empty i {
  font-size: 3rem;
  color: var(--border);
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: #F9FAFB;
  border-radius: 14px;
  margin-bottom: 12px;
  position: relative;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-img img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-item-price {
  font-weight: 700;
  color: var(--gold-dark);
}

.cart-item-price span {
  font-weight: 500;
  color: var(--text-muted);
}

.cart-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

.cart-item-remove:hover {
  background: var(--red);
  color: white;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  background: #FAFAFA;
}

.cart-summary {
  margin-bottom: 20px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.cart-summary-row.highlight {
  padding-top: 12px;
  border-top: 2px dashed var(--border);
  margin-top: 12px;
}

.cart-summary-row.highlight .cart-summary-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-dark);
}

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

.cart-summary-value {
  font-weight: 700;
}

.cart-checkout {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
}

.cart-checkout:hover {
  box-shadow: var(--shadow-gold);
}

/* === DETAIL PANEL (Slide from Left) === */
.detail-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.detail-panel-overlay.open {
  opacity: 1;
  visibility: visible;
}

.detail-panel {
  position: fixed;
  top: 0;
  left: -520px;
  width: 500px;
  max-width: 90vw;
  height: 100vh;
  background: white;
  z-index: 2100;
  box-shadow: 10px 0 50px rgba(0,0,0,0.2);
  transition: left 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detail-panel.open {
  left: 0;
}

.detail-panel-header {
  position: relative;
  flex-shrink: 0;
}

.detail-panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 10;
  transition: all 0.2s;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.detail-panel-close:hover {
  background: #F3F4F6;
  transform: scale(1.1);
}

.detail-panel-gallery {
  position: relative;
  height: 280px;
  background: linear-gradient(180deg, #F9FAFB, #F3F4F6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-panel-gallery img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
  transition: transform 0.3s;
}

.detail-panel-gallery:hover img {
  transform: scale(1.05);
}

.detail-gallery-thumbs {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.detail-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: white;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: all 0.2s;
}

.detail-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-thumb.active,
.detail-thumb:hover {
  border-color: var(--gold);
}

.detail-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.detail-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(255,140,66,0.1));
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.detail-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.2;
}

.detail-brand {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.detail-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.detail-specs-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-specs-title i {
  color: var(--gold);
}

.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.detail-spec {
  background: #F9FAFB;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
}

.detail-spec i {
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.detail-spec-value {
  font-size: 1rem;
  font-weight: 700;
  display: block;
}

.detail-spec-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.detail-features {
  margin-bottom: 24px;
}

.detail-features-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-features-title i {
  color: var(--green);
}

.detail-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.04));
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.detail-feature i {
  color: var(--green);
  font-size: 1rem;
}

/* Notice casque obligatoire */
.detail-features-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  font-size: 0.85rem;
  color: #1E40AF;
}

.detail-features-notice i {
  color: #3B82F6;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Duration/Price selector in panel */
.detail-pricing-section {
  background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(255,140,66,0.05));
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.detail-pricing-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-pricing-title i {
  color: var(--gold);
}

.detail-duration-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.detail-duration-opt {
  background: white;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.detail-duration-opt:hover {
  border-color: var(--gold);
}

.detail-duration-opt.selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(255,140,66,0.05));
}

.detail-duration-opt .dur-months {
  font-size: 1.2rem;
  font-weight: 800;
  display: block;
}

.detail-duration-opt.selected .dur-months {
  color: var(--gold);
}

.detail-duration-opt .dur-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.detail-duration-opt .dur-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-top: 4px;
}

.detail-duration-opt .dur-save {
  font-size: 0.65rem;
  color: var(--green);
  font-weight: 600;
}

.detail-panel-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.detail-price-display {
  flex: 1;
}

.detail-price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.detail-price-value {
  font-size: 1.5rem;
  font-weight: 800;
}

.detail-price-value span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.detail-add-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.detail-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* === PRODUCT CARD QUANTITY CONTROLS === */
.product-qty-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.qty-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,175,55,0.08);
}

.qty-btn.minus:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(239,68,68,0.08);
}

.qty-btn.plus {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: var(--gold);
  color: white;
}

.qty-btn.plus:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-gold);
}

.qty-display {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

/* === DURATION PICKER POPUP === */
.duration-picker {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 12px;
  min-width: 200px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  border: 1px solid var(--border);
}

.duration-picker::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 14px;
  height: 14px;
  background: white;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}

.duration-picker.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.duration-picker-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.duration-picker-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.duration-picker-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: #F9FAFB;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.duration-picker-opt:hover {
  background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(255,140,66,0.05));
  border-color: var(--gold);
}

.duration-picker-opt .dpo-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.duration-picker-opt .dpo-months {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  min-width: 50px;
}

.duration-picker-opt .dpo-save {
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  background: var(--green);
  padding: 2px 6px;
  border-radius: 4px;
}

.duration-picker-opt .dpo-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.duration-picker-opt .dpo-price span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Card clickable area styling */
.product-card {
  cursor: pointer;
}

.product-card .product-footer {
  position: relative;
}

.product-card .product-qty-controls {
  position: relative;
  z-index: 5;
}

/* === LOADING === */
.loading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.skeleton {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skeleton-img {
  height: 200px;
  background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-content {
  padding: 20px;
}

.skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  margin-bottom: 10px;
}

.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header-inner { padding: 12px 16px; }
  .nav { display: none; }
  .hero { padding: 100px 16px 40px; }
  .filters-inner { padding: 12px 16px; }
  .category-tabs {
    width: 100%;
    border-radius: 12px;
    padding: 4px;
  }
  .category-tab {
    padding: 12px 16px;
    font-size: 0.9rem;
    gap: 8px;
  }
  .category-tab i { font-size: 1rem; }
  .category-tab .tab-count {
    padding: 2px 8px;
    font-size: 0.75rem;
  }
  .products { padding: 24px 16px 100px; }
  .products-grid { grid-template-columns: 1fr; }
  .duration-options { grid-template-columns: repeat(2, 1fr); }
  .modal {
    border-radius: var(--radius);
    max-height: 95vh;
  }
  .modal-gallery { height: 200px; min-height: 150px; }
  .modal-content { padding: 16px; }
  .modal-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 16px;
  }
  .modal-footer .modal-pricing {
    text-align: center;
  }
  .cart-panel { width: 100%; right: -100%; }
  .cart-float { bottom: 16px; right: 16px; }
  .cart-btn { width: 56px; height: 56px; }

  /* Detail panel responsive */
  .detail-panel { width: 100%; left: -100%; }
  .detail-panel-gallery { height: 220px; }
  .detail-panel-content { padding: 20px; }
  .detail-specs-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .detail-duration-options { grid-template-columns: 1fr 1fr; }
  .detail-panel-footer {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }
  .detail-panel-footer .detail-price-display {
    text-align: center;
    width: 100%;
  }
  .detail-add-btn {
    width: 100%;
    justify-content: center;
  }
}
