/* ============================================================
   VendaArte — loja.css
   Visual baseado no CarolArtes.shop
   Mobile-first, max-width 500px (app-like)
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  --cor-primaria: #FF5C8D;
  --cor-primaria-rgb: 255, 92, 141;
  --cor-secundaria: #FF8FAB;
  --cor-fundo: #FFF5F7;
  --cor-texto: #222222;

  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;

  --color-success: #22c55e;
  --color-success-light: #dcfce7;
  --color-error: #ef4444;
  --color-error-light: #fee2e2;
  --color-warning: #f59e0b;
  --color-saas: #6366f1;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.2s ease;
  --navbar-height: 52px;
  --bottom-nav-height: 56px;
}

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

html { height: 100%; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  height: 100%;
  min-height: 100%;
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
  line-height: 1.5;
  overflow-x: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
  padding-bottom: calc(var(--bottom-nav-height) + 0.5rem);
}

/* Background do tenant (aplicado via JS inline ou class) */
body.has-background {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

a {
  color: var(--cor-primaria);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

body.modal-open,
body.drawer-open { overflow: hidden; }

html.no-scroll,
html.no-scroll body {
  overflow: hidden;
  touch-action: none;
}

/* ============================================================
   3. SPINNER
   ============================================================ */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--cor-primaria);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner--sm { width: 24px; height: 24px; border-width: 2px; }
.spinner--lg { width: 56px; height: 56px; border-width: 4px; }

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

/* ============================================================
   5. STORE ERROR
   ============================================================ */
#store-error {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--cor-fundo, #FFF5F7);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

#store-error .error-icon { font-size: 3rem; line-height: 1; }
#store-error h2 { font-size: 1.25rem; font-weight: 600; color: var(--gray-800); }
#store-error [data-error-message] { font-size: 0.9rem; color: var(--gray-500); max-width: 320px; }

/* ============================================================
   6. NAVBAR (fixed-top-bar style)
   ============================================================ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 1.5rem;
  position: fixed;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 480px;
  z-index: 1000;
  height: var(--navbar-height);
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.navbar-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(var(--cor-primaria-rgb), 0.2);
}

.navbar-name {
  font-family: 'Dancing Script', cursive;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cor-primaria);
  flex-shrink: 0;
  margin-right: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.navbar-social a {
  display: none; /* Mostrado via JS */
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--white);
  padding: 0.2rem;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  text-decoration: none;
  transition: transform var(--transition);
}

.navbar-social a img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  border-radius: 4px;
}

.navbar-social a:hover {
  transform: scale(1.1);
  text-decoration: none;
}

.navbar-cart-label { display: none; }

.navbar-cart {
  position: relative;
  display: none; /* Oculto no mobile, carrinho fica na bottom-nav */
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(var(--cor-primaria-rgb), 0.1);
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.navbar-cart:hover {
  background: rgba(var(--cor-primaria-rgb), 0.2);
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--cor-primaria);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid var(--white);
}

/* Variantes de estilo da navbar */
.navbar.navbar-solido {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 0;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  border: none;
}

.navbar.navbar-colorido {
  background: var(--cor-primaria);
  border-radius: 0;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  border: none;
  box-shadow: 0 2px 8px rgba(var(--cor-primaria-rgb), 0.35);
}

.navbar.navbar-colorido .navbar-name { color: #fff; }
.navbar.navbar-colorido .navbar-social a { background: rgba(255,255,255,0.2); }
.navbar.navbar-colorido .navbar-cart { background: rgba(255,255,255,0.2); color: #fff; }

/* Offset do conteúdo */
.navbar-offset {
  padding-top: calc(var(--navbar-height) + 16px);
}

.navbar.navbar-solido ~ #store-content .navbar-offset,
.navbar.navbar-colorido ~ #store-content .navbar-offset {
  padding-top: calc(var(--navbar-height) + 4px);
}

/* ============================================================
   7. HERO / BANNER
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 0.5rem 0.75rem;
  width: calc(100% - 1.5rem);
  box-shadow: var(--shadow-md);
}

.hero-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: none;
  border-radius: var(--radius-lg);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
}

.hero-gradient-text {
  color: var(--white);
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ============================================================
   8. STORE HEADER
   ============================================================ */
.store-header {
  text-align: center;
  padding: 16px 16px 4px;
}

.store-header h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cor-primaria);
}

