/* ==========================================================================
   FASHABO - ULTRA PREMIUM E-COMMERCE UI (UPDATED)
   Description: Solid premium header with search, compact flat footer, subtle background.
   ========================================================================== */

/* --- 1. Premium Variables & Reset --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Updated Background: 
       A very soft, premium bluish-grey tint (#f4f6f9) that makes the 
       pure white product cards pop out beautifully. 
    */
    --bg-main: #f4f6f9; 
    --card-bg: #ffffff;
    --text-dark: #111827;
    --text-muted: #4b5563;
    
    /* Luxury Blue Gradients */
    --gradient-primary: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    --gradient-blue: linear-gradient(135deg, #003366 0%, #00509e 100%);
    --gradient-blue-hover: linear-gradient(135deg, #002244 0%, #003f7a 100%);
    
    /* Elegant Soft Shadows (No hard borders needed) */
    --shadow-header: 0 4px 15px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 8px 24px rgba(0, 51, 102, 0.04);
    --shadow-hover: 0 15px 35px rgba(0, 51, 102, 0.1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- 2. Premium Buttons --- */
.btn-primary {
    background: var(--gradient-blue);
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 80, 158, 0.25);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--gradient-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 80, 158, 0.35);
    color: #ffffff;
}

/* --- 3. Sleek & Solid Header --- */
.main-header {
    background: #ffffff;
    z-index: 1000;
    padding: 12px 5%;
    box-shadow: var(--shadow-header);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap; /* Allows search to wrap on mobile */
}

.brand-logo a h1 {
    font-size: 26px;
    font-weight: 800;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* =========================================================
   HEADER SEARCH SYSTEM (SQUARE STYLE & FULLY RESPONSIVE)
   ========================================================= */
.header-search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 30px;
}

.search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    /* UPDATE: Changed from 50px (Circle) to 8px (Square/Rounded Edges) */
    border-radius: 8px; 
    border: 1px solid #cbd5e1; /* Added subtle border like the screenshot */
    padding: 2px 10px;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: #00509e;
    box-shadow: 0 0 0 3px rgba(0, 80, 158, 0.1);
}

.search-form input {
    border: none;
    background: transparent;
    padding: 10px 10px 10px 5px;
    width: 100%;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
}

.search-form input::placeholder {
    color: #9ca3af;
    font-size: 13px;
}

.search-form button {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-form button:hover {
    color: #00509e;
    transform: scale(1.1);
}

/* ---------------------------------------------------------
   HEADER SEARCH BAR & NAVIGATION DESKTOP LAYOUT (FIXED)
   --------------------------------------------------------- */
@media (min-width: 993px) {
    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }
    .brand-logo {
        flex-shrink: 0;
    }
    .desktop-nav {
        flex-grow: 1; 
        display: flex;
        justify-content: flex-start;
        margin-left: 20px; 
    }
    .header-search-container {
        width: 260px !important; /* Slightly adjusted width */
        min-width: 260px !important; 
        flex-shrink: 1 !important; 
        margin: 0 15px 0 auto !important; 
    }
    .header-search-container .search-form {
        width: 100% !important; 
    }
    .header-utilities {
        flex-shrink: 0;
    }
}

/* ---------------------------------------------------------
   MOBILE SEARCH BAR RESPONSIVENESS
   --------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .header-search-container {
        order: 4; /* Pushes search bar below logo and icons */
        max-width: 100%;
        margin: 15px 0 0 0 !important;
        flex: 1 1 100%;
        width: 100% !important;
    }
    
    .search-form {
        padding: 4px 15px; /* Slightly thicker padding for easy tapping on mobile */
    }
    
    .search-form input {
        font-size: 15px; /* Better readability on mobile */
    }
}

/* =========================================================
   MOBILE SEARCH TOGGLE UI (100% RESPONSIVE - ZERO LOAD)
   ========================================================= */

/* Hide the mobile toggle button & dropdown on desktop by default */
.mobile-search-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
    align-items: center;
    justify-content: center;
    /* transition রিমুভ করা হয়েছে */
}

.mobile-search-toggle:hover {
    color: #00509e;
}

.mobile-search-bar {
    display: none;
}

/* --- Mobile Specific Overrides --- */
@media screen and (max-width: 992px) {
    /* Completely hide the old inline search container on mobile */
    .header-search-container {
        display: none !important;
    }

    /* Show the new search toggle icon next to the cart */
    .mobile-search-toggle {
        display: flex;
    }

    /* Styling for the new Instant Search Bar (No Animation) */
    .mobile-search-bar {
        display: none; /* ডিফল্টভাবে লুকানো থাকবে */
        width: 100%;
        background: #ffffff;
        box-sizing: border-box;
        border-top: 1px solid #e2e8f0;
        padding: 15px 5%;
    }

    /* When active, show instantly */
    .mobile-search-bar.active {
        display: block; /* ক্লিক করলে সাথে সাথে শো করবে */
    }

    /* Adjust the search form inside the mobile dropdown */
    .mobile-search-bar .search-form {
        width: 100%;
        margin: 0 auto;
        border: 1px solid #cbd5e1;
        border-radius: 8px; /* Square edges */
        padding: 4px 10px;
    }
    
    .mobile-search-bar .search-form input {
        font-size: 15px; /* Better readability for mobile typing */
    }
}

/* Nav & Utilities */
.desktop-nav .nav-links {
    display: flex;
    gap: 30px;
}

.desktop-nav .nav-links a {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.desktop-nav .nav-links a:hover {
    color: var(--text-dark);
}

.desktop-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-blue);
    transition: var(--transition);
    border-radius: 2px;
}

.desktop-nav .nav-links a:hover::after {
    width: 100%;
}

.header-utilities {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition);
}

.cart-btn:hover {
    transform: scale(1.1);
    color: #003366;
}

.cart-counter {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--gradient-blue);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 80, 158, 0.4);
}

/* --- 5. Completely Flat & Compact Footer --- */
.main-footer {
    background: var(--gradient-primary); 
    color: #ffffff;
    padding: 40px 5% 15px; /* Extremely tight padding */
    margin-top: 50px;
    border-radius: 0; /* Removed curve - Now 100% flat */
}

/* =========================================================
   UPDATED FOOTER UI (4 COLUMNS - FULLY RESPONSIVE)
   ========================================================= */

.footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    /* Exactly 4 columns on desktop for perfect alignment */
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
    margin-bottom: 20px;
}

/* Tablet Responsiveness (2 Columns) */
@media screen and (max-width: 992px) {
    .footer-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Mobile Responsiveness (1 Column) */
@media screen and (max-width: 576px) {
    .main-footer {
        padding: 30px 5% 15px;
    }
    
    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-widget h3::after {
        left: 0;
    }
}

.footer-widget h3 {
    font-size: 15px; /* Sharper */
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    position: relative;
    padding-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    opacity: 0.6;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    font-size: 13px;
}

.footer-links li, .contact-details li {
    margin-bottom: 8px; /* Tighter list */
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.footer-links li a {
    position: relative;
}

.footer-links li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-copyright {
    text-align: center;
    padding-top: 15px;
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.1); /* Subtle divider */
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 500;
}

/* --- 6. Mobile Sidebar --- */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    transform: translateX(320px);
}

