/* ============================================================
   COTON BLANC — Design System
   Luxe linge de maison · Marrakech & Essaouira
   ============================================================ */

/* ---------- FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ---------- TOKENS ---------- */
:root {
  --gold:        #C4A46B;
  --gold-light:  #E8D5B0;
  --gold-dark:   #A07E4A;
  --cream:       #FAF7F2;
  --warm-white:  #F5F0E8;
  --charcoal:    #2A2A2A;
  --text:        #3A3A3A;
  --muted:       #888888;
  --border:      #E8E0D4;
  --white:       #FFFFFF;
  --green-wa:    #25D366;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;

  --radius:      4px;
  --radius-lg:   12px;
  --shadow:      0 2px 20px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.12);

  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; color: var(--charcoal); }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; }
p { font-size: 1rem; line-height: 1.75; color: var(--text); }

.label-caps {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- UTILITIES ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

.section-pad { padding: 96px 0; }
@media (max-width: 768px) { .section-pad { padding: 64px 0; } }

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.bg-cream { background: var(--cream); }
.bg-warm { background: var(--warm-white); }
.bg-charcoal { background: var(--charcoal); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); }

.btn-outline {
  border: 1.5px solid var(--charcoal);
  color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

.btn-outline-gold {
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--white); }

.btn-whatsapp {
  background: var(--green-wa);
  color: var(--white);
  font-size: 0.9rem;
  padding: 16px 36px;
}
.btn-whatsapp:hover { background: #1DA851; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,211,102,0.35); }
.btn-whatsapp svg { width: 20px; height: 20px; fill: white; flex-shrink: 0; }

.btn-ghost {
  color: var(--gold);
  padding: 12px 0;
  border-bottom: 1px solid var(--gold);
  border-radius: 0;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}
.btn-ghost:hover { color: var(--gold-dark); border-color: var(--gold-dark); }

.btn-icon { padding: 12px; border-radius: 50%; }
.btn-icon:hover { background: var(--warm-white); }

/* ---------- NAVIGATION ---------- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 20px 0;
}
#nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  padding: 12px 0;
}
#nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 52px; transition: var(--transition); }
#nav.scrolled .nav-logo img { height: 44px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

#nav.hero-nav .nav-links a { color: var(--white); }
#nav.hero-nav .nav-links a:hover { color: var(--gold-light); }
#nav.hero-nav .nav-actions .btn-outline-gold { border-color: rgba(255,255,255,0.6); color: var(--white); }
#nav.hero-nav .nav-actions .btn-outline-gold:hover { background: var(--gold); border-color: var(--gold); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--charcoal); transition: var(--transition); }
#nav.hero-nav .hamburger span { background: white; }

@media (max-width: 900px) {
  .nav-links { display: none; position: fixed; inset: 0; background: white; flex-direction: column; justify-content: center; align-items: center; gap: 32px; z-index: 200; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.3rem; color: var(--charcoal) !important; }
  .hamburger { display: flex; z-index: 300; }
  .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://cotonblanc.ma/wp-content/uploads/2025/06/4731387a54590325bd70732b4571a9e4-2.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.6s ease;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,25,20,0.75) 0%, rgba(30,25,20,0.2) 50%, rgba(30,25,20,0.0) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
  max-width: 720px;
}
.hero-content .label-caps { color: var(--gold-light); margin-bottom: 20px; }
.hero-content h1 { color: white; font-weight: 400; margin-bottom: 24px; }
.hero-content h1 em { font-style: italic; color: var(--gold-light); }
.hero-content p { color: rgba(255,255,255,0.82); font-size: 1.05rem; margin-bottom: 36px; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.3);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(0.5); opacity: 0.2; }
}

/* ---------- SECTION HEADER ---------- */
.section-header { margin-bottom: 56px; }
.section-header.text-center { text-align: center; }
.section-header .label-caps { display: block; margin-bottom: 12px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--muted); max-width: 520px; }
.section-header.text-center p { margin: 0 auto; }
.section-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 20px 0;
}
.section-header.text-center .section-divider { margin: 20px auto; }

/* ---------- INTRO BAND ---------- */
.intro-band {
  background: var(--charcoal);
  padding: 64px 0;
}
.intro-band .grid-3 { align-items: center; }
.intro-stat { text-align: center; }
.intro-stat .number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.intro-stat p { color: rgba(255,255,255,0.65); font-size: 0.85rem; }
.intro-stat-divider { width: 1px; height: 60px; background: rgba(255,255,255,0.12); justify-self: center; }
@media (max-width: 768px) { .intro-stat-divider { display: none; } }

