/* =====================================================================
   CELIDERM - ESTILO BASE PREMIUM
   Identidade visual baseada na logo (azul turquesa, marrom, laranja)
   ===================================================================== */

/* ---------- TOKENS DA MARCA ---------- */
:root {
  --celiderm-blue:        #75bfd0;
  --celiderm-blue-dark:   #4ea3b6;
  --celiderm-blue-soft:   #d6ecf1;
  --celiderm-brown:       #74675d;
  --celiderm-brown-soft:  #ece7e2;
  --celiderm-orange:      #F69322;
  --celiderm-orange-dark: #e47d09;
  --celiderm-dark:        #202328;
  --celiderm-light:       #f8fafb;
  --celiderm-muted:       #6c757d;
  --celiderm-border:      #ecedef;
  --celiderm-white:       #ffffff;

  --shadow-sm:  0 4px 12px rgba(32, 35, 40, .04);
  --shadow-md:  0 10px 30px rgba(32, 35, 40, .08);
  --shadow-lg:  0 20px 50px rgba(32, 35, 40, .12);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --font-title: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body:  'Poppins', 'Montserrat', 'Lato', system-ui, -apple-system, sans-serif;

  --container-padding: 1.25rem;
  --transition: all .25s ease;
}

/* ---------- RESET / BASE ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--celiderm-dark);
  background-color: var(--celiderm-white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- TIPOGRAFIA ---------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--celiderm-dark);
  letter-spacing: -.01em;
  line-height: 1.25;
}

h1, .h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2, .h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3, .h3 { font-size: clamp(1.3rem, 2.4vw, 1.85rem); }
h4, .h4 { font-size: 1.35rem; }

.subtitulo-secao {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--celiderm-orange);
  margin-bottom: .75rem;
  font-family: var(--font-body);
}

.titulo-secao {
  margin-bottom: .75rem;
}

.titulo-secao + p {
  color: var(--celiderm-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

a { color: var(--celiderm-blue-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--celiderm-orange); }

/* ---------- UTILITÁRIOS DE COR ---------- */
.text-celiderm-blue   { color: var(--celiderm-blue) !important; }
.text-celiderm-brown  { color: var(--celiderm-brown) !important; }
.text-celiderm-orange { color: var(--celiderm-orange) !important; }
.text-celiderm-dark   { color: var(--celiderm-dark) !important; }
.text-celiderm-muted  { color: var(--celiderm-muted) !important; }

