/* ══════════════════════════════════════════
   denyStore — Store CSS
   Light & Dark theme via [data-theme] attr
══════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --primary-light: rgba(124,58,237,0.1);
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

[data-theme="light"] {
  --bg: #f9fafb;
  --bg2: #f3f4f6;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --text2: #374151;
  --muted: #6b7280;
  --header-bg: #ffffff;
  --footer-bg: #111827;
  --footer-text: #d1d5db;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
  --mode-banner-bg: #d97706;
}

[data-theme="dark"] {
  --bg: #0f1117;
  --bg2: #1a1d27;
  --card: #1e2130;
  --border: #2d3148;
  --text: #f1f5f9;
  --text2: #cbd5e1;
  --muted: #94a3b8;
  --header-bg: #151824;
  --footer-bg: #0a0c14;
  --footer-text: #64748b;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --mode-banner-bg: #92400e;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; transition: background var(--transition), color var(--transition); }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }
img { max-width: 100%; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Layout ── */
#main-content { flex: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 32px 24px; width: 100%; }

/* ── Header ── */
#site-header { background: var(--header-bg); border-bottom: 1px solid var(--border); height: 64px; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 8px rgba(0,0,0,0.06); transition: background var(--transition), border-color var(--transition); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo-wrap { display: flex; align-items: center; gap: 8px; }
.logo-text { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo-img { height: 40px; max-width: 160px; object-fit: contain; }
.header-nav { display: flex; gap: 6px; align-items: center; }
.nav-link { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text2); transition: background var(--transition); }
.nav-link:hover { background: var(--bg2); }
.theme-toggle { font-size: 16px; }

