/* ============================================================
   OPTIC OUSSAMA — Main Stylesheet
   ============================================================ */

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

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #8B6914;
  --gold-bg: #FDF6E3;
  --gold-border: #E8D5A3;
  --white: #FFFFFF;
  --cream: #FAFAF8;
  --text: #1C1C1C;
  --text-light: #444444;
  --text-muted: #888888;
  --border: #EBEBEB;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.07);
  --shadow: 0 6px 28px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 56px rgba(0,0,0,0.14);
  --radius: 18px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold-text { color: var(--gold); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 12px 48px;
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--text);
}

.nav-logo strong {
  color: var(--gold);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem !important;
}

.nav-cta:hover { background: var(--gold-dark); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: var(--transition);
  border: 2px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ===== SECTION COMMON ===== */
section { padding: 100px 0; }

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

.section-tag {
  display: inline-block;
  background: var(--gold-bg);
  color: var(--gold-dark);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid var(--gold-border);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 90px;
  background: linear-gradient(135deg, #FEFCF7 0%, #FDF6E3 50%, #FAF0D7 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  color: var(--gold-dark);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--gold);
  display: block;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}

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

.hero-image-wrapper {
  position: relative;
}

.hero-img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.hero-img-placeholder {
  width: 100%;
  height: 560px;
  border-radius: 24px;
  background: linear-gradient(135deg, #D4A843 0%, #8B6914 40%, #C9A84C 70%, #F5D98B 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-img-placeholder::before {
  content: '👓';
  font-size: 4rem;
}

.hero-badge {
  position: absolute;
  bottom: 28px; left: -24px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.hero-badge .badge-stars { font-size: 1rem; }
.hero-badge .badge-score {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.hero-badge .badge-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: bounce 2s infinite;
  cursor: pointer;
}

.hero-scroll-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== COLLECTION ===== */
.collection-section {
  background: var(--white);
}

.collection-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.collection-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

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

.card-image-wrapper {
  position: relative;
  height: 420px;
  overflow: hidden;
}

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

.collection-card:hover .card-img { transform: scale(1.06); }

/* Gradient placeholders for cards */
.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  transition: transform 0.5s ease;
}

.collection-card:hover .card-img-placeholder { transform: scale(1.06); }

.card-img-femme { background: linear-gradient(135deg, #F8E1E7 0%, #F4B8CB 40%, #E891A8 100%); }
.card-img-homme { background: linear-gradient(135deg, #E3ECF8 0%, #B8D0F4 40%, #7AABEB 100%); }
.card-img-enfants { background: linear-gradient(135deg, #FFF3D6 0%, #FFD98B 40%, #FFBA42 100%); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

.collection-card:hover .card-overlay { opacity: 1; }

.overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  transform: translateY(12px);
}

.collection-card:hover .overlay-btn { transform: translateY(0); }
.overlay-btn:hover { background: var(--gold); color: var(--white); }

.overlay-btn:nth-child(2) { transition-delay: 0.05s; }

.card-info {
  padding: 20px 24px 24px;
}

.card-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

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

.card-info .card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 12px;
  transition: var(--transition);
}

.collection-card:hover .card-arrow { gap: 10px; }

/* ===== WHY CHOOSE US ===== */
.why-section {
  background: var(--cream);
}

.why-photos {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.why-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.why-photo:hover img { transform: scale(1.06); }

/* ===== AVIS CLIENTS ===== */
.avis-section {
  background: linear-gradient(135deg, #FDF6E3 0%, #FAFAF8 100%);
}

.avis-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.avis-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.avis-card.featured {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
  transform: scale(1.04);
}

.avis-card.featured:hover { transform: scale(1.04) translateY(-4px); }

.stars {
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.avis-text {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: 24px;
  font-style: italic;
}

.avis-card.featured .avis-text { color: rgba(255,255,255,0.8); }

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

.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.avis-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

.avis-card.featured .avis-author strong { color: var(--white); }

.avis-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.avis-card.featured .avis-author span { color: rgba(255,255,255,0.5); }

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  color: var(--white);
  padding: 0;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 48px 48px;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 56px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.footer-brand h3 strong { color: var(--gold); }

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 340px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}

.social-btn:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  transform: translateX(4px);
}

.footer-hours h4,
.footer-qr h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--gold);
}

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

.hour-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

.hour-time { font-weight: 600; color: var(--gold-light); }

.open-badge {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(72,199,142,0.15);
  color: #48C78E;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(72,199,142,0.3);
}

.footer-qr #qrcode {
  background: var(--white);
  padding: 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 10px;
}

.footer-qr #qrcode canvas,
.footer-qr #qrcode img { border-radius: 4px; }

.qr-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 48px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ===== PRODUCTS PAGE ===== */
.products-page {
  padding-top: 90px;
  min-height: 100vh;
  background: var(--cream);
}

.products-header {
  background: linear-gradient(135deg, #FDF6E3 0%, #FAF0D7 100%);
  padding: 56px 48px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.products-header .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.products-header .breadcrumb a { color: var(--gold); font-weight: 500; }
.products-header .breadcrumb a:hover { text-decoration: underline; }

.products-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.products-header p { font-size: 0.95rem; color: var(--text-muted); }

.type-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--white); }

.products-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

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

.products-count span { font-weight: 600; color: var(--text); }

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

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

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

.product-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

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

.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform 0.5s ease;
}

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

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card-info {
  padding: 18px 20px 20px;
}

.product-card-brand {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.product-card-colors {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.color-dot {
  font-size: 0.72rem;
  background: var(--cream);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.product-price span { font-size: 0.8rem; font-weight: 400; }

.product-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-bg);
  color: var(--gold-dark);
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--gold-border);
  transition: var(--transition);
}

.product-view-btn:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

.product-commander-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--white);
  border: none;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.product-commander-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail-page {
  padding-top: 90px;
  min-height: 100vh;
  background: var(--cream);
}

.product-detail-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.product-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.product-detail-breadcrumb a { color: var(--gold); font-weight: 500; }
.product-detail-breadcrumb a:hover { text-decoration: underline; }

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

.product-detail-image {
  position: sticky;
  top: 110px;
}

.product-detail-img-main {
  height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-img-main img { height: 100%; object-fit: cover; }

.detail-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  border-radius: var(--radius);
}

.product-detail-info .brand {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.product-detail-info h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.product-detail-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-bg);
  color: var(--gold-dark);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--gold-border);
  margin-bottom: 20px;
}

.product-detail-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 24px;
}

