/*
Theme Name: BebeClub
Theme URI: https://bebeclub.ma
Author: Rachid / BebeMaman.ma
Description: Theme custom ultra-leger pour BebeClub.ma - E-commerce puericulture & parapharmacie Maroc.
Version: 3.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: Proprietary
Text Domain: bebeclub
WooCommerce tested up to: 10.6
*/

/* ==============================
   CSS VARIABLES â PREMIUM WHITE
   ============================== */
:root {
  /* Primary: Soft Rose / Dusty Pink */
  --bc-primary: #C4707A;
  --bc-primary-dark: #A85B65;
  --bc-primary-light: #FDF2F3;
  --bc-primary-hover: #B5616B;

  /* Secondary: Sage / Soft Green */
  --bc-secondary: #8BAB9E;
  --bc-secondary-dark: #6F9486;
  --bc-secondary-light: #F0F7F4;

  /* Accent: Warm Beige */
  --bc-accent: #C9A96E;
  --bc-accent-light: #FBF6EE;

  /* Neutrals â very clean */
  --bc-dark: #2D2D2D;
  --bc-text: #3D3D3D;
  --bc-text-light: #777777;
  --bc-text-muted: #AAAAAA;
  --bc-bg: #FFFFFF;
  --bc-bg-white: #FFFFFF;
  --bc-bg-warm: #FDFCFB;
  --bc-bg-section: #F9F8F6;
  --bc-border: #EEEEEE;
  --bc-border-light: #F5F5F5;

  /* Typography */
  --bc-font-heading: 'Poppins', sans-serif;
  --bc-font-body: 'DM Sans', sans-serif;
  --bc-text-dark: #2D2D2D;

  /* Design tokens */
  --bc-radius: 8px;
  --bc-radius-lg: 12px;
  --bc-radius-xl: 16px;
  --bc-radius-full: 9999px;

  /* Shadows â subtle */
  --bc-shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --bc-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --bc-shadow: 0 2px 8px rgba(0,0,0,0.06);
  --bc-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --bc-shadow-lg: 0 8px 30px rgba(0,0,0,0.10);

  /* Transitions */
  --bc-transition: all 0.25s ease;

  /* ============================================================
     DEBEBE DESIGN - v4.0.0 Redesign
     Palette extracted from themes.vamtam.com/?theme=debebe
     ============================================================ */

  /* Core Debebe colors */
  --bc-deb-navy: #0A1E33;        /* Titres, textes forts */
  --bc-deb-coral: #E46A4B;       /* CTA, accents chauds */
  --bc-deb-sage-light: #DFE7E8;  /* Fond hero, sections douces */
  --bc-deb-sage-dark: #99B8BA;   /* Details, bordures, icones */
  --bc-deb-peach: #FFBC7D;       /* Accents secondaires */
  --bc-deb-gray: #F7F7F7;        /* Fonds alternes */
  --bc-deb-white: #FFFFFF;

  /* Hover / active variants */
  --bc-deb-coral-dark: #C7583C;  /* Coral hover */
  --bc-deb-coral-light: #F4957C; /* Coral clair */
  --bc-deb-navy-soft: #1A2E43;   /* Navy plus clair */
  --bc-deb-sage-bg: #EEF3F2;     /* Sage tres clair fond features */

  /* Debebe typography */
  --bc-deb-font-heading: 'Bebas Neue', 'Poppins', sans-serif;
  --bc-deb-font-body: 'Roboto', 'DM Sans', sans-serif;
  --bc-deb-font-cursive: 'Allison', 'Dancing Script', cursive;

  /* Debebe sizing */
  --bc-deb-container: 1320px;
  --bc-deb-radius-btn: 6px;
  --bc-deb-radius-card: 4px;
}

/* ==============================
   RESET & BASE
   ============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--bc-font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--bc-text);
  background: var(--bc-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--bc-text); text-decoration: none; transition: var(--bc-transition); }
a:hover { color: var(--bc-primary); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--bc-font-heading); font-weight: 600; color: var(--bc-dark); line-height: 1.3; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==============================
   TOP BAR
   ============================== */
