:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbeafe;
  --accent: #059669;
  --accent-soft: #d1fae5;
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --text: #0f172a;
  --text-soft: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --header-h: 64px;
  --promo-h: 36px;
  --rail-w: 280px;
  --tutor-w: 360px;
  font-size: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-soft: #1e3a5f;
    --accent: #10b981;
    --accent-soft: #064e3b;
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-2: #334155;
    --surface-3: #475569;
    --text: #f1f5f9;
    --text-soft: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --border-strong: #475569;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  }
}

[data-theme="light"] {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbeafe;
  --accent: #059669;
  --accent-soft: #d1fae5;
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --text: #0f172a;
  --text-soft: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-soft: #1e3a5f;
  --accent: #10b981;
  --accent-soft: #064e3b;
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-2: #334155;
  --surface-3: #475569;
  --text: #f1f5f9;
  --text-soft: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --border-strong: #475569;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}
h1, h2, h3, h4, .brand__text strong { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--primary-soft); color: var(--primary-dark); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--primary); color: white; padding: 10px 16px;
  border-radius: 0 0 8px 0; font-weight: 500;
}
.skip-link:focus { left: 0; }

/* Icon button */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent; color: var(--text);
  transition: background 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn svg { width: 22px; height: 22px; flex-shrink: 0; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1400px; margin: 0 auto;
  padding: 0 16px; gap: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__icon { font-size: 28px; line-height: 1; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.brand__text small { font-size: 11px; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; }

.topbar__search {
  flex: 1; max-width: 480px; min-width: 200px; position: relative;
}
.search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--text-muted); pointer-events: none;
}
.topbar__search input {
  width: 100%; height: 40px; padding: 0 16px 0 44px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.topbar__search input:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.topbar__search input::placeholder { color: var(--text-muted); }

.cart-topbtn { position: relative; }
.cart-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: white; font-size: 11px; font-weight: 700;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  line-height: 1; box-shadow: var(--shadow);
}
.whatsapp-topbtn { color: #25d366; }
.whatsapp-topbtn:hover { background: rgba(37, 211, 102, 0.1); }

/* Promo strip */
.promo-strip {
  height: var(--promo-h);
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 12.5px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  flex-wrap: wrap; text-align: center;
  border-bottom: 1px solid var(--border);
}
.promo-strip a { color: inherit; text-decoration: underline; }

/* Layout */
.layout {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  min-height: calc(100vh - var(--header-h) - var(--promo-h));
}

.sidebar {
  position: sticky; top: calc(var(--header-h) + var(--promo-h));
  height: calc(100vh - var(--header-h) - var(--promo-h));
  overflow-y: auto; padding: 16px; background: var(--surface);
  border-right: 1px solid var(--border);
}
.sidebar__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sidebar__header h2 { margin: 0; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

.category-list { display: flex; flex-direction: column; gap: 2px; }
.category-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-soft); font-size: 14px; font-weight: 500;
  text-align: left; background: transparent; gap: 10px;
  transition: background 0.15s, color 0.15s;
}
.category-btn:hover { background: var(--surface-2); color: var(--text); }
.category-btn[aria-current="true"] { background: var(--primary-soft); color: var(--primary); }
.category-btn .count {
  background: var(--surface-3); color: var(--text-muted);
  padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.category-btn[aria-current="true"] .count { background: var(--primary); color: white; }

/* Sidebar overlay */
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 40;
  opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
}
.sidebar-overlay.visible { opacity: 1; visibility: visible; }

/* Content */
.content { min-width: 0; padding: 24px 24px 40px; max-width: 100%; }

/* Hero */
.hero {
  max-width: 800px; margin: 0 auto 32px; padding: 40px 24px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  text-align: center;
}
.hero__text h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.2; color: var(--text); }
.hero__text p { margin: 0 0 24px; font-size: 16px; color: var(--text-soft); max-width: 500px; margin-left: auto; margin-right: auto; }
.hero__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: var(--primary); color: white;
  font-weight: 600; font-size: 15px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.hero__cta:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.hero__cta:active { transform: translateY(0); }

