﻿/* ============================================================
   SAVANNA SELECT V36 — catalogue-pages.css
   Pages catégories HTML statiques indexables par Google
   ============================================================ */

/* ── Skip link ──────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: #D9A441; color: #061A0D;
  padding: .5rem 1rem; font-weight: 700;
  z-index: 9999; text-decoration: none;
  border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; }

/* ── Site Header / Nav ──────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,26,13,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217,164,65,.2);
}
.nav-bar { width: 100%; }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex; align-items: center;
  gap: 1.5rem;
}
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-links {
  display: flex; list-style: none;
  margin: 0; padding: 0; gap: 1.25rem;
  flex: 1;
}
.nav-link {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .875rem; font-weight: 500;
  letter-spacing: .04em;
  transition: color .2s;
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: #D9A441; }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-icon-btn {
  color: rgba(255,255,255,.7); text-decoration: none;
  font-size: 1.1rem; padding: .25rem;
  transition: color .2s;
}
.nav-icon-btn:hover { color: #D9A441; }
.nav-wa-btn {
  background: #25D366; color: #fff;
  padding: .5rem 1rem; border-radius: 999px;
  text-decoration: none; font-weight: 700;
  font-size: .8rem; white-space: nowrap;
  transition: background .2s;
}
.nav-wa-btn:hover { background: #1da851; }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb-nav {
  background: rgba(7,26,13,.06);
  border-bottom: 1px solid rgba(26,77,46,.12);
  padding: .6rem 0;
}
.breadcrumb-list {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center;
  gap: .5rem; list-style: none;
  flex-wrap: wrap;
}
.breadcrumb-list a {
  color: #1A4D2E; text-decoration: none;
  font-size: .82rem; font-weight: 500;
}
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-list [aria-current="page"] {
  color: #D9A441; font-size: .82rem; font-weight: 600;
}
.breadcrumb-list [aria-hidden="true"] {
  color: rgba(0,0,0,.35); font-size: .8rem;
}

/* ── Category Hero ──────────────────────────────────────── */
.cat-hero {
  background: linear-gradient(135deg, #061A0D 0%, #0E2E18 60%, #1A4D2E 100%);
  color: #fff;
  padding: 3rem 1.5rem;
}
.cat-hero .container {
  max-width: 1200px; margin: 0 auto;
}
.cat-h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.1;
}
.cat-desc {
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
  color: rgba(255,255,255,.8);
  max-width: 680px;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}
