/* PlurionB - temas prontos da página pública (body[data-theme]). Sem data-theme = Padrão, nada muda.
   Cores escolhidas pelo dono (style inline no body) continuam valendo por cima do tema. */
body[data-theme] { --pt-radius: 14px; --pt-radius-lg: 20px; --pt-font: inherit; --pt-font-title: inherit; }

/* Aconchegante (pet) */
body[data-theme="aconchegante"] {
  --public-bg: #fff6ec; --public-surface: #fffaf4; --public-surface-strong: #ffffff;
  --public-text: #3a2a1f; --public-muted: #7a6656; --public-line: rgba(122, 84, 52, .16);
  --public-accent: #e0703a; --public-accent-strong: #b9542a; --public-warm: #f4b860;
  --public-shadow: 0 18px 50px rgba(150, 90, 40, .14);
  --pt-radius: 22px; --pt-radius-lg: 30px;
  --pt-font: "Nunito", system-ui, sans-serif; --pt-font-title: "Poppins", "Nunito", system-ui, sans-serif;
}
/* Elegante (salão) */
body[data-theme="elegante"] {
  --public-bg: #faf8f5; --public-surface: #ffffff; --public-surface-strong: #ffffff;
  --public-text: #1f1b1a; --public-muted: #6f6763; --public-line: rgba(31, 27, 26, .10);
  --public-accent: #8a5a44; --public-accent-strong: #5e3b2c; --public-warm: #c9a37a;
  --public-shadow: 0 10px 40px rgba(31, 27, 26, .07);
  --pt-radius: 6px; --pt-radius-lg: 10px;
  --pt-font: "Inter", system-ui, sans-serif; --pt-font-title: "Playfair Display", Georgia, serif;
}
/* Vitrine (loja) */
body[data-theme="vitrine"] {
  --public-bg: #f4f5f7; --public-surface: #ffffff; --public-surface-strong: #ffffff;
  --public-text: #111827; --public-muted: #5b6474; --public-line: rgba(17, 24, 39, .10);
  --public-accent: #1d4ed8; --public-accent-strong: #1e3a8a; --public-warm: #f59e0b;
  --public-shadow: 0 8px 28px rgba(17, 24, 39, .08);
  --pt-radius: 12px; --pt-radius-lg: 16px;
  --pt-font: "Inter", system-ui, sans-serif; --pt-font-title: "Inter", system-ui, sans-serif;
}

/* Clássico (barbearia): totalmente escuro, grafite + dourado, títulos condensados */
body[data-theme="classico"] {
  --public-bg: #121214; --public-surface: #1c1c1f; --public-surface-strong: #232327;
  --public-text: #f2efe9; --public-muted: #b9b4ab; --public-line: rgba(242, 239, 233, .14);
  --public-accent: #d4b05a; --public-accent-strong: #e6c676; --public-warm: #c8a24a;
  --public-strong: #f2efe9;
  --public-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --pt-radius: 4px; --pt-radius-lg: 6px;
  --pt-font: "Inter", system-ui, sans-serif; --pt-font-title: "Oswald", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

/* Base comum */
body[data-theme] { font-family: var(--pt-font); background: var(--public-bg); color: var(--public-text); }
body[data-theme] h1, body[data-theme] h2, body[data-theme] h3 { font-family: var(--pt-font-title); }
body[data-theme] .service-card, body[data-theme] .public-gallery-card, body[data-theme] .pu-testimonials .pu-testimonial,
body[data-theme] .public-section .public-card { border-radius: var(--pt-radius); }
body[data-theme] .service-card-media, body[data-theme] .service-card-media img, body[data-theme] .public-gallery-card img { border-radius: calc(var(--pt-radius) - 4px); }
body[data-theme] .btn-primary, body[data-theme] .service-card-footer a { border-radius: var(--pt-radius-lg); }

/* Aconchegante: tudo bem redondo e macio */
body[data-theme="aconchegante"] .service-card { border-radius: 26px; box-shadow: var(--public-shadow); }
body[data-theme="aconchegante"] .btn-primary, body[data-theme="aconchegante"] .service-card-footer a, body[data-theme="aconchegante"] .service-badge { border-radius: 999px; }
body[data-theme="aconchegante"] h2 { font-weight: 700; letter-spacing: -.01em; }

/* Elegante: mais respiro, títulos serifados, galeria em destaque */
body[data-theme="elegante"] .public-section { padding-block: clamp(56px, 9vw, 112px); }
body[data-theme="elegante"] h1, body[data-theme="elegante"] h2 { font-weight: 600; letter-spacing: -.005em; }
body[data-theme="elegante"] .section-kicker { letter-spacing: .18em; text-transform: uppercase; font-size: .72rem; }
body[data-theme="elegante"] .service-card { box-shadow: none; border: 1px solid var(--public-line); }
body[data-theme="elegante"] .public-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body[data-theme="elegante"] .public-gallery-card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
body[data-theme="elegante"] .public-gallery-card:first-child { grid-column: 1 / -1; }
body[data-theme="elegante"] .public-gallery-card:first-child img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
@media (min-width: 900px) {
  body[data-theme="elegante"] .public-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-theme="elegante"] .public-gallery-card:first-child { grid-column: span 2; grid-row: span 2; }
  body[data-theme="elegante"] .public-gallery-card:first-child img { aspect-ratio: 1 / 1; height: 100%; }
}

