@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Outfit:wght@400;700&display=swap');

:root {
    /* Primary Background (Main Theme) */
    --primary-bg-gradient: linear-gradient(135deg, #E34112, #F45C1A);
    --primary-color: #E34112;

    /* Secondary Background */
    --secondary-bg: #FF7A2F;

    /* Page Backgrounds */
    --page-bg: #F9F9F9;
    --card-bg: #FFFFFF;

    /* Button Colors */
    --btn-primary-bg: #D7260F;
    --btn-primary-hover: #B71C0C;
    --btn-secondary-bg: #FF6A00;
    --btn-secondary-hover: #E65C00;

    /* Text Colors */
    --text-primary: #1E1E1E;
    /* Headings */
    --text-secondary: #6B6B6B;
    /* Descriptions */
    --text-white: #FFFFFF;

    /* Highlights */
    --price-color: #2ECC71;
    --highlight_color: #FF6A00;

    /* Footer */
    --footer-bg: #1C1C1C;
    --footer-text: #CCCCCC;

    /* Shadows & Effects */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --glow: rgba(255, 122, 47, 0.6);
    --transition: all 0.3s ease;


}



/* Fixed navbar for desktop (like other websites) */
@media (min-width: 992px) {
    .navbar.sticky-top {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100%;
        z-index: 1050 !important;
        background: var(--primary-bg-gradient) !important;
    }

    /* Add padding to body to prevent content from going under fixed header */
    body {
        padding-top: 56px !important;
    }
}

@media (max-width: 991px) {
    .navbar.sticky-top {
        position: relative !important;
        top: auto !important;
    }

    body {
        padding-top: 0 !important;
    }
}



body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--page-bg);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Prevent horizontal overflow globally */
}

html {
    overflow-x: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

body {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

body::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

#app-content {
    transition: opacity 0.15s ease-in-out;
}



h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--highlight_color);
}

/* Navbar */
.navbar {
    background: var(--primary-bg-gradient) !important;
    /* Applied top bar color here */
    box-shadow: none;
    /* No shadow as requested earlier */
    padding: 6px 0;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white) !important;
    /* White text for contrast */
}

.nav-link {
    font-weight: 500;
    color: var(--text-white) !important;
    /* White text for contrast */
    margin-left: 15px;
    font-size: 15px;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
    color: #f1f1f1 !important;
    /* Light grey hover */
    opacity: 0.9;
}

/* Desktop Search Bar */
.desktop-search-form {
    position: relative;
    width: 220px;
}

.desktop-search-form input {
    padding: 8px 40px 8px 15px;
    border-radius: 6px;
    border: none;
    background: #E34112;
    /* Website primary color - same as See More button */
    color: white;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.desktop-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
}

.desktop-search-form input:focus {
    outline: none;
    background: #B71C0C;
    /* Darker shade on focus - same as See More hover */
    border: none;
    box-shadow: none;
    transform: translateY(-1px);
}

.desktop-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
    pointer-events: none;
}