.bg-celiderm-blue   { background-color: var(--celiderm-blue) !important; color: #fff; }
.bg-celiderm-brown  { background-color: var(--celiderm-brown) !important; color: #fff; }
.bg-celiderm-orange { background-color: var(--celiderm-orange) !important; color: #fff; }
.bg-celiderm-light  { background-color: var(--celiderm-light) !important; }
.bg-celiderm-dark   { background-color: var(--celiderm-dark) !important; color: #fff; }
.bg-celiderm-soft   { background-color: var(--celiderm-blue-soft) !important; }

/* ---------- BOTÕES ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: .7rem 1.6rem;
  transition: var(--transition);
  border-width: 1.5px;
  letter-spacing: .01em;
}

.btn-sm  { padding: .45rem 1rem;  font-size: .85rem; }
.btn-lg  { padding: .9rem 2rem;   font-size: 1.05rem; }

.btn-primary,
.btn-celiderm {
  background-color: var(--celiderm-orange);
  border-color:    var(--celiderm-orange);
  color: #fff;
}
.btn-primary:hover,
.btn-celiderm:hover {
  background-color: var(--celiderm-orange-dark);
  border-color:    var(--celiderm-orange-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-celiderm {
  background-color: transparent;
  border-color: var(--celiderm-orange);
  color: var(--celiderm-orange);
}
.btn-outline-celiderm:hover {
  background-color: var(--celiderm-orange);
  color: #fff;
  transform: translateY(-2px);
}

.btn-blue {
  background-color: var(--celiderm-blue);
  border-color:    var(--celiderm-blue);
  color: #fff;
}
.btn-blue:hover {
  background-color: var(--celiderm-blue-dark);
  border-color:    var(--celiderm-blue-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--celiderm-dark);
  border-color: var(--celiderm-dark);
  color: #fff;
}

.btn-whatsapp {
  background-color: #25d366;
  border-color: #25d366;
  color: #fff;
}
.btn-whatsapp:hover {
  background-color: #1ebe57;
  border-color: #1ebe57;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, .3);
}

.btn i { vertical-align: -.1em; }

/* ---------- HEADER / NAVBAR ---------- */
.topbar {
  background-color: var(--celiderm-dark);
  color: #d8dadc;
  font-size: .85rem;
  padding: .55rem 0;
}
.topbar a { color: #d8dadc; }
.topbar a:hover { color: var(--celiderm-orange); }

.navbar-celiderm {
  background-color: #fff;
  box-shadow: var(--shadow-sm);
  padding: .9rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-celiderm .navbar-brand img {
  height: 56px;
  width: auto;
}

.navbar-celiderm .nav-link {
  color: var(--celiderm-dark);
  font-weight: 500;
  padding: .5rem 1rem !important;
  position: relative;
  transition: var(--transition);
}
.navbar-celiderm .nav-link:hover,
.navbar-celiderm .nav-link.active {
  color: var(--celiderm-orange);
}
.navbar-celiderm .nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--celiderm-orange);
  transition: var(--transition);
  transform: translateX(-50%);
}
.navbar-celiderm .nav-link:hover::after,
.navbar-celiderm .nav-link.active::after {
  width: 24px;
}

.icone-acao {
  color: var(--celiderm-dark);
  font-size: 1.25rem;
  position: relative;
  transition: var(--transition);
  padding: .35rem .55rem;
  display: inline-block;
}
.icone-acao:hover { color: var(--celiderm-orange); }
.icone-acao .badge {
  position: absolute;
  top: -4px;
  right: -2px;
  background: var(--celiderm-orange);
  font-size: .65rem;
  padding: .25em .5em;
  border-radius: var(--radius-pill);
}

/* ---------- HERO / BANNER ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--celiderm-blue-soft) 0%, #fff 65%);
  padding: 5rem 0;
  overflow: hidden;
}
.hero h1 { color: var(--celiderm-dark); }
.hero .lead {
  color: var(--celiderm-brown);
  font-size: 1.15rem;
  max-width: 540px;
}
.hero .hero-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 360px;
  height: 360px;
  background: var(--celiderm-blue);
  opacity: .12;
  border-radius: 50%;
  z-index: 0;
}
/* Quando o hero tem imagem de fundo, oculta o círculo decorativo */
.hero.hero-bg::before { display: none; }

/* Hero com imagem de fundo (index.php) */
.hero.hero-bg {
  background-size: cover;
  background-position: center right;   /* mantém o lado direito visível (rosto da modelo) */
  background-repeat: no-repeat;
  min-height: 560px;                   /* altura mínima desktop */
  display: flex;
  align-items: center;
  padding: 4rem 0;
}
.hero.hero-bg .hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 992px) {
  .hero.hero-bg {
    min-height: 480px;
    background-position: center center;
  }
  .hero.hero-bg .hero-overlay {
    background: transparent;
  }
}
@media (max-width: 576px) {
  .hero.hero-bg { min-height: 420px; }
}

.hero > .container { position: relative; z-index: 1; }

/* ---------- SEÇÕES ---------- */
section {
  padding: 4.5rem 0;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3rem;
}

/* ---------- CARDS DE PRODUTO ---------- */
.card-produto {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--celiderm-border);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card-produto:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-produto .badge-promo {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--celiderm-orange);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 600;
  padding: .35em .85em;
  z-index: 2;
  letter-spacing: .03em;
}
.card-produto .img-wrap {
  background: var(--celiderm-light);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
}
.card-produto .img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}
.card-produto:hover .img-wrap img {
  transform: scale(1.05);
}
.card-produto .card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-produto .categoria {
  color: var(--celiderm-blue-dark);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 600;
  margin-bottom: .35rem;
}
.card-produto .nome-produto {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--celiderm-dark);
  margin-bottom: .5rem;
  line-height: 1.4;
  min-height: 2.6em;
}
.card-produto .estrelas {
  color: var(--celiderm-orange);
  font-size: .85rem;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}
