/* =============================================================
   SIGNAL MARKET — Design System v2.0
   Multi-tenant e-commerce. Cores dinâmicas via PHP vars.
   ============================================================= */

/* Google Fonts handled in HTML */

:root {
  /* ---- Dynamic Brand Colors (overridden by PHP inline style) ---- */
  --primary: #1a1a1a;
  --primary-dark: #000000;
  --primary-rgb: 26, 26, 26;

  /* ---- Neutral Palette ---- */
  --bg-body: #ffffff;
  --bg-soft: #f8f8f6;
  --bg-card: #ffffff;
  --bg-hover: #f4f3f0;

  --ink: #111111;
  --ink-soft: #444444;
  --muted: #888888;
  --border: #e8e8e5;
  --border-hover: #cccccc;

  /* ---- Semantic Colors ---- */
  --success: #1a7a3a;
  --danger:  #d42121;
  --warning: #d48021;
  --badge-new: #d47000;

  /* ---- Typography ---- */
  --font-head: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  --font-body: 'Outfit', 'DM Sans', sans-serif;

  /* ---- Spacing ---- */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  4rem;
  --sp-xl:  6rem;

  /* ---- Shape ---- */
  --radius-card: 14px;
  --radius-btn:  999px;
  --radius-badge: 6px;

  /* ---- Shadows ---- */
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
  --shadow-card:  0 4px 16px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 32px rgba(0,0,0,0.14);
  --shadow-modal: 0 24px 60px rgba(0,0,0,0.18);

  /* ---- Transitions ---- */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------------------------------------------------------------
   RESET & BASE
   --------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

a { text-decoration: none; color: inherit; transition: color .25s var(--ease); }
button { font-family: var(--font-body); cursor: pointer; }
img { display: block; max-width: 100%; }

/* ---------------------------------------------------------------
   UTILITIES
   --------------------------------------------------------------- */
.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---------------------------------------------------------------
   TOPBAR — Ticker animado
   --------------------------------------------------------------- */
.topbar {
  background: var(--primary);
  color: #fff;
  height: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.topbar-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 1.1rem;
  z-index: 2;
  line-height: 1;
  padding: 4px 6px;
  transition: color .2s;
}
.topbar-close:hover { color: #fff; }

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 28s linear infinite;
  gap: 0;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 48px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,.9);
}

.ticker-item i {
  font-size: 0.75rem;
  opacity: .7;
}

.ticker-sep {
  opacity: .3;
  margin: 0 4px;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------
   HEADER — Sticky
   --------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.4s var(--ease);
}

.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.10); }

.header-content {
  height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

/* Logo */
.logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

/* Desktop Nav */
.main-nav {
  display: flex;
  gap: 6px;
  justify-content: center;
  overflow: hidden auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }

.nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius-btn);
  transition: all .2s var(--ease);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--ink);
  background: var(--bg-hover);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), .08);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  width: clamp(180px, 22vw, 280px);
  padding: 0 10px 0 14px;
  transition: border-color .2s, box-shadow .2s;
}

.header-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .1);
  background: #fff;
}

.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.88rem;
  padding: 10px 0;
  color: var(--ink);
  font-family: var(--font-body);
}

.header-search input::placeholder { color: var(--muted); }

.header-search button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 4px;
  transition: color .2s;
}
.header-search button:hover { color: var(--ink); }

/* Icon Buttons */
.icon-btn {
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all .2s var(--ease);
}
.icon-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.cart-btn {
  position: relative;
  width: 44px; height: 44px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all .2s var(--ease-spring);
  overflow: visible;
}
.cart-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px) scale(1.05);
}

