:root{
    --primary:#2563eb;
    --primary-dark:#1d4ed8;
    --dark:#0f172a;
    --text:#111827;
    --muted:#64748b;
    --border:#e5e7eb;
    --bg:#f4f7fb;
    --white:#ffffff;
    --success:#16a34a;
    --danger:#dc2626;
    --shadow:0 12px 32px rgba(15,23,42,.10);
    --shadow-soft:0 6px 20px rgba(15,23,42,.07);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, sans-serif;
    background:var(--bg);
    color:var(--text);
}

a{
    text-decoration:none;
}

.site-wrapper{
    min-height:100vh;
    overflow-x:hidden;
}

/* Top Bar */

.top-bar{
    background:var(--dark);
    color:#cbd5e1;
    font-size:13px;
}

.top-bar-inner{
    min-height:38px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
}

.top-left,
.top-right{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
}

.wholesale-badge{
    background:rgba(37,99,235,.18);
    color:#bfdbfe;
    padding:5px 10px;
    border-radius:999px;
    font-weight:800;
}

/* Header */

.site-header{
    position:sticky;
    top:0;
    z-index:1000;
    background:#fff;
    box-shadow:0 6px 24px rgba(15,23,42,.08);
}

.main-header{
    background:#fff;
    border-bottom:1px solid var(--border);
}

.header-inner{
    min-height:82px;
    display:grid;
    grid-template-columns:220px 1fr auto;
    align-items:center;
    gap:24px;
}

.site-logo{
    display:flex;
    align-items:center;
    color:var(--dark);
    font-weight:900;
}

.site-logo img{
    max-height:58px;
    max-width:190px;
    object-fit:contain;
}

.logo-text{
    font-size:25px;
    font-weight:900;
    letter-spacing:-.03em;
}

/* Search */

.header-search{
    display:flex;
    align-items:center;
    width:100%;
    max-width:680px;
    margin:auto;
    background:#f8fafc;
    border:1px solid var(--border);
    border-radius:16px;
    overflow:hidden;
}

.header-search input{
    width:100%;
    height:48px;
    border:none;
    outline:none;
    background:transparent;
    padding:0 16px;
    font-size:14px;
}

.header-search button{
    width:56px;
    height:48px;
    border:none;
    background:var(--primary);
    color:#fff;
    font-size:18px;
    cursor:pointer;
}

/* Header Actions */

.header-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
}

.header-link{
    color:var(--text);
    font-weight:800;
    font-size:14px;
    padding:10px 12px;
    border-radius:12px;
}

.header-link:hover{
    background:#eff6ff;
    color:var(--primary);
}

.cart-btn{
    position:relative;
    width:44px;
    height:44px;
    border-radius:14px;
    background:#f8fafc;
    border:1px solid var(--border);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--text);
    font-size:19px;
}

.cart-count{
    position:absolute;
    top:-7px;
    right:-7px;
    min-width:20px;
    height:20px;
    border-radius:999px;
    background:var(--danger);
    color:#fff;
    font-size:11px;
    font-weight:900;
    display:flex;
    align-items:center;
    justify-content:center;
    border:2px solid #fff;
}

.mobile-menu-btn{
    display:none;
    width:44px;
    height:44px;
    border:none;
    border-radius:14px;
    background:var(--primary);
    color:#fff;
    font-size:22px;
}

/* User Dropdown */

.user-dropdown{
    position:relative;
}

