/* Page Home CSS */

.hero-section {
    padding: 28px 0 16px;
}
.section-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.section-head .section-title {
    text-align: left;
    margin-bottom: 0;
}
.hero-banner {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, #fff8f0 0%, #f3e1cb 100%);
}
.banner-swiper {
    width: 100%;
    height: 450px;
}
.banner-swiper .swiper-wrapper,
.banner-swiper .swiper-slide {
    height: 100%;
}
.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.hero-overlay {
    position: absolute;
    left: 6%;
    bottom: 14%;
    max-width: 420px;
    background: var(--hero-overlay-bg);
    border: 1px solid rgba(202, 162, 123, 0.75);
    border-radius: 18px;
    padding: 24px 26px;
    box-shadow: var(--shadow-sm);
    display: none;
}
.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 10px;
}
.hero-overlay h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}
.hero-desc {
    color: var(--text-light);
    margin-bottom: 18px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background: rgba(255, 249, 241, 0.88);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    top: 50% !important;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: var(--shadow-sm);
}
.swiper-button-next {
    right: 18px !important;
}
.swiper-button-prev {
    left: 18px !important;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
    color: var(--white);
}
.banner-swiper .swiper-button-next::after,
.banner-swiper .swiper-button-prev::after {
    display: none;
}

.category-quick .section-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.section-subtitle {
    color: var(--text-light);
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.category-card {
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, #fffbf7 0%, #f8eee2 100%);
    padding: 15px 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: 82px;
    box-shadow: 0 8px 18px rgba(95, 47, 26, 0.06);
}
.category-card:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.category-card:active,
.category-card.selected {
    background: rgba(143, 45, 34, 0.08);
    border-color: var(--primary-color);
}
.category-card span {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.98rem;
    line-height: 1.35;
    text-align: left;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}
.category-card i {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(143, 45, 34, 0.06);
    color: var(--primary-color);
    transition: var(--transition);
}
.category-card:hover i {
    background: var(--primary-color);
    color: var(--white);
}

.home-tabs {
    padding-top: 30px;
}
.home-tabs-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}
.home-tabs-head .section-title {
    text-align: left;
    margin-bottom: 0;
}
.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tab-btn {
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, #fffaf5 0%, #f3e5d6 100%);
    color: var(--text-color);
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.tab-btn:hover,
.tab-btn.active {
    border-color: var(--primary-color);
    background: linear-gradient(180deg, #a3382b 0%, var(--primary-color) 100%);
    color: var(--white);
}
.tab-btn:active {
    background: linear-gradient(180deg, #7d2319 0%, var(--primary-active) 100%);
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.home-products .product-desc {
    display: none;
}

.scene-section {
    /* background: var(--accent-color); */
    padding: 60px 0;
}
.scene-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}
.scene-image {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    max-width: 92%;
    justify-self: start;
    margin: 0 auto;
}
.scene-image img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}
.scene-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 10px;
}
.scene-desc {
    color: var(--text-light);
    margin-bottom: 18px;
}
.scene-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.scene-products .product-card {
    --product-card-height: 360px;
}
.scene-products .product-desc {
    display: none;
}

.arrivals-section .arrivals-swiper {
    padding-bottom: 28px;
}
.arrivals-section .arrivals-swiper .swiper-slide {
    height: auto;
}
.arrivals-section .swiper-scrollbar {
    background: rgba(202, 162, 123, 0.26);
}
.arrivals-section .swiper-scrollbar-drag {
    background: var(--primary-color);
}
.arrivals-section .arrival-card {
    height: 100%;
}
.arrivals-section .product-card {
    --product-card-height: 390px;
}
.arrivals-section .product-desc {
    display: none;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 32px;
}
.service-card {
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, #fffaf5 0%, #f6ebdd 100%);
    border-radius: 18px;
    padding: 20px;
}
.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f2d49a 0%, var(--accent-color) 100%);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-light);
}

.brand-panel {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-color);
}
.brand-head h3 {
    margin-bottom: 6px;
}
.brand-head p {
    color: var(--text-light);
    margin-bottom: 18px;
}
.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.brand-pill {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 8px 12px;
    text-align: center;
    font-weight: 600;
    background: linear-gradient(180deg, #f8ead1 0%, var(--accent-color) 100%);
    color: var(--heading-color);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.75rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.review-card {
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, #fffaf6 0%, #f7ecdf 100%);
    border-radius: 18px;
    padding: 18px 20px;
}
.review-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f0d9af 0%, var(--accent-color) 100%);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.review-name {
    font-weight: 600;
}
.review-meta {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

@media (min-width: 900px) {
    .hero-overlay h1 {
        font-size: 2.8rem;
    }
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 16px;
    }
    .category-card {
        min-height: 96px;
        padding: 16px 18px;
    }
    .category-card span {
        font-size: 1rem;
    }
    .home-tabs-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .scene-grid {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    }
    .scene-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .brand-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .review-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .banner-swiper {
        height: 280px;
    }
    .hero-overlay {
        position: relative;
        left: auto;
        bottom: auto;
        margin: 16px auto;
    }
    .scene-products {
        grid-template-columns: 1fr;
    }
    .arrivals-section .arrival-card {
        flex: 0 0 72%;
    }
}

@media (max-width: 640px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    .category-card {
        min-height: 72px;
        padding: 14px 16px;
    }
    .category-card span {
        font-size: 0.95rem;
    }
    .home-products .product-grid {
        grid-template-columns: 1fr;
    }
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}
