/**
 * DIENSHOP — Catalogue CSS
 * dienchanmultireflex.com/DIENSHOP/
 *
 * Palette: #990033 (bordeaux), #b5813a (or), #4a7fa5 (bleu yin), #c07050 (terracotta yang)
 * Fonts: Cormorant (300), Proza Libre, Story Script  — déjà chargées par header DCM
 *
 * Conventions: .ds-* = scope DIENSHOP (n'interfère pas avec DCM)
 */

/* ── RESET LOCAL ─────────────────────────────────────────────────────────── */
.ds-catalogue *,
.ds-catalogue *::before,
.ds-catalogue *::after {
    box-sizing: border-box;
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
.ds-hero {
    background: linear-gradient(135deg, #fdf6f0 0%, #fff 60%, #f9f0f4 100%);
    border-bottom: 1px solid #ede0d8;
    padding: 1rem 0 0.8rem;
    margin-bottom: 0;
}
.ds-hero__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
}
.ds-hero__title {
    font-family: 'Cormorant', Georgia, serif;
    font-weight: 300;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #990033;
    margin: 0;
    line-height: 1.2;
    flex: 1 1 100%;
}
.ds-hero__sub {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    flex: 1 1 auto;
    max-width: 54ch;
}
.ds-club-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff8f0;
    border: 1px solid #b5813a;
    color: #7a5520;
    border-radius: 2rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.ds-hero__login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1.5px solid #990033;
    color: #990033;
    border-radius: 2rem;
    padding: 0.4rem 1.1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.ds-hero__login-btn:hover {
    background: #990033;
    color: #fff;
}

/* ── FILTRES ─────────────────────────────────────────────────────────────── */
.ds-filters {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid #ede0d8;
    padding: 0.8rem 0 0.6rem;
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.ds-filters__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
}
.ds-filters__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #aaa;
    min-width: 5.5rem;
    flex-shrink: 0;
}
.ds-filters__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Pills */
.ds-pill {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #ddd;
    border-radius: 2rem;
    padding: 0.28rem 0.85rem;
    font-size: 0.82rem;
    background: #fafafa;
    color: #555;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    white-space: nowrap;
}
.ds-pill:hover {
    border-color: #990033;
    color: #990033;
    background: #fff7f9;
}
.ds-pill--active {
    border-color: #990033;
    background: #990033;
    color: #fff;
}
.ds-pill--active:hover {
    background: #b0003d;
    border-color: #b0003d;
    color: #fff;
}

