/* A4SKART Custom Modern Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --brand-primary: #2563eb;
    --brand-primary-hover: #1d4ed8;
    --brand-secondary: #0f172a;
    --brand-accent: #f59e0b;
    --brand-success: #10b981;
    --brand-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    --brand-gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(226, 232, 240, 0.8);
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
    --card-shadow-hover: 0 20px 35px -10px rgba(37, 99, 235, 0.15), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--font-family) !important;
    background-color: #f8fafc;
    color: #1e293b;
    /* NOTE: Do NOT add overflow-x: hidden here — it breaks position: sticky on the header */
}

/* Glassmorphic Navbar & Header */
.modern-header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1040;
    transition: all 0.3s ease;
}

.top-announcement-bar {
    background: var(--brand-secondary);
    color: #94a3b8;
    font-size: 0.825rem;
    font-weight: 500;
    padding: 6px 0;
}

@media (max-width: 991px) {
    .top-announcement-bar {
        display: none !important;
    }
}

.top-announcement-bar a {
    color: #e2e8f0;
    transition: color 0.2s;
}

.top-announcement-bar a:hover {
    color: #38bdf8;
}

/* Brand Logo */
.brand-logo-img {
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
    transition: transform 0.25s ease;
}

.brand-logo-img:hover {
    transform: scale(1.03);
}

/* Search Bar Modern */
.search-wrapper {
    position: relative;
    max-width: 100% !important;
    width: 100% !important;
}

.search-input-modern {
    border-radius: 30px !important;
    padding-left: 20px !important;
    padding-right: 50px !important;
    height: 42px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
}

.search-input-modern:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

.search-btn-modern {
    position: absolute;
    right: 3px;
    top: 3px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-btn-modern:hover {
    background: var(--brand-primary-hover);
    transform: scale(1.05);
}

/* Category Pills / Chips Navigation */
.category-filter-nav {
    display: flex;
    flex-wrap: wrap !important;
    gap: 10px;
    padding: 12px;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 110px !important;
    z-index: 1030 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.12) !important;
    border-radius: 20px !important;
}

@media (max-width: 768px) {
    .category-filter-nav {
        top: 95px !important;
        padding: 8px;
        gap: 6px;
    }
}

.category-filter-nav::-webkit-scrollbar {
    height: 4px;
}

.category-filter-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.category-filter-wrapper {
    position: sticky;
    top: 110px !important;
    z-index: 990;
    background: #ffffff;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 16px !important;
    padding: 16px 18px !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        margin 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-radius 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        padding 0.25s ease;
    box-sizing: border-box !important;
    will-change: width, margin, border-radius;
}

.category-filter-wrapper.is-sticky {
    position: sticky;
    top: 110px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
    padding: 10px 10px !important;
}

.category-filter-nav {
    display: flex;
    flex-wrap: wrap;
    width: 100% !important;
    gap: 5px 6px !important;
    padding: 7px !important;
    box-sizing: border-box !important;
}

.cat-chip {
    white-space: nowrap;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    background: #ffffff;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-size: 0.70rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.cat-chip i {
    display: none !important;
}

.cat-chip:hover {
    background: #f0f9ff !important;
    color: #0284c7 !important;
    border-color: #7dd3fc !important;
    transform: translateY(-1px);
}

.cat-chip.active {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
    transform: translateY(-1px);
}

.cat-chip-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 1px 5px !important;
    border-radius: 10px !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    line-height: 1.2;
}

