/**
 * Homepage Styles
 *
 * @package Parfumbella
 */

.homepage {
    padding-bottom: 60px;
}

.home-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
}

/* ==========================================================================
   Two Banners
   ========================================================================== */
.home-banners {
    padding: 30px 0;
}

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

.banner-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background-color: #f5f5f5;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.banner-item:hover img {
    transform: scale(1.03);
}

.banner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background-color: #e5e5e5;
    color: #999;
    font-size: 18px;
}

/* ==========================================================================
   Three Category Blocks
   ========================================================================== */
.home-blocks {
    padding: 30px 0;
}

.blocks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.block-item {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: #f5f5f5;
    text-decoration: none;
}

.block-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.block-item:hover img {
    transform: scale(1.05);
}

.block-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

/* ==========================================================================
   Category Circles
   ========================================================================== */
.home-circles {
    padding: 50px 0;
    background-color: #f8f4f2;
}

.circles-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.circle-item:hover {
    transform: translateY(-5px);
}

.circle-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a0a10;
    border-radius: 50%;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(26, 10, 16, 0.2);
}

.circle-icon i {
    font-size: 32px;
    color: #f99d88;
}

.circle-item:hover .circle-icon {
    background-color: #f99d88;
    transform: scale(1.05);
}

.circle-item:hover .circle-icon i {
    color: #fff;
}

.circle-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a0a10;
    text-align: center;
}

/* ==========================================================================
   Brand Logos
   ========================================================================== */
.home-brands {
    padding: 40px 0;
    background-color: #f8f4f2;
}

.brands-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.brand-item img {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.2s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-placeholder {
    color: #999;
    font-size: 14px;
}

/* ==========================================================================
   Products + Blog Featured Section
   ========================================================================== */
.home-featured {
    padding: 40px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Products Slider */
.featured-products .products-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.products-placeholder {
    color: #999;
    font-size: 14px;
    padding: 40px;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 8px;
}

/* Blog List */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    background-color: #f8f4f2;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.blog-item:hover {
    background-color: #f0ebe8;
}

.blog-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px;
    line-height: 1.3;
}

.blog-date {
    font-size: 13px;
    color: #999;
}

.blog-placeholder {
    color: #999;
    font-size: 14px;
    padding: 40px;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 8px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-products .products-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .blocks-grid {
        grid-template-columns: 1fr;
    }

    .circles-grid {
        flex-wrap: wrap;
        gap: 24px;
    }

    .circle-icon {
        width: 80px;
        height: 80px;
    }

    .circle-icon i {
        font-size: 26px;
    }

    .featured-products .products-slider {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .circles-grid {
        gap: 16px;
    }

    .circle-icon {
        width: 70px;
        height: 70px;
    }

    .circle-icon i {
        font-size: 22px;
    }

    .circle-label {
        font-size: 12px;
    }
}