.store-header p {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ============================================================
   9. CATEGORIAS (product-nav style)
   ============================================================ */
.categories-section {
  padding: 8px 0.75rem 4px;
}

/* ── LINHA CATEGORIAS + BUSCA ── */
.categories-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  position: relative;
}

.categories-row .categories-nav {
  flex: 1;
  min-width: 0;
}

/* ── BUSCA ── */
.search-pill-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 4px; /* alinha com as pills */
}

.search-pill-btn {
  width: 34px;
  height: 34px;
  border-radius: 99px;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background 0.15s;
  flex-shrink: 0;
}
.search-pill-btn:hover { background: rgba(255,255,255,0.95); }
.search-open .search-pill-btn { display: none; }

.search-expand {
  display: none;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.14);
  border-radius: 99px;
  padding: 5px 10px 5px 14px;
}
/* Desktop: expande inline */
@media (min-width: 480px) {
  .search-open .search-expand {
    display: flex;
    width: 200px;
  }
}
/* Mobile: vira barra full-width abaixo das pills */
@media (max-width: 479px) {
  .search-open {
    position: static;
  }
  .search-open .search-expand {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    width: auto;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  color: #222 !important;
  outline: none;
  min-width: 0;
}
.search-input::placeholder { color: #888; opacity: 1; }
.search-input::-webkit-search-cancel-button { display: none; }

.search-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 0.78rem;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
}
.search-close-btn:hover { color: #222; }

.categories-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  justify-content: center;
  flex-wrap: wrap;
}

.categories-nav::-webkit-scrollbar { display: none; }

.category-pill {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  color: var(--gray-600);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--cor-primaria);
}

.category-pill.active {
  background: var(--cor-primaria);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(var(--cor-primaria-rgb), 0.4);
  font-weight: 600;
}

/* ============================================================
   10. PRODUCTS GRID
   ============================================================ */
#produtos {
  padding: 8px 0.75rem 80px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* ============================================================
   11. PRODUCT CARD
   ============================================================ */
.product-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card:active { transform: translateY(-2px); }

.product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-100);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--cor-primaria-rgb), 0.1) 0%, rgba(var(--cor-primaria-rgb), 0.2) 100%);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cor-primaria);
  text-transform: uppercase;
}

/* Badges */
.badge {
  position: absolute;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-type {
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.65);
  color: var(--white);
  backdrop-filter: blur(4px);
}

.badge-featured {
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #ff6b35, #f59e0b);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  overflow: hidden;
  white-space: nowrap;
}

@keyframes popular-texto-sumir {
  0%   { max-width: 80px; opacity: 1; margin-left: 3px; }
  70%  { max-width: 80px; opacity: 1; margin-left: 3px; }
  100% { max-width: 0;    opacity: 0; margin-left: 0; }
}

.badge-popular-texto {
  display: inline-block;
  max-width: 80px;
  overflow: hidden;
  vertical-align: middle;
  animation: popular-texto-sumir 3s ease-in-out forwards;
  animation-delay: 1.5s;
}

.badge-molde { background: rgba(139, 92, 246, 0.85); color: var(--white); }
.badge-arte  { background: rgba(var(--cor-primaria-rgb), 0.85); color: var(--white); }
.badge-pdf   { background: rgba(59, 130, 246, 0.85); color: var(--white); }
.badge-pacote { background: rgba(16, 185, 129, 0.85); color: var(--white); }

/* Card info */
.product-info {
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.product-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cor-texto);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.4 * 0.75rem);
}

.product-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cor-primaria);
}

