/* ============================================
   CONFORTA STORE - Complete Stylesheet
   Professional | Blue Theme | Responsive
   ============================================ */


:root {
  --primary: #1a56db;
  --primary-dark: #0f3a8e;
  --primary-light: #3b82f6;
  --primary-bg: #eff6ff;
  --secondary: #64748b;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --dark: #0f172a;
  --gray-900: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1280px;
  --header-h: 72px;
  --transition: 200ms ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; font-size: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; outline: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  z-index: 1000;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  gap: 20px;
}
.header-logo {
  font-size: 1.5rem; font-weight: 700; color: #ffffff;
  letter-spacing: -0.5px; white-space: nowrap;
}
.header-logo span { color: #94a3b8; }
.header-search {
  flex: 1; max-width: 520px; position: relative;
}
.header-search input {
  width: 100%; height: 44px; padding: 0 44px 0 16px;
  border: 1px solid #334155; border-radius: var(--radius);
  background: #1e293b; font-size: 0.9rem; transition: var(--transition);
  color: #e2e8f0;
}
.header-search input::placeholder { color: #64748b; }
.header-search input:focus {
  border-color: var(--primary); background: #1e293b; box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.header-search button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: #64748b; transition: var(--transition);
}
.header-search button:hover { color: var(--primary); }
.header-actions {
  display: flex; align-items: center; gap: 12px;
}
.header-actions button, .header-actions a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--radius);
  color: #cbd5e1; font-size: 0.875rem; font-weight: 500;
  transition: var(--transition); position: relative;
}
.header-actions button:hover, .header-actions a:hover {
  background: rgba(255,255,255,0.08); color: #ffffff;
}
.cart-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--danger); color: var(--white);
  font-size: 0.65rem; font-weight: 600; min-width: 18px; height: 18px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
/* Hamburger + drawer removidos — navegação mobile = bottom nav */
.mobile-menu-btn,
#mobileMenuBtn,
.mobile-menu {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main { padding-top: var(--header-h); min-height: 100vh; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--gray-900); color: var(--gray-300); padding: 60px 0 30px; margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
}
.footer-brand h3 {
  font-size: 1.4rem; color: var(--white); margin-bottom: 12px;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }
.footer-col h4 {
  color: var(--white); font-size: 0.95rem; font-weight: 600; margin-bottom: 16px;
}
.footer-col a {
  display: block; padding: 6px 0; font-size: 0.85rem; color: var(--gray-400);
  transition: var(--transition);
}
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
  max-width: var(--max-w); margin: 40px auto 0; padding: 20px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1); text-align: center;
  font-size: 0.8rem; color: var(--gray-500);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; padding: 16px 0;
  font-size: 0.85rem; color: var(--gray-500);
}
.breadcrumb a { color: var(--gray-500); transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--gray-900); font-weight: 500; }

/* ============================================
   BUTTONS — Parte 17: loja usa .cc-btn* (tw.css). Skins .btn* removidas.
   Admin mantém .btn em pages/admin.css.
   ============================================ */

/* ============================================
   FORMS
   Parte 16: residual global (checkout/perfil têm page CSS próprio).
   Migração full utilities TW = fora desta parte; manter API .form-*.
   ============================================ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray-700);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  font-size: 0.9rem; color: var(--gray-900); background: var(--white);
  transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ============================================
   ALERTS
   ============================================ */
.alert {
  padding: 12px 16px; border-radius: var(--radius); font-size: 0.875rem;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: var(--primary-bg); color: var(--primary-dark); border: 1px solid #bfdbfe; }

/* ============================================
   MODAL (Parte 16: open/close via .open; z alinhado stack toast)
   ============================================ */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 1100;
  display: none; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 200ms ease;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 560px; max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); animation: slideUp 300ms ease;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--gray-200);
}
.modal-header h3 { font-size: 1.1rem; }
.modal-close {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); color: var(--gray-500); transition: var(--transition);
}
.modal-close:hover { background: var(--gray-100); color: var(--gray-900); }
.modal-body { padding: 24px; }
.modal-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 16px 24px; border-top: 1px solid var(--gray-200);
}

