/* ============================================
   MultiSupply — Hardware Store Theme
   Light, clean, industrial-utilitarian
   ============================================ */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f8;
  --bg-card: #ffffff;
  --bg-hover: #fafafa;
  --text-primary: #1a1a1a;
  --text-secondary: #5a5a5a;
  --text-muted: #9a9a9a;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-light: #fff7ed;
  --accent-glow: rgba(249, 115, 22, 0.08);
  --success: #16a34a;
  --success-light: #dcfce7;
  --error: #dc2626;
  --error-light: #fef2f2;
  --warning: #f59e0b;
  --border: #e5e7eb;
  --border-light: #f0f0f0;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-full: 100px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
  --header-h: 116px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-content {
  display: flex; align-items: center; gap: 16px;
  height: var(--header-h);
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 104px; width: auto; }

/* Header Search */
.header-search {
  flex: 1; display: flex; align-items: center;
  justify-content: center; min-width: 0;
}
.search-wrapper {
  position: relative; width: 100%; max-width: 480px;
}
.search-wrapper .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.search-wrapper input {
  width: 100%; padding: 8px 60px 8px 36px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-full); font-size: 0.85rem;
  font-family: var(--font-main); color: var(--text-primary);
  outline: none; transition: all 0.2s;
}
.search-wrapper input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: #fff;
}
.search-wrapper input::placeholder { color: var(--text-muted); }
.search-hint {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 0.65rem; color: var(--text-muted); background: var(--bg-primary);
  border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px;
  font-family: var(--font-mono); pointer-events: none;
}

/* ===== FAMILY BAR (below hero, sticky) ===== */
.family-bar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 8px 0;
  position: sticky; top: var(--header-h); z-index: 50;
}
.family-scroll {
  display: flex; gap: 2px; overflow-x: auto; padding: 2px 0;
  scrollbar-width: none; -ms-overflow-style: none;
}
.family-scroll::-webkit-scrollbar { display: none; }
.family-btn {
  flex-shrink: 0; padding: 6px 14px;
  background: transparent; border: 1px solid transparent;
  border-radius: var(--radius-full); font-size: 0.82rem;
  font-weight: 500; color: var(--text-secondary);
  transition: all 0.15s; white-space: nowrap;
}
.family-btn:hover { color: var(--accent); background: var(--accent-light); }
.family-btn.active {
  background: var(--accent); color: #fff;
  border-color: var(--accent); font-weight: 600;
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.action-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: transparent;
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;
  transition: all 0.2s;
}
.action-btn:hover { border-color: var(--accent); color: var(--accent); }
.action-btn svg { flex-shrink: 0; }
.action-label { white-space: nowrap; }
.cart-btn { position: relative; }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

/* Mobile Search */
.mobile-search {
  display: none; padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
}
.search-wrapper.mobile { max-width: 100%; }
.search-wrapper.mobile input { padding: 10px 16px 10px 36px; font-size: 0.9rem; }

/* ===== HERO COMPACT ===== */
.hero-compact {
  padding: 132px 0 16px;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--bg-secondary) 100%);
}
.hero-row {
  display: flex; align-items: center; gap: 24px;
}
.hero-left {
  flex: 1; min-width: 0;
}
.hero-left h1 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800; line-height: 1.15;
  color: var(--text-primary); margin-bottom: 6px;
}
.hero-left h1 span { color: var(--accent); }
.hero-left p {
  font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 12px;
}
/* Promo card inside hero */
.hero-promo {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff; padding: 14px 18px; border-radius: var(--radius-lg);
  text-decoration: none; flex-shrink: 0; max-width: 420px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-promo:hover { transform: scale(1.02); box-shadow: 0 6px 24px rgba(249,115,22,0.3); }
.hero-promo-img { height: 64px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
.hero-promo-text { flex: 1; min-width: 0; }
.hero-promo-text strong { display: block; font-size: 0.9rem; font-weight: 700; }
.hero-promo-text span { font-size: 0.78rem; opacity: 0.92; }
.hero-promo-cta {
  background: #fff; color: var(--accent); padding: 7px 14px;
  border-radius: var(--radius-full); font-weight: 700; font-size: 0.78rem;
  white-space: nowrap; flex-shrink: 0;
}

/* Hero promo strip — CTA chips */
.hero-promos-strip {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
.promo-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-full);
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; text-decoration: none; border: none;
  font-family: var(--font-main);
}
.promo-chip--fire {
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #fff; box-shadow: 0 2px 12px rgba(249,115,22,0.3);
}
.promo-chip--fire:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(249,115,22,0.45); }
.promo-chip--location {
  background: #fff; color: var(--text-primary);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.promo-chip--location:hover { border-color: var(--accent); color: var(--accent); }
/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border: none; border-radius: var(--radius);
  font-family: var(--font-main); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(249,115,22,0.25); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius);
  background: var(--bg-secondary); border: 1px solid var(--border);
  font-size: 1rem; transition: all 0.2s; cursor: pointer;
}
.btn-icon:hover { border-color: var(--accent); background: var(--accent-light); }
.btn-icon.whatsapp { background: #dcfce7; border-color: #86efac; }
.btn-icon.whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }

