/* ================================================
   ESSÊNCIA FIT — style.css
   Paleta: Verde oliva #556B2F | Nude rosé #D8A7A0
           Bege quente #D2B48C | Off white #F5F5F5
   ================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --olive:    #556B2F;
  --olive-dk: #3f5022;
  --nude:     #D8A7A0;
  --nude-dk:  #c28f88;
  --beige:    #D2B48C;
  --offwhite: #F5F5F5;
  --white:    #ffffff;
  --text:     #2c2c2c;
  --text-light: #7a7a7a;
  --shadow:   0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --radius:   16px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
  --header-h: 64px;
}

/* ── MODO ESCURO ─────────────────────────────── */
body.dark-mode {
  --olive:      #7da44a;
  --olive-dk:   #5f8238;
  --nude:       #b88880;
  --nude-dk:    #a07068;
  --offwhite:   #1a1a1a;
  --white:      #252525;
  --text:       #e8e8e8;
  --text-light: #9a9a9a;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.55);
  background: #1a1a1a;
  color: #e8e8e8;
}
body.dark-mode .header         { background: rgba(30,30,30,0.96); border-bottom-color: rgba(255,255,255,0.08); }
body.dark-mode .card           { background: #2a2a2a; }
body.dark-mode .card-img-wrap,
body.dark-mode .modal-carousel-img { background: #333; }
body.dark-mode .modal-box      { background: #252525; }
body.dark-mode .mobile-nav     { background: #222; }
body.dark-mode .filter-drawer  { background: #222; }
body.dark-mode .modal-cart     { background: #252525; }
body.dark-mode .cart-item      { background: #2e2e2e; }
body.dark-mode .taxa-admin-row { background: #2e2e2e; }
body.dark-mode .admin-item     { background: #2e2e2e; }
body.dark-mode .form-field input,
body.dark-mode .form-field textarea,
body.dark-mode .form-field select { background: #333; color: #e8e8e8; border-color: rgba(255,255,255,0.15); }
body.dark-mode .btn-ghost      { background: transparent; color: var(--text); border-color: rgba(255,255,255,0.2); }
body.dark-mode .cart-coupon-input { background: #333; color: #e8e8e8; border-color: rgba(255,255,255,0.15); }
body.dark-mode .size-tag,
body.dark-mode .card-size-btn  { background: #333; border-color: rgba(255,255,255,0.15); color: #e8e8e8; }
body.dark-mode .destaque-banner { background: linear-gradient(135deg, #2a2820 0%, #252525 100%); border-color: rgba(243,156,18,0.3); }
body.dark-mode .fdc,
body.dark-mode .fds,
body.dark-mode .filter-chip    { background: #2a2a2a; border-color: rgba(255,255,255,0.12); color: #e8e8e8; }
body.dark-mode .fdc.active,
body.dark-mode .filter-chip.active { background: var(--olive); color: #fff; }
body.dark-mode .sort-select    { background: #2a2a2a; color: #e8e8e8; border-color: rgba(255,255,255,0.15); }
body.dark-mode .banner         { background: linear-gradient(135deg, #1e1e1e 0%, #252525 60%, #1a1a1a 100%); }

/* ── BOTÃO TEMA ─────────────────────────────── */
.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.theme-toggle-btn:hover { background: rgba(85,107,47,0.1); }
body.dark-mode .theme-toggle-btn { color: #c8d8a0; }
body.dark-mode .theme-toggle-btn:hover { background: rgba(255,255,255,0.08); }


html {
  scroll-behavior: smooth;
  background: var(--offwhite);
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background: var(--offwhite);
  color: var(--text);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--olive);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--olive-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(85,107,47,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--olive);
  border: 1.5px solid var(--olive);
}
.btn-ghost:hover {
  background: var(--olive);
  color: var(--white);
}

.btn-nude {
  background: var(--nude);
  color: var(--white);
}
.btn-nude:hover {
  background: var(--nude-dk);
  transform: translateY(-2px);
}

/* ================================================
   HEADER
   ================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245,245,245,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(85,107,47,0.12);
  height: var(--header-h);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--olive);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo em {
  font-style: italic;
  color: var(--nude-dk);
}

/* Search */
.search-wrap {
  flex: 1;
  position: relative;
  max-width: 400px;
  margin-left: auto;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: 50px;
  border: 1.5px solid rgba(85,107,47,0.2);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(85,107,47,0.1);
}
.search-input::placeholder { color: var(--text-light); }

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-light);
  pointer-events: none;
}

/* Menu toggle (mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 1;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--olive);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV — Drawer lateral ── */
.mobile-nav {
  display: none; /* ativado só no mobile via media query */
  position: fixed;
  top: 0; left: 0;
  width: min(300px, 85vw);
  height: 100dvh;
  background: var(--white);
  z-index: 300;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 32px rgba(0,0,0,0.12);
  overflow-y: auto;
  scrollbar-width: none;
}
.mobile-nav::-webkit-scrollbar { display: none; }
.mobile-nav.open { transform: translateX(0); }

/* Overlay escuro */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,0.45);
  z-index: 299;
  opacity: 0;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.mobile-nav-overlay.open { opacity: 1; }

/* Header do drawer */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(85,107,47,0.1);
  flex-shrink: 0;
}
.mobile-nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--olive);
}
.mobile-nav-brand em { font-style: italic; color: var(--nude-dk); }

.mobile-nav-close {
  width: 32px; height: 32px;
  border: none; background: var(--offwhite);
  border-radius: 50%; cursor: pointer;
  font-size: 0.9rem; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.mobile-nav-close:hover { background: var(--nude); color: var(--white); }

/* Body do drawer — links */
.mobile-nav-body { display: flex; flex-direction: column; padding: 8px 0 24px; flex: 1; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border: none;
  background: none;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  border-radius: 0;
}
.mobile-nav-link svg { flex-shrink: 0; opacity: 0.6; }
.mobile-nav-link:hover { background: rgba(85,107,47,0.06); color: var(--olive); }
.mobile-nav-link:hover svg { opacity: 1; }

/* Link WhatsApp — destaque */
.mobile-nav-whatsapp {
  color: #1a8a45 !important;
  font-weight: 600 !important;
  margin-top: 16px;
  border-top: 1px solid rgba(85,107,47,0.1);
}
.mobile-nav-whatsapp svg { fill: #1a8a45 !important; opacity: 1 !important; }
.mobile-nav-whatsapp:hover { background: rgba(26,138,69,0.08) !important; color: #136834 !important; }

/* ================================================
   BANNER
   ================================================ */
.banner {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 24px 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0ece3 0%, var(--offwhite) 60%, #e8dfd6 100%);
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  text-align: center;
}

.banner-tag {
  display: inline-block;
  background: var(--nude);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.banner-title {
  font-size: clamp(2.4rem, 8vw, 4rem);
  line-height: 1.15;
  color: var(--olive);
  margin-bottom: 16px;
}
.banner-title em {
  font-style: italic;
  color: var(--nude-dk);
}

.banner-sub {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 32px;
  font-weight: 300;
}

/* Decorative blobs */
.banner-visual { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.banner-blob {
  position: absolute;
  right: -80px; top: 10%;
  width: 420px; height: 420px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: linear-gradient(135deg, rgba(216,167,160,0.25), rgba(210,180,140,0.2));
  animation: blobFloat 8s ease-in-out infinite;
}

.banner-circle {
  position: absolute;
  left: -60px; bottom: 0;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(85,107,47,0.07);
  animation: blobFloat 6s ease-in-out infinite reverse;
}

@keyframes blobFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ================================================
   CATALOG SECTION
   ================================================ */
.catalog-section {
  padding: 60px 20px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.catalog-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--olive);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 300;
}

/* Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ================================================
   PRODUCT CARD
   ================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  /* Melhora performance de renderização — browser pula cards fora da viewport */
  content-visibility: auto;
  contain-intrinsic-size: 0 420px;   /* altura estimada do card: evita layout shift */
}

/* Image area */
.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #ece8e3;
}

/* ── Carrossel de imagens no card ── */
.card-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.card-carousel-img {
  flex: 0 0 100%;   /* cada foto ocupa 100% da área visível do card */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s cubic-bezier(.25,.46,.45,.94);
}

/* Thumbnail dots */
.card-img-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.img-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
  padding: 0;
}
.img-dot.active {
  background: var(--white);
  transform: scale(1.4);
}

/* Card body */
.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.card-price {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--olive);
}

/* Tags row */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 50px;
  letter-spacing: 0.03em;
}
.tag-size {
  background: rgba(85,107,47,0.1);
  color: var(--olive);
}
.tag-color {
  background: rgba(216,167,160,0.2);
  color: var(--nude-dk);
}

.card-footer {
  margin-top: auto;
  padding-top: 14px;
}

.card-btn {
  width: 100%;
  padding: 11px;
  background: var(--olive);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background var(--transition), transform var(--transition);
}
.card-btn:hover {
  background: var(--olive-dk);
  transform: translateY(-1px);
}

/* empty */
.empty-msg {
  text-align: center;
  color: var(--text-light);
  padding: 60px 20px;
  font-size: 1rem;
}

/* ================================================
   MODALS — BASE
   ================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30,28,26,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 820px;
  max-height: 92svh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--beige) transparent;
}
.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: sticky;
  top: 16px;
  left: calc(100% - 44px);
  float: right;
  width: 34px; height: 34px;
  background: var(--offwhite);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: background var(--transition);
  z-index: 10;
  margin: 12px 12px -12px 0;
}
.modal-close:hover { background: var(--nude); color: var(--white); }

/* ================================================
   MODAL PRODUTO
   ================================================ */
.modal-box {
  display: grid;
  grid-template-columns: 1fr;
}

.modal-gallery {
  padding: 24px 24px 0;
  position: relative;   /* âncora para os dots e para o clip do carrossel */
  overflow: hidden;     /* clipa o track horizontal */
  background: inherit;
}

/* ── Carrossel interno do modal ── */
.modal-carousel-track {
  display: flex;
  width: 100%;
  will-change: transform;
  /* transition definida via JS para permitir drag sem animação */
}
.modal-carousel-img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  object-position: center top;
  background: #f5f0eb;
  border-radius: var(--radius-sm);
  display: block;
}
.modal-img-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.modal-img-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.65);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.modal-img-dot.active {
  background: var(--white);
  transform: scale(1.4);
}
.modal-main-img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  object-position: center top;
  border-radius: var(--radius-sm);
  background: #f5f0eb;
  transform: none;
}
.modal-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.thumb {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}
.thumb.active, .thumb:hover {
  opacity: 1;
  border-color: var(--olive);
}

.modal-info {
  padding: 24px;
  background: inherit;
}
.modal-gallery .card-carousel-arrow {
  opacity: 1;
  pointer-events: auto;
}

/* Modal de imagem em tela cheia */
.image-fullscreen-box {
  width: min(96vw, 1080px);
  height: min(94svh, 940px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.image-fullscreen-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  background: #111;
}
.image-fullscreen-close {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  float: none;
  margin: 0;
  z-index: 12;
}
.image-fullscreen-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 11;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: #222;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .18s, background .18s;
}
.image-fullscreen-arrow:hover { transform: translateY(-50%) scale(1.06); background: #fff; }
.image-fullscreen-prev { left: 12px; }
.image-fullscreen-next { right: 12px; }
.modal-name {
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 6px;
}
.modal-price {
  font-size: 1.3rem;
  color: var(--olive);
  font-weight: 600;
  margin-bottom: 14px;
}
.modal-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.modal-attrs { display: flex; flex-direction: column; gap: 14px; }
.attr-group { display: flex; flex-direction: column; gap: 6px; }
.attr-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-weight: 500;
}
.attr-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ================================================
   MODAL LOGIN
   ================================================ */
.modal-login {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  padding: 40px 36px 36px;
}
.modal-login-title {
  font-size: 1.8rem;
  color: var(--olive);
  text-align: center;
  margin-bottom: 6px;
}
.modal-login-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 28px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-form label span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}
.login-form input {
  padding: 11px 14px;
  border: 1.5px solid rgba(85,107,47,0.2);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.login-form input:focus { border-color: var(--olive); }
.login-error {
  color: #c0392b;
  font-size: 0.82rem;
  min-height: 1rem;
  text-align: center;
}

/* ================================================
   MODAL ADMIN PAINEL
   ================================================ */
.modal-admin {
  max-width: 960px;
  display: block;
  padding: 28px 28px 36px;
}

.admin-title {
  font-size: 1.6rem;
  color: var(--olive);
  margin-bottom: 24px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.admin-form-area h3,
.admin-list-area h3 {
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(85,107,47,0.12);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.form-field span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
}
.form-field input,
.form-field textarea {
  padding: 10px 13px;
  border: 1.5px solid rgba(85,107,47,0.2);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  outline: none;
  resize: vertical;
  transition: border-color var(--transition);
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--olive); }

.admin-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

/* Admin product list */
.admin-product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--beige) transparent;
}

.admin-item {
  background: var(--offwhite);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1.5px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-item:hover {
  border-color: rgba(85,107,47,0.15);
  box-shadow: 0 2px 8px rgba(85,107,47,0.07);
}
.admin-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  flex: 1;
}
.admin-item-price {
  font-size: 0.82rem;
  color: var(--olive);
  white-space: nowrap;
}
.admin-item-actions {
  display: flex;
  gap: 6px;
}
.admin-item-actions button {
  padding: 5px 12px;
  border-radius: 50px;
  border: none;
  font-size: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-edit {
  background: rgba(85,107,47,0.12);
  color: var(--olive);
}
.btn-edit:hover { background: var(--olive); color: var(--white); }
.btn-del {
  background: rgba(192,57,43,0.1);
  color: #c0392b;
}
.btn-del:hover { background: #c0392b; color: var(--white); }

/* ── Linha financeira no card de produto do admin ── */
.admin-item-fin {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(85,107,47,0.09);
}
.admin-item-fin-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 54px;
}
.admin-item-fin-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  font-weight: 700;
}
.admin-item-fin-val {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
}
.admin-item-fin-val.pos     { color: #27ae60; }
.admin-item-fin-val.neg     { color: #c0392b; }
.admin-item-fin-val.neutral { color: var(--text-light); }

/* ================================================
   FOOTER
   ================================================ */
.footer {
  text-align: center;
  padding: 36px 20px 28px;
  border-top: 1px solid rgba(85,107,47,0.1);
  margin-top: 20px;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-top {
  width: min(1060px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
  align-items: start;
}
.footer-col { min-width: 0; }
.footer-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}
.footer-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-light);
  margin: 0;
  white-space: pre-line;
}
.footer-social { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.footer-social-link {
  font-size: 0.82rem;
  color: var(--olive);
  text-decoration: none;
  border-bottom: 1px solid rgba(85,107,47,0.25);
}
.footer-social-link:hover { border-bottom-color: rgba(85,107,47,0.55); }
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--olive);
  margin: 0 0 8px;
}
.footer-brand em { font-style: italic; color: var(--nude-dk); }
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-light);
  margin: 0;
}

/* ================================================
   SCROLLBAR GLOBAL
   ================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--beige); border-radius: 3px; }

/* ================================================
   RESPONSIVE — MOBILE
   ================================================ */
@media (max-width: 700px) {

  /* Header */
  .menu-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .search-wrap { max-width: 100%; }

  /* Banner */
  .banner { padding: calc(var(--header-h) + 32px) 20px 52px; }
  .banner-blob { width: 260px; height: 260px; right: -80px; top: 5%; }
  .banner-circle { width: 180px; height: 180px; }

  /* Logo no banner — visível e centralizada no mobile */
  .banner-logo-wrap {
    justify-content: center;
    margin-bottom: 16px;
  }
  .banner-logo-img {
    max-width: 180px;
    max-height: 72px;
  }

  /* Products grid — 2 colunas compactas */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .card-name { font-size: 0.95rem; }
  .card-price { font-size: 1rem; }
  .card-body { padding: 14px 14px 16px; gap: 6px; }
  .card-btn { font-size: 0.8rem; padding: 10px; }

  /* Modal geral mobile */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-box {
    max-height: 94svh;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;        /* clip lateral; scroll é feito no .modal-info */
  }

  /* Modal produto mobile — galeria compacta + info totalmente rolável */
  .modal-gallery {
    padding: 14px 14px 0;
    flex-shrink: 0;
    max-height: 46svh;       /* imagem nunca engole mais de ~46% da tela */
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .modal-carousel-track {
    flex: 1;
    min-height: 0;           /* permite que o track encolha dentro do flex */
  }
  .modal-carousel-img {
    height: 100%;
    aspect-ratio: auto;      /* sem aspect-ratio fixo: preenche a altura disponível */
    object-fit: contain;
    object-position: center top;
  }
  /* Dots do modal ficam dentro da galeria — já posicionados absolutamente */
  .modal-img-dots { bottom: 8px; }
  .modal-info {
    padding: 14px 14px calc(24px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
  }
  .modal-name { font-size: 1.2rem; }
  .modal-price { font-size: 1.1rem; margin-bottom: 10px; }
  .modal-desc { font-size: 0.85rem; margin-bottom: 14px; }
  .modal-add-cart { padding: 13px; font-size: 0.9rem; margin-top: 16px; }
  .image-fullscreen-box { width: 100vw; height: 100svh; }
  .image-fullscreen-img { border-radius: 0; }
  .image-fullscreen-arrow { width: 34px; height: 34px; }
  .image-fullscreen-prev { left: 8px; }
  .image-fullscreen-next { right: 8px; }

  /* Admin */
  .admin-layout { grid-template-columns: 1fr; }
  .modal-admin { padding: 20px 18px 28px; }
}

@media (min-width: 701px) and (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .modal-box {
    grid-template-columns: 1fr 1fr;
    padding: 0;
    position: relative;  /* âncora para o close button absoluto */
  }
  /* Remove o close do fluxo do grid para não empurrar gallery e info */
  .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    float: none;
    margin: 0;
  }
  .modal-gallery { padding: 24px; }
  .modal-carousel-img { aspect-ratio: 3/4; }
  .modal-info { padding: 24px 24px 24px 0; }
}

@media (min-width: 1025px) {
  .modal-box {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    position: relative;  /* âncora para o close button absoluto */
  }
  /* Remove o close do fluxo do grid → gallery fica na col-1, info na col-2 */
  .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    float: none;
    margin: 0;
  }
  .modal-gallery {
    padding: 28px 0 28px 28px;
    display: flex;
    flex-direction: column;
  }
  .modal-carousel-img { aspect-ratio: 3/4; }
  .modal-info { padding: 28px; }
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}

/* ================================================
   CARRINHO — HEADER BUTTON
   ================================================ */
.cart-btn-header {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
  transition: color var(--transition);
}
.cart-btn-header:hover { color: var(--olive-dk); }

.cart-count {
  position: absolute;
  top: -2px; right: -4px;
  background: var(--nude);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}

/* ================================================
   MODAL CARRINHO
   ================================================ */
.modal-cart {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 0;
  max-height: 90svh;
}

.cart-title {
  font-size: 1.5rem;
  color: var(--olive);
  margin-bottom: 20px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--beige) transparent;
}

.cart-item {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--offwhite);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.cart-item-img {
  width: 64px; height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #ece8e3;
}

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

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

.cart-item-meta {
  font-size: 0.78rem;
  color: var(--text-light);
  margin: 2px 0 6px;
}

.cart-item-price {
  font-size: 0.88rem;
  color: var(--olive);
  font-weight: 600;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(85,107,47,0.25);
  background: var(--white);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--olive);
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--olive); color: var(--white); border-color: var(--olive); }

.qty-num {
  font-size: 0.88rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #c0392b;
  font-size: 1.1rem;
  padding: 4px;
  opacity: 0.6;
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.cart-item-remove:hover { opacity: 1; }

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.cart-footer {
  position: sticky;
  bottom: 0;
  background: var(--white);
  padding: 20px 0 28px;
  border-top: 1px solid rgba(85,107,47,0.1);
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}
.cart-total strong {
  font-size: 1.2rem;
  color: var(--olive);
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: #25D366;
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-whatsapp:hover { background: #1ebe57; transform: translateY(-2px); }

/* ================================================
   MODAL PRODUTO — seleção de tamanho/cor + botão
   ================================================ */
.modal-add-cart {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  font-size: 0.95rem;
}

/* Tamanho selecionável no modal */
.size-tag {
  padding: 6px 14px;
  border-radius: 50px;
  border: 1.5px solid rgba(85,107,47,0.3);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--white);
  color: var(--text);
  transition: all var(--transition);
  user-select: none;
}
.size-tag:hover:not(.out-of-stock) { border-color: var(--olive); color: var(--olive); }
.size-tag.selected { background: var(--olive); color: var(--white); border-color: var(--olive); }
.size-tag.out-of-stock {
  opacity: 0.38;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Cor selecionável no modal */
.color-dot-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  outline: none;
}
.color-dot-btn:hover { transform: scale(1.15); }
.color-dot-btn.selected {
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--olive);
}
.color-dot-btn[title]::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--white);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.color-dot-btn:hover[title]::after { opacity: 1; }

/* ================================================
   ADMIN — Upload de imagens
   ================================================ */
.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed rgba(85,107,47,0.3);
  border-radius: var(--radius-sm);
  padding: 20px;
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.82rem;
  transition: border-color var(--transition), background var(--transition);
  text-align: center;
}
.upload-area:hover {
  border-color: var(--olive);
  background: rgba(85,107,47,0.04);
  color: var(--olive);
}

.upload-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.preview-item {
  position: relative;
  width: 64px; height: 64px;
}
.preview-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid rgba(85,107,47,0.2);
}
.preview-remove {
  position: absolute;
  top: -6px; right: -6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #c0392b;
  color: var(--white);
  border: none;
  font-size: 0.6rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* ================================================
   ADMIN — Tamanhos + Estoque
   ================================================ */
.sizes-stock-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.sizes-stock-row input {
  padding: 8px 10px;
  border: 1.5px solid rgba(85,107,47,0.2);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  outline: none;
}
.sizes-stock-row input:focus { border-color: var(--olive); }

.btn-add-size {
  padding: 8px 14px;
  border-radius: 50px;
  background: var(--olive);
  color: var(--white);
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.btn-add-size:hover { background: var(--olive-dk); }

.sizes-stock-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.size-stock-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(85,107,47,0.1);
  border-radius: 50px;
  padding: 4px 10px 4px 12px;
  font-size: 0.78rem;
  color: var(--olive);
  font-weight: 500;
}
.size-stock-tag button {
  background: none;
  border: none;
  cursor: pointer;
  color: #c0392b;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
  display: flex; align-items: center;
}

/* ================================================
   ADMIN — Paleta de cores
   ================================================ */
.color-picker-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.color-picker-row input[type="text"] {
  padding: 8px 10px;
  border: 1.5px solid rgba(85,107,47,0.2);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  outline: none;
}
.color-picker-row input[type="text"]:focus { border-color: var(--olive); }

.colors-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-preview-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--offwhite);
  border-radius: 50px;
  padding: 4px 10px 4px 6px;
  font-size: 0.78rem;
  color: var(--text);
}
.color-preview-swatch {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.color-preview-item button {
  background: none;
  border: none;
  cursor: pointer;
  color: #c0392b;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
  margin-left: 2px;
}

/* ================================================
   MOBILE — melhorias extras
   ================================================ */
@media (max-width: 700px) {
  /* Header: carrinho visível */
  .cart-btn-header { display: flex; }
  .header-inner { gap: 10px; padding: 0 14px; }

  /* Cards mais compactos */
  .catalog-section { padding: 40px 12px 60px; }
  .products-grid { gap: 10px; }
  .card-body { padding: 11px 11px 12px; gap: 6px; }
  .card-name { font-size: 0.88rem; line-height: 1.2; }
  .card-price { font-size: 0.95rem; }
  .tag { font-size: 0.65rem; padding: 2px 7px; }
  .card-btn { font-size: 0.78rem; padding: 9px 8px; }

  /* Footer mais completo no mobile */
  .footer { padding: 22px 14px 18px; }
  .footer-top { grid-template-columns: 1fr; gap: 10px; text-align: left; }
  .footer-inner { align-items: stretch; gap: 10px; }
  .footer-brand { font-size: 1rem; margin-bottom: 4px; }
  .footer-title { font-size: 0.8rem; margin-bottom: 4px; }
  .footer-text { font-size: 0.78rem; line-height: 1.45; }
  .footer-social { margin-top: 6px; gap: 10px; }
  .footer-social-link { font-size: 0.78rem; }
  .footer-copy { font-size: 0.74rem; }

  /* Modal produto: área de botão add ao carrinho */
  .modal-add-cart { padding: 12px; font-size: 0.9rem; }

  /* Modal carrinho: full bottom sheet */
  .modal-cart { padding: 20px 18px 0; max-width: 100%; }
  .cart-item-img { width: 52px; height: 60px; }
  .cart-item-name { font-size: 0.82rem; }
  .cart-item-meta { font-size: 0.72rem; }

  /* Admin upload row */
  .sizes-stock-row { flex-wrap: wrap; }
  .color-picker-row { flex-wrap: wrap; }
  .admin-form-actions { flex-wrap: wrap; }
  .admin-form-actions .btn { width: 100%; text-align: center; }
}

/* ================================================
   MODAL CHECKOUT (formulário antes do WhatsApp)
   ================================================ */
.modal-checkout {
  max-width: 480px;
  display: block;
  padding: 36px 32px 32px;
}

.checkout-title {
  font-size: 1.6rem;
  color: var(--olive);
  margin-bottom: 4px;
}

.checkout-sub {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.checkout-form { display: flex; flex-direction: column; gap: 0; }

/* Radio group */
.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.radio-option { cursor: pointer; }
.radio-option input[type="radio"] { display: none; }

.radio-box {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 50px;
  border: 1.5px solid rgba(85,107,47,0.25);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
  user-select: none;
}

.radio-option input[type="radio"]:checked + .radio-box {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive);
}

/* CEP row */
.cep-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cep-row input { flex: 1; }
.cep-spinner { font-size: 1rem; }
.cep-msg {
  display: block;
  font-size: 0.75rem;
  margin-top: 4px;
  min-height: 1rem;
}
.cep-msg.ok  { color: var(--olive); }
.cep-msg.err { color: #c0392b; }

/* Taxa info */
.taxa-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(85,107,47,0.07);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 6px;
  margin-bottom: 4px;
}
.taxa-label { font-size: 0.85rem; color: var(--text-light); }
.taxa-valor { font-size: 1rem; color: var(--olive); }
.taxa-aviso {
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 6px;
}

.checkout-error {
  color: #c0392b;
  font-size: 0.82rem;
  min-height: 1rem;
  margin-bottom: 4px;
  text-align: center;
}

.checkout-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 14px;
  font-size: 0.95rem;
}

