:root{
  /* Paleta base */
  --ink:#193532;
  --red-coral:#FF6B6B;
  --red-deep:#C62828;
  --red-mid:#D64545;

  /* Mapeamento p/ Slide Essentials */
  --cnvs-themecolor: var(--ink);
  --cnvs-body-color: #fff7d9;
  --cnvs-text-color: var(--ink);
  --cnvs-color: #6c757d;       /* subtítulos/tons médios */
  --cnvs-color2: #FFE6E6;      /* bg de CTA secundário */
  --cnvs-body-font: 'tenon', sans-serif;
  --cnvs-primary-font: 'tenon', sans-serif;

  /* Z-index stack (consistência no mobile) */
  --z-overlay: 30000;
  --z-drawer: 30001;
  --z-header: 30002;
}
html {
  scroll-behavior: smooth;
}
/* ───────────────────────────────────────────────────────────────────────
   3) CSS MÍNIMO PARA TORNAR O LINK DE BYPASS VISÍVEL AO FOCO
   Ficheiro sugerido: html-head-css.php (ou /assets/css/a11y.css)
   ─────────────────────────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  left: -9999px;             /* Esconde visualmente mas mantém acessível a SRs */
}

.skip-link:focus {
  left: 1rem;                /* Traz o link para dentro do ecrã quando focado */
  top: 1rem;
  padding: .75rem 1rem;
  background: #fff;          /* Contraste com o fundo */
  outline: 2px solid;        /* Realça o foco */
  z-index: 1000;             /* Fica acima do header/nav */
  border-radius: .25rem;
}

/* (Recomendado) Melhorar foco global em links/botões */
:focus {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}

#top-bar{   
    letter-spacing: 0.02em;
}
h1, h2{
    font-family: 'tenon', sans-serif !important;
}
.display-5 {
    font-weight: 700!important;
    
}
.divider::after, .divider::before
 {

    border-bottom: var(--cnvs-divider-border-width) var(--cnvs-divider-border-style) #ffffff;
}

.divider.divider-border i, .divider.divider-rounded i {
 
    background-color: #ffffff;
}

.divider.divider-rounded i
 {
    color: #ffc107!important;
}
.max-w-720{
    max-width: 720px;
}
#primary-menu .menu-link > div {
  font-family: 'tenon', sans-serif !important;
}
.bg-coral{ background:#FF6B6B !important; }
.bg-red-dark{ background-color:#c14343; }
.bg-red-light{ background-color:#ff6c6c; }
.bg-blue-light{ background:#e5eeff !important; }
.section { background-color:#cbc2b9; }
.fw-500{ font-weight:500 !important; }
.badge-coral{ background:#FF6B6B; }
.btn-danger{ background:var(--red-deep); color:#fff; }
.btn-danger:hover{ background:var(--red-mid); }
.menu-link:focus { outline:2px solid #A8D0FF; outline-offset:2px; }

.color-red{
    color: #df1d25 !important
}
.color-brown{color: #40260d;}
.line-h-14{line-height: 14px;}
/* ===== Núcleo do Mega-Menu (independente do template) ===== */
.item-categories h5 {  
    border-radius: 0 20px 0 0;
}
#footer .footer-widgets-wrap {
    position: relative;
    padding: 3rem!important;
}
#header-wrap {
    background-color: #FFFFFF!important;
}
.is-expanded-menu #header.transparent-header:not(.sticky-header) #header-wrap {
    border-bottom: 0px solid transparent!important;
    z-index: 299;
}
/* Torna o header “expanded” (efeitos no dropdown) */

body.is-expanded-menu #header.hover-light.transparent-header::before{ opacity:1; }

/* Estrutura base */
.primary-menu .menu-container{ display:flex; gap:1.25rem; }
.menu-item{ position:relative; }

/* Content de imagem (direita) + troca por classe */
.target-content > div{ display:none; }
.target-content > div.target-active{ display:block; }
.target-content img{ width:100%; height:auto; display:block; }

/* Ícone “+” roda ao abrir (estilo demo) */
.is-expanded-menu .menu-container > .menu-item > .menu-link > div > i{
  transition:transform .2s cubic-bezier(.7,0,.2,1); margin-left:4px;
}
.is-expanded-menu .menu-item:hover > .menu-link > div > i{ transform:rotate(45deg); }

/* ====== MOBILE ====== */
@media (max-width: 991.98px){

  /* Header e nav ocupam a largura */
  #header, #header-wrap { position: relative; }
  .primary-menu-init{ width:100%; }
  .primary-menu-init .menu-container{ display:block; }
  .primary-menu-init .menu-item{ display:block; border-bottom:1px solid #eee; }

  
  /* Esconde a coluna de imagem no mobile (fica só a lista) */
  .primary-menu-init .target-content{ display:none !important; }

  /* Indicadores/ícones alinhados */
  .primary-menu-init .menu-item > a.menu-link div{
    display:flex; align-items:center; justify-content:space-between; gap:.5rem;
    padding-right: .25rem;
  }
  .primary-menu-init .menu-item .sub-menu-indicator{
    font-size: .85rem;
    transform: rotate(0deg);
    transition: transform .2s ease;
  }
  .primary-menu-init .menu-item.open .sub-menu-indicator{ transform: rotate(180deg); }
}
/* Indicador +/– nos itens com submenu (mobile) */
.menu-item.has-sub > a .item-indicator::before { content: '+'; font-weight: 700; }
.menu-item.has-sub.open > a .item-indicator::before { content: '–'; }



/* --- MOBILE NAV BEHAVIOUR --- */
@media (max-width: 991.98px){
  /* painel */
  #primary-menu.primary-menu {
    position: fixed; inset: 0 auto 0 0;
    width: 86vw; max-width: 420px; background:#fff;
    transform: translateX(-100%); transition: transform .3s ease;
    z-index: 1051; box-shadow: 0 10px 40px rgba(0,0,0,.2);
  }
  body.menu-open #primary-menu.primary-menu { transform: translateX(0); }

  /* overlay */
  .menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index:1050; display:none; }
  body.menu-open .menu-overlay { display:block; }
  body.menu-open .menu-overlay[hidden] { display:block; } /* força mostrar mesmo com hidden */

  /* lista & acordeão */
  .primary-menu .menu-container { display:block; }
  .primary-menu .menu-item { border-bottom: 1px solid rgba(0,0,0,.08); }
  .primary-menu .menu-item > .sub-menu-container,  
  .primary-menu .menu-item.open > .sub-menu-container,
  

  /* header da gaveta */
  #primary-menu .mobile-bar { border-bottom: 1px solid rgba(0,0,0,.08); }

  /* esconder caret no mobile (usamos +) */
  .primary-menu .sub-menu-indicator { display:none !important; }
}

/* Evita que o menu “fique sempre visível” por default */
/* z-index reforçado para evitar overlay tapar o menu */
@media (max-width: 991.98px){
  #primary-menu.primary-menu {
    position: fixed; inset: 0 auto 0 0;
    width: 86vw; max-width: 420px; background:#fff;
    transform: translateX(-100%); transition: transform .3s ease;
    z-index: 20001; box-shadow: 0 12px 40px rgba(0,0,0,.24);
  }
  .menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index:20000; display:none; }
  body.menu-open #primary-menu.primary-menu { transform: translateX(0); }
  body.menu-open .menu-overlay { display:block; }
  body.menu-open { overflow:hidden; }
}

/* acordeão mobile */
@media (max-width: 991.98px){
  .primary-menu .menu-container { display:block; }
  .primary-menu .menu-item { border-bottom:1px solid rgba(0,0,0,.08); }
  .primary-menu .menu-item > .sub-menu-container,  
  .primary-menu .menu-item.open > .sub-menu-container,
  .primary-menu .sub-menu-indicator { display:none !important; } /* no caret; usamos + */
}

/* Indicador +/– */
.menu-item.has-sub > a .item-indicator::before { content:'+'; font-weight:700; }
.menu-item.has-sub.open > a .item-indicator::before { content:'–'; }

/* Desktop hover mantém-se */
@media (hover:hover) and (min-width: 992px){
  .primary-menu-init .menu-item.sub-menu:hover > .sub-menu-container,
  .primary-menu-init .menu-item.mega-menu:hover > .mega-menu-content{
    display:block; opacity:1; visibility:visible;
  }
}

/* Mega preview */
.target-content > div { display:none; }
.target-content > div.target-active { display:block; }

/* ---- FIX ABSOLUTO: Mobile drawer acima do overlay ---- */
@media (max-width: 991.98px){
  /* Garante que o header e o nav estão num contexto acima do overlay */
  #header, #header-wrap { position: relative; z-index: 30002; }

  /* Painel do menu (gaveta) – fica sempre acima do overlay */
  #primary-menu.primary-menu {
    position: fixed; inset: 0 auto 0 0;
    width: 86vw; max-width: 420px; background:#fff;
    transform: translateX(-100%); transition: transform .3s ease;
    z-index: 30001;                       /* acima do overlay */
    box-shadow: 0 12px 40px rgba(0,0,0,.24);
  }
  body.menu-open #primary-menu.primary-menu { transform: translateX(0); }

  /* Overlay da página – fica um nível abaixo do painel */
  .menu-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 30000;                       /* abaixo do menu */
    display: none;
  }
  body.menu-open .menu-overlay { display:block; }
  body.menu-open { overflow: hidden; }

  /* Desativa qualquer “filtro” do header no mobile */
  #header.transparent-header::before { display: none !important; }
}

/* Remoção preventiva de regras antigas (sobrescreve z-index baixo) */
@media (max-width: 991.98px){
  #primary-menu.primary-menu,
  .menu-overlay { z-index: auto; } /* será substituído pelos valores acima */
}
/* Mobile drawer: só o botão Fechar, sem logo nem ícone user */
/* ====== MOBILE DRAWER: botão fechar no topo-direito ====== */
@media (max-width: 991.98px){
  /* painel e overlay (mantemos o que já tinhas) */
  #primary-menu.primary-menu {
    position: fixed; inset: 0 auto 0 0;
    width: 86vw; max-width: 420px; background:#fff;
    transform: translateX(-100%); transition: transform .3s ease;
    z-index: 20001; box-shadow: 0 12px 40px rgba(0,0,0,.24);
  }
  body.menu-open #primary-menu.primary-menu { transform: translateX(0); }
  .menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index:20000; display:none; }
  body.menu-open .menu-overlay { display:block; }
  body.menu-open { overflow:hidden; }

  /* remove a “mobile-bar” e coloca o X absoluto no nav */
  #primary-menu .mobile-bar { display:none !important; }
  #primary-menu .menu-close{
    position:absolute; top:10px; right:12px;
    font-size:1.75rem; line-height:1; background:transparent; border:0;
    z-index: 1;
  }

  /* dá espaço para o X não tapar o primeiro item */
  #primary-menu .menu-container { padding-top: 48px; }
}
.sub-menu-trigger{ display:none !important; }
.header-misc .bg-yellow
 {
    background-color: #EFE33F;
    margin: 0;
    padding: 29px 16px;
}