.user-dropdown-btn{
    border:none;
    background:#f8fafc;
    border:1px solid var(--border);
    border-radius:14px;
    padding:10px 13px;
    font-weight:800;
    cursor:pointer;
    color:var(--text);
    max-width:190px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.user-dropdown-menu{
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    width:230px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    padding:8px;
    box-shadow:var(--shadow);
    display:none;
}

.user-dropdown:hover .user-dropdown-menu{
    display:block;
}

.user-dropdown-menu a{
    display:block;
    padding:11px 12px;
    border-radius:12px;
    color:var(--text);
    font-weight:700;
    font-size:14px;
}

.user-dropdown-menu a:hover{
    background:#f8fafc;
    color:var(--primary);
}

/* Main Navigation */

.main-nav{
    background:#fff;
    border-bottom:1px solid var(--border);
}

.nav-menu{
    display:flex;
    align-items:center;
    gap:4px;
    list-style:none;
    margin:0;
    padding:0;
}

.nav-menu > li{
    position:relative;
}

.nav-menu > li > a{
    display:flex;
    align-items:center;
    min-height:52px;
    padding:0 15px;
    color:var(--text);
    font-weight:800;
    font-size:14px;
}

.nav-menu > li > a:hover{
    color:var(--primary);
}

.wholesale-link{
    color:var(--primary)!important;
}

.mega-dropdown{
    position:absolute;
    top:100%;
    left:0;
    width:260px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:0 0 18px 18px;
    box-shadow:var(--shadow);
    padding:10px;
    display:none;
}

.mega-menu:hover .mega-dropdown{
    display:grid;
    gap:3px;
}

.mega-dropdown a{
    padding:11px 12px;
    border-radius:12px;
    color:var(--text);
    font-weight:700;
    font-size:14px;
}

.mega-dropdown a:hover{
    background:#eff6ff;
    color:var(--primary);
}

/* Common Sections */

.section-padding{
    padding:70px 0;
}

.section-header{
    max-width:720px;
    margin:0 auto 34px;
    text-align:center;
}

.section-header span{
    display:inline-flex;
    background:#eff6ff;
    color:var(--primary);
    padding:7px 13px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
    margin-bottom:12px;
}

.section-header h2{
    font-size:34px;
    font-weight:900;
    letter-spacing:-.04em;
    margin-bottom:10px;
}

.section-header p{
    color:var(--muted);
    line-height:1.7;
}

/* Product Card Base */

.product-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:22px;
    box-shadow:var(--shadow-soft);
    overflow:hidden;
    height:100%;
    transition:.25s;
}

.product-card:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow);
}

.product-img{
    width:100%;
    height:220px;
    background:#f8fafc;
    display:flex;
    align-items:center;
    justify-content:center;
}

.product-img img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:18px;
}

.product-info{
    padding:18px;
}

.product-info h3{
    font-size:17px;
    font-weight:900;
    line-height:1.4;
    margin-bottom:8px;
}

.product-info h3 a{
    color:var(--text);
}

.product-info h3 a:hover{
    color:var(--primary);
}

.product-price{
    font-size:20px;
    font-weight:900;
    color:var(--primary);
    margin-bottom:12px;
}

.stock-badge{
    display:inline-flex;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
}

.stock-badge.in{
    background:#dcfce7;
    color:#166534;
}

.stock-badge.out{
    background:#fee2e2;
    color:#991b1b;
}

.primary-btn,
.secondary-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:none;
    border-radius:14px;
    padding:12px 18px;
    font-weight:900;
    font-size:14px;
    transition:.2s;
}

.primary-btn{
    background:var(--primary);
    color:#fff;
}

.primary-btn:hover{
    background:var(--primary-dark);
    color:#fff;
}

.secondary-btn{
    background:#f8fafc;
    color:var(--text);
    border:1px solid var(--border);
}

.secondary-btn:hover{
    border-color:var(--primary);
    color:var(--primary);
}

/* Footer */

.site-footer{
    background:#0f172a;
    color:#cbd5e1;
    margin-top:70px;
}

.footer-grid{
    display:grid;
    grid-template-columns:1.5fr 1fr 1fr 1.2fr;
    gap:34px;
    padding:60px 0;
}

.footer-column h3,
.footer-column h4{
    color:#fff;
    margin-bottom:16px;
    font-weight:900;
}

.footer-column p{
    line-height:1.7;
    color:#cbd5e1;
}

.footer-column ul{
    list-style:none;
    padding:0;
    margin:0;
    display:grid;
    gap:10px;
}

.footer-column a{
    color:#cbd5e1;
}

.footer-column a:hover{
    color:#fff;
}

.footer-contact li{
    line-height:1.6;
}

.footer-social{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:18px;
}

.footer-social a{
    background:rgba(255,255,255,.08);
    padding:8px 11px;
    border-radius:10px;
    font-size:13px;
    font-weight:800;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.08);
}

.footer-bottom-inner{
    min-height:58px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
}

.footer-bottom p{
    margin:0;
    font-size:14px;
}

/* WhatsApp */

.whatsapp-float{
    position:fixed;
    right:22px;
    bottom:22px;
    width:58px;
    height:58px;
    border-radius:50%;
    background:#16a34a;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    box-shadow:0 14px 34px rgba(22,163,74,.35);
    z-index:999;
}

.whatsapp-float:hover{
    color:#fff;
    background:#15803d;
}

/* Mobile */

