:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a28;
    --bg-card-hover: #222236;
    --bg-elevated: #252540;
    --border-color: #2a2a45;
    --border-glow: rgba(139, 92, 246, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #c0c0d0;
    --text-muted: #a0a0b8;
    --accent-gold: #f59e0b;
    --accent-gold-light: #fbbf24;
    --accent-gold-dark: #d97706;
    --accent-purple: #8b5cf6;
    --accent-purple-light: #a78bfa;
    --accent-purple-dark: #7c3aed;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    --gradient-primary: linear-gradient(135deg, #8b5cf6, #06b6d4);
    --gradient-gold: linear-gradient(135deg, #f59e0b, #fbbf24);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
    --gradient-card: linear-gradient(145deg, rgba(26,26,40,0.8), rgba(37,37,64,0.4));
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
    --shadow-glow-purple: 0 0 20px rgba(139,92,246,0.15);
    --shadow-glow-gold: 0 0 20px rgba(245,158,11,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --font-main: 'Vazirmatn', 'Tahoma', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(139,92,246,0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(6,182,212,0.05) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-purple); }

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
body.woocommerce .single-product,
body.woocommerce-page .single-product {
    padding: 0 5px;
}

.page-wrapper {
    padding-top: 72px;
    min-height: 100vh;
}

.page-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
}

.page-header {
    text-align: center;
    padding: 32px 0 16px;
}

/* ===== SIDEBAR ===== */
:root {
    --sidebar-width: 260px;
    --topbar-height: 56px;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.content-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-right: var(--sidebar-width);
    max-width: calc(100% - var(--sidebar-width));
    transition: margin-right var(--transition-base);
    min-width: 0;
}

.sidebar, .shop-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transition: width var(--transition-base), transform var(--transition-base);
    overflow-y: auto;
}

/* ===== SCROLL BG ANIMATION ===== */
.scroll-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 40%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
}

.scroll-dice {
    position: absolute;
    font-size: var(--dice-size, 60px);
    will-change: transform, font-size;
    user-select: none;
    transition: none;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-brand .brand-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.brand-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-brand .brand-text {
    display: flex;
    flex-direction: column;
}

.sidebar-brand .brand-name {
    font-size: 13px;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-brand .brand-role {
    font-size: 11px;
    color: var(--text-muted);
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 13px;
    font-weight: 700;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-nav {
    flex: 1;
    padding: 12px 10px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 8px;
}

.nav-section-label {
    display: block;
    padding: 8px 12px 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.nav-item i {
    width: 20px;
    font-size: 16px;
    text-align: center;
    flex-shrink: 0;
}

.nav-item:hover {
    background: rgba(139, 92, 246, 0.08);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-purple-light);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    width: 3px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 3px;
    margin-right: -17px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 12px 10px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.nav-badge {
    margin-right: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(139, 92, 246, 0.08);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    min-width: 22px;
    text-align: center;
    line-height: 1.4;
}

.nav-item.has-children {
    position: relative;
}

.nav-toggle {
    margin-right: auto;
    font-size: 14px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.nav-item.has-children.open .nav-toggle {
    transform: rotate(180deg);
}

.nav-sub {
    display: none;
    padding-right: 16px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.nav-item.has-children.open + .nav-sub,
.nav-sub.open {
    display: block;
}

.nav-sub .nav-item {
    padding: 8px 14px;
    font-size: 12px;
    border-right: 2px solid transparent;
}

.nav-sub .nav-item:hover {
    border-right-color: var(--accent-purple);
}

.nav-sub .nav-item i {
    font-size: 8px;
    width: 16px;
}

.nav-sub .nav-item .nav-badge {
    font-size: 10px;
    padding: 1px 6px;
    min-width: 18px;
}

/* ===== TOPBAR ===== */
.topbar {
    position: sticky;
    top: 0;
    left: 0;
    height: var(--topbar-height);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 999;
    transition: var(--transition-base);
}

.topbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

body.admin-bar .topbar { top: 32px; }
body.admin-bar .sidebar,
body.admin-bar .shop-sidebar { top: 32px; height: calc(100vh - 32px); }
@media (max-width: 782px) {
    body.admin-bar .topbar { top: 46px; }
    body.admin-bar .sidebar,
    body.admin-bar .shop-sidebar { top: 46px; height: calc(100vh - 46px); }
}
@media (max-width: 600px) {
    body.admin-bar .topbar { top: 0; }
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.sidebar-toggler {
    display: flex;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.sidebar-toggler:hover {
    background: rgba(139,92,246,0.1);
    color: var(--text-primary);
}

/* ========================
   CLUB PAGE
======================= */
.club-hero {
    position: relative;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1a2e 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    margin-bottom: 24px;
    text-align: center;
    overflow: hidden;
}
.club-hero-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
    opacity: 0.08;
    transform: translateX(-50%);
    pointer-events: none;
}
.club-hero-content { position: relative; z-index: 1; }
.club-level-badge {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    box-shadow: 0 0 30px rgba(245,158,11,0.3);
    transition: all 0.3s ease;
}
.club-level-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.club-xp-bar-wrap { max-width: 400px; margin: 0 auto; }
.club-xp-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.club-xp-bar {
    height: 10px;
    background: var(--bg-elevated);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}
.club-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #f97316);
    border-radius: 10px;
    transition: width 0.6s ease;
}
.club-xp-sub { font-size: 12px; color: var(--text-muted); }

.club-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}
.club-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}
.club-stat i {
    display: block;
    font-size: 28px;
    color: var(--accent-gold);
    margin-bottom: 8px;
}
.club-stat strong { display: block; font-size: 22px; color: var(--text-primary); margin-bottom: 2px; }

.club-section { margin-bottom: 32px; }
.club-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.club-section-title i { color: var(--accent-gold); }

.club-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.club-level-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    transition: all 0.3s ease;
}
.club-level-item.current {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(245,158,11,0.08);
}
.club-level-item.locked { opacity: 0.5; }
.club-level-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}
.club-level-info { flex: 1; }
.club-level-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.club-level-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.club-level-check { color: var(--accent-gold); font-size: 20px; }

.club-daily {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(245,158,11,0.06), transparent);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: var(--radius-md);
    padding: 20px 24px;
}
.club-daily-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(245,158,11,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-gold);
    flex-shrink: 0;
}
.club-daily-info { flex: 1; }
.club-daily-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.club-daily-desc { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

.club-achievements {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}
.club-ach {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    transition: all 0.3s ease;
}
.club-ach.done { border-color: rgba(245,158,11,0.3); }
.club-ach-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.club-ach.done .club-ach-icon { color: #fff; }
.club-ach-info { flex: 1; }
.club-ach-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.club-ach-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.club-ach-xp { font-size: 13px; font-weight: 700; color: var(--accent-gold); flex-shrink: 0; }

.club-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.club-benefit {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.3s ease;
}
.club-benefit.locked { opacity: 0.5; }
.club-benefit.unlocked { border-color: rgba(245,158,11,0.15); }
.club-benefit-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.club-benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.club-benefit-level {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.club-benefit-badge {
    font-size: 10px;
    background: var(--accent-gold);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.club-benefit-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.club-benefit-list li {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.club-benefit-list li i { font-size: 16px; flex-shrink: 0; }

.club-referral {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
}

/* ========================
   CLUB TABS
======================= */
.club-tab-bar {
    display: flex;
    gap: 4px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.club-tab {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}
.club-tab i { font-size: 16px; }
.club-tab:hover { color: var(--text-primary); background: rgba(139,92,246,0.08); }
.club-tab.active {
    color: var(--accent-gold);
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.club-tab-content { display: none; }
.club-tab-content.active { display: block; }

/* ========================
   WEEKLY CHALLENGES
======================= */
.club-challenges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.club-challenge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 14px;
    transition: all 0.3s ease;
}
.club-challenge.completed { opacity: 0.6; border-color: var(--accent-gold); }
.club-challenge-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.club-challenge-info { width: 100%; }
.club-challenge-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.club-challenge-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.club-challenge-xp { font-size: 13px; font-weight: 700; color: var(--accent-gold); }
.club-challenge-btn { font-size: 12px; }

/* ========================
   MONTHLY TOURNAMENT
======================= */
.club-tournament {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 20px;
}
.club-tournament-icon { font-size: 48px; color: var(--accent-gold); margin-bottom: 12px; }
.club-tournament-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.club-tournament-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.club-tournament-prizes {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}
.club-tournament-prize {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-secondary);
}
.club-tournament-prize strong { display: block; color: var(--accent-gold); font-size: 16px; }
.club-tournament-status { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

/* ========================
   GUESS THE GAME
======================= */
.club-guess {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}
.club-guess-icon { font-size: 42px; color: var(--accent-gold); margin-bottom: 12px; }
.club-guess-question { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; }
.club-guess-clue { font-size: 20px; font-weight: 800; color: var(--accent-gold); margin-bottom: 16px; padding: 12px; background: var(--bg-elevated); border-radius: var(--radius-sm); }
.club-guess-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}
.club-guess-opt {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    font-family: inherit;
}
.club-guess-opt:hover { border-color: var(--accent-gold); }
.club-guess-opt.correct { border-color: #22c55e; background: rgba(34,197,94,0.1); color: #22c55e; }
.club-guess-opt.wrong { border-color: #ef4444; background: rgba(239,68,68,0.1); color: #ef4444; }
.club-guess-opt:disabled { cursor: not-allowed; }
.club-guess-result { font-size: 14px; font-weight: 600; margin-top: 8px; }

/* ========================
   LUCKY WHEEL
======================= */
.club-wheel-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 20px;
}
.club-wheel-container {
    position: relative;
    width: 240px;
    height: 240px;
    margin-bottom: 20px;
}
.club-wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(245,158,11,0.15);
    transition: transform 3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}
.club-wheel-pointer {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    color: var(--accent-gold);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    z-index: 2;
}
.club-wheel-spin {
    min-width: 140px;
}
.club-wheel-result {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
    min-height: 28px;
}
.club-wheel-cooldown { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ========================
   MYSTERY BOXES
======================= */
.club-mystery-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.club-mystery-box {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.club-mystery-box:hover:not(.opened):not(.locked) { border-color: var(--accent-gold); transform: translateY(-2px); }
.club-mystery-box.locked { opacity: 0.4; cursor: not-allowed; }
.club-mystery-box.opened { cursor: default; border-color: rgba(245,158,11,0.2); }
.club-mystery-box-icon { font-size: 42px; color: var(--accent-gold); margin-bottom: 10px; transition: all 0.3s; }
.club-mystery-box.opened .club-mystery-box-icon { color: var(--text-muted); }
.club-mystery-box-name { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.club-mystery-box-price { font-size: 13px; color: var(--accent-gold); font-weight: 700; }
.club-mystery-box.opened .club-mystery-box-price { color: var(--text-muted); }
.club-mystery-box-reveal { font-size: 12px; color: var(--text-secondary); margin-top: 8px; display: none; }
.club-mystery-box.opened .club-mystery-box-reveal { display: block; }
.club-mystery-box-shimmer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(245,158,11,0.06), transparent, rgba(245,158,11,0.06), transparent);
    animation: shimmer 3s linear infinite;
    pointer-events: none;
}
@keyframes shimmer { to { transform: rotate(360deg); } }

/* ========================
   STREAK DISCOUNTS
======================= */
.club-streak {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}
.club-streak-fire { font-size: 40px; margin-bottom: 8px; }
.club-streak-count { font-size: 28px; font-weight: 800; color: var(--accent-gold); }
.club-streak-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.club-streak-bar {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 16px;
}
.club-streak-day {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
    transition: all 0.3s;
}
.club-streak-day.active { background: var(--accent-gold); color: #fff; box-shadow: 0 0 12px rgba(245,158,11,0.3); }
.club-streak-day.today { border: 2px solid var(--accent-gold); }
.club-streak-discount { font-size: 15px; font-weight: 700; color: var(--accent-gold); margin-bottom: 4px; }
.club-streak-next { font-size: 12px; color: var(--text-muted); }

/* ========================
   TREASURE MAP
======================= */
.club-treasure {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 260px;
}
.club-treasure-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 40%, rgba(245,158,11,0.04) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 60%, rgba(139,92,246,0.04) 0%, transparent 60%);
    pointer-events: none;
}
.club-treasure-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; position: relative; z-index: 1; }
.club-treasure-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 320px;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
}
.club-treasure-cell {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}
.club-treasure-cell:hover:not(.found):not(.empty) { border-color: var(--accent-gold); transform: scale(1.05); }
.club-treasure-cell.found { background: rgba(245,158,11,0.15); border-color: var(--accent-gold); }
.club-treasure-cell.empty { opacity: 0.3; cursor: default; }
.club-treasure-cell .cell-emoji { font-size: 28px; }
.club-treasure-status { font-size: 13px; color: var(--text-secondary); position: relative; z-index: 1; }
.club-treasure-progress { margin-top: 8px; position: relative; z-index: 1; }

/* ========================
   STORY BUILDER
======================= */
.club-story {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}
.club-story-text {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
    min-height: 80px;
    max-height: 200px;
    overflow-y: auto;
}
.club-story-text .highlight { color: var(--accent-gold); font-weight: 600; }
.club-story-input-wrap { display: flex; gap: 8px; margin-bottom: 12px; }
.club-story-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    resize: none;
}
.club-story-info { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }

/* ========================
   HALL OF FAME
======================= */
.club-hall {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}
.club-hall-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
}
.club-hall-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 12px 6px;
    text-align: center;
    transition: all 0.2s ease;
}
.club-hall-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.club-hall-card.me { border: 1px solid var(--accent-gold); }
.club-hall-card-rank {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.club-hall-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 0 auto 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.club-hall-card-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.club-hall-card-xp {
    font-size: 10px;
    color: var(--accent-gold);
    font-weight: 600;
}
.club-hall-card-level {
    font-size: 9px;
    color: var(--text-muted);
}
.club-hall-empty { font-size: 13px; color: var(--text-muted); padding: 20px; }

/* ========================
   REFERRAL CHAIN
======================= */
.club-refchain {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}
.club-refchain-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.club-refchain-stat {
    text-align: center;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 12px;
}
.club-refchain-stat-num { font-size: 22px; font-weight: 800; color: var(--accent-gold); }
.club-refchain-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.club-refchain-link-wrap { display: flex; gap: 8px; }
.club-refchain-link { flex: 1; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-elevated); color: var(--text-primary); font-size: 13px; direction: ltr; text-align: left; }
.club-refchain-tree { margin-top: 16px; }
.club-refchain-node { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--bg-elevated); font-size: 12px; margin-bottom: 4px; }
.club-refchain-node i { color: var(--accent-gold); font-size: 14px; }
.club-refchain-node .node-level { color: var(--text-muted); font-size: 10px; }

