:root {
  --paper: #fff8ef;
  --paper-soft: #f4eadc;
  --surface: #ffffff;
  --ink: #1f4e68;
  --ink-deep: #123547;
  --accent: #c98d59;
  --accent-deep: #aa7041;
  --accent-rose: #e9836d;
  --mint: #2f8d78;
  --text: #2f2a27;
  --muted: #6d655e;
  --line: #dfd0bf;
  --line-strong: #ccb49a;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 8px 16px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Mulish", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(201, 141, 89, 0.15) 0%, transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(31, 78, 104, 0.17) 0%, transparent 35%),
    linear-gradient(180deg, #fffdf9 0%, var(--paper) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(95, 74, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 74, 55, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.top-ribbon {
  background: linear-gradient(90deg, var(--ink-deep), var(--ink));
  color: #ecf8ff;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 16px;
}

.section-kicker,
.hero-kicker,
.banner-kicker,
.card-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "DM Serif Display", "Times New Roman", serif;
  letter-spacing: 0.01em;
  color: var(--ink-deep);
}

p {
  margin: 0;
}

.btn,
.btn-outline,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  contain: layout style paint;
}

.btn {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(170, 112, 65, 0.15);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(170, 112, 65, 0.22);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: rgba(31, 78, 104, 0.12);
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 3000;
  backdrop-filter: blur(4px);
  background: rgba(255, 250, 242, 0.96);
  border-bottom: 1px solid rgba(171, 143, 118, 0.22);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  overflow: visible;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.logo-area img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.logo-area .text h1 {
  font-size: clamp(1.05rem, 1.4vw, 1.32rem);
  color: var(--ink-deep);
  font-weight: 700;
  letter-spacing: -0.3px;
}

.logo-area .text span {
  display: inline-block;
  margin-top: 2px;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.1vw, 22px);
  flex-wrap: wrap;
}

.menu a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-deep);
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.menu a:hover::after {
  transform: scaleX(1);
}

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

.btn-cart-header,
.avatar-btn {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-deep);
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.avatar-btn {
  width: 44px;
  height: 44px;
  padding: 2px;
  border-radius: 999px;
  overflow: hidden;
  justify-content: center;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  background: #f2e7d9;
}

.btn-cart-header:hover,
.avatar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 78, 104, 0.16);
  background: #f9f5f0;
}

