/**
 * Sbnexsoft Premium Modern UI/UX Stylesheet
 * Developed & Maintained by Sbnexsoft (https://sbnexsoft.site)
 */

:root {
    --sbn-primary: #185a9d;
    --sbn-primary-dark: #0f3d6c;
    --sbn-secondary: #43cea2;
    --sbn-accent: #ff6b6b;
    --sbn-dark: #1e293b;
    --sbn-light: #f8fafc;
    --sbn-border: #e2e8f0;
    --sbn-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.07);
    --sbn-radius: 12px;
}

/* Global Font & Smoothness */
body {
    font-family: 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #334155;
    background-color: #f8fafc;
}

/* Smooth Product Cards */
.product-single-hover, .product-card-default, .product-item {
    border-radius: var(--sbn-radius) !important;
    border: 1px solid #edf2f7 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: #ffffff;
    overflow: hidden;
}

.product-single-hover:hover, .product-card-default:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.1) !important;
    border-color: #cbd5e1 !important;
}

/* Discount & Status Badges */
.badge-style2, .product-badge, .for-discount-value {
    background: linear-gradient(135deg, #ff4757, #ff6b81) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
}

/* Buttons Polish */
.btn--primary, .btn-primary, .btn-style-one {
    background: linear-gradient(135deg, #185a9d, #2980b9) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(24, 90, 157, 0.25) !important;
    transition: all 0.25s ease !important;
}

.btn--primary:hover, .btn-primary:hover {
    background: linear-gradient(135deg, #0f3d6c, #1f6390) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 90, 157, 0.35) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #ff9900, #ff7700) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.25) !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e68a00, #e66b00) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* High Converting Quick Order Section */
.sbn-quick-order-card {
    background: #ffffff;
    border: 2px solid #27ae60;
    border-radius: 14px;
    padding: 20px;
    margin-top: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.12);
}

.sbn-quick-order-header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

.sbn-order-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 14px 20px !important;
    border-radius: 10px !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.35) !important;
    animation: sbn-pulse 2s infinite;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.sbn-order-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
    transform: scale(1.02);
    color: #ffffff !important;
}

@keyframes sbn-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* Clean WhatsApp Floating Widget — Desktop Only */
.__floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.__floating-btn .wa-widget-send-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.__floating-btn .wa-widget-send-button a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.__floating-btn .wa-messenger-svg-whatsapp {
    width: 30px;
    height: 30px;
}

.btn-scroll-top {
    bottom: 85px !important;
}

/* Hide big floating WhatsApp on mobile — bottom nav already has it */
@media (max-width: 768px) {
    .__floating-btn {
        display: none !important;
    }
    .btn-scroll-top {
        bottom: 80px !important;
    }
}

/* Modern Mobile Bottom Navigation */
@media (max-width: 768px) {
    .sbn-mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        display: flex;
        align-items: center;
        justify-content: space-around;
        z-index: 9998;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
    }

    .sbn-mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #64748b;
        font-size: 11px;
        font-weight: 500;
        text-decoration: none;
        position: relative;
    }

    .sbn-mobile-nav-item i {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .sbn-mobile-nav-item.active, .sbn-mobile-nav-item:hover {
        color: var(--sbn-primary);
    }

    .sbn-nav-badge {
        position: absolute;
        top: -4px;
        right: -6px;
        background: #ef4444;
        color: #ffffff;
        font-size: 9px;
        font-weight: 700;
        border-radius: 10px;
        padding: 1px 5px;
    }

    body {
        padding-bottom: 60px;
    }
}

/* PWA Mobile App Install Popup Drawer */
.sbn-pwa-popup-drawer {
    position: fixed;
    bottom: 68px;
    left: 12px;
    right: 12px;
    z-index: 99999;
    animation: sbnSlideUp 0.4s ease-out;
}

@keyframes sbnSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sbn-pwa-popup-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid #e2e8f0;
    position: relative;
}

.sbn-pwa-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

.sbn-pwa-icon-box img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

.sbn-footer-app-box {
    margin-top: 14px;
}

