/*
Theme Name: fullzexpert
Theme URI: https://fullzexpert.com
Description: Premium professional marketplace theme
Author: fullzexpert
Version: 1.0.0
Text Domain: fullzexpert
Template: storefront
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */

:root {
    /* Surfaces */
    --bg:        #f4f6f9;
    --white:     #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f1f5f9;

    /* Borders */
    --border:    #e2e8f0;
    --border-hi: #cbd5e1;

    /* Text */
    --text:      #0f172a;
    --text-dim:  #475569;
    --text-faint:#94a3b8;

    /* Brand */
    --green:     #059669;
    --green-hi:  #047857;
    --green-bg:  #ecfdf5;
    --green-mid: #a7f3d0;

    /* State */
    --danger:    #dc2626;
    --danger-bg: #fef2f2;
    --warn:      #d97706;
    --warn-bg:   #fffbeb;
    --blue:      #2563eb;
    --blue-bg:   #eff6ff;

    /* Geometry */
    --r-sm:  5px;
    --r:     9px;
    --r-lg:  14px;
    --r-xl:  20px;

    /* Motion */
    --t: 150ms ease;
}

/* ============================================
   DARK MODE TOKENS
   ============================================ */

[data-theme="dark"] {
    --bg:        #0f172a;
    --white:     #1e293b;
    --surface-2: #0f172a;
    --surface-3: #334155;

    --border:    #334155;
    --border-hi: #475569;

    --text:      #f1f5f9;
    --text-dim:  #cbd5e1;
    --text-faint:#64748b;

    --green:     #10b981;
    --green-hi:  #059669;
    --green-bg:  rgba(16,185,129,0.12);
    --green-mid: #34d399;

    --danger:    #ef4444;
    --danger-bg: rgba(239,68,68,0.12);
    --warn:      #f59e0b;
    --warn-bg:   rgba(245,158,11,0.12);
    --blue:      #60a5fa;
    --blue-bg:   rgba(96,165,250,0.12);
}

[data-theme="dark"] body { background: var(--bg); }

[data-theme="dark"] .xe-header {
    background: var(--white);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 0 var(--border);
}

[data-theme="dark"] .xe-brand-mark {
    background: var(--green);
}

[data-theme="dark"] .xe-search {
    background: var(--surface-3);
    border-color: var(--border);
}