.product-detail-price .currency { font-size: 2rem; }

.product-detail-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.product-detail-specs { margin-bottom: 28px; }

.detail-spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.detail-spec-label { color: var(--text-muted); font-weight: 500; }
.detail-spec-value { font-weight: 600; color: var(--text); }

.product-detail-colors { margin-bottom: 28px; }

.product-detail-colors h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.colors-list { display: flex; gap: 8px; flex-wrap: wrap; }

.color-tag {
  font-size: 0.82rem;
  background: var(--cream);
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  color: var(--text-light);
  border: 1px solid var(--border);
  font-weight: 500;
}

/* Price + variants row */
.price-variants-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.price-variants-row .product-detail-price {
  margin-bottom: 0;
  flex-shrink: 0;
}

.price-variants-row .variants-list {
  flex-wrap: wrap;
}

/* Variant color buttons */
.product-variants { margin-bottom: 0; }

.product-variants h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.variants-list { display: flex; gap: 12px; flex-wrap: wrap; }

.variant-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
  min-width: 78px;
}

.variant-btn:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(201,168,76,0.18);
}

.variant-btn.active {
  border-color: var(--gold);
  background: var(--cream);
}

.variant-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.10);
  display: block;
  flex-shrink: 0;
}

.variant-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

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

.btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  text-align: center;
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}

.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.35); }

.btn-order {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--white);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-order:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.35); }

.btn-visit {
  background: var(--gold-bg);
  color: var(--gold-dark);
  border: 2px solid var(--gold-border);
}

.btn-visit:hover { background: var(--gold); color: var(--white); border-color: var(--gold); transform: translateY(-2px); }

/* ===== GALLERY THUMBS ===== */
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-thumb:hover { border-color: var(--gold); }
.gallery-thumb:hover img { transform: scale(1.08); }
.gallery-thumb.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,168,76,0.3); }