.cart-badge {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

/* User Dropdown */
.user-dropdown-wrapper { position: relative; }

.user-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: -8px;
  width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-modal);
  padding: 8px 0;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: none;
}
.user-menu-dropdown.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.user-menu-dropdown::before {
  content: '';
  position: absolute;
  top: -6px; right: 18px;
  width: 12px; height: 12px;
  background: #fff;
  transform: rotate(45deg);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.user-menu-header {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: all .2s;
}
.user-menu-item i { width: 16px; text-align: center; color: var(--muted); }
.user-menu-item:hover {
  background: var(--bg-soft);
  color: var(--ink);
  padding-left: 20px;
}
.user-menu-item.text-danger { color: #c0392b; }
.user-menu-item.text-danger i { color: #e05050; }
.user-menu-item.text-danger:hover { background: rgba(200,50,50,.06); }

.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Search Results Dropdown */
.search-results-dropdown {
  position: static;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  max-height: 380px;
  overflow-y: auto;
  display: none;
  margin-top: 8px;
  box-shadow: var(--shadow-card);
}

.search-results-dropdown--header {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  width: 380px;
  max-height: 320px;
  z-index: 1200;
  margin-top: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-modal);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
}

.search-results-meta {
  padding: 8px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  position: sticky; top: 0;
}

.search-result-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .18s;
}
.search-result-item:hover { background: var(--bg-soft); }
.search-result-item:last-child { border-bottom: none; }

.search-result-img {
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.search-result-info { min-width: 0; }

.search-result-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-desc {
  font-size: 0.76rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}

.search-result-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

.search-result-price--grade {
  color: #be123c;
  font-weight: 800;
  letter-spacing: .01em;
}

.search-results-footer {
  padding: 8px 14px;
  font-size: 0.74rem;
  color: var(--muted);
  text-align: center;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.search-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  color: var(--muted);
  font-size: 0.88rem;
}
.search-empty-state i { font-size: 1.4rem; opacity: .4; }

.search-highlight {
  background: rgba(var(--primary-rgb), .12);
  border-radius: 3px;
  padding: 0 2px;
}

/* ---------------------------------------------------------------
   HERO SECTION
   --------------------------------------------------------------- */
.hero {
  position: relative;
  height: auto;
  aspect-ratio: 1600 / 600;
  min-height: 280px;
  max-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111;
}

.hero.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  transform: none;
  filter: none;
  opacity: 0;
  transition: opacity 0.7s ease;
  will-change: opacity;
}

.hero-img.is-active {
  opacity: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}

.hero-overlay { display: none; }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .24);
  backdrop-filter: blur(10px);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  padding: 0;
  transition: transform .2s ease, background .2s ease, width .2s ease;
}

.hero-dot.active {
  width: 26px;
  background: #fff;
}

.hero-dot:hover {
  transform: scale(1.08);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  max-width: 680px;
  animation: hero-enter .9s var(--ease) both;
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 18px;
}

.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0,0,0,.28);
}

.hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 500px;
  text-shadow: 0 2px 12px rgba(0,0,0,.22);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: 2px solid transparent;
  transition: all .22s var(--ease-spring);
  cursor: pointer;
  text-decoration: none;
}

.btn-hero.btn-solid {
  background: #fff;
  color: #111;
  border-color: #fff;
}
.btn-hero.btn-solid:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-hero.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-hero.btn-ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.8);
  transform: translateY(-2px);
}

/* Aviso elegante do catálogo */
.catalog-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 10, 18, 0.58);
  backdrop-filter: blur(10px);
}
.catalog-notice-overlay.is-open {
  display: flex;
}
.catalog-notice {
  width: min(100%, 460px);
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
  overflow: hidden;
  transform: translateY(8px) scale(.98);
  animation: catalogNoticeIn .22s ease-out forwards;
}
.catalog-notice__header {
  padding: 22px 24px 12px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .08), rgba(var(--primary-rgb), .02));
}
.catalog-notice__icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 14px 30px rgba(var(--primary-rgb), .28);
}
.catalog-notice__body {
  padding: 8px 24px 24px;
}
.catalog-notice__title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.catalog-notice__text {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.95rem;
}
.catalog-notice__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 24px 24px;
}
.catalog-notice__btn {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.catalog-notice__btn:hover {
  transform: translateY(-1px);
}
.catalog-notice__btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 14px 28px rgba(var(--primary-rgb), .28);
}
.catalog-notice__btn--primary:hover {
  box-shadow: 0 18px 32px rgba(var(--primary-rgb), .34);
}
@keyframes catalogNoticeIn {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.55);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-indicator i { font-size: 1rem; }

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---------------------------------------------------------------
   TRUST BAR
   --------------------------------------------------------------- */