[data-theme="dark"] .xe-search-input { color: var(--text); background: transparent; }
[data-theme="dark"] .xe-search-input::placeholder { color: var(--text-faint); }
[data-theme="dark"] .xe-search-results { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .xe-search-item { border-bottom-color: var(--border); }
[data-theme="dark"] .xe-search-item:hover { background: var(--surface-3); }

[data-theme="dark"] .xe-cart-btn {
    background: var(--white);
    border-color: var(--border);
    color: var(--text-dim);
}
[data-theme="dark"] .xe-cart-btn:hover { background: var(--surface-3); border-color: var(--border-hi); }

[data-theme="dark"] .xe-account-btn {
    background: var(--white);
    border-color: var(--border);
    color: var(--text-dim);
}
[data-theme="dark"] .xe-account-btn:hover { background: var(--surface-3); border-color: var(--border-hi); }

[data-theme="dark"] .xe-account-dropdown {
    background: var(--white);
    border-color: var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
[data-theme="dark"] .xe-account-item:hover { background: var(--surface-3); }
[data-theme="dark"] .xe-account-divider { background: var(--border); }

[data-theme="dark"] .xe-mobile-search-btn,
[data-theme="dark"] .xe-mobile-menu-btn {
    background: var(--white);
    border-color: var(--border);
    color: var(--text-dim);
}

[data-theme="dark"] .xe-search-overlay { background: rgba(0,0,0,0.65); }
[data-theme="dark"] .xe-search-overlay-bar { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .xe-search-overlay-input { color: var(--text); }
[data-theme="dark"] .xe-search-overlay-close { background: var(--surface-3); border-color: var(--border); }

[data-theme="dark"] .xe-mobile-overlay { background: rgba(0,0,0,0.65); }
[data-theme="dark"] .xe-mobile-nav { background: var(--white); border-left-color: var(--border); }
[data-theme="dark"] .xe-mobile-nav-header { border-bottom-color: var(--border); }
[data-theme="dark"] .xe-mobile-user { border-bottom-color: var(--border); }
[data-theme="dark"] .xe-mobile-nav-link:hover { background: var(--surface-3); }
[data-theme="dark"] .xe-mobile-nav-link.active { background: var(--green-bg); }
[data-theme="dark"] .xe-mobile-nav-footer { border-top-color: var(--border); }
[data-theme="dark"] .xe-mobile-nav-close { background: var(--surface-3); border-color: var(--border); }

[data-theme="dark"] .xe-nav-strip { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .xe-nav-item:hover { background: var(--surface-3); }
[data-theme="dark"] .xe-nav-item.active { background: var(--green); color: #fff; }

[data-theme="dark"] .xe-stats { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .xe-stat { border-right-color: var(--border); border-bottom-color: var(--border); }

[data-theme="dark"] .xe-card { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .xe-card-head { border-bottom-color: var(--border); }
[data-theme="dark"] .xe-card-foot { border-top-color: var(--border); }
[data-theme="dark"] .xe-card-head-actions .xe-btn-outline { border-color: var(--border); }

[data-theme="dark"] .xe-product-row { border-bottom-color: var(--border); }
[data-theme="dark"] .xe-product-row:hover { background: var(--surface-3); }
[data-theme="dark"] .xe-product-icon { background: var(--surface-3); border-color: var(--border); }

[data-theme="dark"] .xe-table th { background: var(--surface-3); border-bottom-color: var(--border); }
[data-theme="dark"] .xe-table td { border-bottom-color: var(--border); }
[data-theme="dark"] .xe-table tr:hover td { background: rgba(255,255,255,0.03); }

[data-theme="dark"] .xe-form-group label { color: var(--text-dim); }
[data-theme="dark"] .xe-input, [data-theme="dark"] .xe-select, [data-theme="dark"] .xe-textarea {
    background: var(--surface-3);
    border-color: var(--border);
    color: var(--text);
}
[data-theme="dark"] .xe-input::placeholder, [data-theme="dark"] .xe-textarea::placeholder { color: var(--text-faint); }
[data-theme="dark"] .xe-input:focus, [data-theme="dark"] .xe-select:focus, [data-theme="dark"] .xe-textarea:focus {
    border-color: var(--green);
    background: var(--white);
}

[data-theme="dark"] .xe-modal { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .xe-modal-head { border-bottom-color: var(--border); }
[data-theme="dark"] .xe-modal-close { background: var(--surface-3); border-color: var(--border); }
[data-theme="dark"] .xe-modal-bg { background: rgba(0,0,0,0.65); }
[data-theme="dark"] .xe-modal-foot { border-top-color: var(--border); }

[data-theme="dark"] .xe-footer { background: var(--white); border-top-color: var(--border); }

[data-theme="dark"] .xe-toast { background: var(--surface-3); color: var(--text); }

[data-theme="dark"] .xe-btn-outline { border-color: var(--border); color: var(--text-dim); }
[data-theme="dark"] .xe-btn-outline:hover { border-color: var(--border-hi); background: var(--surface-3); }

/* WooCommerce dark overrides */
[data-theme="dark"] .woocommerce-message,
[data-theme="dark"] .woocommerce-info { background: var(--green-bg) !important; border-color: var(--green) !important; color: var(--text) !important; }
[data-theme="dark"] .woocommerce-error { background: var(--danger-bg) !important; color: var(--text) !important; }
[data-theme="dark"] .woocommerce form .form-row input.input-text,
[data-theme="dark"] .woocommerce form .form-row select,
[data-theme="dark"] .woocommerce form .form-row textarea {
    background: var(--surface-3) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}
[data-theme="dark"] .woocommerce table.shop_table {
    background: var(--white) !important;
    border-color: var(--border) !important;
}
[data-theme="dark"] .woocommerce table.shop_table th { background: var(--surface-3) !important; border-bottom-color: var(--border) !important; }
[data-theme="dark"] .woocommerce table.shop_table td { border-bottom-color: var(--border) !important; }
[data-theme="dark"] .woocommerce ul.products li.product { background: var(--white) !important; border-color: var(--border) !important; }
[data-theme="dark"] .woocommerce-account .woocommerce-MyAccount-navigation { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover { background: var(--surface-3); }
[data-theme="dark"] .woocommerce-account .woocommerce-MyAccount-content { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .woocommerce nav.woocommerce-pagination ul li a,
[data-theme="dark"] .woocommerce nav.woocommerce-pagination ul li span {
    background: var(--white) !important; border-color: var(--border) !important; color: var(--text-dim) !important;
}
[data-theme="dark"] .woocommerce-checkout #payment { background: var(--surface-3) !important; border-color: var(--border) !important; }

/* Sections and blocks */
[data-theme="dark"] .xe-section-card { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .xe-info-box, [data-theme="dark"] .xe-warn-box, [data-theme="dark"] .xe-alert-box { border-color: var(--border); }
[data-theme="dark"] .xe-amount-preset { background: var(--surface-3); border-color: var(--border); color: var(--text-dim); }
[data-theme="dark"] .xe-amount-preset.selected { border-color: var(--green); background: var(--green-bg); color: var(--green); }
[data-theme="dark"] .xe-payment-method { background: var(--surface-3); border-color: var(--border); }
[data-theme="dark"] .xe-payment-method:hover { border-color: var(--border-hi); background: var(--white); }
[data-theme="dark"] .xe-payment-method.selected { border-color: var(--green); background: var(--green-bg); }
[data-theme="dark"] .xe-modal-bg { background: rgba(0,0,0,0.65); }

/* Dark mode toggle button */
.xe-theme-toggle {
    width: 38px;
    height: 38px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 15px;
    cursor: pointer;
    transition: border-color var(--t), color var(--t), background var(--t);
    font-family: inherit;
    flex-shrink: 0;
}

.xe-theme-toggle:hover {
    border-color: var(--border-hi);
    color: var(--text);
    background: var(--bg);
}

[data-theme="dark"] .xe-theme-toggle {
    background: var(--white);
    border-color: var(--border);
    color: var(--text-dim);
}

/* ============================================
   RESET
   ============================================ */

*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: none; }

img { display: block; max-width: 100%; }

h1,h2,h3,h4,h5,h6 {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.3px;
    color: var(--text);
}

/* ============================================
   KILL STOREFRONT
   ============================================ */

.site-header,
.storefront-primary-navigation,
.site-branding,
.storefront-handheld-footer-bar,
.storefront-breadcrumb,
.woocommerce-breadcrumb,
.storefront-sorting-wrapper,
.woocommerce-result-count,
.woocommerce-ordering {
    display: none !important;
}

.site-content { min-height: 100vh; padding: 0; }

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 3px; }

/* ============================================
   HEADER
   ============================================ */

.xe-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.xe-header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
    height: 60px;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: center;
    gap: 20px;
}

/* Brand */
.xe-brand {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.xe-brand-mark {
    width: 28px;
    height: 28px;
    background: var(--green);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

/* CSS-only "X" mark — no img or icon font needed */
.xe-brand-mark::before,
.xe-brand-mark::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transform-origin: center;
}

.xe-brand-mark::before { transform: rotate(45deg); }
.xe-brand-mark::after  { transform: rotate(-45deg); }

.xe-brand-mark i {
    color: #fff;
    font-size: 13px;
}

.xe-brand span,
.xe-brand-name { color: var(--green); }

/* Search */
.xe-search {
    position: relative;
}

.xe-search input {
    width: 100%;
    height: 38px;
    padding: 0 14px 0 38px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-size: 13.5px;
    color: var(--text);
    font-family: inherit;
    transition: border-color var(--t), background var(--t);
}

.xe-search input:focus {
    outline: none;
    border-color: var(--green);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(5,150,105,0.1);
}

.xe-search input::placeholder { color: var(--text-faint); }

.xe-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    font-size: 13px;
    pointer-events: none;
}

/* Search results dropdown */
.xe-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: 0 8px 32px rgba(15,23,42,0.1);
    max-height: 380px;
    overflow-y: auto;
    z-index: 100;
}

.xe-search-results.open { display: block; }

.xe-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--text);
    transition: background var(--t);
    cursor: pointer;
}

.xe-result-item:hover { background: var(--bg); }

.xe-result-img {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    object-fit: cover;
    background: var(--surface-3);
    border: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xe-result-img i { color: var(--text-faint); font-size: 14px; }

.xe-result-name {
    font-size: 13.5px;
    font-weight: 500;
    flex: 1;
}

.xe-result-cat {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 1px;
}

.xe-result-price {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--green);
    flex-shrink: 0;
}

.xe-search-empty,
.xe-search-loading {
    padding: 20px 16px;
    text-align: center;
    color: var(--text-faint);
    font-size: 13px;
}

/* Header Actions */
.xe-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.xe-balance {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--green);
    background: var(--green-bg);
    white-space: nowrap;
    pointer-events: none;
    cursor: default;
}

.xe-balance i { font-size: 12px; color: var(--green); }

.xe-balance *,
.xe-balance a {
    color: var(--green) !important;
    text-decoration: none !important;
    pointer-events: none !important;
}

.xe-icon-btn {
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 15px;
    cursor: pointer;
    position: relative;
    transition: border-color var(--t), color var(--t), background var(--t);
    text-decoration: none;
}

.xe-icon-btn:hover {
    border-color: var(--border-hi);
    color: var(--text);
    background: var(--bg);
}

.xe-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    background: var(--green);
    color: #fff;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--white);
}

.xe-login-btn {
    height: 36px;
    padding: 0 16px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--r);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background var(--t);
    text-decoration: none;
    white-space: nowrap;
}

.xe-login-btn:hover { background: var(--green-hi); color: #fff; }

.xe-mob-search,
.xe-mob-menu {
    display: none;
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 15px;
    cursor: pointer;
    transition: border-color var(--t);
}

.xe-mob-search:hover,
.xe-mob-menu:hover { border-color: var(--border-hi); }

/* ============================================
   MOBILE SEARCH OVERLAY
   ============================================ */

.xe-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    z-index: 300;
    gap: 10px;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.xe-search-overlay.open { display: flex; }
.xe-search-overlay .xe-search { flex: 1; }

.xe-overlay-close {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 16px;
    cursor: pointer;
}

/* ============================================
   MOBILE NAV DRAWER
   ============================================ */

.xe-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 400;
}

.xe-drawer.open { display: block; }

.xe-drawer-bg {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.4);
}

.xe-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 270px;
    height: 100%;
    background: var(--white);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
}

