/* /css/woocommerce.css */

/*
==========================================================================
## 1. Product Collection Section Wrapper
==========================================================================
*/

.product-collection {
    padding: var(--space-6) 0;
    text-align: center;
    background-color: var(--clr-white);
}

.product-collection-eyebrow {
    font-size: 0.75rem;
    font-weight: var(--fw-regular);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--clr-gray-700);
    margin: 0 0 var(--space-1);
    font-family: var(--font-primary);
}

.product-collection-title {
    font-size: 1.8rem;
    font-weight: var(--fw-regular);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: var(--space-6);
    font-family: var(--font-headings);
    color: var(--clr-text);
}

/*
==========================================================================
## 2. Product Grid Layout
==========================================================================
*/

.product-grid {
    display: grid;
    /* Create a 4-column grid for desktop */
    grid-template-columns: repeat(4, 1fr);
    /* Set the gap between products */
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

/*
==========================================================================
## 3. Individual Product Card Styling
==========================================================================
*/
.product-card {
    text-align: center;
}

.product-card a {
    text-decoration: none;
    color: var(--clr-text);
    display: block;
}

.product-image-container {
    position: relative;
    /* This is crucial for positioning the "SOLD OUT" badge */
    margin-bottom: var(--space-3);
    background-color: var(--clr-gray-100);
    /* A light background for consistency */
}

.product-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity var(--transition-speed);
}

.product-card:hover .product-image-container img {
    opacity: 0.9;
}

.sold-out-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--clr-white);
    padding: var(--space-1) var(--space-2);
    font-size: 0.7rem;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    border-radius: var(--border-radius-sm);
}

.product-title {
    font-family: var(--font-primary);
    /* Using the sans-serif font like the mockup */
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 var(--space-1);
    font-weight: var(--fw-medium);
    color: var(--clr-text);
}

.price {
    font-family: var(--font-headings);
    font-size: 1rem;
    color: var(--clr-gray-700);
}

/* Style for sale prices (e.g., from $99.00 to $45.00) */
.price del {
    opacity: 0.5;
    margin-right: var(--space-1);
}

.price ins {
    text-decoration: none;
    font-weight: var(--fw-bold);
    color: var(--clr-text);
}

/*
==========================================================================
## 4. "View Collection" Button
==========================================================================
*/
.collection-button-wrapper {
    margin-top: var(--space-5);
}

.view-collection-button {
    font-family: var(--font-primary);
    font-weight: var(--fw-light);
    letter-spacing: 2px;
}

/*
==========================================================================
## 5. Responsive Styles
==========================================================================
*/

/* For tablets and smaller devices */
@media (max-width: 992px) {
    .product-grid {
        /* Switch to a 2-column grid */
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For mobile phones */
@media (max-width: 768px) {
    .product-collection-title {
        font-size: 1.5rem;
    }

    .product-grid {
        /* Switch to a single-column grid */
        grid-template-columns: 1fr;
        gap: var(--space-6);
        /* Increase gap for single column view */
    }
}