/* ── Mode Banner ── */
.mode-banner { background: var(--mode-banner-bg); color: #fff; padding: 10px 24px; text-align: center; font-size: 13px; font-weight: 600; }

/* ── Footer ── */
#site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 32px 24px; text-align: center; font-size: 14px; margin-top: auto; }
.footer-inner { }
.footer-name { font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 6px; }
.footer-copy { font-size: 12px; opacity: 0.6; }

/* ── Buttons ── */
.btn { padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: all 0.15s; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--muted); border: none; }
.btn-ghost:hover { background: var(--bg2); color: var(--text); }
.btn-white { background: #fff; color: var(--primary); font-size: 15px; padding: 12px 28px; }
.btn-white:hover { background: #f3f4f6; }
.btn-hero-outline { background: rgba(255,255,255,0.15); color: #fff; border: 2px solid rgba(255,255,255,0.5); font-size: 15px; padding: 12px 24px; }
.btn-hero-outline:hover { background: rgba(255,255,255,0.25); }
.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Cards ── */
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-card); transition: background var(--transition), border-color var(--transition); }
.card-body { padding: 24px; }
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.card-sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.form-control { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; background: var(--card); color: var(--text); transition: border 0.15s, background var(--transition); }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: #dc2626; font-size: 13px; padding: 8px 12px; background: #fee2e2; border-radius: 8px; margin-top: 8px; }
.form-success { color: #16a34a; font-size: 13px; padding: 8px 12px; background: #dcfce7; border-radius: 8px; }

/* ── Badges ── */
.badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-danger { background: #fee2e2; color: #dc2626; }
.badge-warning { background: #fef3c7; color: #d97706; }
.badge-gray { background: var(--bg2); color: var(--muted); }
.badge-info { background: #dbeafe; color: #1d4ed8; }

/* ── Toast ── */
#toast-container { position: fixed; top: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--text); color: var(--bg); padding: 14px 20px; border-radius: 10px; font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,0.2); max-width: 360px; animation: slideIn 0.3s ease; display: flex; align-items: center; gap: 10px; }
.toast.success { background: #16a34a; color: #fff; }
.toast.error { background: #dc2626; color: #fff; }
.toast.warning { background: #d97706; color: #fff; }
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeIn 0.2s ease; }
.modal { background: var(--card); border-radius: var(--radius); width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,0.3); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Cart Drawer ── */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 200; }
.cart-drawer { position: fixed; top: 0; right: 0; width: 380px; height: 100vh; background: var(--card); z-index: 201; box-shadow: -8px 0 32px rgba(0,0,0,0.2); display: flex; flex-direction: column; transition: background var(--transition); }
.cart-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cart-title { font-size: 18px; font-weight: 700; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-thumb { width: 48px; height: 48px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: var(--bg2); flex-shrink: 0; }
.cart-item-details { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 14px; }
.cart-item-price { color: var(--primary); font-weight: 700; font-size: 15px; }
.cart-item-remove { color: var(--muted); font-size: 18px; cursor: pointer; }
.cart-item-remove:hover { color: #dc2626; }
.coupon-row { display: flex; gap: 8px; margin-bottom: 12px; }
.coupon-row input { flex: 1; }
.cart-totals-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.cart-totals-total { font-size: 18px; font-weight: 800; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px; }
.cart-btn { position: relative; }
.cart-badge { position: absolute; top: -6px; right: -6px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 800; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ── Hero ── */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: 80px 40px; text-align: center; margin-bottom: 0; }
.hero h1 { font-size: 52px; font-weight: 900; margin-bottom: 16px; letter-spacing: -1px; text-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.7); }
.hero p { font-size: 18px; opacity: 0.95; margin-bottom: 32px; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.hero-product { padding: 60px 40px; }
.hero-product-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; text-align: left; }
.hero-badge { background: rgba(255,255,255,0.2); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; display: inline-block; margin-bottom: 12px; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.hero-product-text h1 { font-size: 40px; font-weight: 900; margin-bottom: 12px; text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.8); }
.hero-product-text p { font-size: 16px; opacity: 0.95; margin-bottom: 24px; max-width: 520px; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-product-emoji { font-size: 100px; opacity: 0.9; text-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ── Section Headers ── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 28px; font-weight: 800; }
.section-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ── Product Grid ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s, background var(--transition); cursor: pointer; position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }
.product-thumb { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 64px; background: var(--bg2); transition: background var(--transition); }
.sale-badge { position: absolute; top: 10px; left: 10px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 20px; z-index: 2; letter-spacing: 0.5px; }
.product-info { padding: 16px; }
.product-name { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.product-desc { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-size: 20px; font-weight: 800; color: var(--primary); }
.product-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }

/* ── Product Detail ── */
.product-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; }
.product-detail-thumb { font-size: 96px; margin-bottom: 20px; }
.product-detail-name { font-size: 36px; font-weight: 900; margin-bottom: 12px; }
.product-detail-desc { color: var(--text2); line-height: 1.7; margin-top: 16px; font-size: 15px; }
.product-files { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.product-files h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 12px; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--bg2); border-radius: 8px; margin-bottom: 6px; font-size: 14px; }
.file-name { font-weight: 600; flex: 1; }
.file-size { color: var(--muted); font-size: 12px; }
.product-purchase-card { }
.product-price-lg { font-size: 40px; font-weight: 900; color: var(--primary); }
.product-price-sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; margin-top: 4px; }
.product-perks { list-style: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.product-perks li { font-size: 13px; color: var(--muted); padding: 5px 0; }

/* ── Search & Filter ── */
.search-bar { display: flex; gap: 12px; margin-bottom: 24px; }
.search-bar input { flex: 1; }
.cat-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-pill { padding: 6px 16px; border-radius: 999px; background: var(--bg2); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; border: 2px solid transparent; }
.cat-pill:hover { border-color: var(--primary); color: var(--primary); }
.cat-pill.active { background: var(--primary); color: #fff; }

/* ── Categories Grid ── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 16px; margin-top: 20px; }
.cat-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; text-align: center; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background var(--transition); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.cat-icon { font-size: 36px; margin-bottom: 8px; }
.cat-name { font-weight: 700; font-size: 15px; }
.cat-count { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ── Auth ── */
.auth-wrap { max-width: 440px; margin: 40px auto; }
.auth-tabs { display: flex; margin-bottom: 24px; border-bottom: 2px solid var(--border); }
.auth-tab { flex: 1; padding: 12px; text-align: center; font-weight: 600; cursor: pointer; color: var(--muted); background: none; border: none; font-size: 14px; font-family: inherit; }
.auth-tab.active { color: var(--primary); border-bottom: 2px solid var(--primary); margin-bottom: -2px; }
.auth-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; }

/* ── Account ── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.account-nav { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.nav-btn { padding: 8px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: 2px solid var(--border); background: var(--card); color: var(--muted); transition: all 0.15s; }
.nav-btn:hover, .nav-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card { background: var(--card); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); transition: background var(--transition); }
.stat-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 800; }

/* ── Downloads ── */
.download-item { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--bg2); border-radius: 10px; margin-bottom: 10px; transition: background var(--transition); }
.download-icon { font-size: 32px; }
.download-info { flex: 1; }
.download-name { font-weight: 700; }
.download-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── Table ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); border-bottom: 2px solid var(--border); }
td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg2); }

