:root{--glass-bg:rgba(255, 255, 255, 0.8);--glass-border:rgba(255, 255, 255, 0.2);--modern-gradient:linear-gradient(135deg, #0052cc 0%, #00255d 100%)}.hero-wrapper{position:relative;padding:120px 0 80px;background:radial-gradient(circle at 10% 20%,rgba(0,82,204,.05) 0,transparent 40%),radial-gradient(circle at 90% 80%,rgba(246,139,30,.05) 0,transparent 40%);overflow:hidden}.hero-bg-blob{position:absolute;top:-10%;right:-5%;width:500px;height:500px;background:var(--brand-blue);filter:blur(120px);opacity:.07;z-index:-1;border-radius:50%}.promo-badge{background:rgba(0,82,204,.08);color:var(--brand-blue);font-size:.85rem;letter-spacing:1px;padding:8px 20px;border:1px solid rgba(0,82,204,.1);display:inline-flex;align-items:center;gap:8px}.hero-title{font-size:clamp(2.5rem, 5vw, 4rem);line-height:1.1;letter-spacing:-2px;color:var(--brand-navy)}.btn-modern{padding:16px 32px;border-radius:14px;font-weight:700;transition:.3s cubic-bezier(.175, .885, .32, 1.275);display:inline-flex;align-items:center;gap:10px}.btn-modern:hover{transform:translateY(-5px);box-shadow:0 15px 30px rgba(0,82,204,.2)}.btn-shop-new{background:#000;color:#fff;border:none}.btn-shop-new:hover{background:#333;color:#fff}.floating-stats{background:#fff;padding:20px;border-radius:20px;box-shadow:0 20px 40px rgba(0,0,0,.05);display:flex;align-items:center;gap:15px;position:absolute;bottom:20px;left:-30px;animation:6s ease-in-out infinite float}@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-20px)}}.custom-card{background:#fff;border:1px solid #f1f1f2;padding:40px 30px;border-radius:24px;transition:.4s}.custom-card:hover{border-color:var(--brand-blue);box-shadow:0 20px 50px rgba(0,0,0,.05);transform:translateY(-10px)}.icon-box{width:70px;height:70px;background:#f8faff;border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:1.8rem;color:var(--brand-blue);margin-bottom:25px}@media (max-width:991px){.hero-wrapper{padding:60px 0}.floating-stats{display:none}}

    .form-control:focus, .form-select:focus {
        background-color: #fff !important;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
        border: 1px solid #0d6efd !important;
    }
    .input-group-text {
        border-right: none;
    }
    .input-group > .form-control {
        border-left: none;
    }
    .tracking-wider { letter-spacing: 1px; }


/* --- LOGO SIZE INCREASE --- */
.nav-logo {
    height: 65px; /* Increased for better legibility */
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.shop-brand:hover .nav-logo {
    transform: scale(1.03); /* Subtle pop on hover */
}

/* Ensure the navbar wrapper is tall enough to fit the bigger logo */
.nav-top-wrapper {
    height: 100px; /* Increased height for a more premium "Marketplace" feel */
    display: flex;
    align-items: center;
}

/* Mobile Tweak: Keep it substantial but not overwhelming */
@media (max-width: 991px) {
    .nav-logo {
        height: 48px; 
    }
    .mobile-nav-container {
        height: 70px;
        padding: 5px 0;
    }
}

/* Sidebar Logo remains clean */
.sidebar-logo {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
}
    /* --- MOBILE MENU & NAV REFINEMENTS --- */
    .menu-label {
        padding: 18px 20px 8px;
        font-size: 0.75rem;
        font-weight: 800;
        text-transform: uppercase;
        color: #8e8e93;
        letter-spacing: 1px;
        background-color: #f8f9fa;
    }

    .menu-item {
        display: flex;
        align-items: center;
        padding: 14px 20px;
        color: #333 !important;
        text-decoration: none !important;
        font-size: 0.95rem;
        font-weight: 500;
        border-bottom: 1px solid #f1f1f2;
        transition: background 0.2s;
    }

    .menu-item:active {
        background-color: #f0f0f0;
    }

    .menu-item i {
        width: 30px;
        font-size: 1.1rem;
        color: #555;
        margin-right: 12px;
        text-align: center;
    }

    .menu-item-primary {
        color: var(--marketplace-blue) !important;
        font-weight: 700;
    }

    .menu-item-danger {
        color: #dc3545 !important;
        font-weight: 700;
    }

    .offcanvas-header {
        border-bottom: 1px solid #eee;
        padding: 20px;
    }

    .offcanvas-body {
        padding: 0 !important; /* Items handle their own padding */
    }

    /* Fixed Search Bar for Mobile */
    .mobile-search-form {
        padding: 10px 15px 15px;
    }

    /* Navbar Brand tweak for mobile */
    .mobile-brand {
        font-weight: 900;
        letter-spacing: -1px;
        font-size: 1.4rem;
    }

    /* --- APP-LIKE MOBILE NAV --- */
@media (max-width: 991px) {
    .shop-navbar {
        padding: 0 !important;
        background: #fff;
        border-bottom: 1px solid #eee;
    }

    .mobile-nav-container {
        padding: 10px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Snappy Hamburger Icon */
    .mobile-menu-trigger {
        background: none;
        border: none;
        font-size: 1.4rem;
        padding: 0;
        color: #000;
        display: flex;
        align-items: center;
        transition: transform 0.2s ease;
    }
    .mobile-menu-trigger:active { transform: scale(0.9); }

    /* Floating Search for Mobile */
    .mobile-search-bar {
        padding: 0 15px 12px;
    }
    .mobile-search-bar .form-control {
        background: #f1f3f6 !important;
        border: none !important;
        border-radius: 8px;
        height: 40px;
        font-size: 0.9rem;
    }
}

    :root {
        --marketplace-blue: #0052CC;
        --marketplace-orange: #f68b1e;
        --nav-shadow: 0 4px 20px rgba(0,0,0,0.06);
        --input-focus: rgba(0, 82, 204, 0.15);
    }

    body {
        background-color: #f4f6f8;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    }

    /* --- ENHANCED NAVBAR --- */
    .shop-navbar {
        background: #ffffff;
        box-shadow: var(--nav-shadow);
        padding: 0; /* Managed by container heights */
        position: sticky;
        top: 0;
        z-index: 1050;
        border-bottom: 1px solid #eee;
    }

    .nav-top-wrapper {
        height: 80px;
        display: flex;
        align-items: center;
    }

    /* Brand Logo */
    .shop-brand {
        font-size: 1.6rem;
        font-weight: 800;
        color: #000;
        text-decoration: none;
        letter-spacing: -1.5px;
        transition: transform 0.2s ease;
    }
    .shop-brand:hover { transform: scale(1.02); color: #000; }
    .shop-brand-star {
        color: var(--marketplace-orange);
        font-size: 1rem;
        margin-left: 2px;
        vertical-align: super;
    }

    /* Search Architecture */
    .shop-search-wrapper {
        flex-grow: 1;
        max-width: 600px;
        margin: 0 40px;
        position: relative;
    }
    
    .shop-search-input {
        border: 2px solid #f0f0f0;
        border-radius: 10px;
        padding: 0 110px 0 45px; /* Spacing for icon and button */
        height: 48px;
        font-size: 0.95rem;
        transition: all 0.2s ease;
        background: #f8f9fa;
    }
    
    .shop-search-input:focus {
        border-color: var(--marketplace-blue);
        background: #fff;
        box-shadow: 0 0 0 4px var(--input-focus) !important;
    }

    .search-icon-inside {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
        font-size: 1.1rem;
        pointer-events: none;
    }

    .btn-shop-search {
        position: absolute;
        right: 4px;
        top: 4px;
        bottom: 4px;
        background: var(--marketplace-blue);
        color: white;
        font-weight: 700;
        border-radius: 7px;
        padding: 0 20px;
        border: none;
        font-size: 0.85rem;
        text-transform: uppercase;
        transition: background 0.2s;
    }
    .btn-shop-search:hover { background: #003a8c; color: white; }

    /* Nav Links & Icons */
    .nav-action-group { display: flex; align-items: center; gap: 8px; }

    .nav-icon-link {
        color: #333;
        text-decoration: none;
        font-weight: 600;
        display: flex;
        flex-direction: column; /* Modern stacked look */
        align-items: center;
        font-size: 0.75rem;
        padding: 8px 12px;
        border-radius: 10px;
        transition: all 0.2s;
        min-width: 65px;
    }
    .nav-icon-link i { font-size: 1.3rem; margin-bottom: 3px; }
    .nav-icon-link:hover { background: #f5f5f5; color: var(--marketplace-blue); }

    /* Cart Badge Style */
    .shop-cart-badge {
        position: absolute;
        top: 2px;
        right: 8px;
        background-color: var(--marketplace-orange);
        color: white;
        font-size: 0.65rem;
        font-weight: 800;
        padding: 2px 6px;
        border-radius: 50px;
        border: 2px solid #fff;
    }

    /* Dropdown Menus 2.0 */
    .dropdown-menu {
        border: none;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        border-radius: 15px;
        padding: 10px;
        margin-top: 10px !important;
        animation: navFadeSlide 0.3s ease forwards;
    }

    @keyframes navFadeSlide {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .dropdown-item {
        border-radius: 8px;
        padding: 10px 15px;
        font-weight: 500;
        color: #444;
        display: flex;
        align-items: center;
        transition: all 0.2s;
    }
    .dropdown-item i { width: 22px; font-size: 1rem; color: #888; margin-right: 12px; }
    .dropdown-item:hover { background: #f0f7ff; color: var(--marketplace-blue); }
    .dropdown-item:hover i { color: var(--marketplace-blue); }

    /* --- MOBILE REFINEMENTS --- */
    @media (max-width: 991px) {
        .nav-top-wrapper { height: 65px; }
        .shop-search-wrapper { margin: 0 15px; order: 3; max-width: 100%; margin-top: 10px; padding-bottom: 15px; }
        .mobile-header-row { padding: 10px 15px 0; }
        .nav-icon-link { min-width: auto; padding: 5px; }
        .nav-icon-link span { display: none; } /* Hide text on mobile nav */
        .shop-navbar { height: auto; }
    }

    /* --- PRO MARKETPLACE FOOTER --- */
    .footer-premium {
        background-color: #0f1111; /* Amazon/Dark Mode Marketplace feel */
        color: #e6e6e6;
        padding: 70px 0 30px;
        margin-top: 80px;
        position: relative;
        font-family: 'Inter', sans-serif;
    }

    /* Gradient Top Border */
    .footer-premium::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #0052CC 0%, #f68b1e 100%);
    }

    .footer-heading {
        color: #ffffff;
        font-weight: 700;
        font-size: 0.95rem;
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .footer-link {
        color: #a0aec0;
        text-decoration: none;
        display: block;
        margin-bottom: 12px;
        font-size: 0.9rem;
        transition: all 0.2s ease;
    }

    .footer-link:hover {
        color: #f68b1e;
        transform: translateX(5px);
    }

    /* Newsletter Pro */
    .newsletter-box {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 5px;
        display: flex;
        max-width: 350px;
    }

    .newsletter-input {
        background: transparent !important;
        border: none !important;
        color: white !important;
        box-shadow: none !important;
        padding-left: 15px;
        font-size: 0.85rem;
    }

    .newsletter-input::placeholder { color: #718096; }

    .newsletter-btn {
        background: #f68b1e;
        color: white;
        border: none;
        border-radius: 8px;
        padding: 8px 15px;
        font-weight: 700;
        transition: 0.2s;
    }
    .newsletter-btn:hover { background: #e67a0d; transform: scale(1.05); }

    /* Social Boxes */
    .social-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        color: white;
        margin-right: 10px;
        text-decoration: none;
        transition: 0.3s;
    }
    .social-pill:hover {
        background: #0052CC;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 82, 204, 0.4);
    }

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        margin-top: 60px;
        padding-top: 30px;
        color: #718096;
        font-size: 0.8rem;
    }

    .payment-icons img {
        height: 22px;
        filter: grayscale(1) opacity(0.6);
        transition: 0.3s;
        margin-left: 15px;
    }
    .payment-icons img:hover { filter: grayscale(0) opacity(1); }

    @media (max-width: 768px) {
        .footer-premium { padding: 50px 0 20px; }
        .footer-heading { margin-top: 25px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; }
    }

/* --- ENHANCED OFFCANVAS (SIDEBAR) --- */
#mobileMenuSidebar {
    background-color: #ffffff;
    border-radius: 0 20px 20px 0; /* Rounded edges for an app feel */
    box-shadow: 10px 0 30px rgba(0,0,0,0.1) !important;
}

.sidebar-profile-header {
    background: linear-gradient(135deg, var(--marketplace-blue) 0%, #003a8c 100%);
    padding: 30px 20px;
    color: white;
}

.sidebar-avatar-circle {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    border: 2px solid rgba(255,255,255,0.3);
    margin-bottom: 15px;
}

.sidebar-nav-list {
    padding: 10px 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.sidebar-nav-item i {
    width: 25px;
    margin-right: 15px;
    color: #75757a;
    font-size: 1.1rem;
    text-align: center;
}

.sidebar-nav-item:hover, .sidebar-nav-item:active {
    background-color: #f0f7ff;
    color: var(--marketplace-blue);
}

.sidebar-nav-item:hover i { color: var(--marketplace-blue); }

.sidebar-divider {
    height: 1px;
    background-color: #f1f1f2;
    margin: 10px 25px;
}

.sidebar-section-title {
    padding: 15px 25px 5px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
}

    #chat-fab {
        position: fixed; bottom: 30px; right: 30px; z-index: 1040;
        background: #f68b1e; color: white; padding: 8px 20px 8px 8px;
        border-radius: 50px; cursor: pointer; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    #chat-fab:hover { transform: scale(1.05); background: #e67a0d; }
    .fab-icon-circle { 
        width: 40px; height: 40px; background: rgba(255,255,255,0.2); 
        border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    }
    .fab-text { white-space: nowrap; font-size: 0.9rem; }

    #chat-widget {
        position: fixed; bottom: 90px; right: 30px; z-index: 1050;
        width: 350px; height: 500px; background: white; border-radius: 15px;
        display: flex; flex-direction: column; transition: 0.3s ease; transform-origin: bottom right;
        border: 1px solid rgba(0,0,0,0.1);
    }
    .chat-container-closed { transform: scale(0); opacity: 0; pointer-events: none; }
    
    .chat-header { background: #f68b1e; border-radius: 20px 20px 0 0; }
    .chat-body { flex-grow: 1; height: calc(100% - 60px); overflow: hidden; display: flex; flex-direction: column; }

    .avatar-stack { width: 45px; height: 45px; border-radius: 50%; border: 3px solid white; overflow: hidden; margin-left: -10px; }
    .avatar-stack img { width: 100%; height: 100%; object-fit: cover; }
    .avatar-stack:first-child { margin-left: 0; }

    .msg-bubble { padding: 10px 15px; border-radius: 15px; font-size: 0.85rem; margin-bottom: 8px; max-width: 80%; }
    .msg-user { background: #0052cc; color: white; align-self: flex-end; border-bottom-right-radius: 2px; }
    .msg-admin { background: #e9ecef; color: #333; align-self: flex-start; border-bottom-left-radius: 2px; }

    @media (max-width: 576px) {
        #chat-widget { 
            right: 15px; 
            bottom: 85px; 
            width: calc(100% - 30px); 
            height: 450px; 
            border-radius: 15px; 
        }
        #chat-fab { bottom: 20px; right: 15px; }
    }


/* -- Cart -- */
    body { background-color: #f5f5f5; }
    .cart-card { background: #fff; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); margin-bottom: 15px; }
    .cart-img { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; }
    .qty-btn { width: 35px; height: 35px; border-radius: 5px; border: 1px solid #ddd; background: #fff; font-weight: bold; }
    .qty-btn:hover { background: #f0f0f0; }
    .qty-input { width: 50px; text-align: center; border: none; font-weight: bold; }
    
    #removeConfirmModal .modal-content { border-radius: 15px; border: none; }


/* -- Category -- */

    body { background-color: #f1f1f2; }
    .filter-card { background: #fff; border-radius: 4px; padding: 15px; margin-bottom: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
    .filter-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; border-bottom: 1px solid #eee; padding-bottom: 8px; margin-bottom: 12px; }
    .filter-link { display: block; color: #333; text-decoration: none; font-size: 0.85rem; padding: 4px 0; transition: 0.2s; }
    .filter-link:hover { color: #f68b1e; padding-left: 5px; }
    .filter-link.active { color: #f68b1e; font-weight: 700; }

    .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
    
    /* Sleek Product Card */
    .p-card { background: #fff; text-decoration: none; color: #333; border-radius: 4px; padding: 10px; transition: 0.3s; border: 1px solid transparent; height: 100%; display: flex; flex-direction: column; }
    .p-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-color: #eee; transform: translateY(-3px); }
    .p-img-box { width: 100%; height: 160px; margin-bottom: 10px; text-align: center; }
    .p-img-box img { max-width: 100%; height: 100%; object-fit: contain; }
    .p-title { font-size: 0.85rem; height: 2.5rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 8px; line-height: 1.2;}
    .p-price { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
    .p-old-price { font-size: 0.8rem; color: #75757a; text-decoration: line-through; }
    .p-discount { background: #feefde; color: #f68b1e; font-size: 0.7rem; font-weight: 800; padding: 2px 4px; border-radius: 2px; margin-left: 5px; }

    @media (max-width: 767px) {
        .product-grid { grid-template-columns: repeat(2, 1fr); gap: 5px; }
        .p-card { padding: 8px; }
        .p-img-box { height: 130px; }
    }

/* Checkout */

    body { background-color: #f5f5f5; }
    
    .checkout-card {
        background: #fff;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        margin-bottom: 15px;
    }
    
    .checkout-step-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
    .step-title {
        font-size: 1rem;
        font-weight: 700;
        color: #333;
        display: flex;
        align-items: center;
        text-transform: uppercase;
        margin: 0;
    }
    .step-icon {
        width: 20px; height: 20px;
        background-color: #36B37E;
        color: white;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 0.7rem; margin-right: 10px;
    }
    .step-icon.pending {
        background-color: #ccc;
        color: #fff;
    }
    .change-link { font-size: 0.85rem; color: #0052CC; text-decoration: none; font-weight: 600; cursor: pointer; }
    .change-link:hover { text-decoration: underline; }

    .checkout-step-body { padding: 20px; }
    
    .address-details p { margin: 0; color: #555; font-size: 0.9rem; line-height: 1.5; }
    .address-details strong { color: #000; }
    
    #address-summary-view { transition: opacity 0.3s ease; }
    
    .address-edit-box {
        background-color: #f9f9f9;
        padding: 15px;
        border-radius: 4px;
        border: 1px solid #eee;
        margin-top: 15px;
    }

    .payment-option {
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 15px;
        margin-bottom: 10px;
        cursor: pointer;
        transition: all 0.2s;
    }
    .payment-option:hover { border-color: #0052CC; }
    .payment-option.selected {
        border-color: #0052CC;
        background-color: rgba(0, 82, 204, 0.03);
    }
    .form-check-input:checked { background-color: #0052CC; border-color: #0052CC; }
    
    .payment-subtext { font-size: 0.8rem; color: #777; margin-top: 5px; margin-left: 28px; }

    .summary-title { font-size: 0.9rem; font-weight: 700; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; text-transform: uppercase; }
    .summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; color: #555; }
    .summary-total-row { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 800; color: #000; margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; }
    
    .btn-confirm { background-color: #0052CC; color: white; font-weight: 700; width: 100%; padding: 12px; border-radius: 4px; border: none; transition: background 0.3s; }
    .btn-confirm:hover { background-color: #091E42; color: white; }
    .btn-confirm:disabled { background-color: #ccc; cursor: not-allowed; }

    .coupon-box { display: flex; gap: 10px; margin-bottom: 20px; }
    .coupon-input { border: 1px solid #ddd; border-radius: 4px; padding: 10px; flex-grow: 1; font-size: 0.9rem; }
    .btn-apply { background: transparent; border: none; color: #0052CC; font-weight: 700; font-size: 0.9rem; }