/* ================================================
   MODAL TAXAS PÚBLICA
   ================================================ */
.modal-taxa {
  max-width: 400px;
  display: block;
  padding: 32px 28px;
}

.taxa-modal-title {
  font-size: 1.5rem;
  color: var(--olive);
  margin-bottom: 4px;
}

.taxa-modal-sub {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.taxa-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 55svh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--beige) transparent;
}

.taxa-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--offwhite);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.taxa-row-bairro { font-weight: 500; color: var(--text); }
.taxa-row-valor  { font-weight: 600; color: var(--olive); }

.taxa-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ================================================
   ADMIN — SEÇÃO DE TAXAS
   ================================================ */
.admin-taxa-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1.5px solid rgba(85,107,47,0.12);
}

.admin-taxa-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.admin-taxa-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-taxa-form .sizes-stock-row { flex-wrap: wrap; }

.admin-taxa-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--beige) transparent;
}

.taxa-admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--offwhite);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
}

.taxa-admin-name { font-weight: 500; flex: 1; }
.taxa-admin-price { color: var(--olive); font-weight: 600; white-space: nowrap; }

.taxa-admin-actions { display: flex; gap: 6px; }
.taxa-admin-actions button {
  padding: 4px 10px;
  border-radius: 50px;
  border: none;
  font-size: 0.72rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background var(--transition);
}