.cat-chip.active .cat-chip-badge {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* Modern Light Gradient Hero Section */
.hero-banner-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 45%, #e0f2fe 100%) !important;
    border-radius: 20px;
    padding: 26px 32px;
    color: #0f172a !important;
    position: relative;
    overflow: hidden;
    border: 1.5px solid #bae6fd !important;
    box-shadow: 0 10px 30px -5px rgba(2, 132, 199, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 20px;
}

.hero-banner-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-banner-modern::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-banner-modern .hero-title {
    color: #0f172a !important;
}

.hero-banner-modern .hero-subtitle {
    color: #475569 !important;
}

.hero-image-box {
    /* background: #ffffff !important; */
    backdrop-filter: blur(8px);
    /* border: 1.5px solid #e2e8f0 !important; */
    /* box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08) !important; */
    padding: 14px 22px !important;
    border-radius: 18px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image-box:hover {
    transform: translateY(-3px) scale(1.02);
}

/* Product Card Redesign */
.modern-product-card {
    background: #ffffff;
    border-radius: 20px !important;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.modern-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(2, 132, 199, 0.12);
    border-color: #38bdf8;
}

.product-img-wrapper {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 14px 8px 8px 8px !important;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 12px;
}

.product-img-wrapper img {
    height: 160px;
    object-fit: contain;
    border-radius: 10px !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.category-tag-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.68rem;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    border: none !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.quick-action-share {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 2;
}

.quick-action-share:hover {
    background: #0284c7;
    color: white;
    border-color: #0284c7;
    transform: scale(1.05);
}

.product-card-body {
    padding: 10px 12px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title-link {
    font-size: 0.90rem !important;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 6px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.product-title-link:hover {
    color: #0284c7;
}

.price-box {
    background: #f8fafc;
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 14px;
    border: 1px solid #e2e8f0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.price-row+.price-row {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #cbd5e1;
}

.price-label {
    color: #64748b;
    font-weight: 600;
}

.price-val-retail {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.88rem;
}

.price-val-wholesale {
    font-weight: 900;
    color: #059669;
    font-size: 0.95rem;
}

.btn-add-cart-modern {
    width: 100%;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 11px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    margin-top: auto;
}

.btn-add-cart-modern:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
    transform: translateY(-2px);
    color: white;
}

/* User Dashboard Cards & Tabs */
.dashboard-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    box-shadow: var(--card-shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.nav-tabs-modern {
    border-bottom: 2px solid #e2e8f0;
    gap: 8px;
}

.nav-tabs-modern .nav-link {
    border: none !important;
    color: #64748b;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all 0.2s ease;
    position: relative;
}

.nav-tabs-modern .nav-link.active {
    color: var(--brand-primary) !important;
    background: transparent !important;
}

.nav-tabs-modern .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-primary);
    border-radius: 3px 3px 0 0;
}

/* Chat Box System */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 480px;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.chat-header {
    background: var(--brand-secondary);
    color: white;
    padding: 14px 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.45;
    position: relative;
    word-break: break-word;
}

.chat-bubble-user {
    align-self: flex-end;
    background: var(--brand-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bubble-admin {
    align-self: flex-start;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.chat-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 4px;
    display: block;
    text-align: right;
}

.chat-footer {
    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
}

/* Admin Dashboard Modern */
.admin-card-stat {
    border-radius: var(--radius-md);
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease;
}

.admin-card-stat:hover {
    transform: translateY(-3px);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Cart Offcanvas / Drawer Modern */
.cart-drawer-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}

.cart-drawer-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8fafc;
}

/* Anti-Flicker & Hardware Acceleration */
.modern-product-card,
.product-img-wrapper img,
.cat-chip,
.hero-banner-modern,
.btn-add-cart-modern {
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform, opacity;
}

.product-card-item {
    transition: none !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* Footer High Contrast Colors */

footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%) !important;
    color: #cbd5e1 !important;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
footer strong {
    color: #ffffff !important;
}

footer p,
footer address {
    color: #94a3b8 !important;
}

footer a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

footer a:hover {
    color: #38bdf8 !important;
}

footer .text-muted {
    color: #94a3b8 !important;
}

footer .text-white {
    color: #ffffff !important;
}

.hover-white {
    color: #cbd5e1 !important;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.hover-white:hover {
    color: #ffffff !important;
    transform: translateX(4px);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE OPTIMIZATIONS (Max Width 768px & 480px)
   ========================================================================== */
@media (max-width: 768px) {

    /* Billing & Delivery Checkout Header Mobile Font Scaling */
    .page-checkout-title {
        font-size: 1.15rem !important;
        line-height: 1.3 !important;
        gap: 8px !important;
    }

    .page-checkout-title div {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        font-size: 1.1rem !important;
        border-radius: 10px !important;
    }

    /* Top Header Mobile Flex Alignment */
    .brand-logo-img {
        height: 34px !important;
        max-width: 150px !important;
        object-fit: contain;
    }

    /* Dashboard Mobile Sticky Navigation Button */
    .sticky-dash-nav-wrap {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 65px !important;
        z-index: 1035 !important;
    }

    /* Hero Banner Mobile Adjustments */
    .hero-banner-modern {
        padding: 18px 20px !important;
        border-radius: 16px !important;
        margin-bottom: 16px !important;
        text-align: center;
    }

    .hero-banner-modern h2 {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
    }

    .hero-banner-modern p {
        font-size: 0.8rem !important;
        margin-bottom: 12px !important;
    }

    .hero-banner-modern .hero-image img {
        max-height: 100px !important;
        margin-top: 10px;
    }

    .hero-banner-modern .btn {
        padding: 6px 14px !important;
        font-size: 0.78rem !important;
        width: 100%;
    }

    /* Category Showcase Header Card Mobile */
    #product-showcase .rounded-4 {
        padding: 18px 16px !important;
        border-radius: 16px !important;
    }

    #product-showcase h5 {
        font-size: 1rem !important;
        margin-bottom: 2px !important;
    }

    #product-showcase p {
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
    }

    /* Category Pills Filter Nav Mobile Scrollable Bar */
    .category-filter-wrapper {
        top: 110px !important;
        padding: 5px 5px !important;
        border-radius: 14px !important;
    }

    .category-filter-wrapper.is-sticky {
        top: 110px !important;
        padding: 5px 5px !important;
    }

    .category-filter-nav {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 0 !important;
        gap: 6px !important;
    }

    .category-filter-nav::-webkit-scrollbar {
        display: none;
    }

    .cat-chip {
        padding: 4px 9px !important;
        font-size: 0.70rem !important;
        border-radius: 20px !important;
        flex-shrink: 0 !important;
    }

    .cat-chip i {
        display: none !important;
    }

    .cat-chip-badge {
        font-size: 0.62rem !important;
        padding: 1px 5px !important;
    }

    /* Product Grid Card Mobile (2-Col Grid) */
    .product-card-item {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .modern-product-card {
        border-radius: 14px !important;
        padding: 8px !important;
    }

    .product-img-wrapper {
        height: 125px !important;
        border-radius: 10px !important;
    }

    .product-img-wrapper img {
        max-height: 105px !important;
        border-radius: 8px !important;
    }

    .product-title-link {
        font-size: 0.8rem !important;
        line-height: 1.25 !important;
        min-height: 32px !important;
        margin-bottom: 6px !important;
    }

    .category-tag-badge {
        font-size: 0.64rem !important;
        padding: 2px 6px !important;
        max-width: calc(100% - 46px) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .price-box {
        padding: 6px 8px !important;
        margin-bottom: 8px !important;
        border-radius: 10px !important;
    }

    .price-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 1px !important;
        font-size: 0.72rem !important;
    }

    .price-row+.price-row {
        margin-top: 4px !important;
        padding-top: 4px !important;
        border-top: 1px dashed #cbd5e1 !important;
    }

    .price-label {
        color: #64748b !important;
        font-weight: 600 !important;
        font-size: 0.65rem !important;
        line-height: 1.1 !important;
    }

    .price-val-retail {
        font-weight: 800 !important;
        color: #0f172a !important;
        font-size: 0.82rem !important;
        line-height: 1.1 !important;
    }

    .price-val-wholesale {
        font-weight: 900 !important;
        color: #059669 !important;
        font-size: 0.85rem !important;
        line-height: 1.1 !important;
    }

    .btn-add-cart-modern {
        padding: 7px 8px !important;
        font-size: 0.76rem !important;
        border-radius: 10px !important;
    }

    /* Fix Back-to-Top Button Overlapping Add to Cart Button */
    .u-go-to,
    .js-go-to {
        bottom: 24px !important;
        right: 12px !important;
        width: 36px !important;
        height: 36px !important;
        z-index: 900 !important;
        opacity: 0.85 !important;
    }

    .u-go-to__inner {
        font-size: 14px !important;
    }
}

/* Zero Horizontal Page Scrolling on Mobile View */
/* IMPORTANT: Use overflow-x: clip (NOT hidden) — 'hidden' creates a scroll container which
   BREAKS position: sticky on the header. 'clip' does NOT create a scroll container. */
html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
    position: relative;
}

/* Bootstrap 5 Dropdown menus — ensure they always render on top and are visible */
.dropdown-menu {
    z-index: 1055 !important;
    position: absolute !important;
}

/* Allow the modern-header's dropdown children to overflow (show below header) */
.modern-header,
.modern-header .dropdown {
    overflow: visible !important;
}

@media (max-width: 767.98px) {

    .container,
    .container-fluid,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }

    #header .row,
    .modern-header .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .brand-logo-img {
        max-height: 24px !important;
        width: auto !important;
    }

    .modern-header .container {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .modern-header .btn {
        padding: 3px 5px !important;
        font-size: 0.72rem !important;
    }

    .modern-header .btn i {
        font-size: 0.9rem !important;
    }
}

/* Animated Color Changing & Pulse Zoom Effect for Our Products Button */
@keyframes ourProductsPulseZoomColor {
    0% {
        transform: scale(1);
        filter: hue-rotate(0deg);
        box-shadow: 0 4px 15px rgba(2, 132, 199, 0.45);
    }

    25% {
        transform: scale(1.08);
        filter: hue-rotate(85deg);
        box-shadow: 0 8px 25px rgba(147, 51, 234, 0.65), 0 0 0 6px rgba(147, 51, 234, 0.2);
    }

    50% {
        transform: scale(1);
        filter: hue-rotate(170deg);
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
    }

    75% {
        transform: scale(1.08);
        filter: hue-rotate(255deg);
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.65), 0 0 0 6px rgba(245, 158, 11, 0.2);
    }

    100% {
        transform: scale(1);
        filter: hue-rotate(360deg);
        box-shadow: 0 4px 15px rgba(2, 132, 199, 0.45);
    }
}

.header-btn-our-products {
    height: 42px !important;
    padding: 0 22px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
    animation: ourProductsPulseZoomColor 5s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    color: #ffffff !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    box-sizing: border-box !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.header-btn-our-products:hover {
    animation-play-state: paused !important;
    transform: scale(1.1) translateY(-1px) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.65) !important;
}