/* ===== STORE INFO BAR ===== */
.store-info-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 20px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 8px;
}
.store-info-left {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; flex: 1;
}
.store-info-left svg { color: var(--accent); flex-shrink: 0; }
.store-info-left strong { font-size: 0.9rem; display: block; }
.store-info-left span { font-size: 0.8rem; color: var(--text-secondary); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-info-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.store-km {
  font-size: 0.85rem; font-weight: 700; color: var(--accent);
  padding: 4px 10px; background: var(--accent-light);
  border-radius: var(--radius-full);
}
.delivery-fee {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 20px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.9rem;
}
.delivery-fee .label { color: var(--text-secondary); }
.delivery-fee .value { font-weight: 700; color: var(--accent); }
.delivery-fee.free { background: var(--success-light); border-color: #86efac; }
.delivery-fee.free .value { color: var(--success); }

/* ===== CATEGORY SUBMENU ===== */
.category-submenu-wrapper {
  background: #fff; border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
  position: sticky; top: calc(var(--header-h) + 44px); z-index: 49;
}
.category-submenu {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none;
}
.category-submenu::-webkit-scrollbar { display: none; }
.subcat-chip {
  flex-shrink: 0; padding: 5px 12px;
  background: var(--bg-secondary); border: 1px solid transparent;
  border-radius: var(--radius-full); font-size: 0.75rem;
  font-weight: 500; color: var(--text-secondary);
  transition: all 0.15s; white-space: nowrap; cursor: pointer;
}
.subcat-chip:hover { background: var(--accent-light); color: var(--accent); }
.subcat-chip.active {
  background: var(--accent-light); color: var(--accent);
  border-color: var(--accent); font-weight: 600;
}

/* ===== PRODUCTS ===== */
#tienda-section { padding: 24px 0 60px; }
.products-header {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 20px;
}
.products-header h2 { font-size: 1.3rem; font-weight: 700; }
.products-count {
  font-size: 0.85rem; color: var(--text-muted);
  background: var(--bg-secondary); padding: 2px 10px;
  border-radius: var(--radius-full);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Product Card */
.product-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.25s; position: relative;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.product-image {
  position: relative; aspect-ratio: 1/1;
  background: var(--bg-secondary); overflow: hidden;
  cursor: pointer;
}
.product-image img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 12px; transition: transform 0.3s;
}
.product-card:hover .product-image img { transform: scale(1.06); }
.product-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 8px; background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 700; border-radius: var(--radius-full);
}
.product-info { padding: 14px 16px 16px; }
.product-category {
  font-size: 0.68rem; color: var(--accent); text-transform: uppercase;
  font-weight: 600; letter-spacing: 0.3px; margin-bottom: 4px;
  display: block;
}
.product-name {
  font-size: 0.92rem; font-weight: 600; color: var(--text-primary);
  line-height: 1.3; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.product-sku {
  font-size: 0.72rem; color: var(--text-muted);
  font-family: var(--font-mono); margin-bottom: 10px;
}
.product-weight {
  font-size: 0.78rem; color: var(--text-secondary); margin: 6px 0;
}
.product-details-link {
  font-size: 0.8rem; color: var(--accent); display: inline-block;
  margin-bottom: 8px;
}
.product-details-link:hover { text-decoration: underline; }
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid var(--border-light);
}
.product-price {
  font-family: var(--font-mono); font-size: 1.1rem;
  font-weight: 700; color: var(--accent);
}
.product-price small {
  font-size: 0.7em; color: var(--text-muted);
  text-decoration: line-through; margin-left: 6px;
}
.add-to-cart {
  width: 38px; height: 38px; background: var(--accent);
  border: none; border-radius: 50%; color: #fff;
  font-size: 1.2rem; display: flex; align-items: center;
  justify-content: center; transition: all 0.2s;
}
.add-to-cart:hover { background: var(--accent-hover); transform: scale(1.08); }
.add-to-cart:disabled { background: var(--text-muted); cursor: not-allowed; transform: none; }

/* WhatsApp price inquiry button */
.btn-whatsapp-price {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; background: #25d366; color: #fff;
  border: none; border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: all 0.2s;
  font-family: var(--font-main);
}
.btn-whatsapp-price:hover { background: #1fb855; transform: scale(1.03); }

/* ===== PROMO BANNER (legacy, kept for compat) ===== */
.promo-banner {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff; padding: 16px 20px; border-radius: var(--radius-lg);
  display: block; transition: transform 0.2s, box-shadow 0.2s;
}
.promo-banner:hover { transform: scale(1.01); box-shadow: 0 8px 30px rgba(249,115,22,0.3); }
.promo-banner-content { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.promo-banner-img { height: 100px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
.promo-banner-text { flex: 1; min-width: 200px; }
.promo-banner-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.promo-banner-desc { font-size: 0.88rem; opacity: 0.95; line-height: 1.4; }
.promo-banner-cta {
  background: #fff; color: var(--accent); padding: 10px 20px;
  border-radius: var(--radius-full); font-weight: 700; font-size: 0.9rem; white-space: nowrap;
}

/* ===== CART SIDEBAR ===== */
.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 420px; background: #fff;
  border-left: 1px solid var(--border); z-index: 300;
  transform: translateX(100%); transition: transform 0.3s ease;
  display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.08);
}
.cart-sidebar.active { transform: translateX(0); }
.cart-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-header h3 { font-size: 1.1rem; font-weight: 700; }
.cart-close {
  width: 36px; height: 36px; background: transparent;
  border: 1px solid var(--border); border-radius: 50%;
  color: var(--text-secondary); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.cart-close:hover { background: var(--error-light); border-color: var(--error); color: var(--error); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.cart-item-image {
  width: 64px; height: 64px; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-secondary); flex-shrink: 0;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 500; font-size: 0.9rem; margin-bottom: 2px; }
.cart-item-price { font-family: var(--font-mono); color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty-btn {
  width: 28px; height: 28px; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-primary); font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { border-color: var(--accent); background: var(--accent-light); }
.cart-footer {
  padding: 20px 24px; border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.cart-summary { margin-bottom: 16px; }
.cart-summary-row {
  display: flex; justify-content: space-between;
  margin-bottom: 8px; font-size: 0.9rem;
}
.cart-summary-row.total {
  font-weight: 700; font-size: 1.05rem;
  border-top: 1px solid var(--border); padding-top: 8px; margin-top: 8px;
}
.cart-summary-row span:last-child { text-align: right; font-weight: 600; }
#cart-shipping, #cart-subtotal, #cart-total { text-align: right; min-width: 80px; }

.payment-options { display: flex; flex-direction: column; gap: 8px; }
.payment-btn {
  padding: 13px 20px; border-radius: var(--radius);
  font-family: var(--font-main); font-size: 0.95rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
}
.payment-btn.sinpe { background: #2563eb; color: #fff; border: none; }
.payment-btn.sinpe:hover { background: #1d4ed8; }
.payment-btn.cod { background: #fff; color: var(--text-primary); border: 1.5px solid var(--border); }
.payment-btn.cod:hover { border-color: var(--accent); }
.payment-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== SINPE MODAL ===== */
.sinpe-screen { text-align: center; padding: 20px; }
.sinpe-amount { font-size: 2rem; font-weight: 700; color: var(--accent); margin: 20px 0; }
.sinpe-phone { font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.sinpe-name { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 24px; }
.sinpe-actions { display: flex; flex-direction: column; gap: 10px; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px); z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden; transition: all 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 100%; max-width: 500px;
  max-height: 90vh; overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s; box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close {
  width: 34px; height: 34px; background: transparent;
  border: 1px solid var(--border); border-radius: 50%;
  color: var(--text-secondary); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--error-light); border-color: var(--error); color: var(--error); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end;
}

/* Product detail modal */
#product-detail-content { line-height: 1.7; }
#product-detail-content h2 { font-size: 1.2rem; margin-bottom: 10px; color: var(--accent); }
#product-detail-content h3 { font-size: 1.05rem; margin: 18px 0 8px; color: var(--text-primary); }
#product-detail-content p { margin-bottom: 10px; }
#product-detail-content ul { margin: 10px 0; padding-left: 20px; }
#product-detail-content ul li { margin-bottom: 6px; }
#product-detail-content table { margin: 12px 0; border-collapse: collapse; width: 100%; font-size: 0.9rem; }
#product-detail-content table th { background: var(--bg-secondary); padding: 8px 10px; text-align: left; border: 1px solid var(--border); font-weight: 600; }
#product-detail-content table td { padding: 8px 10px; border: 1px solid var(--border); }
#product-detail-content strong { color: var(--text-primary); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 500;
  margin-bottom: 6px; color: var(--text-secondary);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-primary);
  font-family: var(--font-main); font-size: 0.95rem;
  transition: border 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow); background: #fff;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Auth tabs */
.auth-tabs {
  display: flex; margin-bottom: 20px; border-bottom: 1px solid var(--border);
}
.auth-tab {
  flex: 1; padding: 10px; text-align: center; border: none;
  background: none; font-family: var(--font-main); font-size: 0.95rem;
  color: var(--text-secondary); cursor: pointer;
}
.auth-tab.active {
  color: var(--accent); border-bottom: 2px solid var(--accent); margin-bottom: -1px;
}

/* ===== PETS ===== */
.pets-list { display: flex; flex-direction: column; gap: 0; }
.pet-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 12px;
  border-bottom: 1px solid var(--border-light);
}
.pet-card:last-child { border-bottom: none; }
.pet-avatar {
  width: 48px; height: 48px; background: var(--accent-light);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; flex-shrink: 0;
}
.pet-photo {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border);
}
.pet-info { flex: 1; }
.pet-name { font-weight: 600; font-size: 0.95rem; }
.pet-details { font-size: 0.82rem; color: var(--text-secondary); }
.pet-edit-btn {
  background: var(--accent-light); color: var(--accent); border: none;
  padding: 3px 8px; border-radius: 4px; font-size: 0.72rem; margin-left: 6px;
}
.pet-delete {
  width: 32px; height: 32px; background: transparent;
  border: 1px solid var(--border); border-radius: 50%;
  color: var(--text-muted); display: flex; align-items: center;
  justify-content: center; font-size: 0.9rem;
}
.pet-delete:hover { background: var(--error-light); border-color: var(--error); color: var(--error); }

/* ===== ACCOUNT ===== */
.store-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.logout-btn {
  background: var(--error-light); color: var(--error);
  border: 1px solid #fecaca; padding: 10px 20px;
  border-radius: var(--radius); cursor: pointer; margin-top: 12px;
}

/* ===== SECTION ===== */
section { padding: 24px 0; }
.section-header { margin-bottom: 24px; }
.section-header h2 { font-size: 1.5rem; font-weight: 700; }
.section-header p { color: var(--text-secondary); margin-top: 4px; }

/* ===== FOOTER ===== */
footer {
  padding: 32px 0; border-top: 1px solid var(--border);
  text-align: center; background: #fff;
}
.footer-logo { margin-bottom: 8px; }
.footer-logo img { height: 80px; margin: 0 auto; }
footer p { color: var(--text-muted); font-size: 0.85rem; }

/* ===== UTILITIES ===== */
.loading { display: flex; justify-content: center; padding: 60px; }
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 22px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); z-index: 400;
  opacity: 0; transition: all 0.3s; box-shadow: var(--shadow);
}
.toast.active { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { border-color: var(--success); background: var(--success-light); color: var(--success); }
.toast.error { border-color: var(--error); background: var(--error-light); color: var(--error); }

.empty-state { text-align: center; padding: 48px 20px; color: var(--text-secondary); }
.empty-state h4 { font-size: 1.1rem; margin-bottom: 6px; color: var(--text-primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .header-search { display: none; }
  .mobile-search { display: block; }
  .hero-compact { padding: 128px 0 12px; }
  .hero-row { flex-direction: column; gap: 12px; }
  .hero-left { text-align: center; }
  .hero-left h1 { font-size: 1.4rem; }
  .hero-left p { font-size: 0.85rem; }
  .hero-promo { max-width: 100%; }
  .hero { padding: 136px 0 24px; }
  .category-submenu-wrapper { top: calc(var(--header-h) + 88px); }
  .hero-text h1 { font-size: 1.6rem; }
  .hero-text p { font-size: 0.9rem; }
  .hero-badges { gap: 6px; }
  .badge { font-size: 0.72rem; padding: 5px 10px; }
  .action-label { display: none; }
  .action-btn { padding: 8px 10px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .product-info { padding: 10px 12px 14px; }
  .product-name { font-size: 0.82rem; }
  .product-price { font-size: 0.95rem; }
  .add-to-cart { width: 34px; height: 34px; font-size: 1rem; }
  .store-info-bar { flex-direction: column; gap: 10px; align-items: flex-start; }
  .store-info-right { width: 100%; justify-content: flex-start; }
  .promo-banner-content { justify-content: center; text-align: center; }
  .promo-banner-text { text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .cart-sidebar { max-width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-image { aspect-ratio: 1/1; }
  .product-info { padding: 8px 10px 12px; }
  .product-category { font-size: 0.62rem; }
  .product-name { font-size: 0.78rem; -webkit-line-clamp: 2; }
  .product-sku { display: none; }
  .product-footer { padding-top: 8px; }
  .product-price { font-size: 0.88rem; }
  .hero-badges { flex-direction: column; align-items: center; }
  .logo img { height: 64px; }
  #pet-foto-preview { margin-bottom: 10px; }
}