/* ================================================
   PROMOÇÃO — Card badge + preço riscado
   ================================================ */
.card-promo-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(192,57,43,0.35);
}

.card-price-old {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-bottom: -4px;
}

.card-price-promo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #c0392b;
}

/* Modal produto — preço promocional */
.modal-price-old {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-bottom: -8px;
}
.modal-price-promo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #c0392b;
  margin-bottom: 14px;
}

/* Admin — campo promoção */
.promo-field { margin-bottom: 14px; }
.promo-check-label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.promo-check-label input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--olive); cursor: pointer; }
.promo-check-box { font-size: 0.88rem; font-weight: 500; color: var(--text); }
#promoPriceWrap span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
}
#promoPriceWrap input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid rgba(85,107,47,0.2);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  outline: none;
  display: block;
  transition: border-color var(--transition);
}
#promoPriceWrap input:focus { border-color: var(--olive); }

@media (max-width: 700px) {
  .modal-checkout {
    padding: 20px 16px 0;
    display: flex;
    flex-direction: column;
    max-height: 94svh;
    overflow: hidden;
  }
  .checkout-title { font-size: 1.25rem; margin-bottom: 2px; }
  .checkout-sub { font-size: 0.8rem; margin-bottom: 14px; }
  .checkout-form {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
  }
  .checkout-submit-btn {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin: 0 -16px;
    width: calc(100% + 32px);
    border-radius: 0;
    padding: 16px;
    font-size: 0.95rem;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
  }
  .radio-group { flex-direction: column; }
  .radio-box { justify-content: center; }
  .admin-taxa-section { padding-top: 20px; }
}

/* ================================================
   CATALOG CONTROLS — filtros + ordenação
   ================================================ */
.catalog-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

/* ── Agrupamento secundário: tamanho + material (linhas ficam ocultas no mobile) ── */
.catalog-filter-rows {
  margin: 0;
}

@media (min-width: 701px) {
  .catalog-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 20px;
    row-gap: 10px;
    margin-bottom: 16px;
  }
  .filter-chips {
    grid-column: 1;
    grid-row: 1;
    gap: 7px;
  }
  .sort-wrap {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .catalog-filter-rows {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 32px;
    row-gap: 12px;
    margin-bottom: 22px;
    padding-top: 14px;
    border-top: 1px solid rgba(85,107,47,0.1);
  }
  /* Tamanho e material lado a lado quando há espaço; empilham com elegância em telas estreitas */
  .catalog-filter-rows > .size-filter-row {
    flex: 1 1 calc(50% - 16px);
    min-width: min(320px, 100%);
    margin-bottom: 0;
  }

  /* Linha mais compacta / minimalista nos filtros refinados */
  .size-filter-row::before {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    opacity: 0.85;
  }
  .size-filter-chip {
    padding: 5px 12px;
    font-size: 0.76rem;
    border-width: 1px;
  }
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-chip {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid rgba(85,107,47,0.25);
  background: var(--white);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--olive); color: var(--olive); }