.cart-icon {
  width: 20px;
  height: 20px;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  margin-left: 8px;
  padding: 0 6px;
  background: var(--accent-rose);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.avatar-menu {
  position: relative;
  z-index: 3200;
}

/* Botão avatar: logado → foto | deslogado → ícone + "Entrar" */
.avatar-btn {
  width: 44px;
  height: 44px;
  padding: 2px;
  border-radius: 999px;
  overflow: hidden;
  justify-content: center;
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.avatar-btn.nao-logado {
  width: auto;
  padding: 9px 14px;
  border-radius: 999px;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  overflow: visible;
  color: var(--ink-deep);
}
.avatar-btn.nao-logado svg { flex-shrink: 0; }

.avatar-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  z-index: 4000;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  overflow: hidden;
  /* animação */
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  display: block; /* sempre no DOM, animado com opacity */
}
.avatar-dropdown.ativo {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Cabeçalho do dropdown (logado) */
.avatar-dd-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--line);
}
.avatar-dd-foto {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--line);
}
.avatar-dd-info { overflow: hidden; }
.avatar-dd-nome {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.avatar-dd-email {
  font-size: 0.75rem;
  color: var(--ink-soft, #888);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cabeçalho do dropdown (deslogado) */
.avatar-dd-promo {
  padding: 16px 14px 14px;
  border-bottom: 1px solid var(--line);
}
.avatar-dd-promo p {
  font-size: 0.82rem;
  color: var(--ink-soft, #888);
  margin: 0 0 10px;
  line-height: 1.45;
}
.avatar-dd-btn-entrar {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent-rose, #e9836d);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s;
  text-decoration: none;
}
.avatar-dd-btn-entrar:hover { filter: brightness(1.08); }

/* Itens de menu */
.avatar-dd-lista {
  padding: 6px 0;
}
.avatar-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink-deep);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.13s;
}
.avatar-dd-item:hover { background: #f9f2ea; }
.avatar-dd-item svg { flex-shrink: 0; opacity: 0.6; }

/* Sair com cor de perigo */
.avatar-dd-item.sair { color: #dc2626; }
.avatar-dd-item.sair svg { opacity: 0.8; }
.avatar-dd-item.sair:hover { background: #fff1f1; }

.avatar-dd-divider {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}

/* ========== Dropdown inline OAuth (add-*) ========== */
.add-login-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.add-login-header strong {
  display: block;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
}
.add-login-header span {
  font-size: .78rem;
  color: var(--gray);
}
.add-login-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.add-oauth-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
  text-align: left;
}
.add-oauth-btn:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #bbb;
  box-shadow: 0 2px 6px rgba(0,0,0,.07);
}
.add-oauth-btn:disabled {
  cursor: not-allowed;
}
.add-oauth-apple {
  background: #000;
  border-color: #000;
  color: #fff;
}
.add-oauth-apple:hover:not(:disabled) {
  background: #1a1a1a;
  border-color: #1a1a1a;
}
.add-oauth-apple svg { fill: #fff; }
.add-login-status {
  min-height: 18px;
  font-size: .78rem;
  color: #c0392b;
  margin: 0;
  text-align: center;
}

/* Dropdown — estado logado (add-*) */
.add-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--line);
}
.add-foto {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--line);
}
.add-info { min-width: 0; }
.add-nome {
  font-size: .875rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.add-email {
  font-size: .75rem;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.add-lista {
  padding: 6px 0;
  list-style: none;
  margin: 0;
}
.add-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  font-size: .875rem;
  color: var(--dark);
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: background .12s;
  text-align: left;
}
.add-item:hover { background: #f5f5f5; }
.add-item.sair { color: #c0392b; }
.add-item.sair:hover { background: #fff1f1; }
.add-divider {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}

.btn-whatsapp {
  background: var(--mint);
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 141, 120, 0.15);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 78px 0 74px;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(0.5px);
  pointer-events: none;
}

.hero-shape-1 {
  width: 370px;
  height: 370px;
  right: -120px;
  top: -110px;
  background: radial-gradient(circle, rgba(233, 131, 109, 0.35) 0%, rgba(233, 131, 109, 0) 70%);
}

.hero-shape-2 {
  width: 420px;
  height: 420px;
  left: -170px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(31, 78, 104, 0.24) 0%, rgba(31, 78, 104, 0) 72%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
  position: relative;
}

.hero-content h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.08;
  color: var(--ink-deep);
}

.hero-description {
  margin-top: 16px;
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.58;
  color: #4f4842;
  font-weight: 500;
}

.hero-buttons {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-highlights {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-highlights li {
  position: relative;
  padding-left: 27px;
  color: var(--muted);
  font-weight: 700;
}

.hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), #e7c296);
  transform: rotate(12deg);
}

.hero-stack {
  display: grid;
  gap: 14px;
  transform: rotate(-2deg);
}

.paper-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(170, 112, 65, 0.32);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(1px);
  animation: float-card 5.2s ease-in-out infinite;
  will-change: transform;
  contain: layout style paint;
}

.paper-card h3 {
  margin-top: 8px;
  font-size: 1.25rem;
  color: #fffdf9;
  line-height: 1.25;
}

.card-label {
  color: #f3e1cc;
}

.card-1 {
  background: linear-gradient(150deg, #1f4e68, #2d6a89);
}

.card-2 {
  margin-left: 16px;
  background: linear-gradient(150deg, #b97f4d, #d49a68);
  animation-delay: 0.7s;
}

.card-3 {
  margin-left: 34px;
  background: linear-gradient(150deg, #d4745f, #e99784);
  animation-delay: 1.2s;
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

/* ========== Seções da Home ========== */
.collections,
.section-banners-home,
.produtos,
.line-banner,
.video-home,
.sobre {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 26px;
}

.section-head h2,
.produtos-header h2,
.video-copy h2,
.sobre-texto h2,
.line-banner-content h2 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  color: var(--ink-deep);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.collection-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(252, 241, 228, 0.95));
  border: 1px solid rgba(201, 141, 89, 0.34);
  padding: 22px;
  min-height: 190px;
  box-shadow: var(--shadow-card);
  contain: content;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collection-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(170, 112, 65, 0.1);
}

.collection-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(201, 141, 89, 0.18), transparent 45%);
  pointer-events: none;
}

.collection-card h3 {
  position: relative;
  font-size: 1.28rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.2px;
}

.collection-card p {
  position: relative;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 500;
}

.collection-card a {
  position: relative;
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent-deep);
  font-weight: 800;
}

.collection-card a:hover {
  color: var(--ink);
}

.section-banners-home {
  padding-top: 12px;
}

.banners-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-banner {
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  contain: content;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.home-banner h3 {
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.banner-a {
  background: linear-gradient(145deg, #204e67, #2c6d8f);
  color: #f5fbff;
}

.banner-b {
  background: linear-gradient(145deg, #c58a56, #dfaf7d);
  color: #fffaf2;
}

.banner-c {
  background: linear-gradient(145deg, #d97a66, #eba18f);
  color: #fff8f5;
}

.banner-kicker {
  color: rgba(255, 255, 255, 0.82);
}

.home-banner .btn-outline {
  align-self: flex-start;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.66);
  background: transparent;
}

.home-banner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ========== Catálogo ========== */
.produtos {
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.55) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.produtos-shell {
  display: grid;
  gap: 24px;
}

.produtos-header {
  text-align: center;
}

.produtos-header p {
  margin-top: 8px;
  color: var(--muted);
}

.layout-produtos {
  display: grid;
  grid-template-columns: 274px 1fr;
  gap: 22px;
}

.filtro-lateral {
  position: sticky;
  top: 112px;
  align-self: start;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, #f8efe4);
  border: 1px solid rgba(201, 141, 89, 0.28);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.filtro-titulo {
  margin-bottom: 10px;
  font-size: 1.12rem;
  color: var(--ink-deep);
}

.filtros-dinamicos .filtro-titulo {
  margin-top: 18px;
}

.filtro-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.filtro-lista li {
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 8px;
  color: #4f4843;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filtro-lista li:hover {
  background: rgba(31, 78, 104, 0.1);
  color: var(--ink);
}

.filtro-lista li.ativo {
  background: linear-gradient(120deg, rgba(201, 141, 89, 0.24), rgba(201, 141, 89, 0.11));
  color: var(--ink-deep);
  font-weight: 800;
}

.produtos-area {
  min-width: 0;
}

.btn-filtro-mobile {
  display: none;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ink-deep), var(--ink));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 14px;
  margin-bottom: 14px;
  cursor: pointer;
}

.filtro-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(360px, 92vw);
  height: 100vh;
  background: #fff;
  z-index: 1200;
  border-left: 1px solid var(--line);
  box-shadow: -6px 0 16px rgba(0, 0, 0, 0.08);
  transition: right 0.28s ease;
  padding: 22px;
  overflow-y: auto;
}

.filtro-mobile.ativo {
  right: 0;
}

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

.filtro-header h3 {
  font-size: 1.3rem;
  color: var(--ink-deep);
}

.filtro-header button {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  color: var(--ink);
  cursor: pointer;
}

.produtos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.produto {
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 141, 89, 0.22);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  contain: content;
}

.produto:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.produto-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f4efe8;
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.slides img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 1;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(31, 78, 104, 0.3);
}

.dot.active {
  background: var(--ink);
}

.produto h3 {
  margin: 14px 12px 6px;
  font-size: 1.1rem;
  color: var(--ink-deep);
  font-weight: 700;
  letter-spacing: -0.1px;
}

.produto .descricao {
  margin: 0 12px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
  min-height: 42px;
  font-weight: 500;
}

.produto .preco {
  margin: 10px 12px 12px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #344350;
  letter-spacing: -0.3px;
}

.product-buttons-container {
  margin: 0 12px 12px;
}

.btn-carrinho {
  width: calc(100% - 24px);
  padding: 10px 12px;
  border-radius: 999px;
  min-height: 42px;
  font-size: 0.88rem;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.3px;
}

.btn-carrinho:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.cart-quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid var(--accent);
}

