/* INFANTIL — loja de roupas e brinquedos infantis: pastel quente, formas arredondadas, tom acolhedor para os pais */

:root {
  --font-display: 'Baloo 2', ui-rounded, 'Segoe UI', sans-serif;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --accent: #5FB8E0;
  --accent-hover: #3FA0CB;
  --accent-soft: rgba(95, 184, 224, 0.16);
  --on-accent: #ffffff;

  --accent-2: #FF8FA3;
  --accent-2-soft: rgba(255, 143, 163, 0.18);
  --accent-2-hover: #F5768C;

  --accent-3: #FFD166;
  --accent-3-soft: rgba(255, 209, 102, 0.26);
  --accent-3-hover: #F0BA43;

  --bg: #FFFBF3;
  --bg-subtle: #FFF6E8;
  --bg-muted: #FFF0DC;
  --bg-elevated: #FFFFFF;
  --bg-card: #FFFFFF;

  --border: rgba(74, 63, 53, 0.12);
  --border-strong: rgba(74, 63, 53, 0.20);

  --text: #453A32;
  --muted: #8A7F72;
  --muted-2: #A69C90;

  --danger: #F0616B;
  --success: #4CBF8B;

  --thumb-bg: #EAF6FC;
  --header-bg: rgba(255, 251, 243, 0.92);

  --shadow-sm: 0 2px 10px rgba(74, 63, 53, 0.07);
  --shadow-card: 0 14px 30px rgba(95, 184, 224, 0.16);
  --shadow-card-hover: 0 20px 40px rgba(95, 184, 224, 0.24);
  --shadow-accent: 0 14px 28px rgba(255, 143, 163, 0.28);

  --radius: 22px;
  --radius-sm: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --header-h: 82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-hover);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  color: var(--text);
  line-height: 1.2;
  font-weight: 700;
}

p { margin: 0 0 0.75rem; }

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER ============ */

.app-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 46px;
  width: 46px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  background: var(--bg-elevated);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.b-name, #brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}

.b-tag, .brand-tagline {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============ BUTTONS ============ */

button {
  font-family: var(--font);
  cursor: pointer;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-wa,
.btn-cart {
  font-family: var(--font);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, filter 0.16s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--on-accent);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.04); color: var(--on-accent); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 2px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-hover); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border-strong);
  padding: 10px 18px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-hover); }

.btn-wa {
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--bg-elevated);
  color: var(--accent-2-hover);
  border: 2px solid var(--border);
}
.btn-wa svg { width: 20px; height: 20px; }
.btn-wa:hover { border-color: var(--accent-2); color: var(--accent-2-hover); transform: translateY(-1px); }
.btn-wa span { display: none; }

.btn-cart {
  position: relative;
  background: var(--accent-2);
  color: #fff;
  padding: 12px 18px;
  box-shadow: 0 10px 22px rgba(255, 143, 163, 0.32);
}
.btn-cart svg { width: 19px; height: 19px; }
.btn-cart:hover { transform: translateY(-2px); }

.badge, .cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent-3);
  color: #6B4A00;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--bg-card);
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon svg { width: 19px; height: 19px; }

/* ============ HERO ============ */

.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
  text-align: center;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  z-index: 0;
}
.hero-blob-1 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 35% 35%, var(--accent-3-soft), transparent 70%), var(--accent-3-soft);
  top: -90px;
  left: -70px;
}
.hero-blob-2 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle at 40% 40%, var(--accent-soft), transparent 70%), var(--accent-soft);
  bottom: -140px;
  right: -110px;
}

.hero-confetti {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-confetti span {
  position: absolute;
  border-radius: var(--radius-pill);
  opacity: 0.8;
}
.hero-confetti span:nth-child(1) { width: 14px; height: 14px; background: var(--accent-2); top: 18%; left: 12%; transform: rotate(12deg); }
.hero-confetti span:nth-child(2) { width: 10px; height: 10px; background: var(--accent); top: 30%; right: 16%; border-radius: 4px; transform: rotate(-18deg); }
.hero-confetti span:nth-child(3) { width: 18px; height: 18px; background: var(--accent-3); bottom: 34%; left: 8%; }
.hero-confetti span:nth-child(4) { width: 12px; height: 12px; background: var(--accent); bottom: 20%; right: 10%; border-radius: 4px; transform: rotate(20deg); }
.hero-confetti span:nth-child(5) { width: 9px; height: 9px; background: var(--accent-2); top: 12%; right: 30%; }
.hero-confetti span:nth-child(6) { width: 13px; height: 13px; background: var(--accent-3); bottom: 10%; left: 30%; border-radius: 4px; transform: rotate(-10deg); }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-block;
  background: var(--bg-elevated);
  color: var(--accent-hover);
  border: 2px solid var(--accent-soft);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  color: var(--text);
  margin-bottom: 14px;
}