.filter-chip.active {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive);
}
.filter-chip-promo { border-color: rgba(192,57,43,0.3); color: #c0392b; }
.filter-chip-promo:hover { border-color: #c0392b; background: rgba(192,57,43,0.06); }
.filter-chip-promo.active { background: #c0392b; color: var(--white); border-color: #c0392b; }

.sort-wrap { flex-shrink: 0; }

/* ── Filtro de tamanho — linha abaixo dos chips de categoria (desktop) ── */
.size-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.size-filter-row::before {
  content: "Tamanho:";
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  white-space: nowrap;
  margin-right: 4px;
}

/* Correção visual: segunda linha é material (classe também no JS target) */
.size-filter-row.material-filter-row::before {
  content: "Material:";
}
.size-filter-chip {
  min-width: 42px;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1.5px solid rgba(85,107,47,0.25);
  background: var(--white);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
}
.size-filter-chip:hover { border-color: var(--olive); color: var(--olive); }
.size-filter-chip.active {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive);
}

/* ── Chips de tamanho dentro do drawer mobile ── */
.fds-size {
  padding: 9px 16px;
  border-radius: 50px;
  border: 1.5px solid rgba(85,107,47,0.25);
  background: var(--white);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  min-width: 52px;
  text-align: center;
}
.fds-size:hover { border-color: var(--olive); color: var(--olive); }
.fds-size.active { background: var(--olive); color: var(--white); border-color: var(--olive); }


.sort-select {
  padding: 8px 14px;
  border-radius: 50px;
  border: 1.5px solid rgba(85,107,47,0.25);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23556B2F' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.sort-select:focus { border-color: var(--olive); }

/* ================================================
   CARD — redesign com altura uniforme + seletores
   ================================================ */

/* Garantir mesma altura em todos os cards */
.products-grid {
  align-items: stretch;
}
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-footer { margin-top: auto; }

/* Selos no card */
.card-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 3;
}
.badge {
  font-size: clamp(0.48rem, 1.8vw, 0.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 50px;
  width: fit-content;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge-promo { background: linear-gradient(135deg,#e74c3c,#c0392b); color:#fff; box-shadow: 0 2px 8px rgba(192,57,43,0.35); }
.badge-novo  { background: linear-gradient(135deg,#27ae60,#1e8449); color:#fff; box-shadow: 0 2px 8px rgba(39,174,96,0.3); }
.badge-esgotado { background: #888; color:#fff; }

/* Card hover — indica clicabilidade + zoom premium na imagem */
.card:not(.card-esgotado) {
  cursor: pointer;
}
.card:not(.card-esgotado):hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
.card:not(.card-esgotado):hover .card-carousel-img {
  transform: scale(1.06);
}
.card-carousel-img {
  transition: transform 0.45s cubic-bezier(.25,.46,.45,.94);
}

/* Card esgotado — overlay premium */
.card.card-esgotado {
  pointer-events: none;
  cursor: not-allowed;
}
.card.card-esgotado .card-buy-btn { background: #aaa; }

/* Overlay escurecido sobre imagem esgotada */
.card-esgotado-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,15,15,0.52);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  border-radius: 0; /* herda do imgWrap */
}
.card-esgotado-label {
  background: rgba(255,255,255,0.95);
  color: #333;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

/* Seletores de tamanho dentro do card */
.card-size-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.card-size-btn {
  padding: 4px 10px;
  border-radius: 50px;
  border: 1.5px solid rgba(85,107,47,0.28);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--white);
  color: var(--text);
  transition: all 0.2s;
  line-height: 1;
}
.card-size-btn:hover:not(.oos) { border-color: var(--olive); color: var(--olive); }
.card-size-btn.selected { background: var(--olive); color: var(--white); border-color: var(--olive); }
.card-size-btn.oos { opacity: 0.32; cursor: not-allowed; text-decoration: line-through; }

/* Seletor de cor dentro do card */
.card-color-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.card-color-btn {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  outline: none;
  padding: 0;
}
.card-color-btn:hover { transform: scale(1.18); }
.card-color-btn.selected {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--olive);
}

/* Label de seleção acima do botão */
.card-selection-hint {
  font-size: 0.7rem;
  color: var(--nude-dk);
  margin-top: 6px;
  min-height: 1rem;
  font-style: italic;
}

/* Botão de compra direto no card */
.card-buy-btn {
  width: 100%;
  padding: 11px;
  background: var(--olive);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background var(--transition), transform var(--transition);
  margin-top: 6px;
}
.card-buy-btn:hover:not(:disabled) { background: var(--olive-dk); transform: translateY(-1px); }
.card-buy-btn:disabled { background: #ccc; cursor: not-allowed; }

/* ================================================
   CARRINHO — melhorias visuais
   ================================================ */
.cart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 28px 0;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 2;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(85,107,47,0.08);
  margin-bottom: 4px;
}

/* Ajuste: remover padding do modal-cart geral, pois agora o header-row tem seu próprio */
.modal-cart {
  padding: 0 !important;
}

.cart-title { margin-bottom: 2px; font-size: 1.4rem; }

.cart-item-count {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* Itens com padding lateral */
.cart-items { padding: 0 28px; }

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}
.cart-empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.cart-continue-empty {
  margin-top: 16px;
  padding: 10px 24px;
  font-size: 0.85rem;
}

.cart-footer {
  position: sticky;
  bottom: 0;
  background: var(--white);
  padding: 16px 28px 28px;
  border-top: 1px solid rgba(85,107,47,0.1);
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-total-label { font-size: 0.85rem; color: var(--text-light); }
.cart-total-value { font-size: 1.3rem; color: var(--olive); font-weight: 700; }

.cart-footer-btns {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cart-continue-btn {
  font-size: 0.8rem;
  padding: 10px 16px;
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-whatsapp { flex: 1; }

/* ================================================
   ADMIN — selos, categoria
   ================================================ */
.selos-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.form-select {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid rgba(85,107,47,0.2);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  outline: none;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  appearance: none;
  transition: border-color var(--transition);
}
.form-select:focus { border-color: var(--olive); }

/* ================================================
   BOTÃO FILTRAR (mobile) + DRAWER LATERAL DE FILTROS
   ================================================ */
.filter-drawer-btn {
  display: none; /* aparece só no mobile */
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 50px;
  border: 1.5px solid rgba(85,107,47,0.3);
  background: var(--white);
  color: var(--olive);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
}
.filter-drawer-btn:hover { background: var(--olive); color: var(--white); border-color: var(--olive); }
.filter-active-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #c0392b;
  position: absolute;
  top: -2px; right: -2px;
}

/* Overlay do drawer de filtros */
.filter-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,0.45);
  z-index: 299;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.filter-drawer-overlay.open { opacity: 1; }

/* Drawer lateral de filtros */
.filter-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 90vw);
  height: 100dvh;
  background: var(--white);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 32px rgba(0,0,0,0.12);
  overflow: hidden;
}
.filter-drawer.open { transform: translateX(0); }

.filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(85,107,47,0.1);
  flex-shrink: 0;
}
.filter-drawer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--olive);
  font-weight: 600;
}
.filter-drawer-close {
  width: 32px; height: 32px;
  border: none; background: var(--offwhite);
  border-radius: 50%; cursor: pointer;
  font-size: 0.9rem; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.filter-drawer-close:hover { background: var(--nude); color: var(--white); }

.filter-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--beige) transparent;
}

.filter-drawer-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 12px;
}

/* Chips dentro do drawer */
.filter-drawer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fdc {
  padding: 9px 18px;
  border-radius: 50px;
  border: 1.5px solid rgba(85,107,47,0.25);
  background: var(--white);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.fdc:hover { border-color: var(--olive); color: var(--olive); }
.fdc.active { background: var(--olive); color: var(--white); border-color: var(--olive); }
.fdc-promo { border-color: rgba(192,57,43,0.3); color: #c0392b; }
.fdc-promo.active { background: #c0392b; color: var(--white); border-color: #c0392b; }

/* Botões de ordenação dentro do drawer */
.filter-drawer-sort {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fds {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(85,107,47,0.15);
  background: var(--white);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
}
.fds:hover { border-color: var(--olive); color: var(--olive); background: rgba(85,107,47,0.04); }
.fds.active { background: rgba(85,107,47,0.08); color: var(--olive); border-color: var(--olive); font-weight: 700; }

.filter-drawer-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid rgba(85,107,47,0.1);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.filter-drawer-reset { flex: 1; padding: 12px; font-size: 0.88rem; }
.filter-drawer-apply { flex: 2; padding: 12px; font-size: 0.88rem; }

/* ================================================
   MOBILE — melhorias gerais (adicionais)
   ================================================ */
@media (max-width: 700px) {
  /* Mostrar menu toggle e nav lateral */
  .menu-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .mobile-nav-overlay { display: block; }

  /* Ocultar chips desktop, mostrar botão filtrar */
  .filter-chips { display: none; }
  .sort-wrap { display: none; }
  .size-filter-row { display: none !important; }   /* tamanho vai no drawer no mobile */
  .filter-drawer-btn { display: flex; }

  /* Manter catalog-controls limpo */
  .catalog-controls {
    flex-direction: row;
    gap: 10px;
    margin-bottom: 16px;
    align-items: center;
    flex-wrap: nowrap;
  }

  /* Drawer de filtros visível no mobile */
  .filter-drawer-overlay.open { display: block; }

  /* Carrinho mobile — correção completa */
  .modal-cart {
    display: flex !important;
    flex-direction: column !important;
    height: 94svh;
    max-height: 94svh;
    overflow: hidden !important;
  }
  .cart-header-row {
    padding: 16px 16px 12px;
    flex-shrink: 0;
  }
  .cart-items {
    padding: 0 16px;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
  }
  .cart-empty {
    padding: 28px 16px;
    flex: 1 1 auto;
  }
  .cart-footer {
    padding: 12px 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
    position: relative !important;
    bottom: auto !important;
    flex-shrink: 0;
    margin-top: 0;
    border-top: 1px solid rgba(85,107,47,0.1);
    gap: 10px;
  }
  .cart-total-value { font-size: 1.1rem; }
  .cart-footer-btns {
    flex-direction: column;
    gap: 8px;
  }
  .cart-continue-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 0.85rem;
    order: 2;
  }
  .btn-whatsapp {
    width: 100%;
    flex: none;
    padding: 14px;
    font-size: 0.9rem;
    order: 1;
  }

  /* Card seletores mobile — botões maiores para touch */
  .card-size-btn { padding: 6px 12px; font-size: 0.75rem; }
  .card-color-btn { width: 26px; height: 26px; }
  .card-buy-btn { padding: 13px; font-size: 0.85rem; }
}

/* ================================================
   BOTÃO VOLTAR AO TOPO — apenas mobile
   ================================================ */
.back-to-top {
  display: none; /* aparece só no mobile via media query */
  position: fixed;
  bottom: 24px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--olive);
  color: var(--white);
  cursor: pointer;
  z-index: 150;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(85,107,47,0.35);

  /* Aparece/desaparece suavemente */
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:active { background: var(--olive-dk); transform: scale(0.93); }

/* Animação da seta — sobe levemente em loop */
.back-to-top svg {
  animation: arrowBounce 1.8s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-2px); }
}

@media (max-width: 700px) {
  .back-to-top { display: flex; }
}

/* ================================================
   BOTÃO FLUTUANTE WHATSAPP
   ================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 149;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: waBounceIn 0.6s cubic-bezier(.175,.885,.32,1.275) both;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}
@keyframes waBounceIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* ================================================
   TOAST NOTIFICATIONS
   ================================================ */
.toast-container {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: min(360px, 92vw);
}

.toast {
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
  animation: toastIn 0.26s ease-out both;
  pointer-events: all;
  line-height: 1.4;
}
.toast.hiding {
  animation: toastOut 0.28s ease forwards;
}
.toast-success {
  background: var(--olive);
  color: #fff;
}
.toast-error {
  background: #c0392b;
  color: #fff;
}
.toast-info {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid rgba(85,107,47,0.2);
}
.toast-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

/* ================================================
   SKELETON LOADING
   ================================================ */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

@media (max-width: 700px) {
  .skeleton-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (min-width: 1025px) {
  .skeleton-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}

.skeleton-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.skeleton-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: #e8e4df;
  position: relative;
  overflow: hidden;
}

.skeleton-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line {
  height: 14px;
  border-radius: 7px;
  background: #e8e4df;
  position: relative;
  overflow: hidden;
}
.skeleton-line.short { width: 55%; }
.skeleton-line.btn   { height: 38px; border-radius: 50px; margin-top: 4px; }

/* Shimmer */
.skeleton-img::after,
.skeleton-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.35) 50%,
    transparent 100%
  );
  animation: shimmer 1.75s ease-in-out infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* ================================================
   ANIMAÇÃO DE ENTRADA DOS CARDS
   ================================================ */