/* Hero Section */
.hero-section {
    background: var(--primary-bg-gradient);
    color: var(--text-white);
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.hero-section h1,
.hero-section p {
    color: var(--text-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn-primary {
    background-color: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
    color: var(--text-white);
    padding: 10px 30px;
    font-weight: 600;
    border-radius: 30px;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover);
    border-color: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(215, 38, 15, 0.4);
}

.btn-outline-primary {
    color: var(--btn-secondary-bg);
    border-color: var(--btn-secondary-bg);
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--btn-secondary-bg);
    border-color: var(--btn-secondary-bg);
    color: var(--text-white);
}

.btn-see-more {
    background-color: #E34112;
    /* Website primary color */
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.btn-see-more:hover {
    background-color: #B71C0C;
    color: white;
    transform: translateY(-1px);
}

/* Horizontal Scroll Section */
.product-scroll-container {
    position: relative;
    padding: 0 5px;
    overflow: hidden;
    /* Prevent side elements (like scroll buttons) from causing overflow */
}

.product-scroll-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px 20px 5px;
    /* Bottom padding for shadow */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.product-scroll-wrapper::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    /* Chrome/Safari/Webkit */
}

.scroll-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.scroll-btn:hover {
    background: var(--primary-color);
    color: white;
    opacity: 1;
}

.scroll-btn.left {
    left: -20px;
}

.scroll-btn.right {
    right: -20px;
}

/* Minimal Product Card (Updated for Horizontal Scroll) */
.product-card-minimal {
    min-width: 220px;
    max-width: 220px;
    background: transparent;
    border-radius: 8px;
    /* Slightly rounded */
    transition: transform 0.3s ease;
    cursor: pointer;
    margin-bottom: 24px;
    /* Added to ensure vertical gap on shop page */
    box-shadow: none !important;
}

.product-card-minimal:hover {
    transform: none;
}

/* Mobile: Optimized Layout */
@media (max-width: 991px) {

    /* Navbar Components */
    .navbar-brand img {
        height: 32px;
        /* Slightly smaller logo on mobile */
    }

    .navbar-toggler {
        border: none;
        padding: 0;
        color: white;
        font-size: 1.2rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* Mobile Search Bar */
    .mobile-search-bar {
        width: 100%;
        margin: 10px 0;
        padding: 0 15px;
    }

    .mobile-search-bar form {
        width: 100%;
    }

    .mobile-search-bar input {
        width: 100%;
        padding: 10px 15px 10px 40px;
        /* Space for icon */
        border-radius: 20px;
        border: none;
        background: rgba(255, 255, 255, 0.95);
        font-size: 14px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .mobile-search-bar .search-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary-color);
        z-index: 5;
    }

    /* Offcanvas Menu */
    .offcanvas-header {
        background: var(--primary-bg-gradient);
        color: white;
    }

    .offcanvas-title {
        color: white !important;
    }

    .text-muted {
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%);
    }

    .mobile-sidebar-nav li a {
        padding: 12px 20px;
        display: block;
        color: var(--text-primary);
        font-weight: 500;
        border-bottom: 1px solid #eee;
        text-decoration: none;
    }

    .mobile-sidebar-nav li a:hover {
        background: #f9f9f9;
        color: var(--primary-color);
        padding-left: 25px;
        /* Slight slide effect */
    }
}