.hero p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 34px;
  background-image: radial-gradient(circle at 10px 0, transparent 12px, var(--bg-card) 13px);
  background-size: 40px 34px;
  background-repeat: repeat-x;
  z-index: 1;
}

.hero-wave-flip {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 30px;
  background-image: radial-gradient(circle at 10px 30px, transparent 12px, var(--bg) 13px);
  background-size: 40px 30px;
  background-repeat: repeat-x;
}

/* ============ FILTERS ============ */

.filters-section {
  padding: 22px 0 18px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.filters-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.inp, .input {
  width: 100%;
  padding: 13px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.inp:focus, .input:focus {
  border-color: var(--accent);
  background: var(--bg-card);
}
select.inp {
  cursor: pointer;
}
textarea.inp, textarea.input {
  border-radius: var(--radius-sm);
  font-weight: 500;
  resize: vertical;
}

.inp-search { flex: 2 1 260px; }
.filters-grid #sort { flex: 1 1 160px; }

.cat-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 2px 4px;
  scrollbar-width: thin;
}

.chip {
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  color: var(--text);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(95, 184, 224, 0.32);
}
.cat-chips .chip:nth-child(3n+2).is-active { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 8px 18px rgba(255, 143, 163, 0.32); }
.cat-chips .chip:nth-child(3n+3).is-active { background: var(--accent-3-hover); border-color: var(--accent-3-hover); color: #4A3200; box-shadow: 0 8px 18px rgba(255, 209, 102, 0.4); }

/* ============ PRODUCTS ============ */

.products-section { padding: 48px 0 60px; }

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

.sec-head h2 { margin: 0; font-size: 1.5rem; }

.badge-count {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--bg-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.products-grouped, .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card-thumb-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--thumb-bg);
  margin: 12px 12px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-3);
  color: #6B4A00;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(255, 209, 102, 0.5);
  z-index: 2;
}

.card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
}

.card-cat {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-hover);
  margin-bottom: 2px;
}

.card-body h3 {
  font-size: 1.02rem;
  font-family: var(--font);
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text);
}

.card-price {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--accent-2-hover);
  margin-top: auto;
  padding-top: 8px;
}
.card-price small { font-size: 0.7rem; font-weight: 700; color: var(--muted); font-family: var(--font); }