@media(max-width:1100px){
    .header-inner{
        grid-template-columns:180px 1fr auto;
        gap:14px;
    }

    .footer-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:900px){
    .top-bar{
        display:none;
    }

    .header-inner{
        min-height:auto;
        padding:14px 0;
        grid-template-columns:1fr auto;
    }

    .header-search{
        grid-column:1 / -1;
        order:3;
        max-width:100%;
    }

    .mobile-menu-btn{
        display:flex;
        align-items:center;
        justify-content:center;
    }

    .main-nav{
        display:none;
    }

    .main-nav.open{
        display:block;
    }

    .nav-menu{
        flex-direction:column;
        align-items:stretch;
        padding:12px 0;
    }

    .nav-menu > li > a{
        min-height:44px;
        border-bottom:1px solid var(--border);
    }

    .mega-dropdown{
        position:static;
        width:100%;
        box-shadow:none;
        border:none;
        border-radius:0;
        display:grid;
        padding-left:18px;
    }

    .header-link{
        display:none;
    }

    .user-dropdown-btn{
        max-width:140px;
    }

    .section-header h2{
        font-size:28px;
    }

    .footer-grid{
        grid-template-columns:1fr;
        padding:42px 0;
    }

    .footer-bottom-inner{
        flex-direction:column;
        justify-content:center;
        text-align:center;
        padding:14px 0;
    }
}

@media(max-width:520px){
    .header-actions{
        gap:7px;
    }

    .site-logo img{
        max-width:150px;
    }

    .logo-text{
        font-size:21px;
    }

    .user-dropdown{
        display:none;
    }

    .cart-btn,
    .mobile-menu-btn{
        width:40px;
        height:40px;
    }

    .section-padding{
        padding:48px 0;
    }

    .product-img{
        height:190px;
    }

    .whatsapp-float{
        width:52px;
        height:52px;
        right:16px;
        bottom:16px;
    }
}

.user-dropdown-menu.show{
    display:block;
}

.site-header.scrolled{
    box-shadow:
        0 12px 30px rgba(15,23,42,.12);
}

@media(max-width:991px){

    #mobileMenu{
        display:none;
    }

    #mobileMenu.show{
        display:flex;
    }
}


/* Wishlist Page */

.wishlist-page{
    background:#f4f7fb;
    min-height:70vh;
    padding:60px 0;
}

.wishlist-top{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:24px;
    padding:34px 38px;
    box-shadow:0 16px 40px rgba(15,23,42,.08);
    margin-bottom:28px;
}

.wishlist-top h1{
    font-size:36px;
    font-weight:900;
    color:#0f172a;
    margin-bottom:8px;
}

.wishlist-top p{
    color:#64748b;
    font-size:16px;
    margin:0;
}

.wishlist-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.wishlist-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 10px 28px rgba(15,23,42,.07);
    transition:.25s ease;
}

.wishlist-card:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 42px rgba(15,23,42,.12);
}

.wishlist-img{
    height:210px;
    background:#f8fafc;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.wishlist-img img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:18px;
}

.no-img{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#64748b;
    font-weight:700;
}

.wishlist-info{
    padding:22px;
}

.wishlist-info small{
    display:inline-block;
    color:#2563eb;
    font-weight:800;
    margin-bottom:8px;
}

.wishlist-info h3{
    font-size:18px;
    font-weight:900;
    line-height:1.35;
    margin-bottom:12px;
}

.wishlist-info h3 a{
    color:#0f172a;
    text-decoration:none;
}

.wishlist-info h3 a:hover{
    color:#2563eb;
}

.wishlist-price{
    font-size:20px;
    font-weight:900;
    color:#111827;
    margin-bottom:16px;
}

.wishlist-actions{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}

.wishlist-actions form{
    margin:0;
}

.wishlist-remove-btn{
    border:none;
    background:#fee2e2;
    color:#dc2626;
    border-radius:13px;
    padding:11px 16px;
    font-weight:900;
    cursor:pointer;
}

.wishlist-remove-btn:hover{
    background:#fecaca;
}

.empty-wishlist{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:24px;
    padding:50px;
    box-shadow:0 16px 40px rgba(15,23,42,.08);
    text-align:center;
}

.empty-wishlist-icon{
    width:74px;
    height:74px;
    border-radius:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#eff6ff;
    color:#2563eb;
    font-size:34px;
    margin:0 auto 18px;
}

.empty-wishlist h2{
    font-size:28px;
    font-weight:900;
    color:#0f172a;
    margin-bottom:8px;
}

.empty-wishlist p{
    color:#64748b;
    margin-bottom:22px;
}

@media(max-width:1100px){
    .wishlist-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:700px){
    .wishlist-page{
        padding:35px 0;
    }

    .wishlist-top{
        padding:26px 22px;
    }

    .wishlist-top h1{
        font-size:28px;
    }

    .wishlist-grid{
        grid-template-columns:1fr;
    }

    .wishlist-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .wishlist-actions .primary-btn,
    .wishlist-actions .secondary-btn,
    .wishlist-remove-btn{
        width:100%;
        text-align:center;
    }
}

