/* ============================================================
   SigmaPC Store — Friendly Modern Design
   Font: Plus Jakarta Sans
   Palette: Warm whites, soft indigo accent, rounded, airy
   ============================================================ */

:root {
  --accent: #6366f1;
  --accent-dark: #4f46e5;
  --accent-light: #eef2ff;
  --accent-soft: #c7d2fe;

  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-alt: #f4f6f8;
  --surface-hover: #f0f2f5;

  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --green: #10b981;
  --green-bg: #ecfdf5;
  --red: #ef4444;
  --red-bg: #fef2f2;
  --orange: #f59e0b;
  --whatsapp: #25D366;

  --nav-h: 64px;
  --max-w: 1280px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
}

/* ====== Reset ====== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; padding-top: var(--nav-h); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }
.hidden { display: none !important; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; vertical-align: middle; }

/* ====== Buttons ====== */
.btn-accent {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 12px 28px; font-size: 14px; font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}
.btn-accent:hover { background: var(--accent-dark); }
.btn-accent:active { transform: scale(0.98); }
.btn-accent:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-accent-sm {
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 8px 20px;
  font-size: 13px; font-weight: 600;
  transition: background 0.2s;
}
.btn-accent-sm:hover { background: var(--accent-dark); }
.btn-full { width: 100%; justify-content: center; }

/* ====== Navigation ====== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px; height: 100%;
}
.nav-logo img { height: 34px; }
.nav-search {
  flex: 1; max-width: 420px;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 8px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.nav-search .material-symbols-outlined { color: var(--text-muted); font-size: 20px; }
.nav-search input {
  border: none; background: transparent; outline: none;
  font-size: 14px; font-family: inherit; color: var(--text); width: 100%;
}
.nav-search input::placeholder { color: var(--text-muted); }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-icon-btn {
  position: relative; background: none; border: none;
  padding: 10px; border-radius: var(--radius-sm);
  color: var(--text); transition: background 0.15s;
}
.nav-icon-btn:hover { background: var(--surface-alt); }
.mobile-only { display: none; }
.cart-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: var(--radius-full);
  min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px; transition: transform 0.2s;
}

/* Mobile search */
.mobile-search {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 90;
  background: var(--surface); padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.mobile-search .material-symbols-outlined { color: var(--text-muted); }
.mobile-search input {
  border: none; background: transparent; outline: none;
  font-size: 14px; font-family: inherit; color: var(--text); width: 100%;
}

/* ====== Hero ====== */
.hero {
  background: linear-gradient(135deg, var(--accent-light) 0%, #f0f4ff 50%, var(--surface-alt) 100%);
  padding: 60px 0 50px;
}
.hero-inner { display: flex; align-items: center; }
.hero-text { max-width: 560px; }
.hero-badge-label {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: var(--radius-full);
  margin-bottom: 16px; letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800; line-height: 1.15;
  color: var(--text); margin-bottom: 14px;
}
.hero p {
  font-size: 16px; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 28px; max-width: 420px;
}

/* ====== Home Categories ====== */
.home-categories {
  padding: 48px 20px;
}
.home-categories h2 {
  font-size: 22px; font-weight: 700; margin-bottom: 20px;
}
.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.home-cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.home-cat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.home-cat-card .material-symbols-outlined {
  font-size: 32px; color: var(--accent); margin-bottom: 8px; display: block;
}
.home-cat-card span:last-child {
  font-size: 14px; font-weight: 600; color: var(--text);
}

/* ====== Products Layout ====== */
.products-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 48px;
}

/* Sidebar */
.sidebar {
  position: sticky; top: calc(var(--nav-h) + 16px);
  height: fit-content;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.sidebar-header h3 { font-size: 16px; font-weight: 700; }
.sidebar-close { background: none; border: none; color: var(--text-secondary); }
.sidebar-section h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 10px;
}
.sidebar-cats li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-xs);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: all 0.15s;
  margin-bottom: 2px;
}
.sidebar-cats li .material-symbols-outlined { font-size: 18px; }
.sidebar-cats li:hover { background: var(--surface-alt); color: var(--text); }
.sidebar-cats li.active {
  background: var(--accent-light); color: var(--accent-dark); font-weight: 600;
}
/* Hierarchical categories */
.sidebar-cats li.parent-cat {
  font-weight: 600; color: var(--text);
}
.sidebar-cats li.parent-cat .cat-arrow {
  margin-left: auto; font-size: 16px; color: var(--text-muted);
  transition: transform 0.2s;
}
.sidebar-cats li.parent-cat.expanded .cat-arrow { transform: rotate(180deg); }
.sidebar-children {
  display: none; padding-left: 16px;
}
.sidebar-children.open { display: block; }
.sidebar-children li {
  font-size: 13px; padding: 7px 10px;
}