.xe-drawer.open .xe-drawer-panel { transform: translateX(0); }

.xe-drawer-head {
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xe-drawer-head .xe-brand { font-size: 16px; }

.xe-drawer-close {
    width: 32px;
    height: 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 14px;
    cursor: pointer;
}

.xe-drawer-user {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.xe-drawer-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}

.xe-drawer-user-bal {
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
}

.xe-drawer-links {
    padding: 10px 10px;
    flex: 1;
}

.xe-drawer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-dim);
    transition: background var(--t), color var(--t);
    margin-bottom: 2px;
}

.xe-drawer-links a:hover { background: var(--bg); color: var(--text); }

.xe-drawer-links a.current {
    background: var(--green-bg);
    color: var(--green);
    font-weight: 600;
}

.xe-drawer-links a i { width: 16px; text-align: center; font-size: 14px; }

.xe-drawer-links a.danger { color: var(--danger); }
.xe-drawer-links a.danger:hover { background: var(--danger-bg); }

/* ============================================
   TOAST
   ============================================ */

.xe-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(60px);
    background: var(--text);
    color: #fff;
    border-radius: var(--r-lg);
    padding: 12px 22px;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 8px 28px rgba(15,23,42,0.2);
    z-index: 1000;
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
}

.xe-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.xe-toast.success i { color: var(--green-mid); }
.xe-toast.error i { color: #fca5a5; }

/* ============================================
   PAGE LAYOUT
   ============================================ */

.xe-main {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 28px 32px;
}

/* ============================================
   PAGE HEADER (welcome strip)
   ============================================ */

.xe-page-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.xe-page-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.xe-page-sub {
    font-size: 13.5px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* ============================================
   QUICK NAV
   ============================================ */

.xe-nav-strip {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.xe-nav-strip::-webkit-scrollbar { display: none; }

.xe-nav-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: var(--r);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    transition: background var(--t), color var(--t);
    white-space: nowrap;
}

.xe-nav-item i { font-size: 13px; width: 14px; text-align: center; }

.xe-nav-item:hover {
    background: var(--bg);
    color: var(--text);
}

.xe-nav-item.active {
    background: var(--green);
    color: #fff;
    font-weight: 600;
}

.xe-nav-item.active i { color: #fff; }

/* ============================================
   STATS STRIP
   ============================================ */

.xe-stats {
    display: flex;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: 24px;
    overflow: hidden;
}

.xe-stat {
    flex: 1;
    padding: 22px 24px;
    border-right: 1px solid var(--border);
    min-width: 0;
}

.xe-stat:last-child { border-right: none; }

.xe-stat-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-faint);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.xe-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 10px;
}

.xe-stat-value.green { color: var(--green) !important; }

.xe-stat-value *,
.xe-stat-value a {
    color: inherit !important;
    text-decoration: none !important;
    pointer-events: none !important;
}

.xe-stat-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-faint);
    transition: color var(--t);
}

