/* ============================================
   WHOLESALEPLUS THEME CSS
   Primary: #D11F26 | Secondary: #019BE1
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --wp-primary:       #D11F26;
    --wp-primary-dark:  #a8181e;
    --wp-secondary:     #019BE1;
    --wp-secondary-dark:#017ab3;
    --wp-bg:            #F3F4F6;
    --wp-white:         #FFFFFF;
    --wp-text:          #1f2937;
    --wp-text-muted:    #6b7280;
    --wp-border:        #e5e7eb;
    --wp-shadow:        0 2px 16px rgba(0,0,0,0.08);
    --wp-radius:        10px;
    --wp-transition:    0.22s cubic-bezier(.4,0,.2,1);
    --wp-font:          'Hind Siliguri', 'Inter', sans-serif;
}

/* ===== BASE OVERRIDES ===== */
body {
    font-family: var(--wp-font) !important;
    background: var(--wp-bg) !important;
    color: var(--wp-text);
}

/* ===== PROMO TOP BAR ===== */
.wp-promo-bar {
    background: var(--wp-primary);
    color: #fff;
    text-align: center;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10002;
}
.wp-promo-bar .promo-text { display: flex; align-items: center; gap: 8px; }
.wp-promo-bar .promo-close {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: rgba(255,255,255,0.7);
    cursor: pointer; font-size: 16px; line-height: 1;
    transition: color var(--wp-transition);
}
.wp-promo-bar .promo-close:hover { color: #fff; }

/* Push fixed header below promo bar — only when promo is shown */
body.has-promo #navbar_top { top: 36px !important; }
body:not(.has-promo) #navbar_top { top: 0 !important; }

/* Desktop body padding */
body.has-fixed-header.has-promo    { padding-top: calc(36px + 72px + 46px) !important; }
body.has-fixed-header:not(.has-promo) { padding-top: calc(72px + 46px) !important; }



/* ===== HEADER SCROLL-HIDE ===== */
header#navbar_top {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease !important;
}
header#navbar_top.header-hidden {
    transform: translateY(-110%) !important;
    box-shadow: none !important;
}


/* Countdown Timer */
.wp-countdown { display: flex; gap: 6px; align-items: center; }
.wp-countdown-unit {
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 13px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}
.wp-countdown-sep { font-weight: 700; opacity: 0.8; }

/* ===== MEGA MENU BAR ===== */
.wp-megamenu-bar {
    height: 46px !important;
    display: flex;
    align-items: stretch;
}
.wp-megamenu-bar .container {
    display: flex !important;
    align-items: stretch;
    padding: 0 15px !important;
    height: 100%;
}

/* Categories toggle button */
.wp-cat-btn-wrap {
    position: relative;
    height: 100%;
    flex-shrink: 0;
    z-index: 1001;
}
.wp-cat-toggle {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.18);
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 0 18px;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--wp-font);
    transition: background var(--wp-transition);
    min-width: 160px;
    border-radius: 0;
}
.wp-cat-toggle:hover,
.wp-cat-toggle.active { background: rgba(0,0,0,0.3); }

/* Hamburger icon */
.wp-cat-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 18px;
}
.wp-cat-toggle-icon span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.22s;
}
.wp-cat-toggle.active .wp-cat-toggle-icon span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.wp-cat-toggle.active .wp-cat-toggle-icon span:nth-child(2) { opacity: 0; }
.wp-cat-toggle.active .wp-cat-toggle-icon span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.wp-cat-arrow { font-size: 11px; margin-left: auto; transition: transform var(--wp-transition); }
.wp-cat-toggle.active .wp-cat-arrow { transform: rotate(180deg); }

/* Mega Panel */
.wp-mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border-top: 3px solid var(--wp-primary);
    border-radius: 0 0 10px 10px;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.22s cubic-bezier(.4,0,.2,1);
    max-height: 480px;
    overflow-y: auto;
}
.wp-mega-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wp-mega-inner { padding: 6px 0; }