.sidebar-header {
    background: var(--gradient-blue);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.close-sidebar-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-sidebar-btn:hover {
    background: #ffffff;
    color: #003366;
    transform: rotate(90deg);
}

.sidebar-body {
    padding: 20px;
    overflow-y: auto;
}

.sidebar-nav li a,
.sidebar-categories li a {
    display: block;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #f9fafb;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.sidebar-nav li a:hover,
.sidebar-categories li a:hover {
    background: var(--gradient-blue);
    color: #ffffff;
}

.sidebar-categories h3 {
    margin: 25px 0 15px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 9998;
    transition: var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hamburger-menu {
    cursor: pointer;
    display: none;
    color: var(--text-dark);
}

/* =========================================================
   FRONTEND UI: BANNERS & PRODUCTS
   ========================================================= */

/* --- Hero Banner Slider --- */
.hero-slider-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    position: relative;
}

.hero-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 15px;
    border-radius: 16px;
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
}

.hero-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.hero-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 21 / 7; /* Desktop ultra-wide ratio */
    background: #f8fafc;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-slide:hover img {
    transform: scale(1.01);
}

/* --- Product Grid --- */
.product-grid-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.product-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* --- Pricing & Discount (FIXED FOR MOBILE OVERFLOW) --- */
.discount-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #ef4444;
    color: #ffffff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    z-index: 2;
}

.product-card h3 {
    font-size: 15px;
    color: #333333;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.price-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* FIXED: জায়গা না পেলে দাম নিচের লাইনে চলে আসবে, কেটে যাবে না */
    gap: 5px;
    margin-bottom: 15px;
    flex-grow: 1; 
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: #00509e; 
}

.old-price {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Fixed Banner cropping issue */
    .hero-slider-container { padding: 0 10px; }
    .hero-slide { 
        aspect-ratio: auto; 
        height: auto; 
    }
    .hero-slide img {
        height: auto;
        object-fit: contain; 
        display: block; 
    }

    /* Product Grid adjustments */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card img { height: 180px; }
    .product-card { padding: 12px; }
    .product-card h3 { font-size: 14px; }
    
    /* FIXED: Mobile Price Font Sizes */
    .current-price { font-size: 14px !important; } 
    .old-price { font-size: 12px !important; } 
    
    .btn-primary { padding: 8px 0; font-size: 13px; }
}

/* --- Exact Button Match from Image --- */
.btn-primary {
    display: block;
    text-align: center;
    background: #00509e; /* Exact Deep Blue */
    color: #ffffff;
    padding: 10px 0;
    border-radius: 50px; /* Pill Shape */
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 80, 158, 0.2);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #003f7a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 80, 158, 0.3);
    color: #ffffff;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Fixed Banner cropping issue */
    .hero-slider-container { padding: 0 10px; }
    .hero-slide { 
        aspect-ratio: auto; /* Remove strict aspect ratio for tablet/mobile */
        height: auto; 
    }
    .hero-slide img {
        height: auto;
        object-fit: contain; /* Ensures the whole image is visible without cropping */
        display: block; /* Removes bottom space under image */
    }

    /* Product Grid adjustments */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card img { height: 180px; }
    .product-card { padding: 12px; }
    .product-card h3 { font-size: 14px; }
    .current-price { font-size: 15px; }
    .btn-primary { padding: 8px 0; font-size: 13px; }
}

@media (max-width: 480px) {
    /* Very small screens */
    .hero-slide { aspect-ratio: auto; }
    .product-card img { height: 160px; } /* Slightly smaller image on very small phones */
}

/* =========================================================
   DYNAMIC HEADER NAVIGATION UI
   ========================================================= */

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px; /* Space between links */
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00509e; /* Fashabo Brand Blue */
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .desktop-nav {
        display: none; /* Hide on mobile, assuming you have a separate mobile sidebar menu */
    }
}

/* =========================================================
   MOBILE HAMBURGER SIDEBAR UI (FIXED ARROW ICON)
   ========================================================= */

/* Hamburger Icon (Visible only on mobile) */
.hamburger-menu {
    display: none; 
    cursor: pointer;
    color: #1e293b;
    padding: 5px;
}