.btn-qty-decrease,
.btn-qty-increase {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-qty-decrease:hover,
.btn-qty-increase:hover {
  background: var(--accent-deep);
  transform: scale(1.05);
}

.btn-qty-decrease:active,
.btn-qty-increase:active {
  transform: scale(0.95);
}

.qty-display {
  font-weight: 800;
  color: var(--ink-deep);
  min-width: 24px;
  text-align: center;
  font-size: 0.9rem;
}

.btn-remover {
  background: transparent;
  color: #e97a66;
  border: 0;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
  margin-left: 4px;
}

.btn-remover:hover {
  transform: scale(1.15);
}

.btn-remover:active {
  transform: scale(0.95);
}

/* ========== Carrinho lateral ========== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(390px, 94vw);
  height: 100vh;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -6px 0 16px rgba(0, 0, 0, 0.08);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transition: right 0.24s ease;
}

.cart-sidebar.ativo {
  right: 0;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 31, 42, 0.4);
  z-index: 9999;
  display: none;
}

.cart-overlay.ativo {
  display: block;
}

.cart-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid #ece3d8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-sidebar-header h3 {
  font-size: 1.35rem;
  color: var(--ink-deep);
}

.cart-sidebar-header button {
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  color: var(--ink);
  cursor: pointer;
}

.cart-sidebar-items {
  flex: 1;
  overflow: auto;
  padding: 16px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  margin-bottom: 12px;
  background: #f9f6f1;
}

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

.cart-item-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-deep);
  word-break: break-word;
}

.cart-item-price {
  margin: 6px 0 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cart-btn-decrease,
.cart-btn-increase {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.1s ease, transform 0.1s ease;
}

.cart-btn-decrease:hover,
.cart-btn-increase:hover {
  background: var(--accent-deep);
  transform: scale(1.05);
}

.cart-btn-decrease:active,
.cart-btn-increase:active {
  transform: scale(0.95);
}

.cart-qty {
  font-weight: 800;
  color: var(--ink-deep);
  min-width: 18px;
  text-align: center;
  font-size: 0.85rem;
}

.cart-btn-remove {
  background: transparent;
  color: #e97a66;
  border: 0;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease;
  margin-left: 2px;
}

.cart-btn-remove:hover {
  transform: scale(1.15);
}

.cart-btn-remove:active {
  transform: scale(0.95);
}

.cart-sidebar-footer {
  border-top: 1px solid #ece3d8;
  padding: 16px;
}

.cart-sidebar-footer p {
  margin-bottom: 12px;
  color: var(--muted);
}

.cart-sidebar-footer .btn {
  width: 100%;
}

/* ========== Banner horizontal ========== */
.line-banner {
  padding-top: 22px;
}

.line-banner-content {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(47, 141, 120, 0.34);
  background:
    radial-gradient(circle at 85% 14%, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(140deg, #2f8d78, #3ea68f);
  color: #f5fffc;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.line-banner-content .section-kicker {
  color: rgba(236, 255, 249, 0.78);
}

.line-banner-content h2 {
  margin: 10px 0 8px;
  color: #fff;
}

.line-banner-content p {
  color: rgba(247, 255, 252, 0.9);
}

.line-banner-content .btn {
  color: #16473a;
  background: #fff;
  box-shadow: none;
}

/* ========== Video / inspiração ========== */
.video-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.video-copy p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 60ch;
}

.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(31, 78, 104, 0.24);
  box-shadow: var(--shadow-soft);
  min-height: 320px;
}

.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(17, 34, 48, 0.5));
}