@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card-animate {
  animation: cardFadeUp 0.36s ease both;
}

/* ================================================
   CORREÇÃO 5 — BOTÃO PAGAR COM LINK
   ================================================ */
.btn-pay-link {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  background: transparent;
  border: 1.5px dashed var(--olive);
  color: var(--olive);
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: block;
  text-align: center;
  letter-spacing: 0.02em;
}
.btn-pay-link:hover {
  background: rgba(85,107,47,0.07);
  border-style: solid;
}

/* ================================================
   CORREÇÃO 1 — SELOS MOBILE RESPONSIVOS
   ================================================ */
@media (max-width: 420px) {
  .badge {
    font-size: 0.44rem !important;
    padding: 2px 6px !important;
    letter-spacing: 0.04em;
    max-width: 74px;
  }
  .card-badges {
    top: 7px;
    left: 7px;
    gap: 3px;
  }
}

/* ================================================
   CORREÇÃO 6 — ADMIN FILTROS (reutiliza estilos de taxa)
   ================================================ */
#adminFiltroList .taxa-admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: var(--offwhite);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}
#adminFiltroList .taxa-admin-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ================================================
   CORREÇÃO 2 — CHECKOUT MOBILE: scroll suave e botão visível
   ================================================ */
@media (max-width: 480px) {
  .modal-checkout .checkout-form {
    padding-bottom: 72px; /* espaço para o botão sticky */
  }
  .checkout-submit-btn {
    position: sticky !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 20 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    padding: 16px !important;
  }
  .modal-checkout {
    padding-bottom: 0 !important;
  }
}

/* ================================================
   SIMULADOR DE TAMANHO
   ================================================ */
