/* ============================================
   Page Shop
   ============================================ */

/* Fond fixe avec fleurs — même univers que My Account */
/* Page shop : pas de JS parallax, fond centré + animation légère */
.shop-page-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url('/public/images/background/background_flowers.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    animation: shop-bg-float 10s ease-in-out infinite;
}

@keyframes shop-bg-float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(6px, -8px); }
    50% { transform: translate(-5px, 5px); }
    75% { transform: translate(-6px, -4px); }
}

.shop-main {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 60px clamp(24px, 5vw, 120px) 80px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* En-tête de page */
.shop-header {
    margin-bottom: 48px;
}

.shop-title {
    margin: 0 0 12px 0;
    font-size: 3.5rem;
    line-height: 1.1;
}

.shop-subtitle {
    margin: 0;
    max-width: 560px;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.4;
    opacity: 0.9;
}

/* Section produits */
.shop-section {
    width: 100%;
}

.shop-category-section + .shop-category-section {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(76, 46, 139, 0.1);
}

.shop-category-heading {
    margin: 0 0 8px 0;
}

.shop-category-description {
    margin: 0 0 24px 0;
    max-width: 640px;
    line-height: 1.45;
    opacity: 0.92;
}

.shop-empty {
    text-align: center;
    padding: 80px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(76, 46, 139, 0.1);
    box-shadow: 0 18px 48px rgba(44, 18, 59, 0.06);
}

.shop-empty .shop-cta-outline {
    display: inline-flex;
    margin-top: 24px;
    padding: 12px 24px;
    border-radius: 12px;
    background: transparent;
    color: var(--color-darkpurple);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    border: 1px solid rgba(76, 46, 139, 0.25);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.shop-empty .shop-cta-outline:hover {
    background: rgba(76, 46, 139, 0.06);
    border-color: rgba(76, 46, 139, 0.35);
}

/* Grille de cartes */
.shop-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.shop-card-wrapper {
    margin: 0;
    padding: 0;
}

.shop-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(76, 46, 139, 0.12);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(44, 18, 59, 0.12);
}

.shop-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: rgba(243, 245, 251, 0.8);
    overflow: hidden;
}

.shop-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(76, 46, 139, 0.06) 0%, rgba(255, 49, 210, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.shop-card__placeholder--visible {
    opacity: 1;
}

.shop-card__placeholder-icon {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-lightpurple);
    opacity: 0.6;
}

.shop-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 20px 24px;
    flex: 1;
}

.shop-card__title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card__description {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 2.9em;
}

.shop-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 4px;
}

.shop-card__price {
    font-size: 1.125rem;
}

.shop-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    min-width: 100px;
    border-radius: 12px;
    background: var(--color-black);
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-card__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 11, 27, 0.3);
}

.shop-card__cta--disabled {
    background: rgba(76, 46, 139, 0.2);
    color: var(--color-lightpurple);
    cursor: default;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .shop-main {
        padding: 40px 20px 60px;
    }

    .shop-title {
        font-size: 2rem;
    }

    .shop-subtitle {
        font-size: 0.9375rem;
    }

    .shop-header {
        margin-bottom: 36px;
    }

    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }

    .shop-card__body {
        padding: 16px 16px 20px;
    }

    .shop-card__title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}