@media (max-width: 768px) {

    /* General Container Padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Carousel */
    .hero-layout .col-lg-9 {
        padding: 0 15px;
        /* Added padding to reduce banner width slightly on mobile */
    }

    /* Reverted to original/desktop style for hero image */
    .carousel-item img.hero-img {
        /* height: 180px; Removed to let it scale naturally like desktop/before */
        object-fit: cover;
        border-radius: 8px;
    }

    /* Mobile Category Scroll (Horizontal) */
    .mobile-category-scroll {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding: 10px 5px 15px 5px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mobile-category-scroll::-webkit-scrollbar {
        display: none;
    }

    .mobile-cat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 75px;
        text-align: center;
    }

    .mobile-cat-icon {
        width: 55px;
        height: 55px;
        background: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        margin-bottom: 8px;
        padding: 12px;
        border: 1px solid #eee;
    }

    .mobile-cat-text {
        font-size: 11px;
        color: var(--text-primary);
        font-weight: 500;
        line-height: 1.2;
    }

    /* Service Highlights */
    .service-highlights {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .service-btn {
        flex: 1;
        background: #fff;
        padding: 10px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        white-space: nowrap;
        border: 1px solid #eee;
    }

    .service-btn.delivery {
        color: #2ecc71;
    }

    .service-btn.discount {
        color: #e74c3c;
    }


    /* Product Grid Container (Vertical 2-Column) */
    .product-scroll-container {
        padding: 0;
        /* Reduced padding to 0 */
    }

    .product-scroll-wrapper {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px;
        overflow-x: auto !important;
        padding: 4px 0;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling for iOS */
    }

    /* Cleaner Mobile Product Card (Like Desktop) */
    .product-card-minimal {
        min-width: 160px !important;
        flex: 0 0 160px !important;
        /* Fixed width for horizontal scrolling */
        max-width: 160px !important;
        background: transparent !important;
        border-radius: 0;
        scroll-snap-align: start !important;
        margin-bottom: 0;
        border: none !important;
        box-shadow: none !important;
    }

    .product-card-minimal .card-img-wrapper {
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        /* Restored square ratio for 1433/1433 image balance */
        border-radius: 8px !important;
        /* Restored rounding for premium look */
        margin-bottom: 0px;
        padding: 0;
        /* Ensure no padding for badge flushing */
        background: transparent !important;
        border: none !important;
        position: relative;
        overflow: hidden;
        display: block !important;
        /* Disable flex centering on mobile to avoid badge gap */
    }

    .product-card-minimal .card-img-wrapper a {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
    }

    .product-card-minimal img {
        padding: 0;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        border-radius: 8px !important;
        /* Restored rounding for premium look */
        display: block;
        /* Remove baseline spacing */
    }

    .product-card-minimal:hover img {
        transform: none !important;
    }

    .product-card-minimal a.text-decoration-none {
        display: block !important;
        margin-top: 4px !important;
        /* Clear separation below image */
        padding: 0 !important;
    }

    .product-title {
        font-size: 13px !important;
        /* Slightly smaller to fit better */
        padding: 0 2px !important;
        margin-top: 0 !important;
        /* Aligned to parent offset */
        margin-bottom: 0 !important;
        font-weight: 500 !important;
        line-height: 1.2;
        /* Tighter line height */
        height: auto;
        /* Auto height to avoid gap on single line */
        max-height: 32px;
        /* Cap at 2 lines */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
    }

    .product-price-row {
        margin-top: 2px !important;
        /* Restored gap for clarity */
        font-size: 14px !important;
        flex-wrap: wrap;
        gap: 4px;
        align-items: baseline;
        padding: 0 2px;
    }

    .new-price {
        font-size: 15px;
        color: #E91E63;
        font-weight: 700;
    }

    .old-price {
        font-size: 11px;
        color: #999;
        text-decoration: line-through;
    }

    .product-meta-bottom {
        font-size: 10px !important;
        margin-top: 2px !important;
        /* Restored gap for clarity */
        color: #777 !important;
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 0 2px;
    }

    .product-meta-bottom .fa-star {
        color: #FFC107;
        font-size: 10px;
    }

    /* Badges adjustments */
    .product-badge {
        font-size: 10px;
        padding: 3px 8px;
        top: 0 !important;
        left: 0 !important;
        margin: 0 !important;
        border-radius: 8px 0 8px 0;
        background-color: #2ECC71 !important;
        font-weight: 600;
        z-index: 5;
    }

    .wishlist-icon {
        font-size: 14px;
        top: 2px !important;
        /* Moved higher */
        right: 5px;
        background: transparent !important;
        color: #E91E63;
        z-index: 5;
        border: none !important;
        box-shadow: none !important;
    }

    .wishlist-icon:hover {
        background: rgba(255, 255, 255, 0.8);
    }

    .wishlist-icon {
        font-size: 16px;
        top: 3px !important;
        /* Moved higher */
        right: 8px;
        background: transparent !important;
        color: #E91E63;
        /* Pink heart */
        border: none !important;
        box-shadow: none !important;
    }

    .wishlist-icon:hover {
        background: rgba(255, 255, 255, 0.8);
    }

    /* Section Headers */
    .section-header h5 {
        font-size: 16px;
    }

    /* Hide scroll buttons on mobile grid */
    .scroll-btn {
        display: none !important;
    }

    .btn-see-more {
        padding: 4px 10px;
        font-size: 11px;
    }
}

.product-card-minimal .card-img-wrapper {
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    height: auto;
    aspect-ratio: 1 / 1;
    width: 100%;
    display: block;
    margin-bottom: 10px;
}

.product-card-minimal .card-img-wrapper a.d-block {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.product-card-minimal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed from cover to contain in case image is not perfectly 1:1, or use cover if we prefer filled square */
    transition: transform 0.3s ease;
    display: block;
}

.product-card-minimal:hover img {
    transform: scale(1.05);
    /* slightly reduced scale */
}

/* Badges & Icons */
.product-badge {
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    background-color: #2ECC71 !important;
    /* Vibrant Green */
    color: white;
    padding: 3px 8px;
    border-radius: 8px 0 8px 0;
    /* Corner radius matches parent top-left */
    font-size: 11px;
    font-weight: 600;
    z-index: 5;
}

.wishlist-icon {
    position: absolute;
    top: 5px !important;
    /* Moved higher */
    right: 10px;
    color: #ff4757;
    font-size: 18px;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s;
    border: none !important;
    box-shadow: none !important;
}

.wishlist-icon:hover {
    background: #ff4757;
    color: white;
}

/* Product Info */
.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 5px;
}

