/* ==================== DESIGN TOKENS ==================== */
:root {
  --brand: #835400;
  --brand-mid: #b87700;
  --brand-light: #fcaf3b;
  --ink: #191c1d;
  --ink-2: #2e3132;
  --muted: #524535;
  --muted-2: #64748b;
  --paper: #ffffff;
  --paper-2: #f8fafc;
  --paper-3: #f3f4f5;
  --paper-4: #e7e8e9;
  --line: rgba(215,195,175,0.25);
  --line-strong: #e2e8f0;
  --success: #2a8d4a;
  --success-bg: rgba(42,141,74,0.1);
  --error: #dc2626;
  --error-bg: rgba(220,38,38,0.08);
  --warning: #d97706;
  --warning-bg: rgba(217,119,6,0.1);

  --font-body: 'Rethink Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: var(--font-body);

  --shadow-sm: 0 4px 12px -4px rgba(131,84,0,0.08);
  --shadow-md: 0 12px 30px -12px rgba(131,84,0,0.18);
  --shadow-lg: 0 24px 48px -24px rgba(131,84,0,0.25);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
}

/* ==================== RESET ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-body);
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Rethink Sans has no emoji glyphs — use system emoji fonts for icons in labels/nav */
.cat-pill,
.filter-item-left,
.nav-icon,
.flash-banner span[style*="font-size"],
.product-img .img-icon,
.toast-icon {
  font-family: var(--font-body), "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
a { color: inherit; text-decoration: none; }
button,
input,
select,
textarea,
optgroup {
  font-family: var(--font-body);
}
button { cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand-light); color: var(--ink); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ==================== TOPBAR ==================== */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  padding: 9px 0;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar .pill { display: inline-flex; align-items: center; gap: 6px; }
.topbar .pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 0 0 rgba(252,175,59,0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(252,175,59,0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(252,175,59,0); }
  100% { box-shadow: 0 0 0 0 rgba(252,175,59,0); }
}
.topbar a { color: var(--brand-light); }

/* ==================== NAV ==================== */
nav.main {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-strong);
}
.nav-inner {
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 19px; letter-spacing: -0.02em; flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  display: block;
  height: 32px;
  width: auto;
  max-width: min(220px, 42vw);
}
.logo em { font-style: italic; color: var(--brand); font-weight: 600; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  background: var(--paper-3); padding: 5px; border-radius: 100px;
  font-size: 13.5px; font-weight: 500;
}
.nav-links a {
  padding: 8px 16px; border-radius: 100px; color: var(--muted);
  transition: background .2s, color .2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: var(--paper); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Cart icon with badge */
.cart-btn {
  position: relative; padding: 9px; border-radius: 10px;
  color: var(--ink); transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.cart-btn:hover { background: var(--paper-3); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--brand); color: var(--paper);
  border-radius: 100px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
}

.btn-ghost {
  padding: 9px 18px; border-radius: 10px; font-size: 14px; font-weight: 600;
  color: var(--ink); transition: background .2s;
}
.btn-ghost:hover { background: var(--paper-3); }
.btn-grad {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 50%, var(--brand-light) 100%);
  background-size: 200% 200%; background-position: 0% 50%;
  color: var(--paper); padding: 10px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 700;
  transition: background-position .5s, transform .25s, box-shadow .25s;
  box-shadow: 0 6px 14px rgba(131,84,0,0.25);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.btn-grad:hover {
  background-position: 100% 50%; transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(131,84,0,0.4);
}
.btn-grad::after {
  content: ""; position: absolute; top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
}
.btn-grad:hover::after { animation: shine 0.9s ease forwards; }
@keyframes shine { to { left: 125%; } }

.burger {
  display: none; flex-direction: column; gap: 5px; padding: 10px;
  border-radius: 10px; transition: background .2s;
}
.burger:hover { background: var(--paper-3); }
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==================== BUTTONS ==================== */
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 50%, var(--brand-light) 100%);
  background-size: 200% 200%; background-position: 0% 50%;
  color: var(--paper); padding: 14px 26px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 8px 20px rgba(131,84,0,0.28);
  transition: background-position .5s, transform .25s, box-shadow .25s;
  position: relative; overflow: hidden; cursor: pointer; border: none;
  width: 100%;
}
.btn-primary:hover {
  background-position: 100% 50%; transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(131,84,0,0.38);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
}
.btn-primary:hover::after { animation: shine 0.9s ease forwards; }