.video-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-deep);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 800;
}

/* ========== Sobre ========== */
.sobre {
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.32) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.sobre-container {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 30px;
}

.sobre-texto .section-kicker {
  color: var(--accent-deep);
}

.sobre-texto p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.68;
  font-weight: 600;
  max-width: 64ch;
}

.beneficios {
  margin-top: 22px;
  display: grid;
  gap: 11px;
}

.beneficio {
  border-radius: 13px;
  border: 1px solid rgba(31, 78, 104, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(253, 247, 240, 0.94));
  padding: 13px 15px;
  color: #4d4640;
  font-size: 0.93rem;
  font-weight: 700;
  box-shadow: 0 8px 14px rgba(20, 38, 54, 0.05);
}

.sobre-imagem {
  min-height: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 141, 89, 0.26);
  box-shadow: var(--shadow-soft);
  background: #fff;
  overflow: hidden;
}

.sobre-imagem img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}

#sobre {
  scroll-margin-top: 110px;
}

/* ========== Produto interno ========== */
.produto-container {
  display: flex;
  gap: 34px;
  align-items: flex-start;
  width: min(1120px, calc(100% - 48px));
  margin: 38px auto;
}

.galeria {
  display: flex;
  gap: 12px;
}

#imagem-principal {
  width: 420px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.miniaturas {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.miniaturas img {
  width: 72px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.miniaturas img:hover,
.miniaturas img.ativa {
  border-color: var(--accent);
}

.info {
  flex: 1;
}

.info h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--ink-deep);
}

.info .preco {
  margin: 14px 0;
  font-size: 1.4rem;
  font-weight: 800;
}

.descricao-longa {
  width: min(1120px, calc(100% - 48px));
  margin: 34px auto 66px;
}

.descricao-longa h2 {
  font-size: 1.8rem;
  color: var(--ink-deep);
  margin-bottom: 12px;
}