.trust-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  border-right: 1px solid var(--border);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.trust-item:last-child { border-right: none; }
.trust-item.revealed { opacity: 1; transform: translateY(0); }
.trust-item:nth-child(2) { transition-delay: .1s; }
.trust-item:nth-child(3) { transition-delay: .2s; }
.trust-item:nth-child(4) { transition-delay: .3s; }

.trust-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), .08);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.trust-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.trust-text span {
  font-size: 0.76rem;
  color: var(--muted);
}

/* App-Like Trust Bar Refinement (Mobile) */
@media (max-width: 768px) {
  .trust-bar {
    background: transparent;
    border: none;
    padding: 10px 0;
  }
  .trust-bar-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 14px;
  }
  
  .trust-item {
    width: 100%;
    min-width: 0;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 16px;
    justify-content: flex-start;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ---------------------------------------------------------------
   CATALOG CONTROLS — Busca + Categorias
   --------------------------------------------------------------- */
.catalog-controls {
  padding: 32px 0 8px;
}

.search-panel {
  margin-bottom: 24px;
}

.search-panel label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.search-box-wrapper { position: relative; }

.search-box {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--bg-soft);
  padding: 0 14px;
  height: 52px;
  gap: 10px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .1);
  background: #fff;
}

.search-box i { color: var(--muted); font-size: 1rem; }

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--ink);
}

.clear-search {
  background: rgba(0,0,0,.06);
  border: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 0.8rem;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background .18s;
}
.clear-search:hover { background: rgba(0,0,0,.12); }
.clear-search.visible { display: flex; }

/* Categories Toolbar */
.categories-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.category-scroll {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  transition: all .2s;
}
.category-scroll:hover { border-color: var(--ink); color: var(--ink); }

.categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }

.category-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  background: #fff;
  color: var(--ink-soft);
  padding: 7px 16px;
  font-size: 0.83rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all .2s var(--ease);
}

.category-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(var(--primary-rgb), .04);
}

.category-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.category-btn.active::after { display: none; }

/* Status Banner (Aberto/Fechado) */
.status-banner {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(26, 122, 58, .25);
  background: rgba(26, 122, 58, .07);
}

.status-banner h2 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.status-banner.closed {
  border-color: rgba(212, 33, 33, .25);
  background: rgba(212, 33, 33, .07);
}

.status-banner.closed h2 { color: var(--danger); }

/* ---------------------------------------------------------------
   SECTION HEADING
   --------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 48px 0 28px;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.section-head.revealed { opacity: 1; transform: translateY(0); }

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.section-head p {
  font-size: 0.92rem;
  color: var(--muted);
}

.section-head .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: all .2s;
}
.section-head .btn-outline:hover {
  border-color: var(--ink);
  background: var(--bg-hover);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: var(--sp-xl);
}

/* Feature Card — primeiro produto ocupa 2 colunas */
.product-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  opacity: 0;
  transform: translateY(16px);
}
.product-card.revealed { opacity: 1; transform: translateY(0); }

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bg-soft);
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.product-card:hover .product-img { transform: scale(1.07); }

/* Quick Action Overlay */
.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.38);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  gap: 10px;
  opacity: 0;
  transition: opacity .25s var(--ease);
}

.product-card:hover .product-overlay { opacity: 1; }