/* Category row */
.wp-mega-cat { position: relative; }
.wp-mega-cat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: var(--wp-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--wp-transition), color var(--wp-transition);
    border-bottom: 1px solid #f3f4f6;
}
.wp-mega-cat-title:hover { background: #fef2f2; color: var(--wp-primary); }
.wp-mega-cat-img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

/* Subcategory flyout */
.wp-mega-sub {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 480px;
    max-width: 640px;
    background: #fff;
    box-shadow: 4px 4px 24px rgba(0,0,0,0.12);
    border-top: 3px solid var(--wp-primary);
    border-radius: 0 10px 10px 0;
    padding: 16px;
    display: none;
    flex-wrap: wrap;
    gap: 20px;
    z-index: 1003;
}
.wp-mega-cat:hover .wp-mega-sub { display: flex !important; }
.wp-mega-sub-col { min-width: 140px; flex: 1; }
.wp-mega-sub-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--wp-primary);
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #fecaca;
    text-decoration: none;
}
.wp-mega-sub-title:hover { color: var(--wp-primary-dark); }
.wp-mega-child {
    display: block;
    font-size: 12px;
    color: var(--wp-text-muted);
    padding: 4px 0;
    text-decoration: none;
    transition: color var(--wp-transition), padding-left var(--wp-transition);
}
.wp-mega-child:hover { color: var(--wp-primary); padding-left: 6px; }