.product-price-row {
    padding: 0 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.new-price {
    font-size: 16px;
    font-weight: 700;
    color: #e91e63;
    /* Pinkish Red */
}

/* Rating & Sold */
.product-meta-bottom {
    display: flex;
    align-items: center;
    padding: 0 5px;
    font-size: 12px;
    color: #636e72;
    gap: 10px;
}

.rating-star {
    color: #fdcb6e;
    margin-right: 2px;
}

/* Cards */
.product-card {
    background: var(--card-bg);
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    height: 100%;
}

.product-card:hover {
    transform: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.product-card img {
    transition: transform 0.3s ease;
    height: 250px;
    object-fit: contain;
    padding: 20px;
}

.product-card:hover img {
    transform: scale(1.1);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card-text {
    font-size: 16px;
    color: var(--price-color);
    /* Green Price */
    font-weight: 700;
}

.text-muted {
    color: var(--text-secondary) !important;
}

/* Footer Enhancements */
.enhanced-footer {
    background-color: #0b1120;
    color: #cbd5e1;
    padding: 60px 0 30px;
    font-size: 14px;
}

.enhanced-footer h5 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-brand-logo {
    max-width: 80px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.footer-brand-name {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.footer-brand-name span {
    display: inline-block;
    margin-left: 5px;
}

.footer-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    margin-top: 15px;
    color: #e2e8f0;
    letter-spacing: 0.3px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links-list li a i {
    font-size: 10px;
    margin-right: 10px;
    color: #cbd5e1;
}

.footer-links-list li a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact-info i {
    margin-right: 12px;
    margin-top: 5px;
    color: #ffffff;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-icon-btn {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-btn:hover {
    background-color: #ffffff;
    color: #0b1120;
    transform: translateY(-3px);
}

.sub-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #0b1120;
    padding: 20px 0;
    color: #94a3b8;
    font-size: 12px;
}

.developer-text {
    color: #3b82f6;
    text-transform: uppercase;
    font-weight: 600;
}

.sub-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 15px;
}

.sub-footer-links a:hover {
    color: #ffffff;
}

@media (max-width: 991px) {
    .enhanced-footer {
        padding: 40px 0 80px;
        /* Space for bottom nav */
        text-align: left;
    }

    .footer-brand-name {
        font-size: 24px;
    }

    .footer-links-list li a {
        justify-content: flex-start;
    }

    .footer-contact-info p {
        justify-content: flex-start;
    }

    .footer-social-icons {
        justify-content: flex-start;
    }

    .sub-footer-links {
        margin-top: 15px;
        text-align: left;
    }
}

/* Category Badges / Icons (New) */
.category-badge {
    display: inline-block;
    padding: 8px 15px;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.badge-laptop {
    background: #9B59B6;
}

.badge-phone {
    background: #E67E22;
}

.badge-fashion {
    background: #E74C3C;
}

.badge-watch {
    background: #34495E;
}

.badge-all {
    background: #FF6A00;
}


/* Form Control */
.form-control {
    border-radius: 5px;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--highlight_color);
}

/* Top Bar */
.top-bar {
    background: var(--primary-color);
    /* Fallback */
    background: var(--primary-bg-gradient);
    color: var(--text-white);
}

/* Badge (Cart) */
.badge.bg-danger {
    background-color: var(--btn-primary-bg) !important;
}

/* Category Sidebar (Reference Style) */
.category-sidebar {
    background: #fff;
    border-radius: 8px;
    /* Rounded corners like reference */
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--border-color);
}

.sidebar-header {
    background: var(--primary-color);
    /* Site primary color (pinkish-red from gradient) */
    background: var(--primary-bg-gradient);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-list {
    padding: 0;
    margin: 0;
    max-height: 330px;
    /* Adjusted for increased item height */
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    /* Hide in Firefox */
    -ms-overflow-style: none;
    /* Hide in IE/Edge */
}

/* Hide Scrollbar for Webkit */
.sidebar-list::-webkit-scrollbar {
    width: 0;
    display: none;
}

.sidebar-list li a {
    display: block;
    padding: 12px 18px;
    /* Increased padding further */
    /* Increased padding slightly */
    color: var(--text-primary);
    border-bottom: 1px solid #f1f1f1;
    font-size: 16px;
    /* Increased font size */
    font-weight: 500;
    /* Added font weight for clarity */
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.sidebar-list li a:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
    padding-left: 20px;
    font-weight: 600;
    /* Even bolder on hover */
}

.sidebar-list li a i.text-danger {
    color: #ff4757 !important;
}

.sidebar-list li a i.text-primary {
    color: #1e90ff !important;
}

.sidebar-list li a i.text-success {
    color: #2ed573 !important;
}

.sidebar-list li a i.text-warning {
    color: #ffa502 !important;
}

.sidebar-list li a i.text-info {
    color: #70a1ff !important;
}

.sidebar-list li a i.text-secondary {
    color: #535c68 !important;
}

.sidebar-list li a i.fas.fa-chevron-right {
    font-size: 10px;
    color: #ccc;
    margin-left: auto;
}

/* Banner / Hero Image Responsiveness */
.hero-img {
    height: 318px;
    /* Fixed height as requested for Desktop */
    width: 100%;
    object-fit: cover;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .hero-img {
        height: auto;
        width: 100%;
        min-height: auto;
        object-fit: contain;
        /* Ensures full image is visible, no cropping */
    }
}

/* Custom Hero Layout (Desktop Sizing Tuning) */
@media (min-width: 992px) {

    /* Adjusted ratios: Sidebar stronger, Image dominant, nice gap via gx-4 */
    .hero-layout .col-lg-3 {
        flex: 0 0 30%;
        max-width: 30%;
    }

    .hero-layout .col-lg-9 {
        flex: 0 0 70%;
        max-width: 70%;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Existing content for 768px */

    .carousel-caption {
        bottom: 10%;
    }

    .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .carousel-caption .btn {
        padding: 5px 15px;
        font-size: 12px;
    }

    .navbar-brand {
        font-size: 18px;
    }

    .navbar-brand img {
        height: 25px !important;
    }

    .hero-section {
        min-height: auto;
        padding: 60px 0;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .floating-animation {
        display: none;
    }

    .product-card img {
        height: 150px;
        padding: 10px;
    }

    .card-body {
        padding: 10px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-text {
        font-size: 14px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Close 768px media query */

/* Mobile & Tablet Specific UI (max-width: 991px) */
@media (max-width: 991px) {

    /* Mobile Header Tweaks */
    /* Remove sticky navbar on mobile - only bottom nav should be fixed */
    .navbar.sticky-top {
        position: relative !important;
        top: auto !important;
    }

    .navbar-brand {
        font-size: 18px;
    }

    .navbar-brand img {
        height: 25px !important;
    }

    .navbar-toggler {
        border: none;
        color: white;
    }

    /* Mobile Search Bar in Header */
    .mobile-search-bar {
        flex: 1;
        max-width: 140px;
        margin: 0 5px;
    }

    .mobile-search-bar form {
        position: relative;
        width: 100%;
    }

    .mobile-search-bar .search-icon {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(255, 255, 255, 0.8);
        font-size: 12px;
        z-index: 1;
    }

    .mobile-search-bar input {
        border-radius: 20px;
        font-size: 12px;
        padding: 5px 32px 5px 12px;
        border: none;
        background: transparent;
        color: white;
    }

    .mobile-search-bar input::placeholder {
        color: rgba(255, 255, 255, 0.8);
        font-size: 11px;
    }

    .mobile-search-bar input:focus {
        outline: none;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    /* Adjust navbar container for mobile */
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Horizontal Category Scroll */
    .mobile-category-scroll {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding: 15px;
        background: transparent !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mobile-category-scroll::-webkit-scrollbar {
        display: none;
    }

    .mobile-cat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 70px;
        text-align: center;
    }

    .mobile-cat-icon {
        width: 50px;
        height: 50px;
        background: transparent !important;
        border-radius: 0 !important;
        /* Removed rounding for borderless look */
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 5px;
        box-shadow: none !important;
        font-size: 20px;
        color: var(--primary-color);
        border: none !important;
    }

    .mobile-cat-text {
        font-size: 11px;
        color: #333;
        font-weight: 500;
        line-height: 1.2;
    }

    /* Service Highlights */
    .service-highlights {
        display: flex;
        gap: 10px;
        padding: 0 15px 15px 15px;
        background: transparent !important;
    }

    .service-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
        gap: 8px;
    }

    .service-btn.delivery,
    .service-btn.discount {
        background: transparent !important;
        color: #E91E63;
        border: 1px solid #FFB3C1;
    }

    .service-btn.delivery i {
        animation: truck-move 1.5s infinite ease-in-out;
        display: inline-block;
    }

    @keyframes truck-move {

        0%,
        100% {
            transform: translateX(0) translateY(0);
        }

        25% {
            transform: translateX(2px) translateY(-1px);
        }

        50% {
            transform: translateX(0) translateY(0);
        }

        75% {
            transform: translateX(1px) translateY(-0.5px);
        }
    }

    /* Bottom Navigation Bar */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--primary-bg-gradient);
        display: flex;
        justify-content: space-around;
        padding: 12px 0;
        z-index: 2000;
        /* Extremely high z-index */
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-item-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: rgba(255, 255, 255, 0.7) !important;
        text-decoration: none;
        font-size: 12px;
        gap: 4px;
        position: relative;
        flex: 1;
    }

    .nav-item-bottom.active {
        color: #fff !important;
    }

    .nav-item-bottom i {
        font-size: 22px;
        margin-bottom: 2px;
    }

    .nav-item-bottom .badge {
        position: absolute;
        top: -8px;
        right: 20%;
        font-size: 9px;
        padding: 3px 5px;
        background: #fff !important;
        color: var(--primary-color) !important;
        border: 2px solid var(--primary-color);
    }

    /* Footer spacing */
    footer {
        padding-bottom: 80px !important;
    }

    /* Message Bubble Popup Style */
    .message-bubble-wrapper {
        position: fixed;
        bottom: 80px;
        /* Adjust based on your bottom nav height */
        left: 58.3%;
        transform: translateX(-50%);
        width: auto;
        z-index: 2200;
        pointer-events: none;
    }

    .message-bubble {
        background: #E34112;
        /* Website primary color */
        padding: 8px 10px;
        border-radius: 12px;
        display: flex;
        gap: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        pointer-events: auto;
        position: relative;
    }

    .message-bubble.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Bubble Arrow */
    .message-bubble::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px 6px 0 6px;
        border-style: solid;
        border-color: #E34112 transparent transparent transparent;
    }

    .bubble-item {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        text-decoration: none;
        color: #fff;
        font-size: 20px;
        transition: transform 0.2s ease;
    }

    .bubble-item:active {
        transform: scale(0.9);
    }

    .bubble-item.whatsapp {
        background: #25D366;
    }

    .bubble-item.messenger {
        background: #0084FF;
    }

    .bubble-item.email {
        background: #fff;
        /* White background for Gmail logo contrast */
    }

    .bubble-item.email svg {
        width: 26px;
        height: auto;
    }

    .message-sheet-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.1);
        z-index: 2100;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }

    .message-sheet-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* --- Mobile Sidebar Menu Styles --- */
.user-avatar-circle {
    width: 45px;
    height: 45px;
    background: #fdf2f2;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 25px;
}

.mobile-nav-link i {
    font-size: 18px;
    width: 25px;
    color: var(--primary-color);
}

.bg-pink-gradient {
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%) !important;
}

#mobileSidebar .offcanvas-header {
    background: #fff;
}

#mobileSidebar .btn-close:focus {
    box-shadow: none;
}

/* Ensure navbar toggler is visible or correctly styled if needed */
.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.payment-option-card {
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.payment-option-card.active,
.payment-option-card:hover {
    border-color: var(--primary-color);
    background: #fff;
}

.payment-option-card i {
    font-size: 24px;
    color: var(--primary-color);
}

.payment-option-card span {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.checkout-btn-confirm {
    background: var(--primary-bg-gradient);
    color: #fff;
    border: none;
    border-radius: 15px;
    padding: 18px;
    font-weight: 800;
    font-size: 17px;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(227, 65, 18, 0.2);
    transition: all 0.3s ease;
}

.checkout-btn-confirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(227, 65, 18, 0.3);
}

@media (max-width: 991px) {
    .checkout-card {
        margin-bottom: 25px;
    }
}

/* =========================================
   Checkout Page Premium Styles
   ========================================= */
.checkout-section {
    background-color: #f8fafc;
}

.checkout-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    height: 100%;
}

.checkout-card .card-header {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 25px;
}

.checkout-card .card-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-card .card-header h4 i {
    color: var(--primary-color);
}

.checkout-card .card-body {
    padding: 25px;
}

.form-group-custom {
    margin-bottom: 20px;
}

.form-group-custom label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.form-input-premium {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-input-premium:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(227, 65, 18, 0.1);
}

.form-input-premium::placeholder {
    color: #94a3b8;
}

.checkout-summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.checkout-summary-item:last-child {
    border-bottom: none;
}

.summary-img-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.summary-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.summary-item-details h6 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #1e293b;
}