@media (max-width: 768px) {
    .club-levels { grid-template-columns: repeat(2, 1fr); }
    .club-challenges { grid-template-columns: repeat(2, 1fr); }
    .club-mystery-boxes { grid-template-columns: repeat(2, 1fr); }
    .club-treasure-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .club-hall-grid { grid-template-columns: repeat(5, 1fr); }
    .club-refchain-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}
@media (max-width: 480px) {
    .club-tab { font-size: 11px; padding: 8px 6px; }
    .club-tab span { display: none; }
    .club-tab i { font-size: 18px; }
    .club-challenges { grid-template-columns: 1fr; }
    .club-guess-options { grid-template-columns: 1fr; }
    .club-mystery-boxes { grid-template-columns: 1fr; }
    .club-treasure-grid { gap: 4px; }
    .club-treasure-cell { font-size: 18px; }
    .club-hall-grid { grid-template-columns: repeat(3, 1fr); }
    .club-refchain-stats { grid-template-columns: 1fr; }
    .club-story-input-wrap { flex-direction: column; }
}
@media (max-width: 480px) {
    .club-stats { grid-template-columns: repeat(2, 1fr); }
    .club-hero { padding: 28px 18px; }
    .club-level-name { font-size: 20px; }
    .club-levels { grid-template-columns: 1fr; }
    .club-achievements { grid-template-columns: 1fr; }
    .club-benefits { grid-template-columns: 1fr; }
    .club-daily { flex-direction: column; text-align: center; }
}

/* Sidebar collapsed state (icon-only, desktop) */
@media (min-width: 1025px) {
    body.sidebar-collapsed .shop-sidebar,
    body.sidebar-collapsed .sidebar {
        width: 64px;
        overflow: hidden;
        transition: width 0.25s ease;
    }
    body.sidebar-collapsed .shop-sidebar:hover,
    body.sidebar-collapsed .sidebar:hover {
        width: var(--sidebar-width);
        overflow-y: auto;
    }
    body.sidebar-collapsed .shop-sidebar:hover .sidebar-brand .brand-text,
    body.sidebar-collapsed .shop-sidebar:hover .sidebar-user .user-info,
    body.sidebar-collapsed .shop-sidebar:hover .nav-section-label,
    body.sidebar-collapsed .shop-sidebar:hover .nav-item > span:not(.nav-badge),
    body.sidebar-collapsed .shop-sidebar:hover .nav-badge,
    body.sidebar-collapsed .shop-sidebar:hover .nav-toggle,
    body.sidebar-collapsed .shop-sidebar:hover .nav-item.has-children.open + .nav-sub,
    body.sidebar-collapsed .shop-sidebar:hover .nav-sub.open,
    body.sidebar-collapsed .shop-sidebar:hover .sidebar-footer .nav-item > span {
        display: revert;
    }
    body.sidebar-collapsed .shop-sidebar:hover .sidebar-brand {
        justify-content: flex-start;
        padding: 18px 20px;
    }
    body.sidebar-collapsed .shop-sidebar:hover .sidebar-user {
        justify-content: flex-start;
        padding: 16px 20px;
    }
    body.sidebar-collapsed .shop-sidebar:hover .nav-item {
        justify-content: flex-start;
        padding: 10px 14px;
        gap: 12px;
    }
    body.sidebar-collapsed .shop-sidebar:hover .nav-item.active::before {
        display: block;
    }
    body.sidebar-collapsed .shop-sidebar:hover .sidebar-nav {
        padding: 12px 10px;
    }
    body.sidebar-collapsed .shop-sidebar:hover .sidebar-footer .nav-item {
        padding: 10px 14px;
    }
    body.sidebar-collapsed .sidebar-brand .brand-text,
    body.sidebar-collapsed .sidebar-user .user-info,
    body.sidebar-collapsed .nav-section-label,
    body.sidebar-collapsed .nav-item > span:not(.nav-badge),
    body.sidebar-collapsed .nav-badge,
    body.sidebar-collapsed .nav-toggle,
    body.sidebar-collapsed .nav-sub,
    body.sidebar-collapsed .sidebar-footer .nav-item > span {
        display: none;
    }
    body.sidebar-collapsed .sidebar-brand {
        justify-content: center;
        padding: 14px 0;
    }
    body.sidebar-collapsed .sidebar-user {
        justify-content: center;
        padding: 10px 0;
    }
    body.sidebar-collapsed .nav-item {
        justify-content: center;
        padding: 12px 0;
        gap: 0;
    }
    body.sidebar-collapsed .nav-item.active::before {
        display: none;
    }
    body.sidebar-collapsed .sidebar-nav {
        padding: 8px 0;
    }
    body.sidebar-collapsed .sidebar-footer .nav-item {
        padding: 10px 0;
    }
    body.sidebar-collapsed .content-column {
        margin-right: 64px;
        max-width: calc(100% - 64px);
    }
}

