/* :root {
    --color-primary: #fb9902;
    --color-primary-dark: #e68900;
    --color-background: #fafafa;
    --color-surface: #rating-text;
    --color-text: #1a1a1a;
    --color-text-secondary: #666666;
    --color-border: #e5e5e5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 32px rgba(251, 153, 2, 0.12);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
} */

/* .list-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 60px;
} */

.list-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Card Styles */
.card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #fb9902 0%, #d48202 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover {
    border-color: #fb9902;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(251, 153, 2, 0.15);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    min-height: 170px;
}

.card-img-top {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1d29;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.card-text {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.card a {
    text-decoration: none;
    color: inherit;
}

/* Lien parent de la card */
a:has(.card) {
    text-decoration: none;
    display: block;
}

.md-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e5e5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.md-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fb9902, #e68900);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.md-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(251, 153, 2, 0.12);
    border-color: #fb9902;
}

.md-card:hover::before {
    opacity: 1;
}

/* Lien wrapper */
.md-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Zone image */
.card-image-wrapper {
    position: relative;
    width: 100%;
    padding: 32px;
    /* background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%); */
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    overflow: hidden;
}



.md-card img {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.md-card:hover img {
    transform: scale(1.05);
}

/* Corps de la carte */
.card-body {
    padding: 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;    
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    margin: 0;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 20px;
}

.card-text {
    margin-top: 0;
}

.prix {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

/* Footer */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-top: 1px solid #e5e5e5;
    gap: 12px;
}

#en_sku {
    font-size: 13px;
    font-weight: 500;
    color: #666666;
    letter-spacing: 0.3px;
}

/* Bouton moderne */
.button-add-cart {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: #fb9902;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.button-add-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.button-add-cart:hover::before {
    width: 100px;
    height: 100px;
}

.button-add-cart:hover {
    background: #d48202;
    transform: scale(1.05);
}

.button-add-cart:active {
    transform: scale(0.95);
}

.button-add-cart img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 1;
}

/* Badge optionnel */
.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fb9902;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(251, 153, 2, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .list-cards {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .card-image-wrapper {
        padding: 20px;
        min-height: 180px;
    }

    .md-card img {
        max-height: 140px;
    }

    .card-body {
        padding: 16px;
    }

    .card-title {
        font-size: 14px;
        min-height: 40px;
    }

    .prix {
        font-size: 20px;
    }

    .card-footer {
        padding: 12px 16px;
    }

    #en_sku {
        font-size: 11px;
    }

    .button-add-cart {
        width: 40px;
        height: 40px;
    }

    .button-add-cart img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .list-cards {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    body {
        padding: 0;
    }
}

/* Animation au chargement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.md-card {
    animation: fadeInUp 0.5s ease backwards;
}

.md-card:nth-child(1) { animation-delay: 0.05s; }
.md-card:nth-child(2) { animation-delay: 0.1s; }
.md-card:nth-child(3) { animation-delay: 0.15s; }
.md-card:nth-child(4) { animation-delay: 0.2s; }
.md-card:nth-child(5) { animation-delay: 0.25s; }
.md-card:nth-child(6) { animation-delay: 0.3s; }
.md-card:nth-child(n+7) { animation-delay: 0.35s; }

.card {
    animation: fadeInUp 0.5s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(n+8) { animation-delay: 0.4s; }