/* ===== LIGHTBOX ===== */
.product-detail-img-main { cursor: zoom-in; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-img-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  overflow: hidden;
  cursor: zoom-in;
  touch-action: none;
}
.lightbox-img-wrap.zoomed { cursor: zoom-out; }
.lightbox-img-wrap img {
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transform-origin: center center;
  transition: transform 0.25s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-hint {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  pointer-events: none;
}

/* ===== NO RESULTS ===== */
.no-results {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}

.no-results .icon { font-size: 3rem; margin-bottom: 16px; }
.no-results h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--text); }

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 13px 20px 13px 16px;
  border-radius: 50px;
  box-shadow: 0 6px 28px rgba(37,211,102,0.45);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: wpulse 2.5s infinite;
}

.whatsapp-float:hover {
  background: #1ebe5a;
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(37,211,102,0.55);
  animation: none;
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@keyframes wpulse {
  0%, 100% { box-shadow: 0 6px 28px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 6px 28px rgba(37,211,102,0.45), 0 0 0 8px rgba(37,211,102,0.12); }
}

@media (max-width: 768px) {
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 14px; border-radius: 50%; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}

.mobile-menu a:hover { color: var(--gold); }

.mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

/* ===== TOUCH / GLOBAL MOBILE ===== */
button, a, .filter-btn, .variant-btn,
.product-commander-btn, .btn-contact,
.btn-primary, .btn-secondary, .overlay-btn {
  touch-action: manipulation;
}

.product-commander-btn { min-height: 44px; }

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

/* ---- Tablette large (≤ 1024px) ---- */
@media (max-width: 1024px) {
  .navbar { padding: 14px 32px; }
  .navbar.scrolled { padding: 12px 32px; }

  .hero-inner {
    padding: 0 32px;
    gap: 40px;
  }

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

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

  .avis-card.featured { transform: none; }
  .avis-card.featured:hover { transform: translateY(-4px); }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 56px 32px 40px;
  }

  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding: 20px 32px; }

  .product-detail-grid { gap: 40px; }
  .product-detail-img-main { height: 400px; }
}