.summary-item-details p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.summary-item-price {
    font-size: 14px;
    color: #1e293b;
}

.summary-calc span {
    font-size: 14px;
}

.trust-info {
    border: 1px dashed #cbd5e1;
}

.fw-extrabold {
    font-weight: 800;
}

/* Custom AlertifyJS Overrides for Modern Toasts */
.alertify-notifier {
    z-index: 999999 !important;
}

.alertify-notifier .ajs-message {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: auto !important;
    min-width: 350px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.ajs-message.ajs-visible {
    margin-bottom: 20px !important;
}

.premium-toast {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 6px 16px;
    /* Truly mini padding */
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    gap: 10px;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    /* Micro width */
    text-align: left;
}

.premium-toast.success {
    border-left: 4px solid #28a745;
}

.premium-toast.error {
    border-left: 4px solid #dc3545;
}

.toast-icon-wrapper {
    width: 24px;
    /* Tiny icon wrapper */
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.success .toast-icon-wrapper {
    background: #28a745;
    color: #fff;
}

.error .toast-icon-wrapper {
    background: #dc3545;
    color: #fff;
}

.toast-content-wrapper {
    flex-grow: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 12px;
    /* Micro font size */
    color: #000;
    margin-bottom: -2px;
}

.toast-message {
    font-size: 11px;
    /* Micro font size */
    color: #444;
    line-height: 1.1;
    font-weight: 500;
}

.toast-close-btn {
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    padding-left: 10px;
}

/* Ensure top-center position is truly centered */
.alertify-notifier.ajs-top-center {
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 30px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Mobile Search Bar */
.mobile-search-bar {
    padding: 10px 15px;
}

.mobile-search-bar form {
    position: relative;
}

.mobile-search-bar .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 12px;
    z-index: 1;
}

.mobile-search-bar input {
    padding: 6px 15px 6px 35px;
    border-radius: 6px;
    border: none;
    background: #E34112;
    /* Website primary color - same as See More button */
    color: white;
    font-size: 12px;
    font-weight: 600;
    width: 100%;
}

.mobile-search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
}

.mobile-search-bar input:focus {
    outline: none;
    background: #B71C0C;
    /* Darker shade on focus */
    box-shadow: none;
}

/* =========================================
   Authentication Pages (Login/Register)
   ========================================= */
.auth-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--page-bg);
    padding: 40px 0;
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft, premium shadow */
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
}