/* Toolbar */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar__info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#resultsCount { font-size: 14px; color: var(--text-soft); }
.active-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: var(--primary-soft); color: var(--primary);
  border-radius: 20px; font-size: 12px; font-weight: 600;
}
.active-chip button { margin-left: 4px; padding: 0; color: inherit; }
.sort-control { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-soft); }
.sort-control select {
  padding: 8px 32px 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--text);
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}
.sort-control select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-xl);
  border-color: var(--border-strong);
}
.product-card__img {
  aspect-ratio: 1 / 1; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.product-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-card__img img { transform: scale(1.05); }
.product-card__img .placeholder { font-size: 40px; color: var(--text-muted); }

.product-card__body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__category {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--primary); font-family: 'Plus Jakarta Sans', sans-serif;
}
.product-card__title { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__brand { font-size: 12px; color: var(--text-muted); }
.product-card__features { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.chip {
  font-size: 10px; font-weight: 600; padding: 2px 7px;
  background: var(--surface-2); color: var(--text-soft);
  border-radius: 6px; text-transform: uppercase; letter-spacing: 0.03em;
}
.product-card__price-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border);
}
.product-card__price { font-size: 16px; font-weight: 700; color: var(--text); font-family: 'Plus Jakarta Sans', sans-serif; }
.product-card__btn {
  padding: 8px 14px; background: var(--primary); color: white;
  font-size: 12px; font-weight: 600; border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.1s;
}
.product-card__btn:hover { background: var(--primary-dark); }
.product-card__btn:active { transform: scale(0.97); }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state p { margin: 0 0 16px; color: var(--text-soft); font-size: 16px; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 32px; }
.pagination button {
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-weight: 500;
  transition: all 0.15s;
}
.pagination button:hover:not(:disabled) { background: var(--primary); border-color: var(--primary); color: white; }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination button[aria-current="true"] { background: var(--primary); border-color: var(--primary); color: white; }
.pagination .ellipsis { color: var(--text-muted); padding: 0 4px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal__card {
  position: relative; max-width: 480px; width: 100%; max-height: 90vh;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-xl); display: flex; flex-direction: column;
  animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 1; background: var(--surface); border: 1px solid var(--border); }
.modal__close:hover { background: var(--surface-2); }
.modal__img { aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.modal__img img { width: 100%; height: 100%; object-fit: cover; }
.modal__info { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; background: var(--primary-soft); color: var(--primary); border-radius: 20px; font-family: 'Plus Jakarta Sans', sans-serif; }
.modal__info h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.3; }
.modal__brand { margin: 0; font-size: 14px; color: var(--text-soft); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.modal__price { margin: 0; font-size: 24px; font-weight: 800; color: var(--text); font-family: 'Plus Jakarta Sans', sans-serif; }
.modal__code { margin: 0; font-size: 13px; color: var(--text-muted); font-family: 'IBM Plex Mono', monospace; }

.qty-stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.qty-stepper button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text); background: var(--surface); transition: background 0.15s; }
.qty-stepper button:hover { background: var(--surface-2); }
.qty-stepper input { width: 60px; height: 44px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: var(--bg); -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn-primary { width: 100%; padding: 14px; background: var(--primary); color: white; font-weight: 600; font-size: 15px; border-radius: var(--radius-sm); transition: background 0.2s, transform 0.1s; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-link { display: block; text-align: center; padding: 10px; color: var(--primary); font-weight: 500; font-size: 14px; }
.btn-link:hover { text-decoration: underline; }
.modal__note { margin: 0; font-size: 12px; color: var(--text-muted); text-align: center; }

/* Drawer (Cart) */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: 100%; max-width: 420px; background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-xl); display: flex; flex-direction: column; animation: drawerIn 0.3s ease; }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer__view { display: none; flex-direction: column; height: 100%; }
.drawer__view.active { display: flex; }
.drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer__header h2 { margin: 0; font-size: 18px; font-weight: 700; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; padding: 40px 20px; color: var(--text-soft); }
.cart-empty p { margin: 0 0 16px; font-size: 16px; }
.cart-empty .btn-outline { padding: 10px 24px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-weight: 500; }
.drawer__footer { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface-2); }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cart-total-row span { font-size: 14px; color: var(--text-soft); }
.cart-total-row strong { font-size: 22px; font-weight: 800; color: var(--text); font-family: 'Plus Jakarta Sans', sans-serif; }
.drawer__footer .btn-primary { width: 100%; }

