﻿/* ========================================
   PRODUCT GRID SECTION
   ======================================== */

/* Section Container */
.product-section {
    width: 100%;
    padding: 80px 0 100px;
    background-color: #fff;
}

.product-section-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Header - Title and Button */
.product-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

.product-section-title {
    font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    font-size: 36px;
    font-weight: 400;
    font-style: italic;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.product-section-btn {
    display: inline-block;
    padding: 14px 32px;
    border: 1.5px solid #1a1a1a;
    background: transparent;
    color: #1a1a1a;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

    .product-section-btn:hover {
        background-color: #1a1a1a;
        color: #fff;
    }

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

/* ========================================
   PRODUCT CARD (Child Component)
   ======================================== */

.product-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

    .product-card:hover {
        opacity: 0.9;
    }

.product-card-link {
    display: block;
    text-decoration: none;
    overflow: hidden;
}

/* Product Image */
.product-card-image {
    width: 100%;
    padding-bottom: 133%; /* Tall portrait aspect ratio ~3:4 */
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-card-image {
    transform: scale(1.03);
}

/* Product Info */
.product-card-info {
    padding: 18px 0 0;
}

.product-card-name {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1.5;
    letter-spacing: 0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.price-compare {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

    .price-compare:empty {
        display: none;
    }

.price-current {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    letter-spacing: 0.02em;
}

/* Color Swatches (if needed) */
.product-card-colors {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .color-swatch:hover {
        transform: scale(1.15);
    }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large Desktop */
@media (max-width: 1400px) {
    .product-section-container {
        padding: 0 40px;
    }
}

/* Tablet - 4 columns */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .product-section-container {
        padding: 0 30px;
    }

    .product-section-title {
        font-size: 32px;
    }
}

/* Small Tablet - 3 columns */
@media (max-width: 991px) {
    .product-section {
        padding: 60px 0 80px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .product-section-title {
        font-size: 28px;
    }

    .product-section-header {
        margin-bottom: 40px;
    }
}

/* Mobile Large - 2 columns */
@media (max-width: 767px) {
    .product-section {
        padding: 50px 0 60px;
    }

    .product-section-container {
        padding: 0 20px;
    }

    .product-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .product-section-title {
        font-size: 26px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-card-name {
        font-size: 13px;
    }

    .price-current,
    .price-compare {
        font-size: 13px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .product-section-container {
        padding: 0 16px;
    }

    .product-section-btn {
        padding: 12px 24px;
        font-size: 10px;
    }

    .product-card-image {
        padding-bottom: 140%;
    }

    .product-card-info {
        padding: 14px 0 0;
    }
}
