/* Page Home CSS */

/* Hero Section */
.hero-section {
    padding: 30px 0 10px;
    margin-bottom: 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
}
.hero-categories {
    background: var(--primary-color);
    color: var(--white);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 360px;
}
.hero-categories-head {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}
.hero-categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hero-categories-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.hero-categories-list li:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateX(2px);
}
.hero-categories-list a {
    color: var(--white);
    font-weight: 500;
}
.hero-categories-list i {
    color: rgba(255, 255, 255, 0.6);
}
.hero-banner {
    position: relative;
    height: 360px;
}
.banner-swiper {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}
.banner-swiper .swiper-wrapper,
.banner-swiper .swiper-slide {
    height: 100%;
    width: 100%;
}
.banner-swiper .swiper-slide {
    width: 100% !important;
}
.banner-item {
    position: relative;
    width: 100%;
    height: 100%;
}
.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
    display: block;
}
.banner-content {
    position: absolute;
    top: 50%;
    left: 7%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    padding: 28px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    box-shadow: none;
    max-width: 55%;
}
.banner-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-light);
    margin-bottom: 10px;
}
.banner-subtitle {
    margin: 10px 0 18px;
    color: var(--text-light);
}
.banner-content h2 {
    font-size: 2rem;
    margin-bottom: 6px;
}

/* Custom Swiper Arrow Styles */
.swiper-button-next,
.swiper-button-prev {
    color: var(--white);
    background: rgba(43, 35, 32, 0.4);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
    top: 50% !important;
    transform: translateY(-50%) scale(0.98);
    z-index: 10;
    margin: 0 !important;
    box-shadow: 0 6px 18px rgba(43, 35, 32, 0.25);
    backdrop-filter: blur(4px);
}
.swiper-button-next {
    right: 16px !important;
}
.swiper-button-prev {
    left: 16px !important;
}
.banner-swiper:hover .swiper-button-next,
.banner-swiper:hover .swiper-button-prev {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}
.swiper-button-next i,
.swiper-button-prev i {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
}
.swiper-button-next:active,
.swiper-button-prev:active {
    transform: translateY(-50%) scale(0.96);
}
.banner-swiper .swiper-button-next::after,
.banner-swiper .swiper-button-prev::after {
    display: none;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 240px 1fr;
        align-items: stretch;
    }
    .banner-content h2 {
        font-size: 2.6rem;
    }
}

@media (max-width: 900px) {
    .hero-categories {
        min-height: unset;
    }
    .hero-categories-list {
        display: none;
        margin-top: 4px;
    }
    .hero-categories.is-open .hero-categories-list {
        display: flex;
    }
    .hero-categories-head {
        cursor: pointer;
        position: relative;
        padding-right: 26px;
    }
    .hero-categories-head::after {
        content: "▾";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%) rotate(0deg);
        transition: transform 0.2s ease;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.95rem;
    }
    .hero-categories.is-open .hero-categories-head::after {
        transform: translateY(-50%) rotate(180deg);
    }
}

/* Product Tabs */
.home-tabs {
    padding-top: 30px;
}
.home-tabs-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}
.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.tab-btn {
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-color);
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.tab-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}
.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
@media (min-width: 900px) {
    .home-tabs-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Home product cards */
.home-products .product-desc {
    display: none;
}
.home-products .product-card {
    border: 1px solid var(--border-color);
    padding: 12px;
    box-shadow: none;
}
.home-products .product-card:hover {
    box-shadow: var(--shadow-sm);
}
.home-products .product-info h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}
.home-products .price {
    margin-bottom: 6px;
}
.home-products .product-actions {
    top: 8px;
    right: 8px;
}

/* Spotlight / Brands */
.home-spotlight {
    background: var(--bg-color);
}
.spotlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.spotlight-card {
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    gap: 20px;
}
.spotlight-card h3 {
    color: var(--white);
    margin-bottom: 8px;
}
.spotlight-card p {
    color: rgba(255, 255, 255, 0.75);
}
.spotlight-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}
.spotlight-card .btn-outline {
    border-color: var(--white);
    color: var(--white);
}
.spotlight-card .btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}
.spotlight-large {
    background: var(--primary-color);
}
.spotlight-small {
    background: var(--primary-color);
}
.brand-panel {
    margin-top: 40px;
    background: var(--surface-color);
    border-radius: 18px;
    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 rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 10px 14px;
    text-align: center;
    font-weight: 600;
    background: #f6ead8;
    color: var(--heading-color);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.78rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 900px) {
    .spotlight-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .brand-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 900px) {
    .brand-pill {
        font-size: 0.75rem;
        min-height: 40px;
        letter-spacing: 0.015em;
    }
}

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