/* Products top bar */
.products-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.products-title { font-size: 20px; font-weight: 700; }
.products-count { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.btn-filter {
  display: none; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 14px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-message {
  grid-column: 1 / -1;
  text-align: center; padding: 80px 20px; color: var(--text-muted);
}
.empty-state {
  text-align: center; padding: 60px 20px;
}
.empty-state .material-symbols-outlined { font-size: 56px; color: var(--border); display: block; margin-bottom: 12px; }
.empty-state p { color: var(--text-muted); font-size: 16px; }

/* Product Card */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}
.product-card:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.product-card-img {
  aspect-ratio: 4/3;
  background: var(--surface-alt);
  position: relative;
  overflow: hidden;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: contain; padding: 16px;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; font-size: 11px; font-weight: 700;
  border-radius: var(--radius-xs);
}
.badge-stock { background: var(--green-bg); color: var(--green); }
.badge-out { background: var(--red-bg); color: var(--red); }
.product-card-body { padding: 14px 16px 16px; }
.product-card-title {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  height: 2.8em; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  color: var(--text); margin-bottom: 8px;
}
.product-card-price {
  font-size: 22px; font-weight: 800; color: var(--accent-dark);
}
.product-card-btn {
  width: 100%; margin-top: 12px;
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 10px; font-size: 13px; font-weight: 600;
  transition: background 0.2s;
}
.product-card-btn:hover { background: var(--accent-dark); }

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 32px 0 8px;
}
.page-btn {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px;
  color: var(--text); transition: all 0.15s;
  display: flex; align-items: center;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.page-info { font-size: 14px; font-weight: 600; color: var(--text-secondary); }

/* ====== Banner ====== */
.banner-slider {
  position: relative; overflow: hidden;
  max-width: var(--max-w); margin: 0 auto;
  aspect-ratio: 3;
  border-radius: 0 0 var(--radius) var(--radius);
}
.banner-track { display: flex; transition: transform 0.5s ease; height: 100%; }
.banner-track img { min-width: 100%; height: 100%; object-fit: cover; }
.banner-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.banner-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer; transition: all 0.2s;
}
.banner-dot.active { background: #fff; border-color: #fff; transform: scale(1.2); }

/* ====== Product Modal ====== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,0.4);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-panel {
  background: var(--surface); border-radius: var(--radius);
  max-height: 90vh; overflow: hidden; position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-lg { max-width: 880px; width: 100%; min-height: 500px; }
.modal-sm { max-width: 420px; width: 100%; }
.modal-close-btn {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  background: var(--surface-alt); border: none;
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.modal-close-btn:hover { background: var(--border); }
.modal-body { padding: 28px; max-height: calc(90vh - 56px); overflow: hidden; }

.modal-product { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; height: 100%; }
.modal-images {
  display: flex; flex-direction: column; gap: 8px;
  max-height: calc(90vh - 84px); overflow-y: auto;
  padding-right: 4px;
}
.modal-images::-webkit-scrollbar { width: 5px; }
.modal-images::-webkit-scrollbar-track { background: transparent; }
.modal-images::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
.modal-images::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.modal-main-img-wrapper {
  position: relative; flex-shrink: 0;
}
.modal-main-img {
  width: 100%; height: 380px;
  border-radius: var(--radius-sm);
  overflow: hidden; background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
}
.modal-main-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Image navigation arrows */
.modal-img-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.85); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.modal-img-nav:hover { background: #fff; box-shadow: var(--shadow); }
.modal-img-nav .material-symbols-outlined { font-size: 22px; color: var(--text); }
.modal-img-prev { left: 8px; }
.modal-img-next { right: 8px; }

.modal-thumbs { display: flex; gap: 6px; overflow-x: auto; flex-shrink: 0; }
.modal-thumb {
  width: 60px; height: 60px; border-radius: var(--radius-xs);
  border: 2px solid var(--border); overflow: hidden;
  cursor: pointer; flex-shrink: 0; transition: border-color 0.15s;
}
.modal-thumb.active, .modal-thumb:hover { border-color: var(--accent); }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }

.modal-info {
  display: flex; flex-direction: column; gap: 10px;
  max-height: calc(90vh - 84px); overflow-y: auto;
  padding-right: 4px;
}
.modal-info::-webkit-scrollbar { width: 5px; }
.modal-info::-webkit-scrollbar-track { background: transparent; }
.modal-info::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
.modal-title { font-size: 22px; font-weight: 700; line-height: 1.25; }
.modal-code { font-size: 12px; color: var(--text-muted); }
.modal-price { font-size: 30px; font-weight: 800; color: var(--accent-dark); }
.modal-stock { font-size: 13px; font-weight: 600; }
.modal-stock.in-stock { color: var(--green); }
.modal-stock.out-stock { color: var(--red); }
.modal-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.modal-qty { display: flex; align-items: center; gap: 6px; }
.modal-qty button {
  width: 36px; height: 36px; border: 1px solid var(--border);
  background: var(--surface); border-radius: var(--radius-xs);
  font-size: 18px; font-weight: 600; transition: border-color 0.15s;
}
.modal-qty button:hover { border-color: var(--accent); }
.modal-qty input {
  width: 52px; text-align: center; border: 1px solid var(--border);
  border-radius: var(--radius-xs); padding: 8px; font-size: 14px;
  font-family: inherit; outline: none;
}
.modal-qty input:focus { border-color: var(--accent); }
.modal-add-btn {
  width: 100%; background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 14px; font-size: 14px; font-weight: 700;
  transition: background 0.2s; margin-top: 4px;
}
.modal-add-btn:hover { background: var(--accent-dark); }