/* Cart Item */
.cart-item { display: flex; gap: 12px; padding: 8px 0; }
.cart-item__img { width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; flex-shrink: 0; }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-item__title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
.cart-item__price { font-size: 13px; color: var(--text-soft); }
.cart-item__qty { display: flex; align-items: center; gap: 8px; }
.cart-item__qty button { width: 28px; height: 28px; border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: 14px; display: flex; align-items: center; justify-content: center; }
.cart-item__qty button:hover { background: var(--surface-3); }
.cart-item__qty span { min-width: 24px; text-align: center; font-weight: 600; font-size: 14px; }
.cart-item__remove { color: var(--text-muted); font-size: 12px; padding: 4px 0; }
.cart-item__remove:hover { color: #ef4444; }

/* Checkout */
.checkout-form { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label > span { font-size: 13px; font-weight: 500; color: var(--text); }
.field label > span em { color: var(--accent); font-style: normal; }
.field input { height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field input::placeholder { color: var(--text-muted); }
.delivery-field { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.delivery-field legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.radio-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; }
.radio-row:last-child { margin-bottom: 0; }
.radio-row input { width: 18px; height: 18px; accent-color: var(--primary); }
.radio-row span { font-size: 14px; color: var(--text); }
.radio-row strong { font-weight: 600; color: var(--accent); }

/* Back to top */
.back-to-top { position: fixed; bottom: 90px; right: 20px; z-index: 30; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.2s; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
.back-to-top svg { width: 24px; height: 24px; }

/* WhatsApp FAB */
.whatsapp-fab { position: fixed; bottom: 20px; right: 20px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: white; box-shadow: var(--shadow-xl); display: flex; align-items: center; justify-content: center; animation: fabIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes fabIn { from { opacity: 0; transform: scale(0) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.whatsapp-fab:hover { background: #1db954; }
.whatsapp-fab svg { width: 28px; height: 28px; }

/* Footer */
.site-footer { margin-top: 48px; padding: 40px 24px 24px; background: var(--surface); border-top: 1px solid var(--border); }
.site-footer__grid { max-width: 1200px; margin: 0 auto 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.footer__logo { display: inline-block; font-size: 20px; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text); margin-bottom: 8px; }
.site-footer__grid p { margin: 0 0 6px; font-size: 14px; color: var(--text-soft); line-height: 1.7; }
.site-footer__grid h3 { margin: 0 0 12px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); }
.site-footer__bottom { max-width: 1200px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--border); text-align: center; font-size: 13px; color: var(--text-muted); }

/* Toast */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px); z-index: 200; padding: 12px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xl); font-size: 14px; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 8px; opacity: 0; transition: all 0.3s; }
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--accent); }
.toast.error { border-color: #ef4444; }

/* Responsive */
@media (max-width: 768px) {
  :root { --rail-w: 100%; --header-h: 56px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: calc(var(--header-h) + var(--promo-h)); left: 0; right: 0; bottom: 0; max-height: none; height: auto; z-index: 45; transform: translateX(-100%); transition: transform 0.3s ease; border-right: none; border-bottom: 1px solid var(--border); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.visible { z-index: 40; }
  .content { padding: 16px 16px 100px; }
  .hero { padding: 24px 16px; margin-bottom: 20px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .sort-control { width: 100%; justify-content: space-between; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .back-to-top { bottom: 84px; right: 16px; width: 44px; height: 44px; }
  .whatsapp-fab { bottom: 16px; right: 16px; width: 52px; height: 52px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
}