.btn-outline {
  border: 1.5px solid var(--line-strong); background: var(--paper);
  color: var(--ink); padding: 13px 26px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: border-color .2s, background .2s, transform .2s;
  width: 100%;
}
.btn-outline:hover { border-color: var(--brand); background: rgba(131,84,0,0.04); transform: translateY(-1px); }

.btn-sm {
  padding: 8px 16px; font-size: 13px; border-radius: 8px;
}
.btn-icon {
  width: 38px; height: 38px; border-radius: 8px; border: 1.5px solid var(--line-strong);
  background: var(--paper); color: var(--muted-2);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.btn-icon:hover { border-color: var(--brand); color: var(--brand); background: rgba(131,84,0,0.05); }
.btn-icon svg { width: 16px; height: 16px; }

/* ==================== BADGE / PILL ==================== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  font-family: var(--font-mono);
}
.badge-brand { background: rgba(131,84,0,0.1); color: var(--brand); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-error { background: var(--error-bg); color: var(--error); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-ink { background: var(--ink); color: var(--paper); }
.badge-muted { background: var(--paper-3); color: var(--muted-2); }

/* ==================== FORM ELEMENTS ==================== */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 13px; font-weight: 600; color: var(--ink);
  letter-spacing: 0.01em;
}
.form-label span { color: var(--error); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  font-size: 14.5px; color: var(--ink); background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(131,84,0,0.1);
}
.form-input::placeholder { color: var(--muted-2); }
.form-input.error { border-color: var(--error); }
.form-hint { font-size: 12px; color: var(--muted-2); }
.form-error { font-size: 12px; color: var(--error); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

/* Checkbox */
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px; border: 1.5px solid var(--line-strong);
  border-radius: 5px; accent-color: var(--brand); flex-shrink: 0; cursor: pointer; margin-top: 1px;
}
.checkbox-label { font-size: 14px; color: var(--muted); line-height: 1.4; }
.checkbox-label a { color: var(--brand); font-weight: 600; }

/* ==================== CARD ==================== */
.card {
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--r-xl); overflow: hidden;
}
.card-hover {
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(131,84,0,0.2);
}

/* ==================== PRODUCT CARD ==================== */
.product-card {
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--r-xl); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -16px rgba(131,84,0,0.22);
  border-color: rgba(131,84,0,0.25);
}
.product-img {
  aspect-ratio: 4/3; background: var(--paper-3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.product-img .img-icon {
  font-size: 64px; line-height: 1;
}
.product-img-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(131,84,0,0.06) 0%, rgba(252,175,59,0.08) 100%);
}
.product-badge-wrap {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 6px; z-index: 2;
}
.product-wish {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, color .2s;
  font-size: 16px; color: var(--muted-2);
}
.product-wish:hover, .product-wish.active { background: var(--paper); color: var(--error); }
.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-cat {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand);
  font-family: var(--font-mono);
}
.product-name {
  font-size: 15px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.01em; line-height: 1.35;
}
.product-desc { font-size: 13px; color: var(--muted-2); line-height: 1.45; flex: 1; }
.product-rating { display: flex; align-items: center; gap: 6px; }
.stars-sm { color: var(--brand-light); font-size: 13px; letter-spacing: 1px; }
.rating-count { font-size: 12px; color: var(--muted-2); }
.product-price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-price {
  font-size: 20px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.025em;
}
.product-price em { color: var(--brand); font-style: normal; }
.product-price-old {
  font-size: 14px; color: var(--muted-2); text-decoration: line-through; font-weight: 500;
}
.product-discount {
  font-size: 11px; font-weight: 700; font-family: var(--font-mono);
  background: var(--success-bg); color: var(--success);
  padding: 3px 8px; border-radius: 100px;
}
.product-footer { padding: 12px 16px; border-top: 1px solid var(--line-strong); }
.product-footer .btn-primary { padding: 10px; font-size: 14px; border-radius: 10px; }