.topbar-search {
    display: none;
}

.topbar-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
}

.topbar-btn:hover {
    background: rgba(139,92,246,0.1);
    color: var(--text-primary);
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: auto;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px;
    min-width: 170px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.theme-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition-fast);
}

.theme-dropdown-item:hover {
    background: rgba(139,92,246,0.1);
    color: var(--text-primary);
}

.theme-dropdown-item.active {
    color: var(--accent-purple-light);
    background: rgba(139,92,246,0.08);
}

.theme-dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.theme-check {
    margin-right: auto;
    color: var(--accent-gold);
    font-size: 14px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
}

.content-area {
    padding: 24px;
}

/* ===== HERO ===== */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 56px 24px;
}

.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
}

.hero-bg-glow.g1 {
    background: var(--accent-purple);
    top: -200px;
    right: -200px;
}

.hero-bg-glow.g2 {
    background: var(--accent-cyan);
    bottom: -200px;
    left: -200px;
}

.hero-bg-glow.g3 {
    background: var(--accent-gold);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    opacity: 0.05;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
}

.hero-slides {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide {
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(26, 26, 40, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
    z-index: 10;
    transition: var(--transition-fast);
    cursor: pointer;
}

.hero-arrow:hover {
    background: var(--accent-purple);
    color: white;
    border-color: var(--accent-purple);
}

.hero-arrow-prev { right: 16px; }
.hero-arrow-next { left: 16px; }

.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.hero-dot.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.hero-dot:hover {
    border-color: var(--accent-purple-light);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--accent-purple-light);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease;
}

.hero h1 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .highlight-purple {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 28px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.hero-feature i {
    color: var(--accent-emerald);
    font-size: 16px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 3px 12px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
}

.btn-gold {
    background: var(--gradient-gold);
    color: #fff;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.05);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
    border-color: var(--border-glow);
}

.btn-lg {
    padding: 12px 28px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 11px;
}

/* ===== SECTION ===== */
.section {
    padding: 16px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-icon {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.section-link:hover {
    color: var(--accent-purple-light);
    gap: 8px;
}

/* ===== PRODUCT CARD ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: var(--shadow-lg), var(--shadow-glow-purple);
}

.product-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.product-card-image-link {
    display: block;
    border-radius: 5px;
    overflow: hidden;
}

.product-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    background: var(--accent-rose);
    color: white;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.3);
}

.product-card-wishlist {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
    font-size: 13px;
    border: 1px solid var(--border-color);
    background: none;
    flex-shrink: 0;
}

.product-card-wishlist:hover {
    color: var(--accent-rose);
    border-color: var(--accent-rose);
}

.product-card-body {
    padding: 20px;
}

.product-card-category {
    font-size: 11px;
    color: var(--accent-purple-light);
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    transition: var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card:hover .product-card-title {
    color: var(--accent-gold-light);
}

.product-card-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 10px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
}

.product-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-card-meta i {
    color: var(--accent-purple);
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.product-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.product-card-actions .btn {
    flex: 1;
    height: 32px;
    font-size: 12px;
    padding: 0 12px;
}

.product-card-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent-gold);
}

.product-card-price .old {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 8px;
}

/* ===== BOOK CARD ===== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.book-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
    z-index: 1;
}

.book-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow-purple);
}

.book-card:hover::before {
    opacity: 1;
}

.book-card-image {
    height: 230px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.book-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(10, 10, 15, 0.8));
    pointer-events: none;
}

.book-card-image:not([style*="background-image"]) {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
}

.book-card-image:not([style*="background-image"])::after {
    display: none;
}

.book-card-image:not([style*="background-image"]) i {
    font-size: 36px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.book-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    background: var(--accent-rose);
    color: white;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.3);
    z-index: 2;
}

.book-card-format {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    z-index: 2;
}

.book-card-body {
    padding: 16px;
}

.book-card-category {
    font-size: 10px;
    color: var(--accent-purple-light);
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-card-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-fast);
    line-height: 1.5;
}

.book-card:hover .book-card-title {
    color: var(--accent-gold-light);
}

.book-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--text-muted);
    font-size: 11px;
    margin-bottom: 10px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
}

.book-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.book-card-meta i {
    color: var(--accent-purple);
    font-size: 10px;
    flex-shrink: 0;
}

.book-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    gap: 8px;
}

.book-card-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--accent-gold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-card-footer .btn {
    height: 32px;
    font-size: 11px;
    padding: 0 14px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
}

@media (min-width: 1600px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 22px;
    }
}

@media (max-width: 1100px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    .book-card-image { height: 200px; }
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 14px;
    }
    .book-card-image { height: 180px; }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    .book-card-image { height: 160px; }
    .book-card-body { padding: 10px; }
    .book-card-title { font-size: 12px; }
    .book-card-price { font-size: 13px; }
    .book-card-meta { font-size: 10px; padding: 4px 8px; }
    .book-card-footer .btn { height: 28px; font-size: 10px; padding: 0 8px; }
}

/* ===== BOOKS SEARCH ===== */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.search-box-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}
.search-box .form-control {
    width: 100%;
    padding-right: 36px;
    height: 38px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}
.search-box .form-control:focus {
    border-color: var(--accent-purple);
}

/* ===== BOOKS FILTER BAR ===== */
.books-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

/* ===== API PRODUCT SINGLE ===== */
.api-product-single {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
}
.api-product-back {
    margin-bottom: 12px;
}
.api-product-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
}
.api-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.api-product-main-image {
    height: 360px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}
.api-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    background: var(--accent-gold);
    color: var(--bg-primary);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.api-product-thumbs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.api-product-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}
.api-product-thumb:hover,
.api-product-thumb.active {
    border-color: var(--accent-purple);
}
.api-product-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.api-product-category {
    font-size: 12px;
    color: var(--accent-purple-light);
    font-weight: 600;
}
.api-product-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}
.api-product-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-gold);
}
.api-product-stock {
    display: flex;
    gap: 8px;
}
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
}
.stock-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.stock-badge.danger {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
}
.api-product-short-desc {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 2;
    margin-top: 8px;
}
.api-product-short-text {
    line-height: 2.2;
}
.api-product-desc,
.api-product-specs {
    margin-top: 6px;
}
.api-product-desc h3,
.api-product-specs h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.api-product-desc-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 2;
    max-height: none;
    overflow: visible;
}
.api-product-desc-content p {
    margin-bottom: 8px;
}
.api-product-specs .specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: transparent;
    border-radius: var(--radius-md);
    padding: 0;
}
.api-product-specs .spec-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 6px 10px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}
.api-product-specs .spec-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}
.api-product-specs .spec-value {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 700;
}
.api-product-price-stock {
    margin-top: 4px;
}
.price-stock-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.price-stock-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}
.price-box {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}
.stock-box {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}
.price-stock-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}
.price-stock-value {
    font-size: 17px;
    font-weight: 800;
    color: var(--accent-gold);
}
.price-stock-value.in-stock {
    color: var(--accent-emerald);
}
.price-stock-value.out-of-stock {
    color: var(--accent-rose);
}

.api-product-related {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.api-product-related h2 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .api-product-container {
        padding: 12px;
    }
    .api-product-main-image {
        height: 220px;
    }
    .api-product-title {
        font-size: 17px;
    }
    .price-stock-row {
        grid-template-columns: 1fr;
    }
    .api-product-specs .specs-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CAROUSEL ===== */
.carousel-wrapper {
    position: relative;
}

.carousel-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 16px;
    scrollbar-width: none;
}

.carousel-rail::-webkit-scrollbar { display: none; }

.carousel-rail .product-card {
    min-width: 240px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.carousel-rail .blog-card {
    width: 420px;
    scroll-snap-align: start;
    flex-shrink: 0;
}
.carousel-rail .blog-card .blog-card-image {
    width: 160px;
    min-height: 140px;
}
.carousel-rail .blog-card .blog-card-body {
    padding: 14px 16px;
}
.carousel-rail .blog-card .blog-card-title {
    font-size: 14px;
    margin-bottom: 6px;
}
.carousel-rail .blog-card .blog-card-excerpt {
    font-size: 13px;
    -webkit-line-clamp: 2;
}
.carousel-rail .blog-card .blog-card-meta {
    margin-top: 10px;
    padding-top: 10px;
}

.rail-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(26, 26, 40, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
    z-index: 10;
    transition: var(--transition-fast);
}

.rail-nav-btn:hover {
    background: var(--accent-purple);
    color: white;
    border-color: var(--accent-purple);
}

.rail-nav-prev { right: -12px; }
.rail-nav-next { left: -12px; }

/* ===== RELATED PRODUCTS ===== */
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.related-carousel {
    display: none;
}
.related-carousel .carousel-rail {
    padding: 4px 4px 8px;
}
.related-carousel .product-card {
    min-width: 170px;
    flex: 0 0 170px;
}

/* ===== BENEFITS ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.benefit-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.benefit-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-purple);
}

.benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-purple-light);
    margin: 0 auto 12px;
}

.benefit-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.benefit-desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* ===== FEATURED SECTION ===== */
.featured-section-box {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 8px 20px 24px;
    margin: 24px 0;
}

/* ===== HOMEPAGE TONIGHT FINDER ===== */
.home-tonight {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}
.home-tonight .tonight-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}
.home-tonight .tonight-header .tonight-icon {
    font-size: 28px;
    color: var(--accent-gold);
}
.home-tonight .tonight-header h3 {
    font-size: 22px;
    font-weight: 800;
}
.home-tonight .tonight-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 28px;
}
.home-tonight .tonight-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-bottom: 28px;
}
.home-tonight .filter-row {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.home-tonight .filter-label {
    color: var(--accent-purple-light);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 110px;
}
.home-tonight .filter-label i { font-size: 15px; }

/* ===== DISCOVERY PAGE ===== */
.discovery-box {
    max-width: 840px;
    margin: 0 auto;
}
.discovery-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
}
.disc-filter-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.disc-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-purple-light);
    font-weight: 600;
    font-size: 14px;
}
.disc-filter-label i { font-size: 15px; }