/* --- Mega Portfolio Grid (Canvas-like) --- */
.mega-portfolio{
  display:grid;
  grid-template-columns: repeat(var(--cols,5), minmax(180px,1fr));
  gap: 28px;
  padding: 18px 24px 24px;
}

.mega-portfolio.two-rows { /* quando >=9 itens: quebra automática em 2 linhas de 5 */
  grid-auto-rows: auto;
}

.mega-portfolio.dense {    /* 6–8 itens: tudo numa linha, miniatura mais baixa */
  --tile-aspect: 16/10;
}

/* Cartão */
.mega-portfolio .tile{
  display:block;
  text-decoration:none;
}

.mega-portfolio .tile-img{
  display:block;
  width:100%;
  aspect-ratio: var(--tile-aspect, 4/3);
  background:#f4f4f4;
  overflow:hidden;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.mega-portfolio .tile-img img{
  width:100%; height:100%;
  object-fit:cover;
  transition: transform .35s ease;
  display:block;
}

.mega-portfolio .tile:hover .tile-img img{ transform: scale(1.03); }

.mega-portfolio .tile-title{
  display:block;
  margin-top: .75rem;
  font-weight: 600;
  color: var(--ink, #193532);
  font-size: 1.05rem;
  line-height: 1.3;
}

.mega-portfolio .tile-sub{
  display:block;
  margin-top: .125rem;
  color: #6c757d;
  font-size: .9rem;
}

/* Responsivo: tablets e telemóveis */
@media (max-width: 1199.98px){
  .mega-portfolio{ gap:22px; }
  .mega-portfolio .tile-title{ font-size: 1rem; }
}

@media (max-width: 991.98px){
  /* no mobile o mega vira acordeão (já tens regras),
     mas mantém cartões bonitos quando aberto */
  .mega-portfolio{
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap:16px;
    padding: 10px 12px 14px;
  }
  .mega-portfolio .tile-title{ font-size:.95rem; }
}
/* --- Mega Portfolio Grid (Materiais) --- */
.mega-portfolio{
  display:grid;
  gap:22px;
  /* nº de colunas controlado por PHP via --cols; faz wrap natural */
  grid-template-columns: repeat(var(--cols, 4), minmax(160px, 1fr));
  align-items:start;
  padding:10px 6px 20px;
}

/* Variante “dense”: usa thumbs menores para tentar caber numa fila */
.mega-portfolio.dense{
  grid-template-columns: repeat(var(--cols, 6), minmax(140px, 1fr));
  gap:18px;
}

/* Card */
.mega-card{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  background: rgba(255,255,255,.6);
  border-radius:12px;
  padding:12px;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
  border:1px solid rgba(0,0,0,.06);
}
.mega-card:hover{
  transform: translateY(-2px);
  background:#fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

/* Thumb pequena e consistente */
.mega-card .thumb{
  width:100%;
  aspect-ratio: 4 / 3;         /* 4:3; muda se preferires 1:1 */
  overflow:hidden;
  border-radius:10px;
  background:#f6f4ec;
}
.mega-card .thumb img{
  width:100%; height:100%;
  object-fit:cover; display:block;
}

/* Textos */
.mega-card .title{
  margin-top:10px;
  font-weight:600;
  color:#111;
  font-size: clamp(13px, 1.6vw, 16px);
  line-height:1.25;
}
.mega-card .meta{
  margin-top:4px;
  font-size:12px;
  opacity:.72;
}

/* Responsivo fino: guarda espaço em telas estreitas */
@media (max-width: 1199.98px){
  .mega-portfolio{ grid-template-columns: repeat(var(--cols, 3), minmax(150px, 1fr)); }
}
@media (max-width: 991.98px){
  /* No mobile, o mega vira acordeão: o teu CSS já cuida.
     Mantemos a mesma grelha para consistência */
  .mega-portfolio,
  .mega-portfolio.dense{
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap:16px;
  }
}
/* ===== Submenu Convencional — Desktop + Mobile ===== */

/* Header base */
#header-wrap { background:#fff; }

/* Barra principal horizontal (desktop) */
.primary-menu .menu-container {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.menu-item { position: relative; }
.menu-link { display: block; padding: .75rem .5rem; }

/* Dropdown de 1º nível */
.menu-item.sub-menu > .sub-menu-container {
  position: absolute;
  left: 0; top: 100%;
  min-width: 240px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  padding: .5rem 0;
  display: none;
  z-index: 1200;
}

/* Mostra no hover (desktop) */
@media (hover:hover) and (min-width: 992px) {
  .menu-item.sub-menu:hover > .sub-menu-container,
  .menu-item.sub-menu > .sub-menu-container:hover {
    display: block;
  }
}

/* Itens dentro do dropdown */
.sub-menu-container .menu-item { white-space: nowrap; }
.sub-menu-container .menu-link { padding: .5rem 1rem; }

/* Sub-submenu (abre à direita) */
.sub-menu-container .menu-item.sub-menu > .sub-menu-container {
  top: 0; left: 100%;
  margin-left: 2px;
}

/* Indicadores */
.sub-menu-indicator { margin-left: .35rem; }

/* -------- Mobile (≤ 991.98px): acordeão simples -------- */
@media (max-width: 991.98px) {
  /* Gaveta lateral simples */
  .primary-menu {
    position: fixed; inset: 0 auto 0 0;
    width: 86vw; max-width: 420px;
    background: #fff;
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 20001;
    box-shadow: 0 12px 40px rgba(0,0,0,.24);
  }
  body.menu-open .primary-menu { transform: translateX(0); }

  .menu-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 20000; display: none;
  }
  body.menu-open .menu-overlay { display: block; }
  body.menu-open { overflow: hidden; }

  /* Lista vertical + acordeão */
  .primary-menu .menu-container { display: block; padding-top: 48px; }
  .primary-menu .menu-item { border-bottom: 1px solid rgba(0,0,0,.08); }

  .menu-item > .sub-menu-container {
    position: static;
    display: none;
    border: 0; box-shadow: none; padding: 0;
  }
  .menu-item.open > .sub-menu-container { display: block; }

  /* Botão fechar no topo da gaveta */
  #primary-menu .menu-close {
    position: absolute; top: 10px; right: 12px;
    font-size: 1.75rem; line-height: 1;
    background: transparent; border: 0;
  }
  .bg-transparent{background: transparent}
  /* Trigger do sub-menu (setinha à direita) */
  .sub-menu-trigger {
    display: inline-flex;
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    background: transparent; border: 0;
    padding: .25rem; line-height: 1;
  }

  /* No mobile escondemos o caret do template e usamos o trigger */
  .sub-menu-indicator { display: none !important; }
}

/* Acessibilidade: foco visível nos links */
.menu-link:focus { outline: 2px solid #A8D0FF; outline-offset: 2px; }
/* ===== DESKTOP FIX: submenu/mega sem flicker e a "ficar" aberto ===== */
@media (min-width: 992px){

  /* o nav é o contexto do dropdown e fica acima do overlay do header */
  #header .primary-menu { position: relative; z-index: 4000; }
  #header .primary-menu .menu-item { overflow: visible; }

  /* o pseudo-overlay do header não deve apanhar o rato */
  #header.transparent-header::before{
    pointer-events: none !important;
    z-index: 1;
  }

  /* --- Submenu convencional --- */
  .primary-menu .menu-item.sub-menu > .sub-menu-container{
    position: absolute;
    left: 0;
    top: calc(100% - 1px);             /* elimina micro-gap */
    display: block !important;          /* sempre no fluxo, só invisível */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
    z-index: 4500;
  }
  .primary-menu .menu-item.sub-menu:hover > .sub-menu-container,
  .primary-menu .menu-item.sub-menu > .sub-menu-container:hover,
  .primary-menu .menu-item.sub-menu.open > .sub-menu-container{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .16s ease, transform .16s ease, visibility 0s;
  }

  /* --- Mega menu (lista + preview) --- */
  .primary-menu .menu-item.mega-menu { position: static; } /* mega ocupa a largura */
  .primary-menu .menu-item.mega-menu > .mega-menu-content{
    position: absolute;
    left: 0; right: 0;
    top: calc(100% - 1px);
    display: block !important;          /* idem: sempre presente */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
    z-index: 4500;
    background: #fff;                   /* mantém o teu fundo */
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
  }
  .primary-menu .menu-item.mega-menu:hover > .mega-menu-content,
  .primary-menu .menu-item.mega-menu > .mega-menu-content:hover,
  .primary-menu .menu-item.mega-menu.open > .mega-menu-content{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .16s ease, transform .16s ease, visibility 0s;
  }
}
/* Opcional: sombra e responsividade */
.twentytwenty-container { max-width: 100%; box-shadow: 0 1px 8px rgba(0,0,0,.3); }
.twentytwenty-container img { width: 100%; height: auto; display: block; }



/* full width dentro do container */
.twentytwenty-wrapper,
.twentytwenty-container {
  width: 100%;
  max-width: 100%;
}

/* as imagens já estão position:absolute no plugin — garante que preenchem */
.twentytwenty-container img {
  width: 100%;
  height: auto;
}
.container-fluid .twentytwenty-wrapper,
.container-fluid .twentytwenty-container {
  width: 100%;
  max-width: none;
}


/* filhos ocupam a largura do wrapper */
/* ocupa toda a largura do teu layout/container */
.twentytwenty-wrapper,
.twentytwenty-container { width: 100%; max-width: 100%; overflow: hidden; }

/* imagens ajustam pela largura; a altura extra é cortada se > 800 */
.twentytwenty-container img { width: 100%; height: auto; display: block; }


/* SLIDE NEW */
/* ===================== SLIDER / HERO ===================== */
#slider .slide-products{
  display:flex !important; flex-wrap:nowrap; gap:20px; justify-content:center; align-items:center;
}
#slider .slide-products > [class*="col-"]{ flex:0 0 auto; width:auto; }
#slider .slide-products .card{ flex:0 0 auto; min-width:280px; background:rgba(255,255,255,.06); border-color:transparent; }

@media (max-width:575.98px){
  #slider .slide-products{ flex-wrap:wrap; justify-content:flex-start; }
  #slider .slide-products .card{ min-width:240px; }
}

/* Ken Burns apenas no slide ativo */
.swiper-slide.kenburns .swiper-slide-bg{ transform:scale(1.02); }
.swiper-slide-active.kenburns .swiper-slide-bg{
  animation:kenburnsZoom 9000ms ease-in-out forwards; transform-origin:center center;
}
@keyframes kenburnsZoom{
  0%{ transform:scale(1.02) translate3d(0,0,0); }
  60%{ transform:scale(1.10) translate3d(0,-1%,0); }
  100%{ transform:scale(1.14) translate3d(0,-2%,0); }
}
@media (prefers-reduced-motion:reduce){
  .swiper-slide-active.kenburns .swiper-slide-bg{ animation:none !important; transform:none !important; }
}

/* Vídeo em background */
.video-wrap{ position:absolute; inset:0; overflow:hidden; }
.hero-video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.video-overlay{ position:absolute; inset:0; background-image:linear-gradient(to bottom, transparent, rgba(25,53,50,.9)); }

/* ===================== MEGA PORTFÓLIO ===================== */
/* Base (funciona para .tile* e .mega-card*) */
.mega-portfolio{
  display:grid;
  grid-template-columns:repeat(var(--cols,5), minmax(160px,1fr));
  gap:22px; align-items:start;
  padding:18px 24px 24px;
}
.mega-portfolio.dense{ grid-template-columns:repeat(var(--cols,6), minmax(140px,1fr)); gap:18px; }

/* Variante “tile” */
.mega-portfolio .tile{ display:block; text-decoration:none; }
.mega-portfolio .tile-img{
  display:block; width:100%;
  aspect-ratio:var(--tile-aspect, 4/3);
  background:#f4f4f4; overflow:hidden; border-radius:8px;
  box-shadow:0 1px 0 rgba(0,0,0,.04);
}
.mega-portfolio .tile-img img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s ease; }
.mega-portfolio .tile:hover .tile-img img{ transform:scale(1.03); }
.mega-portfolio .tile-title{
  display:block; margin-top:.75rem; font-weight:600; color:var(--ink); font-size:1.05rem; line-height:1.3;
}
.mega-portfolio .tile-sub{ display:block; margin-top:.125rem; color:#6c757d; font-size:.9rem; }

/* Variante “mega-card” */
.mega-card{
  display:flex; flex-direction:column; text-decoration:none;
  background:rgba(255,255,255,.6); border-radius:12px; padding:12px;
  border:1px solid rgba(0,0,0,.06);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.mega-card:hover{ transform:translateY(-2px); background:#fff; box-shadow:0 10px 24px rgba(0,0,0,.08); }
.mega-card .thumb{
  width:100%; aspect-ratio:4/3; overflow:hidden; border-radius:10px; background:#f6f4ec;
}
.mega-card .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.mega-card .title{ margin-top:10px; font-weight:600; color:#111; font-size:clamp(13px,1.6vw,16px); line-height:1.25; }
.mega-card .meta{ margin-top:4px; font-size:12px; opacity:.72; }

/* Responsividade do grid */
@media (max-width:1199.98px){
  .mega-portfolio{ gap:22px; }
  .mega-portfolio .tile-title{ font-size:1rem; }
}
@media (max-width:991.98px){
  .mega-portfolio,
  .mega-portfolio.dense{ grid-template-columns:repeat(2, minmax(140px,1fr)); gap:16px; padding:10px 12px 14px; }
  .mega-portfolio .tile-title{ font-size:.95rem; }
}

/* ===================== TWENTYTWENTY (Antes/Depois) ===================== */
.twentytwenty-wrapper,
.twentytwenty-container{ width:100%; max-width:100%; overflow:hidden; box-shadow:0 1px 8px rgba(0,0,0,.3); }
.twentytwenty-container img{ width:100%; height:auto; display:block; }

/* ===================== SLIDE ESSENTIALS ===================== */
*{ text-rendering:optimizeLegibility; -webkit-font-smoothing:antialiased; }

.slide{
  min-height:700px;
  background:var(--cnvs-body-color);
  color:var(--cnvs-text-color);
  font-family:var(--cnvs-body-font), system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
}
.title{
  font-family:var(--cnvs-primary-font), serif;
  font-size:clamp(2.5rem, 6vw, 4rem);
  line-height:1.1; font-weight:700; color:var(--cnvs-themecolor); margin:0 0 .5em;
}
.subtitle{
  font-size:clamp(1rem, 2.4vw, 1.25rem);
  color:var(--cnvs-color); margin:0 0 1.5em;
}
.cta{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.85rem 1.25rem; border-radius:9999px;
  border:1px solid var(--cnvs-themecolor);
  background:var(--cnvs-color2); color:var(--cnvs-themecolor);
  font-weight:600; transition:transform .15s ease, opacity .15s ease; text-decoration:none;
}
.cta--primary{ background:var(--cnvs-themecolor); color:var(--cnvs-body-color); border-color:var(--cnvs-themecolor); }
.cta:hover{ opacity:.9; transform:translateY(-1px); }

.line-separator{ width:1px; height:40px; background-color:var(--cnvs-themecolor); opacity:.75; }

.img-hover-in{ overflow:hidden; border-radius:10px; }
.img-hover-in img{ display:block; width:100%; height:auto; transition:transform .5s ease-out, border-radius .5s ease-out; }
.img-hover-in:hover img{ transform:scale(1.08); }

@keyframes ticker{ 0%{ transform:translateX(0); } 100%{ transform:translateX(-50%); } }
.ticker-wrap{ overflow:hidden; width:100%; }
.ticker{ display:inline-flex; gap:2rem; white-space:nowrap; animation:ticker 30s linear infinite; will-change:transform; }
.ticker-item{ font-size:clamp(1.25rem, 3vw, 2rem); text-transform:uppercase; color:var(--cnvs-themecolor); }

@keyframes rotating{ from{ transform:rotate(0deg); } to{ transform:rotate(360deg); } }
.rotating{ animation:rotating 20s linear infinite; }

.min-h-700{ min-height:700px !important; }
.min-h-400{ min-height:400px !important; }
.bg-body{ background:var(--cnvs-body-color) !important; }
.text-accent{ color:var(--cnvs-color) !important; }
.text-theme{ color:var(--cnvs-themecolor) !important; }
/* fallback visual se o RS6 não montar */
#slider.revslider-wrap { min-height: 70vh; }
#rev_slider_home_wrapper, #rev_slider_home { min-height: inherit; }
#slider{height:auto!important}

.twentytwenty-container { position: relative; }
.twentytwenty-handle { touch-action: none; user-select: none; cursor: ew-resize; z-index: 3; }
.twentytwenty-wrapper { overflow: hidden; }
#content { position: relative; z-index: 1; } /* fica acima de layers do slider */


#logos-swiper .swiper-slide { width: auto; }           /* para slidesPerView:'auto' */
#logos-swiper img { height: 60px; width: auto; display:block; opacity:.9; }
#logos-swiper img:hover { opacity: 1; }
.bg-color-slide {
    background-color: rgb(245, 245, 245) !important;
}

.bg-color {
    background-color: rgb(255 107 107) !important;
}
.bg-dark-transp{
background-color: #333333e3;}

/* faixa escura com gradiente e leve “glow” */
.cta-band{
  position:relative;
  background: linear-gradient(180deg,#1f1f1f 0%, #232323 60%, #1b1b1b 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), inset 0 -1px 0 rgba(0,0,0,.2);
}

/* pills dos contactos */
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .65rem 1rem;
  text-decoration: none;
  color: #212529;
  background: #EFE33F;
  border-radius: 50px; /* torna o pill mais suave */
  transition: all 0.25s ease-in-out; /* animação suave */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* leve sombra */
}

.contact-pill:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #444, #d6ca2f);
  color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* sombra mais forte no hover */
}

/* pills dos contactos - versão verde telefone */
.contact-pill-green {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .65rem 1rem;
  text-decoration: none;
  color: #212529;
  background: #3eec62; /* verde principal */
  border-radius: 50px; /* pill arredondado */
  transition: all 0.25s ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-pill-green:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1f6f2c, #2fb94a); /* gradiente elegante */
  color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* botão principal mais presente */
.btn-cta{
  background:#d93030; border-color:#d93030;
}
.btn-cta:hover{ background:#c32828; border-color:#c32828; }

/* pequenos detalhes visuais (opcionais) */
.cta-dot{
  position:absolute; width:140px; height:140px; border-radius:50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.08), transparent 70%);
  pointer-events:none; filter: blur(2px);
}
.cta-dot-1{ top:-30px; left:5%; }
.cta-dot-2{ bottom:-40px; right:8%; }

/* utilitário */
.opacity-85{ opacity:.85; }
.yellow-light{
    color: #fff7d9;
}
.bg-grey-light{
    background-color: #f7f7f7!important;
}
address {
    font-size: 13px;
    font-weight: 800;
}
.h-bg-dark:hover {
    color: #ffffff!important;
}
@media (min-width: 991px) {
    .negative-text-margin {
        margin-left: -120px;
    }
}

/*/* Header acima de tudo (já tens alto, mantenho simples) */
#header,
#header-wrap { position: relative; z-index: 30002 !important; }

/* Mapa: nunca cria stacking alto e tem altura razoável */
#map{
  position: relative;
  z-index: 0;
  height: clamp(320px, 52vh, 520px);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  overflow: hidden;
}

/* Controles Leaflet (opcional, tema vermelho) */
.leaflet-control-zoom a,
.leaflet-bar a{
  background:#fff; color:#C62828;
  border-radius:8px !important;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 2px 8px rgba(0,0,0,.06);
}
.leaflet-control-zoom a:hover,
.leaflet-bar a:hover{
  background:#FF6B6B; color:#fff; border-color:#FF6B6B;
}

/* Popup com leve destaque (opcional) */
.leaflet-popup-content-wrapper{
  border-radius:12px;
  border-left:4px solid #C62828;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
}

/* O nosso marker é um divIcon → sem fundo */
.leaflet-marker-icon.pin-svg{ background:none; border:0; }


.swiper-pagination-progress {
  position: relative;
  height: 3px;
  background: rgba(0,0,0,.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: .5rem;
}
.swiper-pagination-bar,
.swiper-pagination-bar-active {
  position: absolute; inset: 0 0 0 0;
}
.swiper-pagination-bar { background: transparent; }
.swiper-pagination-bar-active {
  width: 0%;
  background: currentColor; /* herda cor do texto/título */
}
.swiper-tab-link.active .swiper-tab-title { color: var(--cnvs-themecolor, #c62828); }
#swiper-tab .swiper { width: 100%; }
#swiper-tab .swiper-slide { display: flex; }
#swiper-tab .faq-slide-img{
  display:block; width:100%; height:auto;
  border-radius: 16px 16px 0 0;
}
@media (min-width:1200px){
  #swiper-tab .faq-slide-img{    
    object-fit: cover;
  }
}
/* layout do slide (imagem + texto), sem inline widths */
.faq-slide{
  display: grid;
  grid-template-columns: minmax(220px, 42%) 1fr; /* img ~42%, texto ocupa o resto */
  gap: 24px;
  align-items: center;
}
.faq-slide .faq-slide-media img{ display:block; width:100%; height:auto; }

.faq-slide .faq-slide-body{ min-width: 0; } /* permite quebrar texto sem encolher a 0 */
.faq-slide .faq-slide-body h3{ line-height:1.2; }

/* stacka no tablet/telemóvel grande */
@media (max-width: 1399.98px){
  .faq-slide{ grid-template-columns: minmax(200px, 46%) 1fr; gap:20px; }
}
@media (max-width: 1199.98px){
  .faq-slide{ grid-template-columns: 1fr; }
}
/* ===== Lista FAQ (esquerda) ===== */

.swiper-tab-link{
  padding: 14px 0 18px;
  border-bottom: none !important;
  cursor: pointer;
}



.swiper-tab-title{
  display:inline-block;
  margin: 0;
  font-weight: 500;
  line-height: 1.25;
  font-family: 'roboto';
  font-size: 18px;
}
.lead {
   font-family: 'roboto'; 
}

.swiper-tab-content{
  margin: .75rem 0 0;
  color:  #60694d;
  font-family: 'roboto';
  font-size: 16px;
  font-weight: 500;
  max-height: 0;              /* fechado por defeito */
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease, opacity .25s ease;
}

/* estado activo = aberto */
.swiper-tab-link.active .swiper-tab-title{
  color: var(--cnvs-themecolor, #111);
}
.swiper-tab-link.active .swiper-tab-content{
  max-height: 320px;          /* valor razoável; ajusta se precisares */
  opacity: 1;
}

/* sublinhado fino do activo (estilo demo) */
.swiper-tab-link .swiper-pagination-progress{ display:none; }
.swiper-tab-link.active .swiper-pagination-progress{
  display:block;
  width: 200px;  /* comprimento do traço */
  margin-top: 10px;
}

/* estados inactivos mais “apagados” */
.swiper-tab-link:not(.active){
  color: #b5b8bd;
}
.swiper-tab-link:not(.active) .swiper-tab-title{
  color: #b5b8bd;
}
.faq-number {
  font-weight: 700;
  font-size: 1.5rem;
  color: #999;
  margin-right: .5rem;
}

.swiper-tab-link.active .faq-number {
  color: var(--cnvs-themecolor, #c62828);
}


/* Linha única que serve de separador + progress bar */
.faq-progress {
  position: relative;
  height: 2px;
  background: rgba(0,0,0,.08);
  margin-top: .75rem;
  overflow: hidden;
}

.faq-progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--cnvs-themecolor, #c62828);
  transition: width linear;
}
/* Escurecer fundo */
.page-title.has-overlay {
  position: relative;
  overflow: hidden;
}

.page-title.has-overlay::after {
  content: "";
  position: absolute;
  inset: 0;                /* cobre tudo */
  background: rgba(0, 0, 0, 0.45); /* preto 45% */
  z-index: 1;
}

/* Garante que o conteúdo aparece acima do overlay */
.page-title .container {
  position: relative;
  z-index: 2;
}

.whatsapp-button {
  position: fixed;
  right: 18px;
  bottom: 50%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);   /* posição inicial mais baixa */
  transition: opacity .35s ease, transform .35s ease;
  z-index: 1050;
}

.whatsapp-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);        /* volta ao lugar normal */
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.whatsapp-button.is-visible {
  animation: pulse 1.8s infinite;
}
/* =========================================================
   COLOCAR NO TEU custom.css (depois de rs6.css)
   Objectivo: não mexer no CSS “core” do RS6; só overrides.
   Comentários em PT-PT.
========================================================= */

/* 1) Alturas mínimas e prevenção de cortes (muitos “bugs visuais”
      são só altura colapsada ou overflow a mais) */
#slider,
#slider rs-module-wrap,
#slider rs-module { min-height: 60vh; }             /* ajusta para 70–80vh se quiseres */
#wrapper { overflow: visible; }                      /* evita que cortes as layers do RS */

/* 2) Fallback visível quando o JS detecta que o RS6 não inicializou
      (no meu init, quando falha eu coloco .rs-fallback no #slider) */
#slider.rs-fallback rs-module-wrap { visibility: visible !important; }
#slider.rs-fallback .rev-slidebg {
  width: 100%; height: 80vh; object-fit: cover; display: block;
}


/* 8) Z-index do header sticky por cima do slider (se precisares) */
#header { position: sticky; top:0; z-index: 1000; }
/* Overlay escuro leve em TODOS os slides */
#rev_slider_shop rs-slide {
  position: absolute; /* já é, mas reforça */
}
#rev_slider_shop rs-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* gradiente suave: mais escuro em baixo */
  background: linear-gradient(180deg,
              rgba(0,0,0,.15) 0%,
              rgba(0,0,0,.25) 40%,
              rgba(0,0,0,.45) 100%);
  z-index: 2; /* abaixo das layers de texto (3+), acima do bg */
}