.bc-topbar {
  background: var(--bc-dark);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ==============================
   REASSURANCE BAR
   ============================== */
.bc-reassurance {
  background: var(--bc-bg-section);
  border-bottom: 1px solid var(--bc-border);
  padding: 8px 0;
}
.bc-reassurance .container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.bc-reassurance-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--bc-text-light);
}
.bc-reassurance-item strong { color: var(--bc-text); font-weight: 600; }
.bc-reassurance-item svg { width: 16px; height: 16px; color: var(--bc-primary); flex-shrink: 0; }

/* ==============================
   HEADER â Clean & Minimal
   ============================== */
.bc-header {
  background: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--bc-border);
}
.admin-bar .bc-header { top: 32px; }
.bc-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.bc-logo a {
  font-family: var(--bc-font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bc-dark);
  text-decoration: none;
  white-space: nowrap;
}
.bc-logo a span { color: var(--bc-primary); }
.bc-logo a .bc-logo-dot { color: var(--bc-accent); }

/* Search */
.bc-search { flex: 1; max-width: 520px; margin: 0 auto; }
.bc-search form {
  display: flex;
  border: 1.5px solid var(--bc-border);
  border-radius: var(--bc-radius-full);
  overflow: hidden;
  transition: var(--bc-transition);
  background: #fff;
}
.bc-search form:focus-within {
  border-color: var(--bc-primary);
  box-shadow: 0 0 0 3px var(--bc-primary-light);
}
.bc-search input[type="search"] {
  flex: 1;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-family: var(--bc-font-body);
  outline: none;
  background: transparent;
  color: var(--bc-text);
}
.bc-search input::placeholder { color: var(--bc-text-muted); }
.bc-search button {
  background: var(--bc-primary);
  border: none;
  padding: 0 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--bc-transition);
}
.bc-search button:hover { background: var(--bc-primary-dark); }
.bc-search button svg { width: 18px; height: 18px; color: #fff; }

/* Header Icons */
.bc-header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}
.bc-header-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--bc-text);
  font-size: 11px;
  position: relative;
}
.bc-header-icon svg { width: 22px; height: 22px; stroke-width: 1.5; }
.bc-header-icon:hover { color: var(--bc-primary); }
.bc-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--bc-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==============================
   NAVIGATION â Minimal
   ============================== */
.bc-nav {
  background: #fff;
  border-bottom: 1px solid var(--bc-border);
  padding: 0;
}
.bc-nav .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: 1400px;
}
.bc-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15px;
  color: var(--bc-text);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--bc-transition);
}
.bc-nav a:hover, .bc-nav a.active {
  color: var(--bc-primary);
  border-bottom-color: var(--bc-primary);
}
.bc-nav a.bc-nav-highlight {
  color: var(--bc-primary);
  font-weight: 700;
}
.bc-nav a.bc-nav-highlight:hover {
  color: var(--bc-primary-dark);
  border-bottom-color: var(--bc-primary);
}

/* Nav Gift icon */
.bc-nav-gift svg { width: 14px; height: 14px; }

/* ==============================
   HERO â Soft & Elegant
   ============================== */
.bc-hero {
  background: var(--bc-bg-section);
  padding: 56px 0;
  text-align: center;
}
.bc-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--bc-dark);
  margin-bottom: 16px;
}
.bc-hero p {
  font-size: 1rem;
  color: var(--bc-text-light);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.bc-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bc-primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--bc-radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--bc-transition);
}
.bc-hero-cta:hover {
  background: var(--bc-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--bc-shadow-md);
  color: #fff;
}

/* ==============================
   LISTE DE NAISSANCE BANNER
   ============================== */
.bc-birth-list {
  padding: 24px 0;
  background: #fff;
}
.bc-birth-list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bc-primary-light);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-xl);
  padding: 28px 36px;
  gap: 28px;
}
.bc-birth-list-content {
  display: flex;
  align-items: center;
  gap: 20px;
}
.bc-birth-list-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--bc-primary);
  border-radius: var(--bc-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.bc-birth-list-content h2 {
  font-family: var(--bc-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bc-dark);
  margin: 0 0 4px 0;
}
.bc-birth-list-content p {
  font-size: 0.85rem;
  color: var(--bc-text-light);
  margin: 0;
  max-width: 480px;
  line-height: 1.5;
}
.bc-birth-list-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bc-primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--bc-radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--bc-transition);
  white-space: nowrap;
}
.bc-birth-list-btn:hover {
  background: var(--bc-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--bc-shadow-md);
  color: white;
}