/* ========== Footer ========== */
.footer {
  padding: 48px 0 18px;
  background: linear-gradient(170deg, #153a4f, #1f4f68);
  color: #f2f9ff;
}

.footer-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.footer-col h3,
.footer-col h4 {
  font-size: 1.35rem;
}

.footer-col h4 {
  font-size: 1.12rem;
}

.footer-col p,
.footer-col a {
  margin-top: 10px;
  color: rgba(230, 243, 255, 0.88);
  font-weight: 600;
  line-height: 1.5;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  width: min(1180px, calc(100% - 48px));
  margin: 30px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  color: rgba(230, 243, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ========== Legado / compatibilidade ========== */
.banner {
  text-align: center;
  padding: 90px 20px;
  color: #fff;
  background: linear-gradient(rgba(17, 53, 71, 0.7), rgba(17, 53, 71, 0.75));
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.whatsapp {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #25d366;
  color: #fff;
  font-weight: 800;
}

.contato {
  padding: 50px 18px;
  text-align: center;
  background: #205875;
  color: #fff;
}

/* ========== Responsivo ========== */
@media (max-width: 1120px) {
  .collection-grid,
  .banners-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .produtos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .line-banner-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .header-shell {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
  }

  .logo-area {
    justify-content: flex-start;
    min-width: auto;
  }

  .logo-area img {
    width: 50px;
    height: 50px;
  }

  .logo-area .text h1 {
    font-size: 1rem;
  }

  .menu {
    display: none;
  }

  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-stack {
    max-width: 560px;
  }

  .layout-produtos {
    grid-template-columns: 1fr;
  }

  .filtro-lateral {
    display: none;
  }

  .btn-filtro-mobile {
    display: block;
  }

  .video-home-grid,
  .sobre-container {
    grid-template-columns: 1fr;
  }

  .sobre-imagem,
  .sobre-imagem img {
    min-height: 360px;
    object-position: 50% 18%;
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container,
  .footer-container,
  .footer-bottom,
  .produto-container,
  .descricao-longa {
    width: calc(100% - 30px);
  }

  .top-ribbon {
    font-size: 0.82rem;
    padding: 8px 16px;
  }

  .header-shell {
    padding: 10px 0;
  }

  .menu {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .btn-cart-header,
  .avatar-btn {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .cart-count {
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
    padding: 0 4px;
    margin-left: 4px;
  }

  .hero {
    padding: 48px 0;
  }

  .hero-content h2 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
    line-height: 1.2;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-top: 12px;
  }

  .hero-buttons {
    margin-top: 16px;
  }

  .hero-stack {
    margin-top: 8px;
    transform: none;
    gap: 10px;
  }

  .paper-card,
  .card-2,
  .card-3 {
    margin-left: 0;
    padding: 18px;
  }

  .collection-grid,
  .banners-home-grid,
  .produtos-grid,
  .footer-container {
    grid-template-columns: 1fr;
  }

  .produtos-grid {
    gap: 12px;
  }

  .section-head,
  .produtos-header {
    margin-bottom: 18px;
  }

  .section-head h2,
  .produtos-header h2 {
    font-size: 1.6rem;
  }

  .produto-container {
    flex-direction: column;
    gap: 20px;
  }

  .galeria {
    flex-direction: column-reverse;
  }

  .miniaturas {
    flex-direction: row;
    flex-wrap: wrap;
  }

  #imagem-principal {
    width: 100%;
  }

  .footer-col h3,
  .footer-col h4 {
    font-size: 1rem;
  }
}

/* ========== Toast Notifications ========== */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
  max-width: min(380px, calc(100vw - 32px));
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  animation: toastIn 0.3s ease forwards;
  position: relative;
  overflow: hidden;
}

.toast.removing {
  animation: toastOut 0.25s ease forwards;
}

.toast-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.toast-msg {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.toast-close {
  flex-shrink: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
  padding: 0 0 0 6px;
  line-height: 1;
}

.toast-close:hover {
  color: var(--text);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  animation: toastProgress linear forwards;
}

.toast.is-success {
  border-color: #c8e6c9;
  background: #f1f8f1;
}

.toast.is-success .toast-progress {
  background: var(--mint);
}

.toast.is-error {
  border-color: #f5c6c6;
  background: #fdf2f2;
}

.toast.is-error .toast-progress {
  background: var(--accent-rose);
}

.toast.is-info {
  border-color: #c0d8e8;
  background: #f0f6fb;
}

.toast.is-info .toast-progress {
  background: var(--ink);
}

.toast.is-warning {
  border-color: #efe0c0;
  background: #fdf8ef;
}

.toast.is-warning .toast-progress {
  background: var(--accent);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

@media (max-width: 720px) {
  #toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

/* ========== Shipping selector (checkout) ========== */
.frete-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.frete-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fff;
}

.frete-option:hover {
  border-color: var(--accent);
  background: rgba(201, 141, 89, 0.04);
}

.frete-option.selected {
  border-color: var(--accent);
  background: rgba(201, 141, 89, 0.08);
}

.frete-option input[type="radio"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.frete-option-info {
  flex: 1;
  min-width: 0;
}

.frete-option-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-deep);
}

.frete-option-prazo {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

.frete-option-price {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink-deep);
  white-space: nowrap;
}

.frete-option-price.gratis {
  color: var(--mint);
}

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

.frete-badge-gratis {
  background: var(--mint);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.frete-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.frete-loading .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ========== Installments badge ========== */
.parcelas-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mint);
  margin-top: 4px;
}

/* ========== Skeleton loaders ========== */
.skeleton {
  background: linear-gradient(90deg, #f0e8dd 25%, #f8f2ea 50%, #f0e8dd 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  height: 320px;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 14px;
  margin-top: 8px;
  width: 80%;
}

.skeleton-text.short {
  width: 50%;
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== Button spinner ========== */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ========== Inline feedback ========== */
.action-feedback {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 0;
  margin-top: 4px;
  transition: opacity 0.3s;
}

.action-feedback.is-success {
  color: var(--mint);
}

.action-feedback.is-error {
  color: var(--accent-rose);
}

.action-feedback.is-info {
  color: var(--ink);
}

/* ========== Search bar ========== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  max-width: 420px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 141, 89, 0.15);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 14px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text);
}

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

.search-bar button {
  border: none;
  background: var(--accent);
  color: #fff;
  width: 38px;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.search-bar button:hover {
  background: var(--accent-deep);
}

.search-bar button svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 980px) {
  .search-bar {
    max-width: none;
    order: 10;
    flex-basis: 100%;
  }
}

/* ========== Sort control ========== */
.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.sort-control label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.sort-control select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  background: #fff;
  cursor: pointer;
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.pagination button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination button:hover {
  border-color: var(--accent);
  background: rgba(201, 141, 89, 0.06);
}

.pagination button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ========== Empty state ========== */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  color: var(--ink);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.92rem;
  margin-bottom: 16px;
}

/* ========== Quantity selector (product page) ========== */
.qty-selector {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-selector button {
  border: none;
  background: var(--paper-soft);
  color: var(--ink);
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-selector button:hover {
  background: var(--line);
}

.qty-selector input {
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  width: 44px;
  height: 36px;
  text-align: center;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  background: #fff;
}

.qty-selector input::-webkit-inner-spin-button,
.qty-selector input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.estoque-alerta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-rose);
  margin-top: 4px;
}

/* ========== Product tabs ========== */
.produto-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--line);
  margin-top: 24px;
}

.produto-tab-btn {
  border: none;
  background: none;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.produto-tab-btn:hover {
  color: var(--ink);
}

.produto-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.produto-tab-content {
  display: none;
  padding: 16px 0;
}

.produto-tab-content.active {
  display: block;
}

/* ========== Wishlist heart ========== */
.wishlist-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.3rem;
  padding: 6px;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}

.wishlist-btn:hover {
  color: var(--accent-rose);
}

.wishlist-btn.active {
  color: var(--accent-rose);
  animation: heartBounce 0.3s ease;
}

@keyframes heartBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.wishlist-btn-card {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding: 0;
}

/* ========== Share buttons ========== */
.share-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.share-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.share-btn:hover {
  border-color: var(--accent);
  background: rgba(201, 141, 89, 0.04);
}

/* ========== Related products ========== */
.related-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-section h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 720px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== Sticky add-to-cart (mobile) ========== */
.sticky-add-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3100;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  padding: 10px 16px;
  align-items: center;
  gap: 12px;
}

.sticky-add-bar.visible {
  display: flex;
}

.sticky-add-price {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink-deep);
}

.sticky-add-bar .btn {
  flex: 1;
}

/* ========== Product card position relative for wishlist ========== */
.produto {
  position: relative;
}

/* ========== Quantity Selector ========== */
.qty-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.qty-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ========== Product page secondary action buttons ========== */
.btn-secondary-action {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  transition: all 0.2s;
}
.btn-secondary-action:hover {
  background: var(--paper-soft);
  border-color: var(--accent);
}
.btn-secondary-action#btn-wishlist.active {
  background: #fff0f0;
  border-color: #e74c3c;
  color: #e74c3c;
}