.sbn-footer-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.sbn-footer-app-btn:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* StarTech Modern Mobile Header */
@media (max-width: 768px) {
    .topbar, .mobile-head .navbar, .navbar-sticky {
        display: none !important;
    }
    html, body {
        overflow-x: clip !important;
    }
    body {
        overflow-x: visible !important;
    }
    header.rtl, header, .mobile-head {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1020 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .sbn-startech-mobile-header {
        display: block !important;
        width: 100% !important;
        background: #081621;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }
    .sbn-mobile-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 14px;
        height: 52px;
    }
    .sbn-mobile-menu-btn {
        background: transparent;
        border: none;
        color: #ffffff;
        font-size: 22px;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
    }
    .sbn-mobile-brand {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sbn-mobile-brand img {
        max-height: 32px;
        max-width: 140px;
        object-fit: contain;
    }
    .sbn-mobile-search-toggle-btn {
        background: transparent;
        border: none;
        color: #ffffff;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        cursor: pointer;
        padding: 0;
    }
    .sbn-mobile-cart-btn {
        position: relative;
        color: #ffffff;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        text-decoration: none;
    }
    .sbn-mobile-cart-badge {
        position: absolute;
        top: 0px;
        right: 0px;
        background: #ef4444;
        color: #ffffff;
        font-size: 10px;
        font-weight: 700;
        border-radius: 10px;
        padding: 1px 5px;
        line-height: 1.2;
    }
    .sbn-mobile-search-row {
        background: #f2f4f8;
        padding: 8px 14px 10px;
        border-bottom: 1px solid #e2e8f0;
    }
    .sbn-startech-search-input {
        height: 40px;
        border-radius: 25px !important;
        border: 1px solid #cbd5e1 !important;
        padding: 0 45px 0 18px !important;
        font-size: 14px !important;
        background: #ffffff !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    }
    .sbn-startech-search-input:focus {
        border-color: #081621 !important;
        box-shadow: 0 0 0 3px rgba(8, 22, 33, 0.1) !important;
    }
    .sbn-startech-search-btn {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        color: #475569;
        font-size: 16px;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
    }

    /* Sbnexsoft Modern Mobile Offcanvas Drawer */
    .sbn-drawer-no-scroll {
        overflow: hidden !important;
    }
    .sbn-mobile-drawer {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 84% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: #ffffff !important;
        z-index: 100000 !important;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.35) !important;
        display: flex !important;
        flex-direction: column !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    .sbn-mobile-drawer.open {
        transform: translateX(0) !important;
    }
    .sbn-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        color: #ffffff;
        flex-shrink: 0;
    }
    .sbn-drawer-close-btn {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: #ffffff;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 16px;
    }
    .sbn-drawer-user-box {
        padding: 14px 16px;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        flex-shrink: 0;
    }
    .sbn-drawer-nav {
        flex-grow: 1;
        padding: 14px 16px;
        overflow-y: auto;
    }
    .sbn-drawer-section-title {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #94a3b8;
        margin-bottom: 8px;
    }
    .sbn-drawer-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 10px;
        border-radius: 8px;
        color: #1e293b;
        font-weight: 600;
        font-size: 14px;
        text-decoration: none !important;
        transition: all 0.2s ease;
    }
    .sbn-drawer-item:hover, .sbn-drawer-item.active {
        background: #eff6ff;
        color: #2563eb;
    }
    .sbn-cat-expand-btn {
        background: #f1f5f9;
        border: none;
        color: #64748b;
        width: 30px;
        height: 30px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    .sbn-subcat-collapse {
        background: #f8fafc;
        border-radius: 8px;
        margin-left: 20px;
        padding: 6px 12px;
    }
    .sbn-drawer-subitem {
        display: block;
        padding: 6px 0;
        font-size: 13px;
        color: #475569;
        text-decoration: none !important;
    }
    .sbn-drawer-subitem:hover {
        color: #2563eb;
    }
    .sbn-drawer-footer {
        padding: 14px 16px;
        border-top: 1px solid #e2e8f0;
        background: #ffffff;
        flex-shrink: 0;
    }
    .sbn-menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 99999;
        display: none;
        backdrop-filter: blur(2px);
    }
    .sbn-menu-backdrop.show {
        display: block;
    }
}
@media (min-width: 769px) {
    .sbn-startech-mobile-header {
        display: none !important;
    }
    .sbn-mobile-drawer {
        display: none !important;
    }
    .sbn-menu-backdrop {
        display: none !important;
    }
}