/* Vitrine: grade grande de produtos, preço em destaque */
body[data-theme="vitrine"] .service-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; scroll-snap-type: none; }
body[data-theme="vitrine"] .service-grid > .service-card { width: auto; min-width: 0; max-width: none; flex: none; }
body[data-theme="vitrine"] .service-card-media { width: 100%; }
body[data-theme="vitrine"] .service-card-media img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }
body[data-theme="vitrine"] .service-card h3 { font-size: .98rem; font-weight: 600; }
body[data-theme="vitrine"] .service-card > p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; }
body[data-theme="vitrine"] .service-card-footer strong { font-size: 1.35rem; font-weight: 800; color: var(--public-text); letter-spacing: -.01em; }
@media (min-width: 900px) { body[data-theme="vitrine"] .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 360px) { body[data-theme="vitrine"] .service-card-footer { flex-wrap: wrap; } }

/* Clássico: títulos em caixa alta, detalhes dourados */
body[data-theme="classico"] h1, body[data-theme="classico"] h2 { text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }
body[data-theme="classico"] .section-kicker { color: var(--public-warm); letter-spacing: .18em; text-transform: uppercase; }
body[data-theme="classico"] .service-card { border: 1px solid var(--public-line); box-shadow: none; }
body[data-theme="classico"] .pu-cta-bar .pu-cta-agenda { background: var(--public-warm); color: #121214; }

/* Clássico escuro: superfícies, seções, formulários e rodapé */
body[data-theme="classico"] main, body[data-theme="classico"] section, body[data-theme="classico"] .public-section,
body[data-theme="classico"] .tw-bg-white, body[data-theme="classico"] .tw-bg-public-warm, body[data-theme="classico"] .tw-bg-\[var\(--public-bg\)\] { background-color: var(--public-bg) !important; color: var(--public-text); }
body[data-theme="classico"] section:nth-of-type(even), body[data-theme="classico"] .tw-bg-public-warm { background-color: #18181b !important; }
body[data-theme="classico"] .tw-bg-white\/95, body[data-theme="classico"] header, body[data-theme="classico"] .pu-cta-bar { background-color: rgba(18, 18, 20, .96) !important; color: var(--public-text); }
body[data-theme="classico"] article, body[data-theme="classico"] .service-card, body[data-theme="classico"] .public-card,
body[data-theme="classico"] .trust-panel, body[data-theme="classico"] .public-gallery-card, body[data-theme="classico"] .pu-testimonial,
body[data-theme="classico"] .public-item-details-description, body[data-theme="classico"] .service-choice, body[data-theme="classico"] .service-choice-menu,
body[data-theme="classico"] .whatsapp-widget-panel, body[data-theme="classico"] .appointment-grid form, body[data-theme="classico"] dialog {
  background-color: var(--public-surface) !important; color: var(--public-text); border-color: var(--public-line) !important; }
body[data-theme="classico"] .tw-bg-black\/5 { background-color: rgba(255, 255, 255, .06) !important; }
body[data-theme="classico"] .tw-border-black\/10, body[data-theme="classico"] .tw-border-black\/5 { border-color: var(--public-line) !important; }
body[data-theme="classico"] .tw-text-public-text, body[data-theme="classico"] h1, body[data-theme="classico"] h2, body[data-theme="classico"] h3, body[data-theme="classico"] strong, body[data-theme="classico"] label { color: var(--public-text) !important; }
body[data-theme="classico"] .tw-text-public-muted, body[data-theme="classico"] p { color: var(--public-muted); }
body[data-theme="classico"] .tw-text-public-accent, body[data-theme="classico"] .section-kicker, body[data-theme="classico"] a:not(.btn):not(.pu-btn):not([class*="tw-bg-"]) { color: var(--public-warm) !important; }
body[data-theme="classico"] .tw-bg-public-accent, body[data-theme="classico"] .btn-primary, body[data-theme="classico"] .pu-btn, body[data-theme="classico"] button[type="submit"] {
  background-color: var(--public-warm) !important; color: #121214 !important; border-color: var(--public-warm) !important; }
body[data-theme="classico"] input, body[data-theme="classico"] select, body[data-theme="classico"] textarea {
  background-color: #0e0e10 !important; color: var(--public-text) !important; border: 1px solid rgba(242, 239, 233, .25) !important; }
body[data-theme="classico"] input::placeholder, body[data-theme="classico"] textarea::placeholder { color: #8f8a82; }
body[data-theme="classico"] input:focus, body[data-theme="classico"] select:focus, body[data-theme="classico"] textarea:focus { outline: 2px solid var(--public-warm); outline-offset: 1px; }
body[data-theme="classico"] footer, body[data-theme="classico"] .storefront-footer, body[data-theme="classico"] .storefront-footer-inner { background-color: #0b0b0c !important; color: var(--public-muted) !important; border-color: var(--public-line) !important; }
body[data-theme="classico"] footer a { color: var(--public-warm) !important; }

body[data-theme="classico"] .pu-hours, body[data-theme="classico"] .pu-location-map, body[data-theme="classico"] .pu-location-grid > * { background-color: var(--public-surface) !important; color: var(--public-text) !important; border-color: var(--public-line) !important; }
body[data-theme="classico"] .pu-hours *, body[data-theme="classico"] .pu-location-address { color: var(--public-text) !important; border-color: var(--public-line) !important; }
body[data-theme="classico"] .pu-hours-head, body[data-theme="classico"] .pu-hours-badge { color: var(--public-warm) !important; }
body[data-theme="classico"] .pu-location-actions a, body[data-theme="classico"] .pu-location-actions button { background-color: transparent !important; color: var(--public-warm) !important; border: 1px solid var(--public-warm) !important; }
/* Clássico escuro: o tom de destaque usa o dourado (--public-warm), porque um destaque escuro sumiria no fundo escuro. */
