:root {
  --brand: #270f57;
  --brand-dark: #1d0b41;
  --brand-light: #441b98;
  --price: #441b98;
  --link: #2662d9;
  --cyan: #29d6d6;
  --cyan-light: #94ebeb;
  --cyan-bg: #eafbfb;
  --green-bg: #ebfaf7;
  --pink-bg: #fbe9fb;
  --blue-bg: #e9effb;
  --orange-bg: #facc9e;
  --bg: #f5f5f5;
  --card-bg: #ffffff;
  --text: #262626;
  --text-secondary: #545454;
  --text-muted: #737373;
  --text-lighter: #bfbfbf;
  --border: #e8e8e8;
  --whatsapp: #25d366;
  --footer-bg: #1d0b41;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --transition: 0.15s ease;
  --shadow: 0 1px 3px rgba(0,0,0,0.04);
  --radius: 4px;
}

[data-theme="dark"] {
  --bg: #111118;
  --card-bg: #1a1a24;
  --border: #2a2a38;
  --text: #e0e0e0;
  --text-secondary: #a0a0b0;
  --text-muted: #707080;
  --footer-bg: #0d0d14;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input { font-family: inherit; font-size: inherit; }
::selection { background: var(--brand); color: white; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

/* Top bar */
.topbar {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  text-align: center;
  padding: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 0.75rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}
.logo svg { flex-shrink: 0; opacity: 0.9; }
.search-bar {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 0.55rem 0.75rem 0.55rem 2.5rem;
  border: none;
  background: #ffffff;
  color: var(--text);
  font-size: 0.8rem;
  outline: none;
  border-radius: var(--radius);
}
.search-bar input::placeholder { color: var(--text-lighter); }
.search-bar .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.theme-toggle:hover { color: #fff; }
.search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.search-toggle:hover { color: #fff; }
.login-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.6rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  font-weight: 600;
  transition: color var(--transition);
}
.login-btn:hover { color: #fff; }
.login-btn span { font-size: 0.72rem; }
.cart-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.7rem;
  background: var(--brand-light);
  color: white;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  transition: background var(--transition);
}
.cart-btn:hover { background: var(--brand); }
.cart-count {
  background: rgba(255,255,255,0.2);
  padding: 0.05rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 2px;
}

/* Search slide (mobile) */
.search-slide {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--brand-dark);
  padding: 0.5rem 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.search-slide.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.search-slide-inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.search-slide-icon {
  display: flex;
  align-items: center;
  padding: 0 0 0 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}
.search-slide-icon svg { display: block; }
.search-slide input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.5rem;
  border: none;
  background: #ffffff;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  border-radius: var(--radius);
  margin: 0 0.5rem;
}
.search-slide input::placeholder { color: var(--text-lighter); }
.search-slide-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.5);
}
.search-slide-close:hover { color: #fff; }

/* Category nav bar */
.catnav {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.catnav-inner {
  display: flex;
  gap: 0;
  height: 56px;
  align-items: center;
}
.catnav-link {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand);
  white-space: nowrap;
  transition: color var(--transition);
  position: relative;
}
.catnav-link:hover { color: var(--cyan); }
.catnav-link.active { color: var(--brand); font-weight: 700; }
.catnav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--cyan);
}

/* Hero */
.hero-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  padding: 2rem 0;
  margin-bottom: 1.5rem;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.hero-text h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.hero-text p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  max-width: 400px;
  line-height: 1.6;
}
.hero-text .hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: var(--cyan);
  color: var(--brand-dark);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  transition: opacity var(--transition);
}
.hero-text .hero-btn:hover { opacity: 0.9; }
.hero-visual svg { width: 180px; height: 180px; opacity: 0.3; }