/* Botão adicionar ao carrinho */
.btn-add-cart {
  width: 100%;
  padding: 7px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid var(--cor-primaria);
  color: var(--cor-primaria);
  background: transparent;
  margin-top: auto;
}

.btn-add-cart:hover {
  background: var(--cor-primaria);
  color: var(--white);
}

.btn-add-cart.added {
  background: var(--color-success);
  border-color: var(--color-success);
  color: var(--white);
}

.btn-add-cart.added:hover {
  background: #16a34a;
  border-color: #16a34a;
}

/* ============================================================
   12. BOTTOM NAV (CarolArtes style)
   ============================================================ */
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: var(--bottom-nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--gray-100);
  z-index: 900;
  padding: 0 1rem;
}

.bottom-nav .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--gray-400);
  font-size: 0.65rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
  padding: 4px 12px;
}

.bottom-nav .nav-link.active,
.bottom-nav .nav-link:hover {
  color: var(--cor-primaria);
}

.bottom-nav .nav-icon {
  width: 24px;
  height: 24px;
}

.bottom-nav .nav-badge {
  position: absolute;
  top: 0;
  right: 4px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--cor-primaria);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ============================================================
   13. CART OVERLAY
   ============================================================ */
#cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   14. CART DRAWER (bottom sheet style)
   ============================================================ */
#cart-drawer {
  position: fixed;
  z-index: 1200;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 500px;
  height: 75vh;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

#cart-drawer.active {
  transform: translateX(-50%) translateY(0);
}

.cart-drawer-handle {
  width: 40px;
  height: 4px;
  background: var(--gray-300);
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}

.cart-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
}

.cart-header-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition);
}

.cart-header-close:hover { background: var(--gray-200); }

#cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  margin-bottom: 8px;
}

.cart-item-img-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--cor-primaria-rgb), 0.1), rgba(var(--cor-primaria-rgb), 0.2));
  font-weight: 700;
  color: var(--cor-primaria);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cor-primaria);
  margin-top: 2px;
}

.cart-item-remove {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  font-size: 0.7rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.cart-item-remove:hover {
  background: var(--color-error-light);
  color: var(--color-error);
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
  text-align: center;
  color: var(--gray-400);
  padding: 24px;
}

.cart-empty-icon { font-size: 3rem; line-height: 1; }
.cart-empty p { font-size: 0.9rem; font-weight: 600; color: var(--gray-600); }
.cart-empty span { font-size: 0.8rem; }

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  background: var(--white);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.cart-total-row span { color: var(--gray-600); font-weight: 500; }
.cart-total-row strong { font-size: 1.1rem; font-weight: 700; color: var(--cor-texto); }

.btn-continuar-comprando {
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 0;
  text-align: center;
  transition: color 0.2s;
}
.btn-continuar-comprando:hover { color: var(--cor-primaria); }

/* ============================================================
   15. CART FAB (hidden by default — bottom-nav replaces it)
   ============================================================ */
#cart-fab {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cor-primaria);
  color: var(--white);
  font-size: 1.375rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(var(--cor-primaria-rgb), 0.5);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
}

#cart-fab:hover { transform: scale(1.08); }
#cart-fab:active { transform: scale(0.95); }

#cart-fab .cart-badge {
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  font-size: 0.7rem;
}

/* ============================================================
   16. PRODUCT MODAL
   ============================================================ */
#product-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#product-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--white);
  width: 100%;
  max-width: 500px;
  max-height: 82vh;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  position: relative;
}

#product-modal.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 1;
  transition: background var(--transition);
}

.modal-close-btn:hover { background: rgba(0,0,0,0.15); }

.modal-product-img-wrap {
  width: 100%;
  max-height: 260px;
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-product-img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.modal-product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--cor-primaria-rgb), 0.1), rgba(var(--cor-primaria-rgb), 0.25));
  font-size: 4rem;
  font-weight: 700;
  color: var(--cor-primaria);
  text-transform: uppercase;
}

