/* ==========================================================================
   EasySell Catalog — Cards V2 (3 Signatures Visuelles par Template)
   1. Sable (Défaut) : Galerie Éditoriale à cadre photo intérieur + bouton rond
   2. Véloce         : Carte Poster Plein Cadre (Full-Bleed) + Verre Dépoli Néon
   3. Nova           : Carte Retail Épurée Haute-Conversion + Pilule Pleine
   ========================================================================== */

/* ─── Base partagée propre & fluide ─── */
.catalog-card.cc-v2 {
    border-radius: 22px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
}

.catalog-card.cc-v2 .cc-thumb {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.catalog-card.cc-v2 .cc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badges compacts verre dépoli avec pastille de statut */
.catalog-card.cc-v2 .cc-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.catalog-card.cc-v2 .cc-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    flex-shrink: 0;
}

.catalog-card.cc-v2 .cc-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    background: #E11D48;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.catalog-card.cc-v2 .cc-video-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: rgba(15, 23, 42, 0.78);
    color: #FFFFFF;
    backdrop-filter: blur(8px);
}

.catalog-card.cc-v2 .cc-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
    min-width: 0;
}

.catalog-card.cc-v2 .cc-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.catalog-card.cc-v2 .cc-cat {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand, #8A6B58);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-card.cc-v2 .cc-rating {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent, #F59E0B);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.catalog-card.cc-v2 .cc-name {
    margin: 0;
    color: var(--ink-900, #181512);
    line-height: 1.22;
    text-wrap: balance;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-card.cc-v2 .cc-moq-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 800;
    background: #FEF3C7;
    color: #92400E;
    padding: 2px 7px;
    border-radius: 6px;
}

.catalog-card.cc-v2 .cc-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border, rgba(15, 23, 42, 0.08));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.catalog-card.cc-v2 .cc-price-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.catalog-card.cc-v2 .cc-price {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.05;
    color: var(--ink-900, #181512);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.catalog-card.cc-v2 .cc-price small {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-400, #8A8178);
}

.catalog-card.cc-v2 .cc-compare-price {
    font-size: 11px;
    color: var(--ink-400, #94A3B8);
    text-decoration: line-through;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    margin-top: 2px;
}

.catalog-card.cc-v2 .cc-pkg-sub {
    font-size: 10px;
    color: var(--ink-400, #94A3B8);
    font-weight: 600;
    margin-top: 2px;
}

.catalog-card.cc-v2 .cc-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition-property: transform, background-color, box-shadow;
    transition-duration: 170ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.catalog-card.cc-v2 .cc-cta:active {
    transform: scale(0.96);
}

/* ==========================================================================
   TEMPLATE 1 : SABLE (Galerie Lookbook Éditoriale — Image Encadrée + Rond)
   ========================================================================== */
body:not(.template-veloce):not(.template-nova) .catalog-card.cc-v2 {
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border, rgba(138, 107, 88, 0.16));
    border-radius: 22px;
    padding: 8px 8px 0;
    box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.14);
}

body:not(.template-veloce):not(.template-nova) .catalog-card.cc-v2 .cc-thumb {
    border-radius: 15px;
    aspect-ratio: 1 / 1.02;
    border-bottom: none;
    outline: 1px solid rgba(0, 0, 0, 0.08);
    outline-offset: -1px;
}

body:not(.template-veloce):not(.template-nova) .catalog-card.cc-v2 .cc-body {
    padding: 12px 6px 12px;
}

body:not(.template-veloce):not(.template-nova) .catalog-card.cc-v2 .cc-name {
    font-family: var(--adp-heading-font, "Cormorant Garamond", Georgia, serif);
    font-size: 19px;
    font-weight: 700;
}

body:not(.template-veloce):not(.template-nova) .catalog-card.cc-v2 .cc-desc {
    display: none;
}

body:not(.template-veloce):not(.template-nova) .catalog-card.cc-v2 .cc-cta {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
    background: var(--brand, #8A6B58);
    color: var(--ink-btn-text, #FFFFFF);
    box-shadow: 0 6px 14px -6px var(--shadow-brand, rgba(138, 107, 88, 0.45));
}

body:not(.template-veloce):not(.template-nova) .catalog-card.cc-v2 .cc-cta-text {
    display: none;
}

/* ==========================================================================
   TEMPLATE 2 : VÉLOCE (Poster Plein Cadre / Full-Bleed + Verre Dépoli Néon)
   ========================================================================== */
body.template-veloce .catalog-card.cc-v2 {
    border-radius: 24px;
    aspect-ratio: 3 / 4.15;
    background: #0B1020;
    border: 1px solid rgba(255, 255, 255, 0.12);
    justify-content: flex-end;
}

body.template-veloce .catalog-card.cc-v2 .cc-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-bottom: none;
}

body.template-veloce .catalog-card.cc-v2 .cc-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8, 12, 24, 0.08) 0%,
        rgba(8, 12, 24, 0.0) 35%,
        rgba(8, 12, 24, 0.78) 68%,
        rgba(8, 12, 24, 0.96) 100%
    );
    pointer-events: none;
    z-index: 1;
}