/* ===== TONIGHT FILTERS GRID ===== */
.tonight-filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
}
.tonight-filter-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tonight-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-purple-light);
    font-weight: 600;
    font-size: 14px;
}
.tonight-filter-label i { font-size: 15px; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.testimonial-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition-base);
}

.testimonial-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.testimonial-name {
    font-weight: 700;
    font-size: 12px;
}

.product-card-body {
    padding: 14px;
}

.product-card-category {
    font-size: 11px;
    color: var(--text-muted);
}

.testimonial-stars {
    color: var(--accent-gold);
    font-size: 14px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ===== BLOG CARD ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.blog-card {
    display: flex;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.blog-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-purple);
}
.blog-card.is-clickable,
.blog-card[onclick],
.blog-card[data-id] { cursor: pointer; }

.blog-card-image {
    width: 180px;
    min-height: 160px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.blog-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple-light);
    width: fit-content;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    transition: var(--transition-fast);
}

.blog-card:hover .blog-card-title {
    color: var(--accent-gold-light);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-stacked {
    flex-direction: column;
}
.blog-card-stacked .blog-card-image {
    width: 100%;
    height: 180px;
}

/* ===== ACCOUNT PAGE ===== */
.my-account-page {
    max-width: 1000px;
    margin: 0 auto;
}
.my-account-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    padding: 0;
}
.my-account-header i { color: var(--accent-gold); }
.my-account-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: start;
}
.my-account-nav {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    position: sticky;
    top: 80px;
}
.my-account-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.my-account-nav li { margin-bottom: 4px; }
.my-account-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}
.my-account-nav a:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}
.my-account-nav a.is-active {
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-weight: 700;
}
.my-account-nav a i { width: 18px; text-align: center; font-size: 14px; }
.my-account-content {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    min-height: 300px;
}
.my-account-content h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.my-account-content h2 i { color: var(--accent-purple-light); }
.my-account-greeting {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}
.my-account-greeting-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.my-account-greeting-text h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}
.my-account-greeting-text span {
    font-size: 12px;
    color: var(--text-muted);
}
.my-account-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.my-account-shortcut {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s;
}
.my-account-shortcut:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}
.my-account-shortcut-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.my-account-shortcut-icon.purple { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }
.my-account-shortcut-icon.cyan { background: rgba(6, 182, 212, 0.1); color: var(--accent-cyan); }
.my-account-shortcut-icon.emerald { background: rgba(16, 185, 129, 0.1); color: var(--accent-emerald); }
.my-account-shortcut-icon.gold { background: rgba(245, 158, 11, 0.1); color: var(--accent-gold); }
.my-account-shortcut-text { flex: 1; }
.my-account-shortcut-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--text-primary); }
.my-account-shortcut-text small { font-size: 11px; color: var(--text-muted); }
.my-account-form { max-width: 520px; }
.my-account-form .form-row {
    margin-bottom: 14px;
}
.my-account-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.my-account-form input,
.my-account-form select,
.my-account-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 13px;
}
.my-account-form input:focus,
.my-account-form select:focus,
.my-account-form textarea:focus {
    outline: none;
    border-color: var(--accent-purple-light);
}
.my-account-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.my-account-fieldset {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 16px;
}
.my-account-fieldset legend {
    font-weight: 600;
    font-size: 13px;
    padding: 0 8px;
    color: var(--text-primary);
}
.my-account-table {
    overflow-x: auto;
}
.my-account-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.my-account-table thead {
    background: var(--bg-elevated);
    border-bottom: 2px solid var(--border-color);
}
.my-account-table th {
    padding: 11px 10px;
    text-align: right;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}
.my-account-table td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.my-account-table .actions { text-align: left; }
.my-account-table .btn-sm {
    padding: 5px 12px;
    font-size: 11px;
}
.my-account-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}
.my-account-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
}
.my-account-card address {
    font-size: 12px;
    font-style: normal;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.my-account-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.my-account-empty i {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
}
.my-account-empty p { margin-bottom: 14px; }
.my-account-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 13px;
}
.my-account-detail-grid strong { color: var(--text-muted); font-weight: 600; }

/* ===== PROFILE PAGE ===== */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}
.profile-sidebar-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 12px;
}
.profile-name { font-size: 18px; font-weight: 800; }
.profile-level {
    font-size: 12px;
    color: var(--accent-gold);
    margin-bottom: 16px;
}
.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.profile-stat {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 12px 10px;
}
.profile-stat-value { font-size: 18px; font-weight: 800; }
.profile-stat-label { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
}
.profile-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}
.profile-nav-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}
.profile-nav-btn i { width: 18px; text-align: center; color: var(--accent-purple-light); }
.profile-grid-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
@media (max-width: 480px) {
    .profile-grid-actions { grid-template-columns: 1fr; }
}
.welcome-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.welcome-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.welcome-card p { font-size: 13px; color: var(--text-secondary); }

/* ===== PROFILE TABS ===== */
.profile-tab-content {
    display: none;
}
.profile-tab-content.active {
    display: block;
}
.profile-nav-btn.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-weight: 700;
}
.profile-nav-btn.active i {
    color: var(--accent-purple-light);
}
.profile-main-content {
    min-height: 400px;
}

.order-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.order-card-id { font-weight: 700; font-size: 14px; }
.order-card-status { font-size: 11px; }
.order-card-meta { font-size: 12px; color: var(--text-muted); }
.order-card-total { font-size: 14px; font-weight: 700; color: var(--accent-gold); }
.guest-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.guest-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
}
.guest-card h2 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.guest-card form { text-align: right; }
.guest-card .form-row { margin-bottom: 14px; }

/* ========================
   ARTICLE DETAIL PAGE
======================= */
.article-detail { max-width: 100%; margin: 0 auto; }
.article-back { margin-bottom: 16px; }
.article-cover {
    display: flex;
    border-radius: 0;
    overflow: hidden;
    margin: -24px -24px 40px;
    min-height: 380px;
}
@media (max-width: 768px) {
    .article-cover { margin: -16px -16px 32px; }
}
.article-cover-image {
    flex: 1;
    background-size: cover;
    background-position: center;
}
.article-cover-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 44px;
    background: var(--bg-card);
}
.article-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    width: fit-content;
}
.article-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
}
.article-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-body {
    display: flex;
    gap: 32px;
}
.article-content {
    flex: 1;
    font-size: 15px;
    line-height: 2.1;
    color: var(--text-secondary);
    text-align: justify;
}
.article-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 28px 0 12px;
}
.article-content p { margin-bottom: 16px; }
.article-share {
    width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}
.article-share-label {
    font-size: 10px;
    color: var(--text-muted);
    writing-mode: vertical-rl;
    font-weight: 600;
    letter-spacing: 1px;
}
.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.share-btn:hover { transform: scale(1.1); opacity: 0.9; }
.article-section { margin-top: 40px; }
.article-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-section-title i { color: var(--accent-gold); }
.article-related {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.article-related-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
}
.article-related-card:hover { border-color: rgba(139,92,246,0.3); transform: translateY(-3px); }
.article-related-img {
    height: 120px;
    background-size: cover;
    background-position: center;
}
.article-related-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.article-related-tag { font-size: 10px; font-weight: 700; margin-bottom: 6px; }
.article-related-body h4 { font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.5; margin-bottom: 6px; flex: 1; }
.article-related-date { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

@media (max-width: 768px) {
    .article-cover { flex-direction: column; min-height: auto; margin: -16px -16px 32px; }
    .article-cover-image { min-height: 220px; }
    .article-cover-content { padding: 28px 22px; }
    .article-title { font-size: 20px; }
    .article-body { flex-direction: column; }
    .article-share { width: 100%; flex-direction: row; justify-content: center; position: static; padding: 16px 0; border-top: 1px solid var(--border-color); }
    .article-share-label { writing-mode: horizontal-tb; }
    .article-related { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .article-cover-image { min-height: 160px; }
    .article-cover-content { padding: 18px 16px; }
    .article-title { font-size: 16px; }
    .article-meta { font-size: 11px; gap: 10px; }
    .article-content { font-size: 14px; }
}

/* ===== CATEGORY STRIP ===== */
.category-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    min-width: 0;
}

.category-strip::-webkit-scrollbar { display: none; }

.cat-strip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.cat-strip-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

.cat-strip-item.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.cat-strip-item .count {
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    font-size: 11px;
}

a.cat-strip-item {
    text-decoration: none;
    color: var(--text-secondary);
}

a.cat-strip-item:hover {
    color: var(--text-primary);
    border-color: rgba(139, 92, 246, 0.3);
}

.cat-strip-parent {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(139, 92, 246, 0.1)) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: var(--accent-gold) !important;
}

.cat-strip-parent .count {
    background: rgba(245, 158, 11, 0.2) !important;
    color: var(--accent-gold-light);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.breadcrumb a:hover { color: var(--accent-gold); }
.breadcrumb-sep { font-size: 10px; color: var(--text-muted); opacity: 0.5; }
.breadcrumb span { color: var(--text-primary); font-weight: 600; overflow-wrap: break-word; word-break: break-word; }

/* ===== PRODUCT THUMBNAILS ===== */
.product-main-img {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
}
.product-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .3s;
}
.product-img-placeholder {
    padding: 80px;
    text-align: center;
    color: var(--text-muted);
    font-size: 64px;
}
.product-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
}
.product-thumb {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: .6;
    transition: all var(--transition-fast);
    background: var(--bg-color);
}
.product-thumb:hover { opacity: .9; }
.product-thumb.active { border-color: var(--accent-gold); opacity: 1; }
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-discount-float {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--danger);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(239,68,68,.4);
    z-index: 2;
}