.btn-overlay {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  transition: all .18s var(--ease-spring);
  transform: translateY(12px);
  opacity: 0;
}

.product-card:hover .btn-overlay {
  transform: translateY(0);
  opacity: 1;
}

.product-card:hover .btn-overlay:nth-child(2) { transition-delay: .05s; }

.btn-overlay.btn-add {
  background: #fff;
  color: var(--ink);
}
.btn-overlay.btn-add:hover { background: var(--primary); color: #fff; }

.btn-overlay.btn-view {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  max-width: 44px;
  min-width: 44px;
  flex: none;
}
.btn-overlay.btn-view:hover { background: rgba(255,255,255,.35); }

/* Badges */
.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-badge);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.2;
}

.badge-new    { background: var(--badge-new); color: #fff; }
.badge-sale   { background: var(--danger);    color: #fff; }
.badge-out    { background: rgba(0,0,0,.55);  color: #fff; }
.badge-hot    { background: var(--primary);   color: #fff; }

/* Product Content */
.product-content {
  padding: 14px 14px 16px;
}

.product-category {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 5px;
  opacity: .75;
}

.product-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.28;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.product-variations-summary {
  display: grid;
  gap: 8px;
  margin: 10px 0 4px;
  padding: 10px 12px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(var(--primary-rgb), .08), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
  border: 1px solid rgba(148, 163, 184, .16);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.product-variations-summary__header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-variations-summary__icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .14), rgba(var(--primary-rgb), .06));
  color: var(--primary-dark);
  flex: none;
}

.product-variations-summary__headcopy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.product-variations-summary__label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 5px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.product-variations-summary__price-value {
  font-weight: 800;
  font-size: 0.88rem;
  color: #0f172a;
}

.product-variations-summary__range-wrap {
  display: block;
}

.product-variations-summary__range {
  display: block;
  padding: 2px 0 0;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.product-variations-summary__range strong {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.price-wrapper .currency {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.price-wrapper .price-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.price-original {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 4px;
}

.tp-variacao-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: #fff;
  transition: transform .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}

.tp-variacao-item:hover {
  border-color: rgba(var(--primary-rgb), .35);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
  transform: translateY(-1px);
}

.tp-variacao-item input[type="radio"] {
  margin-top: 4px;
  accent-color: var(--primary);
  flex: none;
}

.tp-variacao-item__info {
  min-width: 0;
  flex: 1;
}

.tp-variacao-item__info strong {
  display: block;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.35;
}

.tp-variacao-item__info small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.45;
}

.tp-variacao-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tp-variacao-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), .08);
  color: var(--ink-soft);
  font-size: .74rem;
  font-weight: 700;
}

.tp-variacao-chip strong {
  color: var(--primary-dark);
}

.tp-preco-depor {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tp-preco-de {
  color: #94a3b8;
  text-decoration: line-through;
}

.tp-preco-por,
.tp-preco-unico {
  color: var(--ink);
  font-weight: 800;
}

.tp-variacao-item.is-disabled {
  background: var(--bg-soft);
}

.btn-quick-add {
  min-height: 42px;
  padding: 0 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: .01em;
  flex-shrink: 0;
  box-shadow: 0 12px 24px rgba(var(--primary-rgb), .22);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
  white-space: nowrap;
  justify-content: center;
  width: 100%;
}

.btn-quick-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(var(--primary-rgb), .28);
  filter: brightness(1.02);
}

.product-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  width: 100%;
}

.btn-card-view {
  min-height: 42px;
  padding: 0 14px;
  background: rgba(255,255,255,.92);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), .16);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: .01em;
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(16, 24, 40, .08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  white-space: nowrap;
  justify-content: center;
  width: 100%;
}

.btn-card-view:hover {
  background: #fff;
  border-color: rgba(var(--primary-rgb), .28);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(16, 24, 40, .12);
}