.auth-header {
    text-align: center;
    padding: 40px 40px 20px;
}

.auth-header .logo-box {
    margin-bottom: 20px;
    display: inline-block;
}

.auth-header .logo-box img {
    height: 50px;
    object-fit: contain;
}

.auth-header h4 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 24px;
}

.auth-body {
    padding: 0 40px 40px;
}

.auth-group {
    margin-bottom: 20px;
}

.auth-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-input-group {
    position: relative;
}

.auth-input {
    padding: 12px 15px 12px 45px;
    /* Space for icon */
    border-radius: 10px;
    border: 2px solid #f1f1f1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    height: auto;
}

.auth-input:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(227, 65, 18, 0.1);
}

.auth-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b0b0;
    font-size: 16px;
    transition: color 0.3s ease;
    pointer-events: none;
}

/* Fix for when icon is after input in HTML structure commonly used for floating labels or sibling selectors */
/* We need to ensure the icon is correctly placed if it follows the input */
.auth-input-group .auth-input:focus~i {
    color: var(--primary-color);
}

/* If icon is simply inside the group but earlier in DOM or handled by sibling selector above, this is backup */
.auth-input:focus+i {
    color: var(--primary-color);
}


.auth-btn {
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    background: var(--primary-bg-gradient);
    border: none;
    color: white;
    box-shadow: 0 10px 20px rgba(227, 65, 18, 0.25);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(227, 65, 18, 0.35);
    color: white;
}

