    :root{
      /* 🎨 Paleta original */
      --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
      --radius: 16px;
      --disponivel: #1e921a;
    }

    *{box-sizing:border-box}
    html,body{height:100%}
    body {
      margin: 0;
      font-family: var(--fonte-subtitulos);
      background: var(--cor-fundo);
      background-image: radial-gradient(1200px 800px at 10% -10%, rgba(255,255,255,0.04) 0%, transparent 60%);
      color: var(--cor-textos);
      transition: background 0.4s ease;
    }

    /* ===========================
      🔹 HEADER
      =========================== */
    header {
      position: sticky;
      top: 0;
      z-index: 10;
      backdrop-filter: saturate(140%) blur(8px);
      background: color-mix(in srgb, var(--cor-barra-superior) 50%, transparent);
      border-bottom: 1px solid var(--border);
      transition: background 0.4s ease;
      }

    header .wrap {
      max-width: 1100px;
      margin: 0 auto;
      padding: 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }


    .wrap {
      max-width: 1100px;
      margin: 0 auto;
      padding: 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .brand {
      display: flex;
      gap: 16px;
      align-items: center;
      cursor: pointer;
    }

    .brand b {
      font-family: var(--fonte-nome-empresa);
      font-size: clamp(30px, 2vw, 24px);
      font-weight: 700;
      color: var(--cor-nome-loja);
    
      -webkit-text-stroke: 0.3px black;
    }

  .brand .logo{height:70px; object-fit:contain;}
    /* ===========================
      🌟 STATUS DA LOJA EM DESTAQUE
      =========================== */

    .brand-info {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .status-loja {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.3px;
      text-transform: none;
      background: rgba(0, 0, 0, 0.25);
      padding: 6px 10px;
      border-radius: 10px;
      backdrop-filter: blur(4px);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }

    .status-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      flex-shrink: 0;
      animation: pulse 1.5s infinite;
    }

    .status-aberto {
      color: var(--cor-sucesso, #08ff10);
      border: 1px solid rgb(5, 248, 14);
    }

    .status-fechado {
      color: var(--cor-cancelado, #F44336);
      border: 1px solid rgba(244, 67, 54, 0.4);
    }

    .status-aberto .status-dot {
      background-color: var(--cor-sucesso, #08ff10);
    }

    .status-fechado .status-dot {
      background-color: var(--cor-cancelado, #F44336);
    }

    /* 💫 Animação pulsante */
    @keyframes pulse {
      0% { transform: scale(0.95); opacity: 0.8; }
      50% { transform: scale(1.3); opacity: 1; }
      100% { transform: scale(0.95); opacity: 0.8; }
    }

    /* ===========================
      🔹 NAVEGAÇÃO
      =========================== */
    nav {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
    }

    nav a {
      color: var(--cor-subtitulos);
      text-decoration: none;
      font-size: .92rem;
      transition: .2s;
      font-family: var(--fonte-subtitulos);
    }

    nav a:hover {
      color: var(--cor-titulos);
    }

    /* ============================================================
    ⭐ CORREÇÃO GLOBAL — Evita conflito com .wrap (flex container)
    ============================================================ */
  .wrap > #menuCategorias {
    flex: none !important;
  }

  /* ============================================================
    ⭐ MENU DE CATEGORIAS — VERSÃO FINAL (Carrossel Profissional)
    ============================================================ */
  #menuCategorias {
    display: block;                         /* 🔥 Remove comportamento de item flex */
    width: 100%;
    
    overflow-x: auto !important;            /* Rolagem horizontal obrigatória */
    overflow-y: hidden;

    white-space: nowrap;                    /* 🔥 Mantém todos os botões lado a lado */
    padding: 12px 10px;

    scrollbar-width: none;                  /* Firefox: remove barra */
    -webkit-overflow-scrolling: touch;      /* iPhone: scroll suave */
  }

  #menuCategorias::-webkit-scrollbar {
    display: none;                          /* Chrome / Safari: remove barra */
  }

  /* ============================================================
    ⭐ ITENS DO MENU
    ============================================================ */
  #menuCategorias a {
    display: inline-flex;                   /* 🔥 Suporta nowrap + padding */
    align-items: center;
    justify-content: center;

    padding: 10px 18px;
    margin-right: 14px;                     /* Substitui GAP do flex */
    border-radius: 12px;

    background: var(--cor-botoes-pagina);
    color: var(--cor-texto-botoes);
    font-family: var(--fonte-botoes);
    font-size: 1rem;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;                    /* Nunca quebrar texto */

    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease;
  }

  /* ============================================================
    ⭐ HOVER / FOCO
    ============================================================ */
  #menuCategorias a:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  }

  /* ============================================================
    ⭐ RESPONSIVO — MOBILE
    ============================================================ */
  @media (max-width: 600px) {
    #menuCategorias {
      padding-left: 6px;
      padding-right: 6px;
    }

    #menuCategorias a {
      padding: 8px 14px;
      font-size: 0.9rem;
      margin-right: 10px;
    }
  }


    /* ===========================
      🔹 TÍTULOS
      =========================== */
    h2 {
      font-size: 1.2rem;
      margin: 32px 0 16px;
      color: var(--cor-titulos);
      font-family: var(--fonte-titulos);
    }

    /* ===========================
      🔹 PRODUTOS
      =========================== */
    /* ===========================
      🛍️ PRODUTOS — versão aprimorada e moderna
      =========================== */
    .card {
      background: var(--cor-cards, #1b1b1b);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: 18px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.3s ease;
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
      border-color: var(--cor-botoes-pagina, #ffa201);
    }

    /* 🔹 Imagem quadrada, com foco total e moldura sutil */
    .card img {
      width: 100%;
      aspect-ratio: 1 / 1; /* mantém a proporção quadrada */
      object-fit: contain; /* exibe toda a imagem */
      
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      padding: 10px;
      transition: transform 0.35s ease, opacity 0.35s ease;
      
    }

    .card:hover img {
      transform: scale(1.04);
      opacity: 0.95;
    }

    /* 🔹 Corpo do card */
    .card-body {
      padding: 14px 16px 18px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      flex: 1;
    }

    /* 🔹 Nome do produto */
    .card-title {
      font-family: var(--fonte-subtitulos, "Montserrat");
      font-weight: 600;
      color: var(--cor-subtitulos, #fff);
      font-size: 1rem;
      margin-bottom: 6px;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* 🔹 Descrição resumida */
    .card-desc {
      font-family: var(--fonte-subtitulos, "Roboto");
      color: var(--cor-textos, #ccc);
      font-size: 0.85rem;
      line-height: 1.3em;
      max-height: 2.6em;
      text-align: center;
      overflow: hidden;
      opacity: 0.9;
      margin-bottom: 8px;
    }

    /* 🔹 Preço */
    .card-bottom {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: auto;
    }

    .price {
      color: var(--cor-texto-botoes);
      font-weight: 700;
      font-size: 1.05rem;
      background:var(--cor-botoes-pagina);
      padding: 6px 12px;
      border-radius: 8px;
      letter-spacing: 0.5px;
      transition: background 0.3s ease, color 0.3s ease;
    }

    .card:hover .price {
      background: var(--cor-botoes-pagina, #ffa201);
      color: var(--cor-texto-botoes, #000);
    }

    /* ===========================
      🔹 BOTÕES 
      =========================== */
    .btn, button {
      background: var(--cor-botoes-pagina);
      color: var(--cor-texto-botoes);
      border: none;
      border-radius: 10px;
      font-family: var(--fonte-botoes);
      font-weight: bold;
      padding: 10px 14px;
      cursor: pointer;
      transition: 0.25s;
      box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    }

    .btn:hover, button:hover {
      opacity: 0.9;
      transform: translateY(-1px);
    }

    /* ===========================
      🔹 GRID DE PRODUTOS
      =========================== */
    main.wrap {
      padding: 0;
    }

    #produtosGrid {
      display: block;
      width: 100%;
      padding: 0 8px;
      box-sizing: border-box;
    }

    .subcategoria {
      margin-bottom: 32px;
      width: 100%;
    }

    .sub-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      width: 100%;
      margin: 0 auto;
    }

    .sub-grid .card {
  min-width: 0;             /* 🔥 iOS respeita o grid */
}

.sub-grid img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

@media screen and (max-width:750px){
  .wrap {
     width: 100%;
     max-width: 100%;
     padding: 0 10px;
  }
}

    /* Responsivo */
    @media (max-width: 600px) {
      .sub-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 200px) {
      .sub-grid {
        grid-template-columns: 1fr;
      }
    }

    /* ===========================
      🔹 SUBCATEGORIAS
      =========================== */
    .subcategoria h3 {
      text-align: center;
      font-size: 32px;
      font-weight: bold;
      margin: 20px 0 30px;
      color: var(--cor-titulos);
      font-family: var(--fonte-titulos);
      text-transform: uppercase;
    }

    /* ===========================
      🔹 FOOTER
      =========================== */
    footer {
      padding: 24px 0;
      margin-top: 40px;
      text-align: center;
      color: var(--cor-subtitulos);
      font-size: .85rem;
      font-family: var(--fonte-subtitulos);
    }

    /* ===========================
      🔹 CARRINHO (ícone)
      =========================== */

    .cart-icon {
      
      font-size: 1.8rem;
      color: var(--cor-nome-loja);
      text-decoration: none;
      position: relative;
    }

    #cartBtn {
      position: relative;
    }

    #cartBtn .badge {
      position: absolute;
      top: -6px;
      right: -6px;
      background: var(--cor-botoes-pagina);
      color: var(--cor-texto-botoes);
      font-size: 12px;
      font-weight: bold;
      padding: 2px 6px;
      border-radius: 50%;
      box-shadow: 0 0 4px rgba(0,0,0,0.4);
    }

    /* ===========================
      🔹 DIVISOR E AJUSTES
      =========================== */
    .divider {
      height: 1px;
      background: var(--border);
      margin: 6px 0;
    }
    /* ===========================
      🖼️ BANNER RESPONSIVO 2:1
      =========================== */

    .banner-container {
      width: 100%;
      display: flex;
      justify-content: center;
      background: transparent;
      margin: 20px 0 35px;
    }

    .banner-container .wrap {
      max-width: 1100px;
      width: 100%;
      padding: 0 16px;
    }

    /* O "box" mantém a proporção fixa */
    .banner-box {
      position: relative;
      width: 100%;
      padding-bottom: 50%; /* 2:1 proporção — altura = 50% da largura */
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    }

    /* A imagem preenche a caixa */
    .banner {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: opacity 0.6s ease, transform 0.6s ease;
      opacity: 0;
      transform: scale(0.985);
      border-radius: var(--radius);
    }

    .banner.loaded {
      opacity: 1;
      transform: scale(1);
    }

    /* Responsivo: mantém 2:1 em qualquer tela */
    @media (max-width: 768px) {
      .banner-container {
        margin: 16px 0 28px;
      }
    }

    @media (max-width: 480px) {
      .banner-container {
        margin: 12px 0 20px;
      }
    }
    /* ===================================================
      🎯 MODO AGENDAMENTO — 1 card por linha (imagem em cima)
      =================================================== */
    body.modo-agendamento .sub-grid {
      grid-template-columns: 1fr !important; /* só um card por linha */
    }

    body.modo-agendamento .card {
      height: auto;
      min-height: 350px; /* aumenta a altura total */
      display: flex;
      flex-direction: column; /* imagem em cima, infos abaixo */
      justify-content: flex-start;
      padding-bottom: 16px;
    }

    body.modo-agendamento .card img {
      width: 100%;
      height: 320px; /* imagem mais alta */
      object-fit: cover; /* ocupa toda a largura mantendo proporção */
      border: none;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      padding: 0;
    }

    body.modo-agendamento .card-body {
      padding: 18px 20px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;
      height: auto;
      flex-grow: 1;
    }

    body.modo-agendamento .card-title {
      font-size: 1.2rem;
      font-weight: 700;
      text-align: left;
      width: 100%;
      margin-bottom: 10px;
      white-space: normal; /* permite quebra de linha */
    }



    body.modo-agendamento .price {
      align-self: flex-start;
      font-size: 1.1rem;
      padding: 8px 14px;
    }
    /* ===================================================
      ✂️ Descrição do produto (modo agendamento)
      Limita texto a 3 linhas com reticências
      =================================================== */
    body.modo-agendamento .card-desc {
      text-align: left;
      white-space: normal; /* permite quebra de linha normal */
      word-break: break-word;
      overflow-wrap: break-word;
      display: -webkit-box;
      display: box; /* compatibilidade futura */
      -webkit-line-clamp: 3; /* número de linhas visíveis */
      line-clamp: 3; /* compatibilidade padrão */
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.5;
      font-size: 0.95rem;
      opacity: 0.95;
      color: var(--cor-textos);
      margin-bottom: 12px;
    }
    :root {
      transition: background-color 0.15s linear,
                  color 0.15s linear,
                  border-color 0.15s linear,
                  fill 0.15s linear;
    }
  /* 🔥 ESTOQUE – badge premium */
.card {
  position: relative; /* necessário para posicionamento interno */
}

.card .estoque {
  background: var(--disponivel, #1e921a);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;

  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);

  transition: 0.25s ease;

  /* 🔥 Aqui faz ele ficar no canto superior direito */
  position: absolute;
  top: 8px;      /* ajuste conforme o gosto */
  right: 8px;
}


/* Destaque no número */
.card .estoque b {
  color:  #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
}


/* Quando esgotado */
.card.esgotado .estoque {
  background:#6c6c6c !important; /* cinza */
  color:#fff !important;
}


/* 🔥 Fundo do modal */
.modal-estoque {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(5px);
  display: none; /* inicia oculto */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn .3s ease;
}

/* 🔥 Caixa interna */
.modal-content-estoque {
  background: var(--cor-cards, #222);
  padding: 24px 30px;
  border-radius: 14px;
  text-align: center;
  max-width: 300px;
  width: 90%;
  color: var(--cor-textos, #fff);
  box-shadow: 0 8px 25px rgba(0,0,0,0.45);
  animation: popIn .25s ease;
}

/* Título */
.modal-content-estoque h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--cor-botoes-pagina);
}

/* Botão */
.btn-modal {
  margin-top: 16px;
  background: var(--cor-botoes-pagina);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  border: none;
  font-size: 1rem;
  color: var(--cor-texto-botoes);
  transition: .2s;
}

.btn-modal:hover { transform: scale(1.05); }

/* animação */
@keyframes popIn { 0%{transform:scale(.7);opacity:.2;} 100%{transform:scale(1);opacity:1;} }
@keyframes fadeIn { from{opacity:.2;} to{opacity:1;} }
/* ================================
 🔥 MAIS VENDIDOS — VISUAL PADRÃO DO TEMA
================================ */
.carousel-mais-vendidos {
  margin-top: 35px;
  padding: 0 10px;
}

.cv-title {
  color: var(--cor-titulos);
  font-family: var(--fonte-titulos);
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 700;
  text-align: center;
  letter-spacing: .5px;
}

/* Lista */
.cv-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 5px 4px 14px;
  scrollbar-width: none;
}

.cv-container::-webkit-scrollbar {
  height: 6px;
}
.cv-container::-webkit-scrollbar-thumb {
  background: var(--cor-botoes-pagina);
  border-radius: 6px;
}

/* CARD — mesmo estilo do card principal */
.cv-item {
  min-width: 160px;
  background: var(--cor-cards);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  padding: 10px;
  cursor: pointer;
  transition: .25s ease;
  overflow: hidden;
  position: relative;
}

/* HOVER igual ao card */
.cv-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
  border-color: var(--cor-botoes-pagina);
}

/* IMAGEM  */
.cv-item img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  padding: 8px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Nome */
.cv-item span {
  color: var(--cor-subtitulos);
  font-family: var(--fonte-subtitulos);
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
  margin-top: 8px;
  text-align:center;
}

/* Preço — igual ao botão de preço */
.cv-item b {
  display:block;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--cor-botoes-pagina);
  color: var(--cor-texto-botoes);
  padding: 6px 10px;
  border-radius: 8px;
}

/* Badge Estoque (igual ao do card) */
.cv-item small {
  margin-top: 6px;
  font-weight:bold;
  font-size: .78rem;
  display: block;
}

/* ESGOTADO */
.cv-item.esgotado {
  opacity:.68;
  filter: grayscale(90%);
}
.cv-item.esgotado:hover {
  transform:none;
  box-shadow:none;
  border-color:#666;
}