.btn-card-view:focus-visible,
.btn-quick-add:focus-visible,
.btn-card-share:focus-visible {
  outline: 3px solid rgba(var(--primary-rgb), .22);
  outline-offset: 2px;
}

.btn-card-view i,
.btn-quick-add i,
.btn-card-share i {
  font-size: .92rem;
}

.btn-card-share {
  min-height: 42px;
  padding: 0 14px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .08), rgba(var(--primary-rgb), .16));
  color: var(--primary-dark);
  border: 1px solid rgba(var(--primary-rgb), .14);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(16, 24, 40, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
}

.btn-card-share:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--primary-rgb), .24);
  box-shadow: 0 14px 24px rgba(16, 24, 40, .1);
  filter: brightness(1.02);
}

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

/* Quick Action Overlay */
.product-overlay {
  display: none;
}

/* Out of stock state */
.product-card.out-of-stock .product-img {
  filter: grayscale(.7);
  opacity: .8;
}
.product-card.out-of-stock .btn-quick-add {
  background: var(--muted);
  pointer-events: none;
  box-shadow: none;
}

/* Loading State */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 72px 20px;
  color: var(--muted);
}

.loading-spinner {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  margin: 0 auto 16px;
  animation: spin .8s linear infinite;
}

.loading-state p {
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 72px 20px;
  color: var(--muted);
}
.empty-state i { font-size: 2.5rem; opacity: .3; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--ink-soft); }

/* CTA Line */
.cta-line {
  text-align: center;
  margin-bottom: var(--sp-lg);
}

.cta-line .btn-hero {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  min-width: 220px;
}
.cta-line .btn-hero:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------
   MODAL — Right Drawer
   --------------------------------------------------------------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 2000;
  justify-content: flex-end;
  animation: fadeIn .3s var(--ease);
}

.modal.open { display: flex; }

.modal-dialog {
  background: #fff;
  width: 100%;
  max-width: 500px;
  height: 100%;
  padding: 36px 32px;
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(0,0,0,.12);
  animation: slideIn .4s var(--ease);
  display: flex;
  flex-direction: column;
}

@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.modal-header h2 { font-size: 1.6rem; }

.close-btn {
  background: var(--bg-soft);
  border: none;
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 1rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  transition: all .18s;
  flex-shrink: 0;
}
.close-btn:hover { background: var(--bg-hover); color: var(--ink); }
.close-btn-label {
  display: none;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
}

.modal-body img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-card);
  margin-bottom: 20px;
}