.modal-sim {
  max-width: 440px;
  padding: 28px 28px 32px;
}
.sim-header { text-align: center; margin-bottom: 24px; }
.sim-icon { font-size: 2.4rem; display: block; margin-bottom: 8px; }
.sim-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--text); margin-bottom: 6px; }
.sim-sub { font-size: 0.84rem; color: var(--text-light); }
.sim-form { display: flex; flex-direction: column; gap: 16px; }
.sim-field { display: flex; flex-direction: column; gap: 8px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); }
.sim-field input { padding: 10px 14px; border: 1.5px solid rgba(85,107,47,0.25); border-radius: var(--radius-sm); font-family: 'DM Sans',sans-serif; font-size: 0.92rem; outline: none; transition: border-color 0.2s; }
.sim-field input:focus { border-color: var(--olive); }
.sim-sizes-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sim-size-btn { padding: 8px 16px; border-radius: 50px; border: 1.5px solid rgba(85,107,47,0.25); background: var(--white); font-family: 'DM Sans',sans-serif; font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.sim-size-btn:hover { border-color: var(--olive); color: var(--olive); }
.sim-size-btn.active { background: var(--olive); color: #fff; border-color: var(--olive); }
.sim-calc-btn { margin-top: 4px; }
.sim-result { margin-top: 24px; border-top: 1px solid rgba(85,107,47,0.15); padding-top: 20px; }
.sim-result-badge { font-size: 1rem; font-weight: 500; color: var(--text); margin-bottom: 14px; padding: 12px 16px; background: rgba(85,107,47,0.08); border-radius: var(--radius-sm); border-left: 3px solid var(--olive); }
.sim-result-badge strong { font-size: 1.2rem; color: var(--olive); }
.sim-result-table { display: flex; flex-direction: column; gap: 4px; }
.sim-result-row { display: flex; justify-content: space-between; padding: 7px 12px; border-radius: 6px; font-size: 0.85rem; }
.sim-result-row span:first-child { font-weight: 700; color: var(--text); }
.sim-result-row span:last-child { color: var(--text-light); }
.sim-result-highlight { background: rgba(85,107,47,0.1); }
.sim-result-highlight span { color: var(--olive) !important; }
.sim-result-hint { font-size: 0.78rem; color: var(--text-light); margin-top: 12px; font-style: italic; }

/* ================================================
   CUPOM NO CARRINHO
   ================================================ */
.cart-coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.cart-coupon-input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid rgba(85,107,47,0.25);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.2s;
}
.cart-coupon-input:focus { border-color: var(--olive); }
.cart-coupon-btn {
  padding: 9px 16px;
  background: var(--olive);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.cart-coupon-btn:hover { background: var(--olive-dk); }
.cart-coupon-feedback { font-size: 0.78rem; min-height: 18px; margin-bottom: 10px; }
.cart-coupon-feedback.ok { color: #2e7d32; font-weight: 600; }
.cart-coupon-feedback.err { color: #c0392b; }

/* ================================================
   CHECKOUT TOTAL PREVIEW
   ================================================ */
.checkout-total-preview {
  background: rgba(85,107,47,0.07);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ctp-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-light);
}
.ctp-total {
  border-top: 1px solid rgba(85,107,47,0.2);
  padding-top: 6px;
  margin-top: 2px;
  color: var(--text);
  font-size: 0.92rem;
}
.ctp-total strong { color: var(--olive); font-size: 1rem; }

/* ================================================
   ESTATÍSTICAS ADMIN
   ================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: rgba(85,107,47,0.07);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num { font-size: 1.6rem; font-weight: 700; color: var(--olive); font-family: 'DM Sans', sans-serif; }
.stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-light); }
.stats-chart-wrap { background: #f5f0eb; border-radius: var(--radius-sm); padding: 12px; margin-bottom: 14px; }
.stats-chart-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-light); margin-bottom: 8px; font-weight: 600; }
#statsChart { width: 100%; display: block; border-radius: 4px; }
.stats-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ================================================
   FLY-TO-CART ANIMATION
   ================================================ */
.cart-btn-header.cart-pulse {
  animation: cartPulse 0.35s ease;
}
@keyframes cartPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ================================================
   ADMIN — REDESIGN PROFISSIONAL
   ================================================ */

/* Header do painel */
.admin-header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(85,107,47,0.12);
}
.admin-header-icon {
  width: 52px; height: 52px;
  background: rgba(85,107,47,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
  flex-shrink: 0;
}
.admin-title { font-size: 1.4rem; color: var(--text); margin: 0 0 4px; }

/* Status badge */
.admin-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(0,0,0,0.05);
  color: var(--text-light);
}
.admin-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #aaa;
  display: inline-block;
}
.admin-status-badge.online  { background: rgba(39,174,96,0.12); color: #1e8449; }
.admin-status-badge.online  .admin-status-dot { background: #27ae60; box-shadow: 0 0 0 3px rgba(39,174,96,0.25); }
.admin-status-badge.offline { background: rgba(192,57,43,0.1); color: #c0392b; }
.admin-status-badge.offline .admin-status-dot { background: #c0392b; }

/* Inputs modernos no admin */
.form-field input,
.form-field textarea,
.form-field select {
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(85,107,47,0.1);
  outline: none;
}

/* ================================================
   DESTAQUE DE PRODUTO
   ================================================ */
.badge-destaque {
  background: linear-gradient(135deg, #f39c12, #d68910);
  color: #fff;
  box-shadow: 0 2px 8px rgba(243,156,18,0.4);
}

.destaque-banner {
  margin-bottom: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(85,107,47,0.18);
  border: 2px solid rgba(243,156,18,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.destaque-banner:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(85,107,47,0.22); }
.destaque-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: linear-gradient(135deg, #fdf8f0 0%, #f9f5ee 100%);
}
@media (max-width: 600px) { .destaque-inner { grid-template-columns: 1fr; } }
.destaque-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #ece8e3;
}
.destaque-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.destaque-label {
  position: absolute; top: 10px; left: 10px;
  background: linear-gradient(135deg, #f39c12, #d68910);
  color: #fff;
  font-size: 0.7rem; font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.destaque-info {
  padding: 24px 28px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.destaque-nome  { font-family: 'Playfair Display',serif; font-size: 1.4rem; color: var(--text); }
.destaque-desc  { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }
.destaque-preco { font-size: 1.3rem; font-weight: 700; color: var(--olive); }
.destaque-btn   { align-self: flex-start; margin-top: 6px; }

/* ================================================
   MODAL DE CONFIRMAÇÃO
   ================================================ */
.modal-confirm {
  max-width: 380px;
  padding: 32px 28px 28px;
  text-align: center;
}
.confirm-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.confirm-msg {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 24px;
}
.confirm-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.confirm-btns .btn { flex: 1; max-width: 160px; padding: 11px; }

/* ================================================
   PERSONALIZAÇÃO DE CORES
   ================================================ */
.color-config-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .color-config-grid { grid-template-columns: repeat(2, 1fr); } }
.color-config-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  font-weight: 600;
}
.color-config-picker {
  width: 52px; height: 52px;
  border-radius: 12px;
  border: 2px solid rgba(85,107,47,0.2);
  cursor: pointer;
  padding: 2px;
  background: none;
  transition: border-color 0.2s;
}
.color-config-picker:hover { border-color: var(--olive); }
.color-config-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ================================================
   ADMIN TABS
   ================================================ */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid rgba(85,107,47,0.12);
  padding-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.admin-tab:hover { color: var(--olive); background: rgba(85,107,47,0.04); }
.admin-tab.active {
  color: var(--olive);
  border-bottom-color: var(--olive);
  font-weight: 700;
  background: rgba(85,107,47,0.06);
}

.admin-tab-panel {
  display: none;
  animation: tabFadeIn 0.2s ease;
}
.admin-tab-panel.active { display: block; }

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================
   ADMIN ICON CONFIG
   ================================================ */
.admin-icon-config {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.admin-icon-preview {
  flex-shrink: 0;
}
.admin-icon-fields {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ================================================
   CATALOG LOGO
   ================================================ */
.catalog-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}
.catalog-logo-img {
  max-width: 180px;
  max-height: 72px;
  object-fit: contain;
  display: block;
}

/* ================================================
   VARIAÇÕES ESGOTADAS (cor com X)
   ================================================ */
.card-color-btn.oos-color,
.color-dot-btn.oos-color {
  cursor: not-allowed;
  opacity: 0.45;
  position: relative;
}
/* X diagonal sobre a cor esgotada */
.card-color-btn.oos-color::before,
.card-color-btn.oos-color::after,
.color-dot-btn.oos-color::before,
.color-dot-btn.oos-color::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 70%;
  height: 1.5px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  pointer-events: none;
}
.card-color-btn.oos-color::before,
.color-dot-btn.oos-color::before { transform: rotate(45deg); }
.card-color-btn.oos-color::after,
.color-dot-btn.oos-color::after  { transform: rotate(-45deg); }

/* Tamanhos esgotados já têm .oos — reforçamos com X textual */
.card-size-btn.oos {
  position: relative;
  text-decoration: line-through;
  opacity: 0.45;
  cursor: not-allowed;
}

/* ================================================
   BANNER LOGO (substitui tag "Nova Coleção")
   ================================================ */
.banner-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}
.banner-logo-img {
  max-width: 220px;
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.14));
}

/* ================================================
   ADMIN RESPONSIVO — MOBILE (≤ 700px)
   Todas as regras abaixo aplicam APENAS dentro
   do painel admin em telas pequenas.
   ================================================ */
@media (max-width: 700px) {

  /* ── Modal admin: ocupa tela toda como bottom-sheet ── */
  .modal-admin {
    padding: 16px 14px calc(24px + env(safe-area-inset-bottom, 0px));
    max-height: 97svh;
    border-radius: 20px 20px 0 0;
  }

  /* ── Cabeçalho do admin ── */
  .admin-header-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .admin-title {
    font-size: 1.2rem;
    margin-bottom: 14px;
  }

  /* ── Abas: scroll horizontal, sem quebra ── */
  .admin-tabs {
    gap: 2px;
    margin-bottom: 16px;
    padding-bottom: 2px;
  }
  .admin-tab {
    font-size: 0.72rem;
    padding: 7px 10px;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .admin-tab svg { width: 13px; height: 13px; }

  /* ── Layout admin: form + lista em coluna única ── */
  .admin-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* ── Lista de produtos: altura menor para caber no mobile ── */
  .admin-product-list {
    max-height: 260px;
  }

  /* ── Item de produto: nome e preço em linha, ações abaixo ── */
  .admin-item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }
  .admin-item-name  { font-size: 0.85rem; }
  .admin-item-price { font-size: 0.78rem; }
  .admin-item-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
  }
  .admin-item-actions button {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  /* ── Linha financeira do item: compacta ── */
  .admin-item-fin { gap: 10px; }
  .admin-item-fin-val   { font-size: 0.75rem; }
  .admin-item-fin-label { font-size: 0.58rem; }

  /* ── Formulário: campos de tamanho/estoque e cores ── */
  .sizes-stock-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .sizes-stock-row input { flex: 1 1 calc(50% - 8px); min-width: 80px; }

  /* ── Grade de custos: 2 colunas ── */
  .cost-fields-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* ── KPIs financeiros: 2 colunas ── */
  .fin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .fin-kpi-value { font-size: 0.95rem; }
  .fin-kpi-icon  { font-size: 1.2rem; }

  /* ── Tabela financeira: scroll horizontal ── */
  .fin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .fin-table { min-width: 440px; }

  /* ── Simulador: 2 colunas ── */
  .sim-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sim-result-grid { grid-template-columns: 1fr 1fr; }
  .sim-margem-val { font-size: 1.3rem; }

  /* ── Personalização: fontes em coluna única ── */
  .font-config-grid  { grid-template-columns: 1fr; gap: 14px; }
  .radius-config-row { flex-wrap: wrap; }

  /* ── Formulário de taxa ── */
  #taBairro, #taTaxa {
    width: 100%;
    box-sizing: border-box;
  }
  .taxa-acordeao-nome  { font-size: 0.82rem; }
  .taxa-acordeao-valor { font-size: 0.78rem; }

  /* ── Botões de salvar produto: largura total ── */
  #saveProductBtn, #cancelEditBtn {
    width: 100%;
    justify-content: center;
  }
  .admin-form-actions {
    flex-direction: column;
    gap: 8px;
  }
  .admin-form-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* ── Ações dos botões de filtro e cupom ── */
  .font-config-actions {
    flex-direction: column;
    gap: 8px;
  }
  .font-config-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* ── Controles do histórico ── */
  .hist-controls {
    flex-direction: column;
  }
  .hist-select { width: 100%; }

  /* ── Banner de diagnóstico Firestore ── */
  #firestoreDiagBanner {
    font-size: 0.75rem;
    padding: 10px 12px;
  }
}

/* ================================================================
   ADMIN MOBILE — 100% FUNCIONAL (≤ 700px)
   Somente dentro deste @media — não afeta desktop.
   ================================================================ */
@media (max-width: 700px) {

  /* ── Modal admin ocupa a tela toda ── */
  .modal-admin {
    max-width: 100vw;
    width: 100%;
    max-height: 100svh;
    height: 100svh;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* ── Cabeçalho fixo (não rola) ── */
  .admin-header-bar {
    flex-shrink: 0;
    padding: 14px 16px 0;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }
  .admin-title {
    font-size: 1.1rem;
    margin-bottom: 0;
  }

  /* ── Fechar: canto superior direito ── */
  #adminClose {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
  }

  /* ── Abas: scroll horizontal compacto, sem quebra ── */
  .admin-tabs {
    flex-shrink: 0;
    margin: 10px 0 0;
    padding: 0 12px 0;
    gap: 2px;
    border-bottom-width: 1.5px;
  }
  .admin-tab {
    font-size: 0.7rem;
    padding: 6px 9px;
    gap: 3px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .admin-tab svg { display: none; }   /* remove ícones nas abas — mais espaço para texto */

  /* ── Painéis: área rolável abaixo das abas ── */
  .admin-tab-panel {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 16px 14px calc(24px + env(safe-area-inset-bottom, 0px));
    flex: 1;
  }
  .admin-tab-panel.active {
    display: flex;
    flex-direction: column;
  }

  /* ── Wrapper do conteúdo das abas (se existir) ── */
  .modal-admin > .admin-tabs ~ * {
    overflow-y: auto;
  }

  /* ── Layout: formulário + lista em coluna única ── */
  .admin-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* ── Formulário de produto ── */
  .admin-form-area {
    order: 2;    /* lista de produtos vem primeiro no mobile */
  }
  .admin-list-area {
    order: 1;
  }

  /* ── Lista de produtos ── */
  .admin-product-list {
    max-height: 300px;
  }

  /* ── Item da lista: compacto e organizado ── */
  .admin-item {
    padding: 10px 12px;
    gap: 6px;
  }
  .admin-item > div:first-child {   /* mainRow */
    flex-wrap: wrap;
    gap: 6px;
  }
  .admin-item-name {
    font-size: 0.85rem;
    flex: 1;
    min-width: 0;
  }
  .admin-item-price { font-size: 0.8rem; }
  .admin-item-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
  }
  .admin-item-actions button {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 50px;
  }

  /* ── Linha financeira ── */
  .admin-item-fin {
    gap: 8px;
    padding-top: 6px;
  }
  .admin-item-fin-label { font-size: 0.58rem; }
  .admin-item-fin-val   { font-size: 0.75rem; }

  /* ── Campos de tamanho/estoque ── */
  .sizes-stock-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .sizes-stock-row input { flex: 1; min-width: 80px; }
  #addSizeBtn            { width: 100%; }

  /* ── Cores ── */
  #addColorBtn { width: 100%; }

  /* ── Custos: grade 2 colunas ── */
  .cost-fields-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* ── Painel de cálculo de custos ── */
  .cost-calc-panel { font-size: 0.8rem; }

  /* ── Botões de ação do formulário ── */
  .admin-form-actions {
    flex-direction: column;
    gap: 8px;
  }
  .admin-form-actions .btn,
  #saveProductBtn,
  #cancelEditBtn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* ── Aba Gestão: taxas e filtros ── */
  .admin-taxa-layout  { gap: 10px; }
  .admin-taxa-section { padding: 14px; }

  #taBairro, #taTaxa,
  #filtroLabel, #filtroValue {
    width: 100%;
    box-sizing: border-box;
  }

  /* ── Acordeão de taxas ── */
  .taxa-acordeao-header { padding: 10px 12px; }
  .taxa-acordeao-nome   { font-size: 0.82rem; }
  .taxa-acordeao-valor  { font-size: 0.78rem; }
  .taxa-acordeao-body   { padding: 0 12px 10px; }
  .taxa-acordeao-body .btn-edit,
  .taxa-acordeao-body .btn-del {
    flex: 1;
    text-align: center;
  }

  /* ── Aba Financeiro: KPIs 2 colunas ── */
  .fin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .fin-kpi-card  { padding: 10px 12px; }
  .fin-kpi-value { font-size: 0.95rem; }
  .fin-kpi-icon  { font-size: 1.2rem; }
  .fin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .fin-table { min-width: 440px; }

  /* ── Simulador: 2 colunas ── */
  .sim-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .sim-result-grid { grid-template-columns: 1fr 1fr; }
  .sim-margem-val  { font-size: 1.3rem; }

  /* ── Histórico ── */
  .hist-controls {
    flex-direction: column;
    gap: 8px;
  }
  .hist-select { width: 100%; }

  /* ── Personalização ── */
  .font-config-grid   { grid-template-columns: 1fr; gap: 14px; }
  .font-config-actions { flex-direction: column; gap: 8px; }
  .font-config-actions .btn { width: 100%; text-align: center; }
  .radius-config-row { flex-wrap: wrap; gap: 10px; }
  .radius-slider { width: 100%; }

  /* ── Aba Aparência: pickers ── */
  .color-config-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* ── Aba Cupons ── */
  #saveCupomBtn, #cancelCupomBtn {
    width: 100%;
    justify-content: center;
  }

  /* ── Aba Estatísticas ── */
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* ── Aba Página ── */
  #piSaveBtn, #piResetBtn {
    width: 100%;
    justify-content: center;
  }
  #saveTaxaBtn, #saveFiltroBtn, #saveCupomBtn {
    width: 100%;
    justify-content: center;
  }

  /* ── Diagnóstico ── */
  #firestoreDiagBanner {
    font-size: 0.72rem;
    padding: 10px 12px;
  }
}
/* ════════════════════════════════════════════════════
   ADMIN — REDESIGN VISUAL (melhoria de aparência)
   Nenhum ID ou funcionalidade JS foi alterado.
   ════════════════════════════════════════════════════ */