.auth-footer {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #f1f1f1;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.auth-card {
    animation: fadeInUp 0.6s ease-out;
}

/* =========================================
   Cart Page Styles
   ========================================= */

/* Global Loading Overlay */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.global-loader.show {
    opacity: 1;
    visibility: visible;
}

.spinner {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-block;
}

.spinner-bar {
    width: 10%;
    height: 25%;
    background: var(--primary-color);
    /* Matches website theme */
    position: absolute;
    left: 44.5%;
    top: 37%;
    opacity: 0;
    border-radius: 50px;
    box-shadow: 0 0 3px rgba(227, 65, 18, 0.2);
    animation: fade 1.2s linear infinite;
}

.spinner-bar:nth-child(1) {
    transform: rotate(0deg) translate(0, -142%);
    animation-delay: 0s;
}

.spinner-bar:nth-child(2) {
    transform: rotate(30deg) translate(0, -142%);
    animation-delay: -1.1s;
}

.spinner-bar:nth-child(3) {
    transform: rotate(60deg) translate(0, -142%);
    animation-delay: -1.0s;
}

.spinner-bar:nth-child(4) {
    transform: rotate(90deg) translate(0, -142%);
    animation-delay: -0.9s;
}

.spinner-bar:nth-child(5) {
    transform: rotate(120deg) translate(0, -142%);
    animation-delay: -0.8s;
}

.spinner-bar:nth-child(6) {
    transform: rotate(150deg) translate(0, -142%);
    animation-delay: -0.7s;
}