/* Sidebar Overlay */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* The Sidebar Drawer */
.mobile-sidebar {
    position: fixed;
    top: 0; left: -300px; 
    width: 300px;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    transform: translateX(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 5px 0 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    transform: translateX(300px); 
}

/* Sidebar Header */
.sidebar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-top h2 {
    font-size: 20px;
    color: #00509e; 
    margin: 0;
}

/* Red Cross Icon */
.close-sidebar-btn {
    background: transparent;
    border: none;
    width: 30px; 
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    color: #ef4444; 
    transition: transform 0.3s;
}

.close-sidebar-btn:hover {
    transform: scale(1.1);
}

/* Sidebar Scrollable Area */
.sidebar-scroll-area {
    overflow-y: auto;
    flex-grow: 1;
    padding-bottom: 30px;
}

/* Main Top Links (Home, Shop All, Track Order) */
.sidebar-main-links {
    list-style: none;
    padding: 0; margin: 0;
}

.sidebar-main-links li a {
    display: block;
    padding: 8px 20px; 
    color: #334155;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s, color 0.2s;
    background: transparent; /* Reset any previous background */
}

.sidebar-main-links li a:hover {
    background: #f8fafc;
    color: #00509e;
    padding-left: 20px; /* Force reset padding on hover to avoid nudging */
}

/* Force remove any old global before pseudo elements on main links */
.sidebar-main-links li a::before {
    display: none !important;
}

/* "CATEGORIES" Title */
.sidebar-category-title {
    padding: 18px 20px 8px; 
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
}

/* Category Links */
.sidebar-category-links {
    list-style: none;
    padding: 0; margin: 0;
}

.sidebar-category-links li > a, 
.mobile-main-link {
    display: flex;
    align-items: center;
    padding: 10px 20px !important; /* Force override padding */
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s, color 0.2s;
    background: transparent; /* Reset any previous background */
}

/* PERFECT SINGLE ARROW ICON (Fixed Conflict) */
.sidebar-category-links li > a::before, 
.mobile-main-link::before {
    content: '\276F' !important; /* Forces the single angle bracket */
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #475569 !important;
    margin-right: 10px !important;
    position: relative !important; /* Resets from absolute positioning if any */
    left: auto !important; /* Resets left positioning */
    transition: transform 0.2s, color 0.2s !important;
}

.sidebar-category-links li > a:hover, 
.mobile-main-link:hover {
    background: #f8fafc !important;
    color: #00509e !important;
    padding-left: 20px !important; /* Prevents text from jumping */
}

.sidebar-category-links li > a:hover::before, 
.mobile-main-link:hover::before {
    transform: translateX(3px) !important;
    color: #00509e !important;
}

/* Submenu Adjustments */
.mobile-has-submenu {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-menu-link-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-link-wrapper .mobile-main-link {
    border-bottom: none; 
    flex-grow: 1;
}

.mobile-submenu-toggle {
    background: transparent;
    border: none;
    padding: 10px 20px; 
    color: #475569;
    cursor: pointer;
}

.mobile-submenu {
    display: none;
    background: #f8fafc;
    padding: 0 0 8px 0;
    list-style: none;
}

.mobile-submenu li a {
    padding: 8px 20px 8px 40px !important; 
    border-bottom: none;
    font-size: 14px;
    color: #64748b;
    background: transparent;
}

.mobile-submenu li a::before {
    content: '-' !important;
    margin-right: 8px !important;
    font-size: 16px !important;
    color: #cbd5e1 !important;
    position: relative !important;
    left: auto !important;
}

.mobile-submenu li a:hover {
    color: #00509e !important;
    padding-left: 40px !important;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .hamburger-menu { display: block; }
    .desktop-nav { display: none; }
}

/* =========================================================
   PREMIUM TOP ANNOUNCEMENT BAR
   ========================================================= */
.top-announcement-bar {
    background: linear-gradient(135deg, #003366 0%, #00509e 100%); /* Fashabo Deep Blue Gradient */
    color: #ffffff;
    text-align: center;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 51, 102, 0.2);
}

.top-announcement-bar p {
    margin: 0;
    animation: fadeInDown 0.5s ease; /* Smooth entrance animation */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .top-announcement-bar {
        font-size: 11.5px;
        padding: 8px 10px;
    }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   PREMIUM CATEGORY PAGE & FILTER UI
   ========================================================= */

.category-page-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

.category-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-header h1 {
    font-size: 24px;
    color: #0f172a;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}

/* --- Filter Sidebar --- */
.filter-sidebar {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 20px;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e2e8f0;
}
.filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.filter-checkbox-list {
    list-style: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}
.filter-checkbox-list::-webkit-scrollbar { width: 4px; }
.filter-checkbox-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.filter-checkbox-list li {
    margin-bottom: 10px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    transition: color 0.2s;
}
.custom-checkbox:hover { color: #00509e; }
.custom-checkbox input {
    width: 16px; height: 16px;
    accent-color: #00509e;
    cursor: pointer;
}

.price-filter-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-filter-inputs input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    font-size: 13px;
}
.price-filter-inputs input:focus { border-color: #00509e; }

.btn-filter {
    width: 100%;
    background: #00509e;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}
.btn-filter:hover { background: #003f7a; }

/* --- Top Bar (Sorting & Mobile Toggle) --- */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: white;
    outline: none;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.mobile-filter-btn {
    display: none;
    background: #0f172a;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    gap: 8px;
}

/* --- Smart Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 8px;
    background: white;
    border: 1px solid #cbd5e1;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}
.page-link:hover {
    border-color: #00509e;
    color: #00509e;
}
.page-link.active {
    background: #00509e;
    color: white;
    border-color: #00509e;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .category-layout {
        grid-template-columns: 1fr;
    }
    
    .mobile-filter-btn {
        display: flex; /* Show filter button on mobile */
    }

    .filter-sidebar {
        position: fixed;
        top: 0; left: 0;
        width: 280px; height: 100vh;
        z-index: 10000;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow-y: auto;
    }
    .filter-sidebar.active {
        transform: translateX(0);
    }
    
    .filter-overlay {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9999;
        display: none;
    }
    .filter-overlay.active { display: block; }
    
    .close-filter {
        display: block !important;
        text-align: right;
        margin-bottom: 15px;
        color: #ef4444;
        font-weight: bold;
        cursor: pointer;
    }
}
.close-filter { display: none; }

/* =========================================================
   PREMIUM SINGLE PRODUCT PAGE UI
   ========================================================= */

.single-product-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* --- Image Gallery --- */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.main-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

.thumbnail-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.thumbnail-list::-webkit-scrollbar { display: none; }

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}
.thumbnail-item.active { border-color: #00509e; }
.thumbnail-item img {
    width: 100%; height: 100%; object-fit: cover;
}

/* --- Product Info --- */
.product-info-wrapper {
    display: flex;
    flex-direction: column;
}

.product-breadcrumb {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.product-page-title {
    font-size: 28px;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
}

.product-page-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #e2e8f0;
}

.price-large {
    font-size: 32px;
    font-weight: 800;
    color: #00509e;
}
.price-strike {
    font-size: 18px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}

/* --- Variation Selection --- */
.variation-group {
    margin-bottom: 25px;
}
.variation-title {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.var-pill {
    position: relative;
}
.var-pill input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
.var-pill label {
    display: block;
    padding: 10px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}
.var-pill input:checked + label {
    background: #eff6ff;
    border-color: #00509e;
    color: #00509e;
}

/* --- Actions & Stock --- */
.stock-status {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.in-stock { color: #16a34a; }
.low-stock { color: #ea580c; }
.out-of-stock { color: #dc2626; }

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
    width: 120px;
}
.qty-btn {
    width: 40px; height: 45px;
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: #475569;
}
.qty-input {
    width: 40px; height: 45px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    outline: none;
    background: transparent;
}

.btn-add-cart {
    flex-grow: 1;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-add-cart:hover { background: #00509e; }

/* Mobile Sticky Bar */
.mobile-sticky-action { display: none; }

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .single-product-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 80px; /* Space for sticky cart */
    }
    .main-image-wrapper img { max-height: 400px; }
    
    /* Sticky Bottom Bar for Mobile */
    .mobile-sticky-action {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: #ffffff;
        padding: 15px;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
        z-index: 999;
        gap: 10px;
    }
    .mobile-sticky-action .btn-add-cart {
        padding: 15px;
        font-size: 15px;
    }
}

/* =========================================================
   PREMIUM CHECKOUT & AJAX CART PROCESSING UI
   ========================================================= */
.checkout-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

.checkout-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
    margin-bottom: 25px;
}

.checkout-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

/* Shipping Zone Selector Grid */
.zone-selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.zone-option {
    position: relative;
}
.zone-option input {
    position: absolute;
    opacity: 0;
}
.zone-option label {
    display: block;
    padding: 15px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: #475569;
    transition: all 0.3s ease;
}
.zone-option input:checked + label {
    border-color: #00509e;
    background: #eff6ff;
    color: #00509e;
}

/* =========================================================
   NEW DROPDOWN PAYMENT SELECTOR UI
   ========================================================= */

.payment-method-select {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background-color: #f8fafc;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Custom Arrow Icon for Premium Look */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.payment-method-select:hover {
    border-color: #cbd5e1;
    background-color: #ffffff;
}

.payment-method-select:focus {
    border-color: #00509e;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 80, 158, 0.1);
}

.payment-method-select option {
    font-weight: 600;
    padding: 10px;
}

/* AJAX Coupon Input Area */
.coupon-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.coupon-input-group input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    font-weight: 600;
}
.btn-coupon-apply {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* Order Summary Invoice List */
.invoice-summary-list {
    list-style: none;
    padding: 0; margin: 0 0 20px 0;
}
.invoice-summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 14px;
    color: #475569;
    border-bottom: 1px dashed #e2e8f0;
}
.invoice-summary-list li.grand-total {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    border-bottom: none;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .checkout-container { grid-template-columns: 1fr; gap: 20px; }
    .payment-methods-grid { grid-template-columns: repeat(2, 1fr); }
    .zone-selector-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   PREMIUM CHECKOUT PAGE FIXES & RESPONSIVENESS
   ========================================================= */

/* --- General Form Elements --- */
.checkout-card .form-group {
    margin-bottom: 20px;
}

.checkout-card label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.checkout-card input[type="text"],
.checkout-card input[type="tel"],
.checkout-card textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 15px;
    color: #0f172a;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for fixing broken layouts */
}

.checkout-card input[type="text"]:focus,
.checkout-card input[type="tel"]:focus,
.checkout-card textarea:focus {
    border-color: #00509e;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 80, 158, 0.1);
}

/* --- Form Grids --- */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    /* Stack the main layout on tablets and smaller */
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* Stack internal grids on mobile */
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Stack shipping zones */
    .zone-selector-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Stack payment methods into 2 columns instead of 4 */
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    /* Stack payment methods into 1 column for very small screens */
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-card {
        padding: 20px 15px;
    }
}

/* =========================================================
   CHECKOUT PAGE: ORDER ITEMS SUMMARY UI
   ========================================================= */
.checkout-items-list {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #e2e8f0;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}

.checkout-item:last-child {
    margin-bottom: 0;
}

.checkout-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.checkout-item-info {
    flex-grow: 1;
}

.checkout-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3px;
    line-height: 1.3;
}

.checkout-item-meta {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.checkout-item-price {
    font-size: 15px;
    font-weight: 800;
    color: #00509e;
    text-align: right;
    min-width: 80px;
}

/* =========================================================
   CHECKOUT: CART ITEM CONTROLS (QTY & REMOVE)
   ========================================================= */
.checkout-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
}

.qty-control {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
}

.qty-control button {
    background: #f8fafc;
    border: none;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: #475569;
    transition: all 0.2s;
}

.qty-control button:hover {
    background: #e2e8f0;
    color: #00509e;
}

.qty-control span {
    width: 26px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.btn-remove-item {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    padding: 0;
}

.btn-remove-item:hover {
    color: #dc2626;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .checkout-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .checkout-item-price {
        text-align: left;
        margin-top: 5px;
    }
}

/* =========================================================
   ADVANCED ORDER TRACKING UI
   ========================================================= */

.track-order-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 15px;
}

/* --- Search Box --- */
.track-search-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    text-align: center;
    margin-bottom: 40px;
}

.track-search-card h2 {
    font-size: 28px;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 10px;
}

.track-search-card p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 30px;
}

.track-input-group {
    display: flex;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.track-input-group input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    color: #0f172a;
    transition: all 0.3s;
    background: #f8fafc;
}
.track-input-group input:focus {
    border-color: #00509e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 80, 158, 0.1);
}

.btn-track {
    background: #00509e;
    color: #ffffff;
    padding: 0 35px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}
.btn-track:hover { background: #0f172a; }

/* --- Tracking Timeline --- */
.tracking-result-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    padding: 40px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.tracking-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 20px 0 50px;
    padding: 0 20px;
}
.tracking-timeline::before {
    content: '';
    position: absolute;
    top: 24px; left: 40px; right: 40px;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}

.tracking-progress-bar {
    position: absolute;
    top: 24px; left: 40px;
    height: 4px;
    background: #16a34a;
    z-index: 1;
    transition: width 1s ease-in-out;
}
.tracking-progress-bar.cancelled { background: #dc2626; }

.track-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 80px;
}

.track-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #e2e8f0;
    color: #94a3b8;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
    transition: all 0.4s ease;
}

.track-label {
    font-size: 13px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Step States */
.track-step.completed .track-icon {
    border-color: #16a34a; background: #16a34a; color: #ffffff;
}
.track-step.completed .track-label { color: #16a34a; }

.track-step.active .track-icon {
    border-color: #00509e; background: #00509e; color: #ffffff;
    box-shadow: 0 0 0 6px rgba(0, 80, 158, 0.15);
}
.track-step.active .track-label { color: #00509e; }

.track-step.cancelled .track-icon {
    border-color: #dc2626; background: #dc2626; color: #ffffff;
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.15);
}
.track-step.cancelled .track-label { color: #dc2626; }

/* --- Order Details Grid inside Tracking --- */
.track-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    border-top: 2px dashed #e2e8f0;
    padding-top: 30px;
}

.track-info-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.track-info-box h4 { margin-top: 0; margin-bottom: 15px; color: #0f172a; border-bottom: 1px solid #cbd5e1; padding-bottom: 10px; }
.track-info-box p { font-size: 14px; color: #475569; margin: 8px 0; line-height: 1.5; }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .track-input-group { flex-direction: column; }
    .btn-track { padding: 16px; width: 100%; }
    .track-details-grid { grid-template-columns: 1fr; }
    
    .tracking-timeline { flex-direction: column; align-items: flex-start; gap: 30px; padding: 0; }
    .tracking-timeline::before, .tracking-progress-bar {
        width: 4px !important; height: 100%; top: 0; left: 24px; bottom: auto; right: auto;
    }
    .tracking-progress-bar { height: var(--progress-height); width: 4px; }
    .track-step { display: flex; align-items: center; gap: 20px; width: 100%; text-align: left; }
    .track-icon { margin: 0; }
}

/* =========================================================
   PREMIUM SHOPPING CART UI
   ========================================================= */

.cart-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.cart-header-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

/* --- Cart Items Section --- */
.cart-items-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
    padding: 25px;
}

.cart-item-row {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px dashed #e2e8f0;
    gap: 20px;
    transition: all 0.3s;
}
.cart-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-item-image {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    margin-bottom: 5px;
    display: block;
    transition: color 0.2s;
}
.cart-item-title:hover { color: #00509e; }

.cart-item-var {
    font-size: 13px;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 10px;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 800;
    color: #00509e;
}

/* Cart Controls */
.cart-controls-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.cart-qty-box {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.cart-qty-btn {
    width: 35px;
    height: 35px;
    background: #f8fafc;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s;
}
.cart-qty-btn:hover { background: #e2e8f0; color: #0f172a; }

.cart-qty-input {
    width: 40px;
    height: 35px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    outline: none;
    border-left: 1px solid #cbd5e1;
    border-right: 1px solid #cbd5e1;
    pointer-events: none;
}

.cart-remove-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: color 0.2s;
}
.cart-remove-btn:hover { color: #b91c1c; text-decoration: underline; }

/* --- Cart Summary Section --- */
.cart-summary-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
    padding: 25px;
    position: sticky;
    top: 20px;
}

.cart-summary-card h3 {
    margin-top: 0;
    font-size: 18px;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #475569;
    margin-bottom: 15px;
}
.summary-line.total {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    border-top: 2px dashed #cbd5e1;
    padding-top: 15px;
    margin-top: 5px;
}
.summary-total-val { color: #00509e; }

.checkout-btn {
    display: block;
    width: 100%;
    background: #00509e;
    color: #ffffff;
    text-align: center;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 25px;
    transition: background 0.3s;
}
.checkout-btn:hover { background: #0f172a; }

.secure-checkout-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    margin-top: 15px;
    font-weight: 600;
}

/* --- Empty Cart State --- */
.empty-cart-wrapper {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
}
.empty-cart-wrapper svg { color: #cbd5e1; margin-bottom: 20px; }
.empty-cart-wrapper h2 { color: #0f172a; margin-bottom: 10px; }
.empty-cart-wrapper p { color: #64748b; margin-bottom: 30px; }

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .cart-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .cart-item-row {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }
    
    .cart-item-image { width: 80px; height: 80px; }
    
    .cart-controls-wrapper {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
    }
}

/* =========================================================
   Transaction Input Fields for Checkout (PREMIUM LOOK)
   ========================================================= */
.trx-inputs {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    border-top: 1px dashed #7dd3fc;
    padding-top: 18px;
    width: 100%;
}

.trx-inputs input {
    width: 100%;
    padding: 14px 15px; /* বক্সটি একটু বড় করা হয়েছে প্রিমিয়াম লুকের জন্য */
    margin-bottom: 15px !important; /* বক্স দুটির মাঝে ১০০% গ্যাপ নিশ্চিত করা হলো */
    border: 1px solid #7dd3fc;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box; 
}

.trx-inputs input:last-child {
    margin-bottom: 0 !important; /* শেষের বক্সের নিচে যেন অতিরিক্ত গ্যাপ না থাকে */
}

.trx-inputs input::placeholder { 
    color: #94a3b8; 
    font-weight: 500; 
}

.trx-inputs input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* =========================================================
   ORDER DETAILS PAGE UI (100% FULLY RESPONSIVE)
   ========================================================= */

/* Main Grid Layout */
.order-details-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Left side 60%, Right side 40% */
    gap: 30px;
    align-items: start;
}

/* Standard Order Box */
.order-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.order-box-header {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 2px dashed #e2e8f0;
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Items Table */
.order-items-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 450px; /* Prevents squishing, triggers horizontal scroll on mobile */
}

.order-items-table th, 
.order-items-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    vertical-align: middle;
}

.order-items-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.order-items-table img {
    width: 50px; 
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Summary Section */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    color: #475569;
}

.summary-row strong {
    color: #0f172a;
    font-weight: 700;
}

.summary-row.total {
    font-size: 20px;
    font-weight: 800;
    color: #00509e;
    border-top: 2px dashed #cbd5e1;
    padding-top: 15px;
    margin-top: 15px;
}

/* Customer Info */
.customer-info-text {
    font-size: 15px;
    color: #334155;
    margin: 12px 0;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Payment Tracking Box */
.payment-tracking-box {
    background: linear-gradient(to bottom right, #f0f9ff, #e0f2fe);
    border: 1px dashed #38bdf8;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: inset 0 2px 10px rgba(56, 189, 248, 0.05);
}

.payment-tracking-box .order-box-header {
    border-bottom: 2px dashed #bae6fd;
    color: #0284c7;
}

.trx-text-row {
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trx-text-row strong {
    color: #0284c7;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trx-badge {
    background: #ffffff;
    color: #0f172a;
    padding: 10px 15px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 800;
    border: 1px solid #7dd3fc;
    display: inline-block;
    width: max-content;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.08);
    word-break: break-all;
}

/* Status Update Form */
.status-form-group {
    margin-bottom: 18px;
}

.status-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-form-group select, 
.status-form-group input {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    background: #f8fafc;
    color: #0f172a;
    transition: all 0.3s;
    box-sizing: border-box;
}

.status-form-group select:focus, 
.status-form-group input:focus {
    border-color: #00509e;
    box-shadow: 0 0 0 3px rgba(0, 80, 158, 0.1);
    background: #ffffff;
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES (Mobile & Tablet)
   ========================================================= */

/* Tablets & Small Laptops */
@media (max-width: 1024px) {
    .order-details-wrapper {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        gap: 20px;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .order-box, 
    .payment-tracking-box {
        padding: 20px;
    }
    
    .trx-badge {
        font-size: 14px;
        padding: 8px 12px;
        width: 100%;
        text-align: left;
    }
    
    .order-box-header {
        font-size: 16px;
    }
    
    .summary-row.total {
        font-size: 18px;
    }
}

/* =========================================================
   SHOP BY CATEGORIES UI (FRONTEND - 100% RESPONSIVE)
   ========================================================= */

.shop-category-section {
    padding: 30px 15px;
    background: transparent; /* ব্যাকগ্রাউন্ড ট্রান্সপারেন্ট করা হয়েছে যাতে সাদা কার্ডগুলো সুন্দরভাবে ফুটে ওঠে */
    max-width: 1200px;
    margin: 0 auto 30px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 24px;
    background: linear-gradient(to bottom, #00509e, #0ea5e9);
    border-radius: 5px;
}

/* --- Desktop Layout: Horizontal Scrollable Row --- */
.category-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.category-scroll-container::-webkit-scrollbar { height: 6px; }
.category-scroll-container::-webkit-scrollbar-track { background: transparent; }
.category-scroll-container::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }

/* The White Card Item (Matches your Screenshot) */
.cat-item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    min-width: 120px; /* ডেস্কটপের জন্য ফিক্সড চওড়া */
    background: #ffffff;
    padding: 15px 10px;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
}

.cat-item-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 80, 158, 0.08);
    border-color: #e0f2fe;
}

.cat-circle-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    background: #f8fafc;
    transition: transform 0.3s ease;
}

.cat-item-link:hover .cat-circle-img {
    transform: scale(1.05);
}

.cat-item-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    line-height: 1.3;
}

/* =========================================================
   Mobile Layout: 3 Column Grid (Updated for Perfect Fit)
   ========================================================= */
@media (max-width: 768px) {
    .shop-category-section {
        padding: 20px 10px;
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    /* Turn Horizontal Scroll into a 3-column Grid for Mobile */
    .category-scroll-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 100% FIXED: ৩টি কলাম */
        gap: 12px;
        overflow-x: visible; /* স্ক্রল অফ করে দেওয়া হলো */
        padding-bottom: 0;
    }
    
    .cat-item-link {
        min-width: unset; /* গ্রিডের জন্য অটোমেটিক জায়গা নিবে */
        width: 100%;
        padding: 15px 5px;
        border-radius: 12px;
    }
    
    .cat-circle-img {
        width: 60px; /* আইকন সাইজ একটু বড় করা হয়েছে ৩ কলামের সাথে মানানোর জন্য */
        height: 60px;
        margin-bottom: 10px;
    }
    
    .cat-item-name {
        font-size: 14px; /* UPDATE: 12px থেকে 14px করা হয়েছে */
        font-weight: 700; /* UPDATE: লেখা আরও স্পষ্ট করার জন্য 700 করা হয়েছে */
        line-height: 1.4; /* UPDATE: দুই লাইনের লেখার মাঝে সুন্দর গ্যাপ রাখার জন্য */
    }
}

/* Extra Small Phones */
@media (max-width: 400px) {
    .category-scroll-container {
        gap: 8px;
    }
    .cat-item-link {
        padding: 10px 4px;
        border-radius: 10px;
    }
    .cat-circle-img {
        width: 50px;
        height: 50px;
    }
    .cat-item-name {
        font-size: 13px; /* UPDATE: 11px থেকে 13px করা হয়েছে */
        font-weight: 700;
        line-height: 1.3;
    }
}

/* =========================================================
   PRODUCT CATEGORY TAG UI (FRONTEND)
   ========================================================= */

.product-cat-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0284c7;
    background: #e0f2fe;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 12px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-cat-tag:hover {
    background: #0284c7;
    color: #ffffff;
}

/* Update Product Card slightly to accommodate the tag */
.product-card h3 {
    margin-top: 5px; /* Reduced from default to keep spacing tight */
}

/* Category Page - View All Header */
.category-header-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 40px 20px;
    text-align: center;
    border-radius: 16px;
    margin: 20px auto 30px;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.category-header-banner h1 {
    color: #ffffff;
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.category-header-banner p {
    color: #94a3b8;
    font-size: 15px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .category-header-banner {
        border-radius: 0;
        margin: 0 0 20px 0;
        padding: 30px 15px;
    }
    .category-header-banner h1 { font-size: 22px; }
    .product-cat-tag { font-size: 10px; padding: 2px 6px; margin-top: 8px; }
}

/* =========================================================
   CATEGORY-WISE PRODUCT BLOCKS (FRONTEND UI)
   ========================================================= */

.category-block {
    max-width: 1200px;
    margin: 0 auto 40px;
    background: #ffffff;
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.category-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}

.category-block-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-block-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 24px;
    background: linear-gradient(to bottom, #00509e, #0ea5e9);
    border-radius: 5px;
}

/* Updated View All Button (Matches Buy Now Gradient) */
.view-more-btn {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 18px;
    background: linear-gradient(135deg, #00509e 0%, #0284c7 100%);
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(0, 80, 158, 0.15);
}

.view-more-btn:hover {
    background: linear-gradient(135deg, #003f7a 0%, #00509e 100%);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 80, 158, 0.25);
}

.view-more-btn svg {
    transition: transform 0.3s ease;
}

.view-more-btn:hover svg {
    transform: translateX(3px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .category-block {
        padding: 20px 10px;
        margin-bottom: 20px;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #f1f5f9;
        border-bottom: 1px solid #f1f5f9;
    }
    .category-block-title {
        font-size: 18px;
        gap: 8px;
    }
    .category-block-title::before { height: 18px; width: 4px; }
    .view-more-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* =========================================================
   SEARCH PAGE PRODUCT GRID (DEDICATED)
   ========================================================= */

.search-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

@media (max-width: 992px) {
    .search-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .search-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .search-product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}/* =========================================================
   ADVANCED SEARCH PAGE & SMART PAGINATION UI
   ========================================================= */

.search-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    min-height: 50vh;
}

/* Premium Search Header - Forced Override */
.search-header-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    padding: 40px 30px !important;
    border-radius: 16px !important;
    margin-bottom: 40px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

.search-title-wrap {
    width: 100% !important;
}

.search-title-wrap h1 {
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
}

.search-title-wrap h1 span {
    color: #38bdf8 !important; /* Highlighted search term */
}

.search-stats {
    color: #94a3b8 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* Smart Pagination System */
.smart-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.page-link:hover {
    border-color: #0284c7;
    color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.1);
}

.page-link.active {
    background: linear-gradient(135deg, #00509e 0%, #0284c7 100%);
    color: #ffffff;
    border-color: transparent;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
}

.page-link.disabled {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    pointer-events: none;
    box-shadow: none;
}

/* Beautiful Empty State */
.empty-search-state {
    text-align: center !important;
    padding: 80px 20px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px dashed #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02) !important;
    margin-top: 20px !important;
}

.empty-search-state svg {
    color: #94a3b8 !important;
    margin-bottom: 20px !important;
    display: inline-block !important; /* Fix svg alignment */
}

.empty-search-state h2 {
    font-size: 24px !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
}

.empty-search-state p {
    color: #64748b !important;
    font-size: 15px !important;
    margin-bottom: 30px !important;
}

.empty-search-box {
    max-width: 500px !important;
    margin: 0 auto !important;
    display: flex !important;
    gap: 10px !important;
    align-items: stretch !important; /* Fix button and input alignment */
}

.empty-search-box input {
    flex-grow: 1 !important;
    padding: 15px 20px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    outline: none !important;
    transition: all 0.3s !important;
    height: 50px !important; /* Ensure same height */
    box-sizing: border-box !important;
}

.empty-search-box input:focus {
    border-color: #0284c7 !important;
}

.empty-search-box button {
    background: #00509e !important;
    color: white !important;
    border: none !important;
    padding: 0 25px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
    height: 50px !important; /* Ensure same height */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.empty-search-box button:hover {
    background: #0f172a !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .search-header-banner {
        padding: 30px 20px !important;
        border-radius: 0 !important;
        margin-bottom: 30px !important;
    }
    .search-title-wrap h1 { font-size: 22px !important; }
    
    .empty-search-box { flex-direction: column !important; }
    .empty-search-box input { margin-bottom: 5px !important; }
}

/* =========================================================
   HEADER SEARCH BAR & NAVIGATION DESKTOP LAYOUT (FIXED)
   ========================================================= */
@media (min-width: 993px) {
    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px; /* Slightly reduced gap to give more room */
    }
    .brand-logo {
        flex-shrink: 0;
    }
    .desktop-nav {
        flex-grow: 1; /* Lets the menu take available space */
        display: flex;
        justify-content: flex-start;
        margin-left: 20px; 
    }
    .header-search-container {
        width: 240px !important; /* Increased width significantly */
        min-width: 240px !important; /* Prevents it from shrinking too much on smaller laptops */
        flex-shrink: 1 !important; /* Allow it to shrink gracefully if screen is small */
        margin: 0 15px 0 auto !important; 
    }
    .header-search-container .search-form {
        width: 100% !important; /* Ensures the input form strictly takes the full 400px width */
    }
    .header-utilities {
        flex-shrink: 0;
    }
}
/* =========================================================
   DESKTOP SUBCATEGORY DROPDOWN UI (BUG FIXED: ADDED ARROW)
   ========================================================= */

.desktop-has-dropdown {
    position: relative;
    padding: 10px 0; /* Creates an invisible hover bridge */
}

/* FIXED: Added dynamic dropdown arrow using background SVG */
.desktop-nav .nav-links .desktop-has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-right: 16px !important; /* Space for the arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    transition: all 0.3s ease;
}

/* Hover Effect: Arrow flips up and changes to brand blue */
.desktop-nav .nav-links .desktop-has-dropdown:hover > a {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300509e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 15 12 9 18 15'%3E%3C/polyline%3E%3C/svg%3E");
    color: #00509e;
}

.desktop-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1050;
    border: 1px solid #f1f5f9;
}

/* Beautiful Top Border for Dropdown */
.desktop-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -1px; left: 10%; right: 10%;
    height: 3px;
    background: linear-gradient(135deg, #00509e 0%, #0ea5e9 100%);
    border-radius: 5px;
}

.desktop-has-dropdown:hover .desktop-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-dropdown-menu li {
    margin: 0;
}

/* Premium Desktop Subcategory Link (FIXED OVERLAPPING) */
.desktop-dropdown-menu a {
    display: block !important;
    position: relative !important; /* Crucial for absolute arrow */
    padding: 10px 20px 10px 40px !important; /* Increased left padding significantly */
    color: #475569 !important; 
    font-size: 13px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0 !important;
}

.desktop-dropdown-menu a::after {
    display: none !important; /* Hide the underline effect of main links */
}

/* Dynamic Arrow Icon before the text (FIXED POSITION) */
.desktop-dropdown-menu a::before {
    content: '»' !important;
    position: absolute !important;
    left: 18px !important; /* Placed exactly in the padded space */
    top: 50% !important;
    transform: translateY(-50%) !important; /* Perfectly vertically centered */
    color: #94a3b8 !important; 
    font-size: 16px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    height: auto !important;
    width: auto !important;
    background: transparent !important;
}

/* Hover Effect: Text nudges right, Arrow turns blue and nudges right */
.desktop-dropdown-menu a:hover {
    color: #00509e !important;
    background: #f8fafc !important;
    padding-left: 45px !important; /* Nudge text */
}

.desktop-dropdown-menu a:hover::before {
    color: #00509e !important; 
    left: 23px !important; /* Nudge arrow */
}

/* =========================================================
   DYNAMIC BRAND LOGO UI
   ========================================================= */
.brand-logo a {
    display: flex;
    align-items: center;
}

.brand-logo img {
    max-height: 42px; /* Perfect height for desktop header */
    width: auto;
    display: block;
    object-fit: contain;
}

.sidebar-top img {
    max-height: 35px; /* Perfect height for mobile sidebar */
    width: auto;
    display: block;
    object-fit: contain;
}

/* =========================================================
   PREMIUM PRODUCT DESCRIPTION UI (FRONTEND)
   ========================================================= */

.product-description-container {
    max-width: 1200px;
    margin: 20px auto 50px;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 51, 102, 0.03);
    border: 1px solid #f1f5f9;
}

.desc-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.desc-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(135deg, #00509e 0%, #0ea5e9 100%);
    border-radius: 5px;
}

/* Summernote Content Styling */
.desc-content {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
}

.desc-content p {
    margin-bottom: 15px;
}

.desc-content b, .desc-content strong {
    color: #1e293b;
}

.desc-content ul, 
.desc-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.desc-content li {
    margin-bottom: 8px;
}

.desc-content img {
    max-width: 100%;
    height: auto !important; /* Force responsive height */
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: block;
}

.desc-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    overflow-x: auto;
    display: block; /* Makes table scrollable on small screens */
}

.desc-content table th, 
.desc-content table td {
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    text-align: left;
}

.desc-content table th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
}

.desc-content iframe {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .product-description-container {
        margin: 10px 15px 40px;
        padding: 25px 20px;
    }
    
    .desc-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .desc-content {
        font-size: 14px;
    }
    
    .desc-content table th, 
    .desc-content table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* =========================================================
   DIRECT WHATSAPP ORDER BUTTON UI
   ========================================================= */

.btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    width: 100%;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(18, 140, 126, 0.4);
}

.action-buttons {
    flex-wrap: wrap; /* Allows the WA button to sit below the cart controls on desktop */
}

.cart-controls-flex {
    display: flex;
    gap: 15px;
    width: 100%;
}

/* Mobile Sticky Action Responsiveness */
@media (max-width: 992px) {
    .mobile-sticky-action {
        display: flex;
        gap: 10px;
        padding: 10px 15px;
    }
    
    .mobile-sticky-action .btn-add-cart,
    .mobile-sticky-action .btn-whatsapp {
        flex: 1; /* Both buttons take 50% width equally */
        margin-top: 0;
        padding: 14px 10px;
        font-size: 14px;
        border-radius: 8px; /* Square-ish look for mobile sticky */
        white-space: nowrap;
    }
    
    .mobile-sticky-action .btn-whatsapp {
        box-shadow: none; /* Cleaner look for sticky footer */
    }
}

/* =========================================================
   CATEGORY NAME ORIGINAL CASE PRESERVER (HEADER)
   ========================================================= */

.nav-links li a,
.desktop-dropdown-menu li a,
.sidebar-links li a,
.mobile-submenu li a,
.mobile-main-link {
    text-transform: none !important; /* এডমিন প্যানেলের অরিজিনাল লেখা শো করবে */
    letter-spacing: 0.3px !important; /* সুন্দর দেখানোর জন্য সামান্য স্পেসিং */
}

/* =========================================================
   FREE SHIPPING PROGRESS BAR UI (CART PAGE)
   ========================================================= */

.free-shipping-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.fs-message {
    font-size: 14px;
    color: #334155;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 500;
}

.fs-success {
    color: #16a34a;
    font-weight: 700;
}

.fs-pending {
    color: #0f172a;
}

.fs-pending strong {
    color: #0ea5e9;
    font-weight: 800;
    font-size: 15px;
}

.fs-progress-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
}

.fs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #0284c7); /* Premium Blue Gradient */
    border-radius: 50px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s ease;
}

.fs-progress-fill.success-mode {
    background: linear-gradient(90deg, #34d399, #059669); /* Green Gradient on Success */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .free-shipping-container {
        padding: 12px 15px;
        margin-bottom: 20px;
    }
    .fs-message {
        font-size: 13px;
    }
    .fs-pending strong {
        font-size: 14px;
    }
}

/* =========================================================
   DEDICATED FLASH SALE PAGE UI (PREMIUM)
   ========================================================= */

.flash-sale-page {
    background: #f8fafc;
    min-height: 80vh;
    padding-bottom: 60px;
}

/* Glassmorphism Hero Banner */
.fs-hero-banner {
    background: linear-gradient(135deg, #e11d48, #9f1239);
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

/* Subtle background pattern/overlay for premium feel */
.fs-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 10%);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 1;
    animation: rotate-bg 60s linear infinite;
}

@keyframes rotate-bg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fs-hero-content {
    position: relative;
    z-index: 2;
}

.fs-hero-title {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.fs-hero-desc {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Mega Countdown Timer */
.mega-countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.mega-time-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 20px;
    border-radius: 12px;
    min-width: 80px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.mega-time-box .num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.mega-time-box .text {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Flash Sale Product Grid */
.fs-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.fs-product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.fs-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(225, 29, 72, 0.1);
    border: 1px solid #fda4af;
}

.fs-badge-wrapper {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fs-save-badge {
    background: #e11d48;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.3);
}

.fs-product-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: #f1f5f9;
}

.fs-product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.fs-product-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fs-price-box {
    margin-top: auto;
    margin-bottom: 15px;
}

.fs-current-price {
    font-size: 20px;
    font-weight: 800;
    color: #e11d48;
}

.fs-old-price {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 600;
}

.fs-btn {
    display: block;
    text-align: center;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}

.fs-btn:hover {
    background: #e11d48;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .fs-hero-title { font-size: 24px; }
    .mega-time-box { min-width: 65px; padding: 10px; }
    .mega-time-box .num { font-size: 24px; }
    .fs-product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .fs-product-img { height: 180px; }
    .fs-current-price { font-size: 16px; }
    .fs-save-badge { font-size: 10px; padding: 4px 8px; }
}

@media (max-width: 480px) {
    .fs-product-grid { grid-template-columns: 1fr; }
    .fs-product-img { height: 220px; }
}

/* =========================================================
   HOME PAGE FLASH SALE SECTION UI (100% RESPONSIVE)
   ========================================================= */

.home-flash-sale-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

.home-fs-container {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.08);
    border: 1px solid #ffe4e6;
}

.home-fs-header {
    background: linear-gradient(90deg, #e11d48, #be123c);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.home-fs-title-area {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.home-fs-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

/* Header Countdown Timer - Highly Responsive */
.home-fs-timer {
    display: flex;
    gap: 4px;
    align-items: center;
}

.home-fs-timer .t-box {
    background: #ffffff;
    color: #e11d48;
    font-weight: 800;
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 6px;
    min-width: 30px;
    text-align: center;
}

.home-fs-view-all {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 15px;
    border-radius: 50px;
    transition: all 0.3s;
}

.home-fs-view-all:hover {
    background: #ffffff;
    color: #e11d48;
}

/* Horizontal Scrollable Products */
.home-fs-products-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.home-fs-products-wrapper::-webkit-scrollbar {
    display: none;
}

.home-fs-card {
    flex: 0 0 180px; /* Force width for smooth scrolling */
    background: #ffffff;
    border-radius: 8px;
    position: relative;
    text-decoration: none;
    transition: transform 0.3s ease;
    border: 1px solid #f1f5f9;
}

.home-fs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.home-fs-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e11d48;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 50px;
    z-index: 2;
}

.home-fs-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    background: #f8fafc;
}

.home-fs-card-info {
    padding: 10px;
}

.home-fs-price {
    font-size: 16px;
    font-weight: 800;
    color: #e11d48;
    display: block;
}

.home-fs-old-price {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}

/* =========================================================
   MOBILE RESPONSIVENESS (BREAKPOINTS)
   ========================================================= */
@media (max-width: 576px) {
    .home-fs-header {
        justify-content: center;
        text-align: center;
    }
    .home-fs-title-area {
        justify-content: center;
        width: 100%;
    }
    .home-fs-view-all {
        margin-top: 10px;
    }
    .home-fs-card {
        flex: 0 0 140px; /* Slightly smaller for mobile */
    }
    .home-fs-card img {
        height: 140px;
    }
}

/* =========================================================
   MOBILE SUBMENU CONFLICT FIX (100% BUG FREE)
   ========================================================= */

/* Force Reset the Anarkali (Submenu Main Link) styling */
.mobile-main-link {
    padding: 10px 20px !important;
    color: #1e293b !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    position: static !important; /* Removes the old absolute positioning bug */
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    border-bottom: none !important; 
    margin: 0 !important;
}

/* Force Remove the Double Arrow (») and Apply Single Arrow (❯) */
.mobile-main-link::before {
    content: '\276F' !important; /* Perfect Single Angle Bracket */
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #475569 !important;
    margin-right: 10px !important;
    margin-left: 0 !important;
    position: static !important; /* Prevents the arrow from floating away */
    display: inline-block !important;
    transition: transform 0.2s, color 0.2s !important;
}

/* Fix Hover jumping issues */
.mobile-main-link:hover {
    color: #00509e !important;
    padding-left: 20px !important; /* Keeps text stable */
    background: transparent !important;
}

.mobile-main-link:hover::before {
    transform: translateX(3px) !important;
    color: #00509e !important;
}

/* Wrapper alignment fix */
.mobile-menu-link-wrapper {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: #ffffff !important;
    transition: background 0.2s !important;
}

.mobile-menu-link-wrapper:hover {
    background: #f8fafc !important;
}

.mobile-submenu-toggle {
    padding: 10px 20px !important;
}

/* Fix Sub-Subcategory (Inner links) styling */
.mobile-submenu li a {
    padding: 8px 20px 8px 40px !important; 
    font-size: 14px !important;
    color: #64748b !important;
}

.mobile-submenu li a::before {
    content: '-' !important;
    margin-right: 8px !important;
    font-size: 16px !important;
    color: #cbd5e1 !important;
    position: static !important;
}

.mobile-submenu li a:hover {
    color: #00509e !important;
    padding-left: 40px !important;
}

/* =========================================================
   PREMIUM SIDEBAR WHATSAPP CONTACT UI (100% BUG FREE & RESPONSIVE)
   ========================================================= */

/* Magic Fix: Ensures the sidebar never goes below the visible screen on mobile browsers */
.mobile-sidebar {
    height: 100vh; /* Fallback for older browsers */
    height: 100dvh !important; /* Dynamic Viewport Height precisely fits mobile screens */
}

.sidebar-bottom-contact {
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom)); /* iOS Safe Area Fix */
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    margin-top: auto; /* Pushes the box to the absolute bottom */
    box-shadow: 0 -4px 20px rgba(0,0,0,0.02);
    flex-shrink: 0; /* Prevents the box from getting squished by scroll area */
    z-index: 10;
}

.premium-wa-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #003366 0%, #00509e 100%); /* Fashabo Signature Blue */
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 80, 158, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-wa-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 80, 158, 0.3);
    background: linear-gradient(135deg, #002244 0%, #003f7a 100%);
}

.wa-icon-wrapper {
    background: rgba(255, 255, 255, 0.15);
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    flex-shrink: 0;
    backdrop-filter: blur(5px);
}

.wa-icon-wrapper svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

.wa-text-wrapper {
    display: flex;
    flex-direction: column;
}

.wa-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    font-weight: 600;
    margin-bottom: 2px;
}