/* Wishlist add */
.site-toast{
    position:fixed;
    right:22px;
    bottom:24px;
    background:#0f172a;
    color:#fff;
    padding:13px 18px;
    border-radius:14px;
    font-weight:800;
    box-shadow:0 16px 40px rgba(15,23,42,.25);
    z-index:9999;
    opacity:0;
    transform:translateY(15px);
    pointer-events:none;
    transition:.25s ease;
}

.site-toast.show{
    opacity:1;
    transform:translateY(0);
}

.site-toast.success{
    background:#16a34a;
}

.site-toast.error{
    background:#dc2626;
}

.wishlist-btn.active{
    background:#fee2e2;
    color:#dc2626;
}


/* User account dropdown */
.site-wrapper,
.site-header,
.main-header,
.header-inner,
.header-actions,
.user-dropdown{
    overflow:visible !important;
}

.site-header{
    position:relative !important;
    z-index:999999 !important;
}

.main-header{
    position:relative !important;
    z-index:999998 !important;
}

.user-dropdown{
    position:relative !important;
    z-index:1000000 !important;
}

.user-dropdown-menu{
    position:absolute !important;
    top:calc(100% + 12px) !important;
    right:0 !important;
    display:none !important;
    min-width:220px;
    background:#fff !important;
    border:1px solid #e5e7eb !important;
    border-radius:16px !important;
    box-shadow:0 22px 60px rgba(15,23,42,.28) !important;
    padding:8px !important;
    z-index:1000001 !important;
}

.user-dropdown-menu.show{
    display:block !important;
}

.user-dropdown-menu a{
    display:block !important;
    padding:11px 13px !important;
    border-radius:10px !important;
    color:#0f172a !important;
    text-decoration:none !important;
    font-size:14px !important;
    font-weight:800 !important;
    white-space:nowrap !important;
}

.user-dropdown-menu a:hover{
    background:#eff6ff !important;
    color:#2563eb !important;
}

.wishlist-page,
.account-page,
.orders-page,
.account-panel,
.account-card,
.wishlist-card,
.cart-page,
.checkout-page{
    position:relative;
    z-index:1;
}




/* Footer */

/* ======================================================
   COMPACT PREMIUM FRONTEND FOOTER
   ====================================================== */

.site-footer {
    background: #071f43 !important;
    color: #ffffff !important;
    padding: 48px 0 0 !important;
    margin-top: 45px;
}

.site-footer .container {
    max-width: 1280px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1.15fr;
    gap: 38px;
    align-items: flex-start;
}

.footer-col h3 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
    color: #ffffff !important;
}

.footer-col h4 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff !important;
    position: relative;
}

.footer-col h4::after {
    content: "";
    width: 42px;
    height: 2px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    position: absolute;
    left: 0;
    bottom: -8px;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78) !important;
    margin-bottom: 20px;
    max-width: 330px;
}

/* Footer Lists */
.footer-col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-col ul li {
    list-style: none !important;
    margin-bottom: 11px;
    padding: 0 !important;
}

.footer-col ul li::marker {
    display: none !important;
    content: "" !important;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.84) !important;
    text-decoration: none !important;
    font-size: 15px;
    transition: all 0.22s ease;
}

.footer-col a:hover {
    color: #ffffff !important;
    padding-left: 4px;
}

/* Social Links */
.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    max-width: 290px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.22s ease;
}

.footer-social-links a:hover {
    background: #ffffff;
    color: #071f43 !important;
    border-color: #ffffff;
    transform: translateY(-1px);
    padding-left: 14px;
}

/* Contact */
.footer-contact ul li {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.86) !important;
}

.footer-contact ul li span {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.09);
    font-size: 14px;
}

.footer-contact ul li a {
    line-height: 1.45;
    word-break: break-word;
}

.footer-contact ul li a:hover {
    padding-left: 0;
    color: #ffffff !important;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 42px;
    padding: 20px 0 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 14px;
    line-height: 1.5;
}

.footer-bottom a {
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: 38px !important;
        margin-top: 35px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col h3 {
        font-size: 25px;
    }

    .footer-col h4 {
        font-size: 20px;
    }

    .footer-social-links {
        max-width: 100%;
    }

    .footer-social-links a {
        min-width: auto;
        height: 36px;
        padding: 0 13px;
    }

    .footer-bottom {
        margin-top: 34px;
        padding: 18px 0 20px;
    }
}