.header-nav-btn {
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

.header-nav-btn-icon {
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

@media (max-width: 767.98px) {

    /* Mobile Top Main Header Bar */
    .mobile-top-header {
        padding: 10px 14px !important;
        background: #ffffff !important;
    }

    .brand-logo-img-mobile {
        height: 38px !important;
        max-width: 145px !important;
        object-fit: contain !important;
    }

    /* Mobile "Our Products" Button (LARGE SIZE & WIDE WIDTH) */
    .header-btn-our-products-mobile {
        height: 42px !important;
        padding: 0 20px !important;
        font-size: 0.9rem !important;
        font-weight: 800 !important;
        border-radius: 30px !important;
        background: linear-gradient(135deg, #16a34a 0%, #15803d 50%, #059669 100%) !important;
        color: #ffffff !important;
        border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
        box-shadow: 0 5px 20px rgba(22, 163, 74, 0.45) !important;
        white-space: nowrap !important;
        letter-spacing: 0.02em !important;
        animation: ourProductsPulseZoomColor 5s infinite ease-in-out !important;
    }

    /* Mobile Sub-Header Menu Bar */
    .mobile-sub-header {
        background: #ffffff !important;
        border-top: 1px solid #f1f5f9 !important;
        border-bottom: 1px solid #cbd5e1 !important;
        padding: 10px 12px !important;
    }

    /* Mobile Sub-Header Action Chips Bar (With 8px spacing between all buttons) */
    .mobile-action-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    .mobile-action-chip {
        height: 38px !important;
        padding: 0 14px !important;
        border-radius: 20px !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        border: 1px solid #cbd5e1 !important;
        background: #ffffff !important;
        color: #0f172a !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04) !important;
    }

    .mobile-action-icon-btn {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        border: 1px solid #cbd5e1 !important;
        background: #ffffff !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04) !important;
    }

    .mobile-sub-header .dropdown {
        position: relative !important;
    }

    .mobile-sub-header .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        transform: none !important;
        margin-top: -4px !important;
        margin-bottom: 0 !important;
        z-index: 1080 !important;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
    }

    .mobile-sub-header .dropdown-menu.dropdown-menu-start {
        left: 0 !important;
        right: auto !important;
    }

    .mobile-sub-header .dropdown-menu.dropdown-menu-end {
        right: 0 !important;
        left: auto !important;
    }

    .header-nav-btn {
        height: 34px !important;
        padding: 0 10px !important;
        font-size: 0.74rem !important;
    }

    .header-nav-btn-icon {
        width: 34px !important;
        height: 34px !important;
    }
}

/* ==========================================================================
   MOBILE DROPDOWN & STICKY HEADER CRITICAL FIXES
   ========================================================================== */

/* Ensure sticky header works across all mobile browsers */
@supports (position: sticky) {
    .modern-header {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1040 !important;
    }
}

/* Mobile dropdown menu positioning — use fixed strategy via JS (Popper) */
@media (max-width: 991.98px) {

    /* Prevent header from clipping its dropdown children */
    .modern-header {
        overflow: visible !important;
        -webkit-overflow-scrolling: touch;
    }

    .modern-header .dropdown {
        position: static !important;
    }

    /* Dropdown menus on mobile — appear below the button, properly sized */
    .modern-header .dropdown-menu {
        position: fixed !important;
        z-index: 1060 !important;
        max-width: calc(100vw - 24px) !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        border-radius: 14px !important;
        box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18) !important;
        border: 1px solid #e2e8f0 !important;
        margin-top: 8px !important;
    }

    /* User profile dropdown — wider on mobile */
    .modern-header .dropdown-menu[aria-labelledby="mainUserDropdown"] {
        width: min(285px, calc(100vw - 24px)) !important;
    }

    /* Notification dropdown — proper width */
    .modern-header .dropdown-menu[aria-labelledby="notificationBellBtn"] {
        width: min(300px, calc(100vw - 24px)) !important;
    }

    /* Catalogue dropdown */
    .modern-header .dropdown-menu[aria-labelledby="headerCatalogueDropdown"] {
        width: min(220px, calc(100vw - 24px)) !important;
    }
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS — A4SKART
   Target: All screens ≤ 767px (phones)
   ========================================================================== */

@media (max-width: 767.98px) {

    /* ------------------------------------------------------------------
       GENERAL SPACING & TYPOGRAPHY — Balanced mobile rhythm
    ------------------------------------------------------------------ */
    section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Vertical rhythm utilities */
    .py-5 {
        padding-top: 1.75rem !important;
        padding-bottom: 1.75rem !important;
    }

    .py-4 {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    .py-3 {
        padding-top: 0.85rem !important;
        padding-bottom: 0.85rem !important;
    }

    .mb-5 {
        margin-bottom: 1.25rem !important;
    }

    .mb-4 {
        margin-bottom: 1rem !important;
    }

    .mb-3 {
        margin-bottom: 0.75rem !important;
    }

    .pb-4 {
        padding-bottom: 1rem !important;
    }

    .pt-4 {
        padding-top: 1rem !important;
    }

    /* Container horizontal padding — give content breathing room */
    .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    /* Row gap control */
    .g-3 {
        --bs-gutter-x: 0.6rem !important;
        --bs-gutter-y: 0.6rem !important;
    }

    .g-4 {
        --bs-gutter-x: 0.8rem !important;
        --bs-gutter-y: 0.8rem !important;
    }

    .gap-3 {
        gap: 0.65rem !important;
    }

    .gap-4 {
        gap: 0.85rem !important;
    }

    /* Section headings */
    h2 {
        font-size: clamp(1.15rem, 5vw, 1.5rem) !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: clamp(1rem, 4vw, 1.25rem) !important;
    }

    h5 {
        font-size: 0.95rem !important;
    }

    p {
        font-size: 0.88rem !important;
        line-height: 1.65 !important;
    }

    /* ------------------------------------------------------------------
       HERO BANNER CAROUSEL
    ------------------------------------------------------------------ */
    .home-banner-carousel-section .carousel-item img {
        max-height: 200px !important;
        min-height: 160px !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    /* Smaller prev/next arrows on mobile */
    .carousel-control-prev,
    .carousel-control-next {
        width: 32px !important;
        height: 32px !important;
    }

    /* Default hero text */
    .default-hero {
        min-height: 240px !important;
        padding: 2rem 0 !important;
    }

    /* ------------------------------------------------------------------
       PRODUCT SHOWCASE — TOP HEADER BOX (screenshot area)
    ------------------------------------------------------------------ */
    /* Keep the header box as a single row on mobile — no stacking */
    #product-showcase .d-flex.flex-wrap.align-items-center.justify-content-between {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 10px !important;
    }

    /* Section header icon — compact */
    #product-showcase .d-flex.align-items-center.gap-2.gap-md-3>div:first-child,
    #product-showcase .d-flex.align-items-center.gap-3>div:first-child {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        font-size: 1rem !important;
        border-radius: 10px !important;
    }

    /* Section title — single line, no wrapping */
    #product-showcase h5.fw-extrabold {
        font-size: 0.88rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin-bottom: 0 !important;
        line-height: 1.2 !important;
    }

    /* Product count box — compact, stays on the right */
    #activeProductCountBox {
        width: auto !important;
        min-width: auto !important;
        flex-shrink: 0 !important;
        justify-content: flex-end !important;
        border-radius: 10px !important;
        padding: 8px 10px !important;
        gap: 6px !important;
    }

    #activeProductCountBox .font-size-11 {
        font-size: 0.6rem !important;
    }

    #activeProductCountBox #activeProductCount {
        font-size: 0.8rem !important;
        white-space: nowrap !important;
    }

    /* Outer container padding */
    #product-showcase>.container>.rounded-4 {
        padding: 10px 12px !important;
    }




    /* ------------------------------------------------------------------
       PRODUCT GRID CARDS (2-col on mobile)
    ------------------------------------------------------------------ */


    /* Product card improvements */
    .modern-product-card {
        border-radius: 12px !important;
        border-width: 1px !important;
    }

    /* Product image wrapper */
    .product-img-wrapper {
        height: 120px !important;
        padding: 10px 8px 8px !important;
        border-radius: 10px !important;
    }

    .product-img-wrapper img {
        max-height: 100px !important;
        border-radius: 8px !important;
    }

    /* Product image link (height) */
    .product-img-wrapper a[style] {
        height: 110px !important;
    }

    /* Product card body */
    .product-card-body {
        padding: 10px 10px 10px !important;
    }

    .product-title-link {
        font-size: 0.78rem !important;
        line-height: 1.3 !important;
        min-height: auto !important;
        margin-bottom: 8px !important;
        -webkit-line-clamp: 2;
    }

    /* Price box */
    .price-box {
        padding: 6px 8px !important;
        border-radius: 8px !important;
        margin-bottom: 8px !important;
    }

    .price-row {
        flex-direction: column !important;
        gap: 0px !important;
        font-size: 0.68rem !important;
    }

    .price-label {
        font-size: 0.62rem !important;
        color: #94a3b8 !important;
        line-height: 1.1 !important;
    }

    .price-val-retail {
        font-size: 0.75rem !important;
        font-weight: 800 !important;
    }

    .price-val-wholesale {
        font-size: 0.78rem !important;
        font-weight: 900 !important;
    }

    /* Add to cart button */
    .btn-add-cart-modern {
        padding: 8px 6px !important;
        font-size: 0.72rem !important;
        border-radius: 8px !important;
        gap: 4px !important;
    }

    .btn-add-cart-modern i {
        font-size: 0.95rem !important;
    }

    /* Category tag badge on cards */
    .category-tag-badge {
        font-size: 0.6rem !important;
        padding: 2px 6px !important;
        max-width: calc(100% - 44px) !important;
    }

    /* Share button */
    .quick-action-share {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
        top: 8px !important;
        right: 8px !important;
    }

    /* ------------------------------------------------------------------
       ABOUT US SECTION
    ------------------------------------------------------------------ */
    #about-us .col-lg-5 img {
        min-height: 200px !important;
        max-height: 260px !important;
    }

    #about-us .ps-lg-3 {
        padding-left: 0 !important;
    }

    #about-us .d-flex.flex-wrap.align-items-center.gap-3.pt-2 {
        flex-direction: column !important;
    }

    #about-us .d-flex.flex-wrap .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* ------------------------------------------------------------------
       COUNTER STATS SECTION (2×2 grid on mobile)
    ------------------------------------------------------------------ */
    #counter-stats .col-6 {
        padding: 6px !important;
    }

    .counter-stat-card {
        padding: 0.85rem 0.6rem !important;
        border-radius: 12px !important;
    }

    .counter-stat-card .d-inline-flex.rounded-circle {
        width: 38px !important;
        height: 38px !important;
        margin-bottom: 0.5rem !important;
    }

    .counter-stat-card .d-inline-flex.rounded-circle i {
        font-size: 1.1rem !important;
    }

    /* Counter number */
    #counter-stats [style*="clamp"] {
        font-size: clamp(1.2rem, 5vw, 1.6rem) !important;
    }

    /* ------------------------------------------------------------------
       OUR PROCESS SECTION (2×2 grid on mobile)
    ------------------------------------------------------------------ */
    #our-process .col-sm-6 {
        padding: 6px !important;
    }

    .process-card {
        padding: 1rem !important;
        border-radius: 14px !important;
    }

    .process-card h5 {
        font-size: 0.88rem !important;
    }

    .process-card p {
        font-size: 0.78rem !important;
    }

    /* Hide the dashed connecting line on mobile */
    #our-process .d-none.d-lg-block {
        display: none !important;
    }

    /* ------------------------------------------------------------------
       TESTIMONIALS SECTION
    ------------------------------------------------------------------ */
    #testimonials .testimonial-card {
        border-radius: 14px !important;
        padding: 1rem !important;
    }

    #testimonials .testimonial-card p {
        font-size: 0.8rem !important;
    }

    /* ------------------------------------------------------------------
       FOOTER OPTIMIZATIONS
    ------------------------------------------------------------------ */
    footer .col-md-3,
    footer .col-md-4,
    footer .col-md-2 {
        margin-bottom: 1.25rem !important;
    }

    footer h5,
    footer h6 {
        font-size: 0.95rem !important;
    }

    footer p,
    footer li,
    footer a {
        font-size: 0.82rem !important;
    }

    /* ------------------------------------------------------------------
       CART PAGE MOBILE
    ------------------------------------------------------------------ */
    .cart-page-table thead {
        display: none !important;
    }

    /* ------------------------------------------------------------------
       UTILITY: Button sizing on mobile
    ------------------------------------------------------------------ */
    .btn {
        touch-action: manipulation !important;
    }

    /* Load More button */
    #loadMoreBtn {
        font-size: 0.82rem !important;
        padding: 10px 20px !important;
    }
}