.modal-body img.produto-principal-img {
  aspect-ratio: 1 / 1;
  margin-bottom: 20px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.produto-principal-wrap {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.produto-principal-wrap .produto-principal-img {
  margin-bottom: 0;
}

.produto-descricao-modal {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-height: 42vh;
  overflow-y: auto;
}

.produto-descricao-modal p {
  margin: 0;
}

.produto-descricao-modal ul {
  margin: 0;
  padding-left: 18px;
}

.produto-descricao-modal li {
  margin: 0 0 10px;
}

.produto-descricao-modal li:last-child {
  margin-bottom: 0;
}

.produto-galeria-bloco {
  margin: 6px 0 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.produto-galeria-topo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 12px;
}

.produto-galeria-topo strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.produto-galeria-topo span {
  font-size: 0.78rem;
  color: var(--muted);
}

.produto-galeria-carousel {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 10px;
}

.produto-galeria-nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all .2s var(--ease);
}

.produto-galeria-nav:hover {
  transform: translateY(-1px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.produto-galeria-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  flex: 1 1 auto;
  min-width: 0;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 6px;
}

.produto-galeria-track::-webkit-scrollbar {
  display: none;
}

.produto-galeria-item {
  scroll-snap-align: start;
  flex: 0 0 68px;
  width: 68px;
}

.produto-galeria-thumb-btn {
  width: 68px;
  height: 68px;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: zoom-in;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
}

.modal-body img.produto-galeria-thumb {
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  aspect-ratio: 1 / 1;
  margin-bottom: 0;
  border-radius: 14px;
  border: 0 !important;
  object-fit: cover;
  box-shadow: none !important;
  background: transparent;
}

.produto-imagem-viewer {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.produto-imagem-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(10px);
}

.produto-imagem-viewer__content {
  position: relative;
  z-index: 1;
  width: min(96vw, 980px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.produto-imagem-viewer__img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.produto-imagem-viewer__caption {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

.produto-imagem-viewer__close {
  align-self: flex-end;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
}

@media (max-width: 560px) {
  .modal-dialog {
    padding: 20px 16px;
  }

  .modal-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    padding: 4px 0 12px;
    margin-bottom: 18px;
    align-items: flex-start;
  }

  .modal-header h2 {
    flex: 1;
    padding-right: 12px;
    font-size: 1.45rem;
    line-height: 1.08;
  }

  .close-btn {
    min-width: 54px;
    height: 44px;
    padding: 0 14px;
    background: #fff;
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), .18);
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
  }

  .close-btn-label {
    display: inline;
  }

  .modal-body img,
  .modal-body img.produto-principal-img {
    margin-bottom: 16px;
  }

  .produto-descricao-modal {
    padding: 14px 14px;
    font-size: 0.95rem;
    line-height: 1.65;
    max-height: 34vh;
  }

  .produto-galeria-bloco {
    padding: 12px;
  }

  .produto-galeria-topo {
    flex-direction: column;
    align-items: flex-start;
  }

  .produto-galeria-carousel {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  .produto-galeria-nav {
    display: none;
  }

  .produto-galeria-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px;
  }

  .produto-galeria-item {
    flex-basis: 60px;
    width: 60px;
  }

  .produto-galeria-thumb-btn,
  .modal-body img.produto-galeria-thumb {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
  }

  .produto-imagem-viewer__content {
    width: min(100%, 100vw);
  }

  .produto-imagem-viewer {
    padding: 12px;
  }
}

.modal-body h3 {
  font-size: 1.4rem;
  margin: 12px 0 8px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  background: none;
  border: none;
  width: 40px; height: 40px;
  font-size: 1.1rem;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}
.qty-btn:hover { background: var(--bg-soft); }

.qty-input {
  width: 44px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  -moz-appearance: textfield;
  appearance: textfield;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.btn-add-modal {
  flex: 1;
  background: var(--primary);
  color: #fff;
  border: none;
  height: 50px;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all .22s var(--ease-spring);
}
.btn-add-modal:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------------
   BOTTOM NAV — Mobile
   --------------------------------------------------------------- */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 16px; 
  left: 16px; 
  right: 16px;
  height: 68px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  z-index: 800;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  margin-bottom: constant(safe-area-inset-bottom);
  margin-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 100%;
}

.bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.3px;
  transition: color .2s;
  position: relative;
}
.bottom-nav-btn i { font-size: 1.1rem; }
.bottom-nav-btn.active, .bottom-nav-btn:hover { color: var(--primary); }

/* ---------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------- */
.footer {
  background: #111;
  color: #fff;
  padding: 72px 0 40px;
  margin-top: 0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}
.footer-logo img { max-height: 44px; }

.footer-social {
  display: flex;
  gap: 8px;
}

.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all .22s;
}
.social-btn:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.3);
  transform: translateY(-2px);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand h2, .footer-brand h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255,255,255,.5);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-body);
  color: rgba(255,255,255,.9);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,.45);
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: rgba(255,255,255,.35);
  font-size: 0.8rem;
}

.footer-payment {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.35);
  font-size: 0.78rem;
}
.footer-payment i { font-size: 1.2rem; }