/* Se precisares ainda mais no 1º (vídeo), escurece só esse: */
#rev_slider_shop rs-slide[data-key="slider-1"]::before {
  background: linear-gradient(180deg,
              rgba(0,0,0,.20) 0%,
              rgba(0,0,0,.35) 40%,
              rgba(0,0,0,.55) 100%);
}

/* (Opcional) baixa brilho do vídeo do slide-1 */
#rev_slider_shop rs-slide[data-key="slider-1"] rs-bgvideo video {
  filter: brightness(.7) contrast(1.05) saturate(1.05);
}
#rev_slider_shop .headline{
    letter-spacing: -.012em !important;   /* +espaço entre letras */
    color:#FFF !important;
    background:rgba(0,0,0,.15);        /* sombra de fundo suave */
    padding:.35em .6em;
    border-radius:.6rem;
    box-shadow:0 12px 30px rgba(0,0,0,.15);
    text-shadow:0 1px 0 rgba(0,0,0,.45);
    display:inline-block;
  }
  /* Subtítulo/linha de apoio */
  #rev_slider_shop .subhead{
    letter-spacing:.10em !important;
    color:#FFF !important;
    background:rgba(0,0,0,.25);
    padding:.3em .55em;
    border-radius:.45rem;
    box-shadow:0 8px 24px rgba(0,0,0,.18);
    display:inline-block;
  }
 
  
  #rev_slider_shop .contrast-overlay{  background: transparent !important; } /* .35 ~ .55 */

  
  .pro-feature{
    background:#fff;border:1px solid rgba(16,24,40,.06);border-radius:1rem;
    padding:1.25rem 1.25rem 1.1rem;box-shadow:0 6px 18px rgba(16,24,40,.06);
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  .pro-feature:hover{ transform:translateY(-3px);box-shadow:0 10px 24px rgba(16,24,40,.10);border-color:rgba(16,24,40,.12); }
  .pro-icon-wrap{
    width:48px;height:48px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;
    background:linear-gradient(180deg,#fff 0%,#F8FAFC 100%);border:1px solid rgba(16,24,40,.10);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.6);margin-bottom:.75rem;
  }
  .pro-icon-wrap i{ line-height:1; }
  .bg-yellow{ background:#FDE047 !important; }

  /* ===== Secção com fundo *cover* ancorado em baixo ===== */
  .section-1-bg{
    position:relative;margin:0 !important; /* sem margem inferior */
    min-height: clamp(720px, 90svh, 980px);
    background:#F5F5F5 var(--bg-url) left bottom / cover no-repeat;
    overflow:hidden;
    padding: clamp(28px,3vw,48px) 0 clamp(24px,2.4vw,36px);
  }
  /* véu suave no topo para legibilidade */
  .section-1-bg::before{
    content:"";position:absolute;inset:0;pointer-events:none;z-index:1;
    background:linear-gradient(180deg,
      rgba(245,245,245,.86) 0%,
      rgba(245,245,245,.55) 35%,
      rgba(245,245,245,0) 70%
    );
  }
  .section-1-bg .container{ position:relative; z-index:2; }
  
  
/* padding vertical generoso para o conteúdo */
.section-1-bg .container{
  padding-top: clamp(3rem, 4vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 8rem);
}

/* a faixa da imagem de fundo fica também mais alta */
.section-1-bg::after{
  height: clamp(320px, 46vh, 620px);
}

/* transição suave entre imagem e fundo liso */
.section-1-bg::before{
  height: clamp(120px, 18vh, 240px);
}

/* opcional: um pouco mais de respiro só no bloco de texto */
.hero-copy{
  padding-top: clamp(.75rem, 1.8vw, 2rem);
  padding-bottom: clamp(.75rem, 1.8vw, 2rem);
}

  .fs-16{
      font-size: 16px;
  }
/* versão compacta */
.intro-copy{ font-size: clamp(0.95rem, 0.75rem + 0.40vw, 1.125rem); /* ~15px → ~18px */ }

/* PT-PT: cria um “halo” suave e pulsante à volta do botão para chamar a atenção */
.btn-add-highlight{
  position: relative;          /* necessário para posicionar o pseudo-elemento */
  isolation: isolate;          /* garante que o halo fica atrás do botão */
  font-weight: 600;            /* ligeiro reforço de peso para o texto */
}

/* PT-PT: pseudo-elemento que faz o brilho/pulso */
.btn-add-highlight::before{
  content: "";
  position: absolute;
  inset: -4px;                 /* expande ligeiramente além do botão */
  border-radius: 9999px;       /* acompanha o rounded-pill */
  box-shadow: 0 0 0 0 rgba(25,135,84,.5);  /* usa o verde do .btn-success (BS) */
  z-index: -1;                 /* fica por trás do botão */
  animation: btnPulse 2.2s ease-in-out infinite;
}

/* PT-PT: animação do pulso (expande e desvanece) */
@keyframes btnPulse{
  0%   { box-shadow: 0 0 0 0   rgba(25,135,84,.45); }
  70%  { box-shadow: 0 0 0 12px rgba(25,135,84,0); }
  100% { box-shadow: 0 0 0 0   rgba(25,135,84,0); }
}

/* PT-PT: acessibilidade — desativa animações para quem prefere menos movimento */
@media (prefers-reduced-motion: reduce){
  .btn-add-highlight::before{ animation: none; }
}

/* PT-PT: micro-feedback no ícone para reforçar o CTA ao pairar */
.btn-add-highlight .fa-circle-plus{ transition: transform .2s; }
.btn-add-highlight:hover .fa-circle-plus{
  transform: scale(1.15) rotate(10deg);
}

.cortes 
    .btn-group>.btn-group:not(:last-child)>.btn, .btn-group>.btn.dropdown-toggle-split:first-child, .btn-group>.btn:not(:last-child):not(.dropdown-toggle) {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 0;
}
.cortes button{padding: 8px 16px}

/* PT-PT: botão principal com o teu tom “ink” e micro-interações */
.btn-main{
  /* usa a variável que já tens no custom.css */
  background:  #34ab74;
  border-color: #34ab74;
  color:#fff;
  font-weight: 700;                 /* dá mais presença ao texto */
  letter-spacing: .01em;            /* ligeiro tracking para legibilidade */
  border-radius: .6rem;             /* cantos suaves */
  box-shadow: 0 2px 0 rgba(0,0,0,.12), 0 8px 20px rgba(0,0,0,.10); /* profundidade */
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-main:hover{
    background:  #29c47d;
    color:#fff;
    filter: brightness(1.05);         /* ligeiro “lift” de cor */
  transform: translateY(-1px);      /* micro elevação ao hover */
  box-shadow: 0 3px 0 rgba(0,0,0,.10), 0 10px 24px rgba(0,0,0,.12);
}

.btn-main:active{
  transform: translateY(0);         /* remove a elevação ao clicar */
  box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
}

/* PT-PT: foco visível e acessível (teclado) */
.btn-main:focus-visible,
.btn-outline-secondary:focus-visible{
  outline: 3px solid #A8D0FF;       /* azul claro compatível com o tema */
  outline-offset: 2px;
}

/* PT-PT: responsividade — em mobile ambos a largura total; no ≥sm ficam lado a lado */
@media (max-width: 575.98px){
  .form-actions .btn{ width:100%; }
}

/* PT-PT: opção — tornar o “Cancelar” visualmente mais alinhado em altura com o CTA */
.btn-outline-secondary{
  border-radius: .6rem;
  font-weight: 600;
}
/* PT-PT: opcional — ligeiro reforço visual para os badges */
#prodSheetWrap .badge{font-weight:600; letter-spacing:.2px}

/* tamanhos fixos por TIPO (não à escala) */
.shape{border:2px solid #FF6B6B;border-radius:10px;background:#fff;transition:none;}
.shape.sq{width:180px;height:180px;}
.shape.rect-h{width:260px;height:160px;}
.shape.rect-v{width:160px;height:260px;}

.encomenda{padding-top: 0!important; background-color: #f6f6f6;}

/* botão fechar (canto superior direito) */
.bg-primary{
    background-color: rgb(92 121 164) !important; 
}
.card-header h6{color:#FFFFFF;}
.text-primary{color:rgb(92 121 164) !important;}

  /* Esconde o ícone custom completamente */
  .live-validate-icon{ display:none !important; }

  /* Garante espaço e posição dos ícones nativos do BS */
  .form-control.is-valid,
  .was-validated .form-control:valid,
  .form-control.is-invalid,
  .was-validated .form-control:invalid{
    padding-right: 2.25rem;
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  }
  
  /* Checkbox alinhado, sem moldura de input */
.check-as-input{
  display:flex; align-items:center; gap:.5rem;
  padding:.375rem .5rem;
  min-height:calc(1.5em + .75rem + 2px);   /* altura dos inputs */
  border:1px solid transparent;            /* sem linhas */
  background:transparent;
  border-radius:.375rem;
}

/* anel de foco igual ao dos inputs, sem reaparecer a borda */
.check-as-input:focus-within{
  border-color: transparent;
  outline: 2px solid rgba(77,171,247,.9);
  outline-offset: 2px;
  box-shadow:none;
  background:#fff;                          /* opcional: dá contraste no foco */
}

/* evita brilho no próprio checkbox; usamos o anel do wrapper */
.check-as-input .form-check-input:focus{ box-shadow:none; }

/* tamanho do “quadradinho” */
.check-as-input .form-check-input{
  width:1.25rem; height:1.25rem; margin-top:0;
}
.check-as-input .form-check-label{ cursor:pointer; }
 
/* CSS Adicional para Filtros do Catálogo - Reutiliza estilos das encomendas */

/* Container principal do catálogo */
.catalog-container {
  display: flex;
  gap: 1.5rem;
  min-height: 60vh;
  margin-top: 1rem;
}

/* Sidebar de filtros - mesma base das encomendas */
.filters-sidebar {
  flex: 0 0 300px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 120px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.filters-sidebar::-webkit-scrollbar {
  width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Grupos de filtros - mesmo estilo das encomendas */
.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group h6 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.filter-group h6 i {
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
}

.filter-group .form-select,
.filter-group .form-control {
  font-size: 0.875rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.filter-group .form-select:focus,
.filter-group .form-control:focus {
  border-color: #4dabf7;
  box-shadow: 0 0 0 0.2rem rgba(77,171,247,.25);
}

.filter-group .form-text {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  color: #6c757d;
}

/* Filtros avançados - mesmo comportamento das encomendas */
.advanced-filters {
  display: none;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 2px solid #e9ecef;
  animation: fadeIn 0.3s ease;
}

.advanced-filters.show {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Campo de busca especial */
.search-filter {
  margin-bottom: 1.5rem;
}

.search-filter .form-control {
  background: #fff;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.search-filter .form-control:focus {
  border-color: #FF6B6B;
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
  background: #fff;
}

/* Ações dos filtros - mesmo estilo das encomendas */
.filter-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.filter-actions .btn {
  flex: 1;
  font-size: 0.8rem;
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  font-weight: 500;
}

/* Resumo de filtros ativos - mesmo das encomendas */
.filter-summary {
  background: #e7f5ff;
  border: 1px solid #b6e0fe;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
}

.filter-summary h6 {
  color: #0c5aa6;
  margin-bottom: 0.5rem;
  border: none;
  padding: 0;
}

#active-filters-list .badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.6rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  background: #FF6B6B !important;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

#active-filters-list .btn-close {
  font-size: 0.7em;
  padding: 0;
  margin: 0;
  opacity: 0.8;
}

#active-filters-list .btn-close:hover {
  opacity: 1;
}

/* ===== LAYOUT PRINCIPAL ===== */
/* ===== VARIÁVEIS E FUNDAÇÃO ===== */
:root {
  --brand-primary: #FF6B6B;
  --brand-primary-hover: #ff5252;
  --brand-primary-light: rgba(255, 107, 107, 0.1);
  --brand-primary-rgb: 255, 107, 107;
  
  --gray-50: #f8f9fa;
  --gray-100: #e9ecef;
  --gray-200: #dee2e6;
  --gray-600: #6c757d;
  --gray-900: #212529;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.12);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-full: 20px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s ease;
}

/* ===== LAYOUT PRINCIPAL ===== */
.catalog-container {
  display: flex;
  gap: 1.5rem;
  min-height: 60vh;
  margin-bottom: 3rem;
}

.filters-sidebar {
  flex: 0 0 260px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.products-content {
  flex: 1;
  min-width: 0;
}

/* Espaçamento inferior */
.content-wrap {
  padding-bottom: 3rem !important;
}

/* ===== GRUPOS DE FILTROS ===== */
.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group h6 {
  color: var(--gray-900);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.filter-group .form-select,
.filter-group .form-control {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border-color: var(--gray-100);
  transition: var(--transition-fast);
}

.filter-group .form-select:focus,
.filter-group .form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-light);
}

.filter-group .form-select:disabled,
.filter-group .form-control:disabled {
  opacity: 0.6;
  background-color: var(--gray-50);
  cursor: not-allowed;
}

.filter-group .form-text {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  color: var(--gray-600);
}

/* ===== FILTROS AVANÇADOS ===== */
.search-filter {
  margin-bottom: 1rem;
}

.advanced-filters {
  display: none;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--gray-100);
  animation: slideDown 0.3s ease;
}

.advanced-filters.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.filter-actions .btn {
  flex: 1;
  font-size: 0.8rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

/* ===== HEADER DOS PRODUTOS - MELHORADO ===== */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: white;
  
}

.products-header > div:first-child {
  flex: 1;
  min-width: 0;
}

.products-header h2 {
  color: var(--gray-900);
  margin: 0 0 0.25rem 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.products-header #products-count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  background: var(--gray-50);
  border-radius: 16px;
}

/* Select de ordenação melhorado */
.products-header .d-flex {
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.products-header label {
  color: var(--gray-600);
  font-weight: 600;
  white-space: nowrap;
  margin: 0;
}

.products-header .form-select {
  min-width: 200px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  background-color: white;
}

.products-header .form-select:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-light);
}

.products-header .form-select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--brand-primary-light);
}

/* Ícone de ordenação */
.products-header label::before {
  content: '\f0dc';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 0.5rem;
  color: var(--brand-primary);
}

/* ===== BREADCRUMB - VISUAL APRIMORADO ===== */
.breadcrumb {
  background: transparent;
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.breadcrumb-item {
  color: var(--gray-600);
  font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  color: var(--gray-400);
  padding: 0 0.75rem;
}

.breadcrumb-item a {
  color: var(--gray-700);
  text-decoration: none;
  transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--brand-primary);
}

.breadcrumb-item.active {
  color: var(--brand-primary);
  font-weight: 600;
}

/* ===== GRID DE PRODUTOS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  transition: var(--transition-base);
}

.products-grid.loading {
  opacity: 0.6;
  pointer-events: none;
}

.products-grid .alert {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  background: var(--gray-50);
  border: 2px dashed var(--gray-100);
  border-radius: var(--radius-md);
  color: var(--gray-600);
}

/* ===== CARTÕES DE PRODUTO ===== */
.product-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.product-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

/* ===== IMAGEM DO PRODUTO ===== */
.product-image {
  position: relative;
  padding-bottom: 70%;
  overflow: hidden;
  background: var(--gray-50);
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-overlay .btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: var(--transition-fast);
}

.product-overlay .btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.product-overlay .btn-primary:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  transform: scale(1.05);
}

/* ===== BADGES DE LINHA ===== */
.product-line-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
}

.badge-express-1 {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #ff8e53 100%);
  color: white;
  animation: pulse-express 2.5s ease-in-out infinite;
}

.badge-express-2 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.badge-premium {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.badge-standard {
  background: rgba(108, 117, 125, 0.9);
  color: white;
}

@keyframes pulse-express {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.85;
    transform: scale(1.03);
  }
}

/* ===== INDICADOR DE MÚLTIPLAS IMAGENS ===== */
.images-indicator {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 5;
  backdrop-filter: blur(6px);
}

.images-indicator i {
  font-size: 0.85rem;
}

/* ===== INFO DO PRODUTO ===== */
.product-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  min-height: 2rem;
  margin: 0;
}

.product-title a {
  color: var(--gray-900);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: block;
}

.product-title a:hover {
  color: var(--brand-primary);
}

/* ===== DIMENSÕES DO PRODUTO ===== */
.product-dimensions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  transition: var(--transition-base);
}

.product-dimensions:hover {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  transform: translateX(3px);
}

.dimension-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: white;
  border-radius: 6px;
  color: var(--brand-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.dimension-label i {
  font-size: 0.8rem;
}

.dimension-values {
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: 0.3px;
}

/* ===== CHIPS DE ESPESSURA ===== */
.product-thickness {
  margin: 0;
}

.thickness-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.thickness-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  background: rgba(var(--brand-primary-rgb), 0.08);
  border: 1.5px solid rgba(var(--brand-primary-rgb), 0.25);
  border-radius: var(--radius-md);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-primary);
  transition: all var(--transition-fast);
  cursor: default;
  user-select: none;
}