/* ===== PRODUCT BADGES ===== */
.product-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.badge-sale { background: rgba(239,68,68,.15); color: var(--danger); }
.badge-stock { background: rgba(34,197,94,.12); color: #22c55e; }
.badge-out { background: rgba(100,116,139,.15); color: var(--text-muted); }
.badge-feat { background: rgba(245,158,11,.15); color: var(--accent-gold); }

/* ===== SHORT DESC ===== */
.product-short-desc {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: rgba(0,0,0,.15);
    border-radius: var(--radius-sm);
    border-right: 3px solid var(--accent-purple);
}

/* ===== PRICE OLD ===== */
.price-label {
    font-size: 14px;
    color: var(--text-muted);
}
.price-old {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 10px;
}

/* ===== ACTION ROW ===== */
.product-action-row {
    margin-top: 16px;
}

/* ===== SPECS GRID ===== */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    background: var(--bg-color);
}
.spec-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}
.spec-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== SINGLE PRODUCT ===== */
.single-product {
    display: flex;
    gap: 32px;
    padding: 16px 0;
    width: 100%;
}
.single-product .product-gallery { flex: 0 0 400px; max-width: 40%; }
.single-product .product-details { flex: 1; min-width: 0; }
body.single-product .content-area {
    padding: 24px 10px;
}
body.single-product .single-product {
    padding: 16px 0;
    width: 100%;
}
body.single-product .product-tabs-wrapper,
body.single-product .related-section { padding: 0 16px; }

/* ===== GALLERY ===== */
.product-gallery { position: relative; }
.product-main-img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    position: relative;
    padding: 12px;
}
.product-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .25s;
}
.product-img-placeholder {
    padding: 60px;
    color: var(--text-muted);
    font-size: 56px;
}
.product-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.product-thumb {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: .6;
    transition: all .2s;
    background: var(--bg-color);
}
.product-thumb:hover { opacity: .9; }
.product-thumb.active { border-color: var(--accent-purple); opacity: 1; }
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-discount-float {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--danger);
    color: #fff;
    padding: 4px 14px;
    border-radius: 0 8px 0 8px;
    font-size: 14px;
    font-weight: 800;
    z-index: 2;
}
.product-sku-float {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--bg-color);
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    z-index: 2;
    direction: ltr;
}

/* ===== INFO PANEL (modal‑inspired) ===== */
.product-details { min-width: 0; }
.product-modal-category {
    color: var(--accent-purple, #8b5cf6);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    overflow-wrap: break-word;
}
.product-modal-name {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
}
.product-modal-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.product-modal-stars { color: var(--accent-gold); font-size: 16px; letter-spacing: 2px; }
.product-modal-rating-text { font-size: 14px; color: var(--text-muted); }
.product-modal-rating-text strong { color: var(--text-primary); }

/* quick‑specs meta strip */
.product-modal-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
}
.product-modal-meta .qs-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    min-width: 0;
}
.product-modal-meta .qs-label { font-size: 11px; color: var(--text-muted); }
.product-modal-meta .qs-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    overflow-wrap: break-word;
    word-break: break-word;
}

/* price section */
.product-modal-price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
    overflow-wrap: break-word;
}
.price-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}
.price-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
}
.product-modal-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-gold);
}

.product-modal-price span { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.product-modal-old-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-modal-discount {
    padding: 3px 8px;
    background: rgba(239,68,68,.15);
    color: #ef4444;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
}
.product-modal-stock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}
.product-modal-stock.success { background: rgba(34,197,94,.12); color: #22c55e; }
.product-modal-stock.danger { background: rgba(239,68,68,.12); color: #ef4444; }
.product-sku { font-size: 11px; color: var(--text-muted); }

/* actions row */
.product-modal-actions { margin-bottom: 16px; }
.product-modal-actions .actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.product-modal-actions .btn {
    flex: 1;
    height: 36px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.product-modal-actions .wishlist-btn {
    flex: 0 0 36px;
    height: 36px;
    padding: 0;
    font-size: 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    flex-shrink: 0;
}
.product-modal-actions .wishlist-btn:hover { border-color: var(--accent-rose, #f43f5e); color: var(--accent-rose, #f43f5e); }
.product-modal-actions .wishlist-btn.active { color: var(--accent-rose, #f43f5e); border-color: var(--accent-rose, #f43f5e); }

/* qty selector */
.qty-selector {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    flex-shrink: 0;
}
.qty-btn {
    width: 36px;
    height: 40px;
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.qty-btn:hover { background: rgba(255,255,255,.08); }
.qty-input {
    width: 44px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background: none;
    color: var(--text-primary);
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* share toggle & popover */
.share-toggle-wrap { position: relative; }
.share-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-muted);
    transition: all 0.2s;
}
.share-toggle-btn:hover {
    background: var(--accent-purple, #8b5cf6);
    color: #fff;
    border-color: var(--accent-purple, #8b5cf6);
}
.share-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: none;
    align-items: center;
    gap: 4px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 6px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 10;
}
.share-popover.active { display: flex; }
.share-popover .share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    border: none;
    cursor: pointer;
    background: var(--bg-secondary);
    transition: all 0.2s;
}
.share-popover .share-btn:hover { background: var(--accent-purple, #8b5cf6); color: #fff; transform: scale(1.1); }

/* ===== PRODUCT TABS ===== */
.product-tabs-wrapper { margin-top: 20px; }
.product-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.product-tab {
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.product-tab:hover { color: var(--text-primary); }
.product-tab.active { color: var(--accent-purple, #8b5cf6); border-bottom-color: var(--accent-purple, #8b5cf6); }
.product-tab-content { display: none; min-width: 0; }
.product-tab-content.active { display: block; }

/* collapsed description */
.product-modal-desc {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-primary);
    overflow-wrap: break-word;
    word-break: break-word;
}

/* specs grid in tab */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.specs-grid .spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    min-width: 0;
}
.specs-grid .spec-label { color: var(--text-muted); font-size: 11px; }
.specs-grid .spec-value {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
    overflow-wrap: break-word;
    word-break: break-word;
}

/* empty state in tabs */
.empty-state { text-align: center; padding: 64px 20px; color: var(--text-muted); }
.empty-state p { font-size: 14px; }

/* ===== REVIEWS (inside tab) ===== */
.review-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.review-avg { font-size: 26px; font-weight: 800; color: var(--accent-gold); line-height: 1; }
.review-avg-stars { color: var(--accent-gold); font-size: 13px; letter-spacing: 2px; }
.review-avg-label { font-size: 12px; color: var(--text-muted); }
.review-card {
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.review-meta { display: flex; flex-direction: column; gap: 1px; }
.review-name { font-size: 13px; font-weight: 600; }
.review-stars { color: var(--accent-gold); font-size: 12px; letter-spacing: 1px; }
.review-text { font-size: 13px; color: var(--text-primary); line-height: 1.5; }

/* ===== ENHANCED PRODUCT PAGE ===== */
/* Trust badges row */
.product-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.trust-badge i { font-size: 13px; }
.trust-badge.success { background: rgba(34,197,94,.1); color: #22c55e; border-color: rgba(34,197,94,.2); }
.trust-badge.warning { background: rgba(245,158,11,.1); color: #f59e0b; border-color: rgba(245,158,11,.2); }
.trust-badge.primary { background: rgba(99,102,241,.1); color: #6366f1; border-color: rgba(99,102,241,.2); }
.trust-badge.gold { background: rgba(212,175,55,.1); color: var(--accent-gold); border-color: rgba(212,175,55,.2); }
/* Brand / seller badge */
.product-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 8px;
}
.product-brand-badge i { font-size: 14px; }
/* Price guarantee box */
.price-guarantee {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-muted);
}
.price-guarantee i { font-size: 18px; color: var(--accent-gold); }
.price-guarantee strong { color: var(--text-color); }
/* Free shipping progress */
.shipping-progress {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}
.shipping-progress .sp-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.shipping-progress .sp-label i { color: var(--accent-gold); }
.shipping-progress .sp-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    overflow: hidden;
}
.shipping-progress .sp-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-gold), #f59e0b);
    transition: width .6s ease;
}
/* Social proof counter */
.social-proof {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 12px;
    color: var(--text-muted);
}
.social-proof .sp-avatars {
    display: flex;
}
.social-proof .sp-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    margin-left: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
}
.social-proof .sp-avatar:last-child { margin-left: 0; }
/* Full spec table */
.specs-full-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.specs-full-table tr { border-bottom: 1px solid var(--border-color); }
.specs-full-table tr:last-child { border-bottom: none; }
.specs-full-table td {
    padding: 10px 12px;
    vertical-align: top;
}
.specs-full-table td:first-child {
    width: 140px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}
.specs-full-table td:last-child { color: var(--text-color); }
/* Sticky mobile add-to-cart bar */
.product-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 10px 16px;
    z-index: 100;
    align-items: center;
    gap: 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.product-sticky-bar .sticky-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent-gold);
    white-space: nowrap;
}
.product-sticky-bar .sticky-old-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-sticky-bar .sticky-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.product-sticky-bar .sticky-qty button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-color);
    transition: all .2s;
}
.product-sticky-bar .sticky-qty button:hover { background: var(--accent-gold); color: #fff; }
.product-sticky-bar .sticky-qty .sticky-qty-val {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}
.product-sticky-bar .sticky-cart-btn {
    flex: 1;
    height: 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
}
@media (max-width: 768px) {
    .product-sticky-bar { display: flex; }
}
/* Image zoom lens */
.product-img-zoom-lens {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    background-repeat: no-repeat;
    pointer-events: none;
    display: none;
    z-index: 5;
    opacity: 0;
    transition: opacity .2s;
}
.product-img-zoom-lens.active { opacity: 1; }
.product-main-img:hover .product-img-zoom-lens { display: block; }
/* Review progress bars */
.review-progress {
    margin: 16px 0;
}
.review-progress-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
}
.review-progress-item .rp-label { width: 40px; color: var(--text-muted); text-align: left; }
.review-progress-item .rp-bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    overflow: hidden;
}
.review-progress-item .rp-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--accent-gold);
}
.review-progress-item .rp-count { width: 24px; text-align: center; color: var(--text-muted); }
.review-helpful {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--text-muted);
}
.review-helpful button {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 11px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all .2s;
}
.review-helpful button:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
/* Tab count badge */
.product-tab .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-purple);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    margin-right: 4px;
}
/* Recently viewed */
.recently-viewed-section { margin-top: 24px; }
.recently-viewed-section .section-header { margin-bottom: 12px; }

