/* Page Home CSS */

/* Banner Section */
.banner-section {
    margin-bottom: 40px;
}
.banner-wrapper {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Default Mobile: Show Swiper, Hide Desktop Grid */
.banner-swiper {
    display: block;
    width: 100%;
    height: auto; /* Mobile height */
}
.desktop-banner-grid {
    display: none;
}

.banner-item {
    position: relative;
    width: 100%;
    height: auto;
}
.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}
.banner-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    max-width: 60%;
}
.banner-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Desktop */
@media (min-width: 768px) {
    .banner-wrapper {
        height: auto;
    }
    .banner-swiper {
        display: block;
        height: 100%;
    }
    .desktop-banner-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        height: 100%;
    }
    .banner-content h2 {
        font-size: 2.5rem;
    }
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Featured Reviews */
.section-desc {
    text-align: center;
    margin-top: -10px;
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Home product cards (New Arrivals / Hot Sales) */
.home-products .product-desc {
    display: none;
}
.home-products .product-card {
    border: 1px solid var(--border-color);
    padding: 12px;
    box-shadow: var(--shadow-sm);
}
.home-products .product-card:hover {
    box-shadow: var(--shadow);
}
.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;
}
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 600px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.review-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    height: 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.review-text {
    font-size: 0.95rem;
}
@media (max-width: 599px) {
    .review-card {
        height: auto;
        min-height: 200px;
    }
    .review-text {
        -webkit-line-clamp: 4;
    }
}
.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.review-name {
    font-weight: 600;
}
.review-stars {
    margin-top: 2px;
    color: #f4b400;
    font-size: 0.9rem;
}
.review-text {
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0;
}

/* Services */
.services-section {
    padding: 60px 0;
    background: var(--white);
    border-top: 1px solid #eee;
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.service-item {
    text-align: center;
    padding: 20px;
    background: var(--accent-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.service-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: inline-block;
}

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