/* ============================================
   Pure Premium — Stylesheet
   Dark Monochrome Minimal
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ---- Variables ---- */
:root {
  --bg:           #0a0a0a;
  --bg2:          #0d0d0d;
  --bg3:          #111111;
  --card:         #111111;
  --card-hover:   #161616;
  --border:       #1e1e1e;
  --border-hover: #333333;
  --primary:      #ffffff;
  --red:          #f43f5e;
  --gold:         #f59e0b;
  --text:         #e2e8f0;
  --text-muted:   #555555;
  --text-faint:   #2a2a2a;
  --radius:       8px;
  --radius-lg:    12px;
  --shadow:       0 4px 20px rgba(0,0,0,0.5);
  --transition:   0.15s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--text); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }

/* ---- Navbar ---- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; gap: 12px;
}
.navbar-brand {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap; flex-shrink: 0;
}
.brand-icon {
  width: 24px; height: 24px;
  background: #fff; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #000; flex-shrink: 0;
}
.navbar-actions {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.nav-link {
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  padding: 5px 10px; border-radius: 5px;
  transition: color var(--transition); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.cart-btn {
  position: relative; display: flex; align-items: center; gap: 6px;
  color: #777777; font-size: 13px;
  padding: 5px 10px; border-radius: 5px;
  background: transparent !important;
  border: 1px solid #1e1e1e; transition: all 0.15s ease;
  cursor: pointer;
}
.cart-btn svg { color: #777777; stroke: #777777; }
.cart-btn:hover {
  background: #1a1a1a !important;
  color: #cccccc !important;
  border-color: #333333;
}
.cart-btn:hover svg { color: #cccccc; stroke: #cccccc; }
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  background: #fff; color: #000;
  font-size: 9px; font-weight: 800;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span {
  width: 20px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed;
  top: 56px; left: 0; right: 0; bottom: 0;
  background: rgba(10,10,10,0.98);
  z-index: 999; flex-direction: column;
  padding: 24px 20px; gap: 8px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: 14px 16px;
  font-size: 16px; font-weight: 600; color: var(--text-muted);
  border-radius: 8px; border: 1px solid transparent;
  transition: all var(--transition);
}
.mobile-menu a:hover { color: #fff; border-color: var(--border); background: var(--bg3); }
.mobile-menu .divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius); border: none;
  cursor: pointer; transition: all var(--transition);
  text-align: center; white-space: nowrap; text-decoration: none;
}
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #e8e8e8; color: #000; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-hover); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #e03050; color: #fff; }
.btn-warning { background: var(--gold); color: #000; }
.btn-sm { font-size: 12px; padding: 6px 12px; }
.btn-lg { font-size: 15px; padding: 13px 28px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- Cards ---- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color var(--transition);
}
.card:hover { border-color: var(--border-hover); }
.card-body { padding: 24px; }
.card-head { padding: 16px 24px; border-bottom: 1px solid var(--border); }
.card-foot { padding: 16px 24px; border-top: 1px solid var(--border); }

/* ---- Product Cards ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.2s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-2px); border-color: var(--border-hover); }
.product-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  font-size: 13px; color: var(--text-faint); font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--gold); color: #000;
  font-size: 9px; font-weight: 800; letter-spacing: 0.5px;
  padding: 3px 8px; border-radius: 4px; text-transform: uppercase;
}
.product-badge.hot { background: var(--red); color: #fff; }
.product-badge.new { background: #fff; color: #000; }
.product-badge.premium, .product-badge.best\.value { background: var(--gold); color: #000; }
.product-badge.rare { background: #333; color: #fff; }
.product-badge.sale { background: var(--red); color: #fff; }
.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 10px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.product-name { font-family: 'Rajdhani', sans-serif; font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.product-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-family: 'Rajdhani', sans-serif; font-size: 22px; font-weight: 700; color: var(--text); }
.product-price .original { font-size: 13px; color: var(--text-faint); text-decoration: line-through; margin-right: 5px; }
.stock-indicator { font-size: 11px; color: var(--text-faint); margin-top: 3px; }
.stock-low { color: var(--gold) !important; }
.stock-out { color: var(--red) !important; }

/* ---- Hero ---- */
.hero {
  padding: 80px 20px 60px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 24px; letter-spacing: 0.5px;
}
.hero h1 {
  font-size: clamp(36px, 8vw, 76px);
  margin-bottom: 18px;
  line-height: 1.05;
  word-break: break-word;
}
.hero p { font-size: 16px; color: var(--text-muted); max-width: 500px; margin: 0 auto 32px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; justify-content: center;
  margin-top: 52px; flex-wrap: wrap; padding: 0 20px;
}
.hero-stat strong { font-family: 'Rajdhani', sans-serif; font-size: 28px; font-weight: 700; color: var(--text); display: block; }
.hero-stat span { font-size: 12px; color: var(--text-muted); }