.xe-stat-link:hover { color: var(--green); }

/* ============================================
   SECTION CARD
   ============================================ */

.xe-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    margin-bottom: 20px;
    overflow: hidden;
}

.xe-section-head {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.xe-section-title {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.xe-section-title i { color: var(--green); font-size: 13px; }

.xe-section-body { padding: 0; }
.xe-section-body-pad { padding: 22px; }

/* ============================================
   PRODUCT ROWS (data table style)
   ============================================ */

.xe-products {
    width: 100%;
}

.xe-product-row {
    display: grid;
    grid-template-columns: 44px 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 13px 22px;
    border-bottom: 1px solid var(--border);
    transition: background var(--t);
}

.xe-product-row:last-child { border-bottom: none; }
.xe-product-row:hover { background: var(--bg); }

.xe-product-img {
    width: 44px;
    height: 44px;
    border-radius: var(--r);
    object-fit: cover;
    background: var(--surface-3);
    border: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xe-product-img i { color: var(--text-faint); font-size: 16px; }

.xe-product-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xe-product-desc {
    font-size: 12px;
    color: var(--text-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xe-product-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--green);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 18px;
    border-radius: var(--r);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t);
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
}

.btn i { font-size: 13px; }

.btn-primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.btn-primary:hover {
    background: var(--green-hi);
    border-color: var(--green-hi);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-dim);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--border-hi);
    color: var(--text);
    background: var(--bg);
}