/* ============================================
   LOADING
   ============================================ */
.spinner {
  width: 40px; height: 40px; border: 3px solid var(--gray-200);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.7s linear infinite; margin: 40px auto;
}
.loading-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.8); z-index: 3000;
  display: none; align-items: center; justify-content: center;
}
.loading-overlay.active { display: flex; }

/* ============================================
   TOAST (Parte 16: tipos success|error|info|warning; CSS global, não purge TW)
   Cores alinhadas theme P3 (brand/success/danger)
   ============================================ */
.toast-container {
  position: fixed; top: 88px; right: 16px; left: auto; z-index: 1200;
  display: flex; flex-direction: column; gap: 8px;
  max-width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 12px 18px; border-radius: 12px; font-size: 0.875rem; font-weight: 600;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  display: flex; align-items: center; gap: 8px;
  animation: slideIn 300ms ease; min-width: min(280px, 100%);
  transition: opacity 0.35s ease, transform 0.35s ease;
  border-left: 4px solid transparent;
}
.toast-out { opacity: 0; transform: translateX(16px); }
.toast-success { background: #dcfce7; color: #15803d; border-left-color: #16a34a; }
.toast-error { background: #fef2f2; color: #b91c1c; border-left-color: #dc2626; }
.toast-info { background: #eff6ff; color: #0f3a8e; border-left-color: #1a56db; }
.toast-warning { background: #fff7ed; color: #c4631f; border-left-color: #e07a3a; }
@media (max-width: 480px) {
  .toast-container { top: auto; bottom: calc(72px + env(safe-area-inset-bottom)); right: 12px; left: 12px; max-width: none; }
  .toast { min-width: 0; width: 100%; }
}

/* ============================================
   CHAT WIDGET
   ============================================ */
.chat-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 1500;
}
.chat-toggle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: var(--transition);
}
.chat-toggle:hover { background: var(--primary-dark); transform: scale(1.05); }
.chat-box {
  position: absolute; bottom: 68px; right: 0;
  width: 380px; height: 520px; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-box.open { display: flex; }
.chat-header {
  padding: 16px 20px; background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: space-between;
}
.chat-header h4 { font-size: 0.95rem; font-weight: 600; }
.chat-close {
  width: 32px; height: 32px; display: flex; align-items: center;
  justify-content: center; border-radius: 50%; color: rgba(255,255,255,0.8);
  transition: var(--transition);
}
.chat-close:hover { background: rgba(255,255,255,0.15); }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--gray-50);
}
.chat-msg {
  max-width: 85%; padding: 10px 14px; border-radius: var(--radius-md);
  font-size: 0.85rem; line-height: 1.5; animation: fadeIn 300ms ease;
}
.chat-msg.user {
  align-self: flex-end; background: var(--primary); color: var(--white);
  border-bottom-right-radius: 4px;
}
.chat-msg.assistant {
  align-self: flex-start; background: var(--white); color: var(--gray-900);
  border: 1px solid var(--gray-200); border-bottom-left-radius: 4px;
}
.chat-input-area {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-top: 1px solid var(--gray-200);
  background: var(--white);
}
.chat-input-area input {
  flex: 1; height: 40px; padding: 0 12px;
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  font-size: 0.85rem;
}
.chat-input-area button {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.chat-input-area button:hover { background: var(--primary-dark); }

/* ============================================
   PAGE TITLE
   ============================================ */
.page-title {
  padding: 40px 0 24px;
}
.page-title h1 {
  font-size: 1.75rem; font-weight: 700; color: var(--gray-900);
  letter-spacing: -0.5px;
}
.page-title p {
  font-size: 0.95rem; color: var(--gray-500); margin-top: 6px;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center; padding: 60px 20px;
}
.empty-state svg { margin: 0 auto 16px; color: var(--gray-300); }
.empty-state h3 { font-size: 1.1rem; color: var(--gray-700); margin-bottom: 8px; }
.empty-state p { font-size: 0.875rem; color: var(--gray-500); }

/* ============================================
   SECTION
   ============================================ */
.section { padding: 48px 0; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.section-header h2 {
  font-size: 1.35rem; font-weight: 700; color: var(--gray-900);
  letter-spacing: -0.3px;
}
.section-header a {
  font-size: 0.85rem; color: var(--primary); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.section-header a:hover { text-decoration: underline; }

/* ============================================
   CART SIDEBAR (Overlay)
   ============================================ */
.cart-sidebar-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 3000;
  opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 300ms ease;
}
.cart-sidebar-overlay.open { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 400px; max-width: 100vw;
  background: var(--white); z-index: 3001;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.15);
  transform: translateX(100%); transition: transform 300ms ease;
}
.cart-sidebar.open { transform: translateX(0); }
.cart-sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.cart-sidebar-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }
.cart-sidebar-close {
  width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; border-radius: var(--radius);
  color: var(--gray-500); transition: var(--transition);
}
.cart-sidebar-close:hover { background: var(--gray-100); color: var(--gray-900); }
.cart-sidebar-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-sidebar-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px; text-align: center;
}
.cart-sidebar-empty svg { color: var(--gray-300); margin-bottom: 12px; }
.cart-sidebar-empty p { font-size: 0.9rem; color: var(--gray-500); }
.cart-sidebar-items { display: flex; flex-direction: column; gap: 16px; }
.cart-sidebar-footer {
  padding: 16px 24px 24px; border-top: 1px solid var(--gray-200);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Parte 9: CTAs do drawer usam .cc-btn (tw.css) — gap no footer/empty/complements */
.cart-sidebar-footer .cc-btn { width: 100%; }
.cart-empty-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  margin-top: 8px;
}
.cart-empty-actions .cc-btn { width: 100%; }
.cart-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 24px 8px;
}
.cart-state-card .cc-btn { width: 100%; max-width: 280px; }
.cart-complement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.cart-complement-actions .cc-btn { flex: 1 1 auto; }
.cart-mobile-bar {
  /* JS seta display none|flex; base none quando style="" */
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-200);
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}
.cart-mobile-bar > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.75rem;
  color: var(--gray-500);
}
.cart-mobile-bar strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gray-900);
}
.cart-mobile-bar .cc-btn {
  flex-shrink: 0;
}
.cart-sidebar-footer h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
}
.cart-summary-lines {
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gray-700);
  margin-bottom: 4px;
}
.cart-summary-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.cart-summary-total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--gray-200);
  font-weight: 700;
}
.cart-installments {
  font-size: 0.8rem;
  font-weight: 700;
  color: #15803d;
}
.cart-delivery-box {
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 10px 12px;
  background: var(--gray-50, #f8fafc);
  border-radius: 10px;
  border: 1px solid var(--gray-200);
}
.cart-delivery-box strong {
  display: block;
  margin-bottom: 2px;
  color: var(--gray-900);
}
.cart-secure-copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.4;
}
.cart-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.cart-benefits span {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-600);
}
.cart-complements {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}
.cart-complement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cart-complement-card {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.cart-complement-img {
  display: block;
  aspect-ratio: 1;
  background: var(--gray-100);
}
.cart-complement-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-complement-body {
  padding: 8px 10px 10px;
}
.cart-complement-body h5 {
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--gray-900);
  line-height: 1.3;
}
.cart-complement-body strong {
  font-size: 0.8rem;
  color: var(--primary, #1a56db);
}
.cart-sidebar-subtotal {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; font-size: 1rem; font-weight: 600; color: var(--gray-900);
}
.cart-sidebar-total { font-size: 1.2rem; font-weight: 700; color: var(--gray-900); }
.cart-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--gray-100); position: relative;
}
.cart-item-image {
  width: 72px; height: 72px; border-radius: var(--radius);
  overflow: hidden; background: var(--gray-100); flex-shrink: 0;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.85rem; font-weight: 600; color: var(--gray-900); margin-bottom: 4px; }