.thickness-chip:hover {
  background: rgba(var(--brand-primary-rgb), 0.15);
  border-color: rgba(var(--brand-primary-rgb), 0.5);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(var(--brand-primary-rgb), 0.2);
}

.thickness-chip:active {
  transform: translateY(0);
}

.thickness-more {
  background: rgba(108, 117, 125, 0.08);
  border-color: rgba(108, 117, 125, 0.25);
  color: var(--gray-600);
  cursor: help;
}

.thickness-more:hover {
  background: rgba(108, 117, 125, 0.15);
  border-color: rgba(108, 117, 125, 0.4);
}

/* ===== TEMPO DE ENTREGA ===== */
.product-delivery {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  
  font-size: 0.75rem;
  transition: var(--transition-base);
}


.product-delivery i {

  font-size: 0.9rem;
  animation: truck-move 2.5s ease-in-out infinite;
}

.product-delivery span {
  color: #055160;
  font-weight: 600;
}

@keyframes truck-move {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

/* ===== PREÇO DO PRODUTO ===== */
.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 2px solid var(--gray-100);
  letter-spacing: 0.5px;
}

.product-info[data-stock="low"] .product-price::after {
  content: "Últimas unidades";
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #dc3545;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 0.25rem;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.loading-spinner.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.loading-spinner .spinner-border {
  width: 3rem;
  height: 3rem;
  color: var(--brand-primary);
}