.btn-ghost {
    background: var(--bg);
    color: var(--text-dim);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: var(--surface-3);
    border-color: var(--border-hi);
    color: var(--text);
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border-color: rgba(220,38,38,0.25);
}

.btn-danger:hover {
    background: var(--danger-bg);
    border-color: var(--danger);
}

.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn-lg { height: 44px; padding: 0 24px; font-size: 14.5px; border-radius: var(--r-lg); }

/* ============================================
   FORMS
   ============================================ */

.xe-form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 28px;
    margin-bottom: 20px;
}

.xe-form-row { margin-bottom: 18px; }
.xe-form-row:last-of-type { margin-bottom: 0; }

.xe-form-row label,
.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 7px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea,
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
    transition: border-color var(--t), box-shadow var(--t);
    line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
}

input::placeholder,
textarea::placeholder { color: var(--text-faint); }

textarea, .form-textarea {
    min-height: 110px;
    resize: vertical;
}

select, .form-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2394a3b8' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* ============================================
   TABLES
   ============================================ */

.xe-table-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    margin-bottom: 20px;
}

.xe-table-head {
    padding: 15px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.xe-table-title {
    font-size: 14px;
    font-weight: 700;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 11px 18px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-faint);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.2px;
}

td {
    padding: 13px 18px;
    font-size: 13.5px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* ============================================
   BADGES / STATUS
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
}

.badge-green  { background: var(--green-bg); color: var(--green); }
.badge-yellow { background: var(--warn-bg); color: var(--warn); }
.badge-red    { background: var(--danger-bg); color: var(--danger); }
.badge-gray   { background: var(--surface-3); color: var(--text-faint); border: 1px solid var(--border); }
.badge-blue   { background: var(--blue-bg); color: var(--blue); }

/* ============================================
   PAYMENT METHODS
   ============================================ */

.xe-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.xe-payment-opt {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--t), background var(--t);
}

.xe-payment-opt:hover { border-color: var(--border-hi); background: var(--white); }

.xe-payment-opt.selected {
    border-color: var(--green);
    background: var(--green-bg);
}

.xe-payment-opt i {
    font-size: 22px;
    color: var(--green);
    margin-bottom: 7px;
    display: block;
}

.xe-payment-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
}

.xe-payment-opt.selected .xe-payment-name { color: var(--green); }

/* ============================================
   AMOUNT PRESETS
   ============================================ */

.xe-amount-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.xe-amount-preset {
    padding: 7px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    cursor: pointer;
    transition: all var(--t);
}

.xe-amount-preset:hover { border-color: var(--green); color: var(--green); }
.xe-amount-preset.selected { background: var(--green); border-color: var(--green); color: #fff; }

/* ============================================
   INFO BOX
   ============================================ */

.xe-info {
    background: var(--green-bg);
    border: 1px solid var(--green-mid);
    border-left: 3px solid var(--green);
    border-radius: var(--r);
    padding: 14px 18px;
    display: flex;
    gap: 11px;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 18px;
}

.xe-info i { color: var(--green); margin-top: 2px; flex-shrink: 0; }

.xe-warn {
    background: var(--warn-bg);
    border: 1px solid rgba(217,119,6,0.3);
    border-left: 3px solid var(--warn);
    border-radius: var(--r);
    padding: 14px 18px;
    display: flex;
    gap: 11px;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 18px;
}

.xe-warn i { color: var(--warn); margin-top: 2px; flex-shrink: 0; }

.xe-alert {
    background: var(--danger-bg);
    border: 1px solid rgba(220,38,38,0.2);
    border-left: 3px solid var(--danger);
    border-radius: var(--r);
    padding: 14px 18px;
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 20px;
}

.xe-alert i { color: var(--danger); margin-top: 2px; flex-shrink: 0; }

.xe-alert-dismiss {
    background: none;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    transition: color var(--t);
}

.xe-alert-dismiss:hover { color: var(--danger); }

/* ============================================
   MODALS
   ============================================ */

.xe-modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.xe-modal-bg.open { display: flex; }

.xe-modal {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(15,23,42,0.15);
    animation: modalIn 0.18s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.xe-modal-head {
    padding: 20px 24px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xe-modal-title { font-size: 15px; font-weight: 700; }

.xe-modal-close {
    width: 28px;
    height: 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 14px;
    cursor: pointer;
    transition: background var(--t);
}

.xe-modal-close:hover { background: var(--surface-3); }

.xe-modal-body { padding: 24px; }
.xe-modal-foot { padding: 18px 24px 22px; display: flex; gap: 10px; justify-content: flex-end; }

/* ============================================
   EMPTY STATE
   ============================================ */

.xe-empty {
    text-align: center;
    padding: 52px 24px;
}

.xe-empty i {
    font-size: 36px;
    color: var(--border-hi);
    margin-bottom: 14px;
    display: block;
}

.xe-empty-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.xe-empty-sub {
    font-size: 13px;
    color: var(--text-faint);
    margin-bottom: 20px;
}

/* ============================================
   WOOCOMMERCE — CORE OVERRIDES
   ============================================ */

/* Notices */
.woocommerce-message,
.woocommerce-info {
    background: var(--green-bg) !important;
    border: 1px solid var(--green-mid) !important;
    border-left: 3px solid var(--green) !important;
    color: var(--text) !important;
    border-radius: var(--r) !important;
    padding: 14px 18px !important;
    margin-bottom: 18px !important;
}

.woocommerce-error {
    background: var(--danger-bg) !important;
    border: 1px solid rgba(220,38,38,0.2) !important;
    border-left: 3px solid var(--danger) !important;
    color: var(--text) !important;
    border-radius: var(--r) !important;
    padding: 14px 18px !important;
    margin-bottom: 18px !important;
}

/* Buttons */
.woocommerce .single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--green) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--r) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 12px 24px !important;
    transition: background var(--t) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
}