/* ==================== QUANTITY CONTROL ==================== */
.qty-ctrl {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--line-strong); border-radius: 10px;
  overflow: hidden;
}
.qty-ctrl button {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--muted); transition: background .2s, color .2s;
  flex-shrink: 0;
}
.qty-ctrl button:hover { background: var(--paper-3); color: var(--ink); }
.qty-ctrl input {
  width: 48px; height: 38px; text-align: center; border: none; outline: none;
  font-size: 14px; font-weight: 700; color: var(--ink); background: var(--paper);
  -moz-appearance: textfield;
}
.qty-ctrl input::-webkit-outer-spin-button,
.qty-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ==================== STARS ==================== */
.stars-input { display: flex; gap: 4px; }
.stars-input span {
  font-size: 28px; cursor: pointer; color: var(--paper-4);
  transition: color .15s, transform .15s;
}
.stars-input span:hover, .stars-input span.active { color: var(--brand-light); transform: scale(1.1); }

/* ==================== ORDER STATUS TIMELINE ==================== */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-step { display: flex; gap: 16px; position: relative; }
.timeline-step:not(:last-child)::before {
  content: ""; position: absolute;
  left: 19px; top: 40px; width: 2px;
  height: calc(100% - 10px);
  background: var(--line-strong);
}
.timeline-step.done::before { background: var(--brand-light); }
.timeline-dot {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; border: 2px solid var(--line-strong);
  background: var(--paper); z-index: 1;
}
.timeline-step.done .timeline-dot {
  background: var(--brand-light); border-color: var(--brand);
  color: var(--ink);
}
.timeline-step.active .timeline-dot {
  background: var(--brand); border-color: var(--brand);
  color: var(--paper);
  box-shadow: 0 0 0 4px rgba(131,84,0,0.18);
  animation: timeline-pulse 2s infinite;
}
@keyframes timeline-pulse {
  0%   { box-shadow: 0 0 0 4px rgba(131,84,0,0.18); }
  70%  { box-shadow: 0 0 0 8px rgba(131,84,0,0); }
  100% { box-shadow: 0 0 0 4px rgba(131,84,0,0.18); }
}
.timeline-body { padding: 10px 0 28px; }
.timeline-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.timeline-step.pending-step .timeline-title { color: var(--muted-2); }
.timeline-time { font-size: 12px; color: var(--muted-2); margin-top: 2px; font-family: var(--font-mono); }
.timeline-note { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ==================== FILE UPLOAD ==================== */
.upload-zone {
  border: 2px dashed var(--brand-light); border-radius: var(--r-lg);
  padding: 40px 24px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
  background: rgba(252,175,59,0.03);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--brand); background: rgba(131,84,0,0.05);
}
.upload-icon { font-size: 40px; margin-bottom: 12px; }
.upload-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.upload-sub { font-size: 13px; color: var(--muted-2); }
.upload-sub a { color: var(--brand); font-weight: 600; }

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted-2);
}
.breadcrumb a { color: var(--muted-2); transition: color .2s; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--paper-4); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* ==================== SECTION HEADING ==================== */
.sec-eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 10px;
}
.sec-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800;
  letter-spacing: -0.03em; color: var(--ink); line-height: 1.1;
}
.sec-title em { font-style: italic; color: var(--brand); }

/* ==================== DIVIDER ==================== */
.divider { height: 1px; background: var(--line-strong); margin: 24px 0; }

