/* =========================================
   1. GLOBAL RESET & FONTS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f4f9; /* हल्का ग्रे बैकग्राउंड */
    color: #333;
    padding-bottom: 50px;
}

/* =========================================
   2. NAVBAR & HEADER
   ========================================= */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky; /* नेविगेशन बार ऊपर चिपका रहेगा */
    top: 0;
    z-index: 1000; /* सबसे ऊपर रहे */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: #2563eb; /* ब्रांड कलर (Blue) */
    font-size: 24px;
    font-weight: bold;
}

/* --- Search Bar Styling (Fix) --- */
.search-box {
    display: flex;
    background: #f1f1f1;
    border-radius: 30px;
    padding: 5px 15px;
    width: 40%; /* स्क्रीन का 40% लेगा */
    align-items: center;
}

#search-input {
    border: none;
    background: transparent;
    outline: none;
    padding: 10px;
    width: 100%;
    font-size: 16px;
    color: #333;
}

.search-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #666;
    font-size: 18px;
}

.search-btn:hover {
    color: #2563eb;
}

.cart-icon {
    font-size: 22px;
    cursor: pointer;
    color: #333;
}

/* =========================================
   3. SLIDER SECTION (Image & Video)
   ========================================= */
.slider-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 5%;
}

.slider-container {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden; /* कोने गोल रखने के लिए */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: #000; /* वीडियो लोड होने से पहले काला दिखे */
}

/* वीडियो और इमेज दोनों के लिए */
.item img, .item video {
    width: 100%;
    height: auto; 
    max-height: 400px; /* ज्यादा बड़ा न हो */
    object-fit: cover; /* कटे नहीं, फिट हो जाए */
    display: block;
}

/* Slider Animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: 0.6} 
    to {opacity: 1}
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

/* =========================================
   4. FILTER BUTTONS
   ========================================= */
.filter-container {
    text-align: center;
    margin: 30px 0;
    padding: 0 10px;
}

.filter-btn {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    background-color: #e2e8f0;
    color: #333;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #2563eb; /* Active होने पर नीला */
    color: white;
}

/* =========================================
   5. PRODUCT GRID & CARDS
   ========================================= */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-title {
    margin-bottom: 20px;
    font-size: 22px;
    color: #1e293b;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive Grid */
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* हाथ का निशान आएगा */
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px); /* ऊपर उठने का इफेक्ट */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.image-container {
    width: 100%;
    height: 200px;
    background-color: #f8f8f8;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* इमेज डिब्बे में फिट रहेगी */
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05); /* होवर करने पर इमेज थोड़ी ज़ूम होगी */
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; /* नाम लम्बा हो तो ... आएगा */
}

.price-row {
    display: flex;
    align-items: center;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #2563eb;
}

/* =========================================
   6. FOOTER & MOBILE RESPONSIVE
   ========================================= */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background-color: #1e293b;
    color: white;
}

.social-links a {
    color: white;
    margin: 0 10px;
    font-size: 20px;
}

/* मोबाइल के लिए बदलाव */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        width: 100%; /* मोबाइल में सर्च बार पूरा चौड़ा */
    }
    
    .slider-container {
        height: auto;
    }
}