@media (max-width: 768px) {
  .bc-birth-list-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .bc-birth-list-content { flex-direction: column; }
}

/* ==============================
   CATEGORIES â Clean Cards
   ============================== */
.bc-categories {
  padding: 48px 0;
  background: #fff;
}
.bc-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--bc-dark);
  margin-bottom: 8px;
}
.bc-section-subtitle {
  text-align: center;
  color: var(--bc-text-light);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.bc-categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bc-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 12px;
  background: var(--bc-bg-section);
  border-radius: var(--bc-radius-lg);
  text-decoration: none;
  transition: var(--bc-transition);
  border: 1px solid transparent;
}
.bc-category-card:hover {
  border-color: var(--bc-border);
  box-shadow: var(--bc-shadow);
  transform: translateY(-2px);
}
.bc-category-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 12px;
  background: #fff;
  box-shadow: var(--bc-shadow-xs);
}

/* Colored backgrounds per category */
.bc-category-card:nth-child(1) .bc-category-icon { background: #FDF2F3; }
.bc-category-card:nth-child(2) .bc-category-icon { background: #FEF3E2; }
.bc-category-card:nth-child(3) .bc-category-icon { background: #F3E8FF; }
.bc-category-card:nth-child(4) .bc-category-icon { background: #FEF9C3; }
.bc-category-card:nth-child(5) .bc-category-icon { background: #FFEDD5; }
.bc-category-card:nth-child(6) .bc-category-icon { background: #DBEAFE; }

.bc-category-card span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bc-dark);
  text-align: center;
}
.bc-category-count {
  font-size: 0.72rem;
  color: var(--bc-text-muted);
  font-weight: 400;
  margin-top: 2px;
}

/* ==============================
   PRODUCTS SECTIONS
   ============================== */
.bc-products-section {
  padding: 48px 0;
  background: #fff;
}

/* ==============================
   PROMO BANNER â Subtle
   ============================== */
.bc-promo-banner {
  background: var(--bc-bg-section);
  border-radius: var(--bc-radius-xl);
  padding: 40px;
  text-align: center;
  border: 1px solid var(--bc-border);
}
.bc-promo-banner h3 {
  font-size: 1.4rem;
  color: var(--bc-dark);
  margin-bottom: 8px;
}
.bc-promo-banner p {
  color: var(--bc-text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.bc-promo-code {
  display: inline-block;
  background: #fff;
  border: 2px dashed var(--bc-primary);
  color: var(--bc-primary);
  padding: 10px 28px;
  border-radius: var(--bc-radius);
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
}

/* ==============================
   WOOCOMMERCE â Product Grid
   ============================== */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
/* Remove WooCommerce clearfix pseudo-elements — they occupy grid cells */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}
.woocommerce ul.products li.product {
  background: #fff;
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  border: 1px solid var(--bc-border);
  transition: var(--bc-transition);
  padding: 0;
  margin: 0 !important;
  width: auto !important;
  float: none !important;
  display: flex !important;
  flex-direction: column;
}
.woocommerce ul.products li.product:hover {
  box-shadow: var(--bc-shadow-md);
  transform: translateY(-3px);
}
/* Fixed-height image container for uniform alignment */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 0;
  margin: 0 !important;
  background: #fafafa;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  font-family: var(--bc-font-body) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: var(--bc-text) !important;
  padding: 12px 14px 4px !important;
  margin: 0 !important;
  line-height: 1.4;
  flex-grow: 1;
}
.woocommerce ul.products li.product .price {
  padding: 0 14px 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bc-dark);
  margin-top: auto;
}
.woocommerce ul.products li.product .price del {
  color: var(--bc-text-muted);
  font-size: 0.85rem;
  font-weight: 400;
}
.woocommerce ul.products li.product .price ins {
  text-decoration: none;
  color: var(--bc-primary);
  font-weight: 700;
}
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px 14px !important;
  background: var(--bc-primary);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: var(--bc-radius);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--bc-transition);
  font-family: var(--bc-font-body);
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover {
  background: var(--bc-primary-dark);
}

/* Sale badge */
.woocommerce span.onsale {
  background: var(--bc-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--bc-radius-full);
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

/* Star Rating */
.woocommerce .star-rating {
  color: var(--bc-accent);
  font-size: 0.8rem;
  margin: 4px 14px;
}

/* ==============================
   SINGLE PRODUCT
   ============================== */
.woocommerce div.product .product_title { font-size: 1.6rem; margin-bottom: 12px; }
.woocommerce div.product p.price { font-size: 1.4rem; color: var(--bc-dark); font-weight: 700; }
.woocommerce div.product .single_add_to_cart_button {
  background: var(--bc-primary) !important;
  border-radius: var(--bc-radius) !important;
  padding: 14px 32px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  transition: var(--bc-transition);
}
.woocommerce div.product .single_add_to_cart_button:hover {
  background: var(--bc-primary-dark) !important;
}

/* ==============================
   PAGINATION
   ============================== */
.woocommerce nav.woocommerce-pagination ul {
  display: flex;
  justify-content: center;
  gap: 6px;
  border: none;
  margin-top: 32px;
}
.woocommerce nav.woocommerce-pagination ul li {
  border: none;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span.current {
  padding: 8px 14px;
  border-radius: var(--bc-radius);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--bc-border);
  color: var(--bc-text);
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--bc-primary);
  color: #fff;
  border-color: var(--bc-primary);
}

/* ==============================
   FOOTER â Elegant Dark
   ============================== */
.bc-footer {
  background: var(--bc-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
}
.bc-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bc-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.bc-footer ul { list-style: none; }
.bc-footer ul li { margin-bottom: 8px; }
.bc-footer ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: var(--bc-transition);
}
.bc-footer ul li a:hover { color: #fff; }
.bc-footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
  .bc-categories-grid { grid-template-columns: repeat(3, 1fr); }
  .bc-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .bc-header .container { gap: 12px; }
  .bc-search { max-width: none; }
  .bc-hero h1 { font-size: 1.6rem; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .bc-categories-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .bc-reassurance .container { gap: 16px; justify-content: center; }
  .bc-reassurance-item { font-size: 11px; }
  .bc-nav a { padding: 8px 10px; font-size: 11px; letter-spacing: 0.1px; }
}
@media (max-width: 480px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .bc-categories-grid { grid-template-columns: repeat(2, 1fr); }
  .bc-header-icons span { display: none; }
  .bc-logo a { font-size: 1.3rem; }
}


/* ==============================
   PARAPHARMACIE LANDING PAGE
   ============================== */

/* Hero Banner */
.pp-hero {
  position: relative;
  background: linear-gradient(135deg, #FDF2F3 0%, #F3E8FF 40%, #E0F2FE 70%, #FEF9C3 100%);
  padding: 0;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.pp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 100%);
}
.pp-hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px 36px;
}
.pp-breadcrumb {
  font-size: 13px;
  color: var(--bc-text-light);
  margin-bottom: 16px;
}
.pp-breadcrumb a { color: var(--bc-text-light); }
.pp-breadcrumb a:hover { color: var(--bc-primary); }
.pp-breadcrumb strong { color: var(--bc-text); }
.pp-hero-title {
  font-family: var(--bc-font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--bc-dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.pp-hero-subtitle {
  font-size: 1rem;
  color: var(--bc-text-light);
  max-width: 600px;
  line-height: 1.7;
  margin: 0;
}
/* Subcategories Section */
.pp-subcats {
  background: #fff;
  padding: 40px 0;
  border-bottom: 1px solid var(--bc-border-light);
}
.pp-subcats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.pp-subcat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 12px 20px;
  background: #fff;
  border-radius: var(--bc-radius-xl);
  border: 1px solid var(--bc-border);
  transition: var(--bc-transition);
  text-decoration: none;
  cursor: pointer;
}
.pp-subcat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bc-shadow-md);
  border-color: var(--bc-primary-light);
}
.pp-subcat-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: var(--bc-transition);
}
.pp-subcat-card:hover .pp-subcat-img {
  transform: scale(1.08);
}
.pp-subcat-name {
  font-family: var(--bc-font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bc-dark);
  margin-bottom: 4px;
}
.pp-subcat-count {
  font-size: 0.75rem;
  color: var(--bc-text-muted);
}