.modal-product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-product-tipo {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(var(--cor-primaria-rgb), 0.1);
  color: var(--cor-primaria);
  width: fit-content;
}

.modal-product-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.3;
}

.modal-product-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cor-primaria);
}

.modal-product-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.7;
  white-space: pre-wrap;
}

.modal-btn-cart {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid var(--cor-primaria);
  color: var(--cor-primaria);
  background: transparent;
}

.modal-btn-cart:hover {
  background: var(--cor-primaria);
  color: var(--white);
}

.modal-btn-cart.added {
  background: var(--color-success);
  border-color: var(--color-success);
  color: var(--white);
}

/* Modal: warning + seal */
.modal-warning {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
  padding: 8px 0 0;
}

.modal-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 4px;
  opacity: 0.7;
}

.modal-seal img {
  height: 20px;
  width: auto;
}

.modal-seal-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-500);
}

/* ============================================================
   17. CHECKOUT MODAL
   ============================================================ */
#checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#checkout-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.checkout-modal-content {
  background: var(--white);
  width: 100%;
  max-width: 500px;
  max-height: 95vh;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  position: relative;
}

#checkout-modal.active .checkout-modal-content {
  transform: translateY(0);
}

/* Checkout screens */
.checkout-screen {
  display: none;
  padding: 24px 20px;
}

.checkout-screen.active { display: block; }

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

.checkout-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
}

/* Checkout: summary */
.checkout-summary {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 20px;
}

.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.checkout-item-name {
  color: var(--gray-700);
  flex: 1;
  margin-right: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-item-price {
  font-weight: 600;
  color: var(--gray-800);
  flex-shrink: 0;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.9rem;
}

.checkout-total-row span { color: var(--gray-600); font-weight: 500; }
.checkout-total-row strong { font-size: 1.1rem; font-weight: 800; color: var(--cor-primaria); }

/* Form fields */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-200);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus {
  border-color: var(--cor-primaria);
  box-shadow: 0 0 0 3px rgba(var(--cor-primaria-rgb), 0.15);
}

.form-group input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.field-error {
  display: none;
  font-size: 0.75rem;
  color: var(--color-error);
  margin-top: 5px;
  font-weight: 500;
}

.checkout-total-display {
  text-align: right;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.checkout-total-display strong {
  color: var(--cor-primaria);
  font-size: 1rem;
}

/* Checkout: Loading */
#checkout-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 280px;
  text-align: center;
}

#checkout-loading.active { display: flex; }

#checkout-loading p {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* Checkout: PIX */
.pix-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pix-subtitle {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-align: center;
}

#pix-qr-img {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-200);
  object-fit: contain;
  background: var(--white);
}

#pix-code {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-200);
  background: var(--gray-50);
  font-size: 0.7rem;
  color: var(--gray-700);
  resize: none;
  height: 72px;
  line-height: 1.5;
  cursor: text;
  outline: none;
  word-break: break-all;
  font-family: monospace;
}

.pix-countdown-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gray-500);
}

#pix-countdown {
  font-weight: 700;
  color: var(--cor-primaria);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

#pix-countdown.expired { color: var(--color-error); }

.pix-hint {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.5;
}

.pix-email-row {
  font-size: 0.8rem;
  color: var(--gray-600);
  text-align: center;
}

#pix-email-hint { font-weight: 600; color: var(--gray-800); }

/* Checkout: Success + Error */
.success-container,
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 12px 0;
}

.success-icon,
.error-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
}

.success-icon { background: var(--color-success-light); color: var(--color-success); }
.error-icon-circle { background: var(--color-error-light); color: var(--color-error); }

.success-container h3,
.error-container h3 { font-size: 1.2rem; font-weight: 700; color: var(--gray-800); }

.success-container p,
.error-container p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.6; }

.checkout-error-msg { font-size: 0.85rem; color: var(--gray-600); max-width: 300px; }

.checkout-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

