/* /css/pages/home.css */

/* --- LAYOUT UTILS --- */
.section-wrapper {
    margin-bottom: 3rem;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    padding: 0 4px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-top: 4px;
}

.see-more {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: 0.2s;
}
.see-more:hover { gap: 8px; }

/* --- A. HERO SECTION --- */
.hero-wrapper {
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

.hero-banner {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-md);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 10s ease;
}
.hero-banner:hover .hero-img { transform: scale(1.05); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 500px;
    color: white;
}

.hero-badge {
    background: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-white {
    background: white;
    color: var(--dark);
    font-weight: 600;
}
.btn-white:hover { background: #f0f0f0; }

/* --- B. CATEGORY RAIL --- */
.category-rail {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}
.category-rail::-webkit-scrollbar { display: none; /* Chrome */ }

.cat-item {
    min-width: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.cat-item:hover { transform: translateY(-4px); }

.cat-icon {
    width: 65px;
    height: 65px;
    background: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    border: 1px solid var(--gray-soft);
    box-shadow: var(--shadow-sm);
    transition: 0.2s;
}

.cat-item:hover .cat-icon {
    border-color: var(--primary);
    background: #FFFBEB;
}

.cat-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
}

/* --- C. SKELETON LOADING (Premium Feel) --- */
.skeleton-card {
    background: #e0e0e0;
    border-radius: var(--radius);
    height: 280px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* --- D. PROMO BANNER --- */
.promo-banner {
    background: linear-gradient(135deg, #111827, #374151);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    margin-top: 2rem;
}

.promo-text h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.promo-text p { color: #9CA3AF; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-banner { height: 400px; } /* Taller on mobile for text */
    .hero-content { left: 1.5rem; right: 1.5rem; text-align: center; }
    .hero-title { font-size: 2.2rem; }
    .hero-actions { justify-content: center; }
    
    .promo-banner { flex-direction: column; text-align: center; gap: 1.5rem; padding: 2rem; }
    
    .cat-item { min-width: 75px; }
    .cat-icon { width: 55px; height: 55px; font-size: 1.6rem; }
}
/* /css/pages/home.css - Updated Section Layout */

.section-wrapper {
    margin-bottom: 2.5rem;
    background: #fff; /* White container */
    padding: 1.5rem 0 1.5rem 1rem; /* Left padding only */
    border-radius: 0; /* Full width feel */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-right: 1rem; /* Right padding for link */
}

.section-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
}

.see-more {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
}

/* HORIZONTAL PRODUCT SCROLL */
.product-grid {
    display: flex; /* Changed from Grid to Flex */
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 1rem; /* Space for scrollbar/shadow */
    scroll-behavior: smooth;
    padding-right: 1rem; /* End padding */
}

/* Hide Scrollbar */
.product-grid::-webkit-scrollbar { display: none; }

/* Fixed width for cards in scroll view */
.product-grid .product-card {
    flex: 0 0 160px; /* Don't shrink, fixed width */
    width: 160px;
}

@media (min-width: 768px) {
    .product-grid .product-card {
        flex: 0 0 200px; /* Wider on desktop */
        width: 200px;
    }
}