/* =========================================================
   CMS Core, componentes (slideshow, modal e-folder, botão flutuante)
   -----------------------------------------------------------
   Só o ESSENCIAL de layout/comportamento. As cores são neutras de
   propósito: reescreva-as no CSS do projeto (procure por [tema]).
   Carregue este arquivo E o cms.js em TODAS as páginas.
   ========================================================= */

/* slideshow */
.cms-slideshow{position:relative;width:100%;overflow:hidden;background:#111}
.cms-slideshow__track{display:flex;transition:transform .55s cubic-bezier(.4,0,.2,1)}
.cms-slide{flex:0 0 100%;min-width:0}
.cms-slide__link{display:block;width:100%;padding:0;margin:0;border:0;background:none;cursor:pointer}
.cms-slide img{display:block;width:100%}
.cms-slideshow__arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:44px;height:44px;border-radius:50%;border:0;cursor:pointer;background:rgba(0,0,0,.4);font-size:0}
.cms-slideshow__arrow::before{content:"";display:inline-block;width:12px;height:12px;border-left:2px solid #fff;border-bottom:2px solid #fff;position:relative}
.cms-slideshow__arrow--prev{left:16px}
.cms-slideshow__arrow--prev::before{transform:rotate(45deg);left:2px}
.cms-slideshow__arrow--next{right:16px}
.cms-slideshow__arrow--next::before{transform:rotate(-135deg);left:-2px}
.cms-slideshow__dots{position:absolute;left:0;right:0;bottom:14px;display:flex;gap:9px;justify-content:center;z-index:2}
.cms-slideshow__dot{width:11px;height:11px;border-radius:50%;border:0;cursor:pointer;background:rgba(255,255,255,.5)}
.cms-slideshow__dot.is-active{background:#fff} /* [tema] cor do dot ativo */
@media(max-width:767px){.cms-slideshow__arrow{display:none}}

/* modal e-folder */
.cms-modal{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:20px}
.cms-modal[hidden]{display:none}
.cms-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.6)}
.cms-modal__box{position:relative;z-index:1;display:flex;width:min(1000px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 30px 80px rgba(0,0,0,.4)} /* [tema] */
.cms-modal__close{position:absolute;top:12px;right:16px;z-index:3;width:40px;height:40px;border:0;border-radius:50%;background:transparent;font-size:30px;line-height:1;cursor:pointer}
.cms-modal__media{flex:0 0 38%;display:grid;grid-template-rows:repeat(3,1fr);gap:10px;padding:20px}
.cms-modal__media img{width:100%;height:100%;object-fit:cover;border-radius:12px}
.cms-modal__panel{flex:1 1 auto;min-width:0;padding:30px}
.cms-modal__title{margin:0 0 18px;font-size:24px;line-height:1.15} /* [tema] */
.cms-checks{display:flex;flex-direction:column;gap:7px;margin-top:2px}
.cms-check{display:flex;align-items:flex-start;gap:9px;cursor:pointer}
.cms-check input{margin-top:2px;width:16px;height:16px;flex:0 0 auto}
@media(max-width:820px){.cms-modal__box{flex-direction:column}.cms-modal__media{flex:none;grid-template-rows:none;grid-template-columns:repeat(3,1fr);padding:20px 20px 0}.cms-modal__media img{height:120px}}

/* botão flutuante */
.cms-float{position:fixed;left:22px;bottom:22px;z-index:191;display:inline-flex;align-items:center;gap:8px;background:#111;color:#fff;font-weight:600;font-size:15px;padding:14px 22px;border-radius:14px;box-shadow:0 12px 30px rgba(0,0,0,.28);transition:transform .25s ease} /* [tema] */
.cms-float:hover{transform:translateY(-3px)}
@media(max-width:767px){.cms-float{left:14px;bottom:14px;font-size:13px;padding:12px 18px}}
