/* ─── WBC Homepage — Design boutique mobile-first ─────────────────────── */

/* ── Reset & base ── */
.wbc-hp-wrap *, .wbc-hp-wrap *::before, .wbc-hp-wrap *::after { box-sizing: border-box; }
.wbc-hp-wrap { --wbc-accent: #e94560; --wbc-dark: #1a1a2e; --wbc-gold: #f59e0b; --wbc-green: #10b981; --wbc-bg: #f8fafc; --wbc-border: #e2e8f0; --wbc-radius: 14px; --wbc-shadow: 0 4px 20px rgba(0,0,0,.09); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #1e293b; }

/* ── Section ── */
.wbc-section { padding: 28px 0; }
.wbc-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.wbc-section-title { font-size: 1.25rem; font-weight: 800; color: var(--wbc-dark); margin: 0; letter-spacing: -.02em; }
.wbc-see-all { font-size: .82rem; font-weight: 700; color: var(--wbc-accent); text-decoration: none; white-space: nowrap; transition: opacity .15s; }
.wbc-see-all:hover { opacity: .7; }
.wbc-empty-msg { color: #64748b; font-style: italic; font-size: .9rem; }

/* ════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════ */
.wbc-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-radius: var(--wbc-radius);
    padding: 36px 24px;
    margin-bottom: 32px;
    overflow: hidden;
    position: relative;
}
.wbc-hero::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(233,69,96,.18);
    pointer-events: none;
}
.wbc-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    position: relative;
    z-index: 1;
}
@media (min-width: 768px) {
    .wbc-hero-inner { grid-template-columns: 1fr 1fr; align-items: center; }
}
.wbc-hero-eyebrow {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--wbc-accent);
    margin: 0 0 10px;
}
.wbc-hero-title {
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.15;
    letter-spacing: -.03em;
}
.wbc-hero-sub {
    font-size: .95rem;
    color: #94a3b8;
    margin: 0 0 18px;
    line-height: 1.6;
}
.wbc-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.wbc-hero-badges span {
    font-size: .75rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 4px 12px;
}
.wbc-hero-btn {
    display: inline-block;
    background: var(--wbc-accent);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(233,69,96,.4);
}
.wbc-hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(233,69,96,.5); color: #fff; }

/* Hero visuels */
.wbc-hero-visual { display: flex; justify-content: center; }
.wbc-hero-blob {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 280px;
}
.wbc-hero-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    background: rgba(255,255,255,.08);
}
.wbc-hero-img-wrap:first-child {
    grid-column: 1 / -1;
    border-radius: 16px;
}
.wbc-hero-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* ════════════════════════════════════════════════════════
   CATÉGORIES — grille scrollable horizontal sur mobile
════════════════════════════════════════════════════════ */
.wbc-cats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 480px) { .wbc-cats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .wbc-cats-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px){ .wbc-cats-grid { grid-template-columns: repeat(6, 1fr); } }

.wbc-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: #fff;
    border-radius: var(--wbc-radius);
    box-shadow: var(--wbc-shadow);
    overflow: hidden;
    transition: transform .18s, box-shadow .18s;
    border: 2px solid transparent;
}
.wbc-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0,0,0,.13);
    border-color: var(--wbc-accent);
}
.wbc-cat-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--wbc-bg);
}
.wbc-cat-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.wbc-cat-card:hover .wbc-cat-img img { transform: scale(1.07); }
.wbc-cat-info {
    padding: 8px 10px;
    text-align: center;
    width: 100%;
}
.wbc-cat-name {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}
.wbc-cat-count {
    display: block;
    font-size: .7rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* ════════════════════════════════════════════════════════
   GRILLE PRODUITS — 2 colonnes mobile, 4 desktop
════════════════════════════════════════════════════════ */
.wbc-products-grid {
    display: grid;
    gap: 14px;
}
.wbc-products-grid.wbc-cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px)  { .wbc-products-grid.wbc-cols-2 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .wbc-products-grid.wbc-cols-2 { grid-template-columns: repeat(4, 1fr); } }

/* ════════════════════════════════════════════════════════
   CARTE PRODUIT
════════════════════════════════════════════════════════ */
.wbc-product-card {
    background: #fff;
    border-radius: var(--wbc-radius);
    box-shadow: var(--wbc-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .18s, box-shadow .18s;
    border: 2px solid transparent;
}
.wbc-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,.14);
    border-color: var(--wbc-accent);
}

/* Badges */
.wbc-badge-sale, .wbc-badge-new {
    position: absolute;
    top: 8px; left: 8px;
    z-index: 2;
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.4;
}
.wbc-badge-sale { background: var(--wbc-accent); color: #fff; }
.wbc-badge-new  { background: var(--wbc-green);  color: #fff; top: 8px; left: 8px; }
.wbc-on-sale .wbc-badge-new { top: 30px; }

/* Image produit */
.wbc-product-img-link {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--wbc-bg);
}
.wbc-product-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.wbc-product-card:hover .wbc-product-img { transform: scale(1.06); }

/* Corps de la carte */
.wbc-product-body {
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

/* Nom */
.wbc-product-name {
    font-size: .85rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wbc-product-name a {
    color: #1e293b;
    text-decoration: none;
}
.wbc-product-name a:hover { color: var(--wbc-accent); }

/* Étoiles */
.wbc-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.wbc-stars { display: inline-flex; gap: 1px; line-height: 1; }
.wbc-star { font-size: .85rem; line-height: 1; }
.wbc-star-full  { color: var(--wbc-gold); }
.wbc-star-half  { color: var(--wbc-gold); opacity: .7; }
.wbc-star-empty { color: #d1d5db; }
.wbc-rating-count {
    font-size: .72rem;
    color: #94a3b8;
    font-weight: 600;
}
.wbc-rating-none {
    font-size: .7rem;
    color: #cbd5e1;
    font-style: italic;
}

/* Prix WooCommerce */
.wbc-product-price {
    font-size: .9rem;
    font-weight: 800;
    color: var(--wbc-dark);
    margin-top: auto;
}
.wbc-product-price del { color: #94a3b8; font-size: .8rem; font-weight: 400; }
.wbc-product-price ins { text-decoration: none; color: var(--wbc-accent); }

/* Bouton Voir */
.wbc-product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--wbc-dark);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: background .15s, transform .12s;
    margin-top: 6px;
}
.wbc-product-btn:hover {
    background: var(--wbc-accent);
    color: #fff;
    transform: scale(1.02);
}

/* ════════════════════════════════════════════════════════
   COMPATIBILITÉ ELEMENTOR
   Neutralise les resets Elementor qui cassent la grille
════════════════════════════════════════════════════════ */
.elementor .wbc-hp-wrap .wbc-products-grid,
.elementor .wbc-hp-wrap .wbc-cats-grid {
    display: grid !important;
}
.elementor .wbc-hp-wrap .wbc-product-card,
.elementor .wbc-hp-wrap .wbc-cat-card {
    float: none !important;
    width: auto !important;
}
.elementor .wbc-product-name { font-size: .85rem; }
.elementor .wbc-product-btn  { display: flex; }

/* ── Responsive ajustements fins ── */
@media (max-width: 360px) {
    .wbc-products-grid.wbc-cols-2 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .wbc-product-body { padding: 8px 8px 10px; }
    .wbc-product-name { font-size: .78rem; }
    .wbc-product-btn  { font-size: .74rem; padding: 8px; }
    .wbc-star { font-size: .78rem; }
}