/* ---- Tablette (≤ 900px) ---- */
@media (max-width: 900px) {
  .hero-inner { gap: 28px; }

  .hero-img,
  .hero-img-placeholder { height: 440px; }

  .collection-grid { gap: 16px; }

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

  .product-card-img { height: 200px; }

  /* Product detail: colonnes moins larges */
  .product-detail-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .product-detail-img-main { height: 380px; }
  .product-detail-info h1 { font-size: 1.9rem; }
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .navbar.scrolled { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  /* Hero — image en arrière-plan */
  .hero { overflow: hidden; padding-top: 0; }

  .hero::before {
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(253,246,227,0.93) 0%,
      rgba(250,240,215,0.85) 50%,
      rgba(253,246,227,0.65) 100%
    );
    z-index: 1;
  }

  .hero::after { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 0;
    margin: 0;
    text-align: center;
    gap: 0;
    position: relative;
    z-index: 2;
    min-height: 100vh;
    align-items: flex-start;
  }

  .hero-image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }

  .hero-img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-text {
    position: relative;
    z-index: 2;
    padding: 100px 20px 40px;
  }

  .hero-desc { display: none; }
  .hero-buttons { display: none; }
  .hero-badge { display: none; }
  .hero-scroll { display: none; }

  section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; padding: 0 20px; }

  .collection-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 16px;
  }

  .card-image-wrapper { height: 260px; }
  .card-overlay { opacity: 1; }
  .overlay-btn { transform: translateY(0); }

  .why-photos {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 16px;
  }

  .avis-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 16px;
  }

  .avis-card.featured { transform: none; }
  .avis-card.featured:hover { transform: translateY(-4px); }

  .footer-main {
    grid-template-columns: 1fr;
    padding: 44px 20px 32px;
    gap: 32px;
  }

  .footer-bottom { padding: 18px 20px; }

  /* Products page */
  .products-header { padding: 36px 20px 28px; }

  .type-filters {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .filter-btn { padding: 8px 16px; font-size: 0.82rem; }

  .products-content { padding: 32px 16px 60px; }

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

  .product-card-img { height: 180px; }
  .product-card-info { padding: 14px 14px 16px; }
  .product-card-name { font-size: 0.95rem; }
  .product-price { font-size: 1.05rem; }
  .product-view-btn { padding: 7px 12px; font-size: 0.78rem; }

  /* Product detail page */
  .product-detail-inner { padding: 28px 16px 60px; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-detail-image { position: static; }
  .product-detail-img-main { height: 340px; }
  .product-detail-info h1 { font-size: 1.8rem; }
  .product-detail-price { font-size: 1.7rem; }

  .gallery-thumbs {
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .gallery-thumbs::-webkit-scrollbar { display: none; }
  .gallery-thumb { width: 62px; height: 62px; flex-shrink: 0; }

  .btn-contact { padding: 14px; font-size: 0.9rem; }

  /* Price + variants: stack vertically on mobile */
  .price-variants-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .price-variants-row .product-detail-price { margin-bottom: 0; }

  /* Variant buttons: plus grands pour le toucher */
  .variant-btn { min-height: 52px; padding: 10px 14px; }

  /* Product detail top padding (navbar réduite) */
  .product-detail-page { padding-top: 72px; }
}

/* ---- Petit mobile (≤ 480px) ---- */
@media (max-width: 480px) {
  .nav-logo { font-size: 1.15rem; letter-spacing: 1px; }

  .hero-title { font-size: 2.2rem; }
  .hero-tag { font-size: 0.75rem; padding: 6px 14px; }

  .btn-primary, .btn-secondary { padding: 12px 22px; font-size: 0.88rem; }

  .section-header h2 { font-size: 1.7rem; }

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

  .product-card-img { height: 160px; }
  .product-card-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .product-view-btn { width: 100%; justify-content: center; }

  .product-detail-img-main { height: 280px; }
  .product-detail-info h1 { font-size: 1.55rem; }
  .product-detail-breadcrumb { flex-wrap: wrap; gap: 4px; font-size: 0.75rem; }

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

  .type-filters { gap: 6px; }
  .filter-btn { padding: 7px 12px; font-size: 0.78rem; }

  .footer-brand h3 { font-size: 1.3rem; }
  .mobile-menu a { font-size: 1.5rem; }

  /* Variant buttons en ligne (icône + texte côte à côte) */
  .variants-list { gap: 8px; }
  .variant-btn {
    flex-direction: row;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
    padding: 8px 14px;
  }
  .variant-swatch { width: 22px; height: 22px; }
  .variant-name { font-size: 0.78rem; }

  /* Product card: image moins haute */
  .product-card-name { font-size: 0.9rem; }
}

/* ===== ORDER MODAL ===== */
.order-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 20, 20, 0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.order-modal-overlay.open { display: flex; }

.order-modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: orderZoomIn 0.22s ease;
}
@keyframes orderZoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.order-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}
.order-modal-close:hover { color: var(--text); }

.order-modal h3 {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 6px;
}
.order-modal-product {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.order-form-group { margin-bottom: 16px; }
.order-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.order-form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
}
.order-form-group input:focus {
  outline: none;
  border-color: var(--gold);
}

.order-form-error {
  color: #DC2626;
  font-size: 0.85rem;
  margin-bottom: 12px;
  min-height: 1em;
}

.order-submit-btn {
  display: block;
  width: 100%;
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 15px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.order-submit-btn:hover:not(:disabled) { background: var(--gold-dark); transform: translateY(-2px); }
.order-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.order-success { text-align: center; padding-top: 8px; }
.order-success-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--gold-bg);
  color: var(--gold-dark);
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.order-success p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin-bottom: 24px; }

@media (max-width: 480px) {
  .order-modal { padding: 28px 22px; }
}

/* ---- Très petit mobile (≤ 360px) ---- */
@media (max-width: 360px) {
  .hero-title { font-size: 1.9rem; }

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

  .product-detail-img-main { height: 240px; }
  .product-detail-info h1 { font-size: 1.4rem; }

  .filter-btn { padding: 6px 10px; font-size: 0.75rem; }

  /* Variant buttons encore plus compacts */
  .variant-btn { padding: 7px 10px; gap: 6px; }
  .variant-swatch { width: 18px; height: 18px; }
  .variant-name { font-size: 0.72rem; }

  /* Commander btn plein écran */
  .product-commander-btn { font-size: 0.82rem; }
}