.card-produto .precos {
  margin-top: auto;
  margin-bottom: 1rem;
}
.card-produto .preco-antigo {
  color: var(--celiderm-muted);
  text-decoration: line-through;
  font-size: .85rem;
  margin-right: .5rem;
}
.card-produto .preco-final {
  color: var(--celiderm-dark);
  font-weight: 700;
  font-size: 1.25rem;
}
.card-produto .acoes-produto {
  display: flex;
  gap: .5rem;
}
.card-produto .acoes-produto .btn {
  flex: 1;
  padding: .55rem .9rem;
  font-size: .85rem;
}

/* ---------- CARDS DE TRATAMENTO ---------- */
.card-tratamento {
  background: #fff;
  border: 1px solid var(--celiderm-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card-tratamento:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-tratamento .icone {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--celiderm-blue-soft);
  color: var(--celiderm-blue-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.card-tratamento:hover .icone {
  background: var(--celiderm-orange);
  color: #fff;
  transform: scale(1.05);
}
.card-tratamento h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--celiderm-dark);
}
.card-tratamento p {
  color: var(--celiderm-muted);
  font-size: .92rem;
  margin-bottom: 1rem;
}
.card-tratamento .saiba-mais {
  color: var(--celiderm-orange);
  font-weight: 600;
  font-size: .88rem;
}
.card-tratamento .saiba-mais i {
  transition: var(--transition);
}
.card-tratamento:hover .saiba-mais i {
  transform: translateX(4px);
}
/* Card como link (slider) */
a.card-tratamento { color: inherit; }
a.card-tratamento:hover { color: inherit; }

/* Imagem e título clicáveis nos cards de listagem de procedimentos */
a.link-procedimento {
  color: inherit;
  text-decoration: none;
  transition: color .25s ease;
}
a.link-procedimento:hover {
  color: var(--celiderm-orange);
}
a.capa-procedimento img {
  transition: transform .35s ease;
}
a.capa-procedimento:hover img {
  transform: scale(1.05);
}

/* Capa do procedimento (imagem principal em escala menor, no lugar do ícone) */
.card-tratamento .capa {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  background: var(--celiderm-blue-soft);
  color: var(--celiderm-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 6px 18px rgba(57, 122, 158, 0.15);
  transition: var(--transition);
}
.card-tratamento .capa img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}
.card-tratamento:hover .capa {
  transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(231, 142, 71, 0.25);
}
.card-tratamento:hover .capa img {
  transform: scale(1.08);
}

/* ---------- SLIDER DE TRATAMENTOS ---------- */
.tratamentos-slider {
  position: relative;
  padding: 0 56px;
}
.tslider-viewport {
  overflow: hidden;
  border-radius: var(--radius-md);
}
.tslider-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.tslider-item {
  flex: 0 0 25%;
  padding: .5rem .75rem;
  box-sizing: border-box;
}
.tslider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--celiderm-dark);
  box-shadow: var(--shadow-md);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.tslider-btn:hover {
  background: var(--celiderm-orange);
  color: #fff;
  transform: translateY(-50%) scale(1.07);
}
.tslider-prev { left: 0; }
.tslider-next { right: 0; }
.tslider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}
.tslider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--celiderm-border);
  cursor: pointer;
  transition: var(--transition);
}
.tslider-dot.active {
  background: var(--celiderm-orange);
  transform: scale(1.25);
}