/* ==================== ALERT ==================== */
.alert {
  padding: 14px 18px; border-radius: var(--r-md); font-size: 14px;
  display: flex; align-items: flex-start; gap: 10px; border-width: 1px; border-style: solid;
}
.alert-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--success-bg); border-color: rgba(42,141,74,0.2); color: #1a5c30; }
.alert-warning { background: var(--warning-bg); border-color: rgba(217,119,6,0.2); color: #92400e; }
.alert-info { background: rgba(131,84,0,0.06); border-color: rgba(131,84,0,0.15); color: var(--brand); }

/* ==================== EMPTY STATE ==================== */
.empty-state {
  text-align: center; padding: 80px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.empty-icon { font-size: 64px; }
.empty-title { font-size: 22px; font-weight: 700; color: var(--ink); }
.empty-sub { font-size: 15px; color: var(--muted-2); max-width: 340px; }

/* ==================== FOOTER ==================== */
footer {
  background: var(--ink); color: rgba(255,255,255,0.75);
  padding: 64px 0 0; font-size: 14px;
}
.foot-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.foot-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col ul li a { color: rgba(255,255,255,0.65); transition: color .2s; font-size: 13.5px; }
.foot-col ul li a:hover { color: var(--brand-light); }
.foot-brand-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  gap: 24px; flex-wrap: wrap;
}
.foot-brand { flex: 1; min-width: 260px; max-width: 640px; }
.foot-brand .logo { display: inline-flex; margin-bottom: 12px; }
.foot-brand .logo-img {
  height: 36px; max-width: 200px;
  filter: brightness(0) invert(1);
}
.foot-brand .logo-img--footer {
  filter: none;
}
.foot-brand-text {
  font-size: 13px; color: rgba(255,255,255,0.55);
  line-height: 1.55; max-width: none;
}
.site-header .logo-img { height: 34px; }
.foot-socials { display: flex; gap: 8px; }
.social-icon {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: border-color .2s, color .2s, background .2s;
}
.social-icon:hover { border-color: var(--brand-light); color: var(--brand-light); background: rgba(252,175,59,0.08); }
.foot-legal {
  padding: 18px 0 28px; font-size: 12px; color: rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.foot-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-legal-links a { color: rgba(255,255,255,0.4); transition: color .2s; }
.foot-legal-links a:hover { color: var(--brand-light); }

/* ==================== PAGE LAYOUT ==================== */
.page-header {
  padding: 40px 0 32px;
  background: linear-gradient(135deg, rgba(131,84,0,0.04) 0%, rgba(252,175,59,0.06) 100%);
  border-bottom: 1px solid var(--line-strong);
}
.page-header h1 {
  font-size: clamp(26px, 4vw, 36px); font-weight: 800;
  letter-spacing: -0.03em; color: var(--ink); margin-top: 12px;
}
.page-header h1 em { color: var(--brand); font-style: italic; }
.page-content { padding: 40px 0 80px; }

/* ==================== SIDEBAR LAYOUT ==================== */
.sidebar-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--r-xl); overflow: hidden; margin-bottom: 16px;
}
.sidebar-card-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-card-body { padding: 16px 20px; }

/* Filter items */
.filter-list { display: flex; flex-direction: column; gap: 4px; }
.filter-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  transition: background .15s;
}
.filter-item:hover { background: var(--paper-3); }
.filter-item.active { background: rgba(131,84,0,0.08); color: var(--brand); font-weight: 600; }
.filter-item-left { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.filter-count {
  font-size: 11px; color: var(--muted-2); font-family: var(--font-mono);
  background: var(--paper-3); padding: 2px 7px; border-radius: 100px;
}

/* Price range */
.price-range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ==================== CHECKOUT STEPS ==================== */
.steps-bar {
  display: flex; align-items: center; margin-bottom: 36px;
}
.step-item {
  display: flex; align-items: center; gap: 10px; flex: 1;
}
.step-item:last-child { flex: 0; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
  border: 2px solid var(--line-strong); color: var(--muted-2);
  background: var(--paper); transition: all .3s;
}
.step-item.done .step-num { background: var(--brand-light); border-color: var(--brand); color: var(--ink); }
.step-item.active .step-num { background: var(--brand); border-color: var(--brand); color: var(--paper); }
.step-label { font-size: 13px; font-weight: 600; color: var(--muted-2); white-space: nowrap; }
.step-item.done .step-label, .step-item.active .step-label { color: var(--ink); }
.step-connector { flex: 1; height: 2px; background: var(--line-strong); margin: 0 12px; }
.step-item.done + .step-connector { background: var(--brand-light); }

/* ==================== ACCOUNT SIDEBAR ==================== */
.account-nav { display: flex; flex-direction: column; gap: 4px; }
.account-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: 10px; font-size: 14px; font-weight: 500;
  color: var(--muted); cursor: pointer; transition: all .2s;
  border: 1px solid transparent;
}
.account-nav-item:hover { background: var(--paper-3); color: var(--ink); }
.account-nav-item.active {
  background: rgba(131,84,0,0.08); color: var(--brand);
  font-weight: 700; border-color: rgba(131,84,0,0.15);
}
.account-nav-item .nav-icon { font-size: 18px; width: 22px; text-align: center; }