/* ===== PAGINAÇÃO ===== */
#pagination-nav .pagination {
  margin: 0;
  justify-content: center;
  gap: 0.5rem;
}

#pagination-nav .page-item {
  margin: 0;
}

#pagination-nav .page-link {
  color: var(--gray-600);
  border: 2px solid var(--gray-100);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition-fast);
  background: white;
}

#pagination-nav .page-link:hover {
  color: var(--brand-primary);
  background: rgba(var(--brand-primary-rgb), 0.05);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

#pagination-nav .page-item.active .page-link {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb), 0.3);
}

/* ===== LIGHTBOX GALERIA ===== */
.gallery-lightbox,
.image-zoom-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  z-index: 9999;
  padding: 20px;
  overflow: auto;
}

.gallery-lightbox.active,
.image-zoom-modal.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.image-zoom-modal {
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 26%;
  right: 20px;
  background: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-close:hover {
  background: var(--brand-primary);
  color: white;
  transform: rotate(90deg) scale(1.1);
}

.lightbox-main-image,
.image-zoom-modal img {
  max-width: 90%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-thumbnails {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  overflow-x: auto;
  max-width: 90%;
}

.lightbox-thumb {
  width: 85px;
  height: 85px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition-fast);
  border: 3px solid transparent;
}

.lightbox-thumb:hover {
  opacity: 0.9;
  transform: scale(1.08);
}

.lightbox-thumb.active {
  opacity: 1;
  border-color: var(--brand-primary);
  box-shadow: 0 0 20px rgba(var(--brand-primary-rgb), 0.6);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-nav:hover {
  background: var(--brand-primary);
  color: white;
  transform: translateY(-50%) scale(1.15);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  top: 26%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1199.98px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 991.98px) {
  .catalog-container {
    flex-direction: column;
  }
  
  .filters-sidebar {
    flex: none;
    position: static;
    margin-bottom: 1.5rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .products-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .filter-actions {
    flex-direction: column;
  }
  
  .lightbox-nav {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .lightbox-thumbnails {
    padding: 12px;
  }
  
  .lightbox-thumb {
    width: 65px;
    height: 65px;
  }
}

@media (max-width: 575.98px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-info {
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .product-dimensions,
  .product-delivery {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .thickness-chip {
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
  }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --gray-50: #1a202c;
    --gray-100: #2d3748;
    --gray-200: #4a5568;
    --gray-600: #cbd5e0;
    --gray-900: #f7fafc;
  }
  
  .product-card {
    background: #1a202c;
  }
  
  .dimension-label {
    background: #2d3748;
    color: var(--brand-primary);
  }
}

/* ===== CÓDIGO DO PRODUTO ===== */
.product-code {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 6px;
  background: linear-gradient(135deg, 
    rgba(var(--brand-primary-rgb), 0.12) 0%, 
    rgba(var(--brand-primary-rgb), 0.08) 100%);
  border: 1.5px solid rgba(var(--brand-primary-rgb), 0.3);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
  color: var(--brand-primary);
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.product-title:hover .product-code {
  background: linear-gradient(135deg, 
    rgba(var(--brand-primary-rgb), 0.2) 0%, 
    rgba(var(--brand-primary-rgb), 0.15) 100%);
  border-color: rgba(var(--brand-primary-rgb), 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(var(--brand-primary-rgb), 0.2);
}

/* Layout do título com código */
.product-title a {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Alternativa: Código inline antes do nome */
.product-title.inline-code a {
  display: block;
}

.product-title.inline-code .product-code {
  vertical-align: middle;
}

/* Responsive */
@media (max-width: 575.98px) {
  .product-code {
    font-size: 0.65rem;
    padding: 1px 6px;
  }
}


/* Transição durante loading */
.products-grid.loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Destacar header durante scroll */
.products-header {
  scroll-margin-top: 100px;
}

/* ===== LEGENDA DE PRAZOS ===== */
.delivery-legend {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.delivery-legend-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
  font-size: 1rem;
}

.delivery-legend-header i {
  color: var(--brand-primary);
  font-size: 1.25rem;
}

.delivery-legend-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.delivery-legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: transparent;
}

.badge-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Badge para produtos sob encomenda */
.badge-custom-order {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
}

.delivery-time {
  font-size: 0.85rem;
  color: var(--gray-700);
  font-weight: 500;
}

/* Destaque especial para campo de quantidade */


@keyframes pulse-border {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.15);
  }
  50% {
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.35);
  }
}



.qty-highlight-wrapper .form-label {
  color: #e65100;
}


@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.qty-highlight-wrapper input.form-control {
  border: 1px solid #646464;
  background: #fff;  
 

}


.qty-highlight-wrapper input.form-control.is-invalid {
  border-color: #d32f2f;
  background: #ffebee;
}


.qty-highlight-wrapper .invalid-feedback {  
  padding: 0.5rem;
  
}

/* Ícone pulsante */
.qty-highlight-wrapper .fa-calculator {
  animation: pulse-icon 1.5s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.mxw-150{max-width: 150px;}

/* Força a seta à direita em todos os selects */
select, .form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 1rem;
  padding-right: 2rem;               /* espaço para a seta */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}

/* Estado desativado continua a mostrar a seta */
select:disabled, .form-select:disabled {
  opacity: 1;
}

/* Oculta a seta nativa do IE/Edge antigo */
select::-ms-expand { display: none; }

/* Não aplicar em selects múltiplos ou com size > 1 */
select[multiple], .form-select[multiple],
select[size]:not([size="1"]), .form-select[size]:not([size="1"]) {
  background-image: none !important;
  padding-right: .75rem;
}
/* seta à direita em TODOS os single-selects da página de encomenda */
.encomenda select:not([multiple]):not([size]):not([size="1"]),
.encomenda .form-select:not([multiple]):not([size]):not([size="1"]) {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;

  /* usa shorthand para não ser apagado por um background posterior */
  background: var(--bs-form-select-bg, #fff)
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M4 6l4 4 4-4'/%3E%3C/svg%3E")
              no-repeat right .75rem center / 1rem !important;

  padding-right: 2.25rem !important; /* espaço para a seta */
}

/* mantém a seta mesmo desativado */
.encomenda select:disabled,
.encomenda .form-select:disabled {
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M4 6l4 4 4-4'/%3E%3C/svg%3E") !important;
  background-position: right .75rem center !important;
  background-size: 1rem !important;
}

select::-ms-expand { display: none; } /* IE antigo */

#btnFinalizarEncomenda:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

#btnFinalizarEncomenda:disabled:hover {
  transform: none;
}

/* ==========================================
   CATÁLOGOS DE FORNECEDORES
   ========================================== */
#supplier-catalogs {
    margin-top: 50px;
    animation: slideDown 0.3s ease-out;
}

#supplier-catalogs .card {
    border: 1px solid #e9ecef;
    transition: box-shadow 0.2s ease;
}

#supplier-catalogs .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#supplier-catalogs .card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 12px;
}

.catalog-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.catalog-link:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.catalog-link i {
    font-size: 0.95rem;
    margin-right: 8px;
    color: #dc3545;
    transition: color 0.2s ease;
}

.catalog-link:hover i {
    color: #c82333;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .catalog-link {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    #catalogs-list {
        gap: 8px !important;
    }
}

