/**
 * lakay-carousel.css — Version 3.0
 * Lakay Marketplace
 */

/* ===== IMPORT FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&family=Fraunces:wght@700&display=swap');

/* ===== VARIABLES ===== */
:root {
    --lk-blue:         #00209F;
    --lk-red:          #D21034;
    --lk-gold:         #F5A623;
    --lk-green:        #2E7D32;
    --lk-bg:           #EEF0F8;
    --lk-white:        #FFFFFF;
    --lk-text:         #1A1A2E;
    --lk-muted:        #6B7280;
    --lk-border:       #E2E5F0;
    --lk-card-radius:  14px;
    --lk-shadow:       0 2px 12px rgba(0,32,159,0.08);
    --lk-shadow-hover: 0 16px 40px rgba(0,32,159,0.18);
}

/* ===== SECTION ===== */
.lk-section {
    padding: 56px 24px 64px;
    background: linear-gradient(150deg, #EEF0F8 0%, #E6EAF6 100%);
    position: relative;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
}

.lk-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 320px; height: 320px;
    background: rgba(0,32,159,0.05);
    border-radius: 50%;
    pointer-events: none;
}

.lk-section::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 200px; height: 200px;
    background: rgba(210,16,52,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.lk-empty {
    text-align: center;
    color: var(--lk-muted);
    padding: 40px;
    font-family: 'DM Sans', sans-serif;
}

/* ===== EN-TÊTE ===== */
.lk-header-ca {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.lk-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lk-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--lk-red);
}

.lk-title {
    font-family: 'Fraunces', serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--lk-blue);
    margin: 0;
    line-height: 1.2;
}

/* ===== BOUTONS NAV ===== */
.lk-nav { display: flex; gap: 10px; }

.lk-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--lk-blue);
    background: transparent;
    color: var(--lk-blue);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    line-height: 1;
}

.lk-btn:hover, .lk-btn:focus {
    background: var(--lk-blue);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0,32,159,0.3);
}

/* ===== CARTE PRODUIT ===== */
.lk-card {
    background: var(--lk-white);
    border-radius: var(--lk-card-radius);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid transparent;
}

.lk-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--lk-shadow-hover);
    border-color: rgba(0,32,159,0.08);
}

/* ===== IMAGE ===== */
.lk-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #EEF0F8;
}

.lk-img-wrap img,
.lk-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.lk-card:hover .lk-img {
    transform: scale(1.08);
}

.lk-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--lk-muted);
}

/* ===== BADGES ===== */
.lk-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.lk-badge-sale { background: var(--lk-red); color: white; }
.lk-badge-new  { background: var(--lk-blue); color: white; }

.lk-badge-pct {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FFF3CD;
    color: #7A4F00;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* ===== OVERLAY HOVER — renommé .lk-card-overlay pour éviter conflit ===== */
.lk-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,32,159,0.82), rgba(0,10,80,0.88));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.lk-card:hover .lk-card-overlay {
    opacity: 1;
}

.lk-overlay-btn {
    background: white;
    color: var(--lk-blue);
    border: none;
    padding: 11px 26px;
    border-radius: 30px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transform: translateY(12px);
    transition: transform 0.3s ease, background 0.2s, color 0.2s;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    letter-spacing: 0.2px;
}

.lk-card:hover .lk-overlay-btn {
    transform: translateY(0);
}

.lk-overlay-btn:hover {
    background: var(--lk-red);
    color: white;
}

/* ===== CORPS ===== */
.lk-body {
    padding: 16px 16px 10px;
    flex: 1;
}

.lk-category {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--lk-muted);
    margin-bottom: 6px;
}

.lk-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--lk-text);
    line-height: 1.45;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.lk-name a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.lk-name a:hover { color: var(--lk-blue); }

/* ===== ÉTOILES ===== */
.lk-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 10px;
}

.lk-star       { color: var(--lk-gold); font-size: 13px; }
.lk-star-empty { color: #D1D5DB; font-size: 13px; }

.lk-rating-count {
    font-size: 11px;
    color: var(--lk-muted);
    margin-left: 4px;
}

/* ===== PRIX ===== */
.lk-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.lk-price-sale {
    font-size: 19px;
    font-weight: 700;
    color: var(--lk-red);
}

.lk-price-regular {
    font-size: 13px;
    color: var(--lk-muted);
    text-decoration: line-through;
}

.lk-price-only {
    font-size: 19px;
    font-weight: 700;
    color: var(--lk-blue);
}

/* ===== SÉPARATEUR + BOUTON ===== */
.lk-divider {
    height: 1px;
    background: var(--lk-border);
    margin: 0 16px;
}

.lk-footer-ca { padding: 12px 16px 16px; }

/* Bouton panier — NE PAS appeler .lk-cart-btn pour eviter conflit avec header */
.lk-add-btn {
    display: block;
    width: 100%;
    background: var(--lk-blue);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 11px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s;
    box-shadow: 0 2px 8px rgba(0,32,159,0.15);
}

.lk-add-btn:hover {
    background: var(--lk-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(210,16,52,0.25);
}

.lk-add-btn-outline {
    background: transparent;
    color: var(--lk-blue);
    border: 2px solid var(--lk-blue);
    box-shadow: none;
}

.lk-add-btn-outline:hover {
    background: var(--lk-blue);
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .lk-section   { padding: 36px 16px 48px; }
    .lk-title     { font-size: 22px; }
    .lk-eyebrow   { font-size: 10px; }
    .lk-img-wrap  { height: 160px; }
    .lk-name      { min-height: auto; }

    /* Overlay visible au tap sur mobile */
    .lk-card-overlay {
        opacity: 0;
        pointer-events: none;
    }

    /* Bouton "Wè Pwodwi" toujours visible sur mobile */
    .lk-overlay-btn {
        transform: translateY(0) !important;
    }
}

@media (max-width: 480px) {
    .lk-img-wrap { height: 140px; }
    .lk-body     { padding: 12px 12px 8px; }
    .lk-footer-ca   { padding: 10px 12px 14px; }
}