/* ═══════════════════════════════════════════════════════════════
   compralo.uy — Design System
   Premium e-commerce UI · Apple / Stripe / Nike aesthetic
═══════════════════════════════════════════════════════════════ */

/* ── 1. Rendering & base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  text-size-adjust: 100%;
}

/* ── 2. Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4d2ca; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #9c9a90; }

/* ── 3. Selection ───────────────────────────────────────────── */
::selection { background: rgba(29,109,229,.12); color: inherit; }

/* ── 4. Focus (keyboard only) ───────────────────────────────── */
:focus-visible {
  outline: 2px solid #1d6de5;
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── 5. Fonts ───────────────────────────────────────────────── */
body { font-family: 'DM Sans', system-ui, sans-serif; }
.font-mono { font-family: 'DM Mono', ui-monospace, monospace; }

/* ── 6. Typography scale ────────────────────────────────────── */
h1 { letter-spacing: -0.03em; line-height: 1.1; font-weight: 600; }
h2 { letter-spacing: -0.025em; line-height: 1.15; }
h3 { letter-spacing: -0.02em; line-height: 1.2; }
p  { line-height: 1.6; }

/* ── 7. Placeholders ────────────────────────────────────────── */
::placeholder { opacity: 0.45; }

/* ── 8. Images ──────────────────────────────────────────────── */
img { display: block; max-width: 100%; }

/* ── 9. Global transitions on interactive elements ──────────── */
a, button, [role="button"] {
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── 10. Press feedback — premium microinteraction ──────────── */
button:not(:disabled):not(.no-press):active,
a[href]:not(.no-press):active {
  transform: scale(0.96);
}

/* ── 11. Animations ─────────────────────────────────────────── */
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── 12. Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════════ */

.vs-nav {
  border-bottom: 1px solid var(--vs-border, #e2e0d8) !important;
  height: 64px !important;
}

/* Nav logo */
.vs-logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: inherit;
}
.vs-logo-dot { color: var(--vs-accent, #1d6de5); }

/* Nav search input */
.vs-nav-input {
  transition: border-color .2s ease, box-shadow .2s ease !important;
  font-size: 13px !important;
}
.vs-nav-input:focus {
  border-color: #1a1917 !important;
  box-shadow: 0 0 0 3px rgba(26,25,23,.06) !important;
  outline: none !important;
}

/* Nav icon button — unified system */
.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--vs-border, #e2e0d8);
  background: transparent;
  color: var(--vs-fg, #1a1917);
  cursor: pointer;
  position: relative;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-icon-btn:hover {
  background: var(--vs-card, #fff);
  border-color: #c0beb4;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.nav-icon-btn svg { display: block; pointer-events: none; }

/* Count badge */
.nav-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--vs-bg, #f7f6f3);
  pointer-events: none;
}

/* Cart button */
.nav-cart-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  height: 38px;
  border-radius: 10px;
  background: var(--vs-fg, #1a1917);
  color: var(--vs-bg, #f7f6f3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-cart-btn:hover {
  opacity: .88;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.nav-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--vs-accent, #1d6de5);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* User dropdown */
.nav-user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 188px;
  background: #fff;
  border: 1px solid #e2e0d8;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
  animation: scaleIn .18s cubic-bezier(.22,.68,0,1.2);
  transform-origin: top right;
  z-index: 60;
}
.nav-user-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: #1a1917;
  text-decoration: none;
  transition: background .12s;
}
.nav-user-dropdown a:hover { background: #f7f6f3; }
.nav-user-dropdown .divider {
  height: 1px;
  background: #f0ede8;
  margin: 4px 0;
}

/* Mobile menu */
#mobile-menu:not(.hidden) {
  animation: fadeIn .2s ease;
}
#mobile-menu:not(.hidden) > div {
  animation: mobileSlideDown .22s cubic-bezier(.22,.68,0,1.2);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mobileSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT CARDS — Premium system
═══════════════════════════════════════════════════════════════ */

/* Card base */
.product-card {
  background: var(--vs-card, #fff);
  border: 1px solid var(--vs-border, #e2e0d8);
  border-radius: 16px;
  padding: .875rem;
  transition: box-shadow .32s cubic-bezier(.25,.46,.45,.94),
              transform .28s cubic-bezier(.25,.46,.45,.94),
              border-color .2s ease;
  will-change: transform;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,.09), 0 6px 20px rgba(0,0,0,.05);
  border-color: transparent !important;
}

/* Image hover swap (fade + scale) */
.product-img-container { display: block; }
.product-img-wrap {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #f5f4f0;
}
.product-img-primary,
.product-img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .45s ease, transform .55s cubic-bezier(.25,.46,.45,.94);
  will-change: opacity, transform;
}
.product-img-primary { opacity: 1; transform: scale(1); z-index: 1; }
.product-img-hover   { opacity: 0; transform: scale(1.05); z-index: 2; }

.product-card:hover .product-img-primary { opacity: 0; transform: scale(1.05); }
.product-card:hover .product-img-hover   { opacity: 1; transform: scale(1); }
.product-card:hover .product-img-wrap:not(:has(.product-img-hover)) .product-img-primary {
  transform: scale(1.04);
}

/* Tag badges */
.badge-tag {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
}
.badge-new  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-sale { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

/* Wishlist button */
.wishlist-btn {
  transition: transform .22s cubic-bezier(.34,1.56,.64,1),
              background .15s, border-color .15s !important;
}
.wishlist-btn:hover {
  transform: scale(1.18) !important;
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
}

/* Add to cart button */
.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border-radius: 8px;
  background: var(--vs-fg, #1a1917);
  color: var(--vs-bg, #f7f6f3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, box-shadow .18s, transform .14s;
}
.btn-add-cart:hover {
  background: #2d2c2a;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.btn-add-cart:active { transform: scale(0.94) !important; }
.btn-add-cart:disabled {
  opacity: .35;
  cursor: not-allowed;
  background: #c4c2b8;
  box-shadow: none;
  transform: none !important;
}

/* Price */
.price-current { font-size: 15px; font-weight: 700; letter-spacing: -0.03em; font-family: 'DM Mono', monospace; }
.price-old     { font-size: 11px; color: #9c9a90; text-decoration: line-through; font-family: 'DM Mono', monospace; }

/* Stock indicators */
.stock-in  { color: #15803d; font-size: 11px; font-weight: 500; }
.stock-low { color: #b45309; font-size: 11px; font-weight: 600; }
.stock-out { color: #dc2626; font-size: 11px; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════════ */

.vs-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1917 0%, #232120 55%, #1f1d1c 100%) !important;
}
.vs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 90% at 78% 50%, rgba(29,109,229,.07) 0%, transparent 65%);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS — Global premium treatment
═══════════════════════════════════════════════════════════════ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
textarea,
select {
  transition: border-color .18s ease, box-shadow .18s ease !important;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: #1a1917 !important;
  box-shadow: 0 0 0 3px rgba(26,25,23,.06) !important;
  outline: none !important;
}
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset;
  -webkit-text-fill-color: #1a1917;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */

.vs-footer {
  position: relative;
  background: var(--vs-fg);
  color: rgba(255,255,255,.45);
  font-size: .8125rem;
}

/* Gradient top border */
.vs-footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.12) 30%, rgba(255,255,255,.12) 70%, transparent 100%);
}

/* Trust bar */
.footer-trust-bar {
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-trust-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.6);
}
.footer-trust-item svg { flex-shrink: 0; opacity: .7; }
.footer-trust-label {
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  line-height: 1.2;
}
.footer-trust-sub {
  font-size: .7rem;
  color: rgba(255,255,255,.38);
  margin-top: .1rem;
}

/* Logo */
.footer-logo {
  display: inline-block;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  margin-bottom: .75rem;
}
.footer-logo span { color: rgba(255,255,255,.4); font-weight: 400; }

.footer-desc {
  font-size: .75rem;
  line-height: 1.6;
  color: rgba(255,255,255,.35);
  margin-bottom: .75rem;
  max-width: 200px;
}
.footer-email {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .15s;
}
.footer-email:hover { color: rgba(255,255,255,.85); }

/* Column headings */
.footer-col-title {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: .875rem;
}

/* Link lists */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-links a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: .8125rem;
  transition: color .15s;
}
.footer-links a:hover { color: rgba(255,255,255,.88); }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .75rem;
  color: rgba(255,255,255,.28);
}
.footer-bottom a {
  color: rgba(255,255,255,.28);
  text-decoration: none;
  transition: color .15s;
}
.footer-bottom a:hover { color: rgba(255,255,255,.65); }

.vs-footer a {
  transition: color .15s;
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════
   FLASH / TOAST
═══════════════════════════════════════════════════════════════ */

.flash-success, .flash-error { transition: opacity .4s; }

/* ═══════════════════════════════════════════════════════════════
   MISC UTILITIES
═══════════════════════════════════════════════════════════════ */

/* Toggle switch (permissions) */
.toggle-switch input:checked + .toggle-track { background: #1d6de5; }

/* Captcha */
.captcha-input:focus { border-color: #1d6de5; outline: none; }

/* Cart item image */
.cart-item-img { object-fit: cover; }

/* Admin table */
.admin-table-row:hover { background: #1f1e1c; }

/* Nav dropdown (old — kept for compat) */
.group:hover .group-hover\:block { display: block; }

/* Print */
@media print {
  #admin-bar, nav, footer { display: none; }
}

/* ── Mobile refinements ─────────────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: 0 16px !important; gap: 8px !important; }
  .vs-hero { padding: 28px 20px !important; flex-direction: column !important; align-items: flex-start !important; }
  .vs-hero-btn { margin-top: 8px; align-self: flex-start; }
}

/* ── Product card hover lift (legacy class kept) ────────────── */
.product-card-hover {
  transition: transform .28s cubic-bezier(.25,.46,.45,.94), box-shadow .3s, border-color .2s;
}
.product-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.09);
}

/* Toggle switch (used in permissions) */
.toggle-switch input:checked + .toggle-track { background: #1d6de5; }

/* Flash messages */
.flash-success, .flash-error { transition: opacity .4s; }

/* Nav dropdown show on hover */
.group:hover .group-hover\:block { display: block; }

/* Sticky nav compensation for admin bar */
.has-admin-bar nav { top: 40px; }

/* Cart item image fallback */
.cart-item-img { object-fit: cover; }

/* Captcha input focus */
.captcha-input:focus { border-color: #1d6de5; outline: none; }

/* Form input autofill style override */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset;
  -webkit-text-fill-color: #1a1917;
}

/* Product image hover swap — fade + scale (premium ecommerce style) */
.product-img-container {
  display: block;
}
.product-img-wrap {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #f7f6f3;
}
.product-img-primary,
.product-img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.5s ease;
  will-change: opacity, transform;
}
.product-img-primary {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.product-img-hover {
  opacity: 0;
  transform: scale(1.04);
  z-index: 2;
}

/* On card hover: fade primary out + scale, fade hover image in */
.group:hover .product-img-primary {
  opacity: 0;
  transform: scale(1.04);
}
.group:hover .product-img-hover {
  opacity: 1;
  transform: scale(1);
}

/* Subtle zoom on primary when there's no hover image */
.group:hover .product-img-wrap:not(:has(.product-img-hover)) .product-img-primary {
  transform: scale(1.04);
}

/* Admin table row hover */
.admin-table-row:hover { background: #1f1e1c; }

/* ═══════════════════════════════════════════════════════════════
   CATEGORY DISPLAY SYSTEM — Premium
═══════════════════════════════════════════════════════════════ */

/* Base item */
.cat-item {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Button styling via CSS vars */
.cat-btn {
  background:    var(--cat-bg,      #fff);
  color:         var(--cat-text,    #1a1917);
  border:        1px solid var(--cat-border, #e2e0d8);
  border-radius: var(--cat-radius,  9999px);
  padding:       var(--cat-pad,     8px 14px);
  font-size:     var(--cat-text-sz, 12px);
  font-weight:   500;
  box-shadow:    var(--cat-shadow,  none);
  transition:    background var(--cat-trans,250ms) ease,
                 color       var(--cat-trans,250ms) ease,
                 border-color var(--cat-trans,250ms) ease,
                 box-shadow  var(--cat-trans,250ms) ease,
                 transform   var(--cat-trans,250ms) ease;
  white-space:   nowrap;
  user-select:   none;
}
.cat-btn:hover {
  background: var(--cat-hover-bg, #f7f6f3);
}
.cat-btn.cat-active {
  background:   var(--cat-active-bg,   #1a1917);
  color:        var(--cat-active-text,  #f7f6f3);
  border-color: var(--cat-active-bg,   #1a1917);
}

/* Category image */
.cat-img {
  width:         var(--cat-img-sz, 40px);
  height:        var(--cat-img-sz, 40px);
  border-radius: calc(var(--cat-radius, 9999px) * 0.6);
  object-fit:    cover;
  display:       block;
  flex-shrink:   0;
}
.cat-emoji { font-size: 1.1em; line-height: 1; }
.cat-count { opacity: .55; font-size: .85em; }
.cat-star  { font-size: .8em; margin-left: 1px; }
.cat-name  { line-height: 1.2; }

/* ── Hover effects ─────────────────────────────────────────── */

/* Zoom */
.cat-hover-zoom:hover {
  transform: scale(1.05);
}

/* Lift */
.cat-hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

/* Overlay: darken image (useful for grid with images) */
.cat-hover-overlay {
  position: relative;
  overflow: hidden;
}
.cat-hover-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  border-radius: inherit;
  transition: background var(--cat-trans,250ms) ease;
  pointer-events: none;
}
.cat-hover-overlay:hover::after { background: rgba(0,0,0,.18); }

/* Fade */
.cat-hover-fade:hover { opacity: .75; }

/* Glow */
.cat-hover-glow:hover {
  box-shadow: 0 0 0 3px var(--cat-accent, var(--cat-active-bg, #1a1917)),
              0 4px 20px rgba(0,0,0,.12);
}

/* ── Carousel arrows ───────────────────────────────────────── */
.cat-arrow {
  position:      absolute;
  top:           50%;
  transform:     translateY(-50%);
  z-index:       5;
  width:         32px;
  height:        32px;
  border-radius: 50%;
  background:    white;
  border:        1px solid #e2e0d8;
  box-shadow:    0 2px 8px rgba(0,0,0,.1);
  font-size:     20px;
  line-height:   1;
  display:       flex;
  align-items:   center;
  justify-content: center;
  cursor:        pointer;
  transition:    box-shadow .2s, transform .2s;
}
.cat-arrow:hover { box-shadow: 0 3px 12px rgba(0,0,0,.15); transform: translateY(-50%) scale(1.05); }
.cat-arrow-left  { left:  -14px; }
.cat-arrow-right { right: -14px; }

/* ═══════════════════════════════════════════════════════════════
   LIVE SEARCH SYSTEM
═══════════════════════════════════════════════════════════════ */

.search-wrapper { position: relative; width: 100%; }

.search-box {
  display:       flex;
  align-items:   center;
  gap:           8px;
  background:    white;
  border:        1.5px solid #e2e0d8;
  border-radius: 14px;
  padding:       8px 12px;
  transition:    border-color .2s, box-shadow .2s;
}
.search-box:focus-within {
  border-color: #1a1917;
  box-shadow: 0 0 0 3px rgba(26,25,23,.06);
}
.search-icon  { font-size: 16px; opacity: .5; flex-shrink: 0; }
.search-input {
  flex:       1;
  border:     none;
  outline:    none;
  font-size:  14px;
  background: transparent;
  color:      #1a1917;
  min-width:  0;
}
.search-input::placeholder { color: #9c9a90; }
.search-clear-btn {
  background: none;
  border:     none;
  cursor:     pointer;
  color:      #9c9a90;
  font-size:  13px;
  padding:    2px 4px;
  border-radius: 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: color .15s;
}
.search-clear-btn:hover { color: #1a1917; }
.search-submit-btn {
  background:    #1a1917;
  color:         white;
  border:        none;
  border-radius: 8px;
  padding:       6px 14px;
  font-size:     13px;
  font-weight:   600;
  cursor:        pointer;
  flex-shrink:   0;
  transition:    background .15s;
}
.search-submit-btn:hover { background: #2a2927; }

/* Dropdown */
.search-dropdown {
  position:     absolute;
  top:          calc(100% + 6px);
  left:         0;
  right:        0;
  background:   white;
  border:       1.5px solid #e2e0d8;
  border-radius: 16px;
  box-shadow:   0 8px 40px rgba(0,0,0,.12);
  z-index:      200;
  overflow:     hidden;
  animation:    searchDropIn .18s ease;
}
@keyframes searchDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.search-section-title {
  font-size:      10px;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color:          #9c9a90;
  padding:        10px 14px 4px;
}
.search-item {
  display:        flex;
  align-items:    center;
  gap:            10px;
  padding:        9px 14px;
  text-decoration: none;
  color:          #1a1917;
  transition:     background .12s;
  cursor:         pointer;
}
.search-item:hover { background: #f7f6f3; }
.search-item-img {
  width:         40px;
  height:        40px;
  border-radius: 8px;
  object-fit:    cover;
  flex-shrink:   0;
  background:    #f7f6f3;
}
.search-item-emoji {
  width:         40px;
  height:        40px;
  font-size:     22px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  flex-shrink:   0;
  background:    #f7f6f3;
  border-radius: 8px;
}
.search-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.search-item-name  { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item-brand { font-size: 11px; color: #9c9a90; }
.search-item-price { font-size: 13px; font-weight: 600; font-family: 'DM Mono', monospace; color: #1a1917; white-space: nowrap; }
.search-item-badge { font-size: 10px; color: #9c9a90; background: #f7f6f3; padding: 2px 7px; border-radius: 99px; flex-shrink: 0; }
.search-cat-item   { background: #fafaf8; }
.search-hl         { background: #fef3c7; color: #1a1917; border-radius: 2px; padding: 0 1px; font-style: normal; }
.search-empty { padding: 20px 16px; text-align: center; font-size: 13px; color: #9c9a90; }
.search-view-all {
  display:        block;
  padding:        11px 14px;
  font-size:      12px;
  color:          #1a1917;
  text-decoration: none;
  border-top:     1px solid #f0ede8;
  text-align:     center;
  font-weight:    500;
  transition:     background .12s;
}
.search-view-all:hover { background: #f7f6f3; }

/* ═══════════════════════════════════════════════════════════════
   ADVANCED FILTERS
═══════════════════════════════════════════════════════════════ */

.adv-panel {
  animation: advPanelIn .22s ease;
}
@keyframes advPanelIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

.filter-chip {
  display:        inline-flex;
  align-items:    center;
  gap:            5px;
  font-size:      11px;
  background:     #f7f6f3;
  border:         1px solid #e2e0d8;
  border-radius:  99px;
  padding:        3px 10px;
  color:          #1a1917;
}
.filter-chip a {
  color:          #9c9a90;
  text-decoration: none;
  font-size:      12px;
  margin-left:    1px;
  transition:     color .15s;
}
.filter-chip a:hover { color: #e00; }

/* Product grid fade when filtering */
#products-grid.filtering {
  opacity:    0.4;
  pointer-events: none;
  transition: opacity .2s;
}
#products-grid.loaded {
  opacity:    1;
  transition: opacity .3s ease;
}

/* Print: hide admin bar and nav */
@media print {
  #admin-bar, nav, footer { display: none; }
}

/* Mobile nav improvements */
@media (max-width: 640px) {
  nav { padding: 0 12px; gap: 8px; }
  .hero-section { padding: 20px 18px; }
}