/* ============================================================
   18. BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--cor-primaria);
  color: var(--white);
  border: none;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(var(--cor-primaria-rgb), 0.35);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 14px rgba(var(--cor-primaria-rgb), 0.45);
  text-decoration: none;
  color: var(--white);
}

.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; box-shadow: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
  color: var(--cor-primaria);
  border: 1.5px solid var(--cor-primaria);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(var(--cor-primaria-rgb), 0.06);
  text-decoration: none;
  color: var(--cor-primaria);
}

.btn-secondary:active { transform: scale(0.98); }

.btn-copy {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--gray-800);
  color: var(--white);
  border: none;
}

.btn-copy:hover { background: var(--gray-700); }
.btn-copy.copied { background: var(--color-success); }

/* ============================================================
   19. SAAS BANNER
   ============================================================ */
#saas-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%);
  color: var(--white);
  padding: 10px 16px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 -2px 12px rgba(99, 102, 241, 0.3);
}

#saas-banner .saas-text { flex: 1; text-align: center; }

#saas-banner .saas-cta {
  flex-shrink: 0;
  padding: 6px 14px;
  background: var(--white);
  color: #6366f1;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.75rem;
  text-decoration: none;
  white-space: nowrap;
}

#saas-banner .saas-cta:hover { background: #f0f0ff; text-decoration: none; }

/* ============================================================
   20. FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 16px 12px;
  font-size: 0.75rem;
  color: var(--gray-400);
}

.footer a {
  color: var(--gray-500);
  text-decoration: none;
}

.footer a:hover {
  color: var(--cor-primaria);
  text-decoration: underline;
}

.footer p + p { margin-top: 8px; }
.footer-copy { margin-top: 14px; font-size: 0.72rem; color: var(--gray-400); }

.footer-meus-produtos-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: rgba(var(--cor-primaria-rgb), 0.06);
}
.footer-meus-produtos-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
}
.btn-meus-produtos-footer {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 20px;
  border: none;
  background: rgba(var(--cor-primaria-rgb), 0.18);
  color: var(--cor-primaria) !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
}
.btn-meus-produtos-footer:hover {
  background: rgba(var(--cor-primaria-rgb), 0.3);
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* Botão voltar no footer da página meus-produtos */
.btn-voltar-loja-footer {
  display: inline-block;
  margin-top: 6px;
  padding: 11px 28px;
  border-radius: 24px;
  background: var(--cor-primaria);
  color: var(--white) !important;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none !important;
  animation: pulso-voltar 1.8s ease-out infinite;
}
.btn-voltar-loja-footer:hover {
  filter: brightness(1.08);
  text-decoration: none !important;
}

/* Botão voltar no card (após buscar produtos) */
@keyframes pulso-voltar {
  0%   { box-shadow: 0 0 0 0 rgba(var(--cor-primaria-rgb), 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(var(--cor-primaria-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--cor-primaria-rgb), 0); }
}
.btn-voltar-loja {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  padding: 16px 24px !important;
  border-radius: 14px !important;
  transition: filter 0.2s !important;
  animation: pulso-voltar 1.8s ease-out infinite !important;
}

/* ============================================================
   21. MEUS PRODUTOS PAGE
   ============================================================ */
.meus-produtos-page {
  min-height: 100vh;
  padding-bottom: 2rem;
}

.meus-produtos-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem;
}

.meus-produtos-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  border: 2px solid rgba(var(--cor-primaria-rgb), 0.15);
}

.meus-produtos-card-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--gray-100);
  text-align: center;
}

.meus-produtos-card-header h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cor-primaria);
  margin-top: 8px;
}

.meus-produtos-card-header p {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.meus-produtos-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  border: 3px solid rgba(var(--cor-primaria-rgb), 0.2);
}

.meus-produtos-card-logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--cor-primaria-rgb), 0.1), rgba(var(--cor-primaria-rgb), 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 1.5rem;
  color: var(--cor-primaria);
}