/* ── Checkout ── */
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; }
.gateway-list { display: flex; flex-direction: column; gap: 10px; }
.gateway-option { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px solid var(--border); border-radius: 10px; cursor: pointer; font-size: 14px; transition: border-color 0.15s; }
.gateway-option:hover { border-color: var(--primary); }
.gateway-name { font-weight: 600; }
.gateway-sub { color: var(--muted); font-size: 12px; margin-left: auto; }
.test-mode-notice { margin-top: 16px; padding: 12px; background: #fef3c7; border-radius: 8px; font-size: 13px; color: #92400e; }
.user-pill { display: flex; align-items: center; gap: 12px; }
.order-summary { }
.order-items-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.order-total-row { margin-top: 12px; font-size: 18px; font-weight: 800; text-align: right; color: var(--primary); }
.order-item-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }

/* ── Order Success ── */
.success-wrap { max-width: 600px; margin: 40px auto; text-align: center; }
.success-emoji { font-size: 80px; margin-bottom: 16px; }
.success-wrap h1 { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.success-wrap p { color: var(--muted); margin-bottom: 32px; }

/* ── Theme Picker ── */
.theme-picker { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.theme-option { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); }
.theme-option.selected { color: var(--primary); }
.theme-preview { width: 100px; height: 70px; border-radius: 8px; overflow: hidden; border: 3px solid transparent; transition: border-color 0.15s; }
.theme-option.selected .theme-preview { border-color: var(--primary); }
.tp-header { height: 16px; margin-bottom: 6px; }
.tp-body { display: flex; gap: 4px; padding: 0 6px; }
.tp-card { flex: 1; height: 36px; border-radius: 4px; }
.theme-preview-light { background: #f9fafb; }
.theme-preview-light .tp-header { background: #fff; border-bottom: 1px solid #e5e7eb; }
.theme-preview-light .tp-card { background: #fff; border: 1px solid #e5e7eb; }
.theme-preview-dark { background: #0f1117; }
.theme-preview-dark .tp-header { background: #151824; border-bottom: 1px solid #2d3148; }
.theme-preview-dark .tp-card { background: #1e2130; border: 1px solid #2d3148; }
.theme-preview-system { background: linear-gradient(90deg, #f9fafb 50%, #0f1117 50%); }
.theme-preview-system .tp-header { background: linear-gradient(90deg, #fff 50%, #151824 50%); height: 16px; margin-bottom: 6px; }
.theme-preview-system .tp-card { background: linear-gradient(90deg, #fff 50%, #1e2130 50%); }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--muted); }

/* ── Switch Toggle ── */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #ccc; border-radius: 24px; cursor: pointer; transition: 0.2s; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.2s; }
input:checked + .slider { background: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .hero-product-inner { grid-template-columns: 1fr; }
  .hero-product-emoji { display: none; }
}
@media (max-width: 600px) {
  .header-nav .btn:not(.cart-btn):not(.theme-toggle) { display: none; }
  .cart-drawer { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 48px 24px; }
  .hero h1 { font-size: 28px; }
}

.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ── Store Sidebar & Subcategory Filter ───────────────────────── */
.store-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  align-self: flex-start;
}

.sidebar-filter-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-filter-section:last-child {
  border-bottom: none;
}

.sidebar-filter-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 10px;
}

.sidebar-cat-link {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.14s;
  margin-bottom: 2px;
}

.sidebar-cat-link:hover { background: var(--bg-hover); }
.sidebar-cat-link.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

.sidebar-cat-group { margin-bottom: 2px; }

.sidebar-cat-main {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.14s;
}

.sidebar-cat-main:hover { background: var(--bg-hover); }
.sidebar-cat-main.active { background: var(--primary-light); color: var(--primary); }

.sidebar-subcats {
  padding-left: 16px;
  margin-top: 2px;
  border-left: 2px solid var(--primary-light);
  margin-left: 12px;
}

.sidebar-subcat-link {
  display: block;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.12s;
  margin-bottom: 1px;
}

.sidebar-subcat-link:hover { color: var(--text); background: var(--bg-hover); }
.sidebar-subcat-link.active { color: var(--primary); font-weight: 600; background: var(--primary-light); }

/* Subcategory pill row */
.subcat-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.subcat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  background: var(--card);
  transition: all 0.14s;
  white-space: nowrap;
}

.subcat-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.subcat-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* applyFilter JS helper needs this */
#store-search { width: 100%; }

@media (max-width: 768px) {
  .store-sidebar { display: none; }
  .subcat-pill-row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
}

/* ── Hero layered background ───────────────── */
.hero { position: relative; overflow: hidden; }
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-color-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero > h1,
.hero > p,
.hero > a,
.hero > div:not(.hero-bg-img):not(.hero-color-overlay) {
  position: relative;
  z-index: 1;
}

/* ── Product image in card ──────────────────── */
.product-thumb-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  display: block;
}
.product-thumb-img-sm {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}

/* ── Email verification banner ──────────────── */
.verify-banner {
  background: linear-gradient(90deg, #f59e0b22, #f59e0b11);
  border: 1px solid #f59e0b66;
  border-radius: var(--radius);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 14px;
}
.verify-banner strong { color: #b45309; }

/* ── Profile Tab — v0.9c ──────────────────────── */
.pf-section { margin-bottom: 0; }
.pf-section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Payout cards */
.pf-payout-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s;
}
.pf-payout-active { border-color: #16a34a; }
.pf-payout-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg2);
}
.pf-payout-card-body {
  padding: 16px 18px;
}
.pf-payout-icon { font-size: 26px; }
.pf-payout-name { font-weight: 800; font-size: 14px; }
.pf-payout-sub  { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pf-payout-status { margin-left: auto; }

/* Status badges */
.pf-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.pf-status-active  { background: #dcfce7; color: #15803d; }
.pf-status-pending { background: #fef9c3; color: #854d0e; }
.pf-status-none    { background: #f3f4f6; color: #9ca3af; }

/* Inline success/warn rows */
.pf-success-row, .pf-warn-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.pf-success-row { background: #f0fdf4; border: 1px solid #bbf7d0; }
.pf-warn-row    { background: #fffbeb; border: 1px solid #fde68a; }

/* Feature bullets in Stripe onboarding */
.pf-feature-item {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  background: var(--bg2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Info box */
.pf-info-box {
  padding: 12px 16px;
  background: var(--bg2);
  border-radius: 10px;
  border-left: 3px solid var(--primary);
}

@media(max-width:600px) {
  .pf-payout-card-header { flex-wrap: wrap; }
  .pf-payout-status { margin-left: 0; }
}
