/* Home Page Specific Styles */

/* Hero Section */
.hero-section {
    position: relative;
    padding: 3.5rem 0;
    /* Increased height for airy feel */
    overflow: hidden;
    /* Background handled by .hero-bg-slider */
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.bg-slide.active {
    opacity: 1;
}

.hero-container {
    position: relative;
    z-index: 1;
    /* Ensure content is above bg */
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1440px;
    /* Expanded from 1200px */
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Homepage specific container override */
#main-content .container {
    max-width: 1440px;
    /* Expanded from 1200px */
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 420px 1fr;
        /* Increased width from 320px to fit title in one line */
    }

    .search-filter-card {
        margin-left: 3rem;
        /* Move search card right per feedback */
    }
}

.search-filter-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    /* Reduced padding */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    /* Center align all content */
}

.search-filter-card h2 {
    font-size: 1.1rem;
    /* Reduced font size */
    margin-bottom: 1rem;
    /* Reduced spacing */
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    /* Reduced spacing */
    justify-content: center;
    /* Center tabs */
}

.hero-tab {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    /* Reduced padding */
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
    /* Reduced font size */
    border-radius: var(--radius-md);
    transition: all 0.2s;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-muted);
}

.hero-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.hero-select {
    width: 100%;
    padding: 0.5rem 0;
    /* Reduced padding */
    border: none;
    border-bottom: 2px solid var(--border);
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    /* Reduced font size */
    color: var(--text-main);
    transition: border-color 0.2s;
    margin-bottom: 0.75rem;
    /* Reduced margin */
    text-align-last: center;
    /* Center select text if possible, though browser support varies */
}

.hero-select:focus {
    border-bottom-color: var(--primary);
}

.hero-submit-btn {
    width: 100%;
    margin-top: 0.5rem;
    /* Reduced margin */
    padding: 0.75rem;
    /* ensuring button is still clickable */
}

/* Hero Slider Content */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-text-slider {
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertical Center */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease-out;
    pointer-events: none;
    text-align: center;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-slide h1 {
    font-size: 3rem;
    /* Updated to 3rem per user request */
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
}

.hero-slide p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 100;
    /* Max z-index */
    padding: 0 2rem;
    /* Slight padding from absolute window edge */
}

.slider-arrow {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: white;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.8);
    /* Lighter bg for better visibility */
    color: var(--primary);
    font-weight: bold;
}

.slider-arrow:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Product Grids */
/* Product Grid definitions moved to global components.css */

/* Brands Section */
.brands-section {
    background: var(--bg-body);
}

/* Features Section */
.features-section {
    background: var(--bg-surface);
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
    height: 100%;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* --- Layout Adjustments (Per User Request) --- */

/* 1. Reduce Section Spacing for Homepage */
#main-content .section {
    padding: 1.5rem 0;
    /* Compact spacing */
}

#main-content .section-title {
    margin-bottom: 1rem;
    /* Tighter title spacing */
}

/* 2. Smaller View All Buttons (30% Reduction) */
.btn-sm-home {
    font-size: 0.85rem !important;
    padding: 0.5rem 1.2rem !important;
    height: auto !important;
}

/* 3. Original Card Styles Restoration */
/* Card styles follow global standards in components.css */