.spinner-bar:nth-child(7) {
    transform: rotate(180deg) translate(0, -142%);
    animation-delay: -0.6s;
}

.spinner-bar:nth-child(8) {
    transform: rotate(210deg) translate(0, -142%);
    animation-delay: -0.5s;
}

.spinner-bar:nth-child(9) {
    transform: rotate(240deg) translate(0, -142%);
    animation-delay: -0.4s;
}

.spinner-bar:nth-child(10) {
    transform: rotate(270deg) translate(0, -142%);
    animation-delay: -0.3s;
}

.spinner-bar:nth-child(11) {
    transform: rotate(300deg) translate(0, -142%);
    animation-delay: -0.2s;
}

.spinner-bar:nth-child(12) {
    transform: rotate(330deg) translate(0, -142%);
    animation-delay: -0.1s;
}

@keyframes fade {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.1;
    }
}

.cart-product-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    background-color: #f8f9fa;
    padding: 5px;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    overflow: hidden;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
}

.qty-btn:hover {
    background: #e9ecef;
}

.qty-input {
    width: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
    pointer-events: none;
    /* Prevent manual typing for safer UX */
    background: #fff;
}

/* Chrome, Safari, Edge, Opera - hide arrows/spinners */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.qty-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.remove-cart-btn {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    font-size: 16px;
}

.remove-cart-btn:hover {
    color: #c0392b;
    transform: scale(1.1);
}

/* Mobile Responsiveness for Cart */
@media (max-width: 768px) {
    .cart-product-img {
        width: 80px;
        height: 80px;
    }

    .cart-item-card .card-body {
        padding: 15px !important;
    }

    .cart-item-card h6 a {
        font-size: 15px !important;
    }

    .quantity-control {
        transform: scale(0.9);
        transform-origin: left center;
    }
}

/* =========================================
   Profile Page Styles
   ========================================= */

.profile-header {
    background: var(--primary-bg-gradient);
    padding: 80px 0 100px;
    /* Reduced bottom padding */
    color: white;
    position: relative;
    overflow: hidden;
    /* Prevent horizontal overflow from scaled pseudo-element */
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--page-bg);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: scaleX(1.5);
}

.profile-avatar-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 15px;
    background: #fff;
    padding: 5px;
    border-radius: 50%;
    z-index: 10;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.stat-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
}

/* Modern Table Styles for Orders */
.table-modern thead th {
    background-color: #f8f9fa;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e9ecef;
    padding: 15px;
}

.table-modern tbody td {
    padding: 15px;
    vertical-align: middle;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid #f1f1f1;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

.table-modern tbody tr:hover {
    background-color: #f8f9fa;
}

.order-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Sidebar Profile List */
.profile-list-group .list-group-item {
    border: none;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.profile-list-group .list-group-item:hover,
.profile-list-group .list-group-item.active {
    background-color: #fff4f2;
    /* Light primary color bg */
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
    z-index: 10;
    /* Ensure active item stays on top */
}

.profile-list-group .list-group-item.active {
    background-color: #fff4f2 !important;
    /* Ensure override */
    border-color: transparent transparent transparent var(--primary-color);
    /* Maintain left border */
}

/* Specific logout styling - override generic active styles if needed */
.profile-list-group .list-group-item.text-danger:hover {
    background-color: #fff5f5;
    color: #dc3545;
    border-left-color: #dc3545;
}

.card-title-modern {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
}

/* Responsive adjustments for Profile */
@media (max-width: 768px) {
    .profile-header {
        padding: 60px 0 80px;
    }

    .profile-avatar-wrapper {
        width: 100px;
        height: 100px;
    }

    .stat-card .card-body {
        padding: 10px;
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        margin-right: 0 !important;
        margin-bottom: 10px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .table-modern thead {
        display: none;
        /* Hide header on mobile if needed, or keep scroll */
    }

    /* Option: Scrollable table on mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Ensure table content doesn't break layout */
    .table-modern {
        min-width: 600px;
    }

    .col-6.col-md-3 {
        padding-left: 5px;
        /* Tighter padding for stats grid */
        padding-right: 5px;
    }
}

/* Search Results Suggestions Dropdown */
.search-results-container {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border: 1px solid #eee;
}

.search-results-container.show {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f9f9f9;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    background: #f0f0f0;
}

.suggestion-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-suggestion {
    padding: 15px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* Mobile Search Bar Wrapper for focus UX */
@media (max-width: 991px) {
    .mobile-search-bar {
        cursor: pointer;
    }
}