/* ---- Category grid ---- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.cat-card {
  display: block; text-decoration: none;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color var(--transition);
  text-align: center;
}
.cat-card:hover { border-color: var(--border-hover); }
.cat-img {
  width: 100%; aspect-ratio: 4/3;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-placeholder {
  font-size: 11px; font-weight: 700;
  color: var(--text-faint); letter-spacing: 1px; text-transform: uppercase;
}
.cat-info { padding: 12px; }
.cat-name { font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 700; color: var(--text); }
.cat-count { font-size: 11px; color: var(--text-faint); margin-top: 2px; }

/* ---- Category tabs (shop page) ---- */
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 100px;
  border: 1px solid var(--border); color: var(--text-muted);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all var(--transition); background: none;
  text-decoration: none;
}
.cat-tab:hover, .cat-tab.active { border-color: #fff; color: #fff; }

/* ---- Forms ---- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 7px; letter-spacing: 0.5px; text-transform: uppercase; }
.form-control {
  width: 100%; background: var(--bg3);
  border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius); padding: 10px 14px;
  font-size: 14px; transition: border-color var(--transition); outline: none;
}
.form-control:focus { border-color: #fff; }
.form-control::placeholder { color: var(--text-faint); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--text-faint); margin-top: 5px; }
.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius) 0 0 var(--radius); border-right: none; }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; flex-shrink: 0; }

/* ---- Alerts ---- */
.alert {
  padding: 13px 16px; border-radius: var(--radius);
  font-size: 14px; display: flex; align-items: center;
  gap: 10px; margin-bottom: 20px;
}
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); color: #6ee7b7; }
.alert-error   { background: rgba(244,63,94,0.1);  border: 1px solid rgba(244,63,94,0.25);  color: #fda4af; }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25); color: #fcd34d; }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 100px;
}
.badge-success   { background: rgba(16,185,129,0.15); color: #34d399; }
.badge-warning   { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-danger    { background: rgba(244,63,94,0.15);  color: #fb7185; }
.badge-secondary { background: rgba(255,255,255,0.07); color: #888; }
.badge-primary   { background: rgba(255,255,255,0.1); color: #fff; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { background: var(--bg3); padding: 11px 14px; font-size: 11px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.8px; text-align: left; white-space: nowrap; }
tbody td { padding: 13px 14px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.03); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,0.015); }
.td-actions { display: flex; gap: 6px; align-items: center; }

/* ---- Cart ---- */
.cart-page { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.cart-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-thumb {
  width: 54px; height: 54px; border-radius: 8px;
  background: var(--bg3); display: flex; align-items: center;
  justify-content: center; overflow: hidden; flex-shrink: 0;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg3);
  color: var(--text); font-size: 15px; cursor: pointer;
  transition: all var(--transition); display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { border-color: #fff; }
.qty-num { font-weight: 700; font-size: 14px; width: 28px; text-align: center; }

/* ---- Checkout ---- */
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.qr-box { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.qr-img { max-width: 200px; margin: 0 auto 14px; border-radius: 8px; border: 3px solid #fff; }
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center; cursor: pointer;
  transition: border-color var(--transition); position: relative;
}
.upload-zone:hover { border-color: #555; }
.upload-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0;
  cursor: pointer; width: 100%; height: 100%;
}
.upload-preview { margin-top: 12px; }
.upload-preview img { max-height: 180px; border-radius: 8px; margin: 0 auto; }
.upload-preview p { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ---- Auth ---- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-box { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .brand { font-family: 'Rajdhani', sans-serif; font-size: 26px; font-weight: 700; }

/* ---- Dashboard ---- */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.stat-icon { width: 36px; height: 36px; background: var(--bg3); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.stat-value { font-family: 'Rajdhani', sans-serif; font-size: 30px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ---- Tickets ---- */
.ticket-thread { display: flex; flex-direction: column; gap: 14px; }
.ticket-msg { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 18px; max-width: 80%; }
.ticket-msg.admin-msg { background: var(--card); border-color: var(--border-hover); align-self: flex-end; }
.msg-meta { font-size: 11px; color: var(--text-faint); margin-bottom: 5px; }
.msg-body { font-size: 14px; white-space: pre-wrap; }

/* ---- Section titles ---- */
.section-title { margin-bottom: 28px; }
.section-title h2 { font-size: clamp(24px, 4vw, 36px); }
.section-title p { color: var(--text-muted); margin-top: 6px; font-size: 14px; }

/* ---- Misc ---- */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
/* Plain horizontal rule — no text */
.divider-line { height: 1px; background: var(--border); margin: 24px 0; }
.page-header { padding: 36px 0 28px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.page-header h1 { font-size: clamp(26px, 5vw, 44px); }
.page-header p { color: var(--text-muted); margin-top: 6px; font-size: 14px; }
.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .icon { width: 56px; height: 56px; background: var(--bg3); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.empty-state h3 { color: var(--text-muted); margin-bottom: 8px; }
.empty-state p { color: var(--text-faint); font-size: 14px; }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.page-btn {
  min-width: 34px; height: 34px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text-muted); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; text-decoration: none;
  padding: 0 10px; transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { border-color: #fff; color: #fff; }

/* ---- Footer ---- */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 48px 20px 24px; margin-top: 80px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 28px; }
.footer-brand p { color: var(--text-muted); font-size: 13px; margin-top: 10px; line-height: 1.7; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 14px; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: 13px; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 12px; color: var(--text-faint); }

/* ---- Search ---- */
.search-bar { position: relative; flex: 1; max-width: 300px; }
.search-bar input { padding-left: 38px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }

/* ---- Toast ---- */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--bg3); border: 1px solid var(--border);
  border-left: 3px solid #fff; border-radius: var(--radius);
  padding: 12px 16px; font-size: 13px; min-width: 260px;
  box-shadow: var(--shadow); animation: slideIn 0.25s ease;
}
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---- Modals ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 22px; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: #fff; }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn { padding: 8px 16px; background: none; border: 1px solid var(--border); border-radius: 6px; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.tab-btn.active { border-color: #fff; color: #fff; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---- Responsive ---- */
.theme-toggle {
  display: flex; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: 6px; cursor: pointer;
  transition: all var(--transition); white-space: nowrap;
}
.theme-toggle:hover { border-color: var(--border-hover); color: #fff; }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-page, .checkout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* ── Navbar ── */
  .hamburger { display: flex; }
  .nav-link { display: none; }
  .navbar { padding: 0 14px; }
  .navbar-inner { height: 52px; gap: 6px; }
  .navbar-brand { font-size: 16px; gap: 6px; }
  .brand-icon { width: 22px; height: 22px; }

  /* Hide text labels on buttons in navbar */
  .navbar-actions .btn span { display: none; }
  .navbar-actions .btn { padding: 6px 8px; }
  .navbar-actions .btn-secondary:not(.cart-btn) { display: none; }

  /* Theme toggle — icon only, no text */
  .theme-toggle #themeLabel { display: none; }
  .theme-toggle { padding: 5px 7px; }

  /* Only show: cart, hamburger, theme toggle on mobile */
  .navbar-actions a.btn:not(.cart-btn) { display: none; }
  .navbar-actions { gap: 4px; }

  /* ── Announcement banner ── */
  #annBanner {
    font-size: 11px !important;
    padding: 7px 36px 7px 12px !important;
    line-height: 1.4 !important;
  }
  #annBanner a {
    display: inline !important;
    margin-left: 6px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
    white-space: nowrap;
  }

  /* ── Hero ── */
  .hero { padding: 40px 16px 32px; }
  .hero h1 { font-size: clamp(28px, 9vw, 44px); margin-bottom: 12px; }
  .hero p { font-size: 14px; margin-bottom: 24px; }
  .hero-btns { gap: 8px; }
  .hero-btns .btn-lg { font-size: 13px; padding: 11px 20px; }
  .hero-eyebrow { font-size: 11px; margin-bottom: 16px; }
  .hero-stats { gap: 16px; margin-top: 32px; }
  .hero-stat strong { font-size: 22px; }
  .hero-stat span { font-size: 11px; }

  /* ── Products / Grid ── */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cat-card { padding: 20px 12px; }
  .cat-icon { font-size: 28px; margin-bottom: 8px; }

  /* ── Sections ── */
  .section { padding: 40px 0; }
  .section-title h2 { font-size: clamp(22px, 6vw, 32px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* ── Misc ── */
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .auth-box { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  /* ── Navbar ── */
  .navbar-brand { font-size: 15px; }

  /* ── Hero ── */
  .hero { padding: 32px 14px 28px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 13px; }
  .hero-btns { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-btns .btn { justify-content: center; width: 100%; }
  .hero-stats { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .hero-stat { min-width: 70px; text-align: center; }
  .hero-stat strong { font-size: 20px; }

  /* ── Products ── */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  /* product-image uses aspect-ratio, no override needed */
  .product-name { font-size: 13px; }
  .product-price { font-size: 15px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }

  /* ── Product detail ── */
  .product-gallery img { max-height: 220px; }

  /* ── Cart / Checkout ── */
  .checkout-grid { gap: 12px; }
  .cart-item { flex-wrap: wrap; }

  /* ── Misc ── */
  .section { padding: 32px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .auth-box { margin: 12px; }
  .container { padding: 0 14px; }
}

/* ── Very small screens ── */
@media (max-width: 360px) {
  .hero h1 { font-size: 24px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .navbar-inner { height: 48px; }
  .hero-stats { gap: 10px; }
}


/* ============================================
   CART SIDEBAR (Shopify-style slide-in)
   ============================================ */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  display: none;
}
.cart-overlay.open { opacity: 1; pointer-events: all; display: block; }

.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 400px; max-width: 100vw;
  background: #111111;
  border-left: 1px solid #1e1e1e;
  z-index: 1200;
  display: none;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.cart-sidebar.open {
  display: flex;
  transform: translateX(0);
}

.cart-sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-sidebar-head h3 {
  font-family: 'Rajdhani',sans-serif;
  font-size: 20px; font-weight: 700; color: #fff; margin: 0;
}
.cart-sidebar-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.cart-sidebar-close:hover { background: var(--border); color: #fff; }

.cart-sidebar-items {
  flex: 1; overflow-y: auto; padding: 16px 24px;
}
.cart-sidebar-items::-webkit-scrollbar { width: 4px; }
.cart-sidebar-items::-webkit-scrollbar-track { background: transparent; }
.cart-sidebar-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.cs-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.cs-item.removing {
  opacity: 0; transform: translateX(20px); max-height: 0;
  padding: 0; border: none; overflow: hidden;
}
.cs-thumb {
  width: 60px; height: 60px; border-radius: 8px;
  background: var(--bg3); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; font-size: 20px;
}
.cs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cs-info { flex: 1; min-width: 0; }
.cs-name { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-price { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.cs-qty {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border-radius: 8px; padding: 4px 8px;
}
.cs-qty button {
  width: 22px; height: 22px; border-radius: 4px;
  background: var(--border); border: none; color: #fff;
  font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.cs-qty button:hover { background: var(--border-hover); }
.cs-qty span { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.cs-remove {
  background: none; border: none; color: var(--text-faint);
  font-size: 18px; cursor: pointer; padding: 4px;
  transition: color 0.2s; line-height: 1; flex-shrink: 0;
}
.cs-remove:hover { color: var(--red); }

.cart-sidebar-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 40px;
}
.cart-sidebar-empty .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.cart-sidebar-empty h4 { color: var(--text-muted); margin-bottom: 8px; }

.cart-sidebar-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0; background: var(--bg2);
}
.cs-total-row {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 14px;
}
.cs-total-label { font-size: 13px; color: var(--text-muted); }
.cs-total-val { font-family: 'Rajdhani',sans-serif; font-size: 22px; font-weight: 700; color: #fff; }

/* ============================================
   ANIMATIONS
   ============================================ */
/* Page fade */
.pp-main { animation: ppFadeIn 0.35s ease; }
@keyframes ppFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Flash sale pulse */
@keyframes flashPulse { 0%,100%{box-shadow:0 0 0 0 rgba(244,63,94,0.4)} 50%{box-shadow:0 0 0 6px rgba(244,63,94,0)} }

/* Cart badge pulse */
@keyframes badgePop { 0%{transform:scale(1)} 50%{transform:scale(1.4)} 100%{transform:scale(1)} }
.badge-pulse { animation: badgePop 0.4s ease; }

/* Button press */
@keyframes btnPress { 0%{transform:scale(1)} 40%{transform:scale(0.94)} 100%{transform:scale(1)} }
.btn-pulse { animation: btnPress 0.4s ease; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Button press */
.btn { transition: all 0.15s ease; }
.btn:active { transform: scale(0.97); }

/* Product card hover lift */
.product-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  border-color: var(--border-hover);
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--border) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: skeletonWave 1.5s infinite;
  border-radius: 6px;
}
@keyframes skeletonWave { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Flash sale badge pulse */
.flash-badge {
  animation: flashPulse 2s ease-in-out infinite;
}
@keyframes flashPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(244,63,94,0.4); } 50% { box-shadow: 0 0 0 8px rgba(244,63,94,0); } }

/* Confetti (JS-driven, CSS classes) */
.confetti-piece {
  position: fixed; z-index: 9999; pointer-events: none;
  width: 10px; height: 10px; border-radius: 2px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0%   { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ============================================
   FLASH SALE SECTION (Homepage)
   ============================================ */
.flash-section {
  background: linear-gradient(135deg, #1a0a0a 0%, #0f0f1c 100%);
  border: 1px solid rgba(244,63,94,0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
.flash-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(244,63,94,0.15), transparent 60%);
  pointer-events: none;
}
.flash-section-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; position: relative;
}
.flash-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 10px;
  text-transform: uppercase;
}
.flash-title {
  font-family: 'Rajdhani',sans-serif;
  font-size: clamp(24px,5vw,42px); font-weight: 700;
  color: #fff; line-height: 1.1; margin-bottom: 6px;
}
.flash-subtitle { font-size: 14px; color: var(--text-muted); }
.flash-timer-box {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.flash-time-unit {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 12px 16px; text-align: center; min-width: 64px;
}
.flash-time-num {
  font-family: 'Rajdhani',sans-serif;
  font-size: 32px; font-weight: 700; color: #fff; line-height: 1;
}
.flash-time-lbl { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.flash-sep { font-family: 'Rajdhani',sans-serif; font-size: 28px; color: var(--red); font-weight: 700; margin-bottom: 18px; }

/* ============================================
   REVIEWS SECTION (Homepage)
   ============================================ */
.review-card-home {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.2s;
}
.review-card-home:hover { border-color: var(--border-hover); }
.review-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #fff, #888);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #000; flex-shrink: 0;
}

/* ============================================
   ACCOUNT DASHBOARD REDESIGN
   ============================================ */
.dash-hero {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.dash-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #fff, #888);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani',sans-serif; font-size: 26px; font-weight: 700;
  color: #000; flex-shrink: 0;
}
.dash-welcome h1 { font-size: 24px; margin-bottom: 2px; }
.dash-welcome p { color: var(--text-muted); font-size: 13px; }

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.dash-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.dash-stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.dash-stat-icon { font-size: 20px; margin-bottom: 8px; }
.dash-stat-val {
  font-family: 'Rajdhani',sans-serif;
  font-size: 26px; font-weight: 700; color: #fff; line-height: 1;
}
.dash-stat-lbl { font-size: 12px; color: var(--text-faint); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

.dash-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 24px;
}
.dash-quick-link {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-align: center;
  color: var(--text-muted); font-size: 12px; font-weight: 600;
  transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.3px;
}
.dash-quick-link:hover { border-color: var(--border-hover); color: #fff; background: var(--card); }
.dash-quick-link .icon { font-size: 20px; }
.dash-loyalty-bar {
  background: var(--bg3);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .dash-hero { padding: 20px; }
  .dash-stats-grid { grid-template-columns: 1fr 1fr; }
  .dash-quick-links { grid-template-columns: 1fr 1fr 1fr; }
  .cart-sidebar { width: 100vw; }
}