/* ===== RELATED ===== */
.related-section { margin-top: 24px; }
.related-section .section-header { margin-bottom: 12px; }

/* ===== CART ===== */
.cart-page {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    padding: 20px 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.cart-item:hover {
    border-color: rgba(139, 92, 246, 0.2);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.cart-item-price {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 13px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.cart-item-qty button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.cart-item-qty button:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

.cart-item-qty span {
    padding: 0 16px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-item-remove {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-rose);
    transition: var(--transition-fast);
    font-size: 16px;
}

.cart-item-remove:hover {
    background: rgba(244, 63, 94, 0.1);
}

.cart-summary {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 15px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.summary-row.total {
    color: var(--accent-gold);
    font-size: 17px;
    font-weight: 800;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--border-color);
}

/* ===== CHECKOUT ===== */
.checkout-wrapper {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 0;
}

.checkout-form {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition-fast);
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent-purple);
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

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

/* ===== LOGIN ===== */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    text-align: center;
}

.login-logo {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-glow-purple);
}

.login-card h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.login-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-group i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    z-index: 2;
}

.input-group .form-input {
    padding-right: 48px;
}

.login-footer {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--accent-purple-light);
    font-weight: 600;
}

.login-footer a:hover {
    color: var(--accent-gold-light);
}

.login-footer hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 24px;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 16px;
}

.footer h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 13px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--accent-purple-light);
    padding-right: 4px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* ===== TOAST ===== */
.toast {
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: fadeInUp 0.3s ease;
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    max-width: 420px;
    backdrop-filter: blur(16px);
    direction: rtl;
}

.toast button {
    margin-right: auto;
    font-size: 20px;
    color: inherit;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.toast button:hover { opacity: 1; }

.toast-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.toast-info {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--accent-purple-light);
}

.toast-error {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fb7185;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    z-index: 2001;
    transition: var(--transition-base);
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.mobile-menu-close:hover {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent-rose);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

.mobile-menu-links a i {
    width: 20px;
    color: var(--accent-purple);
}

.mobile-menu-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-glow-purple);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
}

/* ===== FLOATING CHAT BUTTON ===== */
.floating-chat-btn {
    position: fixed;
    bottom: 76px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 14px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #8B5CF6, #EC4899, #F59E0B);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.4);
    z-index: 1000;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: chatPulse 2s infinite;
    direction: ltr;
}
.floating-chat-btn .chat-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
}
.floating-chat-btn .badge-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #8B5CF6;
}
.floating-chat-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 32px rgba(139, 92, 246, 0.6);
}
@keyframes chatPulse {
    0% { box-shadow: 0 4px 24px rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 4px 36px rgba(236, 72, 153, 0.5); }
    100% { box-shadow: 0 4px 24px rgba(139, 92, 246, 0.4); }
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== BLOG HERO ===== */
.blog-hero {
    text-align: center;
    padding: 40px 24px 24px;
    position: relative;
}

.blog-hero h1 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 8px;
}

.blog-hero p {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== FORM VALIDATION ===== */
.form-input.error,
.form-textarea.error {
    border-color: var(--accent-rose);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

.form-error-msg {
    color: var(--accent-rose);
    font-size: 12px;
    margin-top: 4px;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 0;
    border: none;
}

/* ===== PRODUCT CARD ANIMATION ===== */
.add-to-cart-btn {
    background: rgba(139, 92, 246, 0.1) !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
    color: var(--accent-purple-light) !important;
    box-shadow: none !important;
}
.add-to-cart-btn:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
    color: var(--accent-purple-light) !important;
    transform: translateY(-1px);
}

.product-card .add-to-cart-btn.added {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    pointer-events: none;
}

/* ===== LIST VIEW ===== */
.products-list {
    display: flex !important;
    flex-direction: column;
}

.products-list .product-card {
    display: flex;
    flex-direction: row;
}

.products-list .product-card-image {
    width: 160px;
    min-height: 140px;
    height: auto;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
}

.products-list .product-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.products-list .product-card-footer {
    margin-top: auto;
}

/* ===== ARCHIVE FILTER BAR ===== */
.archive-filter-bar {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px 12px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.archive-filter-strip {
    display: flex;
    align-items: center;
    gap: 2px;
}
.archive-filter-strip .category-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2px 0;
    flex: 1;
}
.archive-filter-strip .category-strip::-webkit-scrollbar { display: none; }
.archive-filter-strip .cat-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}
.archive-filter-strip .cat-strip-item:hover {
    border-color: var(--accent-purple-light);
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.08);
}
.archive-filter-strip .cat-strip-item.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}
.archive-filter-strip .cat-strip-item .count {
    padding: 1px 7px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    font-size: 10px;
    line-height: 1.4;
}
.archive-filter-strip .cat-strip-item.active .count {
    background: rgba(255, 255, 255, 0.15);
}
.archive-filter-strip .rail-nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 11px;
}
.archive-filter-strip .rail-nav-btn:hover {
    background: var(--gradient-card);
    color: var(--text-primary);
    border-color: var(--accent-purple-light);
}
.archive-filter-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}
.archive-filter-count {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}
.archive-filter-toggles {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== CATEGORY CARD ===== */
.category-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.category-card:hover {
    border-color: rgba(139,92,246,0.3);
}

.carousel-rail .category-card {
    min-width: 130px;
    flex: 0 0 130px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 6px;
    text-decoration: none;
}
.category-card-image {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.08);
    overflow: hidden;
    flex-shrink: 0;
}
.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}
.category-card-image i {
    font-size: 20px;
    color: var(--accent-purple-light);
}
.category-card-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    padding: 8px 0;
}
.pagination-btn {
    min-width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    padding: 0 10px;
    font-family: inherit;
}
.pagination-btn:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
}
.pagination-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.3);
}
.pagination-btn:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* ===== WOOCOMMERCE PAGINATION ===== */
.woocommerce-pagination {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}
.woocommerce-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.woocommerce-pagination ul.page-numbers li {
    margin: 0;
}
.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
    min-width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-fast);
    padding: 0 10px;
    font-family: inherit;
    line-height: 1;
}
.woocommerce-pagination ul.page-numbers li a:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.06);
}
.woocommerce-pagination ul.page-numbers li span.current {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.3);
}
.woocommerce-pagination ul.page-numbers li a.prev,
.woocommerce-pagination ul.page-numbers li a.next {
    font-size: 14px;
    min-width: 38px;
}
.woocommerce-pagination ul.page-numbers li a.prev:hover,
.woocommerce-pagination ul.page-numbers li a.next:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple-light);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 40px 24px;
}

.empty-state-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease both;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    justify-content: space-around;
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    backdrop-filter: blur(16px);
}

.bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    min-width: 56px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.bottom-nav-btn .nav-icon {
    font-size: 20px;
    position: relative;
}

.bottom-nav-btn .cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    background: var(--accent-rose);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.bottom-nav-btn.active {
    color: var(--accent-purple-light);
}

.bottom-nav-btn:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        position: relative;
        bottom: auto;
        z-index: 1001;
    }
}