.woocommerce .single_add_to_cart_button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--green-hi) !important;
}

/* Product page */
.woocommerce div.product .product_title {
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: -0.4px !important;
    margin-bottom: 12px !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: var(--green) !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--text-dim) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

/* Product images */
.woocommerce div.product div.images {
    border: 1px solid var(--border) !important;
    border-radius: var(--r-lg) !important;
    overflow: hidden !important;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    background: transparent !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom: none !important; }

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -1px !important;
    border-radius: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom-color: var(--green) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: var(--text-faint) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--green) !important; }

.woocommerce div.product .woocommerce-tabs .panel {
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    border-top: none !important;
    border-radius: 0 0 var(--r-lg) var(--r-lg) !important;
    padding: 22px !important;
    margin: 0 !important;
    color: var(--text-dim) !important;
}

/* Cart/Checkout tables */
.woocommerce table.shop_table {
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-lg) !important;
    overflow: hidden !important;
}

.woocommerce table.shop_table th {
    background: var(--bg) !important;
    color: var(--text-faint) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    border-bottom: 1px solid var(--border) !important;
}

.woocommerce table.shop_table td {
    color: var(--text-dim) !important;
    border-bottom: 1px solid var(--border) !important;
}

/* Checkout */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    margin-bottom: 18px !important;
    letter-spacing: -0.2px !important;
}

.woocommerce form .form-row label {
    color: var(--text-dim) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: var(--r) !important;
    font-size: 13.5px !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--green) !important;
    box-shadow: 0 0 0 3px rgba(5,150,105,0.12) !important;
    outline: none !important;
}

/* Checkout payment box */
.woocommerce-checkout #payment {
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-lg) !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid var(--border) !important;
}

/* My account */
.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 24px;
    align-items: start;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    position: sticky;
    top: 76px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 8px;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    font-size: 13.5px;
    color: var(--text-dim);
    border-radius: var(--r);
    transition: background var(--t), color var(--t);
    font-weight: 500;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--bg);
    color: var(--text);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--green-bg);
    color: var(--green);
    font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 28px;
    color: var(--text-dim);
}

.woocommerce-account .woocommerce-MyAccount-content a { color: var(--green); }
.woocommerce-account .woocommerce-MyAccount-content strong { color: var(--text); }

/* Wallet */
.stat-value *,
.stat-value a,
.xe-stat-value a,
.xe-balance a,
.balance-card,
.balance-card * {
    color: inherit !important;
    text-decoration: none !important;
    pointer-events: none !important;
    cursor: default !important;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul { border: none !important; }
.woocommerce nav.woocommerce-pagination ul li { border: none !important; }

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-sm) !important;
    color: var(--text-dim) !important;
    font-size: 13px !important;
    padding: 7px 12px !important;
    margin: 0 2px !important;
    display: inline-block !important;
    transition: all var(--t) !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    border-color: var(--green) !important;
    color: var(--green) !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--green) !important;
    border-color: var(--green) !important;
    color: #fff !important;
    font-weight: 700 !important;
}