/* ============================================
   FIX: Modal sobrepõe-se ao header/menu
   ============================================ */

/* Header e top-bar abaixo dos modais */
#header-wrap,
#header,
.header-wrap-clone {
  z-index: 1040 !important;
}

#top-bar {
  z-index: 1039 !important;
}

/* Modais acima de tudo */
.modal.show {
  z-index: 1055 !important;
}

.modal-backdrop.show {
  z-index: 1050 !important;
}

.modal-dialog {
  z-index: 1056 !important;
  position: relative;
}

/* Garantir scroll correto quando modal aberto */
body.modal-open {
  overflow: hidden;
}

body.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Revolution Slider não interfere */
.slider-element,
#slider,
.revslider-wrap,
rs-module-wrap {
  z-index: 1 !important;
}

 /* Container dos botões flutuantes */
.floating-actions {
  position: fixed;
  right: 24px;
  top: 26%;
  z-index: 998;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(120px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.floating-actions.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Bubble MAIS COMPACTA */
.floating-bubble {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.35);
  max-width: 240px; /* Reduzido de 280px */
  animation: gentle-bounce 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.floating-bubble:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.45);
  animation: none;
}

.floating-bubble.hidden {
  display: none;
}

.bubble-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 600;
}

.bubble-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg) scale(1.1);
}