.card-var {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.card-actions .btn-outline {
  flex: 1;
  padding: 10px 10px;
  font-size: 0.82rem;
}
.card-actions .btn-primary {
  flex: 1;
  padding: 10px 10px;
  font-size: 0.82rem;
  box-shadow: none;
}

.cart-empty {
  color: var(--muted);
  text-align: center;
  font-weight: 600;
}

/* ============ FOOTER ============ */

.app-footer {
  position: relative;
  background: var(--accent);
  background: linear-gradient(160deg, #5FB8E0 0%, #4AA6D0 100%);
  color: #fff;
  padding: 56px 0 0;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}

.footer-quote {
  color: rgba(255, 255, 255, 0.85);
  max-width: 340px;
}

.footer-about { flex: 1 1 300px; }

.footer-cta {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.footer-cta p { color: rgba(255, 255, 255, 0.85); margin-bottom: 2px; }
.footer-cta .btn-primary {
  background: #fff;
  color: var(--accent-hover);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}
.footer-cta .btn-primary:hover { color: var(--accent-hover); }

.footer-col h4 { color: #fff; font-size: 0.95rem; }
.footer-col nav { display: flex; flex-direction: column; gap: 6px; }
.footer-col nav a, .footer-cta a.btn-secondary {
  color: rgba(255, 255, 255, 0.9);
}
.footer-meta { align-items: flex-start; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ============ CART PANEL ============ */

.cart-backdrop, .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(69, 58, 50, 0.45);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.cart-backdrop.is-open, .modal-backdrop.is-open { opacity: 1; pointer-events: auto; }

.cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(400px, 100%);
  background: var(--bg);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(74, 63, 53, 0.18);
}
.cart-panel.is-open { transform: translateX(0); }

.cart-head {
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
}
.cart-head h2 { margin: 0; font-size: 1.2rem; }

.cart-body {
  padding: 18px 20px;
  flex: 1;
  overflow-y: auto;
}

.cart-line {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cart-line img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--thumb-bg);
  flex-shrink: 0;
}

.line-title {
  font-weight: 800;
  font-size: 0.94rem;
  margin-bottom: 2px;
}
.line-meta {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.line-price {
  font-weight: 800;
  color: var(--accent-2-hover);
  margin: 4px 0;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-strong);
  background: var(--bg-subtle);
  font-weight: 800;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent-hover); }
.qty-val { font-weight: 800; min-width: 18px; text-align: center; }

.line-remove {
  border: none;
  background: none;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 0;
  text-decoration: underline;
}

.cart-foot {
  padding: 18px 20px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.cart-coupon-section { margin-bottom: 14px; }
.cart-coupon-title { font-weight: 800; font-size: 0.85rem; margin-bottom: 8px; }
.cart-coupon-form { display: flex; gap: 8px; }
.cart-coupon-form .input { border-radius: var(--radius-pill); padding: 10px 16px; }
.cart-coupon-form .btn { flex-shrink: 0; padding: 10px 16px; font-size: 0.82rem; }

.cart-coupon-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cart-coupon-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-3-soft);
  border: 1px solid var(--accent-3-hover);
  color: #6B4A00;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.78rem;
}

.cart-coupon-feedback {
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.cart-coupon-feedback.is-ok, .cart-coupon-feedback.is-success { background: rgba(76, 191, 139, 0.14); color: #2C8F63; }
.cart-coupon-feedback.is-error { background: rgba(240, 97, 107, 0.14); color: var(--danger); }
.cart-coupon-feedback.is-info { background: var(--bg-muted); color: var(--muted); }

.cart-discount-box { margin-top: 10px; }
.cart-discount-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 700;
  padding: 2px 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-weight: 700;
}
.cart-total-row strong { font-size: 1.1rem; color: var(--text); font-family: var(--font-display); }
.cart-total-row-discount strong { color: var(--success); }

.cart-actions { display: flex; gap: 10px; margin-top: 12px; }
.cart-actions .btn-primary { flex: 1; }
.cart-actions .btn-outline { flex: 0 0 auto; }

/* ============ MODALS ============ */

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius-lg);
  width: 92%;
  max-width: 440px;
  z-index: 1001;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 70px rgba(74, 63, 53, 0.3);
}

.btn-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-close:hover { background: var(--accent-2-soft); color: var(--accent-2-hover); }

#modal-product-img, .modal-product-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--thumb-bg);
}

#modal-product-title { font-size: 1.2rem; }
#modal-product-desc { color: var(--muted); font-size: 0.92rem; }

.price-big {
  font-size: 1.7rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--accent-2-hover);
  margin: 10px 0;
}

#modal-var-wrap { margin-top: 14px; }
.var-label, #modal-var-label {
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: var(--text);
}

#modal-var-grid, .var-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.var-opt {
  padding: 9px 16px;
  border: 2px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.86rem;
}
.var-opt:hover { border-color: var(--accent); }
.var-opt.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.var-opt.is-disabled, .var-opt[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

#modal-attrs { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }

#modal-add, #modal-cancel { width: 100%; margin-top: 10px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 0.85rem; color: var(--text); }

.modal h3 { margin-bottom: 6px; }
.modal .desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn-primary, .modal-actions .btn-outline { flex: 1; }

/* ============ RESPONSIVE ============ */

@media (max-width: 860px) {
  .footer-grid { flex-direction: column; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 48px 0 76px; }
  .header-flex { min-height: 68px; }
  .brand-logo { height: 38px; width: 38px; }
  .btn-cart span:not(.badge) { display: none; }
  .products-grouped, .products-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .card-thumb-wrap { margin: 10px 10px 0; }
  .card-body { padding: 12px; }
  .cart-panel { width: 100%; }
  .filters-grid { flex-direction: column; }
}