/* Extra small phones (< 400px) */
@media (max-width: 399.98px) {

    /* Header */
    .modern-header .container {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .modern-header .btn {
        padding: 2px 5px !important;
    }

    /* Product grid on tiny phones */
    .product-img-wrapper {
        height: 105px !important;
    }

    .product-img-wrapper img {
        max-height: 90px !important;
    }

    .product-title-link {
        font-size: 0.72rem !important;
    }

    .price-val-retail {
        font-size: 0.68rem !important;
    }

    .price-val-wholesale {
        font-size: 0.72rem !important;
    }

    .btn-add-cart-modern {
        font-size: 0.68rem !important;
        padding: 7px 4px !important;
    }

    /* Section top box on tiny screens */
    #product-showcase .d-flex.align-items-center.gap-3 h5 {
        font-size: 0.9rem !important;
    }
}

.product-title-link {
    font-size: 0.72rem !important;
}

.price-val-retail {
    font-size: 0.68rem !important;
}

.price-val-wholesale {
    font-size: 0.72rem !important;
}

.btn-add-cart-modern {
    font-size: 0.68rem !important;
    padding: 7px 4px !important;
}

/* Section top box on tiny screens */
#product-showcase .d-flex.align-items-center.gap-3 h5 {
    font-size: 0.9rem !important;
}

/* ------------------------------------------------------------------
   FLOATING ANIMATED WHATSAPP CONTACT BUTTON (9950187649)
------------------------------------------------------------------ */
.whatsapp-float-btn {
    position: fixed;
    bottom: 150px;
    right: 10px;
    z-index: 1050;
    width: 58px;
    height: 58px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45) !important;
    animation: whatsappZoomPulse 2s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float-btn:hover {
    transform: scale(1.18) translateY(-3px) !important;
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.7) !important;
    color: #ffffff !important;
}

.whatsapp-icon {
    font-size: 2.2rem !important;
    line-height: 1;
    color: #ffffff !important;
}

/* Continuous Smooth Zoom In / Zoom Out Animation */
@keyframes whatsappZoomPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    50% {
        transform: scale(1.12);
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}