/* Products Section */
.pp-products-section {
  padding: 40px 20px 60px;
}
.pp-section-header {
  margin-bottom: 24px;
}
.pp-section-title {
  font-family: var(--bc-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bc-dark);
}

/* Empty State */
.pp-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bc-bg-section);
  border-radius: var(--bc-radius-xl);
  border: 1px solid var(--bc-border-light);
}
.pp-empty-icon {
  width: 80px;
  height: 80px;
  background: var(--bc-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--bc-primary);
}
.pp-empty-state h3 {
  font-family: var(--bc-font-heading);
  font-size: 1.3rem;
  color: var(--bc-dark);
  margin-bottom: 8px;
}
.pp-empty-state p {
  color: var(--bc-text-light);
  font-size: 0.95rem;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive Parapharmacie */
@media (max-width: 1024px) {
  .pp-subcats-grid { grid-template-columns: repeat(3, 1fr); }
  .pp-hero-title { font-size: 2.2rem; }
}
@media (max-width: 768px) {
  .pp-subcats-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .pp-hero-title { font-size: 1.8rem; }
  .pp-hero { min-height: 180px; }
  .pp-subcat-img { width: 64px; height: 64px; }
  .pp-subcat-name { font-size: 0.82rem; }
}
@media (max-width: 480px) {
  .pp-subcats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pp-hero-title { font-size: 1.5rem; }
  .pp-subcat-card { padding: 16px 8px; }
  .pp-subcat-img { width: 56px; height: 56px; }
}

/* ==============================
   UTILITY: Remove WC defaults
   ============================== */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { margin-bottom: 16px; }
.woocommerce-info, .woocommerce-message {
  border-top-color: var(--bc-primary);
}
.woocommerce-info::before, .woocommerce-message::before {
  color: var(--bc-primary);
}

/* =============================================
   MEGA MENU — Opara Style v2
   ============================================= */

.bc-nav {
  position: relative;
  border-bottom: 1px solid #eee;
}

.bc-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.bc-nav-item {
  position: static;
}

.bc-nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.bc-nav-link:hover,
.bc-nav-item:hover > .bc-nav-link {
  color: var(--primary);
}

.bc-nav-arrow {
  opacity: 0.4;
  transition: transform 0.25s, opacity 0.25s;
  flex-shrink: 0;
}

.bc-nav-item:hover .bc-nav-arrow {
  transform: rotate(180deg);
  opacity: 0.8;
}

.bc-nav-special { gap: 6px; color: var(--primary); }
.bc-nav-promo { color: #e53e3e; font-weight: 700; }

/* ---- Dropdown ---- */
.bc-mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  background: #fff;
  border-top: 2px solid var(--primary);
  box-shadow: 0 12px 35px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 9999;
  border-radius: 0 0 8px 8px;
}

.bc-nav-item:hover > .bc-mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---- Wrap: cols + sidebar ---- */
.bc-mega-wrap {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
}

/* ---- Columns area ---- */
.bc-mega-cols {
  flex: 1;
  padding: 28px 30px 20px;
}

/* == HIERARCHICAL layout (Parapharmacie etc.) == */
.bc-mega-cols--hierarchy {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-content: flex-start;
  max-height: 70vh;
  overflow-y: auto;
}

.bc-mega-cols--hierarchy::-webkit-scrollbar { width: 4px; }
.bc-mega-cols--hierarchy::-webkit-scrollbar-track { background: transparent; }
.bc-mega-cols--hierarchy::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.bc-mega-col {
  width: 25%;
  padding: 0 15px 20px 0;
  box-sizing: border-box;
}

.bc-mega-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  margin-bottom: 8px;
  line-height: 1.3;
}