.cat-meta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center;
}
.cat-meta span {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: .35rem .9rem;
  font-size: .8rem; font-weight: 600;
  color: rgba(255,255,255,.9);
}
.cat-meta strong { color: #D9A441; }

/* ── Category Strip ─────────────────────────────────────── */
.category-strip {
  background: #fff;
  border-bottom: 2px solid #f0e8d0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-strip::-webkit-scrollbar { display: none; }
.category-strip .container {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 0;
  padding: 0 1rem;
}
.cs-link {
  padding: .85rem 1.1rem;
  text-decoration: none;
  color: #2a4a2a;
  font-size: .8rem; font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
  flex-shrink: 0;
}
.cs-link:hover,
.cs-link.cs-active {
  color: #1A4D2E;
  border-bottom-color: #D9A441;
}

/* ── Main + container ───────────────────────────────────── */
.cat-main { padding: 2.5rem 1.5rem 4rem; }
.cat-main > .container { max-width: 1200px; margin: 0 auto; }

/* ── Product Grid ───────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.cat-product-card {
  background: #fff;
  border: 1px solid rgba(26,77,46,.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.cat-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(26,77,46,.15);
}
.cat-card-link {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit; height: 100%;
}
.cat-card-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f0e8;
}
.cat-card-img-wrap img {
  width: 100%; height: auto;
  object-fit: contain;
  max-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s ease;
}
.cat-product-card:hover .cat-card-img-wrap img {
  transform: scale(1.05);
}
.cat-card-body {
  padding: 1rem 1rem .75rem;
  display: flex; flex-direction: column;
  flex: 1;
}
.cat-card-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem; font-weight: 700;
  color: #061A0D; margin: 0 0 .4rem;
  line-height: 1.2;
}
.cat-card-desc {
  font-size: .8rem; color: #675d52;
  line-height: 1.5; margin: 0 0 .75rem;
  flex: 1;
}
.cat-card-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
}
.cat-card-price {
  font-size: 1.05rem; font-weight: 800;
  color: #1A4D2E;
}
.cat-card-btn {
  background: #1A4D2E; color: #fff;
  border: none; border-radius: 8px;
  padding: .45rem .85rem;
  font-size: .75rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: background .2s;
  letter-spacing: .03em;
}
.cat-card-btn:hover { background: #D9A441; color: #061A0D; }
.cat-card-btn:focus-visible {
  outline: 3px solid #D9A441;
  outline-offset: 2px;
}

/* ── WhatsApp CTA Section ───────────────────────────────── */
.cat-wa-cta {
  margin-top: 3rem; text-align: center;
  background: linear-gradient(135deg, #f7f2e8, #fff);
  border: 1px solid #e8d8a8;
  border-radius: 20px;
  padding: 2.5rem 2rem;
}
.cat-wa-cta p {
  color: #4a3a22; font-size: 1rem;
  margin: 0 0 1.25rem;
}
.btn-wa-cta {
  display: inline-block;
  background: #25D366; color: #fff;
  padding: .85rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800; font-size: .95rem;
  margin: 0 .5rem .5rem;
  transition: background .2s, transform .2s;
}
.btn-wa-cta:hover { background: #1da851; transform: translateY(-2px); }
.btn-catalogue-cta {
  display: inline-block;
  background: #1A4D2E; color: #fff;
  padding: .85rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700; font-size: .9rem;
  margin: 0 .5rem .5rem;
  transition: background .2s;
}
.btn-catalogue-cta:hover { background: #0e2e18; }

/* ── Catalogue INDEX grid ───────────────────────────────── */
.cat-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.cat-index-card {
  background: #fff;
  border: 1px solid rgba(26,77,46,.12);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: .5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-index-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(26,77,46,.15);
  border-color: #D9A441;
}
.cic-emoji { font-size: 2.5rem; line-height: 1; }
.cat-index-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem; font-weight: 700;
  color: #061A0D; margin: 0;
}
.cat-index-card p {
  font-size: .8rem; color: #675d52;
  line-height: 1.5; margin: 0;
}
.cic-count {
  background: #1A4D2E; color: #D9A441;
  padding: .25rem .75rem; border-radius: 999px;
  font-size: .75rem; font-weight: 800;
  margin-top: .25rem;
}

/* ── Category nav bar in main site ─────────────────────── */
.category-nav-bar {
  background: #fff;
  border-bottom: 2px solid rgba(26,77,46,.1);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-nav-bar::-webkit-scrollbar { display: none; }
.cnb-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center;
  gap: .25rem; min-height: 44px;
}
.cnb-label {
  font-size: .75rem; font-weight: 700;
  color: #675d52; white-space: nowrap;
  padding-right: .5rem;
}
.cnb-link {
  padding: .55rem .9rem;
  text-decoration: none;
  color: #1A4D2E;
  font-size: .78rem; font-weight: 600;
  white-space: nowrap;
  border-radius: 999px;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.cnb-link:hover {
  background: #1A4D2E;
  color: #fff;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: #061A0D; color: #d9d0c4;
  padding: 3rem 1.5rem 0;
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.6); margin: .25rem 0; }
.footer-brand a { color: #D9A441; text-decoration: none; }
.footer-nav h3 {
  font-size: .7rem; font-weight: 800;
  letter-spacing: .15em; text-transform: uppercase;
  color: #D9A441; margin: 0 0 .75rem;
}
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .4rem; }
.footer-nav a { font-size: .85rem; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: #D9A441; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 1.25rem 0;
  text-align: center;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.35); margin: .2rem 0; }

/* ── WhatsApp Float ─────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 56px; height: 56px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 500;
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(37,211,102,.55);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .cat-card-btn { padding: .35rem .65rem; font-size: .7rem; }
  .nav-wa-btn { padding: .4rem .75rem; font-size: .72rem; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-hero { padding: 2rem 1rem; }
  .cat-h1 { font-size: 1.75rem; }
  .cat-index-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media(max-width:768px){.cat-card-img-wrap{aspect-ratio:3/2}}

/* V366e — Pills Kits & Combos style moderne */
.combo-theme-chip {
  background: #e8f5e9 !important;
  color: #1a4a28 !important;
  border: 1px solid #c8e6c9 !important;
  border-radius: 20px !important;
  padding: 6px 14px !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  outline: none !important;
}
.combo-theme-chip:hover {
  background: #c8e6c9 !important;
  border-color: #1a4a28 !important;
}
.combo-theme-chip.is-active {
  background: #1a4a28 !important;
  color: #fff !important;
  border-color: #1a4a28 !important;
}

/* V367c — Hauteur images catalogue pages */
.product-img-wrap { max-height: 170px !important; min-height: 130px !important; }
.product-img-wrap img { max-height: 150px !important; object-fit: contain !important; }

/* V368 — Suppression espace entre image et description */
.product-img-wrap { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.product-card .card-body { padding-top: 6px !important; }

/* V369 - Suppression espace blanc sous images */
.product-img-wrap { height: 170px !important; display: flex !important; align-items: center !important; justify-content: center !important; margin-bottom: 0 !important; padding: 0 !important; }
.product-img-wrap img { height: 160px !important; width: auto !important; max-width: 100% !important; object-fit: contain !important; }

/* V370 - Suppression espace blanc sous images */
.product-img-wrap { height: auto !important; min-height: unset !important; max-height: unset !important; padding: 8px !important; }
.product-img-wrap img { height: 180px !important; width: auto !important; max-width: 100% !important; object-fit: contain !important; display: block !important; margin: 0 auto !important; }

/* V371 - Fix vraie classe cat-card-img-wrap */
.cat-card-img-wrap { aspect-ratio: unset !important; height: auto !important; min-height: unset !important; padding: 8px !important; background: rgb(245,240,232) !important; }
.cat-card-img-wrap img { height: 180px !important; width: auto !important; max-width: 100% !important; object-fit: contain !important; display: block !important; margin: 0 auto !important; }

/* V375 - Masquer checkbox et carré blanc sur cartes produits */
.product-card input[type="checkbox"],
.product-card > input,
.product-card-item > input,
li.product-card-item > input { display: none !important; }
.product-img-wrap .gallery-thumb,
.gallery-thumb { display: none !important; }

/* V376 - Masquer gallery-thumb et compare checkbox */
.product-gallery-thumb { display: none !important; }
.product-compare-check,
.compare-check,
input[type="checkbox"].compare { display: none !important; }
.product-card .compare-label,
.compare-label { display: none !important; }

/* V379 - Images épices plus grandes */
.product-img-wrap img,
.cat-card-img-wrap img { height: 220px !important; }