.bubble-content {
  color: white;
}

/* Ícone MENOR */
.bubble-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
}

/* Texto MAIS COMPACTO */
.bubble-text {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.95);
}

.bubble-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: white;
}

/* Botão Fale Connosco */
.bubble-cta {
  width: 100%;
  padding: 10px 14px;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.bubble-cta i {
  font-size: 14px;
}

.bubble-cta:hover {
  background: #f8f9fa;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* WhatsApp - MESMO ESTILO mas verde */
.floating-btn-compact {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.2); /* Sutil contraste */
}

.floating-btn-compact i {
  font-size: 16px;
}

.floating-btn-compact:hover {
  background: #20BA5A;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Animação suave */
@keyframes gentle-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .floating-actions {
    right: 16px;
    top: 26%;
  }
  
  .floating-bubble {
    max-width: 220px;
    padding: 12px;
  }
  
  .bubble-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .bubble-text {
    font-size: 12px;
  }
  
  .bubble-text strong {
    font-size: 13px;
  }
  
  .bubble-cta,
  .floating-btn-compact {
    font-size: 12px;
    padding: 9px 12px;
  }
}
/* Container dos botões flutuantes */
.floating-actions {
  position: fixed;
  right: 24px;
  top: 26%;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateX(120px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.floating-actions.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Bubble base */
.floating-bubble {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.35);
  max-width: 240px;
  animation: gentle-bounce 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.floating-bubble:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.45);
  animation: none;
}

.floating-bubble.hidden {
  display: none;
}

.bubble-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 600;
}

.bubble-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg) scale(1.1);
}

.bubble-content {
  color: white;
}

.bubble-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
}

.bubble-text {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.95);
}

.bubble-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: white;
}

.bubble-cta {
  width: 100%;
  padding: 10px 14px;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.bubble-cta i {
  font-size: 14px;
}

.bubble-cta:hover {
  background: #f8f9fa;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes gentle-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ============================================
   Floating Actions V2 — Posicionado mais acima
   ------------------------------------------------
   ✔ Sobe o bloco alguns píxeis (desktop e mobile)
   ✔ Respeita a safe-area (iPhone com notch)
   ✔ Fácil de ajustar via variável --fab-bottom
   ============================================ */

/* Ajuste global (podes subir/descer aqui):
   - Aumenta o valor para subir mais (afastar do fundo)
   - Diminui o valor para descer (aproximar do fundo) */
:root {
  --fab-bottom: clamp(42%, 10vh, 144px); /* antes: 24px */
}

/* Container V2 - posicionamento otimizado */
.floating-actions-v2 {
  position: fixed;
  right: 24px;
  top: auto !important;
  bottom: calc(var(--fab-bottom) + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateX(120px);
  transition: 
    opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    bottom 0.3s ease; /* transição suave quando alterares o offset */
  pointer-events: none;
  align-items: flex-end;
}

.floating-actions-v2.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Variante utilitária (opcional): ainda mais acima
   - Aplica na tua marcação como classe extra: .floating-actions-v2 floating-actions-v2--alto */
.floating-actions-v2--alto {
  --fab-bottom: clamp(112px, 14vh, 200px);
}

/* WhatsApp V2 - Design UX 2025 */
.floating-whatsapp-v2 {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.3),
    0 0 0 0 rgba(37, 211, 102, 0.7);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: whatsapp-pulse-v2 2.5s ease-in-out infinite;
  margin-left: auto;
}

/* Ícone dentro */
.whatsapp-icon-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
}

/* Tooltip moderno */
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  color: #25D366;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid rgba(255, 255, 255, 0.95);
}

/* Hover state */
.floating-whatsapp-v2:hover {
  transform: scale(1.1);
  box-shadow:
    0 12px 32px rgba(37, 211, 102, 0.5),
    0 0 0 8px rgba(37, 211, 102, 0.15);
  animation: none;
}

.floating-whatsapp-v2:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Active state */
.floating-whatsapp-v2:active {
  transform: scale(0.95);
}

/* Pulse suave - UX 2025 */
@keyframes whatsapp-pulse-v2 {
  0%, 100% {
    box-shadow:
      0 8px 24px rgba(37, 211, 102, 0.3),
      0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    box-shadow:
      0 8px 24px rgba(37, 211, 102, 0.3),
      0 0 0 12px rgba(37, 211, 102, 0);
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .floating-actions-v2 {
    right: 16px;
    /* Em mobile sobe um pouco menos para evitar tap targets fora de alcance */
    bottom: calc(clamp(56px, 8vh, 96px) + env(safe-area-inset-bottom, 0px));
  }

  .floating-whatsapp-v2 {
    width: 56px;
    height: 56px;
  }

  .whatsapp-icon-wrap {
    font-size: 26px;
  }

  /* Tooltip desaparece em mobile */
  .whatsapp-tooltip {
    display: none;
  }
}

/* Dark mode ready */
@media (prefers-color-scheme: dark) {
  .whatsapp-tooltip {
    background: rgba(30, 30, 30, 0.95);
    color: #25D366;
  }

  .whatsapp-tooltip::after {
    border-left-color: rgba(30, 30, 30, 0.95);
  }
}


/* ================================================
   GUIA RÁPIDO — Harmonização visual (sem mudar classes)
   ------------------------------------------------
   1) Remove sombras “pesadas” nos botões (consistência).
   2) Substitui o roxo do .b-bg-dark por verde moderno
      (melhor par com o coral do “Efetuar Encomenda”).
   3) Clareia o fundo da secção para melhorar contraste.
   4) Mantém as classes existentes do HTML.
   ================================================ */

/* 3) Fundo da secção — cinza quente muito claro (melhor legibilidade do lado direito) */
#guiaRapido {
  background: linear-gradient(180deg, #f7f5f2 50%, #d9d9d9 100%); /* fundo leve e neutro */
}

/* (Opcional) Separador subtil entre imagem e conteúdo em ≥ md */
@media (min-width: 768px) {
  #guiaRapido .col-md-5 {
    border-left: 1px solid rgba(0, 0, 0, 0.06); /* linha discreta */
  }
}

/* 1) Botões — remover sombras para não “chocar” entre si */
#guiaRapido .button {
  box-shadow: none !important; /* força flat em ambos os CTAs */
}