/* Quick nav links */
.wp-quick-nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 8px;
    height: 100%;
    flex: 1;
    overflow: hidden;
}
.wp-quick-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 100%;
    color: rgba(255,255,255,0.92);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--wp-transition), color var(--wp-transition);
}
.wp-quick-link:hover { background: rgba(0,0,0,0.12); color: #fff; }
.wp-hot-link { color: #fde68a !important; }
.wp-hot-link:hover { color: #fef3c7 !important; }

/* Overlay */
.wp-mega-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1000;
}
.wp-mega-overlay.active { display: block; }

/* Mobile: hide quick-nav, show simpler */
@media (max-width: 991px) {
    .wp-megamenu-bar { display: none; }
}
/* ===== WholesalePlus Header ===== */
.wp-header-main {
    background: #fff;
    border-bottom: 1px solid var(--wp-border);
    height: 72px;
    display: flex;
    align-items: center;
}
.wp-header-main .container {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* Logo */
.wp-hdr-logo { display: flex; align-items: center; flex-shrink: 0; }
.wp-hdr-logo img { max-height: 50px; width: auto; }

/* Categories pill */
.wp-hdr-cat { flex-shrink: 0; position: relative; }
.wp-hdr-cat-btn {
    display: flex; align-items: center; gap: 8px;
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 14px; font-weight: 600; color: var(--wp-text);
    cursor: pointer; white-space: nowrap;
    font-family: var(--wp-font);
    transition: border-color var(--wp-transition), background var(--wp-transition);
}
.wp-hdr-cat-btn:hover { border-color: var(--wp-primary); background: #fef2f2; color: var(--wp-primary); }
.wp-hdr-cat-btn.active { border-color: var(--wp-primary); background: #fef2f2; color: var(--wp-primary); }
.wp-hdr-cat-lines { display: flex; flex-direction: column; gap: 3.5px; width: 16px; }
.wp-hdr-cat-lines span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: all .22s; }
.wp-hdr-cat-btn.active .wp-hdr-cat-lines span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.wp-hdr-cat-btn.active .wp-hdr-cat-lines span:nth-child(2) { opacity: 0; }
.wp-hdr-cat-btn.active .wp-hdr-cat-lines span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }
.wp-cat-arrow { font-size: 11px; transition: transform var(--wp-transition); }
.wp-hdr-cat-btn.active .wp-cat-arrow { transform: rotate(180deg); }

/* Search bar */
.wp-hdr-search { flex: 1; max-width: 600px; margin: 0 auto; position: relative; }
.wp-hdr-search-form {
    display: flex; align-items: center;
    background: #fff;
    border: 2px solid var(--wp-primary);
    border-radius: 50px;
    overflow: hidden;
    height: 46px;
}
.wp-hdr-search-input {
    flex: 1; border: none; outline: none;
    padding: 0 16px; font-size: 14px;
    color: var(--wp-text); background: transparent;
    font-family: var(--wp-font);
}
.wp-hdr-search-input::placeholder { color: #9ca3af; }
.wp-hdr-camera-btn {
    background: none; border: none;
    padding: 0 12px; cursor: pointer;
    color: #9ca3af; font-size: 16px;
    border-right: 1px solid #e5e7eb;
    height: 100%; transition: color var(--wp-transition);
}
.wp-hdr-camera-btn:hover { color: var(--wp-primary); }
.wp-hdr-search-btn {
    background: var(--wp-primary);
    border: none; padding: 0 22px;
    height: 100%; cursor: pointer;
    color: #fff; font-size: 16px;
    transition: background var(--wp-transition);
}
.wp-hdr-search-btn:hover { background: var(--wp-primary-dark); }

/* Right actions */
.wp-hdr-actions {
    display: flex; align-items: center; gap: 4px;
    flex-shrink: 0;
}
.wp-hdr-icon-btn {
    display: flex; flex-direction: column; align-items: center;
    gap: 3px; padding: 6px 12px;
    color: var(--wp-text); text-decoration: none;
    border-radius: 8px; cursor: pointer;
    position: relative;
    transition: background var(--wp-transition), color var(--wp-transition);
    font-size: 22px; border: none; background: none;
}
.wp-hdr-icon-btn:hover { background: #fef2f2; color: var(--wp-primary); }
.wp-hdr-icon-label { font-size: 11px; font-weight: 500; color: var(--wp-text-muted); line-height: 1; }
.wp-hdr-icon-btn:hover .wp-hdr-icon-label { color: var(--wp-primary); }
.wp-hdr-cart { position: relative; }

/* Cart/Wishlist badge on new header icons */
.wp-hdr-icon-btn .nh-badge,
.wp-hdr-icon-btn .nh-wishlist-badge {
    position: absolute;
    top: 2px; right: 6px;
    background: var(--wp-primary);
    color: #fff;
    font-size: 10px; font-weight: 700;
    min-width: 17px; height: 17px;
    border-radius: 50px;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    pointer-events: none;
}
.wp-hdr-icon-btn .nh-wishlist-badge { background: var(--wp-secondary); }

/* Hello / Sign In section */
.wp-hdr-user {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px; border-radius: 8px;
    cursor: pointer; text-decoration: none; color: var(--wp-text);
    position: relative; transition: background var(--wp-transition);
    border: none; background: none; font-family: var(--wp-font);
}
.wp-hdr-user:hover { background: #fef2f2; }
.wp-hdr-user-icon { font-size: 22px; color: var(--wp-text-muted); }
.wp-hdr-user-text { display: flex; flex-direction: column; line-height: 1.3; }
.wp-hdr-hello { font-size: 11px; color: var(--wp-text-muted); }
.wp-hdr-name { font-size: 13px; font-weight: 600; color: var(--wp-text); white-space: nowrap; }

/* Dropdown reuse on wp-hdr-user */
.wp-hdr-user .nh-user-dropdown { top: calc(100% + 8px); right: 0; }
.wp-hdr-user:hover .nh-user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

/* Body padding: header(72) + megabar(46) — promo version handled above */
body.has-fixed-header:not(.has-promo) { padding-top: 118px !important; }
body.has-fixed-header.has-promo       { padding-top: 154px !important; }

/* Hide old topbar/main overrides */
.nh-topbar { display: none !important; }
.nh-main { display: none !important; }

@media (max-width: 991px) {
    .wp-header-main { display: none !important; }

    /* Mobile: sticky header is in normal flow, no body padding needed.
       Only fixed promo bar needs compensation. */
    body.has-fixed-header.has-promo    { padding-top: 36px !important; }
    body.has-fixed-header:not(.has-promo) { padding-top: 0 !important; }

    /* Sticky mobile header must sit below the fixed promo bar */
    body.has-promo .nh-mobile-header { top: 36px !important; }
}


/* Wishlist badge in header */
.nh-wishlist-btn { position: relative; }
.nh-wishlist-badge {
    position: absolute; top: 4px; right: 6px;
    background: var(--wp-secondary); color: #fff;
    font-size: 10px; font-weight: 700;
    min-width: 17px; height: 17px;
    border-radius: 50px;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}

/* User greeting */
.nh-user-greeting {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 12px; border-radius: 10px;
    cursor: pointer; position: relative;
    transition: background var(--wp-transition);
    text-decoration: none;
}
.nh-user-greeting:hover { background: #fef2f2; }
.nh-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--wp-primary);
    flex-shrink: 0;
}
.nh-greeting-text { display: flex; flex-direction: column; line-height: 1.3; }
.nh-hello { font-size: 11px; color: var(--wp-text-muted); }
.nh-username { font-size: 13px; font-weight: 600; color: var(--wp-text); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* User dropdown */
.nh-user-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0;
    width: 200px; background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.14);
    border: 1px solid var(--wp-border);
    opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: all var(--wp-transition);
    z-index: 9999; padding: 6px 0;
}
.nh-user-greeting:hover .nh-user-dropdown,
.nh-user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nh-user-dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; color: var(--wp-text);
    font-size: 13px; transition: background var(--wp-transition), color var(--wp-transition);
    border-bottom: 1px solid #f9f9f9;
}
.nh-user-dropdown a:last-child { border-bottom: none; }
.nh-user-dropdown a:hover { background: #fef2f2; color: var(--wp-primary); }
.nh-user-dropdown a i { width: 16px; text-align: center; }

/* Category navbar */
.nh-navbar { background: linear-gradient(90deg, var(--wp-primary) 0%, var(--wp-primary-dark) 100%) !important; }
.nh-nav-link { color: rgba(255,255,255,0.93) !important; }
.nh-nav-item:hover > .nh-nav-link { color: #fff !important; background: rgba(0,0,0,0.1) !important; }
.nh-dropdown { border-top-color: var(--wp-primary) !important; }
.nh-dropdown li a:hover { color: var(--wp-primary) !important; background: #fef2f2 !important; }
.nh-child-dropdown { border-left-color: var(--wp-primary) !important; }
.nh-cart-checkout { background: var(--wp-primary) !important; }
.nh-cart-checkout:hover { background: var(--wp-primary-dark) !important; }

/* Mobile header */
.nh-mobile-header { background: var(--wp-primary) !important; }
.nh-mobile-search { background: var(--wp-primary-dark) !important; border-bottom-color: rgba(255,255,255,0.1) !important; }
.nh-mobile-search form button { background: rgba(255,255,255,0.2) !important; }
.nh-drawer { background: var(--wp-white) !important; }
.nh-drawer-head { background: var(--wp-primary) !important; border-bottom-color: rgba(255,255,255,0.15) !important; }
.nh-drawer-nav > li { border-bottom-color: var(--wp-border) !important; }
.nh-drawer-nav > li > .nh-drawer-link { color: var(--wp-text) !important; }
.nh-drawer-nav > li.active > .nh-drawer-link,
.nh-drawer-nav > li > .nh-drawer-link:hover { color: var(--wp-primary) !important; background: #fef2f2 !important; }
.nh-drawer-sub { background: #f9f9f9 !important; }
.nh-drawer-sub li a { color: var(--wp-text-muted) !important; }
.nh-drawer-sub li a:hover { color: var(--wp-primary) !important; }
.nh-drawer-footer { border-top-color: var(--wp-border) !important; }
.nh-drawer-login { background: #f3f4f6 !important; color: var(--wp-text) !important; }
.nh-drawer-account { background: var(--wp-primary) !important; }
.nh-bottom-nav { background: var(--wp-white) !important; border-top-color: var(--wp-border) !important; }
.nh-bottom-nav a { color: var(--wp-text-muted) !important; }
.nh-bottom-nav a:hover, .nh-bottom-nav a.active { color: var(--wp-primary) !important; }


/* ===== SECTION HEADER ===== */
.wp-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; padding-bottom: 12px;
    border-bottom: 2px solid var(--wp-border);
    position: relative;
}
.wp-section-header::before {
    content: '';
    position: absolute; bottom: -2px; left: 0;
    width: 60px; height: 2px;
    background: var(--wp-primary);
}
.wp-section-title {
    font-size: 18px; font-weight: 700;
    color: var(--wp-text);
    font-family: var(--wp-font);
    display: flex; align-items: center; gap: 8px;
}
.wp-section-title .title-icon { color: var(--wp-primary); font-size: 20px; }
.wp-section-view-all {
    font-size: 13px; font-weight: 500;
    color: var(--wp-primary);
    display: flex; align-items: center; gap: 4px;
    transition: gap var(--wp-transition);
}
.wp-section-view-all:hover { gap: 8px; color: var(--wp-primary-dark); }

/* ===== PRODUCT CARD ===== */
.wp-product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    display: flex; flex-direction: column;
    height: 100%;
    cursor: pointer;
}
.wp-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #e0e0e0;
}

/* legacy badge hidden */
.wp-discount-badge { display: none; }

/* Wishlist button */
.wp-card-wishlist {
    position: absolute; top: 8px; right: 8px;
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    z-index: 2;
    opacity: 0; transform: translateY(-4px);
    transition: all 0.2s ease;
    font-size: 13px; color: #bbb;
}
.wp-product-card:hover .wp-card-wishlist { opacity: 1; transform: translateY(0); }
.wp-card-wishlist:hover { color: var(--wp-primary); background: #fff; }
.wp-card-wishlist.active {
    color: var(--wp-primary); background: #fff;
    opacity: 1 !important; transform: translateY(0) !important;
}

/* Product image */
.wp-card-img {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f9fafb;
    text-decoration: none;
}
.wp-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.wp-product-card:hover .wp-card-img img { transform: scale(1.04); }

/* Product info body */
.wp-card-body {
    padding: 8px 10px 10px;
    display: flex; flex-direction: column; gap: 3px;
    flex: 1;
}
.wp-card-name {
    font-size: 13px; font-weight: 400;
    color: #222;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    min-height: 38px;
    transition: color 0.15s;
}
.wp-card-name:hover { color: var(--wp-primary); }

/* Rating & Sold meta row */
.wp-card-meta {
    display: flex; align-items: center; gap: 4px;
    font-size: 11.5px; color: #888;
    margin: 2px 0;
}
.wp-card-rating-row { display: inline-flex; align-items: center; gap: 3px; }
.wp-card-rating-row i { color: #facc15; font-size: 11px; }
.wp-card-rating-row span { font-weight: 600; color: #555; font-size: 11.5px; }
.wp-card-meta-sep { color: #ddd; font-size: 11px; }
.wp-card-sold { font-size: 11px; color: #888; }
.wp-card-reviews { font-size: 11px; color: #888; }

/* old class compat */
.wp-card-rating { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: #888; }
.wp-card-rating i { color: #facc15; font-size: 11px; }

/* Price row */
.wp-card-price-row {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-top: auto; padding-top: 4px; gap: 4px;
}
.wp-card-prices { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.wp-card-price { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.wp-card-new-price { font-size: 15px; font-weight: 700; color: #ff1a1a; }
.wp-card-old-price { font-size: 11px; color: #bbb; text-decoration: line-through; }

/* Discount badge - blue like wholesaleplus */
.wp-card-discount-badge {
    background: var(--wp-secondary);
    color: #fff; font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: 4px;
    white-space: nowrap; flex-shrink: 0;
}

/* legacy button & discount hidden */
.wp-card-btn { display: none; }
.wp-card-discount { display: none; }

/* Product grid */
.wp-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
@media (max-width: 1200px) { .wp-product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .wp-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .wp-product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ===== CATEGORY GRID ===== */
.wp-category-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 12px;
}
@media (max-width: 1200px) { .wp-category-grid { grid-template-columns: repeat(8, 1fr); } }
@media (max-width: 991px)  { .wp-category-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 768px)  { .wp-category-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px)  { .wp-category-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }

.wp-cat-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; padding: 6px;
    background: var(--wp-white); 
    border-radius: 12px;
    border: 1px solid #eaeaea;
    box-shadow: none;
    transition: all var(--wp-transition);
    text-decoration: none; color: var(--wp-text);
    cursor: pointer;
}
.wp-cat-item:hover { 
    border-color: var(--wp-primary); 
    box-shadow: 0 4px 12px rgba(209, 31, 38, 0.1); 
    color: var(--wp-primary); 
    transform: translateY(-2px);
}
.wp-cat-img {
    width: 100%; 
    aspect-ratio: 1 / 1; 
    border-radius: 8px;
    overflow: hidden; 
    background: #f9f9f9;
    display: flex; align-items: center; justify-content: center;
    border: none;
}
.wp-cat-img img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.4s ease;
}
.wp-cat-item:hover .wp-cat-img img {
    transform: scale(1.08);
}
.wp-cat-name { 
    font-size: 12px; 
    font-weight: 500; 
    text-align: center; 
    line-height: 1.3; 
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 2px;
}

/* ===== SECTIONS ===== */
.wp-section { padding: 24px 0; }
.wp-section-white { background: transparent; }
.wp-section-grey  { background: transparent; }

/* Flash sale section */
.wp-flash-section { background: #fff5f5; border-radius: var(--wp-radius); padding: 20px; margin-bottom: 24px; }
.wp-flash-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
}
.wp-flash-title { font-size: 18px; font-weight: 700; color: var(--wp-primary); }
.wp-flash-timer { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.wp-flash-timer-unit {
    background: var(--wp-primary); color: #fff;
    border-radius: 5px; padding: 3px 9px;
    font-size: 14px; font-weight: 700; min-width: 34px; text-align: center;
}
.wp-flash-timer-sep { font-weight: 700; color: var(--wp-primary); font-size: 16px; }

/* ===== WISHLIST CTA BANNER ===== */
.wp-wishlist-cta {
    background: linear-gradient(135deg, var(--wp-secondary), var(--wp-secondary-dark));
    color: #fff; border-radius: var(--wp-radius);
    padding: 18px 24px;
    display: flex; align-items: center; justify-content: space-between;
    margin: 16px 0;
}
.wp-wishlist-cta-text { font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.wp-wishlist-cta-btn {
    background: #fff; color: var(--wp-secondary);
    padding: 8px 20px; border-radius: 6px;
    font-size: 13px; font-weight: 700;
    text-decoration: none; white-space: nowrap;
    transition: background var(--wp-transition);
}
.wp-wishlist-cta-btn:hover { background: #e0f2fe; color: var(--wp-secondary-dark); }

/* ===== FOOTER - PREMIUM REDESIGN ===== */
footer.wp-footer {
    background: #111827 !important;
    color: #d1d5db;
    padding: 0 !important;
    font-family: inherit;
}

/* -- Trust Badge Strip -- */
.wp-footer-trust {
    background: #1a2235;
    border-top: 1px solid rgba(209,31,38,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 18px 0;
}
.wp-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.wp-trust-item {
    display: flex; align-items: center; gap: 12px;
}
.wp-trust-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    background: rgba(209,31,38,0.12);
    border: 1px solid rgba(209,31,38,0.25);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--wp-primary); font-size: 17px;
}
.wp-trust-text { display: flex; flex-direction: column; }
.wp-trust-text strong { font-size: 13px; font-weight: 700; color: #f9fafb; line-height: 1.3; }
.wp-trust-text span  { font-size: 11.5px; color: #6b7280; }

/* -- Main Footer Body -- */
.wp-footer-main {
    padding: 44px 0 32px;
}
.wp-footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 32px;
}

/* Brand Column */
.wp-footer-brand {}
.wp-footer-logo { max-height: 50px; margin-bottom: 14px; display: block; }
.wp-footer-tagline {
    font-size: 13px; color: #6b7280; line-height: 1.7;
    margin-bottom: 18px;
}
.wp-footer-phone {
    display: inline-flex; align-items: center; gap: 12px;
    background: rgba(209,31,38,0.1);
    border: 1px solid rgba(209,31,38,0.2);
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: background 0.2s;
}
.wp-footer-phone:hover { background: rgba(209,31,38,0.18); }
.wp-footer-phone i { color: var(--wp-primary); font-size: 18px; }
.wp-footer-phone div span  { display: block; font-size: 10px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; }
.wp-footer-phone div strong { display: block; font-size: 15px; color: #f9fafb; font-weight: 700; }
.wp-footer-email-link {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px; color: #9ca3af;
    margin-bottom: 16px;
    text-decoration: none; transition: color 0.2s;
}
.wp-footer-email-link:hover { color: #fff; }
.wp-footer-email-link i { color: var(--wp-secondary); }

/* Social buttons */
.wp-footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.wp-social-btn {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af; font-size: 15px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.wp-social-btn:hover { background: var(--wp-primary); border-color: var(--wp-primary); color: #fff; transform: translateY(-2px); }

/* Footer columns */
.wp-footer-col {}
.wp-footer-heading {
    font-size: 13px; font-weight: 700; color: #f9fafb;
    text-transform: uppercase; letter-spacing: 0.8px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--wp-primary);
    display: inline-block;
}
.wp-footer-links { list-style: none; padding: 0; margin: 0; }
.wp-footer-links li { margin-bottom: 9px; }
.wp-footer-links li a {
    font-size: 13px; color: #6b7280;
    display: flex; align-items: center; gap: 6px;
    text-decoration: none;
    transition: color 0.18s, padding-left 0.18s;
}
.wp-footer-links li a i { font-size: 10px; color: var(--wp-primary); }
.wp-footer-links li a:hover { color: #f9fafb; padding-left: 3px; }

/* App download */
.wp-footer-app { margin-top: 18px; }
.wp-footer-app p { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.wp-footer-app img { max-height: 40px; border-radius: 6px; }

/* -- Footer Bottom Bar -- */
.wp-footer-bottom {
    background: #0d1117;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 14px 0;
}
.wp-footer-bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
}
.wp-footer-copy {
    font-size: 12.5px; color: #4b5563; margin: 0;
}
.wp-footer-copy strong { color: #9ca3af; }
.wp-footer-payment {
    display: flex; align-items: center; gap: 10px;
    font-size: 12px; color: #4b5563;
}
.wp-footer-payment img {
    height: 22px; border-radius: 3px;
    opacity: 0.7; transition: opacity 0.2s;
}
.wp-footer-payment img:hover { opacity: 1; }
.wp-footer-payment i { font-size: 24px; color: #6b7280; }
.wp-footer-payment i.fa-cc-visa:hover { color: #1a56db; }
.wp-footer-payment i.fa-cc-mastercard:hover { color: #eb001b; }

/* Responsive footer */
@media (max-width: 1024px) {
    .wp-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .wp-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
    .wp-trust-grid { grid-template-columns: 1fr 1fr; }
    .wp-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .wp-footer-main { padding: 28px 0 20px; }
    .wp-footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ===== WISHLIST PAGE ===== */
.wp-wishlist-page { padding: 24px 0 40px; }
.wp-wishlist-page .wp-page-title {
    font-size: 22px; font-weight: 700; color: var(--wp-text);
    margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.wp-wishlist-empty {
    text-align: center; padding: 60px 20px;
    background: var(--wp-white); border-radius: var(--wp-radius);
}
.wp-wishlist-empty i { font-size: 56px; color: #e5e7eb; margin-bottom: 16px; display: block; }
.wp-wishlist-empty p { color: var(--wp-text-muted); font-size: 15px; margin-bottom: 20px; }
.wp-wishlist-empty a {
    background: var(--wp-primary); color: #fff;
    padding: 10px 28px; border-radius: 8px;
    font-weight: 600; font-size: 14px;
    display: inline-block;
    transition: background var(--wp-transition);
}
.wp-wishlist-empty a:hover { background: var(--wp-primary-dark); color: #fff; }

/* ===== VIEW MORE BUTTON ===== */
.wp-view-more {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--wp-white);
    border: 2px solid var(--wp-primary);
    color: var(--wp-primary);
    padding: 9px 28px; border-radius: 8px;
    font-weight: 600; font-size: 14px;
    transition: all var(--wp-transition);
    text-decoration: none;
}
.wp-view-more:hover { background: var(--wp-primary); color: #fff; }

/* ===== SCROLLTOP ===== */
.scrolltop { background: var(--wp-primary) !important; }

/* ===== BREADCRUMB ===== */
.wp-breadcrumb {
    background: var(--wp-white);
    padding: 10px 0;
    border-bottom: 1px solid var(--wp-border);
    font-size: 13px;
    margin-bottom: 20px;
}
.wp-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; list-style: none; padding: 0; margin: 0; }
.wp-breadcrumb li + li::before { content: '/'; color: #d1d5db; margin-right: 4px; }
.wp-breadcrumb li a { color: var(--wp-secondary); }
.wp-breadcrumb li a:hover { color: var(--wp-primary); }
.wp-breadcrumb li.active { color: var(--wp-text-muted); }

/* Fix #content padding */
#content { padding-top: 0 !important; }

/* Hero Slider Styling */
.slider-section { padding-top: 15px !important; }
.home-slider-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.home-slider-container .slider-item img {
    border-radius: 12px;
    width: 100%;
}
.home-slider-container .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7) !important;
    width: 36px; height: 36px;
    border-radius: 50% !important;
    color: var(--wp-primary) !important;
    font-size: 18px !important;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.home-slider-container .owl-nav button:hover {
    background: var(--wp-primary) !important;
    color: #fff !important;
}
.home-slider-container .owl-prev { left: 15px; }
.home-slider-container .owl-next { right: 15px; }
.home-slider-container .owl-dots {
    position: absolute;
    bottom: 15px;
    left: 0; right: 0;
    text-align: center;
}
.home-slider-container .owl-dot span {
    background: rgba(255,255,255,0.5) !important;
}
.home-slider-container .owl-dot.active span {
    background: #fff !important;
    width: 20px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .wp-promo-bar { font-size: 11px; gap: 8px; }
    .wp-section { padding: 16px 0; }
    .wp-wishlist-cta { flex-direction: column; gap: 12px; text-align: center; }
}