/* ========== Frete mini options (product page) ========== */
.frete-option-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.frete-option-mini:last-child {
  border-bottom: none;
}
.frete-price {
  font-weight: 700;
  white-space: nowrap;
}

/* ========== Checkout frete options (radio) ========== */
.frete-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.frete-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface);
}
.frete-option:hover {
  border-color: var(--accent);
}
.frete-option input[type="radio"] {
  accent-color: var(--accent);
  flex-shrink: 0;
}
.frete-option.selected {
  border-color: var(--accent);
  background: rgba(201, 141, 89, 0.06);
}
.frete-option-info {
  flex: 1;
}
.frete-option-name {
  font-weight: 600;
  font-size: 14px;
}
.frete-option-prazo {
  font-size: 12px;
  color: var(--muted);
}
.frete-option-price {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.frete-option-price.gratis {
  color: var(--mint);
  font-weight: 800;
}
.frete-original-price {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 4px;
}
.frete-badge-gratis {
  display: inline-block;
  background: var(--mint);
  color: white;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 6px;
}

/* ========== Smooth Animations ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.produto {
  animation: fadeInUp 0.4s ease both;
}
.produto:nth-child(2) { animation-delay: 0.05s; }
.produto:nth-child(3) { animation-delay: 0.10s; }
.produto:nth-child(4) { animation-delay: 0.15s; }
.produto:nth-child(5) { animation-delay: 0.20s; }
.produto:nth-child(6) { animation-delay: 0.25s; }

.produto:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.btn {
  transition: all 0.25s ease;
}
.btn:active {
  transform: scale(0.97);
}

/* ========== Frete loading spinner ========== */
.frete-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* ========== Responsive refinements ========== */
@media (max-width: 600px) {
  .search-bar input {
    font-size: 14px;
  }
  .sort-control select {
    font-size: 13px;
  }
  .frete-option {
    padding: 8px 10px;
    font-size: 13px;
  }
  .qty-selector {
    margin: 8px 0 !important;
  }
  .produto-actions {
    flex-direction: column;
  }
}

/* ========== Checkout Steps ========== */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 20px 0 24px;
  padding: 0 10px;
}

.checkout-steps .step {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.checkout-steps .step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  background: var(--line);
  color: var(--muted);
  transition: all 0.3s;
  flex-shrink: 0;
}

.checkout-steps .step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.3s;
}

.checkout-steps .step.active .step-num {
  background: var(--accent);
  color: white;
}

.checkout-steps .step.active .step-label {
  color: var(--ink-deep);
}

.checkout-steps .step.done .step-num {
  background: var(--mint);
  color: white;
}

.checkout-steps .step.done .step-label {
  color: var(--mint);
}

.checkout-steps .step-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 8px;
  min-width: 20px;
  transition: background 0.3s;
}

.checkout-steps .step-line.done {
  background: var(--mint);
}

.checkout-step-content {
  animation: fadeIn 0.3s ease;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}

.step-nav .btn {
  min-width: 160px;
}

/* ========== Field Validation ========== */
.field-error {
  display: block;
  font-size: 12px;
  color: #e74c3c;
  min-height: 16px;
  margin-top: 2px;
}

.field-group input.is-invalid,
.field-group select.is-invalid {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.15);
}

.field-group input.is-valid {
  border-color: var(--mint) !important;
}