.cart-item-color { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; color: var(--gray-500); margin-bottom: 4px; }
.cart-item-color .color-swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cart-item-price { font-size: 0.85rem; font-weight: 600; color: var(--gray-900); margin-bottom: 6px; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.cart-item-qty .qty-btn {
  width: 28px; height: 28px; display: flex; align-items: center;
  justify-content: center; border-radius: 4px; background: var(--gray-100);
  color: var(--gray-700); transition: var(--transition); font-size: 0.85rem;
}
.cart-item-qty .qty-btn:hover { background: var(--gray-200); }
.cart-item-qty .qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.cart-item-qty .qty-value { font-size: 0.85rem; font-weight: 600; min-width: 20px; text-align: center; color: var(--gray-900); }
.cart-item-total { font-size: 0.85rem; font-weight: 700; color: var(--gray-900); margin-top: 4px; }
.cart-item-remove {
  position: absolute; top: 8px; right: 0;
  width: 24px; height: 24px; display: flex; align-items: center;
  justify-content: center; color: var(--gray-400); transition: var(--transition);
}
.cart-item-remove:hover { color: var(--danger); }

@media (max-width: 480px) {
  .cart-sidebar { width: 100vw; }
  .cart-item-image { width: 60px; height: 60px; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .header-search { display: none; }
  .header-actions a span, .header-actions button span { display: none; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 32px 0; }
  .page-title { padding: 24px 0 16px; }
  .page-title h1 { font-size: 1.4rem; }
  .chat-box { width: calc(100vw - 32px); right: -8px; bottom: 64px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .container { padding: 0 12px; }
}

/* ============================================
   MERCADO PAGO — mensagem de confiança (footer)
   ============================================ */
.footer-mp-trust {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(0, 158, 227, 0.14) 0%, rgba(15, 23, 42, 0.92) 52%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 14px;
  width: 100%;
}
.footer-mp-trust-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 158, 227, 0.2);
  color: #7dd3fc;
}
.footer-mp-trust-title {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: #f0f9ff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.footer-mp-trust-text {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0 0 10px;
}
.footer-mp-trust-link {
  font-size: 0.76rem;
  font-weight: 700;
  color: #38bdf8 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-mp-trust-link:hover {
  color: #7dd3fc !important;
}
@media (max-width: 520px) {
  .footer-mp-trust {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-mp-trust-body {
    text-align: center;
  }
}

/* Rodapé compacto (site-footer.js) — páginas que só carregam style.css, ex.: carrinho */
.footer.footer--site-compact {
  background: #0f172a;
  color: #cbd5e1;
  padding: 24px 0 18px;
  margin-top: 24px;
}
.footer.footer--site-compact .footer-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.footer.footer--site-compact .footer-brand-mini {
  display: inline-flex;
  align-items: center;
}
.footer.footer--site-compact .footer-brand-mini img {
  height: 96px;
  width: auto;
  max-width: min(360px, 90vw);
  object-fit: contain;
  display: block;
}
.footer.footer--site-compact .footer-contacts {
  display: flex;
  gap: 18px 22px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 12px;
}
.footer.footer--site-compact .footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #cbd5e1;
  transition: color 0.2s;
}
.footer.footer--site-compact a.footer-contact-item:hover {
  color: #fff;
}
.footer.footer--site-compact .footer-contact-item svg {
  flex-shrink: 0;
  color: #94a3b8;
}
.footer.footer--site-compact .footer-bottom-mini {
  font-size: 0.75rem;
  color: #64748b;
  padding-top: 12px;
  border-top: 1px solid #1e293b;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.footer.footer--site-compact .footer-mp-trust {
  margin-top: 4px;
}
@media (max-width: 720px) {
  .footer.footer--site-compact {
    padding: 18px 0 14px;
  }
  .footer.footer--site-compact .footer-contacts {
    flex-direction: column;
    gap: 12px;
  }
}

/* Carrinho — lembrete curto */
.cc-mp-cart-note {
  font-size: 0.84rem;
  color: #475569;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  line-height: 1.45;
}
.cc-mp-cart-note strong {
  color: #0369a1;
}

/* Motion (leve, só onde importa) */
@media (prefers-reduced-motion: no-preference) {
  body.cc-motion .product-grid .product-card:not(.cc-in),
  body.cc-motion .product-grid article.product-card:not(.cc-in) {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }

  body.cc-motion .product-card.cc-in,
  body.cc-motion article.product-card.cc-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.32s ease, transform 0.32s ease;
  }

  body.cc-motion .product-card {
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
  }

  @media (hover: hover) {
    body.cc-motion .product-card:hover {
      transform: translate3d(0, -3px, 0);
      box-shadow: var(--shadow-md);
    }
  }

  body.cc-motion .hero-content {
    animation: ccHeroIn 0.45s ease both;
  }

  @keyframes ccHeroIn {
    from { opacity: 0; transform: translate3d(0, 10px, 0); }
    to { opacity: 1; transform: none; }
  }

  body.cc-motion .cc-btn:active {
    transform: scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cc-motion .product-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  body.cc-motion .hero-content {
    animation: none !important;
  }
}

.product-name,
.hero h1,
.hero-lead,
.hero-eyebrow {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.chat-widget .message.assistant,
.chat-widget .message.user {
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* ============================================
   CC-POLISHED — overrides visuais globais
   (body.cc-polished / body.cc-page-*)
   Movido de cc-polish.css para o final da
   cascata; !important removido — especificidade
   dos seletores já garante precedência.
   ============================================ */
body.cc-polished { --cc-brand:#1a56db; --cc-brand-dark:#0f3a8e; --cc-ink:#0f172a; --cc-line:#e2e8f0; --cc-header-h: 68px; }
body.cc-polished header.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
body.cc-polished .header { background: rgba(15,23,42,0.97); border-bottom: 1px solid #1e293b; box-shadow: 0 10px 28px rgba(15,23,42,0.12); backdrop-filter: blur(14px); }
body.cc-polished .header-inner { min-height: 68px; height: auto; display: flex; align-items: center; gap: 18px; }
body.cc-polished .logo { flex-shrink: 0; gap: 0; align-items: center; max-width: min(220px, 48vw); background: transparent !important; }
/* Moderniza: logo PNG transparente (sem caixinha) */
body.cc-polished .header .logo img {
  display: block !important;
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
body.cc-polished .logo-text { display: none !important; }
body.cc-polished .logo-text small { display: none !important; }
/* Busca unificada (mesma da home) — produtos/PDP também */
body.cc-polished .search-bar {
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  min-height: 42px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
body.cc-polished .search-bar:focus-within {
  border-color: rgba(159,211,182,0.7);
  background: rgba(255,255,255,0.14);
}
body.cc-polished .search-bar input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
  border: 0;
  outline: none;
}
body.cc-polished .search-bar input::placeholder { color: rgba(255,255,255,0.6); }
body.cc-polished .search-bar button {
  width: 46px;
  height: 42px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.75);
  background: transparent;
  border: 0;
  cursor: pointer;
}
body.cc-polished .search-bar button:hover { color: #fff; }
body.cc-page-perfil .search-bar { display: none !important; }
body.cc-polished .main-nav { display:flex; align-items:center; justify-content:center; gap:4px; flex:1; min-width:0; }
body.cc-polished .main-nav a { position:relative; display:inline-flex; align-items:center; min-height:68px; padding:0 12px; color:#cbd5e1; font-size:0.9rem; font-weight:900; text-decoration:none; }
body.cc-polished .main-nav a:hover, body.cc-polished .main-nav a.active { color:#fff; }
body.cc-polished .main-nav a.active::after { display:none; }
body.cc-polished .cc-home-four-nav { flex-wrap:nowrap; gap:2px; justify-content:center; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
body.cc-polished .cc-home-four-nav::-webkit-scrollbar { display:none; width:0; height:0; }
body.cc-polished .cc-home-four-nav a { min-height:56px; padding:0 10px; font-size:0.68rem; letter-spacing:0.06em; gap:6px; white-space:nowrap; }
body.cc-polished .cc-home-four-nav a svg { flex-shrink:0; }
body.cc-polished .header-actions { flex-shrink:0; gap:8px; }
body.cc-polished .header-actions button, body.cc-polished .header-actions a { border-radius:12px; background:rgba(255,255,255,0.06); color:#cbd5e1; min-width:42px; min-height:42px; transition:background .2s ease,color .2s ease,transform .2s ease; }
body.cc-polished .header-actions button:hover, body.cc-polished .header-actions a:hover { background:rgba(255,255,255,0.12); color:#fff; transform:translateY(-1px); }
/* Parte 15: visual vem de .cc-btn--whatsapp; só layout no chrome */
body.cc-polished .header-whatsapp.cc-btn {
  width: auto;
  min-width: auto;
  height: auto;
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.84rem;
  white-space: nowrap;
  box-shadow: none;
}
body.cc-polished .main { background:#fff; }
body.cc-page-home .main { margin-top:0; min-height:0; background:#fff; }
body.cc-page-produto .main { background:#f8fafc; }
body.cc-page-perfil .main { background:#f8fafc; }
body.cc-page-checkout .main, body.cc-page-carrinho .main { background:#f8fafc; }
body.cc-page-produto .product-shell { padding-top:20px; }
body.cc-page-produtos .catalog-hero { margin-top:0; padding-top:28px; padding-bottom:24px; }
body.cc-page-produtos .control-bar { top: var(--cc-header-h); }
body.cc-page-perfil .profile-page { padding-top:24px; }
body.cc-page-perfil .account-title-card { color:#fff; background:radial-gradient(circle at top right, rgba(59,130,246,.35), transparent 30%), linear-gradient(135deg,#0f172a 0%,#0f3a8e 62%,#1a56db 100%); border-color:rgba(255,255,255,.14); box-shadow:0 18px 42px rgba(15,23,42,.12); }
body.cc-page-perfil .account-title-card h1 { color:#fff; }
body.cc-page-perfil .account-title-card p { color:#dbeafe; }
body.cc-page-perfil .account-microcopy span { background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.16); color:#fff; }
body.cc-polished .footer { margin-top:34px; padding:38px 0 24px; background:#0f172a; }
body.cc-polished .footer-compact { gap:16px; }
body.cc-polished .footer-brand-mini img { height:96px; width:auto; max-width:min(360px,90vw); object-fit:contain; border-radius:0; }
body.cc-polished .footer-contacts { gap:18px 24px; align-items:center; }
body.cc-polished .footer-bottom-mini { padding-top:14px; color:#94a3b8; }
.cc-mobile-bottom-nav { display:none; }
body.cc-polished .mobile-menu a { border-bottom:none; text-decoration:none; }

@media (max-width: 768px) {
  html:has(body.cc-polished),
  body.cc-polished {
    overflow-x:hidden;
    max-width:100%;
    scrollbar-width:none;
    -ms-overflow-style:none;
  }
  html:has(body.cc-polished)::-webkit-scrollbar,
  body.cc-polished::-webkit-scrollbar {
    width:0;
    height:0;
    display:none;
  }
  body.cc-polished .main-nav a::after,
  body.cc-polished .main-nav a.active::after { display:none; content:none; }
  body.cc-polished .main-nav,
  body.cc-polished .header-whatsapp,
  body.cc-polished .search-bar { display:none; }
  body.cc-polished #mobileMenuBtn,
  body.cc-polished .mobile-menu-btn { display:none; visibility:hidden; pointer-events:none; }
  body.cc-polished .mobile-menu,
  body.cc-polished .mobile-menu.open { display:none; visibility:hidden; pointer-events:none; }
  body.cc-polished .header-inner {
    min-height:56px;
    gap:6px;
    padding-left:10px;
    padding-right:10px;
  }
  body.cc-polished .container {
    width:100%;
    max-width:100%;
    padding-left:12px;
    padding-right:12px;
  }
  body.cc-polished .header-actions { gap:6px; }
  body.cc-has-mobile-bottom { padding-bottom:72px; }
  body.cc-page-produto { padding-bottom:150px; }
  .cc-mobile-bottom-nav { position:fixed; left:0; right:0; bottom:0; z-index:850; display:grid; grid-template-columns:repeat(4,1fr); width:100%; max-width:100vw; min-height:58px; padding:8px 8px calc(8px + env(safe-area-inset-bottom)); background:rgba(255,255,255,.98); border-top:1px solid #e2e8f0; box-shadow:0 -12px 30px rgba(15,23,42,.10); backdrop-filter:blur(14px); overflow:hidden; box-sizing:border-box; }
  body.cc-page-produto .cc-mobile-bottom-nav { bottom:72px; }
  .cc-mobile-bottom-nav .cc-mbn-lbl {
    position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
  }
  .cc-mobile-bottom-nav a, .cc-mobile-bottom-nav button { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0; color:#64748b; font-size:.68rem; font-weight:900; border-radius:14px; background:transparent; border:0; min-height:48px; }
  .cc-mobile-bottom-nav svg { width:24px; height:24px; }
  .cc-mobile-bottom-nav .active { color:#1a56db; background:#eff6ff; }
  .cc-mobile-bottom-nav .cart-count { position:absolute; top:4px; right:calc(50% - 24px); min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:#dc2626; color:#fff; font-size:.65rem; font-weight:900; display:none; align-items:center; justify-content:center; }
  .cc-mobile-bottom-nav .cart-count.visible { display:flex; }
  body.cc-polished .chat-widget { bottom:22px; right:14px; }
  body.cc-page-produto .chat-widget { bottom:96px; }
  body.cc-page-checkout .chat-widget { bottom:18px; }
  body.cc-polished .footer { padding-bottom:28px; }
  body.cc-polished .footer-contacts { flex-direction:column; gap:10px; }
  body.cc-polished .footer-brand-mini img { height:80px; }
  body.cc-page-produtos .catalog-hero { margin-top:0; padding-top:16px; padding-bottom:14px; }
  body.cc-page-produtos .products-layout { padding:12px 0 28px; }
  body.cc-page-produtos .control-inner { padding:8px 0; min-height:auto; }
  body.cc-page-produtos .product-grid { gap:10px; }
  body.cc-page-produtos .filter-body { scrollbar-width:none; -ms-overflow-style:none; }
  body.cc-page-produtos .filter-body::-webkit-scrollbar { display:none; width:0; }
  body.cc-page-home .section { padding:20px 0; }
  body.cc-page-home .hero { padding-top:calc(56px + 16px); padding-bottom:28px; min-height:auto; }
  body.cc-page-home .product-grid { gap:10px; }
  body.cc-page-produto .product-shell { padding-top:12px; padding-left:0; padding-right:0; }
  body.cc-page-perfil .profile-page { padding-top:12px; }
  body.cc-page-perfil .container { padding-left:12px; padding-right:12px; }
}
.cc-header-profile-aux { opacity: 0.78; transform: scale(0.92); min-width: 38px; width: 38px; }
.mobile-menu a.cc-mobile-menu-secondary { opacity: 0.88; font-size: 0.88rem; }
@media (max-width: 430px) {
  body.cc-polished .header .logo img { height: 42px; max-width: 150px; }
  body.cc-polished .header .logo-text { display: none !important; }
  body.cc-polished .header-actions button, body.cc-polished .header-actions a { min-width:36px; width:36px; min-height:36px; height:36px; }
}