/* ====== Cart Sidebar ====== */
.cart-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15,23,42,0.35);
  backdrop-filter: blur(4px);
}
.cart-panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 400px; max-width: 100vw;
  background: var(--surface); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border-light);
}
.cart-header h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700;
}
.cart-header h3 .material-symbols-outlined { color: var(--accent); }
.modal-close-btn-sm {
  background: none; border: none; color: var(--text-muted);
  padding: 4px; border-radius: 50%;
}
.modal-close-btn-sm:hover { background: var(--surface-alt); }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-item {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.cart-item-img {
  width: 64px; height: 64px; border-radius: var(--radius-sm);
  background: var(--surface-alt); overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--accent-dark); margin-top: 3px; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-item-qty button {
  width: 26px; height: 26px; border: 1px solid var(--border);
  background: var(--surface); border-radius: var(--radius-xs);
  font-size: 14px; transition: border-color 0.15s;
}
.cart-item-qty button:hover { border-color: var(--accent); }
.cart-item-qty span { font-size: 13px; font-weight: 700; min-width: 20px; text-align: center; }
.cart-item-remove {
  background: none; border: none; color: var(--red);
  font-size: 12px; font-weight: 600; margin-top: 4px;
}
.cart-item-remove:hover { text-decoration: underline; }
.cart-empty {
  text-align: center; padding: 48px 20px; color: var(--text-muted);
}
.cart-empty .material-symbols-outlined { font-size: 48px; color: var(--border); display: block; margin-bottom: 8px; }
.cart-footer { padding: 16px 20px; border-top: 1px solid var(--border-light); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cart-total span { font-size: 14px; color: var(--text-secondary); }
.cart-total strong { font-size: 24px; font-weight: 800; color: var(--accent-dark); }
.cart-login-hint { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 10px; }
.cart-login-hint a { color: var(--accent); font-weight: 700; }

/* ====== Auth ====== */
.auth-tabs { display: flex; border-bottom: 1px solid var(--border-light); }
.auth-tab {
  flex: 1; padding: 16px; text-align: center;
  border: none; background: none;
  font-size: 14px; font-weight: 700; color: var(--text-muted);
  border-bottom: 2px solid transparent; transition: all 0.15s;
}
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.auth-tab:hover { color: var(--text); }
.auth-form { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-group input {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius-sm); padding: 11px 14px;
  font-size: 14px; font-family: inherit; color: var(--text); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.auth-error { color: var(--red); font-size: 13px; text-align: center; }

/* User menu */
.user-menu {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
}
.user-menu button {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-xs);
  padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--text-secondary);
  transition: all 0.15s;
}
.user-menu button:hover { border-color: var(--accent); color: var(--accent); }

/* ====== WhatsApp ====== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  z-index: 500; transition: transform 0.2s;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ====== Toast ====== */
.toast-container {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 600; pointer-events: none;
}
.toast {
  background: var(--text); color: #fff;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-md); pointer-events: auto;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.2s forwards;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(12px); } }

/* ====== Footer ====== */
.site-footer { background: var(--surface); border-top: 1px solid var(--border-light); margin-top: auto; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; padding: 40px 20px;
}
.footer-logo { height: 30px; margin-bottom: 10px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.footer-links-col { display: flex; flex-direction: column; gap: 8px; }
.footer-links-col h5 {
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 4px;
}
.footer-links-col a { font-size: 14px; color: var(--text-muted); transition: color 0.15s; }
.footer-links-col a:hover { color: var(--accent); }
.footer-bottom { padding: 16px 20px; border-top: 1px solid var(--border-light); text-align: center; }
.footer-bottom p { font-size: 12px; color: var(--text-muted); }

/* ====== Sidebar Overlay (mobile) ====== */
.sidebar-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(15,23,42,0.3);
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .nav-search { display: none; }
  .mobile-only { display: flex; }
  .btn-filter { display: flex; }

  .products-layout { grid-template-columns: 1fr; }
  .sidebar {
    display: none;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 160;
    width: 280px; border-radius: 0;
    animation: slideInLeft 0.25s ease;
  }
  @keyframes slideInLeft { from { transform: translateX(-100%); } }
  .sidebar.open { display: block; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .modal-product { grid-template-columns: 1fr; }
  .modal-body { overflow-y: auto; }
  .modal-images { max-height: none; overflow-y: visible; }
  .modal-info { max-height: none; overflow-y: visible; }
  .cart-panel { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 40px 0 36px; }
  .banner-slider { aspect-ratio: 2; }
  .home-categories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .home-categories-grid { grid-template-columns: 1fr 1fr; }
}