@media (max-width: 600px) {
  .checkout-steps .step-label {
    display: none;
  }
  .checkout-steps .step-num {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .step-nav {
    flex-direction: column;
  }
  .step-nav .btn {
    width: 100%;
  }
}

/* ========== Product Tabs ========== */
.produto-tabs {
  display: flex;
  border-bottom: 2px solid var(--line);
  gap: 0;
  margin-bottom: 0;
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
  padding: 24px 0;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.specs-grid .spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  grid-column: 1 / -1;
}

.specs-grid .spec-row:nth-child(odd) {
  background: rgba(201, 141, 89, 0.04);
}

.spec-label {
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
}

.spec-value {
  color: var(--text);
  font-size: 13px;
}

@media (max-width: 600px) {
  .produto-tabs {
    overflow-x: auto;
  }
  .tab-btn {
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* ========== Accessibility ========== */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Badge de contagem do carrinho na bottom-nav */
.nav-cart-badge {
  display: none;
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--accent-rose, #e9836d);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  border: 1.5px solid #fff;
  pointer-events: none;
}

/* ========== Mobile Bottom Nav ========== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 6000;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}

.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 12px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  transition: color 0.2s;
}

.bottom-nav-item .nav-icon {
  font-size: 20px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--accent);
}

/* ========== Sticky Header Auto-hide (desktop only) ========== */
.header {
  transition: transform 0.3s ease;
}

.header.header-hidden {
  transform: translateY(-100%);
}

/* ========== Mobile: oculta header e ribbon, exibe bottom-nav ========== */
@media (max-width: 768px) {
  /* 1. Oculta elementos de topo — a bottom-nav substitui a navegação */
  .top-ribbon,
  .header {
    display: none !important;
  }

  /* 2. Corpo com espaço suficiente para a bottom-nav + safe area */
  body {
    padding-top: 0;
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  /* 3. Seções com scroll-margin sem o header fixo */
  #sobre,
  #produtos,
  #colecoes,
  #inicio {
    scroll-margin-top: 12px;
  }

  /* 4. Exibe a bottom-nav */
  .bottom-nav {
    display: block;
  }

  /* 5. Bottom-nav com visual refinado (glass morphism) */
  .bottom-nav {
    background: rgba(255, 252, 247, 0.95);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-top: 1px solid rgba(210, 185, 155, 0.4);
    box-shadow: 0 -1px 0 rgba(0,0,0,0.04), 0 -6px 20px rgba(30,20,10,0.08);
    padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
    height: calc(60px + env(safe-area-inset-bottom));
  }

  .bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    height: 100%;
    padding: 0 4px;
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 14px;
    padding: 4px 6px;
    min-height: 48px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }

  .bottom-nav-item .nav-icon {
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s cubic-bezier(.34,1.56,.64,1);
    display: block;
  }

  .bottom-nav-item.active {
    color: var(--accent-deep, #aa7041);
  }

  .bottom-nav-item.active .nav-icon {
    transform: scale(1.18) translateY(-1px);
  }

  /* Indicador de ativo: pílula acima do ícone */
  .bottom-nav-item.active::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent, #c98d59);
  }

  .bottom-nav-item:active .nav-icon {
    transform: scale(0.88);
  }

  /* 6. Toast notificações acima da bottom-nav */
  #toast-container {
    bottom: calc(68px + env(safe-area-inset-bottom) + 10px);
    right: 12px;
    left: 12px;
    max-width: none;
  }

  /* 7. Barra flutuante de "Adicionar ao carrinho" acima da nav */
  .sticky-add-bar {
    bottom: calc(60px + env(safe-area-inset-bottom));
  }

  /* 8. Hero ocupa bem a tela sem o ribbon+header */
  .hero {
    padding: 32px 0 40px;
  }

  /* 9. Seção de produtos sem topo excessivo */
  .produtos {
    padding-top: 40px;
  }

  /* 10. Container padrão com margens menores */
  .container {
    width: calc(100% - 24px);
  }

  /* 11. Produto interno: menos margens */
  .produto-container,
  .descricao-longa {
    width: calc(100% - 24px);
  }
}

/* ===== Arte com IA ===== */

.arte-ia-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: var(--muted, #999);
  font-size: 13px;
}
.arte-ia-divider::before,
.arte-ia-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line, #e0e0e0);
}

.btn-arte-ia {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md, 8px);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-arte-ia:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-arte-ia:active { transform: translateY(0); }

/* Modal overlay */
.arte-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.arte-modal[hidden] { display: none; }

.arte-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}

.arte-modal-inner {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}