/* Categories */
.categories {
  padding: 0 0 1rem;
}
.category-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.category-btn {
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.category-btn:hover { border-color: var(--brand); color: var(--brand); }
.category-btn.active { background: var(--brand); color: white; border-color: var(--brand); }

/* Products Section */
.products-section {
  padding: 0 0 2.5rem;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
}
.product-grid, #products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
  position: relative;
}
.product-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.product-image {
  position: relative;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  aspect-ratio: 1;
}
.product-image svg, .product-image img {
  width: 52px;
  height: 52px;
  opacity: 0.25;
  transition: transform 0.3s ease;
}
.product-card:hover .product-image svg { transform: scale(1.08); }
.discount-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--cyan-light);
  color: var(--text);
  border-radius: var(--radius);
}
.product-label {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.6rem;
  font-weight: 600;
  border-radius: var(--radius);
  white-space: nowrap;
}
.product-label.envio { background: var(--green-bg); color: var(--text); }
.product-label.stock { background: var(--pink-bg); color: var(--text); }
.product-label.digital { background: var(--blue-bg); color: var(--text); }
.product-label.offer { background: var(--orange-bg); color: var(--text); }
.product-info {
  padding: 0.65rem 0.75rem 0.75rem;
}
.product-category {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.product-name {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}
.product-rating .stars { color: var(--cyan); font-size: 0.55rem; letter-spacing: 1px; }
.product-rating .reviews { font-size: 0.6rem; color: var(--text-muted); }
.product-price {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  margin-bottom: 0.5rem;
}
.product-price .old {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-price .current {
  font-size: 1rem;
  font-weight: 700;
  color: var(--price);
}
.product-price .transfer-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 500;
}
.product-price .other-price {
  font-size: 0.65rem;
  color: var(--text-secondary);
}
.add-to-cart {
  width: 100%;
  padding: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--brand);
  color: white;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.add-to-cart:hover { background: var(--brand-light); }
.add-to-cart:disabled { opacity: 0.4; cursor: default; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 1.5rem;
}
.page-btn {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-btn.active { background: var(--brand); color: white; border-color: var(--brand); }
.page-btn:disabled { opacity: 0.35; }
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  text-align: center;
}
.empty-state svg { width: 40px; height: 40px; opacity: 0.3; }
.empty-state h3 { font-size: 0.9rem; font-weight: 700; color: var(--text-secondary); }
.empty-state p { font-size: 0.8rem; }

/* Cart Sidebar */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 88vw;
  height: 100%;
  z-index: 300;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}
.cart-sidebar.open { right: 0; }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 1rem; font-weight: 700; }
.cart-close {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.cart-close:hover { color: var(--brand); }
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1rem;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  gap: 0.5rem;
}
.cart-empty svg { opacity: 0.2; }
.cart-item {
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-image {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-image svg { width: 20px; height: 20px; opacity: 0.3; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.8rem; font-weight: 600; margin-bottom: 0.1rem; }
.cart-item-price { font-size: 0.8rem; color: var(--price); font-weight: 700; }
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.quantity-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition);
}
.quantity-btn:hover { border-color: var(--brand); color: var(--brand); }
.cart-item-quantity {
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}
.cart-item-remove {
  background: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  margin-left: 0.2rem;
  transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--brand); }
.cart-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}
.cart-total span:first-child { font-weight: 600; font-size: 0.85rem; }
.cart-total .total-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--price);
}
.checkout-btn {
  width: 100%;
  padding: 0.65rem;
  background: var(--brand);
  color: white;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background var(--transition);
}
.checkout-btn:hover { background: var(--brand-light); }