.meus-produtos-search-form {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meus-produtos-search-form p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.meus-produtos-loading {
  padding: 48px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--gray-500);
  font-size: 0.85rem;
}

.meus-produtos-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.produto-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.produto-item:hover { background: var(--gray-50); }

.produto-item + .produto-item {
  border-top: 1px solid var(--gray-100);
  border-radius: 0;
}

.produto-item:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }

.produto-item-img-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-100);
}

.produto-item-img { width: 100%; height: 100%; object-fit: cover; }

.produto-item-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--cor-primaria-rgb), 0.1), rgba(var(--cor-primaria-rgb), 0.2));
  font-weight: 700;
  color: var(--cor-primaria);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.produto-item-info { flex: 1; min-width: 0; }

.produto-item-nome {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.produto-item-tipo {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 7px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(var(--cor-primaria-rgb), 0.1);
  color: var(--cor-primaria);
}

.produto-item-data {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 2px;
}

.btn-download {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--cor-primaria);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-download:hover { filter: brightness(1.08); text-decoration: none; color: var(--white); }

.meus-produtos-empty {
  padding: 48px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.meus-produtos-empty-icon { font-size: 3rem; line-height: 1; }
.meus-produtos-empty h3 { font-size: 1rem; font-weight: 700; color: var(--gray-700); }
.meus-produtos-empty p { font-size: 0.85rem; color: var(--gray-500); }

.meus-produtos-card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   22. EMPTY STATE
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  gap: 10px;
}

.empty-state-icon { font-size: 3.5rem; line-height: 1; margin-bottom: 4px; }
.empty-state h3 { font-size: 1rem; font-weight: 700; color: var(--gray-700); }
.empty-state p { font-size: 0.85rem; color: var(--gray-500); }

/* ============================================================
   23. DESKTOP OVERRIDES (≥769px)
   ============================================================ */
@media (min-width: 769px) {
  body {
    max-width: 100%;
    padding-top: 72px;
    padding-bottom: 0;
  }

  .navbar {
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    height: 72px;
    padding: 0 32px;
    border-bottom: 1px solid var(--gray-100);
    border: none;
    box-shadow: var(--shadow-sm);
    gap: 0;
  }

  .navbar-logo { width: 40px; height: 40px; margin-right: 12px; }
  .navbar-name { font-size: 1.4rem; margin-right: auto; }

  .navbar-social {
    gap: 10px;
    margin-left: 0;
    margin-right: 16px;
  }

  .navbar-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
  }

  .navbar-cart {
    display: flex;
    width: auto;
    height: 40px;
    border-radius: 20px;
    padding: 0 16px;
    gap: 6px;
    font-size: 1rem;
  }

  .navbar-cart-label {
    display: inline;
    font-size: 0.9rem;
    font-weight: 600;
  }

  .navbar-offset { padding-top: 72px; }

  .bottom-nav { display: none; }

  .hero {
    border-radius: 0;
    margin: 0;
    width: 100%;
    max-height: 340px;
  }

  .hero-banner { aspect-ratio: auto; max-height: 340px; }
  .hero-gradient { aspect-ratio: auto; max-height: 340px; }
  .hero-gradient-text { font-size: 3rem; }

  .store-header { padding: 32px 24px 12px; }
  .store-header h1 { font-size: 2rem; }

  .categories-section { padding: 16px 24px; max-width: 1280px; margin: 0 auto; }

  #produtos { padding: 12px 24px 60px; max-width: 1280px; margin: 0 auto; }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .product-card {
    background: var(--white);
    backdrop-filter: none;
  }

  .product-info { padding: 12px; gap: 6px; }
  .product-name { font-size: 0.875rem; }
  .product-price { font-size: 1rem; }
  .btn-add-cart { font-size: 0.8rem; padding: 9px; }

  .modal-content {
    max-width: 600px;
    border-radius: var(--radius-xl);
    max-height: 85vh;
  }

  #product-modal { align-items: center; }

  .modal-content {
    transform: scale(0.9) translateY(0);
  }

  #product-modal.active .modal-content {
    transform: scale(1);
  }

  .modal-product-img-wrap { aspect-ratio: 16 / 9; }

  #cart-drawer {
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    width: 380px;
    max-width: none;
    height: 100vh;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    transform: translateX(100%);
  }

  #cart-drawer.active { transform: translateX(0); }

  .cart-drawer-handle { display: none; }

  #checkout-modal { align-items: center; }

  .checkout-modal-content {
    max-width: 480px;
    border-radius: var(--radius-xl);
    max-height: 90vh;
    transform: scale(0.9);
  }

  #checkout-modal.active .checkout-modal-content { transform: scale(1); }

  #cart-fab { display: none !important; }

  .meus-produtos-container { max-width: 600px; padding: 32px 24px; }

  .footer { padding: 24px 16px; font-size: 0.8rem; }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* ============================================================
   24. SCROLLBAR (desktop)
   ============================================================ */