@media (max-width: 1199px) { .tslider-item { flex: 0 0 33.3333%; } }
@media (max-width: 767px)  { .tslider-item { flex: 0 0 50%; } }
@media (max-width: 575px)  {
  .tratamentos-slider { padding: 0 40px; }
  .tslider-item { flex: 0 0 100%; }
  .tslider-btn { width: 36px; height: 36px; font-size: 1rem; }
}

/* ---------- SEÇÃO DE TRATAMENTOS COM DECORATIVO DE FUNDO ---------- */
.tratamentos-secao {
  position: relative;
  overflow: hidden;
  background: #fff;
}
.tratamentos-secao .tratamentos-decor {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: .10;
  pointer-events: none;
  z-index: 0;
  filter: blur(.3px);
}
@media (max-width: 768px) {
  .tratamentos-secao .tratamentos-decor {
    background-size: 180% auto;
    opacity: .08;
  }
}

/* ---------- INSTITUCIONAL ---------- */
.bloco-institucional {
  background: #fff;
}
.bloco-institucional img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
}

/* ---------- DEPOIMENTOS ---------- */
.card-depoimento {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--celiderm-border);
  height: 100%;
  position: relative;
}
.card-depoimento::before {
  content: '\201C';
  font-family: var(--font-title);
  font-size: 5rem;
  color: var(--celiderm-blue);
  position: absolute;
  top: -10px;
  left: 18px;
  line-height: 1;
  opacity: .3;
}
.card-depoimento .estrelas {
  color: var(--celiderm-orange);
  margin-bottom: 1rem;
}
.card-depoimento .texto {
  color: var(--celiderm-brown);
  font-style: italic;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.card-depoimento .autor {
  color: var(--celiderm-dark);
  font-weight: 600;
  margin: 0;
}
.card-depoimento .cidade {
  color: var(--celiderm-muted);
  font-size: .85rem;
}

/* ---------- CTA AGENDAMENTO ---------- */
.cta-agendamento {
  background: linear-gradient(135deg, var(--celiderm-blue) 0%, var(--celiderm-blue-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 2rem;
}
.cta-agendamento h2 { color: #fff; }
.cta-agendamento p  { color: rgba(255,255,255,.92); max-width: 620px; margin: 0 auto 1.5rem; }

/* ---------- FOOTER ---------- */
.footer {
  background-color: var(--celiderm-dark);
  color: #cfd2d6;
  padding: 4rem 0 0;
  font-size: .92rem;
}
.footer h5 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.footer a {
  color: #cfd2d6;
  display: inline-block;
  padding: .25rem 0;
}
.footer a:hover {
  color: var(--celiderm-blue);
  padding-left: 4px;
}
.footer .footer-logo img {
  height: 64px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}
.footer .social-icons {
  display: flex;
  gap: .65rem;
  margin-top: 1rem;
}
.footer .social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding: 0;
}
.footer .social-icons a:hover {
  background: var(--celiderm-blue);
  color: #fff;
  padding-left: 0;
  transform: translateY(-3px);
}
/* Botão "Atendimento via WhatsApp" do rodapé: fonte verde-escura; preta no hover */
.footer .btn-whatsapp {
  color: #075E54;
}
.footer .btn-whatsapp:hover {
  color: #000;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 3rem;
  padding: 1.5rem 0;
  font-size: .82rem;
  color: #8d9095;
}
.footer-bottom p { margin: 0; }

/* ---------- WHATSAPP FLUTUANTE ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .35);
  z-index: 1050;
  animation: pulseWhats 2s infinite;
  transition: var(--transition);
}
.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.1);
}
@keyframes pulseWhats {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);  }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);    }
}

/* ---------- CONTATO: FAIXA DE CANAIS ---------- */
.contato-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;                              /* divisórias finas entre as células */
  background: var(--celiderm-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
@media (min-width: 576px) {
  .contato-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .contato-strip { grid-template-columns: repeat(4, 1fr); }
}
.contato-strip .canal {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 1.5rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: background-color .25s ease;
}
.contato-strip a.canal:hover {
  background: var(--celiderm-light);
}
.contato-strip .canal .icone {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform .25s ease;
}
.contato-strip a.canal:hover .icone {
  transform: scale(1.08);
}
.contato-strip .canal .rotulo {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--celiderm-muted);
  margin-bottom: 2px;
}
.contato-strip .canal .valor {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.35;
  color: var(--celiderm-dark);
  word-break: break-word;
}
.contato-strip .canal .valor small {
  display: block;
  font-weight: 400;
  color: var(--celiderm-muted);
}

/* ---------- ACCORDION / FAQ (cores da marca) ---------- */
.accordion {
  --bs-accordion-active-bg: var(--celiderm-blue-soft);
  --bs-accordion-active-color: var(--celiderm-blue-dark);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(117, 191, 208, .25);
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234ea3b6'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-button {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--celiderm-dark);
}
.accordion-button:not(.collapsed) {
  box-shadow: none; /* remove a linha interna padrão do Bootstrap */
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb-celiderm {
  background: var(--celiderm-light);
  padding: 1rem 0;
  font-size: .9rem;
}
.breadcrumb-celiderm .breadcrumb {
  margin: 0;
  background: transparent;
}
.breadcrumb-celiderm a { color: var(--celiderm-brown); }
.breadcrumb-celiderm .active { color: var(--celiderm-orange); }

/* ---------- FORMS ---------- */
.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--celiderm-border);
  padding: .7rem 1rem;
  font-size: .95rem;
  transition: var(--transition);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--celiderm-blue);
  box-shadow: 0 0 0 .2rem rgba(117, 191, 208, .2);
}
.form-label {
  font-weight: 500;
  color: var(--celiderm-dark);
  margin-bottom: .35rem;
}

/* ---------- BADGES ---------- */
.badge-status {
  border-radius: var(--radius-pill);
  padding: .35em .85em;
  font-weight: 500;
  font-size: .75rem;
}
.badge-pendente   { background: #fff3cd; color: #856404; }
.badge-confirmado { background: #d6ecf1; color: #4ea3b6; }
.badge-cancelado  { background: #f8d7da; color: #842029; }
.badge-concluido  { background: #d4edda; color: #155724; }
.badge-pago       { background: var(--celiderm-blue-soft); color: var(--celiderm-blue-dark); }
.badge-enviado    { background: #cfe2ff; color: #084298; }

/* ---------- SELETOR DE QUANTIDADE (página de produto) ---------- */
.qtd-selector {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 140px;
  min-width: 140px;
  height: 48px;
  border: 1px solid var(--celiderm-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}
.qtd-selector .qtd-btn {
  flex: 0 0 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--celiderm-dark);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 0;
  line-height: 1;
}
.qtd-selector .qtd-btn:hover {
  background: var(--celiderm-light);
  color: var(--celiderm-orange);
}
.qtd-selector .qtd-input {
  flex: 1 1 auto;
  border: 0;
  border-left: 1px solid var(--celiderm-border);
  border-right: 1px solid var(--celiderm-border);
  border-radius: 0;
  padding: 0 .25rem;
  background: #fff;
  font-weight: 500;
}
.qtd-selector .qtd-input::-webkit-outer-spin-button,
.qtd-selector .qtd-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qtd-selector .qtd-input:focus {
  box-shadow: none;
  outline: none;
}

/* Botão "Adicionar ao carrinho" responsivo */
.btn-add-cart {
  min-width: 100px;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .btn-add-cart { min-width: 100%; }
  .qtd-selector { width: 100%; min-width: 100%; }
}

/* ---------- ANTES & DEPOIS (slider arrastável) ---------- */
.ad-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 480px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
  background: var(--celiderm-light);
  touch-action: none;
}
/* Fallback para navegadores sem suporte a aspect-ratio */
@supports not (aspect-ratio: 4/3) {
  .ad-slider { padding-top: 75%; height: 0; }
}
.ad-slider img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  pointer-events: none;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.ad-slider .ad-img-antes  { z-index: 1; }
.ad-slider .ad-img-depois {
  z-index: 2;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
  transition: clip-path .05s linear;
}
.ad-slider .ad-label {
  position: absolute;
  top: 14px;
  z-index: 5;
  background: rgba(0,0,0,.7);
  color: #fff;
  padding: .35em .85em;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.ad-slider .ad-label-antes  { left: 14px; }
.ad-slider .ad-label-depois {
  right: 14px;
  background: var(--celiderm-orange);
}
.ad-slider .ad-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0,0,0,.4);
}
.ad-slider .ad-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  color: var(--celiderm-orange);
  font-size: 1.1rem;
}
.ad-slider:hover .ad-handle-circle {
  background: var(--celiderm-orange);
  color: #fff;
}
@media (max-width: 576px) {
  .ad-slider .ad-handle-circle { width: 40px; height: 40px; font-size: 1rem; }
  .ad-slider .ad-label { font-size: .65rem; padding: .25em .65em; }
}

/* ---------- LOJA - FILTROS ---------- */
.filtro-loja {
  background: var(--celiderm-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  position: sticky;
  top: 100px;
}
.filtro-loja h6 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .8rem;
  color: var(--celiderm-orange);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* ---------- ADMIN LAYOUT ---------- */
.admin-wrap { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 260px;
  background: var(--celiderm-dark);
  color: #cfd2d6;
  padding: 1.5rem 0;
  flex-shrink: 0;
}
.admin-sidebar .brand {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar .brand img { height: 38px; filter: brightness(0) invert(1); }

.admin-sidebar .menu { list-style: none; padding: 1rem 0; margin: 0; }
.admin-sidebar .menu a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.5rem;
  color: #cfd2d6;
  font-size: .92rem;
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.admin-sidebar .menu a:hover,
.admin-sidebar .menu a.active {
  background: rgba(255,255,255,.04);
  color: var(--celiderm-orange);
  border-left-color: var(--celiderm-orange);
}
.admin-sidebar .menu i { width: 20px; text-align: center; }

.admin-content { flex: 1; background: #f5f6f8; padding: 2rem; }

.card-stat {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--celiderm-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.card-stat:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.card-stat .ico {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: var(--celiderm-blue-soft);
  color: var(--celiderm-blue-dark);
  flex-shrink: 0;
}
.card-stat .label { color: var(--celiderm-muted); font-size: .85rem; margin: 0; }
.card-stat .valor { font-weight: 700; font-size: 1.5rem; margin: 0; color: var(--celiderm-dark); }

/* ---------- TABELAS ADMIN ---------- */
.table-celiderm {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0;
}
.table-celiderm thead th {
  background: var(--celiderm-light);
  color: var(--celiderm-dark);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 1rem;
  border: 0;
}
.table-celiderm tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-color: var(--celiderm-border);
}

/* ---------- HELPERS ---------- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--celiderm-orange);
  margin: 1rem auto 1.5rem;
  border-radius: var(--radius-pill);
}

.shadow-soft { box-shadow: var(--shadow-sm) !important; }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 992px) {
  .navbar-celiderm .navbar-brand img { height: 48px; }
  section { padding: 3rem 0; }
  .hero { padding: 3rem 0; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .admin-sidebar { display: none; }
}

@media (max-width: 576px) {
  .topbar { font-size: .78rem; }
  .topbar .text-end { text-align: center !important; margin-top: .25rem; }
  .card-produto .acoes-produto { flex-direction: column; }
  .whatsapp-float { width: 52px; height: 52px; font-size: 1.45rem; }
}

/* =====================================================================
   CÉLI - ASSISTENTE VIRTUAL (chat flutuante no canto esquerdo)
   ===================================================================== */

/* ---- Mascote flutuante (corpo inteiro, olhos piscando) ---- */
.celi-float {
  position: fixed;
  left: 18px;
  bottom: 8px;
  width: 92px;
  height: 116px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 1049; /* abaixo do backdrop de modal do Bootstrap (1050) */
  filter: drop-shadow(0 10px 12px rgba(78, 163, 182, .35));
  transition: var(--transition);
}
.celi-float svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: celiFlutuar 3.6s ease-in-out infinite;
}
.celi-float::after { /* sombra no "chão" enquanto ela flutua */
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 56px;
  height: 10px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(78, 163, 182, .28), transparent 70%);
  border-radius: 50%;
}
.celi-float:hover { transform: scale(1.08); }
.celi-float.celi-oculto { display: none; }

/* Olhos piscando (fecham rapidinho a cada ~4,4s) */
.celi-olho {
  transform-box: fill-box;
  transform-origin: center;
  animation: celiPiscar 4.4s infinite;
}
@keyframes celiPiscar {
  0%, 91%, 97%, 100% { transform: scaleY(1); }
  93%, 95%           { transform: scaleY(0.08); }
}

/* A cada 30 segundos o braço direito levanta e "oferece" o símbolo da
   Celiderm, que aparece flutuando sobre a mão (ciclos de 30s casados) */
.celi-braco-dir {
  transform-box: fill-box;
  transform-origin: 15% 8%; /* pivô no ombro */
  animation: celiOferecer 30s ease-in-out infinite;
}
@keyframes celiOferecer {
  0%, 86%, 96%, 100% { transform: rotate(0deg); }
  89%, 93%           { transform: rotate(-55deg); }
}
.celi-logo-oferta {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: celiLogoOferta 30s ease-in-out infinite;
}
@keyframes celiLogoOferta {
  0%, 88%, 94.8%, 100% { opacity: 0; transform: scale(0); }
  89.6%, 93.6%         { opacity: 1; transform: scale(1); }
}

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

/* Bolhinhas ao redor */
.celi-bolha   { animation: celiBolha 4.2s ease-in-out infinite; }
.celi-bolha-2 { animation-delay: 1.4s; }
@keyframes celiBolha {
  0%, 100% { transform: translateY(0);    opacity: .55; }
  50%      { transform: translateY(-5px); opacity: .95; }
}

@media (prefers-reduced-motion: reduce) {
  .celi-float svg, .celi-olho, .celi-bolha,
  .celi-braco-dir, .celi-logo-oferta { animation: none; }
}

/* ---- Balãozinho de convite ---- */
.celi-balao {
  position: fixed;
  left: 106px;
  bottom: 58px;
  background: var(--celiderm-white);
  color: var(--celiderm-dark);
  font-size: .875rem;
  line-height: 1.35;
  padding: .7rem 1.9rem .7rem .95rem;
  border-radius: var(--radius-md);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-md);
  z-index: 1049;
  cursor: pointer;
  max-width: 230px;
  animation: celiSurgir .3s ease;
}
.celi-balao-fechar {
  position: absolute;
  top: 2px;
  right: 6px;
  border: 0;
  background: none;
  color: var(--celiderm-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

/* ---- Janela do chat ---- */
.celi-chat {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 370px;
  max-width: calc(100vw - 44px);
  height: 540px;
  max-height: calc(100vh - 110px);
  background: var(--celiderm-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1049; /* modais Bootstrap (backdrop 1050 / janela 1055) cobrem o chat */
  font-family: var(--font-body);
}
.celi-chat.celi-aberto {
  display: flex;
  animation: celiSurgir .28s ease;
}
@keyframes celiSurgir {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Cabeçalho ---- */
.celi-chat-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  background: linear-gradient(135deg, var(--celiderm-blue-dark), var(--celiderm-blue));
  color: #fff;
}
.celi-chat-header .celi-avatar {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  flex-shrink: 0;
}
.celi-chat-header-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.celi-chat-header-info strong { font-size: 1.05rem; }
.celi-chat-header-info span   { font-size: .75rem; opacity: .92; }
.celi-online {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #7dffa9;
  border-radius: 50%;
  margin-right: 2px;
}
.celi-fechar {
  margin-left: auto;
  border: 0;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.celi-fechar:hover { background: rgba(255, 255, 255, .32); }

/* ---- Área de mensagens ---- */
.celi-chat-mensagens {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--celiderm-light);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.celi-msg {
  max-width: 86%;
  padding: .65rem .85rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  line-height: 1.45;
  word-wrap: break-word;
  animation: celiSurgir .22s ease;
}
.celi-msg p        { margin: 0 0 .4rem; }
.celi-msg p:last-child { margin-bottom: 0; }
.celi-msg ul       { margin: .2rem 0 .3rem; padding-left: 1.15rem; }
.celi-msg a        { color: var(--celiderm-blue-dark); }
.celi-msg-bot {
  align-self: flex-start;
  background: var(--celiderm-white);
  border: 1px solid var(--celiderm-border);
  border-bottom-left-radius: 4px;
  color: var(--celiderm-dark);
  box-shadow: var(--shadow-sm);
}
.celi-msg-user {
  align-self: flex-end;
  background: var(--celiderm-blue);
  border-bottom-right-radius: 4px;
  color: #fff;
}

/* ---- "Digitando..." ---- */
.celi-digitando {
  display: inline-flex;
  gap: 5px;
  padding: .8rem .9rem;
}
.celi-digitando span {
  width: 7px;
  height: 7px;
  background: var(--celiderm-blue);
  border-radius: 50%;
  animation: celiPulinho 1.1s infinite;
}
.celi-digitando span:nth-child(2) { animation-delay: .15s; }
.celi-digitando span:nth-child(3) { animation-delay: .3s; }
@keyframes celiPulinho {
  0%, 60%, 100% { transform: translateY(0);   opacity: .45; }
  30%           { transform: translateY(-5px); opacity: 1;  }
}

/* ---- Sugestões (chips) ---- */
.celi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .55rem;
}
.celi-chip {
  border: 1px solid var(--celiderm-blue);
  background: var(--celiderm-blue-soft);
  color: var(--celiderm-blue-dark);
  font-size: .78rem;
  font-family: var(--font-body);
  padding: .3rem .7rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.celi-chip:hover {
  background: var(--celiderm-blue);
  color: #fff;
}

/* ---- Botão WhatsApp dentro da conversa ---- */
.celi-btn-whats {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .55rem;
  background: #25d366;
  color: #fff !important;
  font-size: .82rem;
  font-weight: 500;
  padding: .45rem .95rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: var(--transition);
}
.celi-btn-whats:hover {
  background: #1eb857;
  color: #fff;
  transform: translateY(-1px);
}

/* ---- Rodapé: campo de texto + atendente ---- */
.celi-chat-rodape {
  border-top: 1px solid var(--celiderm-border);
  background: var(--celiderm-white);
  padding: .65rem .8rem .55rem;
}
.celi-chat-rodape form {
  display: flex;
  gap: .5rem;
}
.celi-chat-rodape input {
  flex: 1;
  border: 1px solid var(--celiderm-border);
  border-radius: var(--radius-pill);
  padding: .55rem .95rem;
  font-size: 1rem; /* mínimo 16px: fonte menor dispara auto-zoom no iOS Safari */
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
  min-width: 0;
}
.celi-chat-rodape input:focus {
  border-color: var(--celiderm-blue);
  box-shadow: 0 0 0 3px rgba(117, 191, 208, .18);
}
.celi-chat-rodape button[type="submit"] {
  border: 0;
  background: var(--celiderm-blue);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.celi-chat-rodape button[type="submit"]:hover { background: var(--celiderm-blue-dark); }
.celi-atendente {
  display: block;
  text-align: center;
  font-size: .75rem;
  color: var(--celiderm-muted);
  text-decoration: none;
  margin-top: .5rem;
}
.celi-atendente:hover { color: #1eb857; }

/* ---- Mobile ---- */
@media (max-width: 480px) {
  .celi-float { left: 8px; bottom: 4px; width: 74px; height: 94px; }
  .celi-balao { left: 84px; bottom: 44px; max-width: 190px; }
  .celi-chat {
    left: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
    height: 74vh;
    max-height: calc(100vh - 90px);
  }
}