/* ==================== ORDER ROW ==================== */
.order-row {
  display: flex; align-items: center; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--line-strong);
}
.order-row:last-child { border-bottom: none; }
.order-thumb {
  width: 56px; height: 56px; border-radius: 10px;
  background: var(--paper-3); display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
}
.order-info { flex: 1; min-width: 0; }
.order-name { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-meta { font-size: 12px; color: var(--muted-2); margin-top: 2px; font-family: var(--font-mono); }
.order-total { font-size: 16px; font-weight: 800; color: var(--ink); white-space: nowrap; }

/* ==================== TABS ==================== */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line-strong); margin-bottom: 28px; }
.tab {
  padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--muted-2);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .2s, border-color .2s; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .sidebar-layout { grid-template-columns: 240px 1fr; gap: 24px; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98); z-index: 79;
    padding: 24px; gap: 8px; border-radius: 0; overflow-y: auto;
  }
  .nav-links.mobile-open a { padding: 14px 20px; border-radius: 12px; font-size: 16px; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .steps-bar .step-label { display: none; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .foot-cols { grid-template-columns: 1fr; }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .35s ease forwards; }

@keyframes spinnerAnim {
  to { transform: rotate(360deg); }
}
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--paper); animation: spinnerAnim .7s linear infinite;
}

/* ==================== TOAST ==================== */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9000;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  background: var(--ink-2); color: var(--paper);
  padding: 14px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  pointer-events: auto; min-width: 280px;
  animation: toastIn .3s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.toast.removing { animation: toastOut .25s ease forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(40px) scale(0.9); }
}
.toast-icon { font-size: 18px; }

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

/* ==================== FLASH SALE BANNER ==================== */
.flash-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 50%, var(--brand-light) 100%);
  color: var(--paper); padding: 14px 0; position: relative; overflow: hidden;
}
.flash-banner::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.04) 40px, rgba(255,255,255,0.04) 80px);
}
.flash-banner .wrap { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; position: relative; }
.flash-title { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.flash-sub { font-size: 13px; opacity: 0.85; }
.flash-countdown { display: flex; align-items: center; gap: 6px; }
.cd-block { display: flex; flex-direction: column; align-items: center; }
.cd-num {
  font-family: var(--font-mono); font-size: 22px; font-weight: 700;
  background: rgba(0,0,0,0.25); padding: 4px 10px; border-radius: 6px; min-width: 44px; text-align: center; line-height: 1;
}
.cd-lbl { font-size: 10px; opacity: 0.75; margin-top: 3px; letter-spacing: 0.06em; text-transform: uppercase; }
.cd-sep { font-size: 20px; font-weight: 800; opacity: 0.7; margin-bottom: 12px; }
.flash-cta {
  background: rgba(255,255,255,0.2); border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--paper); padding: 8px 20px; border-radius: 100px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background .2s;
  text-decoration: none; display: inline-block;
}
.flash-cta:hover { background: rgba(255,255,255,0.35); }

/* ==================== RECENTLY VIEWED ==================== */
.rv-section { padding: 48px 0; border-top: 1px solid var(--line-strong); }
.rv-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.rv-scroll::-webkit-scrollbar { height: 4px; }
.rv-scroll::-webkit-scrollbar-track { background: transparent; }
.rv-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.rv-card {
  flex-shrink: 0; width: 180px; border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  overflow: hidden; background: var(--paper); cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.rv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(131,84,0,0.2); }