.bc-mega-title:hover { color: var(--primary); }

.bc-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bc-mega-list li a {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  padding: 3px 0;
  line-height: 1.5;
  transition: color 0.15s;
}

.bc-mega-list li a::before {
  content: "\203A";
  display: inline-block;
  width: 16px;
  flex-shrink: 0;
  color: #bbb;
  font-size: 15px;
  line-height: 1;
}

.bc-mega-list li a:hover { color: var(--primary); }
.bc-mega-list li a:hover::before { color: var(--primary); }

/* == FLAT layout (Allaitement, Eveil etc. — no grandchildren) == */
.bc-mega-cols--flat {
  display: block;
  max-height: 65vh;
  overflow-y: auto;
}

.bc-mega-cols--flat::-webkit-scrollbar { width: 4px; }
.bc-mega-cols--flat::-webkit-scrollbar-track { background: transparent; }
.bc-mega-cols--flat::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.bc-mega-flat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 3;
  column-gap: 30px;
}

.bc-mega-flat-list li {
  break-inside: avoid;
  padding: 0;
  margin: 0;
}

.bc-mega-flat-list li a {
  display: flex;
  align-items: center;
  font-size: 13.5px;
  color: #444;
  text-decoration: none;
  padding: 5px 0;
  line-height: 1.5;
  transition: color 0.15s;
}