/* ---------------------------------------------------------------
   ANIMATIONS
   --------------------------------------------------------------- */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideLeft { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* Utility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(3) { border-right: 1px solid var(--border); }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header-content {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
    padding: 0 20px;
    gap: 10px;
    align-items: center;
  }
  .main-nav { display: none; }
  .header-search { display: none; }
  .logo {
    display: -webkit-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: clamp(0.98rem, 4vw, 1.12rem);
    line-height: 1.15;
  }
  .logo img { max-height: 40px; }
  .header-actions {
    min-width: 92px;
    flex-shrink: 0;
    justify-self: end;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0 14px;
    gap: 8px;
  }
  .logo {
    font-size: clamp(0.92rem, 3.9vw, 1.02rem);
    line-height: 1.1;
  }
  .header-actions {
    min-width: 88px;
    gap: 6px;
  }
  .icon-btn {
    width: 38px;
    height: 38px;
  }
  .cart-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .hero { 
    height: auto;
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
    border-radius: 0 0 22px 22px;
    margin-bottom: 14px;
    padding: 0;
    background: transparent;
  }
  .hero-carousel {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 7;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
  }
  .hero-img {
    position: absolute;
    inset: 0;
    object-fit: contain;
    object-position: center center;
    transform: none;
    background: transparent;
  }
  .hero::after {
    background: transparent;
  }
  .hero-content { 
    padding: 0 14px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-content,
  .hero-eyebrow,
  .hero-content h1,
  .hero-content p,
  .hero-cta,
  .scroll-indicator {
    display: none;
  }
  .hero-content h1 { 
    font-size: clamp(1.2rem, 4.8vw, 1.6rem); 
    line-height: 1.05;
    margin-bottom: 8px;
  }
  .hero-content p {
    display: none;
  }
  .hero-eyebrow {
    display: none;
  }
  .hero-cta { display: none; }
  .hero-dots {
    bottom: 12px;
    gap: 6px;
    padding: 7px 11px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(8px);
  }
  .hero-dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,.55);
  }
  .hero-dot.active {
    width: 20px;
    background: #fff;
  }

  .trust-bar-inner { grid-template-columns: 1fr; gap: 10px; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); }
  .trust-item:last-child { border-bottom: none; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .bottom-nav { display: block; }
  .footer { padding-bottom: 80px; }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { max-width: 100%; }
  .footer-social { justify-content: center; }
  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .trust-bar-inner { grid-template-columns: 1fr; }
  .trust-item { border-bottom: 1px solid var(--border); border-right: none !important; }
  .trust-item:last-child { border-bottom: none; }
  .hero {
    border-radius: 0 0 18px 18px;
    padding: 0;
  }
  .hero-carousel {
    aspect-ratio: 16 / 7;
    border-radius: 0;
  }
  .hero-img {
    object-fit: contain;
    object-position: center center;
    transform: none;
  }
  .hero-content { padding: 0 12px; }
  .hero-content h1 {
    font-size: clamp(0.95rem, 4.2vw, 1.2rem);
  }
  .hero-eyebrow {
    display: none;
  }
  .hero-cta { display: none; }
  .hero-dots {
    bottom: 10px;
    gap: 5px;
    padding: 6px 10px;
  }
  .hero-dot {
    width: 7px;
    height: 7px;
  }
  .hero-dot.active {
    width: 18px;
  }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Category Toolbar Refinement (App-Like) */
  .categories-toolbar {
    padding: 0;
    margin: 0 -24px 20px;
  }
  .categories {
    padding: 10px 24px;
    gap: 8px;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .categories::-webkit-scrollbar { display: none; }
  .category-btn {
    flex: 0 0 auto;
    padding: 10px 20px;
    border-radius: 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .category-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }
  .category-scroll { display: none; }
  
  /* Product Card Mobile Refinement */
  .product-card {
    border: none !important;
    background: var(--bg-card);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }
  .product-card-img {
    border-radius: 20px;
  }
  .product-card-info {
    padding: 12px 8px;
  }
  .product-card-name {
    font-size: 0.9rem;
    font-weight: 700;
  }
}