/* 2) Botão “Fale Connosco” — manter .b-bg-dark mas com verde coerente */
#guiaRapido .b-bg-dark {
  background-color: #2ecc71;   /* verde moderno (coeso com coral) */
  color: #fff;
 
}
#guiaRapido .b-bg-dark:hover,
#guiaRapido .b-bg-dark:focus {
  background-color: #27ae60;   /* hover mais escuro */
  color: #fff;
  
}
#guiaRapido .b-bg-dark:active {
  background-color: #219653;   /* pressão/click */
  transform: translateY(0);
}

/* Acessibilidade: foco visível sem exagero (aplica a ambos) */
#guiaRapido .button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08) !important; /* anel discreto */
}

/* Espaçamento consistente entre os dois botões */
#guiaRapido .button + .button {
  margin-left: .5rem; /* mantém o layout existente com um respiro */
}

/* Micro-ajuste da tipografia no bloco direito para reforçar contraste */
#guiaRapido h2,
#guiaRapido h3,
#guiaRapido h4 {
  color: #1e1e1e; /* preto suave para maior legibilidade no fundo claro */
}
#guiaRapido p,
#guiaRapido .stepper {
  color: #3a3a3a; /* texto secundário */
}

/* Layout para produtos sem corte (ferragens, kits) */
.product-card-detailed {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-card-detailed:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.product-card:hover {
  
    border: none !important;
    cursor: default;
}
/* Imagem à esquerda */
.product-image-large {
    flex: 0 0 280px;
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-large img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 280px;
}

/* Badge no canto superior esquerdo da imagem */
.product-image-large .product-line-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.product-image-large .images-indicator {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Conteúdo à direita */
.product-info-detailed {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-title-large {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.product-title-large a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title-large a:hover {
    color: #3498db;
}

.product-title-large .product-code {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.75rem;
    font-family: 'Courier New', monospace;
}

/* Resumo do produto */
.product-resume {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Informações técnicas */
.product-dimensions-large,
.product-delivery-large {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #666;
}

.product-dimensions-large i,
.product-delivery-large i {
    color: #3498db;
    font-size: 1.1rem;
}

/* Preço grande */
.product-price-large {
    font-size: 2rem;
    font-weight: 700;
    color: #27ae60;
    margin-top: 0.5rem;
}

/* Botões de ação */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.product-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-actions .btn-outline-primary {
    border: 2px solid #3498db;
    color: #3498db;
    background: transparent;
}

.product-actions .btn-outline-primary:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.product-actions .btn-primary {
    background: #3498db;
    border: 2px solid #3498db;
    color: white;
}

.product-actions .btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* Responsive - tablet */
@media (max-width: 992px) {
    .product-card-detailed {
        flex-direction: column;
    }
    
    .product-image-large {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
}

/* Responsive - mobile */
@media (max-width: 576px) {
    .product-card-detailed {
        padding: 1.5rem;
    }
    
    .product-title-large {
        font-size: 1.25rem;
    }
    
    .product-title-large .product-code {
        display: block;
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .product-price-large {
        font-size: 1.5rem;
    }
}

/* Ajuste do grid para acomodar cards horizontais */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Manter grid normal apenas para produtos com corte */
.products-grid:has(.product-card:not(.product-card-detailed)) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-features {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    
    gap: 0.5rem;
}

.features-list li {
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: flex-start;
}

.product-specs-row {
    display: flex;
    flex-wrap: wrap;
}


/* ===================================
   DESCRIÇÃO SUBCATEGORIA - LAYOUT VERTICAL
   =================================== */

.subcategory-description {
    position: relative;
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 0;
    overflow: visible;
}

.subcategory-description > * {
    position: relative;
    z-index: 1;
}

/* Título */
.subcategory-description h3 {
    color: #000;
    font-size: clamp(2rem, 4vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    padding: 0;
    letter-spacing: -0.04em;
    text-align: left;
}

.subcategory-description h3::before {
    display: none;
}

/* Container do conteúdo */
.subcategory-description-content {
    display: block;
    padding: 0;
}

.subcategory-description p {
    color: rgba(0, 0, 0, 0.7);
    font-size: clamp(1.3rem, 1.5vw, 1.125rem);
    line-height: 1.75;
    margin-bottom: 1rem;
    font-weight: 400;
}

.subcategory-description p:last-of-type {
    margin-bottom: 0;
}

.subcategory-description strong {
    color: #000;
    font-weight: 600;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .subcategory-description h3 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 1.25rem;
    }
    
    .subcategory-description p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .subcategory-description h3 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .subcategory-description p {
        font-size: 0.95rem;
        line-height: 1.65;
    }
}



/* Tabela de Dimensões Selecionáveis */
.product-dimensions-selector {
    margin: 12px 0 0 0;
}

.dimension-table-wrapper {
    display: block;
    width: 100%;
    overflow-x: auto;
}

.dimension-table {
    width: auto; /* ✅ Tabela ajusta ao conteúdo */
    max-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* Célula do Label (X, H, HxY) */
.dimension-label-cell {
    width: 50px; /* ✅ Reduzido de 60px */
    min-width: 50px;
    max-width: 50px;
    background-color: #dc3545;
    color: white;
    font-weight: 700;
    font-size: 15px; /* ✅ Reduzido de 16px */
    text-align: center;
    vertical-align: middle;
    border: 2px solid #c82333;
    padding: 8px; /* ✅ Reduzido de 10px */
    letter-spacing: 0.5px;
}

/* Células de Valores */
.dimension-value-cell {
    width: 65px; /* ✅ Largura fixa menor */
    min-width: 65px;
    max-width: 65px;
    background-color: white;
    color: #212529;
    font-weight: 600;
    font-size: 13px; /* ✅ Reduzido de 14px */
    text-align: center;
    vertical-align: middle;
    border: 2px solid #dee2e6;
    padding: 8px; /* ✅ Padding lateral reduzido */
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap; /* ✅ Evitar quebra de linha */
}

/* Células vazias */
.dimension-value-cell.dimension-empty {
    background-color: transparent;
    border-color: transparent;
    cursor: default;
    pointer-events: none;
}

/* Hover */
.dimension-value-cell:not(.dimension-empty):hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    transform: scale(1.05);
}

/* Estado selecionado */
.dimension-value-cell.selected {
    background-color: #212529 !important;
    color: white !important;
    border-color: #000 !important;
    font-weight: 700;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

/* Responsivo */
@media (max-width: 768px) {
    .dimension-label-cell {
        width: 45px;
        min-width: 45px;
        font-size: 13px;
        padding: 6px;
    }
    
    .dimension-value-cell {
        width: 50px;
        min-width: 50px;
        max-width: 50px;
        font-size: 12px;
        padding: 6px 4px;
    }
}

@media (max-width: 480px) {
    .dimension-table-wrapper {
        overflow-x: scroll;
    }
    
    .dimension-label-cell {
        width: 40px;
        min-width: 40px;
        font-size: 12px;
    }
    
    .dimension-value-cell {
        width: 45px;
        min-width: 45px;
        max-width: 45px;
        font-size: 11px;
        padding: 5px 3px;
    }
}
/* Seletor de Cores */
.product-color-selector {
    margin: 15px 0;
    padding: 12px;
}

.color-selector-label {
    margin-bottom: 10px;
    color: #495057;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.color-switch {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    flex: 1;
    min-width: 100px;
    max-width: 150px;
    padding: 10px 12px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.color-option:hover {
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.color-option.selected {
    background: #212529 !important;
    border-color: #000 !important;
    border-width: 2px;
}

/* Preview - Círculo indicador */
.color-preview {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background-color: #e9ecef; /* ✅ Cinza claro neutro */
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Preview VERDE quando selecionado */
.color-option.selected .color-preview {
    background-color: #28a745 !important; /* ✅ Verde */
    border-color: #1e7e34 !important; /* ✅ Verde escuro na borda */
    border-width: 3px;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5); /* ✅ Brilho verde */
}

.color-name {
    font-weight: 600;
    font-size: 13px;
    color: #495057;
}

.color-option.selected .color-name {
    color: white;
}

/* Versão compacta para cards */
.product-card .product-color-selector {
    padding: 8px 0;
    margin: 10px 0;
}

.product-card .color-option {
    min-width: 80px;
    padding: 8px 10px;
}

.product-card .color-preview {
    width: 18px;
    height: 18px;
}

.product-card .color-name {
    font-size: 12px;
}

/* Responsivo */
@media (max-width: 480px) {
    .color-option {
        min-width: 90px;
        max-width: 120px;
        padding: 8px 10px;
    }
    
    .color-preview {
        width: 18px;
        height: 18px;
    }
    
    .color-name {
        font-size: 12px;
    }
}
.mx-w-100{max-width: 100%;}

.kitchen-module-info {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(177deg, #f0f0f0 0%, #e5e5e5 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.kitchen-module-info h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 12px;
}

.kitchen-module-info h6 i {
    color: #667eea;
}

.kitchen-colors-img{
  max-width: 320px;  
  width: 100%; 
  height: auto;    
  display: inline-block;
  
}

@media (max-width: 991.98px){
  .kitchen-colors-img{ max-width: 320px; } 
}

@media (max-width: 575.98px){
  .kitchen-colors-img{ max-width: 100%; }  
}

.kitchen-module-info p {
    font-size: 12px;
    line-height: 1.5;
}

.preview-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    background: #ffffff!important;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

#btnAddStay {
  background: #198754 !important;
  border-color: #198754 !important;
}

#btnAddReturn {
  background: #0d6efd !important;
  border-color: #0d6efd !important;
}

#btnAddStay:hover {
  background: #157347 !important;
  transform: translateY(-1px);
}

#btnAddReturn:hover {
  background: #0b5ed7 !important;
  transform: translateY(-1px);
}


.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.attachment-item:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.attachment-item.uploading {
  opacity: 0.7;
  pointer-events: none;
}

.attachment-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.attachment-icon {
  font-size: 24px;
}

.attachment-details {
  flex: 1;
}

.attachment-name {
  font-weight: 500;
  color: #212529;
  word-break: break-word;
}

.attachment-size {
  font-size: 12px;
  color: #6c757d;
  margin-top: 2px;
}

.upload-zone {
  text-align: center;
  padding: 20px;
}