/* Search dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    z-index: 10000;
    max-height: 320px;
    overflow-y: auto;
    display: none;
    padding: 8px;
}
.search-dropdown.active { display: block; }
.search-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background .15s;
}
.search-result-item:hover,
.search-focused { background: var(--bg-secondary); }
.search-result-item img,
.search-result-img-placeholder {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
}
.search-result-info { min-width: 0; flex: 1; }
.search-result-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-result-price {
    font-size: 12px;
    color: var(--accent-gold);
    margin-top: 2px;
}
.search-result-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}
.search-result-cat {
    font-size: 10px;
    color: var(--text-muted);
}
.search-result-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
}
.search-result-badge.badge-out {
    background: rgba(100,116,139,.15);
    color: var(--text-muted);
}
.search-result-badge.badge-off {
    background: rgba(239,68,68,.15);
    color: #ef4444;
}
.search-result-old {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 4px;
}
.search-all-link {
    display: block;
    text-align: center;
    padding: 10px;
    margin-top: 4px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-purple);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background .15s;
}
.search-all-link:hover { background: var(--bg-secondary); }
.search-all-link i { font-size: 11px; }

.search-hint {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* ===== COMPREHENSIVE RESPONSIVE ===== */
@media (max-width: 1024px) {
  .shop-sidebar { transform: translateX(100%); }
  .shop-sidebar.mobile-open { transform: translateX(0); }
  .content-column { margin-right: 0; max-width: 100%; }
  .topbar { padding: 0 16px; }

  .section { padding: 12px 16px 20px; }
  .page-header { padding: 24px 16px 16px; }
  .page-title { font-size: 26px; }
  .hero h1 { font-size: 32px; }
  .hero-content { padding: 40px 24px; }
  .product-gallery { max-width: 100%; }
  .product-thumbs { justify-content: center; }
  .cart-item { flex-wrap: wrap; gap: 12px; }
  .cart-item-image { width: 60px; height: 60px; }
  .cart-item-info { min-width: calc(100% - 72px); }
  .category-strip { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .category-strip::-webkit-scrollbar { height: 0; }
  .cat-strip-item { white-space: nowrap; flex-shrink: 0; }
  .featured-section-box { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > .footer-brand { grid-column: 1 / -1; }
  .page-header + div[style*="grid"] { grid-template-columns: 1fr !important; }
  .auth-card { margin: 16px; }
}

@media (max-width: 768px) {
  .topbar { height: 48px; padding: 0 12px; }
  .topbar-left { gap: 8px; }
  .sidebar-toggler { width: 34px; height: 34px; font-size: 16px; }
  .topbar-right { gap: 2px; }
  .topbar-btn { width: 34px; height: 34px; font-size: 17px; }
  .page-header { padding: 20px 12px 12px; }
  .page-title { font-size: 22px; }
  .page-subtitle { font-size: 12px; }
  .section-title { font-size: 17px; }
  .section { padding: 10px 16px 16px; }
  .content-padding { padding: 0 0 24px; }
  .hero { min-height: 320px; }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 13px; }
  .hero-content { padding: 32px 16px; }
  .hero-badge { font-size: 11px; padding: 4px 12px; }
  .hero-features { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .hero-feature { font-size: 11px; padding: 4px 10px; }
  .hero-actions { flex-direction: column; gap: 8px; }
  .hero-actions .btn { width: 100%; justify-content: center; font-size: 13px; padding: 10px 20px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .product-card { border-radius: var(--radius-sm); }
  .product-card-image { height: 150px; }
  .product-card-body { padding: 10px; }
  .product-card-title { font-size: 12px; }
  .product-card-price { font-size: 14px; }
  .product-card-meta { gap: 8px; font-size: 11px; padding: 4px 8px; }
  .product-card-actions { flex-direction: column; gap: 6px; }
  .add-to-cart-btn { padding: 6px 10px; font-size: 11px; }
  .carousel-rail .product-card { flex: 0 0 170px; min-width: 170px; }
  .rail-nav-btn { width: 34px; height: 34px; font-size: 14px; }
  .categories-rail-item { min-width: 80px; padding: 10px 12px; }
  .category-rail-icon { font-size: 22px; }
  .category-rail-name { font-size: 10px; }
  .cat-strip-item { font-size: 11px; padding: 6px 12px; }
  .benefits-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .benefit-card { padding: 20px 16px; }
  .benefit-icon { font-size: 28px; }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-card { flex-direction: column; }
  .blog-card-image { width: 100%; height: 180px; }
  .blog-card-body { padding: 14px; }
  .blog-card-title { font-size: 15px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 12px; }
  .testimonial-card { padding: 20px; }
  .featured-section-box { padding: 20px 16px; border-radius: var(--radius-lg); }
  .featured-section-box .section { padding: 0; }
  .home-tonight .tonight-header h3 { font-size: 18px; }
  .home-tonight .filter-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .home-tonight .filter-label { min-width: auto; }
  .home-tonight .tonight-filters { gap: 12px; }
  .discovery-filters { grid-template-columns: 1fr; gap: 16px; }
  .tonight-filters-grid { grid-template-columns: 1fr; gap: 16px; }
  .single-product { flex-direction: column; gap: 16px; }
  .single-product .product-gallery { flex: none; max-width: 100%; }
  .single-product .product-details { flex: none; }
  .product-main-img { aspect-ratio: 4/3; height: auto; max-height: none; padding: 12px; }
  .product-thumbs { gap: 8px; }
  .product-thumb { width: 56px; height: 56px; }
  .product-name { font-size: 20px; }
  .product-price { font-size: 22px; }
  .product-actions { flex-direction: column; gap: 10px; }
  .qty-selector { width: 100%; justify-content: center; }
  .product-actions .add-to-cart-btn { width: 100%; }
  .product-tabs { overflow-x: auto; gap: 0; }
  .product-tab { white-space: nowrap; padding: 10px 16px; font-size: 12px; }
  .specs-grid { grid-template-columns: 1fr; }
  .cart-page { grid-template-columns: 1fr; gap: 16px; }
  .cart-item { flex-direction: column; align-items: flex-start; }
  .cart-item-image { width: 80px; height: 80px; }
  .cart-item-info { min-width: 0; width: 100%; }
  .cart-item-name { font-size: 13px; }
  .cart-item-price { font-size: 14px; }
  .cart-item-qty { margin-right: 0; }
  .cart-summary { position: static; margin-top: 16px; padding: 20px; }
  .checkout-form { padding: 20px 16px; }
  .checkout-form h3 { font-size: 16px; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar-card { padding: 16px; }
  .profile-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .profile-nav-btn { flex: 0 0 auto; font-size: 12px; padding: 8px 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .welcome-card { padding: 20px; }
  .welcome-card h3 { font-size: 17px; }
  .order-card { padding: 12px; }
  .order-card-header { flex-wrap: wrap; gap: 6px; }
  .cart-item-row { flex-wrap: wrap; }
  .guest-layout { grid-template-columns: 1fr; }
  .chat-container { height: calc(100vh - 160px); border-radius: var(--radius-lg); }
  .chat-header { padding: 14px 16px; }
  .chat-messages { padding: 14px 16px; }
  .chat-msg { max-width: 90%; padding: 10px 14px; font-size: 13px; }
  .chat-suggestions { padding: 8px 16px; }
  .chat-suggestions button { font-size: 11px; padding: 6px 12px; }
  .chat-input-bar { padding: 12px 16px; gap: 8px; }
  .chat-input-bar textarea { height: 38px; font-size: 13px; padding: 8px 12px; }
  .chat-input-bar button { width: 38px; height: 38px; font-size: 14px; }
  .page-header + div[style*="grid"] { grid-template-columns: 1fr !important; }
  .faq-section details { padding: 14px 16px; }
  .faq-section summary { font-size: 13px; }
  .footer { padding: 32px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid > .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .auth-wrapper { padding: 16px; }
  .auth-card { padding: 28px 20px; }
  .auth-card h2 { font-size: 20px; }
  .auth-tabs { margin-bottom: 16px; }
  .auth-tab { font-size: 13px; padding: 8px; }
  .input-group .form-input { padding: 12px 40px 12px 12px; font-size: 13px; }
  .mobile-menu { width: 280px; }
  .mobile-menu-links { gap: 2px; }
  .mobile-menu-link { padding: 10px 14px; font-size: 13px; }
  .bottom-nav { padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav-btn { padding: 2px 8px; min-width: 48px; }
  .bottom-nav-btn .nav-icon { font-size: 18px; }
  .bottom-nav-btn span:not(.cart-badge) { font-size: 9px; }
  .search-dropdown { max-height: 280px; }
  .search-result-item { padding: 8px; }
  .search-result-img-placeholder, .search-result-item img { width: 36px; height: 36px; }
  .search-result-name { font-size: 12px; }
  .toast { font-size: 12px; padding: 10px 14px; }
  .floating-chat-btn { bottom: 110px; left: 12px; padding: 8px 14px; font-size: 12px; }
  .floating-chat-label { display: none; }
  .scroll-top-btn, .scroll-top { bottom: 110px; right: 12px; width: 40px; height: 40px; font-size: 16px; }
  .quick-categories-row { gap: 24px; }
  .quick-cat-circle-icon { width: 64px; height: 64px; font-size: 26px; }
  .quick-cat-circle-title { font-size: 12px; }
  .tonight-filters { flex-direction: column; gap: 12px; }
  .container { padding: 0 12px; }
  .page-wrapper { padding: 0; }
  .product-modal { width: 95%; max-height: 90vh; border-radius: var(--radius-lg); }
  .product-modal-image { max-height: 220px; }
  .product-modal-info { padding: 16px; }
  .product-modal-name { font-size: 17px; }
  .product-modal-price { font-size: 18px; }
  .product-modal-meta { grid-template-columns: 1fr; }
  .product-modal-actions .actions-row { flex-wrap: wrap; }
  .product-modal-actions .btn { height: 36px; font-size: 12px; }
  .share-popover { bottom: 100%; left: 0; }

  /* Page templates responsive */
  .page-template-page-contact .page-wrapper > .container > div[style*="grid-template-columns"],
  .woocommerce-checkout .checkout-page > form > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .page-template-page-about .page-wrapper > .container > div > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .cart-page { padding: 16px !important; }
  .cart-page h1 { font-size: 20px; }
  .woocommerce-cart-form__cart-item { flex-wrap: wrap; }
  .woocommerce-cart-form__cart-item > div:nth-child(2) { min-width: calc(100% - 96px); }
  .woocommerce-cart-form__cart-item > div:nth-child(3) { width: 100%; }
  .woocommerce-cart-form__cart-item > div:nth-child(4) { min-width: auto; }
  .checkout-page { padding: 16px !important; }
  .checkout-page h1 { font-size: 20px; }
  .books-page .books-filter-bar { flex-direction: column; gap: 12px; }
  .books-page .books-filter-bar .search-box { min-width: 100% !important; width: 100%; }
  .books-page .books-filter-bar .category-strip { flex-wrap: nowrap; overflow-x: auto; }
  .chat-page { padding: 16px !important; height: calc(100vh - 140px) !important; }
  .chat-page h1 { font-size: 18px; }
  .club-page { padding: 16px !important; }
  .club-page .club-header h1 { font-size: 22px; }
  .club-page .club-stats > div { flex-direction: column; align-items: stretch !important; text-align: center; }
  .tonight-page { padding: 16px !important; }
  .tonight-page h1 { font-size: 22px; }
  .discovery-page { padding: 16px !important; }
  .discovery-page h1 { font-size: 22px; }
  .featured-section-box[style*="padding:32px"] { padding: 20px 16px !important; }
  .category-card[style*="padding:12px 16px"] > div { flex-direction: column; gap: 12px !important; }
  .category-card[style*="padding:12px 16px"] .carousel-wrapper { flex: none !important; width: 100%; }
  .category-card[style*="padding:12px 16px"] > div > div:last-child { flex: none !important; width: 100%; justify-content: space-between !important; }
  .product-tabs-wrapper, .related-section { padding: 0 16px !important; }
  .single-post article > div > div[style*="padding:32px"] { padding: 16px !important; }
  .single-post article > div > div[style*="padding:32px"] h1 { font-size: 22px; }
  .single-post article > div > div[style*="height:360px"] { height: 200px !important; }
  .related-products-grid { display: none; }
  .related-carousel { display: block; }
  .my-account-layout { grid-template-columns: 1fr; gap: 16px; }
  .my-account-nav { position: static; }
  .my-account-nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .my-account-nav a { padding: 8px 12px; font-size: 12px; }
  .my-account-nav a i { display: none; }
  .my-account-content { padding: 16px; }
  .my-account-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .my-account-form-row { grid-template-columns: 1fr; }
  .my-account-detail-grid { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; gap: 16px; }
  .profile-sidebar-card { padding: 16px; }
  .profile-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .profile-nav-btn { flex: 0 0 auto; font-size: 12px; padding: 8px 12px; }
  .guest-layout { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .page-title { font-size: 18px; }
  .page-header { padding: 16px 12px 12px; }
  .section-title { font-size: 15px; }
  .section { padding: 8px 12px 12px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-card-image { height: 130px; }
  .product-card-title { font-size: 11px; }
  .product-card-price { font-size: 13px; }
  .product-card-meta { gap: 4px; font-size: 9px; padding: 2px 6px; flex-wrap: wrap; }
  .carousel-rail .product-card { flex: 0 0 155px; min-width: 155px; }
  .hero { min-height: 280px; }
  .hero h1 { font-size: 20px; }
  .hero p { font-size: 12px; }
  .hero-content { padding: 24px 12px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .category-card { padding: 14px; }
  .carousel-rail .category-card { min-width: 110px; flex: 0 0 110px; padding: 10px 4px; gap: 6px; }
  .carousel-rail .category-card .category-card-image { width: 36px; height: 36px; }
  .carousel-rail .category-card .category-card-image i { font-size: 16px; }
  .carousel-rail .category-card .category-card-name { font-size: 10px; }
  .archive-filter-bar { padding: 8px 10px 10px; gap: 6px; }
  .archive-filter-strip .cat-strip-item { font-size: 11px; padding: 4px 11px; }
  .archive-filter-strip .rail-nav-btn { width: 24px; height: 24px; font-size: 10px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-card { padding: 16px; }
  .benefit-icon { font-size: 24px; }
  .blog-card-image { height: 150px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .profile-nav-btn { font-size: 11px; padding: 6px 10px; }
  .product-main-img { aspect-ratio: 4/3; height: auto; max-height: none; padding: 8px; }
  .product-name { font-size: 17px; }
  .product-price { font-size: 18px; }
  .cart-item-image { width: 64px; height: 64px; }
  .chat-container { height: calc(100vh - 140px); }
  .chat-messages { padding: 10px 12px; gap: 12px; }
  .chat-msg { max-width: 95%; font-size: 12px; padding: 8px 12px; }
  .chat-input-bar { padding: 8px 12px; }
  .auth-card { padding: 24px 16px; }
  .auth-card h2 { font-size: 18px; }
  .auth-card > p { font-size: 12px; }
  .footer { padding: 24px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-grid > .footer-brand { grid-column: 1 / -1; }
  .footer-col h3 { font-size: 14px; }
  .bottom-nav-btn { padding: 2px 6px; min-width: 44px; }
  .bottom-nav-btn .nav-icon { font-size: 16px; }
  .floating-chat-btn { bottom: 100px; left: 8px; padding: 6px 12px; font-size: 11px; }
  .scroll-top-btn, .scroll-top { bottom: 100px; right: 8px; width: 36px; height: 36px; font-size: 14px; }
  .featured-section-box { padding: 16px 12px; margin-bottom: 24px; }
  .home-tonight .tonight-header h3 { font-size: 16px; }
  .home-tonight .tonight-desc { font-size: 12px; }
  .search-dropdown { max-height: 240px; }
  .books-page > div[style*="padding:48px 24px"] { padding: 32px 16px !important; }
  .books-page > div[style*="padding:48px 24px"] h1 { font-size: 24px; }
  .books-page > div[style*="width:100%;padding:16px 24px"] { padding: 12px 12px !important; }
  .chat-page #chatMessages { padding: 12px !important; }
  .chat-page .suggestions button { font-size: 11px; padding: 4px 10px; }
  .chat-page .chat-input-bar { padding: 6px !important; }
  .chat-page .chat-input-bar input { padding: 10px 12px !important; font-size: 13px; }
  .club-page .club-levels { grid-template-columns: repeat(2, 1fr); }
  .club-page .club-header span[style*="font-size:48px"] { font-size: 36px !important; }
  .discovery-page div[style*="grid-template-columns:repeat(auto-fit,minmax(120px,1fr))"] { grid-template-columns: repeat(2, 1fr) !important; }
  .tonight-page .tonight-filters { padding: 16px !important; }
  .page-template-page-contact .page-wrapper > .container > div[style*="grid-template-columns"] > div:last-child { gap: 12px; }
  .api-product-main-image { height: 180px !important; }
  .api-product-container { padding: 8px !important; gap: 12px !important; }
  .api-product-title { font-size: 15px; }
  .api-product-price { font-size: 22px; }
  .my-account-grid { grid-template-columns: 1fr; }
  .my-account-header { font-size: 18px; }
  .my-account-greeting { flex-direction: column; text-align: center; }
  .my-account-shortcut { padding: 12px; }
  .my-account-table { font-size: 12px; }
  .my-account-table th, .my-account-table td { padding: 8px 6px; }
  .my-account-table td:last-child { text-align: center; }
  .my-account-table .btn-sm { padding: 4px 10px; font-size: 10px; }
  .profile-avatar { width: 64px; height: 64px; font-size: 26px; }
  .profile-name { font-size: 16px; }
  .club-stats { grid-template-columns: 1fr 1fr; }
  .club-levels { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-card-image { height: 180px; }
  .stats-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .carousel-rail .product-card { flex: 0 0 100%; min-width: 0; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 18px; }
  .page-title { font-size: 16px; }
  .section-title { font-size: 14px; }
  .auth-card { padding: 20px 12px; }
  .auth-card h2 { font-size: 16px; }
  .category-strip .cat-strip-item { font-size: 10px; padding: 4px 8px; }
  .bottom-nav-btn { min-width: 40px; }
  .bottom-nav-btn span:not(.cart-badge) { font-size: 8px; }
  .bottom-nav-btn .nav-icon { font-size: 15px; }
  .club-page .club-levels { grid-template-columns: 1fr 1fr; }
  .discovery-page div[style*="grid-template-columns:repeat(auto-fit,minmax(120px,1fr))"] { grid-template-columns: 1fr 1fr !important; }
  .products-grid .product-card-image { height: 160px; }
  .single-post article > div > div[style*="padding:32px"] h1 { font-size: 18px; }
  .single-post article > div > div[style*="height:360px"] { height: 160px !important; }
  .api-product-main-image { height: 150px !important; }
  .api-product-container { padding: 6px !important; }
  .api-product-single { padding: 8px; }
}

/* Only dark theme (default) is kept */

/* ===== DARK THEME: Force light text for all WooCommerce product content ===== */
.product-short-desc h1,
.product-short-desc h2,
.product-short-desc h3,
.product-short-desc h4,
.product-short-desc h5,
.product-short-desc h6,
.product-short-desc p,
.product-short-desc li,
.product-short-desc ul,
.product-short-desc ol,
.product-short-desc span,
.product-short-desc strong,
.product-short-desc b,
.product-short-desc em,
.product-short-desc a,
.product-short-desc blockquote,
.product-short-desc pre,
.product-short-desc div,
.product-modal-desc h1,
.product-modal-desc h2,
.product-modal-desc h3,
.product-modal-desc h4,
.product-modal-desc h5,
.product-modal-desc h6,
.product-modal-desc p,
.product-modal-desc li,
.product-modal-desc ul,
.product-modal-desc ol,
.product-modal-desc span,
.product-modal-desc strong,
.product-modal-desc b,
.product-modal-desc em,
.product-modal-desc a,
.product-modal-desc blockquote,
.product-modal-desc pre,
.product-modal-desc div {
    color: inherit !important;
}

/* Dark theme text overrides for WooCommerce common components */
.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb a,
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
    color: var(--text-primary) !important;
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection,
.select2-dropdown {
    color: var(--text-primary) !important;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    color: var(--text-primary) !important;
}

.woocommerce #payment div.payment_box,
.woocommerce-page #payment div.payment_box {
    color: var(--text-primary) !important;
}

.woocommerce small,
.woocommerce .create-account small,
.woocommerce .cart_totals p small,
.woocommerce .cart_totals table small {
    color: var(--text-secondary) !important;
}

.woocommerce .star-rating,
.woocommerce .star-rating span {
    color: var(--accent-gold) !important;
}

/* ===== FULL-SCREEN PRODUCT LAYOUT ===== */
body.tax-product_cat .main-content,
body.tax-product_tag .main-content,
body.post-type-archive-product .main-content {
    display: flex;
    flex-direction: column;
}
body.tax-product_cat .content-area,
body.tax-product_tag .content-area,
body.post-type-archive-product .content-area {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 10px 0;
}
body.tax-product_cat .woocommerce-page-content,
body.tax-product_tag .woocommerce-page-content,
body.post-type-archive-product .woocommerce-page-content {
    flex: 1;
    padding-bottom: 0 !important;
}