/* Product Modal */
.modal, #product-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  overflow: hidden;
}
.modal.open, #product-modal.open { opacity: 1; pointer-events: all; overflow: auto; }
#product-modal .product-modal-content {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  max-width: 400px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  border-radius: var(--radius);
  transform: translateY(15px);
  transition: transform 0.3s ease;
}
#product-modal.open .product-modal-content { transform: translateY(0); }
.product-modal-image {
  aspect-ratio: 4/3;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-modal-image svg { width: 64px; height: 64px; opacity: 0.15; }
.product-modal-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.product-modal-info .product-category {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.product-modal-info h2 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
}
.product-modal-rating .stars { color: var(--cyan); font-size: 0.7rem; }
.product-modal-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.product-modal-prices .current {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--price);
}
.product-modal-prices .old {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 0.4rem;
}
.product-modal-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.product-modal-actions .add-to-cart {
  flex: 1;
  padding: 0.65rem;
  background: var(--brand);
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
}
.product-modal-actions .add-to-cart:hover { background: var(--brand-light); }
.whatsapp-btn-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--whatsapp);
  color: white;
  border-radius: var(--radius);
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.whatsapp-btn-modal:hover { opacity: 0.85; }
.whatsapp-btn-modal svg { width: 18px; height: 18px; }
.product-modal-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  color: var(--text-secondary);
  transition: color var(--transition);
}
.product-modal-close:hover { color: var(--brand); }

/* Auth Modal */
.modal-content {
  background: var(--card-bg);
  width: 100%;
  max-width: 380px;
  padding: 1.75rem;
  border-radius: var(--radius);
  transform: translateY(15px);
  transition: transform 0.3s ease;
}
.modal.open .modal-content { transform: translateY(0); }
.auth-tabs {
  display: flex;
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.auth-tab {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}
.auth-tab.active { background: var(--brand); color: white; }
.auth-form { display: flex; flex-direction: column; gap: 0.85rem; }
.auth-form h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.2rem; }
.form-group label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
}
.form-group input {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus { border-color: var(--brand); }
.auth-submit {
  padding: 0.65rem;
  background: var(--brand);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background var(--transition);
  margin-top: 0.35rem;
}
.auth-submit:hover { background: var(--brand-light); }

/* Toast */
.toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(70px);
  z-index: 500;
  background: var(--brand-dark);
  color: white;
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Footer */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.5);
  padding: 2.5rem 0 0;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
}
.footer-brand .logo { color: #fff; }
.footer-brand p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  margin-top: 0.5rem;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col li { font-size: 0.8rem; }
.footer-col a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}
.footer-bottom a { color: var(--cyan); }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--whatsapp);
  color: white;
  border-radius: var(--radius);
  box-shadow: 0 3px 12px rgba(37,211,102,0.3);
  transition: opacity var(--transition);
}
.whatsapp-float:hover { opacity: 0.85; }

/* Overlay */
#overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
#overlay.open {
  background: rgba(0,0,0,0.35);
  pointer-events: all;
}

/* Responsive */
@media (max-width: 1100px) {
  .product-grid, #products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .product-grid, #products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-text p { margin: 0 auto; }
  .hero-visual { display: none; }
}
@media (max-width: 768px) {
  .header-inner { height: 64px; }
  .login-btn span { display: none; }
  .category-list { gap: 0.35rem; }
  .category-btn { font-size: 0.72rem; padding: 0.35rem 0.8rem; }
  .cart-sidebar { width: 100vw; right: -100vw; }
}
@media (max-width: 540px) {
  .header-inner { justify-content: space-between; }
  .search-toggle { display: flex; }
  .search-bar { display: none; }
  .topbar { font-size: 0.6rem; padding: 0.3rem; }
  .catnav-inner { padding: 0 0.5rem; }
  .catnav-link { font-size: 0.72rem; padding: 0.5rem 0.7rem; }
  .hero-text h1 { font-size: 1.3rem; }
  .hero-text p { font-size: 0.8rem; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .cart-sidebar { width: 100%; right: -100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; text-align: center; }
}
@media (max-width: 480px) {
  .product-grid, #products-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .product-image { padding: 1rem; }
  .product-image svg { width: 36px; height: 36px; }
  .product-info { padding: 0.5rem; }
  .product-price .current { font-size: 0.85rem; }
  .product-name { font-size: 0.7rem; }
  .product-category { font-size: 0.5rem; }
  .hero-text h1 { font-size: 1.1rem; }
}