body.template-veloce .catalog-card.cc-v2 .cc-video-badge {
    bottom: auto;
    top: 10px;
    right: 10px;
}

body.template-veloce .catalog-card.cc-v2 .cc-discount-badge {
    top: 42px;
    right: 10px;
}

body.template-veloce .catalog-card.cc-v2 .cc-body {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    margin-top: auto;
    padding: 12px 14px 14px;
    background: transparent;
}

body.template-veloce .catalog-card.cc-v2 .cc-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 16.5px;
    font-weight: 700;
    color: #FFFFFF;
}

body.template-veloce .catalog-card.cc-v2 .cc-desc {
    display: none;
}

body.template-veloce .catalog-card.cc-v2 .cc-footer {
    border-top-color: rgba(255, 255, 255, 0.14);
    padding-top: 9px;
}

body.template-veloce .catalog-card.cc-v2 .cc-price {
    color: var(--brand, #38BDF8);
    font-size: 18.5px;
}

body.template-veloce .catalog-card.cc-v2 .cc-price small {
    color: rgba(226, 232, 240, 0.78);
}

body.template-veloce .catalog-card.cc-v2 .cc-cta {
    width: auto !important;
    flex: 0 0 auto !important;
    height: 34px;
    padding: 0 12px !important;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--brand, #38BDF8);
    color: #FFFFFF;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* ==========================================================================
   TEMPLATE 3 : NOVA (Retail Moderne Épuré + Pilule Haute-Conversion)
   ========================================================================== */
body.template-nova .catalog-card.cc-v2 {
    background: var(--bg-card, #FFFFFF);
    border: 1.5px solid var(--border, rgba(15, 23, 42, 0.09));
    border-radius: 22px;
    box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.14);
}

body.template-nova .catalog-card.cc-v2 .cc-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid var(--border, rgba(15, 23, 42, 0.06));
}

body.template-nova .catalog-card.cc-v2 .cc-body {
    padding: 13px 15px 15px;
}

body.template-nova .catalog-card.cc-v2 .cc-name {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 15.5px;
    font-weight: 800;
}

body.template-nova .catalog-card.cc-v2 .cc-desc {
    font-size: 12px;
    line-height: 1.45;
    color: var(--ink-400, #64748B);
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-top: 2px;
}

body.template-nova .catalog-card.cc-v2 .cc-cta {
    width: auto !important;
    flex: 0 0 auto !important;
    height: 36px;
    padding: 0 14px !important;
    border-radius: 999px;
    background: var(--brand, #E11D48);
    color: var(--ink-btn-text, #FFFFFF);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 6px 16px -6px var(--shadow-brand, rgba(225, 29, 72, 0.45));
}

/* En mode mobile dans la roue, garder les cartes Nova aérées sans texte long */
@media (max-width: 768px) {
    body.template-nova .catalog-card.cc-v2 .cc-desc {
        display: none;
    }
    .catalog-card.cc-v2 .cc-price {
        font-size: 16.5px;
    }
    body.template-veloce .catalog-card.cc-v2 .cc-price {
        font-size: 16px;
    }
    body.template-veloce .catalog-card.cc-v2 .cc-cta {
        height: 32px;
        padding: 0 10px !important;
        font-size: 10.5px;
    }
}