/* ============================================
   WOO SHOP GRID
   ============================================ */

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
    gap: 14px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.woocommerce ul.products li.product {
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-lg) !important;
    padding: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
    transition: border-color var(--t) !important;
}

.woocommerce ul.products li.product:hover {
    border-color: var(--border-hi) !important;
}

.woocommerce ul.products li.product a img {
    width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--border) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    padding: 12px 15px 5px !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product .price {
    color: var(--green) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    padding: 0 15px 10px !important;
    display: block !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product a.button {
    margin: 0 15px 14px !important;
    width: calc(100% - 30px) !important;
    display: block !important;
    text-align: center !important;
    background: var(--green) !important;
    color: #fff !important;
    border-radius: var(--r) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 9px 0 !important;
    border: none !important;
}

.woocommerce ul.products li.product a.button:hover {
    background: var(--green-hi) !important;
}

.woocommerce ul.products li.product .onsale {
    background: var(--danger) !important;
    color: #fff !important;
    border-radius: var(--r-sm) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    top: 9px !important;
    left: 9px !important;
    margin: 0 !important;
}

/* ============================================
   FOOTER
   ============================================ */

.xe-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 24px 28px;
    margin-top: 52px;
}

.xe-footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.xe-footer-brand {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
}

.xe-footer-brand span { color: var(--green); }

.xe-footer-copy {
    font-size: 12.5px;
    color: var(--text-faint);
}

.xe-footer-links {
    display: flex;
    gap: 18px;
}

.xe-footer-links a {
    font-size: 12.5px;
    color: var(--text-faint);
    transition: color var(--t);
}

.xe-footer-links a:hover { color: var(--green); }

/* ============================================
   LOADING
   ============================================ */

.xe-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.55s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .xe-header-inner {
        grid-template-columns: auto auto;
    }

    .xe-search { display: none; }
    .xe-mob-search, .xe-mob-menu { display: flex; }

    .xe-stats { flex-wrap: wrap; }
    .xe-stat { border-right: none; border-bottom: 1px solid var(--border); flex-basis: 50%; }
    .xe-stat:nth-child(odd) { border-right: 1px solid var(--border); }
    .xe-stat:last-child { border-bottom: none; }

    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        position: static;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .xe-header-inner { padding: 0 16px; }
    .xe-main { padding: 20px 16px; }

    .xe-nav-strip { gap: 2px; padding: 4px; }
    .xe-nav-item { padding: 7px 11px; font-size: 12.5px; }

    .xe-stats { flex-direction: column; }
    .xe-stat { flex-basis: 100%; border-right: none !important; }
    .xe-stat:last-child { border-bottom: none; }

    .xe-product-row {
        grid-template-columns: 38px 1fr auto;
        gap: 10px;
    }

    .xe-product-row .btn { display: none; }

    .xe-footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .xe-main { padding: 16px; }
    .xe-header-inner { padding: 0 12px; }
    .xe-balance { display: none; }
    .xe-payment-grid { grid-template-columns: repeat(2, 1fr); }

    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   HEADER ACTIONS + ACCOUNT DROPDOWN
   ============================================ */

.xe-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Cart button */
.xe-cart-btn {
    position: relative;
    width: 38px;
    height: 38px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 15px;
    cursor: pointer;
    transition: border-color var(--t), color var(--t), background var(--t);
    text-decoration: none;
}

.xe-cart-btn:hover {
    border-color: var(--border-hi);
    color: var(--text);
    background: var(--bg);
}

.xe-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--green);
    color: #fff;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--white);
    line-height: 1;
}

/* Account menu */
.xe-account-menu { position: relative; }

.xe-account-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    cursor: pointer;
    transition: border-color var(--t), background var(--t);
    font-family: inherit;
}

.xe-account-btn:hover {
    border-color: var(--border-hi);
    background: var(--bg);
    color: var(--text);
}

.xe-account-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
}

.xe-avatar {
    width: 26px;
    height: 26px;
    background: var(--green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.xe-avatar-lg {
    width: 38px;
    height: 38px;
    font-size: 15px;
    flex-shrink: 0;
}

/* Account dropdown */
.xe-account-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 200px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: 0 8px 32px rgba(15,23,42,0.12);
    z-index: 300;
    padding: 5px;
    animation: dropIn 0.15s ease;
}

.xe-account-dropdown.open { display: block; }

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.xe-account-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-radius: var(--r);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    transition: background var(--t), color var(--t);
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    font-family: inherit;
}

.xe-account-item i { width: 14px; text-align: center; font-size: 12.5px; }
.xe-account-item:hover { background: var(--bg); color: var(--text); }
.xe-account-item--danger { color: var(--danger); }
.xe-account-item--danger:hover { background: var(--danger-bg); color: var(--danger); }