@media (min-width: 769px) {
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
}

/* ============================================================
   25. UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); font-size: 0.85rem; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.w-full { width: 100%; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   26. NOVOS ESTILOS (2026-03)
   ============================================================ */

/* Botão "Comprar" nos cards */
.btn-buy-now {
  width: 100%;
  padding: 7px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: var(--cor-primaria);
  color: var(--white);
  margin-top: auto;
}

.btn-buy-now:hover {
  opacity: 0.88;
}

/* Grupo de botões no modal do produto */
.modal-btn-group {
  display: flex;
  gap: 8px;
}

.modal-btn-group .modal-btn-buy,
.modal-btn-group .modal-btn-cart {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.modal-btn-buy {
  background: var(--cor-primaria);
  color: var(--white);
  border: 2px solid var(--cor-primaria);
}

.modal-btn-buy:hover {
  opacity: 0.88;
}

.modal-btn-cart {
  background: transparent;
  color: var(--cor-primaria);
  border: 2px solid var(--cor-primaria);
}

.modal-btn-cart:hover,
.modal-btn-cart.added {
  background: var(--cor-primaria);
  color: var(--white);
}

.modal-btn-cart.added {
  background: var(--color-success);
  border-color: var(--color-success);
}

/* Botão "Voltar" no modal */
.modal-btn-back {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
  color: var(--gray-500);
  border: 1.5px solid var(--gray-200);
  text-align: center;
}

.modal-btn-back:hover {
  color: var(--gray-700);
  border-color: var(--gray-300);
}

/* Aviso de janela de tempo em /meus-produtos */
.mp-janela-aviso {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #9a3412;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Responsividade mobile — loja */
@media (max-width: 500px) {
  /* Modal não deve ultrapassar a tela */
  .modal-content {
    max-height: 88vh;
  }

  .modal-product-img-wrap {
    aspect-ratio: 4 / 3;
  }

  /* Checkout modal */
  .checkout-modal-content {
    max-height: 92vh;
    overflow-y: auto;
  }

  /* Imagens dos itens no carrinho */
  .cart-item-img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  /* Produto item na grade - evitar overflow */
  .product-card {
    min-width: 0;
  }

  .product-name {
    font-size: 0.72rem;
  }

  .product-price {
    font-size: 0.85rem;
  }

  .btn-buy-now,
  .btn-add-cart {
    font-size: 0.65rem;
    padding: 6px;
  }

  /* Modal produto body padding menor */
  .modal-product-body {
    padding: 12px;
    gap: 8px;
  }

  .modal-product-name {
    font-size: 1rem;
  }

  .modal-product-price {
    font-size: 1.2rem;
  }

  /* Botões do modal em coluna se necessário */
  .modal-btn-group {
    flex-direction: column;
    gap: 6px;
  }

  /* Navbar */
  .navbar-name {
    font-size: 0.9rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Hero */
  .hero-gradient-text {
    font-size: 1.4rem;
  }

  /* Store header */
  .store-header h1 {
    font-size: 1.1rem;
  }
}