.rv-thumb {
  height: 100px; background: var(--paper-3); display: flex; align-items: center; justify-content: center;
  font-size: 40px; border-bottom: 1px solid var(--line-strong);
}
.rv-info { padding: 10px 12px; }
.rv-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); font-family: var(--font-mono); margin-bottom: 3px; }
.rv-name { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 5px; }
.rv-price { font-size: 14px; font-weight: 800; color: var(--ink); }
.rv-price em { color: var(--brand); font-style: normal; }

/* ==================== BUNDLE DEALS ==================== */
.bundle-card {
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.bundle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(131,84,0,0.2); }
.bundle-head {
  background: linear-gradient(135deg, rgba(131,84,0,0.06) 0%, rgba(252,175,59,0.1) 100%);
  padding: 24px; border-bottom: 1px solid var(--line-strong);
  display: flex; align-items: center; gap: 12px;
}
.bundle-icons { display: flex; gap: -8px; }
.bundle-icon { font-size: 36px; }
.bundle-sep { font-size: 18px; color: var(--brand); font-weight: 800; margin: 0 4px; align-self: center; }
.bundle-body { padding: 20px 24px; }
.bundle-items { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.bundle-items li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.bundle-items li::before { content: "✓"; color: var(--success); font-weight: 700; flex-shrink: 0; }
.bundle-price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.bundle-price { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.bundle-price em { color: var(--brand); font-style: normal; }
.bundle-was { font-size: 15px; color: var(--muted-2); text-decoration: line-through; }
.bundle-save {
  background: var(--success-bg); color: var(--success);
  padding: 4px 10px; border-radius: 100px; font-size: 12px; font-weight: 700; font-family: var(--font-mono);
}

/* ==================== COMPARE PAGE ==================== */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line-strong); vertical-align: top; }
.compare-table th { background: var(--paper-2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); font-family: var(--font-mono); }
.compare-table tr:hover td { background: rgba(131,84,0,0.02); }
.compare-table .row-label { font-weight: 600; color: var(--ink); font-size: 14px; width: 160px; }
.compare-table .row-val { font-size: 14px; color: var(--muted); }
.compare-table .row-val.yes { color: var(--success); font-weight: 700; }
.compare-table .row-val.no { color: var(--muted-2); opacity: 0.5; }
.compare-product-head {
  text-align: center; padding: 24px 16px; border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
}
.compare-product-head .cp-icon { font-size: 48px; margin-bottom: 8px; }
.compare-product-head .cp-name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 6px; }
.compare-product-head .cp-price { font-size: 22px; font-weight: 800; color: var(--brand); }
.compare-remove { font-size: 12px; color: var(--error); cursor: pointer; margin-top: 4px; display: block; }
.compare-add-slot {
  text-align: center; padding: 24px 16px; border: 2px dashed var(--line-strong);
  border-radius: var(--r-lg); cursor: pointer; color: var(--muted-2);
  transition: border-color .2s, color .2s;
}
.compare-add-slot:hover { border-color: var(--brand); color: var(--brand); }

/* ==================== RETURN REQUEST ==================== */
.return-steps { display: flex; gap: 0; margin-bottom: 32px; }
.return-step {
  flex: 1; text-align: center; padding: 16px 12px;
  border-bottom: 3px solid var(--line-strong);
  font-size: 13px; font-weight: 600; color: var(--muted-2);
}
.return-step.active { border-bottom-color: var(--brand); color: var(--brand); }
.return-step .rs-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--paper-3);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; margin-bottom: 6px;
}
.return-step.active .rs-num { background: var(--brand); color: var(--paper); }