.xe-account-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 8px;
}

/* Mobile icon buttons */
.xe-mobile-search-btn,
.xe-mobile-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 15px;
    cursor: pointer;
    transition: border-color var(--t);
    font-family: inherit;
}

.xe-mobile-search-btn:hover,
.xe-mobile-menu-btn:hover { border-color: var(--border-hi); }

/* ============================================
   MOBILE SEARCH OVERLAY (full page)
   ============================================ */

.xe-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    z-index: 500;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
}

.xe-search-overlay.open { display: flex; }

.xe-search-overlay-inner {
    width: 100%;
    max-width: 600px;
    margin: 0 16px;
}

.xe-search-overlay-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding: 10px 14px;
}

.xe-search-overlay-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text);
    font-family: inherit;
    outline: none;
    padding: 4px 0;
}

.xe-search-overlay-input::placeholder { color: var(--text-faint); }

.xe-search-overlay-close {
    width: 32px;
    height: 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--t);
    font-family: inherit;
}

.xe-search-overlay-close:hover { border-color: var(--border-hi); color: var(--text); }

/* ============================================
   SEARCH RESULTS — .visible alias
   ============================================ */

.xe-search-results.visible { display: block; }

/* Result items (JS injects these) */
.xe-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--text);
    transition: background var(--t);
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.xe-search-item:last-child { border-bottom: none; }
.xe-search-item:hover { background: var(--bg); }

.xe-search-item-img {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    object-fit: cover;
    background: var(--surface-3);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.xe-search-item-info { flex: 1; min-width: 0; }

.xe-search-item-name {
    font-size: 13px;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xe-search-item-cat {
    font-size: 11.5px;
    color: var(--text-faint);
    display: block;
    margin-top: 1px;
}

.xe-search-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    flex-shrink: 0;
}

/* ============================================
   MOBILE NAVIGATION DRAWER
   ============================================ */

.xe-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.45);
    z-index: 400;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.xe-mobile-overlay.open { display: block; }

.xe-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 88vw);
    background: var(--white);
    border-left: 1px solid var(--border);
    z-index: 450;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.xe-mobile-nav.open { transform: translateX(0); }

.xe-mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.xe-mobile-nav-close {
    width: 32px;
    height: 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 14px;
    cursor: pointer;
    transition: border-color var(--t);
    font-family: inherit;
}

.xe-mobile-nav-close:hover { border-color: var(--border-hi); }

.xe-mobile-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.xe-mobile-nav-links {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.xe-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--r);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    transition: background var(--t), color var(--t);
}

.xe-mobile-nav-link i { width: 16px; text-align: center; font-size: 14px; }
.xe-mobile-nav-link:hover { background: var(--bg); color: var(--text); }
.xe-mobile-nav-link.active { background: var(--green-bg); color: var(--green); font-weight: 600; }
.xe-mobile-nav-link.active i { color: var(--green); }

.xe-mobile-nav-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* ============================================
   PAGE WRAPPER
   ============================================ */

.xe-page {
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

/* ============================================
   SECTION HEADER aliases
   ============================================ */

.xe-section-header {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.xe-section-title-wrap { min-width: 0; }

.xe-section-desc {
    font-size: 12.5px;
    color: var(--text-faint);
    margin-top: 2px;
}

.xe-section-body { padding: 0; }

/* ============================================
   STAT ACTION alias (new)
   ============================================ */

.xe-stat-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-faint);
    transition: color var(--t);
    text-decoration: none;
}

.xe-stat-action:hover { color: var(--green); }

/* ============================================
   XE-BTN — xe- prefixed button variants
   ============================================ */

.xe-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: var(--r);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t);
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
}

.xe-btn-primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.xe-btn-primary:hover { background: var(--green-hi); border-color: var(--green-hi); color: #fff; }

.xe-btn-outline {
    background: transparent;
    color: var(--text-dim);
    border-color: var(--border);
}

.xe-btn-outline:hover { border-color: var(--border-hi); color: var(--text); background: var(--bg); }

/* ============================================
   TOAST variants
   ============================================ */

.xe-toast--success i { color: var(--green-mid); }
.xe-toast--error   i { color: #fca5a5; }
.xe-toast--warn    i { color: #fde68a; }

/* ============================================
   RESPONSIVE — show/hide mobile controls
   ============================================ */

@media (max-width: 1024px) {
    .xe-search { display: none !important; }
    .xe-account-name { display: none; }
    .xe-mobile-search-btn,
    .xe-mobile-menu-btn { display: flex; }
}

@media (max-width: 640px) {
    .xe-balance { display: none; }
    .xe-account-btn .xe-avatar { width: 30px; height: 30px; font-size: 12px; }
}