/* ── Fundo do modal admin: creme suave em vez de branco puro ── */
.modal-admin {
  background: #f7f5f1;
  max-width: 980px;
  padding: 0;
  display: block;
  /* Não alterar overflow — o .modal-box pai já controla o scroll */
}

/* ── Cabeçalho fixo com gradiente no topo ── */
.admin-header-bar {
  background: var(--white);
  padding: 20px 24px 16px;
  border-bottom: 2px solid rgba(85,107,47,0.1);
  margin-bottom: 0;
  border-top: 4px solid var(--olive);
  border-radius: 0;
  /* mantém display:flex do CSS original */
  align-items: center;
}

.admin-header-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(85,107,47,0.15), rgba(85,107,47,0.08));
  border-radius: 12px;
  border: 1.5px solid rgba(85,107,47,0.15);
  color: var(--olive);
}

.admin-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

/* ── Área de abas + conteúdo com scroll ── */
.admin-tabs-and-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/* ── Navegação de abas: faixa branca no topo do conteúdo ── */
.admin-tabs {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0 16px;
  background: var(--white);
  border-bottom: 2px solid rgba(85,107,47,0.1);
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.admin-tab:hover {
  color: var(--olive);
  background: rgba(85,107,47,0.04);
}
.admin-tab.active {
  color: var(--olive);
  border-bottom-color: var(--olive);
  font-weight: 700;
  background: rgba(85,107,47,0.05);
}
.admin-tab svg { opacity: 0.7; }
.admin-tab.active svg { opacity: 1; }

/* ── Painel de conteúdo: padding próprio, scroll herdado do modal-box pai ── */
.admin-tab-panel {
  display: none;
  animation: tabFadeIn 0.18s ease;
}
.admin-tab-panel.active {
  display: block;
  padding: 24px 24px 36px;
}

/* ── Seções como cards brancos ── */
.admin-taxa-section {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(85,107,47,0.1);
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  padding: 20px 22px;
  margin-top: 16px;
  border-top: none; /* anula a borda-top original */
}
.admin-taxa-section:first-child { margin-top: 0; }

/* Remover divisores inline que usam margin-top + border-top ── serão card agora */
.admin-taxa-section[style*="margin-top"] { margin-top: 16px !important; }
.admin-taxa-section[style*="border-top"] { border-top: none !important; }
.admin-taxa-section[style*="padding-top"] { padding-top: 20px !important; }

/* ── Título de seção com accent lateral ── */
.admin-taxa-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 3px solid var(--olive);
  line-height: 1.3;
}

/* ── Layout da aba Produtos: form menor, lista maior ── */
.admin-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
  align-items: start;
}

.admin-form-area,
.admin-list-area {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(85,107,47,0.1);
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  padding: 20px 18px;
  min-width: 0;
}

/* Títulos internos das áreas */
.admin-form-area h3,
.admin-list-area h3 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(85,107,47,0.1);
}

/* ── Labels dos campos: mais destaque ── */
.form-field > span,
.form-field > label > span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 2px;
}

/* ── Inputs mais limpos com fundo levemente off-white ── */
.form-field input,
.form-field textarea,
.form-field select {
  background: #faf9f7;
  border: 1.5px solid rgba(85,107,47,0.18);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.88rem;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  background: var(--white);
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(85,107,47,0.1);
  outline: none;
}

/* ── Painel de cálculo de custo: destaque visual ── */
.cost-calc-panel {
  background: linear-gradient(135deg, rgba(85,107,47,0.06), rgba(85,107,47,0.03));
  border: 1.5px solid rgba(85,107,47,0.15);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 12px;
}
.cost-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 0.84rem;
  color: var(--text-light);
  border-bottom: 1px solid rgba(85,107,47,0.08);
}
.cost-calc-row:last-child { border-bottom: none; padding-bottom: 0; }
.cost-calc-row strong { font-weight: 700; }
.calc-lucro { color: #27ae60; }
.calc-margem { color: var(--olive); }

/* ── Grade de campos de custo ── */
.cost-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.cost-field-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
}
.cost-field-item input {
  padding: 8px 10px !important;
  font-size: 0.84rem !important;
  border-radius: 8px !important;
  background: #faf9f7 !important;
  border: 1.5px solid rgba(85,107,47,0.18) !important;
}
.cost-field-item input:focus {
  background: var(--white) !important;
  border-color: var(--olive) !important;
  box-shadow: 0 0 0 3px rgba(85,107,47,0.1) !important;
}

/* ── Lista de produtos cadastrados ── */
.admin-product-list {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--beige) transparent;
}

.admin-item {
  background: #faf9f7;
  border: 1.5px solid rgba(85,107,47,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  min-width: 0;
}
.admin-item:hover {
  border-color: rgba(85,107,47,0.22);
  box-shadow: 0 2px 12px rgba(85,107,47,0.08);
  background: var(--white);
}

/* Botões da lista de produtos: compactos para não cortar */
.admin-item-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.admin-item-actions button {
  padding: 4px 9px;
  font-size: 0.7rem;
  white-space: nowrap;
}

/* ── KPI cards do Financeiro ── */
.fin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.fin-kpi-card {
  background: var(--white);
  border: 1.5px solid rgba(85,107,47,0.1);
  border-radius: 12px;
  padding: 16px 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.fin-kpi-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.fin-kpi-card.fin-kpi-receita { border-color: rgba(39,174,96,0.3); background: rgba(39,174,96,0.04); }
.fin-kpi-card.fin-kpi-custo   { border-color: rgba(192,57,43,0.25); background: rgba(192,57,43,0.04); }
.fin-kpi-icon { font-size: 1.5rem; flex-shrink: 0; }
.fin-kpi-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fin-kpi-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-light); font-weight: 700; }
.fin-kpi-value { font-size: 1rem; font-weight: 800; color: var(--text); font-family: 'DM Sans', sans-serif; white-space: nowrap; }

/* ── Área do gráfico financeiro ── */
.fin-chart-section {
  background: var(--white);
  border: 1px solid rgba(85,107,47,0.1);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.fin-chart-wrap { background: #faf9f7; border-radius: 8px; padding: 12px; }
.fin-chart-hint { font-size: 0.72rem; color: var(--text-light); margin-top: 8px; font-style: italic; }

/* ── Tabela financeira ── */
.fin-table-section {
  background: var(--white);
  border: 1px solid rgba(85,107,47,0.1);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.fin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.fin-table th {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  padding: 8px 10px;
  text-align: left;
  border-bottom: 2px solid rgba(85,107,47,0.12);
}
.fin-table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(85,107,47,0.07);
  color: var(--text);
}
.fin-table tbody tr:hover td { background: rgba(85,107,47,0.03); }
.fin-table tbody tr:last-child td { border-bottom: none; }

/* ── Simulador de Lucro ── */
.sim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.sim-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sim-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
}
.sim-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(85,107,47,0.18);
  border-radius: 8px;
  background: #faf9f7;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.sim-input-wrap:focus-within {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(85,107,47,0.1);
  background: var(--white);
}
.sim-prefix {
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--olive);
  background: rgba(85,107,47,0.08);
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 1.5px solid rgba(85,107,47,0.12);
  white-space: nowrap;
}
.sim-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 9px 10px !important;
  font-size: 0.88rem !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ── Card de resultado do simulador ── */
.sim-result-card {
  background: linear-gradient(135deg, rgba(85,107,47,0.07), rgba(85,107,47,0.03));
  border: 1.5px solid rgba(85,107,47,0.18);
  border-radius: 12px;
  padding: 20px 22px;
}
.sim-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.sim-result-item { display: flex; flex-direction: column; gap: 4px; }
.sim-result-big { grid-column: span 1; }
.sim-result-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  font-weight: 700;
}
.sim-result-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}
.sim-margem-val { color: var(--olive); font-size: 1.5rem; }

/* Barra de progresso margem */
.sim-bar-track {
  height: 8px;
  background: rgba(85,107,47,0.12);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 12px;
}
.sim-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--olive), #7bab3e);
  border-radius: 50px;
  transition: width 0.4s ease;
  width: 0%;
}
.sim-verdict {
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
}

/* ── Controles do histórico ── */
.hist-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}
.hist-select {
  flex: 1;
  min-width: 200px;
  padding: 9px 12px;
  border: 1.5px solid rgba(85,107,47,0.2);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  background: #faf9f7;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.hist-select:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(85,107,47,0.1);
  background: var(--white);
}
.hist-entradas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--beige) transparent;
}

/* ── Selos (checkboxes) ── */
.selos-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.promo-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(85,107,47,0.15);
  background: #faf9f7;
  transition: border-color 0.18s, background 0.18s;
}
.promo-check-label:has(input:checked) {
  border-color: var(--olive);
  background: rgba(85,107,47,0.07);
}
.promo-check-label:hover {
  border-color: rgba(85,107,47,0.35);
  background: rgba(85,107,47,0.04);
}

/* ── Estatísticas cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--white);
  border: 1.5px solid rgba(85,107,47,0.1);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--olive);
  font-family: 'DM Sans', sans-serif;
  display: block;
}
.stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  font-weight: 700;
  display: block;
  margin-top: 2px;
}
.stats-chart-wrap {
  background: var(--white);
  border: 1px solid rgba(85,107,47,0.1);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.stats-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Config de ícone/logo ── */
.admin-icon-config {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.admin-icon-fields {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Config de fontes ── */
.font-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}
.font-config-item { display: flex; flex-direction: column; gap: 8px; }
.font-config-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}
.font-select {
  padding: 9px 12px;
  border: 1.5px solid rgba(85,107,47,0.18);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  background: #faf9f7;
  outline: none;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.font-select:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(85,107,47,0.1);
  background: var(--white);
}
.font-config-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Slider de radius ── */
.radius-config-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.radius-slider {
  flex: 1;
  accent-color: var(--olive);
  height: 4px;
  cursor: pointer;
}
.radius-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--olive);
  min-width: 36px;
}