/* ==================== REFERRAL PROGRAM ==================== */
.ref-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 50%, var(--brand-light) 100%);
  border-radius: var(--r-xl); padding: 48px; color: var(--paper); text-align: center;
  position: relative; overflow: hidden; margin-bottom: 32px;
}
.ref-hero::before {
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.ref-hero h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.ref-hero p { font-size: 16px; opacity: 0.88; max-width: 480px; margin: 0 auto 24px; line-height: 1.6; }
.ref-link-box {
  display: flex; align-items: center; gap: 0; max-width: 480px; margin: 0 auto;
  border-radius: var(--r-md); overflow: hidden; border: 2px solid rgba(255,255,255,0.3);
}
.ref-link-input {
  flex: 1; padding: 12px 16px; background: rgba(255,255,255,0.15);
  color: var(--paper); border: none; outline: none; font-size: 14px; font-family: var(--font-mono);
}
.ref-link-input::placeholder { color: rgba(255,255,255,0.6); }
.ref-copy-btn {
  padding: 12px 20px; background: rgba(255,255,255,0.25); border: none;
  color: var(--paper); font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.ref-copy-btn:hover { background: rgba(255,255,255,0.4); }

.ref-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.ref-stat-card {
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  padding: 24px; text-align: center;
}
.ref-stat-num { font-size: 36px; font-weight: 800; color: var(--brand); letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; }
.ref-stat-label { font-size: 13px; color: var(--muted-2); }

/* ==================== ADMIN PANEL ==================== */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: 100vh; }
.admin-sidebar {
  background: var(--ink); color: rgba(255,255,255,0.75);
  padding: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar-head {
  padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 10px;
}
.admin-nav { padding: 12px 10px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-radius: 10px; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,0.65);
  cursor: pointer; transition: all .2s; margin-bottom: 2px;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.08); color: var(--paper); }
.admin-nav-item.active { background: rgba(252,175,59,0.15); color: var(--brand-light); font-weight: 700; }
.admin-nav-group { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.3); padding: 14px 14px 6px; }
.admin-nav-item .an-icon { font-size: 16px; width: 18px; text-align: center; }
.admin-content { background: var(--paper-2); }
.admin-topbar {
  background: var(--paper); border-bottom: 1px solid var(--line-strong);
  padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: sticky; top: 0; z-index: 10;
}
.admin-main { padding: 28px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.kpi-card {
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  padding: 20px 24px;
}
.kpi-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); font-family: var(--font-mono); margin-bottom: 10px; }
.kpi-value { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.kpi-value em { color: var(--brand); font-style: normal; }
.kpi-delta { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.kpi-delta.up { color: var(--success); }
.kpi-delta.down { color: var(--error); }

.admin-table-wrap { background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-xl); overflow: hidden; }
.admin-table-head {
  padding: 18px 24px; border-bottom: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead tr { background: var(--paper-2); }
.admin-table th { padding: 12px 16px; text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-2); font-family: var(--font-mono); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.admin-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--line-strong); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: rgba(131,84,0,0.02); }

.admin-section { display: none; }
.admin-section.active { display: block; }