.bc-mega-flat-list li a::before {
  content: "\203A";
  display: inline-block;
  width: 16px;
  flex-shrink: 0;
  color: #bbb;
  font-size: 16px;
  line-height: 1;
}

.bc-mega-flat-list li a:hover { color: var(--primary); }
.bc-mega-flat-list li a:hover::before { color: var(--primary); }

/* ---- Sidebar (Opara Style v2) ---- */
.bc-mega-sidebar {
  width: 380px;
  flex-shrink: 0;
  border-left: 1px solid #e5e5e5;
  padding: 30px 28px;
  background: #fff;
  border-radius: 0 0 8px 0;
  overflow: hidden;
}

.bc-mega-offers-title {
  font-size: 20px;
  font-weight: 600;
  color: #000;
  margin-bottom: 20px;
  font-style: italic;
  padding-bottom: 0;
  border-bottom: none;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.bc-mega-product {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0 0 20px 0;
  text-decoration: none;
  border-bottom: 1px solid #e5e5e5;
  border-radius: 0;
  transition: opacity 0.15s;
  margin-bottom: 20px;
}

.bc-mega-product:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.bc-mega-product:hover { opacity: 0.75; }

.bc-mega-product-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 5px;
  background: #fff;
  border: none;
  flex-shrink: 0;
  padding: 0;
  box-shadow: none;
}

.bc-mega-product-info {
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 100px);
  overflow: hidden;
}

.bc-mega-product-name {
  font-size: 14px;
  color: #000;
  line-height: 22px;
  margin-bottom: 8px;
  font-weight: 400;
  text-transform: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.bc-mega-product-price {
  font-size: 15px;
  font-weight: 500;
  color: #000;
}

.bc-mega-product-price del {
  color: #818388;
  font-weight: 400;
  font-size: 13px;
  margin-right: 8px;
  text-decoration: line-through;
}

.bc-mega-product-price ins {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 15px;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .bc-mega-col { width: 33.33%; }
  .bc-mega-sidebar { width: 320px; }
  .bc-mega-flat-list { column-count: 2; }
}

@media (max-width: 992px) {
  .bc-mega-sidebar { display: none; }
  .bc-mega-col { width: 50%; }
  .bc-nav-inner { overflow-x: auto; }
}

@media (max-width: 768px) {
  .bc-mega-dropdown { display: none; }
  .bc-nav-arrow { display: none; }
}
/* ========================================================================
   LOGO CURSIVE (keep from Debebe redesign - v4.0.2)
   ======================================================================== */
.bc-logo-cursive a {
  display: inline-block;
  text-decoration: none;
  line-height: 1;
}
.bc-logo-cursive-text {
  font-family: "Allison", "Dancing Script", cursive;
  font-size: 62px;
  font-weight: 400;
  color: #0A1E33;
  letter-spacing: -1px;
  line-height: 1;
  display: inline-block;
  padding-top: 4px;
  transition: color 0.2s ease;
}
.bc-logo-cursive:hover .bc-logo-cursive-text {
  color: #C4707A;
}
@media (max-width: 991px) {
  .bc-logo-cursive-text { font-size: 48px; }
}
@media (max-width: 600px) {
  .bc-logo-cursive-text { font-size: 40px; }
}