/* ── Botões de ação do admin: padronizados ── */
.admin-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(85,107,47,0.08);
}

/* ── Formulário de taxas/filtros/cupons: inputs inline ── */
.sizes-stock-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.sizes-stock-row input,
.sizes-stock-row select {
  padding: 9px 12px;
  border: 1.5px solid rgba(85,107,47,0.18);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  background: #faf9f7;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.sizes-stock-row input:focus,
.sizes-stock-row select:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(85,107,47,0.1);
  background: var(--white);
}
.btn-add-size {
  padding: 9px 16px;
  background: var(--olive);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, transform 0.15s;
}
.btn-add-size:hover { background: var(--olive-dk); transform: translateY(-1px); }
.btn-add-size:active { transform: translateY(0); }

/* ── Color picker row ── */
.color-picker-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.color-picker-row input[type="text"],
.color-picker-row input[type="number"],
.color-picker-row select {
  padding: 8px 10px;
  border: 1.5px solid rgba(85,107,47,0.18);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  background: #faf9f7;
  outline: none;
  transition: border-color 0.18s;
}
.color-picker-row input[type="text"]:focus,
.color-picker-row input[type="number"]:focus,
.color-picker-row select:focus {
  border-color: var(--olive);
  background: var(--white);
}

/* ── Responsive mobile (≤700px) ── */
@media (max-width: 700px) {
  .modal-admin {
    padding: 0;
    border-radius: 20px 20px 0 0;
  }
  .admin-header-bar {
    padding: 16px 14px 12px;
    border-top-width: 3px;
  }
  .admin-tabs { padding: 0 8px; }
  .admin-tab { font-size: 0.7rem; padding: 9px 8px; gap: 4px; }
  .admin-tab svg { width: 12px; height: 12px; }
  .admin-tab-panel.active {
    padding: 14px 12px 28px;
    /* sem max-height aqui — o .modal-box pai já controla */
  }
  .admin-layout { grid-template-columns: 1fr; gap: 12px; }
  .admin-form-area, .admin-list-area { padding: 14px 12px; }
  .cost-fields-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .fin-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sim-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sim-result-grid { grid-template-columns: 1fr 1fr; }
  .sim-result-big { grid-column: 1 / -1; }
  .font-config-grid { grid-template-columns: 1fr; gap: 16px; }
  .admin-taxa-section { padding: 14px 12px; }
  .admin-product-list { max-height: 260px; }
}

@media (max-width: 480px) {
  .sim-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sim-result-grid { grid-template-columns: 1fr; }
  .sim-result-big { grid-column: 1; }
  .fin-kpi-value { font-size: 0.88rem; }
}

/* ═══ ADMIN MOBILE — FIX SCROLL VERTICAL (≤ 700px) ═══ */
@media (max-width: 700px) {
  /* Painel ativo: permite scroll vertical */
  .admin-tab-panel.active {
    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    max-height: 70vh;
  }
}

/* ── Setas de navegação do carrossel de cards ─────────────── */
.card-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.88);
  color: #333;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: background 0.18s, opacity 0.18s, transform 0.18s;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.card:hover .card-carousel-arrow,
.card-carousel-arrow:focus {
  opacity: 1;
  pointer-events: auto;
}
/* Always show on touch devices (mobile) */
@media (hover: none) {
  .card-carousel-arrow {
    opacity: 0.7;
    pointer-events: auto;
    width: 24px;
    height: 24px;
    font-size: 1rem;
    background: rgba(255,255,255,0.55);
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  }
  .card-carousel-arrow:active,
  .card-carousel-arrow:focus {
    opacity: 1;
    background: rgba(255,255,255,0.78);
  }
}
.card-carousel-arrow:hover { background: rgba(255,255,255,1); transform: translateY(-50%) scale(1.08); }
.card-carousel-arrow:active { transform: translateY(-50%) scale(0.95); }
.card-carousel-prev { left: 6px; }
.card-carousel-next { right: 6px; }
.card-carousel-arrow-hidden { opacity: 0 !important; pointer-events: none !important; }
body.dark-mode .card-carousel-arrow { background: rgba(50,50,50,0.9); color: #e8e8e8; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
body.dark-mode .card-carousel-arrow:hover { background: rgba(70,70,70,0.98); }
body.dark-mode #productModal .modal-box {
  background: #252525 !important;
}
body.dark-mode .modal-gallery,
body.dark-mode .modal-info {
  background: #252525;
}
body.dark-mode .image-fullscreen-arrow {
  background: rgba(50,50,50,0.9);
  color: #e8e8e8;
}
body.dark-mode .image-fullscreen-arrow:hover { background: rgba(70,70,70,0.98); }


/* ── Admin product search ─────────────────────────────────── */
.admin-search-wrap {
  margin-bottom: 12px;
}
.admin-search-input {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(85,107,47,0.22);
  background: var(--offwhite);
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-sizing: border-box;
}
.admin-search-input:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(85,107,47,0.12);
}

/* Melhor visibilidade da seção Material no drawer mobile */
#drawerMaterialChips {
  margin-bottom: 70px;
}

/* Produtos admin — UX modernizada (somente aba Produtos) */
#tab-produtos .admin-layout {
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.45fr);
  gap: 14px;
}
#tab-produtos .admin-form-area,
#tab-produtos .admin-list-area {
  border-radius: 14px;
}
#tab-produtos .admin-products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
#tab-produtos .admin-products-toolbar-left {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 0;
}
#tab-produtos .admin-products-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
#tab-produtos .admin-toolbar-select {
  border: 1.5px solid rgba(85,107,47,0.18);
  border-radius: 10px;
  padding: 9px 11px;
  background: #faf9f7;
  color: var(--text);
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
}
#tab-produtos .admin-toolbar-select:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(85,107,47,0.1);
}
#tab-produtos .admin-add-product-btn {
  white-space: nowrap;
  padding: 10px 14px;
  font-size: 0.82rem;
}
#tab-produtos .admin-product-list {
  max-height: 560px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow-y: auto;
}
#tab-produtos .admin-product-card {
  border: 1px solid rgba(85,107,47,0.14);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}
#tab-produtos .admin-product-card-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
#tab-produtos .admin-product-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #f5f0eb;
  border: 1px solid rgba(85,107,47,0.12);
  flex-shrink: 0;
}
#tab-produtos .admin-product-head-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
#tab-produtos .admin-item-name {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.25;
}
#tab-produtos .admin-item-price {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}
#tab-produtos .admin-product-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
#tab-produtos .admin-prod-badge {
  font-size: 0.64rem;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(85,107,47,0.22);
  color: var(--text-light);
  background: #faf9f7;
}
#tab-produtos .admin-prod-badge-highlight {
  color: #a86800;
  border-color: rgba(243,156,18,0.35);
  background: rgba(243,156,18,0.1);
}
#tab-produtos .admin-product-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin: 10px 0;
  font-size: 0.77rem;
  color: var(--text-light);
}
#tab-produtos .admin-product-actions {
  gap: 6px;
}
#tab-produtos .admin-product-actions button {
  font-size: 0.68rem;
  padding: 6px 9px;
}
#tab-produtos .btn-dup {
  border: 1.5px solid rgba(85,107,47,0.28);
  background: rgba(85,107,47,0.06);
  color: var(--olive);
}
#tab-produtos .btn-dup:hover {
  background: var(--olive);
  color: #fff;
}
body.dark-mode .admin-search-input {
  background: #333;
  color: #e8e8e8;
  border-color: rgba(255,255,255,0.15);
}
body.dark-mode #tab-produtos .admin-toolbar-select {
  background: #333;
  color: #e8e8e8;
  border-color: rgba(255,255,255,0.15);
}
body.dark-mode #tab-produtos .admin-product-card {
  background: #2e2e2e;
  border-color: rgba(255,255,255,0.12);
}
body.dark-mode #tab-produtos .admin-prod-badge {
  background: #343434;
  border-color: rgba(255,255,255,0.18);
  color: #cfcfcf;
}
body.dark-mode #tab-produtos .admin-product-meta {
  color: #a8a8a8;
}
body.dark-mode .admin-search-input:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(85,107,47,0.2);
}

@media (max-width: 700px) {
  #tab-produtos .admin-layout {
    grid-template-columns: 1fr;
  }
  #tab-produtos .admin-products-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  #tab-produtos .admin-products-toolbar-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  #tab-produtos #adminProductSearch {
    grid-column: 1 / -1;
  }
  #tab-produtos .admin-products-toolbar-right {
    width: 100%;
  }
  #tab-produtos .admin-add-product-btn {
    width: 100%;
    justify-content: center;
  }
  #tab-produtos .admin-product-list {
    max-height: 55vh;
    grid-template-columns: 1fr;
  }
  #tab-produtos .admin-product-thumb {
    width: 58px;
    height: 58px;
  }
  #tab-produtos .admin-product-actions button {
    flex: 1 1 calc(50% - 6px);
    min-width: 110px;
  }
}


/* ── Dark mode card body fixes ────────────────────────────── */
body.dark-mode .card-name           { color: #e8e8e8; }
body.dark-mode .card-price          { color: var(--olive); }
body.dark-mode .card-price-old      { color: #888; }
body.dark-mode .card-price-promo    { color: #a8d080; }
body.dark-mode .card-selection-hint { color: #999; }
body.dark-mode .card-buy-btn        { background: var(--olive); color: #fff; }
body.dark-mode .card-buy-btn:hover:not(:disabled) { background: var(--olive-dk); }
body.dark-mode .card-buy-btn:disabled { background: #555; color: #888; }
body.dark-mode .card.card-esgotado  { background: #222; }
body.dark-mode .card.card-esgotado .card-name  { color: #888; }
body.dark-mode .card.card-esgotado .card-price { color: #666; }
body.dark-mode .card-esgotado-overlay { background: rgba(0,0,0,0.55); }
body.dark-mode .card-esgotado-label   { color: #bbb; }
body.dark-mode .badge-esgotado { background: #555; }
body.dark-mode .card-size-btn.oos { color: #666; border-color: rgba(255,255,255,0.08); }
body.dark-mode .size-filter-chip  { background: #2a2a2a; color: #ccc; border-color: rgba(255,255,255,0.1); }
body.dark-mode .size-filter-chip.active { background: var(--olive); color: #fff; }
body.dark-mode .img-dot           { background: rgba(255,255,255,0.4); }
body.dark-mode .img-dot.active    { background: #fff; }
body.dark-mode .destaque-nome     { color: #e8e8e8; }
body.dark-mode .destaque-desc     { color: #aaa; }
body.dark-mode .destaque-preco    { color: #a8d080; }