@media (max-width: 1024px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .ref-stat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

/* ==================== UTILITY BAR ==================== */
.util-bar {
  background: var(--ink-2);
  color: rgba(255,255,255,0.75);
  font-size: 11.5px; padding: 8px 0;
  font-family: var(--font-mono); letter-spacing: 0.02em;
}
.util-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.util-left { display: flex; align-items: center; gap: 20px; }
.util-left a { color: rgba(255,255,255,0.7); display: inline-flex; align-items: center; gap: 5px; transition: color .2s; }
.util-left a:hover { color: var(--brand-light); }
.util-right { display: flex; align-items: center; gap: 14px; }
.util-right a { color: var(--brand-light); font-weight: 600; transition: opacity .2s; }
.util-right a:hover { opacity: 0.8; }
.util-sep { color: rgba(255,255,255,0.2); }
.util-code { background: rgba(252,175,59,0.15); border: 1px solid rgba(252,175,59,0.35); color: var(--brand-light); padding: 1px 7px; border-radius: 4px; font-weight: 700; font-size: 11px; }

/* ==================== SITE HEADER ==================== */
.site-header {
  background: var(--paper); border-bottom: 1px solid var(--line-strong);
  padding: 14px 0; position: sticky; top: 0; z-index: 90;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 24px;
}
.header-search {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.header-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(131,84,0,0.1); }
.search-cat-select {
  flex: 0 0 auto;
  width: auto;
  max-width: 148px;
  padding: 0 28px 0 12px;
  border: none;
  border-right: 1.5px solid var(--line-strong);
  background-color: var(--paper-3);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  height: auto;
  min-height: 46px;
  outline: none;
  cursor: pointer;
  font-family: var(--font-body);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.header-search .search-input,
.header-search input[type="search"],
.header-search input[type="text"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
  height: auto;
  min-height: 46px;
  background: transparent;
  color: var(--ink);
}
.header-search .search-input::placeholder,
.header-search input[type="search"]::placeholder,
.header-search input[type="text"]::placeholder { color: var(--muted-2); }
.header-search-btn {
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  height: auto;
  min-height: 46px;
  background: var(--brand);
  color: var(--paper);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.header-search-btn:hover { background: var(--brand-mid); }
.header-search-btn svg { width: 20px; height: 20px; }

.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.hdr-icon-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 14px; border-radius: 10px; color: var(--ink);
  transition: background .2s, color .2s; position: relative; text-decoration: none;
}
.hdr-icon-btn:hover { background: var(--paper-3); color: var(--brand); }
.hdr-icon-btn svg { width: 22px; height: 22px; }
.hdr-icon-label { font-size: 10px; font-weight: 600; color: var(--muted-2); font-family: var(--font-mono); white-space: nowrap; }
.hdr-icon-btn:hover .hdr-icon-label { color: var(--brand); }
.hdr-cart-badge {
  position: absolute; top: 5px; right: 8px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--brand); color: var(--paper); border-radius: 100px;
  font-size: 10px; font-weight: 700; font-family: var(--font-mono);
  display: flex; align-items: center; justify-content: center;
}

/* ==================== CATEGORY NAV ==================== */
.cat-nav {
  background: var(--paper); border-bottom: 2px solid var(--line-strong);
  position: sticky; top: 77px; z-index: 80;
}
.cat-nav-inner {
  display: flex; align-items: stretch; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 13px 18px; font-size: 13.5px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap;
  transition: color .2s, border-color .2s; text-decoration: none;
}
.cat-nav-link:hover { color: var(--brand); border-bottom-color: rgba(131,84,0,0.3); }
.cat-nav-link.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.cat-nav-sep { width: 1px; background: var(--line-strong); margin: 10px 0; flex-shrink: 0; }
.cat-nav-badge { font-size: 9px; font-weight: 700; padding: 1px 5px; background: var(--brand); color: var(--paper); border-radius: 100px; font-family: var(--font-mono); }
.cat-nav-spacer { flex: 1; }
.cat-nav-admin { color: var(--muted-2) !important; font-size: 12px !important; }
.cat-nav-cart { font-weight: 700 !important; color: var(--brand) !important; }

/* Floating WhatsApp (all storefront pages via footer) */
.dd-wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 8500;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dd-wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
  color: #fff;
}
.dd-wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: dd-wa-pulse 2s infinite;
}
@keyframes dd-wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 640px) {
  .dd-wa-float { bottom: 18px; right: 16px; width: 54px; height: 54px; }
}

/* Shop dropdown */
.cat-nav-dropdown { position: relative; }
.cat-nav-dropdown:hover .cat-dropdown { display: block; }
.cat-dropdown {
  display: none; position: absolute; top: calc(100% + 2px); left: 0;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 8px; min-width: 230px; box-shadow: var(--shadow-md); z-index: 200;
}
.cat-dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 8px; font-size: 13.5px; color: var(--ink); transition: background .15s;
}
.cat-dropdown a:hover { background: var(--paper-3); color: var(--brand); }
.cat-dd-divider { height: 1px; background: var(--line-strong); margin: 6px 4px; }

/* Mobile header */
@media (max-width: 960px) {
  .header-inner { grid-template-columns: auto auto; }
  .header-search { display: none; }
  .hdr-icon-label { display: none; }
  .util-left { display: none; }
  .hdr-icon-btn { padding: 8px 10px; }
}
@media (max-width: 640px) {
  .cat-nav { top: 66px; }
  .site-header { padding: 10px 0; }
  .util-right span:not(.util-code) { display: none; }
}
