/* ===== SHOPPING CSS ===== */

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    background: #f8fafc;
    color: #0b1120;
    line-height: 1.6;
}

.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* ----- HEADER ----- */
.shop-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}
.shop-header h1 {
    font-size: 2.4rem;
    background: linear-gradient(135deg, #0b1120, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.shop-header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* ----- SEARCH BAR ----- */
.search-box {
    width: 100%;
    max-width: 500px;
    margin: 1rem auto;
    position: relative;
}
.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 60px;
    font-size: 1rem;
    transition: 0.2s;
    background: #fff;
}
.search-box input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 4px #2563eb20;
}
.search-box .fa-search {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* ----- CATEGORIES (Horizontal Scroll) ----- */
.categories-section {
    margin-bottom: 2rem;
}
.categories-section h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}
.categories-scroll {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.categories-scroll::-webkit-scrollbar {
    height: 4px;
}
.categories-scroll::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 10px;
}
.cat-item {
    flex: 0 0 auto;
    background: #f1f5f9;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
    border: 2px solid transparent;
}
.cat-item:hover {
    background: #2563eb;
    color: #fff;
}
.cat-item.active {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1e40af;
}
.cat-item i {
    margin-right: 6px;
}

/* ============================================
   ✅ FIXED: PRODUCT CARD IMAGE
   ============================================ */
.product-card .image {
    width: 100%;
    height: 200px;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    position: relative;
}

/* ✅ इमेज हमेशा फिक्स साइज में पूरी दिखे */
.product-card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* पूरी इमेज कवर करेगी */
    transition: transform 0.3s ease;
}

/* ✅ होवर पर ज़ूम इफेक्ट (ऑप्शनल) */
.product-card:hover .image img {
    transform: scale(1.05);
}

/* ✅ अगर इमेज न हो तो आइकॉन */
.product-card .image i {
    font-size: 48px;
    color: #94a3b8;
}

/* ============================================
   ✅ FIXED: EDITOR PICK IMAGE
   ============================================ */
.editor-pick .pick-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ✅ इमेज हमेशा फिक्स साइज में पूरी दिखे */
.editor-pick .pick-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editor-pick .pick-image i {
    font-size: 60px;
    color: #94a3b8;
}

/* ===== SLIDER STYLES ===== */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
}

/* ✅ TRACK - सारी इमेजेज एक लाइन में */
.slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    height: 100%;
    width: 100%;
}

/* ✅ हर स्लाइड - 100% चौड़ाई */
.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* स्लाइडर बटन */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* डॉट्स इंडिकेटर */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2563eb;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* स्लाइड काउंटर */
.slide-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    z-index: 10;
}

/* 📱 मोबाइल रिस्पॉन्सिव */
@media (max-width: 768px) {
    .slider-container {
        max-width: 100%;
    }
    
    .slider-wrapper {
        aspect-ratio: 1 / 1;
        max-height: 400px;
    }
    
    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .slider-btn.prev {
        left: 5px;
    }
    
    .slider-btn.next {
        right: 5px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

/* ============================================
   PRODUCT GRID & CARDS
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
    margin: 1rem 0;
}
.product-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.2rem;
    border: 1px solid #e2e8f0;
    transition: 0.25s;
    position: relative;
}
.product-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 30px rgba(37,99,235,0.08);
    transform: translateY(-4px);
}
.product-card .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #2563eb;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    z-index: 5;
}
.product-card .badge.gold {
    background: #f59e0b;
}
.product-card .badge.green {
    background: #22c55e;
}

.product-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.product-card .rating {
    color: #f59e0b;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}
.product-card .price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0b1120;
}
.product-card .old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-left: 6px;
}
.product-card .discount {
    color: #22c55e;
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: 6px;
}
.product-card .btn {
    display: inline-block;
    margin-top: 0.6rem;
    background: #2563eb;
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}
.product-card .btn:hover {
    background: #1d4ed8;
}

/* ----- SECTION HEADERS ----- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0 0.8rem;
}
.section-header h2 {
    font-size: 1.5rem;
}
.section-header a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.section-header a:hover {
    text-decoration: underline;
}

/* ----- "हमारी पसंद" BIG CARD ----- */
.editor-pick {
    background: #eff6ff;
    border: 2px solid #2563eb;
    border-radius: 24px;
    padding: 1.8rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.5rem;
    margin: 1rem 0;
    align-items: center;
}

.editor-pick .pick-info h3 {
    font-size: 1.4rem;
}
.editor-pick .pick-info .why {
    background: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
    margin: 0.5rem 0;
}
.editor-pick .pick-info .btn {
    margin-top: 0.5rem;
}

/* ----- ARTICLES SECTION ----- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    margin: 1rem 0;
}
.article-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.2rem;
    border: 1px solid #e2e8f0;
    transition: 0.25s;
}
.article-card:hover {
    border-color: #2563eb;
}
.article-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}
.article-card p {
    font-size: 0.9rem;
    color: #64748b;
}
.article-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.5rem 0;
}
.article-card .tags span {
    background: #f1f5f9;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
}
.article-card .btn-sm {
    display: inline-block;
    margin-top: 0.4rem;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

/* ----- BUDGET FILTER BUTTONS ----- */
.budget-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.5rem 0 1rem;
}
.budget-filters button {
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    border: 2px solid #e2e8f0;
    background: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.budget-filters button:hover {
    border-color: #2563eb;
    background: #dbeafe;
}
.budget-filters button.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

/* ✅ FIX: Slider Track */
.slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    width: 100%;
    height: 100%;
}
.slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

/* ✅ FIX: All Images Fit in Box */
.product-card .image img,
.editor-pick .pick-image img,
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ✅ LIGHTBOX */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    font-weight: 300;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .shop-header h1 { font-size: 1.8rem; }
    
    .editor-pick {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .editor-pick .pick-image {
        max-width: 100%;
        height: 200px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .product-card {
        padding: 0.8rem;
    }
    .product-card .image {
        height: 130px;
    }
    .product-card .image img {
        object-fit: cover;
    }
    .product-card h3 { font-size: 0.9rem; }
    
    .categories-scroll { gap: 0.5rem; }
    .cat-item { font-size: 0.8rem; padding: 0.4rem 1rem; }
    
    .slider-container { max-width: 100%; }
    .slider-wrapper {
        aspect-ratio: 1 / 1;
        max-height: 400px;
    }
    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .slider-btn.prev { left: 5px; }
    .slider-btn.next { right: 5px; }
    .dot { width: 8px; height: 8px; }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    .product-card .image {
        height: 100px;
    }
    .product-card .image img {
        object-fit: cover;
    }
    .product-card .price { font-size: 1.1rem; }
    .product-card .btn { font-size: 0.75rem; padding: 0.3rem 0.8rem; }
}
/* ✅ SLIDER BASE STYLES (without !important) */
.slider-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.4s ease-in-out;
    width: 100%;
    height: 100%;
}

.slide {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
}

.btn-back {
    background: transparent;
    border: 2px solid #2563eb;
    color: #2563eb;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-back:hover {
    background: #2563eb;
    color: #fff;
}