/*
Theme Name: PrimeStore
Theme URI: https://sunnahnation.com
Description: Luxury dark eCommerce theme with gold gradient header & footer
Version: 1.2.1
Author: Prime Store
Text Domain: primestore
*/

/* =========================================
   CSS VARIABLES & RESET
   ========================================= */
:root {
    --gold-primary: #E5C847;
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --gold-gradient-hover: linear-gradient(135deg, #aa771c, #fbf5b7, #b38728, #fcf6ba, #bf953f);
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --bg-body: #121212;
    --bg-header: #1a1a1a;
    --bg-footer: #111111;
    --glass-bg: rgba(26, 26, 26, 0.95);
    --border-color: rgba(229, 200, 71, 0.3);
    --shadow-gold: rgba(212, 175, 55, 0.4);
    --card-bg: #2a2a2a;
    --sidebar-collapsed: 72px;
    --sidebar-expanded: 260px;
    --header-height: 50px;
    --danger: #f44336;
    --success: #4caf50;
}

/* LIGHT MODE */
body.light-mode {
    --text-main: #2c2c2c;
    --text-muted: #666666;
    --bg-body: #f4f5f7;
    --bg-header: #ffffff;
    --bg-footer: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.96);
    --border-color: rgba(179, 135, 40, 0.35);
    --shadow-gold: rgba(212, 175, 55, 0.25);
    --card-bg: #ffffff;
}
body.light-mode { background: var(--bg-body); }
body.light-mode .site-header,
body.light-mode .nav-sidebar,
body.light-mode .cart-drawer { box-shadow: 0 2px 14px rgba(0,0,0,0.08); }
body.light-mode .sidebar-nav a { background: #2a2a2a; color: #e0e0e0; }
body.light-mode .sub-menu li a { background: rgba(255,255,255,0.05); color: #e0e0e0; }
body.light-mode .item-card { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

/* FOOTER ALWAYS DARK — even when the site theme is white/light.
   Re-scope the dark variable values onto the footer so every child
   (text, social icons, newsletter box, inputs) renders dark like the header. */
body.light-mode .site-footer {
    background: #111111;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --bg-body: #121212;
    --card-bg: #2a2a2a;
    --border-color: rgba(229, 200, 71, 0.3);
}
body.light-mode .footer-newsletter { box-shadow: none; }

* { margin: 0; padding: 0; box-sizing: border-box; }
/* overflow-x: clip (not hidden) — `hidden` forces overflow-y to `auto`, which
   turns <body> into a scroll-container and breaks the sticky nav sidebar
   (it anchors to body instead of the viewport → gap + won't stay sticky).
   `clip` blocks horizontal scroll without creating a scroll-container. */
html, body { width: 100%; max-width: 100%; overflow-x: clip; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    overflow-x: clip;
    font-size: 15px;
    line-height: 1.6;
}

/* Kill Google Translate top banner & body offset */
.goog-te-banner-frame.skiptranslate,
.skiptranslate iframe { display: none !important; }
body { top: 0 !important; }
.goog-tooltip, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
#google_translate_element { display: none !important; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   GOLD BUTTON / BADGE GLOBAL
   ========================================= */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 50px;
    color: #000;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-gold::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 22px var(--shadow-gold); filter: brightness(1.08); }
.btn-gold:hover::after { opacity: 1; }
.btn-gold:active { transform: translateY(1px); }

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 26px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    border: 1.5px solid #b38728;
    border-radius: 50px;
    color: var(--gold-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-outline-gold:hover {
    background: var(--gold-gradient);
    color: #000;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--shadow-gold);
}

/* =========================================
   HEADER — 50px, always dark bg (even in light mode)
   ========================================= */
.site-header {
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    background: #1a1a1a;
    border-bottom: 2px solid var(--gold-primary);
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
}
/* header fixed হওয়ায় ফ্লো থেকে বেরিয়ে যায় — কন্টেন্ট যাতে হেডারের নিচে
   লুকিয়ে না যায় তাই body-তে ৫০px টপ অফসেট দিই */
/* `html body` — WP-র global-styles-inline-css `body{padding-top:0}` সেট করে
   যা সমান specificity-তে আমাদের হারিয়ে দেয়; তাই একধাপ বেশি নির্দিষ্ট করি */
html body { padding-top: 50px; }
/* লগইন অবস্থায় WP admin bar (fixed) হেডারের উপরে বসে — হেডারকে তার নিচে নামাই */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
/* 600px-এর নিচে admin bar absolute হয়ে স্ক্রলে সরে যায় → হেডার top:0 (গ্যাপ এড়াতে) */
@media screen and (max-width: 600px) { body.admin-bar .site-header { top: 0; } }
.site-header .hdr-icon-btn,
.site-header .mobile-toggle { color: var(--gold-primary); border-color: var(--gold-primary); transition: all 0.3s; }
.site-header .hdr-icon-btn:hover,
.site-header .mobile-toggle:hover { color: #fcf6ba; border-color: #fcf6ba; }
/* Always dark header regardless of theme */
body.light-mode .site-header { background: #1a1a1a; border-bottom-color: rgba(229,200,71,0.3); }
body.light-mode .site-header .hdr-icon-btn { color: #E5C847; border-color: rgba(229,200,71,0.3); }
body.light-mode .site-header .mobile-toggle { color: #E5C847; border-color: rgba(229,200,71,0.3); background: #2a2a2a; }
body.light-mode .site-header .site-logo { color: #e0e0e0; }

/* --- Custom: premium HD gold GRADIENT (হুবহু "এখনই অর্ডার" / Buy Now বাটনের
   --gold-gradient) — ALL header icons (hamburger, cart, search, account, lang)
   ও off-canvas side-menu icon-এ প্রয়োগ। glyph গুলো gradient text-fill পায়;
   বাটনের border সলিড গোল্ড থাকে। --- */
.site-header .mobile-toggle,
.site-header .hdr-icon-btn,
body.light-mode .site-header .mobile-toggle,
body.light-mode .site-header .hdr-icon-btn { border-color: #BF953F; }

/* Font Awesome গ্লিফ আসলে ::before এ থাকে — তাই gradient clip টা ::before এই
   দিতে হয়, নইলে আইকন transparent হয়ে অদৃশ্য হয়ে যায়। #langLabel আসল টেক্সট
   তাই সরাসরি দেওয়া যায়। */
.site-header .mobile-toggle i::before,
.site-header .hdr-icon-btn i::before,
.nav-sidebar .sidebar-nav a i::before,
.nav-sidebar .sub-menu li a i::before,
.nav-sidebar .sidebar-close i::before,
.site-header #langLabel {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
/* হোভারে বাটন gold-gradient দিয়ে ভরে যায় → glyph কে ডার্ক সলিড করি যাতে
   উজ্জ্বল ব্যাকগ্রাউন্ডের উপর পড়া যায় */
.site-header .mobile-toggle:hover i::before,
.site-header .hdr-icon-btn:hover i::before,
.site-header .hdr-icon-btn:hover #langLabel {
    background: none;
    -webkit-text-fill-color: #1a1a1a;
    color: #1a1a1a;
}

/* Sidebar stays dark in light mode */
body.light-mode .nav-sidebar { background: #1a1a1a; border-color: rgba(229,200,71,0.3); }
body.light-mode .sidebar-nav a { background: #2a2a2a; color: #e0e0e0; }
body.light-mode .sidebar-nav a:hover,
body.light-mode .sidebar-nav a.active-nav { color: #E5C847; }
body.light-mode .sub-menu li a { background: rgba(255,255,255,0.05); color: #e0e0e0; }
body.light-mode .sidebar-close { color: #e0e0e0; }
body.light-mode .hdr-badge { border-color: #1a1a1a; }

/* Gold top accent line */
.site-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold-gradient);
}

.header-left { display: flex; align-items: center; gap: 8px; }
.header-right { display: flex; align-items: center; gap: 5px; }

/* Logo — custom image or fallback initials */
.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}
.site-logo .logo-img {
    max-height: 36px;
    width: auto;
    display: block;
}
.site-logo .logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #e0e0e0;
}
.site-logo .logo-accent {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.site-logo:hover { opacity: 0.85; }
/* Header logo: soft light sweep across the mark (same rhythm as the footer credit). */
.site-logo { position: relative; overflow: hidden; }
.site-logo::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.55) 50%, transparent);
    transform: skewX(-18deg); pointer-events: none; z-index: 2;
    animation: ps-logo-shine 5s ease-in-out infinite;
}
@keyframes ps-logo-shine {
    0%, 68% { left: -60%; }
    100%    { left: 130%; }
}
@media (prefers-reduced-motion: reduce) { .site-logo::after { animation: none; } }

/* Hamburger */
.mobile-toggle {
    display: none;
    width: 32px; height: 32px;
    border: 1px solid rgba(229,200,71,0.3);
    border-radius: 7px;
    background: #2a2a2a;
    color: #E5C847;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.25s;
}
.mobile-toggle:hover {
    background: var(--gold-gradient);
    color: #000;
    border-color: transparent;
}

/* Header Icon Buttons */
.hdr-icon {
    position: relative;
    cursor: pointer;
}
.hdr-icon-btn {
    width: 32px; height: 32px;
    border-radius: 7px;
    border: 1px solid rgba(229,200,71,0.3);
    background: transparent;
    color: #E5C847;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: all 0.25s ease;
    cursor: pointer;
}
.hdr-icon-btn:hover {
    background: var(--gold-gradient);
    color: #000;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-gold);
}
.hdr-badge {
    position: absolute;
    top: -5px; right: -5px;
    background: #e53935;
    background: linear-gradient(135deg, #ff4b4b, #d10000);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    width: 17px; height: 17px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #1a1a1a;
    box-shadow: 0 0 6px rgba(229,57,53,0.7);
}
body.light-mode .hdr-badge { border-color: #1a1a1a; }

/* Cart Info Tooltip */
.hdr-cart-icon { position: relative; }
.hdr-cart-info {
    position: absolute;
    bottom: -75px; right: 0;
    background: rgba(0,0,0,0.95);
    border: 1px solid var(--gold-primary);
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 120px;
    display: flex; flex-direction: column; gap: 4px;
    opacity: 0; pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 12px var(--shadow-gold);
}
.hdr-cart-icon:hover .hdr-cart-info {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.cart-info-count {
    font-size: 12px;
    color: var(--gold-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cart-info-total {
    font-size: 14px;
    color: #fcf6ba;
    font-weight: 700;
}

/* Floating sticky cart — mid right, only when cart has items */
.float-cart {
    position: fixed;
    top: 50%; right: 16px;
    transform: translateY(-50%) scale(0);
    width: 54px; height: 54px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    background: #1a1a1a;
    color: var(--gold-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 1200;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 14px var(--shadow-gold);
    opacity: 0; pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
}
.float-cart.has-items {
    transform: translateY(-50%) scale(1);
    opacity: 1; pointer-events: auto;
}
.float-cart:hover {
    background: var(--gold-gradient);
    color: #000;
}
.float-cart-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: linear-gradient(135deg, #ff4b4b, #d10000);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    min-width: 20px; height: 20px;
    padding: 0 4px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #1a1a1a;
    box-shadow: 0 0 8px rgba(229,57,53,0.8);
}
@media (max-width: 600px) {
    .float-cart { width: 48px; height: 48px; font-size: 18px; right: 12px; }
}

/* Account dropdown popup */
.hdr-account-icon { position: relative; }
.hdr-account-menu {
    position: absolute;
    top: calc(100% + 10px); right: 0;
    background: rgba(0,0,0,0.96);
    border: 1px solid var(--gold-primary);
    border-radius: 10px;
    padding: 8px;
    min-width: 200px;
    display: flex; flex-direction: column;
    opacity: 0; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 0 1px var(--shadow-gold);
}
.hdr-account-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.hdr-account-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 7px;
    color: #e0e0e0; font-size: 13.5px; font-weight: 500;
    transition: all 0.2s ease;
}
.hdr-account-menu a i { color: var(--gold-primary); width: 16px; text-align: center; }
.hdr-account-menu a:hover { background: rgba(229,200,71,0.12); color: #fcf6ba; }
.hdr-account-menu a:hover i { color: #fcf6ba; }
.hdr-account-menu .ham-greeting {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px 10px; margin-bottom: 4px;
    border-bottom: 1px solid rgba(229,200,71,0.2);
    color: var(--gold-primary); font-weight: 700; font-size: 13px;
    word-break: break-word;
}
.hdr-account-menu .ham-greeting i { font-size: 18px; }
.hdr-account-menu .ham-logout { margin-top: 4px; border-top: 1px solid rgba(229,200,71,0.15); color: #ff8a8a; }
.hdr-account-menu .ham-logout i { color: #ff8a8a; }

/* Primary nav (desktop only, inside header) */
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s;
}
.header-nav a:hover,
.header-nav a.current-menu-item {
    color: #000;
    background: var(--gold-gradient);
    box-shadow: 0 3px 10px var(--shadow-gold);
}

/* Search bar (expandable) */
.header-search {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    background: var(--card-bg);
    transition: box-shadow 0.3s;
}
.header-search:focus-within {
    box-shadow: 0 0 0 2px #b38728;
    border-color: #b38728;
}
.header-search input {
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 16px;
    color: var(--text-main);
    font-size: 14px;
    width: 200px;
}
.header-search button {
    background: var(--gold-gradient);
    border: none;
    padding: 9px 14px;
    color: #000;
    cursor: pointer;
    font-size: 14px;
    transition: filter 0.3s;
}
.header-search button:hover { filter: brightness(1.1); }

/* =========================================
   SIDEBAR
   ========================================= */
.main-wrapper { display: flex; min-height: calc(100vh - var(--header-height)); }

.nav-sidebar {
    background: var(--glass-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 900;
    transition: width 0.3s ease;
}

.sidebar-nav { padding: 12px 0; }
.sidebar-nav li { margin-bottom: 3px; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 13px 0;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    border-radius: 0 12px 12px 0;
    white-space: nowrap;
    transition: all 0.3s;
    position: relative;
}
.sidebar-nav a i {
    min-width: var(--sidebar-collapsed);
    text-align: center;
    font-size: 17px;
    color: var(--gold-primary);
    transition: color 0.3s;
    flex-shrink: 0;
}
.nav-label {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    overflow: hidden;
    white-space: nowrap;
}

/* Active & hover state — gold gradient bar */
.sidebar-nav a::before {
    content: '';
    position: absolute;
    left: 0; top: 6px; bottom: 6px;
    width: 3px;
    background: var(--gold-gradient);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: opacity 0.3s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active-nav {
    color: #000;
    background: var(--gold-gradient);
    box-shadow: 0 3px 12px var(--shadow-gold);
}
.sidebar-nav a:hover i,
.sidebar-nav a.active-nav i { color: #000; }
.sidebar-nav a:hover::before,
.sidebar-nav a.active-nav::before { opacity: 0; }

/* Sub-menu */
.sub-menu { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.sub-menu.open { max-height: 1600px; }

/* ===== Category MEGA grid (off-canvas) ===== */
.cat-mega-wrap { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.cat-mega-wrap.open { max-height: 1800px; }
.cat-mega { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px 2px 6px; }
.cat-card {
    display: flex !important; flex-direction: column; align-items: center; text-align: center; gap: 6px;
    padding: 9px 6px !important; border-radius: 12px !important;
    background: rgba(255,255,255,0.04) !important; border: 1px solid var(--border-color) !important;
    position: relative; overflow: hidden; box-shadow: none !important;
    transition: transform .25s, box-shadow .25s, border-color .25s, background .25s !important;
}
.cat-card-media {
    width: 100%; aspect-ratio: 1/1; border-radius: 9px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg,#2a2a2a,#1c1c1c);
}
.cat-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-card-media i { font-size: 22px; color: var(--gold-primary); min-width: auto !important; margin: 0 !important; }
.cat-card-name {
    font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--text-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%;
}
.cat-card-count {
    position: absolute; top: 7px; right: 7px; background: var(--gold-gradient); color: #000;
    font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; line-height: 18px;
    border-radius: 9px; padding: 0 5px; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.cat-card:hover, .cat-card:focus {
    transform: translateY(-2px); border-color: var(--gold-primary) !important;
    box-shadow: 0 6px 18px var(--shadow-gold) !important; background: rgba(229,200,71,0.10) !important;
}
.cat-card:hover .cat-card-name, .cat-card:focus .cat-card-name { color: var(--gold-primary); }
.cat-card-all .cat-card-media { background: var(--gold-gradient); }
.cat-card-all .cat-card-media i { color: #000; }
.sub-menu li a {
    padding: 10px 14px 10px 0;
    font-size: 13px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    margin-bottom: 3px;
}
.sub-menu li a i { min-width: 50px; font-size: 13px; }

.chevron {
    margin-left: auto;
    margin-right: 18px;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}
.has-sub.open > a .chevron { transform: rotate(180deg); }

/* DESKTOP expand on hover */
@media (min-width: 993px) {
    .mobile-toggle { display: none; }
    .nav-sidebar {
        width: var(--sidebar-collapsed);
        position: sticky;
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
    }
    .nav-sidebar:hover { width: var(--sidebar-expanded); box-shadow: 4px 0 20px rgba(0,0,0,0.4); }
    .nav-sidebar:hover .nav-label { opacity: 1; pointer-events: auto; transition-delay: 0.08s; }
    .nav-sidebar:hover .chevron { opacity: 1; }
    .nav-sidebar:hover .sub-menu.open { padding-left: 12px; }
}

/* Sidebar close button (mobile only) */
.sidebar-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    border-radius: 9px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--gold-primary);
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Responsive helper visibility classes */
.d-mobile-only { display: none; }
@media (max-width: 992px) {
    .d-none-mobile { display: none !important; }
    .d-mobile-only { display: flex !important; }
}

/* MOBILE sidebar off-canvas */
@media (max-width: 992px) {
    .mobile-toggle { display: flex; }
    .nav-sidebar {
        position: fixed;
        top: 0; left: -100%;
        width: 82vw;
        max-width: 300px;
        height: 100vh;
        height: 100dvh;
        padding: calc(var(--header-height) + 8px) 14px 24px;
        background: var(--bg-header);
        box-shadow: 8px 0 30px rgba(0,0,0,0.6);
        z-index: 1500;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-sidebar.open { left: 0; background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%); }
    .nav-label { opacity: 1; pointer-events: auto; margin-left: 0; }
    .chevron { opacity: 1; color: var(--gold-primary); }
    .sidebar-nav a { padding: 14px 16px; border-radius: 10px; border: 2px solid var(--gold-primary); background: rgba(229, 200, 71, 0.08); margin-bottom: 6px; transition: all 0.3s; color: #e0e0e0; }
    .sidebar-nav a:hover,
    .sidebar-nav a.active-nav { border-color: #fcf6ba; background: var(--gold-gradient); color: #000; box-shadow: 0 4px 15px var(--shadow-gold); }
    .sidebar-nav a i { min-width: 28px; text-align: left; color: var(--gold-primary); }
    .sidebar-nav a:hover i,
    .sidebar-nav a.active-nav i { color: #000; }
    .sub-menu.open { padding-left: 16px; }
    .sub-menu li a { background: rgba(229, 200, 71, 0.05); border: 1px solid var(--gold-primary); color: #e0e0e0; }
}

/* =========================================
   CONTENT
   ========================================= */
.site-content {
    flex: 1;
    padding: 28px;
    min-width: 0;
    animation: fadeUp 0.35s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) { .site-content { padding: 12px; } }
@media (max-width: 620px) { .site-content { padding: 0; } }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Gold top accent */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold-gradient);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 50px 40px 40px;
}

.footer-brand .site-logo { font-size: 24px; margin-bottom: 14px; display: inline-block; }
.footer-brand p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
    max-width: 280px;
    margin-bottom: 20px;
}

/* Social icons */
.footer-contact { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.5; color: var(--text-muted, #9a9a9a); }
.footer-contact li i { color: var(--gold-primary); margin-top: 3px; flex-shrink: 0; }
.footer-contact li a { color: inherit; text-decoration: none; }
.footer-contact li a:hover { color: var(--gold-primary); }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.social-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--gold-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    transition: all 0.3s;
}
.social-icon:hover {
    background: var(--gold-gradient);
    color: #000;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px var(--shadow-gold);
}

/* Footer columns */
.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: var(--text-muted);
    font-size: 13px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-col ul li a::before {
    content: '›';
    color: var(--gold-primary);
    font-size: 16px;
    line-height: 1;
}
.footer-col ul li a:hover { color: var(--gold-primary); }

/* Newsletter */
.footer-newsletter {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px 28px;
    margin: 0 40px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.newsletter-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.newsletter-text p { color: var(--text-muted); font-size: 13px; }
.newsletter-form {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    background: var(--bg-body);
    flex: 1;
    max-width: 380px;
    min-width: 240px;
}
.newsletter-form input {
    flex: 1;
    padding: 11px 18px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}
.newsletter-form button {
    padding: 11px 22px;
    background: var(--gold-gradient);
    border: none;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: filter 0.3s;
}
.newsletter-form button:hover { filter: brightness(1.1); }

/* Footer bottom bar */
.footer-bottom {
    padding: 16px 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s;
}
.footer-bottom-links a:hover { color: var(--gold-primary); }

/* Developer / agency credit (footer bottom bar) */
.footer-dev-credit { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; line-height: 1; }
.footer-dev-credit > span { color: #9a9a9a; letter-spacing: .3px; }
/* Logo artwork is dark green on transparent, so it sits on a light pill over the dark footer. */
.footer-dev-credit a {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center;
    padding: 8px 16px; border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(201,162,74,.40);
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
/* Light sweep across the chip — draws the eye without being loud. */
.footer-dev-credit a::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.95) 50%, transparent);
    transform: skewX(-18deg); pointer-events: none;
    animation: ps-credit-shine 4.5s ease-in-out infinite;
}
@keyframes ps-credit-shine {
    0%, 62% { left: -60%; }
    100%    { left: 130%; }
}
.footer-dev-credit a:hover {
    border-color: rgba(201,162,74,.85);
    box-shadow: 0 6px 22px rgba(201,162,74,.30);
    transform: translateY(-2px);
}
.footer-dev-credit img { height: 34px; width: auto; max-width: 200px; object-fit: contain; display: block; }
@media (prefers-reduced-motion: reduce) {
    .footer-dev-credit a::after { animation: none; }
    .footer-dev-credit a:hover { transform: none; }
}
@media (max-width: 600px) {
    .footer-dev-credit img { height: 28px; }
    .footer-dev-credit a { padding: 6px 12px; }
}
/* Stacked footer bar: the credit gets its own centered row with a divider above. */
@media (max-width: 768px) {
    .footer-bottom { align-items: center; text-align: center; }
    .footer-bottom p,
    .footer-payments,
    .footer-bottom-links { justify-content: center; }
    .footer-dev-credit {
        width: 100%;
        justify-content: center;
        border-top: 1px solid rgba(255,255,255,.10);
        padding-top: 14px;
        margin-top: 4px;
    }
}

/* Payment icons row */
.footer-payments { display: flex; gap: 8px; align-items: center; }
.pay-icon {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr 1fr; padding: 30px 20px 24px; gap: 28px; }
    .footer-newsletter { margin: 0 20px 24px; flex-direction: column; align-items: flex-start; }
    .footer-bottom { padding: 14px 20px; flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 480px) {
    .footer-top { grid-template-columns: 1fr; padding: 24px 16px 20px; }
    .footer-newsletter { margin: 0 16px 20px; }
    .footer-bottom { padding: 12px 16px; }
}

/* =========================================
   OVERLAY & CART DRAWER
   ========================================= */
.site-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1400;
    display: none;
}
.site-overlay.active { display: block; }

/* Hide cart plugin FAB button - use header cart instead */
.fab-cart-btn { display: none !important; }
.ubc-overlay { display: none !important; }
.ubc-overlay.active { display: none !important; }

.cart-drawer {
    position: fixed; top: 0; right: -100%;
    width: 340px; max-width: 100vw;
    height: 100%;
    background: var(--bg-header);
    border-left: 1px solid var(--border-color);
    z-index: 2000;
    display: flex; flex-direction: column;
    transition: right 0.38s cubic-bezier(0.4,0,0.2,1);
}
.cart-drawer.open { right: 0; }

.cart-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--gold-gradient);
}
.cart-header h3 { font-size: 16px; font-weight: 700; color: #000; }
.cart-close { background: transparent; border: none; font-size: 20px; color: #000; cursor: pointer; }

.cart-body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}
.cart-total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 14px; }
.cart-total span:last-child { color: var(--gold-primary); }

/* =========================================
   TOAST
   ========================================= */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 5000; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: var(--bg-header);
    border-left: 3px solid;
    border-image: var(--gold-gradient) 1;
    padding: 12px 18px;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    display: flex; align-items: center; gap: 10px;
    color: var(--text-main);
    font-size: 13px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68,-0.55,0.27,1.55);
}
.toast.show { transform: translateX(0); }
.toast i { color: var(--gold-primary); }
.toast.toast-error { border-image: none; border-left-color: var(--danger); }
.toast.toast-error i { color: var(--danger); }

/* =========================================
   404 ERROR PAGE
   ========================================= */
.error-404 { text-align: center; padding: 60px 20px; max-width: 560px; margin: 0 auto; }
.error-404-code {
    font-size: clamp(80px, 18vw, 160px);
    font-weight: 800;
    line-height: 1;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}
.error-404-title { font-size: 26px; font-weight: 700; color: var(--text-main); margin-bottom: 12px; }
.error-404-text { color: var(--text-muted); font-size: 15px; margin-bottom: 26px; }
.error-404-search { max-width: 420px; margin: 0 auto 26px; }
.error-404-search form { display: flex; gap: 8px; }
.error-404-search input[type="search"] {
    flex: 1; padding: 12px 16px; border-radius: 8px;
    border: 1px solid var(--border-color); background: var(--card-bg);
    color: var(--text-main); font-size: 14px; outline: none;
}
.error-404-search input[type="search"]:focus { border-color: var(--gold-primary); }
.error-404-search button,
.error-404-search input[type="submit"],
.error-404-search .search-submit {
    padding: 12px 18px; border: none; border-radius: 8px; cursor: pointer;
    background: var(--gold-gradient); color: #000; font-weight: 600;
}
.error-404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =========================================
   BACK TO TOP
   ========================================= */
.back-to-top {
    position: fixed; bottom: 24px; left: 24px; z-index: 4900;
    width: 44px; height: 44px; border-radius: 50%;
    border: none; cursor: pointer;
    background: var(--gold-gradient); color: #000;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    box-shadow: 0 6px 18px var(--shadow-gold);
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { filter: brightness(1.08); transform: translateY(-3px); }

/* =========================================
   ACCESSIBILITY: skip link
   ========================================= */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100000;
    background: var(--gold-gradient); color: #000;
    padding: 10px 18px; border-radius: 0 0 8px 0;
    font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* =========================================
   WOOCOMMERCE OVERRIDES
   ========================================= */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .cart .button,
.woocommerce .checkout-button {
    background: var(--gold-gradient) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 15px var(--shadow-gold) !important;
    transition: filter 0.3s, transform 0.3s !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover { filter: brightness(1.1) !important; transform: translateY(-2px) !important; }

.woocommerce-message,
.woocommerce-info { border-top-color: #b38728 !important; background: var(--card-bg) !important; color: var(--text-main) !important; }
.woocommerce-message::before { color: #b38728 !important; }

/* =========================================
   UTILITY
   ========================================= */
.text-gold { color: var(--gold-primary); }
.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* =========================================
   INSTANT SEARCH
   ========================================= */
.hdr-search-wrap { position: relative; }
.instant-search-box {
    display: none;
    position: fixed;
    top: 50px;
    left: 0; right: 0;
    background: #1e1e1e;
    border-bottom: 2px solid #b38728;
    z-index: 1600;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.instant-search-box.open { display: flex; }
body.light-mode .instant-search-box { background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,0.15); }

.isb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
}
.isb-inner input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(229,200,71,0.3);
    border-radius: 50px;
    background: #2a2a2a;
    color: #e0e0e0;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
}
body.light-mode .isb-inner input { background: #f4f5f7; color: #222; border-color: #ddd; }
.isb-inner input:focus { border-color: #b38728; box-shadow: 0 0 0 2px rgba(179,135,40,0.25); }
.isb-close {
    width: 32px; height: 32px;
    border: none; border-radius: 50%;
    background: rgba(229,200,71,0.15);
    color: #E5C847;
    font-size: 14px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

.isb-results {
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 10px 10px;
}
.isb-results .isb-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}
.isb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background 0.2s;
    cursor: pointer;
}
.isb-item:hover { background: rgba(229,200,71,0.1); }
.isb-item img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.isb-item-info { flex: 1; min-width: 0; }
.isb-item-info h4 {
    font-size: 13px; font-weight: 600;
    color: var(--text-main);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin: 0;
}
body.light-mode .isb-item-info h4 { color: #222; }
.isb-item-info .isb-price { font-size: 12px; color: #E5C847; font-weight: 700; }
.isb-add-btn {
    width: 30px; height: 30px;
    border: none; border-radius: 50%;
    background: var(--gold-gradient);
    color: #000;
    font-size: 12px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.isb-add-btn:hover { transform: scale(1.15); }
.isb-add-btn.added { background: #4caf50; color: #fff; }

/* =========================================
   UTILITY
   ========================================= */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* =========================================
   MOBILE OPTIMIZATION (consolidated)
   ========================================= */

/* Tablet & below */
@media (max-width: 992px) {
    :root { --header-height: 62px; }

    .site-header { height: 62px; padding: 0 8px; }
    /* হেডার মোবাইলে ৬২px — body-র টপ অফসেটও মিলিয়ে দিই, নইলে
       ফিক্সড হেডার কনটেন্টের (প্রোডাক্ট ছবির) উপরে বসে যায় */
    html body { padding-top: 62px; }
    .header-left { gap: 6px; }
    .site-logo .logo-img { max-height: 44px; }

    /* Cart drawer near full width */
    .cart-drawer { width: 88vw; max-width: 360px; }
}

/* Phones */
@media (max-width: 600px) {
    /* Kill the thin gap above the sticky header on mobile.
       (admin-bar users keep their toolbar offset via :not(.admin-bar)) */
    body:not(.admin-bar) .site-header { margin-top: 0 !important; }
    .site-header { top: 0; }

    /* Full width header and footer */
    .site-header { width: 100vw; margin-left: calc(-50vw + 50%); padding: 0 6px; }
    .site-footer { width: 100vw; margin-left: calc(-50vw + 50%); }
    .header-right { gap: 3px; }

    .site-header { height: 62px; }

    .hdr-icon-btn,
    .mobile-toggle { width: 36px; height: 36px; font-size: 15px; border-radius: 8px; }
    #langLabel { font-size: 12px !important; }

    .hdr-badge { width: 16px; height: 16px; font-size: 9px; top: -5px; right: -5px; }

    /* Prevent horizontal scroll anywhere (clip: no scroll-container, keeps sticky working) */
    body { overflow-x: clip; }
    .site-content { padding: 0; }

    /* Full width blocks and sections on mobile */
    .wp-block-group,
    .wp-block-columns,
    .wp-block-column,
    .woocommerce-products-header,
    [class*="wp-block"],
    .entry-content,
    [style*="max-width"],
    .container,
    .wrapper,
    div[style*="width"] { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }

    /* Ensure no horizontal scrolling */
    main,
    article { width: 100%; overflow-x: hidden; }

    /* Remove any internal padding that creates gaps */
    .site-content > * { width: 100% !important; }

    /* Cart drawer full screen feel */
    .cart-drawer { width: 100vw; max-width: 100vw; border-left: none; }
    .cart-header { padding: 16px 16px 14px; }
    .cart-body { padding: 12px; }
    .cart-footer { padding: 14px 16px; }

    /* Footer stacks single column */
    .footer-top { grid-template-columns: 1fr !important; gap: 22px; padding: 26px 16px 18px; text-align: left; }
    .footer-brand p { max-width: 100%; }
    .footer-newsletter { margin: 0 12px 18px; padding: 18px 16px; }
    .newsletter-form { max-width: 100%; min-width: 0; width: 100%; }
    .footer-bottom { padding: 14px 16px; gap: 14px; }
    .footer-bottom-links { flex-wrap: wrap; gap: 14px; }
    .footer-payments { flex-wrap: wrap; }

    /* Toasts span width nicely */
    .toast-wrap { right: 12px; left: 12px; bottom: 14px; }
    .toast { width: 100%; }

    /* Mobile search bar input full width */
    .mobile-search-bar .header-search { max-width: 100%; }
    .mobile-search-bar .header-search input { width: 100%; }

    /* Buttons full-width friendly on small screens */
    .btn-gold, .btn-outline-gold { padding: 11px 20px; font-size: 0.8rem; }
}

/* Very small phones */
@media (max-width: 380px) {
    .site-logo { font-size: 15px; }
    .header-left { gap: 8px; }
    .hdr-icon-btn,
    .mobile-toggle { width: 32px; height: 32px; font-size: 13px; }
    /* Tighten icon gap so cart + account + menu all fit */
    .header-right { gap: 2px; }
    /* Keep the account dropdown on-screen on very small phones */
    .hdr-account-menu { min-width: 0; width: calc(100vw - 16px); right: -6px; }
}

/* Respect notches / safe areas on modern phones */
@supports (padding: env(safe-area-inset-left)) {
    @media (max-width: 600px) {
        .site-header { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
        .cart-drawer { padding-bottom: env(safe-area-inset-bottom); }
    }
}

/* Larger tap targets for all links inside sidebar/footer on touch */
@media (hover: none) {
    .sidebar-nav a, .footer-col ul li a, .footer-bottom-links a { min-height: 40px; }
}

/* =========================================
   TRACK ORDER — always-gold highlighted nav item
   ========================================= */
.sidebar-nav a.track-gold {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 700;
    box-shadow: 0 3px 12px var(--shadow-gold);
    position: relative;
    overflow: hidden;
}
.sidebar-nav a.track-gold i { color: #000; }
.sidebar-nav a.track-gold::before { opacity: 0; }
/* subtle sheen sweep */
.sidebar-nav a.track-gold::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg);
    animation: trackSheen 3.4s ease-in-out infinite;
}
@keyframes trackSheen {
    0%, 60% { left: -60%; }
    100% { left: 130%; }
}
.sidebar-nav a.track-gold:hover {
    color: #000;
    background: var(--gold-gradient-hover);
    box-shadow: 0 5px 18px var(--shadow-gold);
    filter: brightness(1.05);
}
.sidebar-nav a.track-gold:hover i { color: #000; }
/* keep it gold (not the plain outlined style) inside the mobile drawer too */
@media (max-width: 768px) {
    .sidebar-nav a.track-gold {
        border-color: #fcf6ba;
        background: var(--gold-gradient);
        color: #000;
        box-shadow: 0 4px 15px var(--shadow-gold);
    }
    .sidebar-nav a.track-gold i { color: #000; }
}
@media (prefers-reduced-motion: reduce) {
    .sidebar-nav a.track-gold::after { animation: none; display: none; }
}

/* =========================================
   MY ACCOUNT — ORDERS TABLE (gold luxe skin)
   ========================================= */
.woocommerce-account .woocommerce-MyAccount-content {
    color: #e8e8e8;
}
.woocommerce-account .woocommerce-orders-table,
.woocommerce-account table.shop_table {
    border: 1px solid var(--gold-primary);
    border-radius: 14px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
    box-shadow: 0 8px 26px rgba(0,0,0,0.45), 0 0 0 1px var(--shadow-gold);
    width: 100%;
}
.woocommerce-account table.shop_table thead th {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.82rem;
    padding: 14px 18px;
    border: none;
    text-align: left;
}
.woocommerce-account table.shop_table tbody td {
    padding: 14px 18px;
    border: none;
    border-bottom: 1px solid rgba(229, 200, 71, 0.18);
    color: #e0e0e0;
    font-size: 0.9rem;
    background: transparent;
}
.woocommerce-account table.shop_table tbody tr:last-child td {
    border-bottom: none;
}
.woocommerce-account table.shop_table tbody tr:hover td {
    background: rgba(229, 200, 71, 0.06);
}
.woocommerce-account table.shop_table td.woocommerce-orders-table__cell-order-number a {
    color: var(--gold-primary);
    font-weight: 700;
}
.woocommerce-account table.shop_table .woocommerce-orders-table__cell-order-status {
    color: #fcf6ba;
    font-weight: 600;
}

/* VIEW / action buttons inside table */
.woocommerce-account table.shop_table .button,
.woocommerce-account table.shop_table a.button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 50px;
    color: #000;
    box-shadow: 0 4px 12px var(--shadow-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
.woocommerce-account table.shop_table .button:hover,
.woocommerce-account table.shop_table a.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-gold);
    filter: brightness(1.08);
    color: #000;
}

/* Pagination (NEXT / PREVIOUS) */
.woocommerce-account .woocommerce-pagination .button,
.woocommerce-account .woocommerce-Pagination .button,
.woocommerce-account .pagination .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 26px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 50px;
    color: #000;
    box-shadow: 0 4px 12px var(--shadow-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
.woocommerce-account .woocommerce-pagination .button:hover,
.woocommerce-account .pagination .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-gold);
    filter: brightness(1.08);
}

/* Generic account content buttons + headings */
.woocommerce-account .woocommerce-MyAccount-content h1,
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
    color: var(--gold-primary);
}

/* Responsive: stacked table on mobile keeps gold accents */
@media (max-width: 768px) {
    .woocommerce-account table.shop_table thead {
        display: none;
    }
    .woocommerce-account table.shop_table tbody tr {
        display: block;
        border: 1px solid rgba(229, 200, 71, 0.25);
        border-radius: 10px;
        margin-bottom: 12px;
        padding: 6px 4px;
    }
    .woocommerce-account table.shop_table tbody td {
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid rgba(229, 200, 71, 0.12);
    }
    .woocommerce-account table.shop_table tbody td::before {
        content: attr(data-title);
        font-weight: 700;
        color: var(--gold-primary);
        text-transform: uppercase;
        font-size: 0.72rem;
    }
}

/* =========================================
   TRANSLATE PROGRESS OVERLAY
   ========================================= */
.translate-overlay {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.translate-overlay.show { opacity: 1; visibility: visible; }
.translate-overlay .tlo-card {
    width: min(340px, 84vw);
    padding: 30px 26px 26px;
    border-radius: 16px;
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 50px rgba(0,0,0,0.55);
    text-align: center;
}
.translate-overlay .tlo-spinner {
    width: 58px; height: 58px; margin: 0 auto 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold-gradient);
    color: #000; font-size: 26px;
    animation: tloPulse 1.2s ease-in-out infinite;
}
@keyframes tloPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--shadow-gold); }
    50% { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(212,175,55,0); }
}
.translate-overlay .tlo-title {
    color: #f0f0f0; font-size: 15px; font-weight: 700; margin-bottom: 18px;
}
.translate-overlay .tlo-bar {
    height: 8px; border-radius: 6px; overflow: hidden;
    background: rgba(255,255,255,0.12);
    margin-bottom: 12px;
}
.translate-overlay .tlo-fill {
    height: 100%; width: 0%;
    background: var(--gold-gradient);
    border-radius: 6px;
    transition: width 0.25s ease;
}
.translate-overlay .tlo-percent {
    color: var(--gold-primary); font-size: 20px; font-weight: 800;
    letter-spacing: 0.5px;
}
/* Keep our own overlay out of Google Translate's DOM rewrite. */
.translate-overlay, .translate-overlay * { -webkit-user-select: none; user-select: none; }


/* ==== SN HEADER/MEGA-MENU/OFF-CANVAS PORT (from trustfly, recolored to SN gold) ==== */
/* =========================================
   RICH CATEGORY SUB-MENU (off-canvas + sidebar)
   each parent = thumbnail/icon + name, with its sub-categories nested.
   Shared by mobile off-canvas AND the desktop expand-on-hover sidebar.
   ========================================= */
.sub-menu.cat-rich.open { max-height: 3000px; }   /* fits thumbnails + chips */
.cat-rich { padding-left: 0 !important; }
.cat-rich .cat-rich-item {
    margin-bottom: 8px; border-radius: 12px; overflow: hidden;
    background: rgba(255,255,255,.03); border: 1px solid var(--border-color);
    transition: border-color .2s;
}
.cat-rich .cat-rich-item:hover { border-color: #E5C847; }
.cat-rich .cat-rich-head {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px !important; margin: 0 !important;
    border: none !important; background: transparent !important; border-radius: 0 !important;
}
/* Parent category PHOTO tile — larger, photo-forward */
.cat-rich .cat-rich-thumb {
    width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; overflow: hidden;
    background: rgba(229,200,71,.12); border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.cat-rich .cat-rich-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-rich .cat-rich-thumb i { min-width: 0 !important; font-size: 18px; }
.cat-rich .cat-rich-name { font-weight: 600; flex: 1; }
.cat-rich .cat-rich-count {
    flex-shrink: 0; min-width: 24px; height: 22px; padding: 0 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; border-radius: 11px;
    background: rgba(229,200,71,.15); color: #E5C847;
}

/* Sub-categories as PHOTO chips (thumbnail + name) */
.cat-rich .cat-rich-kids {
    list-style: none; margin: 0; padding: 10px 12px 12px;
    display: flex; flex-wrap: wrap; gap: 8px;
    border-top: 1px dashed var(--border-color);
}
.cat-rich .cat-rich-kids li { margin: 0; }
.cat-rich .cat-rich-kids li a.cat-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 13px 4px 4px !important; font-size: 12px !important; font-weight: 500;
    border: 1px solid var(--border-color) !important; border-radius: 22px !important;
    background: rgba(255,255,255,.04) !important; color: #d5d5d5 !important;
    margin: 0 !important; line-height: 1.2;
    transition: background .18s, color .18s, border-color .18s;
}
.cat-rich .cat-chip-thumb {
    width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; overflow: hidden;
    background: rgba(229,200,71,.15); border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
}
.cat-rich .cat-chip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-rich .cat-chip-thumb i { min-width: 0 !important; font-size: 10px; }
.cat-rich .cat-rich-kids li a.cat-chip:hover {
    background: var(--gold-gradient) !important; color: #1a1a1a !important; border-color: transparent !important;
}
.cat-rich .cat-rich-kids li a.cat-chip:hover .cat-chip-thumb {
    background: rgba(0,0,0,.18); border-color: transparent;
}

/* =========================================
   TRACK ORDER PAGE — logged-in "my orders" auto-tracking
   ========================================= */
.tf-mytrack { max-width: 560px; margin: 16px auto; padding: 0 12px; }
.tf-mytrack-hi {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 15px; color: #111; margin-bottom: 12px;
}
.tf-mytrack-hi i { color: #E5C847; }
.tf-mt-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
    margin-bottom: 16px; overflow: hidden; box-shadow: 0 6px 22px rgba(0,0,0,.06);
}
.tf-mt-items {
    display: flex; gap: 10px; overflow-x: auto; padding: 14px;
    border-bottom: 1px solid #eef2f7; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tf-mt-items::-webkit-scrollbar { display: none; }
.tf-mt-item { flex: 0 0 auto; width: 96px; }
.tf-mt-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid #eef2f7; }
.tf-mt-iname {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 11px; color: #334155; line-height: 1.3; margin-top: 5px;
}
.tf-mt-iqty { font-size: 11px; color: #E5C847; font-weight: 700; }
/* Let the plugin's tracking card sit flush inside our card */
.tf-mt-card .sntrk { margin: 0 auto !important; border: none !important; box-shadow: none !important; }
.tf-mt-fallback { padding: 14px; color: #334155; font-size: 14px; }
.tf-mt-fallback i { color: #E5C847; margin-right: 4px; }
.tf-mytrack-or { text-align: center; color: #64748b; font-size: 13px; margin: 18px 0 6px; }

/* =========================================
   OFF-CANVAS FEATURED PRODUCTS (mobile only)
   horizontal scroll of product cards at the bottom of the side menu.
   ========================================= */
.sidebar-featured { display: none; }
@media (max-width: 992px) {
    .sidebar-featured {
        display: block; margin-top: 16px; padding-top: 14px;
        border-top: 1px solid var(--border-color);
    }
    .sidebar-featured-head {
        display: flex; align-items: center; justify-content: space-between;
        margin-bottom: 10px; padding: 0 4px;
    }
    .sidebar-featured-head > span {
        color: #fff; font-weight: 700; font-size: 13px;
        display: flex; align-items: center; gap: 6px;
    }
    .sidebar-featured-head > span i { color: var(--gold-primary); }
    .sidebar-featured-head a { color: #E5C847; font-size: 12px; font-weight: 600; }

    .sidebar-featured-scroll {
        display: flex; gap: 10px; overflow-x: auto;
        padding: 2px 4px 10px; scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .sidebar-featured-scroll::-webkit-scrollbar { display: none; }

    .sf-card {
        position: relative; flex: 0 0 132px; width: 132px; scroll-snap-align: start;
        background: rgba(255,255,255,0.04); border: 1px solid var(--border-color);
        border-radius: 12px; padding: 8px;
    }
    .sf-link { display: flex; flex-direction: column; gap: 6px; }
    .sf-img { width: 100%; height: 104px; border-radius: 8px; overflow: hidden; background: #fff; display: block; }
    .sf-img img { width: 100%; height: 100%; object-fit: cover; }
    .sf-name { color: #e0e0e0; font-size: 12px; line-height: 1.3; font-weight: 500; min-height: 31px; }
    .sf-price { color: #E5C847; font-weight: 700; font-size: 13px; }
    .sf-price del { color: #888; font-weight: 400; font-size: 11px; margin-right: 3px; }
    .sf-price ins { text-decoration: none; }

    .sf-add {
        position: absolute; top: 12px; right: 12px;
        width: 30px; height: 30px; border: none; border-radius: 50%;
        background: var(--gold-gradient); color: #1a1a1a;
        display: flex; align-items: center; justify-content: center; cursor: pointer;
        box-shadow: 0 2px 8px rgba(229,200,71,.45);
    }
    .sf-add.adding, .sf-add.added { background: #E5C847; color: #fff; }

    /* Force the Font Awesome face on these new icons (Bengali-font plugin
       otherwise forces font-family:inherit on .fas → tofu). */
    .sidebar-featured i::before { font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; }
}

/* =========================================
   OFF-CANVAS EXTRAS (mobile only)
   account/login header · menu search · Track Order · promo · social
   ========================================= */
.sidebar-top, .sidebar-promo, .sidebar-social { display: none; }
@media (max-width: 992px) {
    .sidebar-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }

    /* The top gold Track Order button already covers mobile — hide the
       duplicate nav-list track item here (desktop rail still shows it). */
    .nav-track-order { display: none; }

    /* Account / login */
    .sb-account {
        display: flex; align-items: center; gap: 10px; padding: 10px 12px;
        background: rgba(229,200,71,.10); border: 1px solid var(--border-color);
        border-radius: 12px; color: #e8e8e8;
    }
    .sb-avatar {
        width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
        background: var(--gold-gradient); color: #1a1a1a;
        display: flex; align-items: center; justify-content: center; font-size: 16px;
    }
    .sb-account-txt { display: flex; flex-direction: column; line-height: 1.2; flex: 1; }
    .sb-hi { font-size: 11px; color: var(--text-muted); }
    .sb-name { font-size: 14px; font-weight: 700; color: #fff; }
    .sb-account > i { color: var(--gold-primary); }
    .sb-auth { display: flex; gap: 8px; }
    .sb-auth-btn {
        flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
        height: 42px; border-radius: 10px; font-weight: 700; font-size: 13px;
    }
    .sb-login { background: var(--gold-gradient); color: #1a1a1a; }
    .sb-register { background: transparent; color: #E5C847; border: 1.5px solid var(--border-color); }

    /* Menu search */
    .sb-search {
        position: relative; display: flex; align-items: center; height: 42px;
        background: rgba(255,255,255,.05); border: 1px solid var(--border-color);
        border-radius: 10px; padding: 0 10px 0 36px;
    }
    .sb-search > i { position: absolute; left: 12px; color: #E5C847; font-size: 14px; }
    .sb-search input {
        flex: 1; height: 100%; min-width: 0; border: none; background: transparent; outline: none;
        color: #e8e8e8; font-size: 13px; font-family: 'Poppins', sans-serif;
    }
    .sb-search input::placeholder { color: #8a8a8a; }

    /* Track Order */
    .sb-track {
        display: flex; align-items: center; justify-content: space-between; gap: 8px;
        padding: 12px 14px; border-radius: 12px; font-weight: 700; font-size: 14px;
        color: #1a1a1a; background: var(--gold-gradient);
        box-shadow: 0 4px 14px rgba(229,200,71,.4);
    }
    .sb-track-l { display: flex; align-items: center; gap: 8px; }

    /* Promo banner */
    .sidebar-promo {
        display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px;
        border-radius: 14px; color: #fff;
        background: linear-gradient(135deg, #0F0F12, #1c3b30); border: 1px solid var(--border-color);
    }
    .sp-icon {
        width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
        background: var(--gold-gradient); color: #1a1a1a;
        display: flex; align-items: center; justify-content: center; font-size: 18px;
    }
    .sp-txt { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
    .sp-txt strong { font-size: 14px; }
    .sp-txt span { font-size: 11px; color: var(--text-muted); }
    .sidebar-promo > i { color: var(--gold-primary); }

    /* Social + support */
    .sidebar-social {
        display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
        margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-color);
    }
    .sbs-btn {
        width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
        display: flex; align-items: center; justify-content: center; font-size: 16px;
        background: rgba(229,200,71,.12); color: #E5C847; border: 1px solid var(--border-color);
    }
    .sbs-wa { background: #25D366; color: #fff; border-color: #25D366; }
    .sbs-call {
        flex: 1; min-width: 120px; display: flex; align-items: center; justify-content: center; gap: 8px;
        height: 40px; border-radius: 22px; font-weight: 700; font-size: 13px;
        background: var(--gold-gradient); color: #1a1a1a;
    }

    /* Force FA faces (Bengali-font plugin forces inherit on .fas/.fab) */
    .sidebar-top i::before, .sidebar-promo i::before, .sidebar-social i::before {
        font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important;
    }
    .sidebar-social .fab::before {
        font-family: "Font Awesome 6 Brands" !important; font-weight: 400 !important;
    }
}

/* =========================================
   DESKTOP HEADER: big inline search + Categories MEGA MENU
   (mobile keeps the icon-toggle search + off-canvas below)
   ========================================= */
/* Mega panel + Categories trigger are desktop-only; the inline search bar is
   shared by desktop AND mobile (mobile shows it as a full-width second row). */
.mega-panel { display: none; }
.mega-trigger { display: none; }

/* --- Inline search field (shared) --- */
.hdr-dsearch {
    position: relative; display: flex; align-items: center;
    flex: 1 1 auto; height: 44px;
    background: #1c1c20; border: 1.5px solid var(--border-color);
    border-radius: 12px; padding: 0 6px 0 40px;
    transition: border-color .2s, box-shadow .2s;
}
.hdr-dsearch:focus-within { border-color: #E5C847; box-shadow: 0 0 0 3px rgba(229,200,71,.2); }
.hdr-dsearch-icon { position: absolute; left: 14px; color: #E5C847; font-size: 15px; pointer-events: none; }
/* The Bengali-font plugin forces `font-family: inherit !important` on every
   .fas element, which makes the glyph render as tofu (□). It only targets the
   element, so style the ::before pseudo directly to win back the FA face. */
.hdr-dsearch-icon::before { font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; }
.hdr-dsearch input {
    flex: 1 1 auto; height: 100%; min-width: 0; border: none; background: transparent;
    color: #e8e8e8; font-size: 14px; outline: none; font-family: 'Poppins', sans-serif;
}
.hdr-dsearch input::placeholder { color: #8a8a8a; }
.hdr-dsearch-btn {
    flex-shrink: 0; height: 34px; padding: 0 18px; border: none; border-radius: 9px;
    background: var(--gold-gradient); color: #1a1a1a; font-weight: 700; font-size: 13px;
    cursor: pointer; font-family: 'Poppins', sans-serif; transition: filter .2s;
}
.hdr-dsearch-btn:hover { filter: brightness(1.06); }

/* --- Instant-search results dropdown (shared) --- */
.dsearch-results {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: #151518; border: 1px solid var(--border-color); border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,.55);
    max-height: 70vh; overflow-y: auto; padding: 8px; z-index: 1650;
}
.dsearch-results.open { display: block; }
body.light-mode .dsearch-results { background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.15); }
body.light-mode .hdr-dsearch { background: #f4f4f5; }
body.light-mode .hdr-dsearch input { color: #222; }

@media (min-width: 993px) {
    :root { --header-height: 64px; }
    html body { padding-top: 64px; }
    .site-header { height: 64px; padding: 0 22px; gap: 22px; }

    /* Desktop uses the inline bar — hide the mobile search icon toggle */
    .hdr-search-wrap { display: none; }

    .header-left  { flex: 0 0 auto; }
    .header-right { flex: 0 0 auto; }
    .header-center {
        display: flex; align-items: center; gap: 14px;
        flex: 1 1 auto; max-width: 780px; margin: 0 auto;
    }

    /* --- Categories trigger --- */
    .mega-trigger {
        display: flex; align-items: center; gap: 8px;
        height: 42px; padding: 0 16px;
        border: none; border-radius: 10px;
        background: var(--gold-gradient); color: #1a1a1a;
        font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14px;
        white-space: nowrap; cursor: pointer;
        box-shadow: 0 3px 12px rgba(229,200,71,0.35);
        transition: filter .2s, transform .2s;
    }
    .mega-trigger:hover { filter: brightness(1.06); transform: translateY(-1px); }
    .mega-trigger .mega-caret { font-size: 11px; transition: transform .25s; }
    .mega-trigger.open .mega-caret { transform: rotate(180deg); }

    /* --- MEGA PANEL --- */
    .mega-panel {
        position: fixed; top: var(--header-height); left: 0; right: 0;
        background: #131317; border-bottom: 2px solid #E5C847;
        box-shadow: 0 24px 50px rgba(0,0,0,.55); z-index: 1500;
    }
    body.admin-bar .mega-panel { top: calc(var(--header-height) + 32px); }
    .mega-panel.open { display: block; animation: megaIn .2s ease; }
    /* Slide only (no opacity fade) so the panel is opaque the whole time and
       page content never bleeds through during the entrance. */
    @keyframes megaIn { from { transform: translateY(-10px); } to { transform: none; } }

    .mega-inner {
        display: grid; grid-template-columns: 1fr 260px; gap: 26px;
        max-width: 1280px; margin: 0 auto; padding: 24px 28px;
    }
    .mega-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 26px; align-content: start; }

    .mega-col-head {
        display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
        color: #fff; font-weight: 700; font-size: 14px; transition: color .2s;
    }
    .mega-col-head:hover { color: #fcf6ba; }
    .mega-thumb {
        width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; overflow: hidden;
        background: rgba(229,200,71,.12); border: 1px solid var(--border-color);
        display: flex; align-items: center; justify-content: center;
    }
    .mega-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .mega-thumb i { color: #E5C847; font-size: 16px; }
    .mega-col-title { line-height: 1.2; }

    .mega-sub { list-style: none; margin: 0 0 0 2px; padding: 0; }
    .mega-sub li { margin: 5px 0; }
    .mega-sub a { color: #b9b9b9; font-size: 13px; transition: color .2s, padding-left .2s; }
    .mega-sub a:hover { color: #E5C847; padding-left: 4px; }
    .mega-seeall { color: #E5C847 !important; font-weight: 600; }
    .mega-seeall i { font-size: 10px; }

    .mega-featured {
        display: flex; flex-direction: column; gap: 8px; padding: 16px; position: relative;
        background: linear-gradient(160deg, rgba(229,200,71,.16), rgba(229,200,71,.03));
        border: 1px solid var(--border-color); border-radius: 14px;
        transition: transform .2s, box-shadow .2s;
    }
    .mega-featured:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(229,200,71,.22); }
    .mega-feat-tag {
        position: absolute; top: 12px; left: 12px; z-index: 1;
        background: var(--gold-gradient); color: #1a1a1a;
        font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
    }
    .mega-featured img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; }
    .mega-feat-name  { color: #fff; font-size: 13px; font-weight: 600; line-height: 1.35; }
    .mega-feat-price { color: #E5C847; font-weight: 700; font-size: 15px; }
    .mega-feat-price del { color: #888; font-weight: 400; font-size: 12px; margin-right: 4px; }
    .mega-feat-btn {
        margin-top: 4px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
        background: var(--gold-gradient); color: #1a1a1a; font-weight: 700; font-size: 12px;
        padding: 7px 14px; border-radius: 8px;
    }

    .mega-footer { border-top: 1px solid var(--border-color); text-align: center; padding: 12px; }
    .mega-footer a { color: #E5C847; font-weight: 600; font-size: 13px; }
    .mega-footer a:hover { color: #fcf6ba; }

    /* Mega panel stays dark in both themes to match the always-dark header
       and off-canvas sidebar (theme is locked to light site-wide). */

    /* Admin-bar: keep the sticky sidebar under the taller (64px) header */
    body.admin-bar .nav-sidebar { top: 96px; height: calc(100vh - 96px); }
}

/* Narrower desktops: collapse the mega grid so columns never crush */
@media (min-width: 993px) and (max-width: 1150px) {
    .mega-cats { grid-template-columns: repeat(3, 1fr); }
    .header-center { max-width: 620px; }
}

/* ==== SN OFF-CANVAS NAV BUTTONS — uniform premium card + icon tile + chevron (ported from trustfly, gold) ==== */
@media (max-width: 992px) {
    /* Main nav items — elevated card + rounded icon tile + chevron affordance */
    .nav-sidebar .sidebar-nav > li > a {
        position: relative;
        display: flex; align-items: center; gap: 12px;
        padding: 10px 40px 10px 12px; border-radius: 14px;
        border: 1px solid var(--border-color);
        background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
        margin-bottom: 8px; color: #ededed; font-weight: 600; font-size: 14px;
        transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
    }
    .nav-sidebar .sidebar-nav > li > a > i:first-child {
        min-width: 38px; width: 38px; height: 38px; flex-shrink: 0;
        display: flex; align-items: center; justify-content: center;
        border-radius: 11px; background: rgba(229,200,71,.12);
        color: var(--gold-primary);
        font-size: 16px; text-align: center;
    }
    /* CSS-drawn right chevron (font-independent) — skip the Categories accordion */
    .nav-sidebar .sidebar-nav > li:not(.has-sub) > a::after {
        content: ''; position: absolute; right: 16px; top: 50%;
        width: 7px; height: 7px;
        border-right: 2px solid currentColor; border-top: 2px solid currentColor;
        transform: translateY(-50%) rotate(45deg); opacity: .35;
    }
    .nav-sidebar .sidebar-nav > li > a:hover,
    .nav-sidebar .sidebar-nav > li > a.active-nav {
        border-color: transparent; background: var(--gold-gradient); color: #1a1a1a;
        box-shadow: 0 6px 18px rgba(229,200,71,.4); transform: translateX(3px);
    }
    .nav-sidebar .sidebar-nav > li > a:hover > i:first-child,
    .nav-sidebar .sidebar-nav > li > a.active-nav > i:first-child { background: rgba(0,0,0,.18); color: #1a1a1a; }
    .nav-sidebar .sidebar-nav > li > a:hover::after,
    .nav-sidebar .sidebar-nav > li > a.active-nav::after { opacity: .75; }
}

/* =========================================
   SHOP + CATEGORY ARCHIVE — premium gold header/toolbar (matches site header)
   ========================================= */
body.woocommerce-shop .woo-content > .page-title,
body.tax-product_cat .woo-content > .page-title,
body.post-type-archive-product .woo-content > .page-title,
body.woocommerce-shop .woo-content > .woocommerce-products-header,
body.tax-product_cat .woo-content > .woocommerce-products-header {
    position: relative;
    margin: 16px 0 14px;
    padding: 20px 22px 20px 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid rgba(229,200,71,.28);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    font-size: clamp(22px, 3.4vw, 32px);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    overflow: hidden;
}
/* gold gradient text for the title itself */
body.woocommerce-shop .woo-content > .page-title,
body.tax-product_cat .woo-content > .page-title,
body.post-type-archive-product .woo-content > .page-title {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}
body.woocommerce-shop .woo-content > .page-title span,
body.tax-product_cat .woo-content > .page-title span { color: inherit; }
/* left gold accent bar */
body.woocommerce-shop .woo-content > .page-title::before,
body.tax-product_cat .woo-content > .page-title::before,
body.post-type-archive-product .woo-content > .page-title::before {
    content: '';
    position: absolute; left: 0; top: 14px; bottom: 14px; width: 7px;
    border-radius: 0 6px 6px 0;
    background: var(--gold-gradient, linear-gradient(135deg,#bf953f,#fcf6ba,#b38728,#fbf5b7,#aa771c));
}
/* subtle radial gold glow in the corner */
body.woocommerce-shop .woo-content > .page-title::after,
body.tax-product_cat .woo-content > .page-title::after,
body.post-type-archive-product .woo-content > .page-title::after {
    content: '';
    position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(229,200,71,.16), transparent 70%);
    pointer-events: none;
}

/* Result count + ordering toolbar */
body.woocommerce .woo-content .woocommerce-result-count {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0 0 16px; padding: 8px 16px;
    background: rgba(229,200,71,.10);
    border: 1px solid rgba(229,200,71,.28);
    border-radius: 999px;
    font-size: 13px; font-weight: 600; color: #6b5a1e;
}
body.light-mode.woocommerce .woo-content .woocommerce-result-count { color: #8a6a1e; }
body.woocommerce .woo-content .woocommerce-result-count::before {
    content: '\f07a'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    color: var(--gold-primary, #b38728); font-size: 12px;
}

body.woocommerce .woo-content .woocommerce-ordering select.orderby,
body.woocommerce .woo-content .woocommerce-ordering .orderby {
    appearance: none; -webkit-appearance: none;
    padding: 10px 40px 10px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(229,200,71,.45);
    background: #1a1a1a url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23E5C847' stroke-width='2' stroke-linecap='round'/></svg>") no-repeat right 14px center;
    color: #f0e6c8; font-weight: 600; font-size: 13px; cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
body.woocommerce .woo-content .woocommerce-ordering select.orderby:focus {
    outline: none; border-color: var(--gold-primary, #E5C847);
    box-shadow: 0 0 0 3px rgba(229,200,71,.22);
}
body.woocommerce .woo-content .woocommerce-ordering select.orderby option { background: #1a1a1a; color: #f0e6c8; }

/* Category description card */
body.tax-product_cat .woo-content .term-description {
    margin: 0 0 18px; padding: 14px 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ececec;
    border-left: 4px solid var(--gold-primary, #b38728);
    color: #444; font-size: 14px; line-height: 1.7;
}

@media (max-width: 992px) {
    body.woocommerce-shop .woo-content > .page-title,
    body.tax-product_cat .woo-content > .page-title,
    body.post-type-archive-product .woo-content > .page-title {
        margin: 12px 12px 12px; padding: 16px 16px 16px 24px; border-radius: 14px;
    }
    body.woocommerce .woo-content .woocommerce-result-count { margin-left: 12px; }
    body.woocommerce .woo-content .woocommerce-ordering { margin: 0 12px 12px; }
}

/* =========================================
   MY ACCOUNT — premium gold login panel (overrides the a-tracker plugin's green)
   ========================================= */
body.woocommerce-account #edu-lm-panel {
    max-width: 440px; margin: 24px auto 28px;
    background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%) !important;
    border: 1px solid rgba(229,200,71,.4) !important;
    border-top: 4px solid transparent !important;
    border-image: var(--gold-gradient, linear-gradient(135deg,#bf953f,#fcf6ba,#b38728)) 1;
    border-radius: 18px !important;
    box-shadow: 0 16px 40px rgba(179,135,40,.14) !important;
    padding: 30px 26px !important;
}
body.woocommerce-account #edu-lm-panel h3 { color: #1a1a1a; font-weight: 800; }
body.woocommerce-account #edu-lm-panel input[type=tel],
body.woocommerce-account #edu-lm-panel input[type=password],
body.woocommerce-account #edu-lm-panel input[type=text] {
    border: 1.5px solid #e3d9b3 !important; border-radius: 12px !important;
    transition: border-color .2s, box-shadow .2s;
}
body.woocommerce-account #edu-lm-panel input:focus {
    outline: none; border-color: var(--gold-primary, #b38728) !important;
    box-shadow: 0 0 0 3px rgba(229,200,71,.22) !important;
}
body.woocommerce-account #edu-lm-panel .edu-lm-btn {
    background: var(--gold-gradient, linear-gradient(135deg,#bf953f,#fcf6ba,#b38728,#fbf5b7,#aa771c)) !important;
    color: #1a1a1a !important; font-weight: 800 !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(179,135,40,.35);
    transition: transform .15s, box-shadow .15s;
}
body.woocommerce-account #edu-lm-panel .edu-lm-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(179,135,40,.45); }
body.woocommerce-account #edu-lm-panel .edu-lm-link { color: #a07d1e !important; }

/* Standard WooCommerce account (logged-in) — gold accents on tabs + buttons */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    color: var(--gold-primary, #b38728);
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active {
    border-left: 3px solid var(--gold-primary, #b38728);
}
body.woocommerce-account .woocommerce-MyAccount-content a.button,
body.woocommerce-account .woocommerce-MyAccount-content button {
    background: var(--gold-gradient, linear-gradient(135deg,#bf953f,#b38728)) !important;
    color: #1a1a1a !important; border: none !important; font-weight: 700;
}