/* Couleurs des pills énergie */
.ds-pill--yin       { border-color: #4a7fa5; color: #2a5f85; }
.ds-pill--yin:hover,
.ds-pill--yin.ds-pill--active { background: #4a7fa5; border-color: #4a7fa5; color: #fff; }

.ds-pill--yang      { border-color: #c07050; color: #8b4020; }
.ds-pill--yang:hover,
.ds-pill--yang.ds-pill--active { background: #c07050; border-color: #c07050; color: #fff; }

.ds-pill--yinyang   { border-color: #806090; color: #4a2a60; }
.ds-pill--yinyang:hover,
.ds-pill--yinyang.ds-pill--active { background: #806090; border-color: #806090; color: #fff; }

/* Pills discipline */
.ds-pill--dc { border-color: #990033; }
.ds-pill--cb { border-color: #b5813a; color: #7a5520; }
.ds-pill--cb:hover,
.ds-pill--cb.ds-pill--active { background: #b5813a; border-color: #b5813a; color: #fff; }

/* Pill Apps — lien vers page dédiée (pas un filtre) */
.ds-pill--apps {
    text-decoration: none;
    border-color: #f57c00;
    color: #f57c00;
    font-weight: 700;
}
.ds-pill--apps:hover {
    background: #f57c00;
    border-color: #f57c00;
    color: #fff;
}

/* ── COMPTEUR RÉSULTATS ───────────────────────────────────────────────────── */
.ds-results-count {
    font-size: 0.82rem;
    color: #999;
    margin: 0 0 1.2rem;
    min-height: 1.2em;
}

/* ── GRILLE ─────────────────────────────────────────────────────────────── */
.ds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}
@media (max-width: 600px) {
    .ds-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
    }
}
@media (max-width: 360px) {
    .ds-grid {
        grid-template-columns: 1fr;
    }
}

/* ── CARTE PRODUIT ───────────────────────────────────────────────────────── */
.ds-card {
    background: #fff;
    border: 1px solid #ede0d8;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    position: relative;
}
.ds-card:hover {
    box-shadow: 0 6px 24px rgba(153, 0, 51, 0.10);
    border-color: #e0bec9;
    transform: translateY(-2px);
}
.ds-card--outofstock {
    opacity: 0.65;
    filter: grayscale(30%);
}

/* Image */
.ds-card__img-link {
    display: block;
    text-decoration: none;
}
.ds-card__img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: #faf8f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ds-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s;
    padding: 0.5rem;
}
.ds-card:hover .ds-card__img {
    transform: scale(1.04);
}
.ds-card__img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f0e8e8, #e8e0f0);
}

/* Badges */
.ds-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.45rem 0.7rem 0;
    min-height: 1.6rem;
}
.ds-badge {
    display: inline-block;
    border-radius: 1rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}
.ds-badge--yin {
    background: #e8f0f8;
    color: #2a5f85;
    border-color: #c0d8ee;
}
.ds-badge--yang {
    background: #fdf0e8;
    color: #8b4020;
    border-color: #f0c8a8;
}
.ds-badge--yin-yang {
    background: linear-gradient(90deg, #e8f0f8, #fdf0e8);
    color: #554060;
    border-color: #c8b8d8;
}
.ds-badge--zone {
    background: #f8f4f0;
    color: #6a4a3a;
    border-color: #e8d8cc;
}
.ds-badge--cb {
    background: #fff8ec;
    color: #7a5520;
    border-color: #f0d8a0;
}

/* Corps */
.ds-card__body {
    padding: 0.6rem 0.75rem 0.4rem;
    flex: 1;
}
.ds-card__name-link {
    text-decoration: none;
    color: inherit;
}
.ds-card__name {
    font-family: 'Proza Libre', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #2a1a1a;
    margin: 0 0 0.3rem;
    line-height: 1.3;
}
.ds-card__name-link:hover .ds-card__name {
    color: #990033;
}
.ds-card__reclamo {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pied : prix + bouton */
.ds-card__footer {
    padding: 0.6rem 0.75rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-top: 1px solid #f5ede8;
    margin-top: auto;
}
.ds-card__price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    line-height: 1;
}
.ds-card__price {
    font-family: 'Proza Libre', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #2d8a4e;   /* vert */
}
.ds-card__price--crossed {
    font-size: 0.78rem;
    font-weight: 400;
    color: #bbb;
    text-decoration: line-through;
}
.ds-card__price--club {
    color: #2d8a4e;   /* vert aussi pour le prix club */
    font-size: 1.02rem;
    font-weight: 700;
}
.ds-card__price--free {
    color: #2d8a4e;
}
.ds-card__price--out {
    font-size: 0.78rem;
    color: #bbb;
    font-weight: 400;
}

/* Bouton panier */
.ds-card__btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: none;
    border-radius: 2rem;
    background: #f57c00;
    color: #fff;
    padding: 0.35rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}
.ds-card__btn-cart:hover {
    background: #ef6c00;
}
.ds-card__btn-cart.added {
    background: #ef6c00;
}
.ds-card__btn-cart.added:hover {
    background: #e65100;
}

/* ── MODAL CLUB (cohérence avec DCM) ─────────────────────────────────────── */
.club-modal-wrapper {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.club-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.club-modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    width: min(420px, 95vw);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 1;
}
.club-modal-box iframe {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
}

/* ── BOUTON NAV "TROUVEZ VOTRE SOIN" — bordure arc-en-ciel rotative ─────── */
.ds-nav-find-soin {
    position: relative;
    display: inline-block;
    padding: 0.28rem 0.85rem;
    border-radius: 20px;
    background: transparent;   /* le fond #fff est fourni par ::after */
    color: #990033 !important;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;           /* clip le pseudo-élément rotatif */
    z-index: 0;
}

/* Anneau tournant : cône de couleurs pivotant en arrière-plan */
.ds-nav-find-soin::before {
    content: '';
    position: absolute;
    width: 250%;
    height: 250%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    background: conic-gradient(
        #ff0000   0deg,
        #ff8800  45deg,
        #ffee00  90deg,
        #44ee00 135deg,
        #00ddcc 180deg,
        #0055ff 225deg,
        #8800ee 270deg,
        #ff00aa 315deg,
        #ff0000 360deg
    );
    animation: ds-rainbow-spin 2.5s linear infinite;
    z-index: -2;
}

/* Fond blanc par-dessus, laissant 2px de bordure rainbow visible */
.ds-nav-find-soin::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #fff;
    border-radius: 18px;
    z-index: -1;
}

@keyframes ds-rainbow-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── UTILITAIRES ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ds-hero {
        padding: 1.5rem 0 1.2rem;
    }
    .ds-filters {
        position: static;   /* pas sticky sur mobile pour économiser l'espace */
    }
    .ds-filters__label {
        min-width: 4rem;
    }
}