.wa-number {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
}

/* --- 100% Mobile Responsiveness for Small & Extra Small Screens --- */
@media (max-width: 480px) {
    .sidebar-bottom-contact {
        padding: 15px; 
        padding-bottom: calc(15px + env(safe-area-inset-bottom));
    }
    .premium-wa-btn {
        gap: 12px;
        padding: 10px 15px;
    }
    .wa-icon-wrapper {
        width: 38px;
        height: 38px;
    }
    .wa-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }
    .wa-title {
        font-size: 10px;
    }
    .wa-number {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .sidebar-bottom-contact {
        padding: 12px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    .premium-wa-btn {
        gap: 10px;
        padding: 10px 12px;
    }
    .wa-icon-wrapper {
        width: 34px;
        height: 34px;
    }
    .wa-icon-wrapper svg {
        width: 18px;
        height: 18px;
    }
    .wa-number {
        font-size: 14px;
    }
}

/* =========================================================
   PREMIUM RELATED PRODUCTS UI (100% RESPONSIVE)
   ========================================================= */

.related-products-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 15px;
}

.related-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

/* Beautiful centered gradient underline */
.related-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #00509e 0%, #0ea5e9 100%);
    border-radius: 5px;
    margin: 12px auto 0;
}

@media (max-width: 768px) {
    .related-products-container {
        margin: 0 10px 40px;
        padding: 0 5px;
    }
    .related-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

/* =========================================================
   DYNAMIC PAGE UI (FRONTEND - 100% RESPONSIVE)
   ========================================================= */

.dynamic-page-container {
    max-width: 1000px;
    margin: 40px auto 60px;
    padding: 50px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.dynamic-page-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dynamic-page-content {
    font-size: 16px;
    color: #475569;
    line-height: 1.8;
}

/* Summernote Specific Overrides */
.dynamic-page-content p { margin-bottom: 15px; }
.dynamic-page-content img { max-width: 100%; height: auto !important; border-radius: 8px; margin: 20px 0; }
.dynamic-page-content a { color: #0284c7; text-decoration: underline; font-weight: 600; }
.dynamic-page-content a:hover { color: #0f172a; }
.dynamic-page-content ul, .dynamic-page-content ol { margin-left: 20px; margin-bottom: 15px; }
.dynamic-page-content li { margin-bottom: 8px; }

/* Responsive */
@media (max-width: 768px) {
    .dynamic-page-container {
        margin: 20px 10px 40px;
        padding: 30px 20px;
        border-radius: 12px;
    }
    .dynamic-page-title {
        font-size: 24px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    .dynamic-page-content {
        font-size: 15px;
    }
}

/* =========================================================
   MASTER OVERRIDE: 5 COLUMNS PRODUCT GRID (DESKTOP)
   ========================================================= */

.product-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important; /* ডেস্কটপে ১০০% ফিক্সড ৫টি কলাম */
    gap: 20px !important;
    width: 100% !important;
}

.product-card img {
    height: 200px !important; /* ৫ কলামের সাথে ম্যাচ করার জন্য ইমেজের পারফেক্ট সাইজ */
    object-fit: cover !important;
}

/* --- Responsive Grid System --- */

/* ছোট ল্যাপটপ বা বড় ট্যাবলেট */
@media screen and (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ট্যাবলেট */
@media screen and (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
    .product-card img {
        height: 180px !important;
    }
}

/* মোবাইল (বড় স্ক্রিন) */
@media screen and (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .product-card img {
        height: 160px !important;
    }
}

/* মোবাইল (ছোট স্ক্রিন) */
@media screen and (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    .product-card img {
        height: 150px !important;
    }
}