.arte-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted, #777);
  padding: 4px 8px;
  border-radius: 6px;
}
.arte-modal-close:hover { background: var(--line, #eee); color: #333; }

.arte-modal-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1a1a1a;
}
.arte-modal-desc {
  font-size: 13px;
  color: var(--muted, #666);
  margin: 0 0 20px;
}

/* Formulário */
.arte-form { display: flex; flex-direction: column; gap: 14px; }
.arte-form-row { display: flex; flex-direction: column; gap: 5px; }
.arte-form-row label { font-size: 13px; font-weight: 600; color: #333; }
.arte-form-row input,
.arte-form-row select {
  padding: 9px 12px;
  border: 1.5px solid var(--line, #ddd);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.arte-form-row input:focus,
.arte-form-row select:focus { border-color: #7c3aed; }

.btn-arte-gerar {
  padding: 13px;
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.2s;
}
.btn-arte-gerar:hover { opacity: 0.9; }
.btn-arte-gerar:disabled { opacity: 0.55; cursor: not-allowed; }

/* Loading */
.arte-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 0;
  color: var(--muted, #666);
  font-size: 14px;
}
.arte-loading[hidden] { display: none; }
.arte-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: arte-spin 0.9s linear infinite;
}
@keyframes arte-spin { to { transform: rotate(360deg); } }

/* Resultado / Canvas */
.arte-resultado[hidden] { display: none; }
.arte-preview-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 16px 0 0;
}
.arte-canvas {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.arte-safe-zone {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.arte-safe-info {
  font-size: 12px;
  color: var(--muted, #888);
  text-align: center;
  margin: 8px 0 16px;
}

.arte-resultado-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.arte-resultado-acoes button {
  flex: 1;
  min-width: 130px;
  padding: 11px 14px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-arte-baixar  { background: #f3f4f6; color: #1a1a1a; border: 1.5px solid #ddd !important; }
.btn-arte-usar    { background: #22c55e; color: #fff; }
.btn-arte-nova    { background: #f59e0b; color: #fff; }
.btn-arte-nova:disabled { opacity: 0.55; cursor: not-allowed; }
.arte-resultado-acoes button:hover { opacity: 0.88; }

/* Seção de campos específicos do receituário */
.arte-receituario-section {
  background: #faf9f7;
  border: 1.5px solid #e8e0d8;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.arte-receituario-section[hidden] { display: none; }

.arte-receituario-info {
  font-size: 12.5px;
  color: #8a7a6a;
  margin: 0;
  line-height: 1.5;
}

#arte-row-texto[hidden] { display: none; }

/* ========== Gerador de Receituário por Modelos Prontos ========== */

/* Botões lado a lado no bloco de personalização */
.arte-ia-botoes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.arte-ia-botoes > button {
  flex: 1;
  min-width: 140px;
}

/* Botão "Usar Modelo Pronto" */
.btn-arte-modelo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-arte-modelo:hover  { opacity: 0.92; transform: translateY(-1px); }
.btn-arte-modelo:active { transform: translateY(0); }

/* Modal de modelos — inner maior para acomodar layout 2 colunas */
.modelos-modal-inner {
  max-width: 860px !important;
  width: 96vw !important;
}

/* ── Etapa 1: Galeria de thumbnails ── */
.modelos-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.modelos-card {
  background: #fff;
  border: 2px solid var(--line, #ddd);
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  text-align: center;
}
.modelos-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(201, 141, 89, 0.25);
  transform: translateY(-2px);
}
.modelos-card--ativo {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 141, 89, 0.3);
}

.modelos-card-thumb {
  width: 100%;
  aspect-ratio: 210 / 297;
  object-fit: cover;
  border-radius: 8px;
  background: #f0ece6;
  display: block;
}

.modelos-card-nome {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* ── Etapa 2: Header com botão Voltar ── */
.modelos-etapa2-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.modelos-btn-voltar {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.modelos-btn-voltar:hover { background: var(--paper-soft); color: var(--text); }

/* ── Etapa 2: Layout 2 colunas ── */
.modelos-etapa2-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .modelos-etapa2-layout {
    grid-template-columns: 1fr;
  }
  .modelos-preview {
    order: -1;
  }
}

.modelos-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modelos-logo-input {
  padding: 6px 8px;
  border: 1.5px solid var(--line, #ddd);
  border-radius: 8px;
  font-size: 13px;
}

/* ── Etapa 2: Botões de ação ── */
.modelos-acoes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.modelos-btn-usar {
  flex: 1;
  min-width: 120px;
  padding: 11px 14px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.modelos-btn-usar:hover { opacity: 0.88; }

/* ── Preview canvas na etapa 2 ── */
.modelos-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modelos-preview .arte-preview-wrap {
  width: 100%;
  margin: 0;
}
.modelos-preview .arte-canvas {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ── Grupo de tipo de produto (admin) ── */
.tipo-produto-grupo {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tipo-produto-opcao {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 130px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #444;
  background: #fff;
  transition: border-color 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s;
  user-select: none;
}
.tipo-produto-opcao:hover {
  border-color: #aaa;
  background: #f8f8f8;
}
.tipo-produto-opcao.selecionado {
  border-color: #c8720a;
  background: #fff8f0;
  color: #7a3f00;
  box-shadow: 0 0 0 3px #f4c58844;
  font-weight: 600;
}
.tipo-produto-opcao small {
  display: block;
  font-weight: 400;
  font-size: 0.76rem;
  color: #888;
  margin-top: 2px;
}
.tipo-produto-opcao.selecionado small { color: #b86010; }

/* ── Canvas editável ── */
.modelos-canvas-editavel {
  cursor: crosshair;
  touch-action: none;
}
.modelos-canvas-arrastando {
  cursor: grabbing !important;
}

/* ── Cards de campo ── */
.campo-card {
  background: #fff;
  border: 1.5px solid var(--line, #e0e0e0);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.campo-card--ativo {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.campo-card--logo {
  background: #faf9f7;
  border-color: var(--line, #e0e0e0);
}

.campo-card-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.campo-card-label {
  font-size: 12px;
  font-weight: 700;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.campo-card-badge {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
}

.campo-card-input {
  padding: 8px 10px;
  border: 1.5px solid var(--line, #ddd);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.campo-card-input:focus {
  border-color: #2563eb;
}

/* ── Controles de fonte e posição ── */
.campo-card-controles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.campo-ctrl-grupo {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.campo-ctrl-label {
  font-size: 10px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.campo-card-fonte {
  padding: 5px 8px;
  border: 1.5px solid var(--line, #ddd);
  border-radius: 7px;
  font-size: 12px;
  outline: none;
  background: #fff;
  cursor: pointer;
  max-width: 160px;
  transition: border-color 0.2s;
}
.campo-card-fonte:focus { border-color: #2563eb; }

.campo-card-xy {
  width: 56px;
  padding: 5px 7px;
  border: 1.5px solid var(--line, #ddd);
  border-radius: 7px;
  font-size: 12px;
  outline: none;
  text-align: center;
  transition: border-color 0.2s;
}
.campo-card-xy:focus { border-color: #2563eb; }

/* ── Paleta de cores editável pelo cliente ── */
.campo-card--cores {
  background: #fdf8f2;
  border-color: #e8d5a3;
}
.cores-pickers {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 2px;
}
.cor-picker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.cor-picker-label {
  font-size: 10px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}
.cor-picker-input {
  width: 44px;
  height: 36px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
  background: #fff;
  transition: border-color 0.2s;
}
.cor-picker-input:hover { border-color: #c8a020; }
