/* Page Wrapper */
.products-page {
    padding: 60px 0;
    background: var(--background, #fcfaf2); /* रोयल क्रिम ब्याकग्राउन्ड */
}

/* Header Section */
.products-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 50px 20px;
    background: linear-gradient(135deg, var(--primary, #7a0c10), var(--secondary, #c9a227));
    color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(122, 12, 12, 0.15);
}

.products-header h1 {
    font-size: 38px;
    margin-bottom: 12px;
    font-family: 'Georgia', serif;
}

.products-header p {
    font-size: 16px;
    opacity: 0.95;
}

/* Controls (Search & Filters) */
.products-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.search-wrapper {
    display: flex;
    flex: 2;
    min-width: 300px;
    border-radius: 30px; /* गोलो र प्रिमियम लुक */
    overflow: hidden;
    background: white;
    border: 2px solid rgba(201,162,39,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: 0.3s;
}

.search-wrapper:focus-within {
    border-color: var(--primary, #7a0c10);
    box-shadow: 0 4px 20px rgba(122, 12, 12, 0.1);
}

.search-box {
    width: 100%;
    padding: 14px 20px;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
}

.search-btn {
    background: var(--primary, #7a0c10);
    color: white;
    border: none;
    padding: 0 25px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.search-btn:hover {
    background: #5c070a;
}

.filter {
    flex: 1;
    min-width: 160px;
    padding: 12px 20px;
    border-radius: 30px;
    border: 2px solid rgba(201,162,39,0.3);
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: 0.3s;
}

.filter:focus {
    border-color: var(--primary, #7a0c10);
}

/* 🎯 PRODUCTS GRID FIX (कार्डहरू टाँसिने समस्या चट् पार्ने खण्ड) */
.products-grid {
    display: grid;
    /* ४ वटा कोलम टकाटक मिल्ने र ग्याप कडा राख्ने */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px; /* कार्डहरू बीच बबाल ३० पिक्सेलको दूरी भाई */
    padding: 10px 0;
}
/* ==========================================
   🎯 FINAL LARAVEL PAGINATION FIX (ठाडो लिस्ट हटाउने मास्टर कमाण्ड)
   ========================================== */

.pagination-wrapper {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid rgba(201,162,39,0.15);
    width: 100%;
}

/* 💡 मुख्य फिक्स: लाराभेलको बुटस्ट्र्याप लिस्ट (ul) लाई तेर्सो पार्ने र डट हटाउने भाई */
.pagination-wrapper ul.pagination {
    display: flex !important;
    flex-direction: row !important; /* जबरजस्ती तेर्सो पार्ने */
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important; /* बटनहरू बीचको दूरी */
    list-style: none !important; /* कुरुप डटहरू सफा */
    padding: 0 !important;
    margin: 0 auto 15px auto !important;
    flex-wrap: wrap !important;
}

/* 💡 लिस्ट आइटम (li) को डिफल्ट मार्जिन र डट सफा गर्ने */
.pagination-wrapper ul.pagination li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
}

/* 💡 "Showing 1 to 12 of 30 results" लाई मिल्दो बनाउने */
.pagination-wrapper p.text-sm,
.pagination-wrapper .text-muted {
    text-align: center !important;
    color: #666 !important;
    font-size: 14px !important;
    font-style: italic !important;
    margin-top: 10px !important;
    display: block !important;
    width: 100% !important;
}

/* 💡 प्रत्येक गोलो बटन (a र span) को रोयल डिजाइन भाई */
.pagination-wrapper ul.pagination li a,
.pagination-wrapper ul.pagination li span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 14px !important; /* Previous र Next को लागि अलि बढी स्पेस */
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--primary, #7a0c10) !important;
    background: white !important;
    border: 2px solid rgba(201,162,39,0.25) !important;
    border-radius: 30px !important; /* सुन्दर क्याप्सुल/गोलो लुक भाई */
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

/* 🔥 एक्टिभ पेज (Active Page) मा देखिने गाढा रातो/गोल्ड रङ भाई */
.pagination-wrapper ul.pagination li.active span,
.pagination-wrapper ul.pagination li.page-item.active .page-link {
    background: var(--primary, #7a0c10) !important;
    color: white !important;
    border-color: var(--primary, #7a0c10) !important;
    box-shadow: 0 6px 15px rgba(122, 12, 12, 0.2) !important;
}

/* 🖱️ माउस लैजाँदा (Hover Effects) */
.pagination-wrapper ul.pagination li a:hover {
    background: rgba(122, 12, 12, 0.05) !important;
    border-color: var(--primary, #7a0c10) !important;
    transform: translateY(-2px) !important;
}

/* 🚫 डिसेबल भएका बटनहरू (जस्तै पहिलो पेजमा हुँदा Previous) */
.pagination-wrapper ul.pagination li.disabled span {
    color: #ccc !important;
    background: #f5f5f5 !important;
    border-color: #e0e0e0 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7 !important;
}

/* लाराभेलको पुरानो ठूलो SVG लुकाउने सुरक्षा घेरा भाई */
.pagination-wrapper svg {
    display: none !important;
}