/* Home Page Responsive Styles */

/* Override inline styles for responsive design */
.home-hero {
    text-align: center;
    padding: 80px 20px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero h1 {
    font-size: 48px !important;
    font-weight: 300 !important;
    margin-bottom: 20px !important;
    letter-spacing: 2px !important;
}

.home-hero p {
    font-size: 16px !important;
    color: #6b6b6b !important;
    letter-spacing: 1px !important;
}

.product-gallery-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.product-gallery-section h2 {
    text-align: center;
    font-size: 24px !important;
    font-weight: 300 !important;
    margin-bottom: 60px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

/* Responsive - Tablet */
@container device (max-width: 1024px) {
    .home-hero {
        padding: 60px 20px !important;
        min-height: 50vh !important;
    }

    .home-hero h1 {
        font-size: 36px !important;
    }

    .product-gallery-section {
        padding: 40px 20px !important;
    }

    .product-gallery-section h2 {
        font-size: 20px !important;
        margin-bottom: 40px !important;
    }

    .product-gallery-section .product-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
}

/* Responsive - Mobile */
@container device (max-width: 768px) {
    .home-hero {
        padding: 40px 15px !important;
        min-height: 40vh !important;
    }

    .home-hero h1 {
        font-size: 28px !important;
        margin-bottom: 15px !important;
        letter-spacing: 1px !important;
    }

    .home-hero p {
        font-size: 14px !important;
    }

    .product-gallery-section {
        padding: 30px 0 !important;
    }

    .product-gallery-section h2 {
        font-size: 18px !important;
        margin-bottom: 30px !important;
        padding: 0 15px !important;
    }

    .product-gallery-section .product-gallery {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        padding: 0 !important;
    }
}

/* Responsive - Extra Small */
@container device (max-width: 480px) {
    .home-hero {
        padding: 30px 10px !important;
        min-height: 35vh !important;
    }

    .home-hero h1 {
        font-size: 24px !important;
        letter-spacing: 0.5px !important;
    }

    .home-hero p {
        font-size: 13px !important;
    }

    .product-gallery-section {
        padding: 20px 0 !important;
    }

    .product-gallery-section h2 {
        font-size: 16px !important;
        margin-bottom: 20px !important;
        padding: 0 10px !important;
    }

    .product-gallery-section .product-gallery {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 !important;
    }
}

/* Categories/Families Section */
.categories-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
}

.categories-section h2 {
    text-align: center;
    font-size: 32px !important;
    font-weight: 300 !important;
    margin-bottom: 50px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-card {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card a {
    display: block;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.category-card img {
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.category-card:hover::after {
    background: rgba(0, 0, 0, 0.5);
}

.category-name {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    color: white;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Responsive categories */
@container device (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .category-name {
        font-size: 24px;
    }
}

@container device (max-width: 768px) {
    .categories-section {
        padding: 0 15px;
        margin: 40px auto;
    }

    .categories-section h2 {
        font-size: 24px !important;
        margin-bottom: 30px !important;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-card {
        aspect-ratio: 16/9;
    }

    .category-name {
        font-size: 32px;
    }
}

@container device (max-width: 480px) {
    .categories-section {
        padding: 0 10px;
        margin: 30px auto;
    }

    .categories-section h2 {
        font-size: 20px !important;
        margin-bottom: 25px !important;
    }

    .categories-grid {
        gap: 15px;
    }

    .category-name {
        font-size: 28px;
        letter-spacing: 1px;
    }
}

/* Hover effect for featured products */
.product-gallery-section .product-item .image-wrapper {
    position: relative;
}

.product-gallery-section .product-item .image-wrapper img.image-primary {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.product-gallery-section .product-item .image-wrapper img.image-secondary {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.product-gallery-section .product-item:hover .image-wrapper img.image-primary {
    opacity: 0;
}

.product-gallery-section .product-item:hover .image-wrapper img.image-secondary {
    opacity: 1;
}