/* ---------- CATEGORIES ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
@media (max-width: 1024px) { .categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .categories-grid { grid-template-columns: 1fr 1fr; } }

.category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  display: block;
}
.category-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.category-card:hover img { transform: scale(1.06); }
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,15,10,0.75) 0%, transparent 60%);
  transition: var(--transition);
}
.category-card:hover .category-card-overlay { background: linear-gradient(to top, rgba(20,15,10,0.85) 0%, transparent 60%); }
.category-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}
.category-card-label .label-caps { display: block; margin-bottom: 6px; color: var(--gold-light); font-size: 0.62rem; }
.category-card-label h3 { color: white; font-size: 1.3rem; font-weight: 400; }
.category-card-label .cat-arrow {
  display: inline-block;
  margin-top: 8px;
  color: var(--gold-light);
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition);
  font-size: 0.8rem;
}
.category-card:hover .cat-arrow { opacity: 1; transform: translateX(0); }

/* ---------- CATEGORY CARD (placeholder bg) ---------- */
.cat-bg-1 { background: linear-gradient(135deg, #b8a99a 0%, #8c7065 100%); }
.cat-bg-2 { background: linear-gradient(135deg, #a8c0b8 0%, #6b8f85 100%); }
.cat-bg-3 { background: linear-gradient(135deg, #c9b99a 0%, #9e8565 100%); }
.cat-bg-4 { background: linear-gradient(135deg, #b5b5c5 0%, #8080a0 100%); }
.cat-bg-5 { background: linear-gradient(135deg, #c8a89a 0%, #9e7060 100%); }
.cat-bg-6 { background: linear-gradient(135deg, #a8b8a8 0%, #708070 100%); }
.cat-bg-7 { background: linear-gradient(135deg, #c8c0a8 0%, #9e9070 100%); }
.cat-bg-8 { background: linear-gradient(135deg, #b8c0c8 0%, #809098 100%); }

.cat-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 1;
}

/* ---------- PRODUCT CARDS ---------- */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--warm-white);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}
.product-badge.new { background: var(--charcoal); }
.product-badge.pro { background: #2C5F8A; }

.product-card-actions {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}
.product-card:hover .product-card-actions { opacity: 1; transform: translateY(0); }
.product-card-actions .btn-icon {
  background: white;
  box-shadow: var(--shadow);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.product-card-info { padding: 20px; }
.product-card-cat { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.product-card-name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500; color: var(--charcoal); margin-bottom: 8px; line-height: 1.3; }
.product-card-price { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500; color: var(--gold); }
.product-card-price .currency { font-size: 0.8rem; font-weight: 400; }

.product-card-swatches {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.swatch:hover { border-color: var(--gold); }
.swatch-white { background: #F0EDE8; border: 1.5px solid #ddd; }
.swatch-cream { background: #E8D8B0; }
.swatch-gray  { background: #C0BCC0; }
.swatch-navy  { background: #2A3550; }
.swatch-terra { background: #B05A3A; }
.swatch-sage  { background: #7A9080; }
.swatch-sand  { background: #C8A870; }
.swatch-indigo{ background: #3A3A7A; }

/* ---------- SERVICES SECTION ---------- */
.service-card {
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.service-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  color: var(--gold);
}
.service-card h4 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 12px; }
.service-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

/* ---------- TESTIMONIALS ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold-light);
  margin-bottom: -8px;
}
.testimonial-card p { font-size: 0.95rem; color: var(--text); line-height: 1.8; font-style: italic; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 500;
}
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--charcoal); }
.testimonial-author span { font-size: 0.78rem; color: var(--muted); }
.stars { color: var(--gold); font-size: 0.75rem; margin-bottom: 4px; }

/* ---------- WHATSAPP CTA SECTION ---------- */
.wa-cta-section {
  background: linear-gradient(135deg, #1A1A2A 0%, #2A2A1A 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.wa-cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(196,164,107,0.12) 0%, transparent 70%);
}
.wa-cta-section h2 { color: white; margin-bottom: 16px; }
.wa-cta-section p { color: rgba(255,255,255,0.65); max-width: 480px; margin: 0 auto 36px; }
.wa-cta-section .label-caps { color: var(--gold-light); margin-bottom: 16px; display: block; }

/* ---------- FLOATING WA BUTTON ---------- */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  width: 60px;
  height: 60px;
  background: var(--green-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: waPulse 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); animation: none; }
.wa-float svg { width: 28px; height: 28px; fill: white; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.7); }
}
.wa-float-label {
  position: absolute;
  right: 72px;
  background: white;
  color: var(--charcoal);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  pointer-events: none;
}
.wa-float:hover .wa-float-label { opacity: 1; transform: translateX(0); }

/* ---------- ORDER MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,15,10,0.6);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 1.4rem; }
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--charcoal); }

.modal-body { padding: 28px 32px; }
.modal-product-summary {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 28px;
}
.modal-product-summary img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
}
.modal-product-summary .name { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 500; }
.modal-product-summary .price { color: var(--gold); font-family: var(--font-serif); }

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: white;
  transition: border-color var(--transition);
  appearance: none;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
}
textarea { resize: vertical; min-height: 80px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.form-hint { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.form-error { color: #C44; font-size: 0.78rem; margin-top: 6px; display: none; }
.form-group.has-error input,
.form-group.has-error select { border-color: #C44; }
.form-group.has-error .form-error { display: block; }

.modal-footer {
  padding: 20px 32px 28px;
  border-top: 1px solid var(--border);
}
.modal-footer .btn { width: 100%; justify-content: center; font-size: 0.95rem; }

/* ---------- STEPS INDICATOR ---------- */
.order-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
}
.step::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  right: -50%;
  height: 1px;
  background: var(--border);
}
.step:last-child::after { display: none; }
.step.active::after { background: var(--gold); }
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 auto 6px;
  position: relative;
  z-index: 1;
}
.step.active .step-num { background: var(--gold); border-color: var(--gold); color: white; }
.step.done .step-num { background: var(--charcoal); border-color: var(--charcoal); color: white; }
.step-label { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.step.active .step-label { color: var(--gold); }

/* ---------- PRODUCT DETAIL PAGE ---------- */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .product-detail-grid { grid-template-columns: 1fr; gap: 40px; } }

.product-gallery .main-image {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--warm-white);
  margin-bottom: 12px;
}
.product-gallery .main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .thumb-row { display: flex; gap: 8px; }
.product-gallery .thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.product-gallery .thumb:hover,
.product-gallery .thumb.active { border-color: var(--gold); }
.product-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info-header .label-caps { margin-bottom: 8px; }
.product-info-header h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px; }
.product-price-block { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.product-price-block .price { font-family: var(--font-serif); font-size: 2rem; color: var(--gold); }
.product-price-block .price-note { font-size: 0.8rem; color: var(--muted); }

.product-options { margin-bottom: 28px; }
.option-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.option-label span { font-weight: 400; color: var(--muted); margin-left: 8px; }

.color-options { display: flex; flex-wrap: wrap; gap: 10px; }
.color-btn {
  padding: 7px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}
.color-btn:hover { border-color: var(--gold); color: var(--gold); }
.color-btn.selected { border-color: var(--gold); background: var(--gold); color: white; }

.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}
.size-btn:hover { border-color: var(--gold); }
.size-btn.selected { border-color: var(--gold); background: var(--gold); color: white; }

.qty-control { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--border); border-radius: var(--radius); width: fit-content; }
.qty-btn {
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--charcoal);
  transition: var(--transition);
}
.qty-btn:hover { color: var(--gold); background: var(--warm-white); }
.qty-value { width: 48px; text-align: center; font-size: 1rem; font-weight: 500; }

.product-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.product-cta-row .btn-whatsapp { flex: 1; min-width: 200px; justify-content: center; }
.product-cta-row .btn-outline { padding: 16px 20px; }

.product-features { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 28px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.feature-icon { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.feature-item p { font-size: 0.9rem; color: var(--text); line-height: 1.5; }

.product-tabs { margin-top: 40px; }
.tab-buttons { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.tab-btn {
  padding: 12px 24px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
  cursor: pointer;
}
.tab-btn.active { color: var(--charcoal); border-bottom-color: var(--gold); }
.tab-content { display: none; font-size: 0.92rem; line-height: 1.8; color: var(--text); }
.tab-content.active { display: block; }
.tab-content ul { padding-left: 20px; list-style: disc; }
.tab-content ul li { margin-bottom: 6px; }

/* ---------- SHOP PAGE LAYOUT ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .shop-layout { grid-template-columns: 1fr; } }

.shop-sidebar { position: sticky; top: 100px; }
.sidebar-section { margin-bottom: 36px; }
.sidebar-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.filter-option { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.filter-option input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }
.filter-option label { font-size: 0.88rem; color: var(--text); cursor: pointer; }
.filter-option .count { margin-left: auto; font-size: 0.75rem; color: var(--muted); }

.shop-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: gap: 12px; }
.results-count { font-size: 0.85rem; color: var(--muted); }
.shop-sort { display: flex; align-items: center; gap: 12px; }
.shop-sort select { width: auto; padding: 8px 36px 8px 14px; font-size: 0.82rem; }
.view-toggle { display: flex; gap: 4px; }
.view-btn { padding: 8px; border-radius: var(--radius); color: var(--muted); transition: var(--transition); }
.view-btn.active, .view-btn:hover { background: var(--warm-white); color: var(--charcoal); }

.products-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .products-grid { grid-template-columns: 1fr; } }

/* ---------- PAGE HEADER ---------- */
.page-header {
  background: var(--warm-white);
  padding: 100px 0 60px;
  margin-top: 0;
}
.page-header h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- ABOUT PAGE ---------- */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .about-story { grid-template-columns: 1fr; gap: 40px; } }
.about-story-image { position: relative; }
.about-story-image img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-story-image .floating-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  width: 180px;
}
.floating-card .number { font-family: var(--font-serif); font-size: 2.5rem; color: var(--gold); line-height: 1; }
.floating-card p { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 768px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { text-align: center; padding: 40px 24px; }
.value-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gold-light);
  margin-bottom: 16px;
  line-height: 1;
}
.value-card h4 { font-size: 1.1rem; margin-bottom: 12px; }
.value-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

.locations-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 768px) { .locations-grid { grid-template-columns: 1fr; } }
.location-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.location-card:hover { border-color: var(--gold); }
.location-icon { font-size: 2rem; margin-bottom: 16px; }
.location-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.location-card address { font-style: normal; font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.location-card .tel { font-family: var(--font-serif); font-size: 1rem; color: var(--gold); }

/* ---------- CONTACT PAGE ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-info h3 { font-size: 1.6rem; margin-bottom: 16px; }
.contact-info p { color: var(--muted); margin-bottom: 32px; }
.contact-detail { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-detail-icon { width: 44px; height: 44px; background: var(--warm-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold); }
.contact-detail strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 2px; }
.contact-detail p { color: var(--charcoal); margin: 0; font-size: 0.95rem; }

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form-card h3 { margin-bottom: 28px; font-size: 1.5rem; }
.contact-form-card .btn { width: 100%; justify-content: center; }

/* ---------- ADMIN PAGE ---------- */
.admin-layout { display: grid; grid-template-columns: 320px 1fr; gap: 32px; min-height: 80vh; }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } }

.admin-panel {
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: white;
  height: fit-content;
  position: sticky;
  top: 100px;
}
.admin-panel h3 { color: var(--gold-light); font-size: 1.2rem; margin-bottom: 20px; }
.admin-panel .label-caps { color: rgba(255,255,255,0.4); }
.admin-panel label { color: rgba(255,255,255,0.7); }
.admin-panel input,
.admin-panel textarea,
.admin-panel select { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: white; }
.admin-panel input::placeholder,
.admin-panel textarea::placeholder { color: rgba(255,255,255,0.3); }
.admin-panel input:focus,
.admin-panel textarea:focus,
.admin-panel select:focus { border-color: var(--gold); }
.admin-panel select option { background: var(--charcoal); }

.wa-command-box {
  background: #1a2a1a;
  border: 1px solid #2a4a2a;
  border-radius: var(--radius);
  padding: 16px;
  font-family: monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #90d090;
  white-space: pre-wrap;
  margin-top: 12px;
  max-height: 280px;
  overflow-y: auto;
}
.wa-cmd-key   { color: #7ab0e0; }
.wa-cmd-val   { color: #90d090; }
.wa-cmd-head  { color: var(--gold-light); font-weight: bold; }

.product-table { width: 100%; border-collapse: collapse; }
.product-table th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.product-table td { padding: 16px; border-bottom: 1px solid var(--border); font-size: 0.88rem; vertical-align: middle; }
.product-table tr:hover td { background: var(--warm-white); }
.product-table .product-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius); }
.status-badge { padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
.status-badge.active { background: #e8f5e8; color: #2a8a2a; }
.status-badge.draft { background: #f5f0e0; color: #8a7020; }
.status-badge.out  { background: #f5e8e8; color: #8a2020; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
}
.footer-top { padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { height: 48px; filter: brightness(0) invert(1); opacity: 0.85; margin-bottom: 20px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.85rem;
}
.social-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(196,164,107,0.1); }

.footer-col h4 { color: white; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.88rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 0.85rem; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; opacity: 0.6; }
.footer-contact-item strong { color: rgba(255,255,255,0.4); font-size: 0.7rem; display: block; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}
@media (max-width: 600px) { .footer-bottom { flex-direction: column; gap: 8px; text-align: center; } }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- ANIMATIONS (on-scroll) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
/* Fallback: si JS désactivé ou IO non supporté */
.no-js .reveal { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- SUCCESS MESSAGE ---------- */
.order-success {
  text-align: center;
  padding: 40px 20px;
}
.order-success .checkmark {
  width: 64px;
  height: 64px;
  background: #e8f5e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
}
.order-success h3 { margin-bottom: 8px; }
.order-success p { color: var(--muted); font-size: 0.9rem; }
.order-ref { display: inline-block; background: var(--warm-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 20px; font-family: monospace; font-size: 1rem; color: var(--gold); margin: 12px 0; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--warm-white); }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- SELECTION ---------- */
::selection { background: var(--gold-light); color: var(--charcoal); }
