/* =========================================
   CATEGORY PAGE — LUXURY PRODUCT GRID
========================================= */

body {
    margin: 0;
    padding: 0;
}

.luxury-loader {
    width: 40px;
    height: 40px;
    border: 1px solid #000;
    border-top: 1px solid transparent;
    border-radius: 50%;
    margin: 60px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* =========================================
   HERO (MATCHES SHOP STRUCTURE)
========================================= */

.category-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.category-hero .hero-bg {
    position: absolute;
    inset: 0;
    background: url("../assets/images/backgrounds/bg-2.webp") center center / cover no-repeat;
    z-index: 1;
}

.category-hero .hero-overlay {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);

    display: flex;
    align-items: center;
    justify-content: center;
}

.category-hero h1 {
    color: white;
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 6px;
    text-align: center;
}


/* =========================================
   PRODUCT SECTION
========================================= */

.category-products {
    padding: 100px 8%;
    background: #ffffff;
}


/* Dior-style grid:
   Not cramped.
   Strong vertical rhythm.
*/

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px 40px;
}


/* =========================================
   PRODUCT CARD
========================================= */

.product-card {
    text-decoration: none;
    color: #000;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover {
    transform: translateY(-6px);
}


/* Image wrapper */
.product-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    /* Luxury editorial proportion */
    overflow: hidden;
    background: #f4f4f4;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}


/* Info */
.product-info {
    margin-top: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0;
}

.product-info p {
    margin-top: 8px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.8;
}


/* =========================================
   LOADING
========================================= */

.loading {
    text-align: center;
    margin-top: 60px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    opacity: 0.6;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
}

@media (max-width: 600px) {

    .category-hero {
        height: 45vh;
    }

    .category-hero h1 {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .category-products {
        padding: 60px 6%;
    }
}

.product-card {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-image img {
    transition: transform 1s ease;
}

.product-card:hover img {
    transform: scale(1.06);
}
