:root{
  --brand-primary:#45522D;
  --brand-secondary:#CBB79F;
  --brand-accent:#6B7755;         /* olive */
  --brand-bg:#F9F7F3;
  --brand-bg-alt:#FFFFFF;
  --brand-text:#2A2A2A;
  --brand-muted:#6B6B6B;

  /* auxiliares herdadas de páginas antigas */
  --stroke:#e8e4db;
}

html{ scroll-behavior:smooth; }
body{ background:var(--brand-bg); color:var(--brand-text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif; }
footer{ background:#6B7755 }
.bg-alt{ background:var(--brand-bg-alt); }
.text-muted-custom{ color:var(--brand-muted); }
.btn-brand{ background:var(--brand-primary); color:#fff; border-radius:1rem; padding:.7rem 1.1rem; }
.btn-brand:hover{ background:var(--brand-accent); color:#fff; }
.btn-outline-brand{ border-color: rgba(0,0,0,.12); border-radius:1rem; padding:.7rem 1.1rem; }
.shadow-soft{ box-shadow:0 10px 30px rgba(0,0,0,.06); }
.rounded-xxl{ border-radius:1.25rem; }
.section{ padding:3rem 0; }
.tag{ font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; color:var(--brand-muted); }
.product-card img{ transition:transform .3s ease; }
.product-card:hover img{ transform:scale(1.04); }
.badge-cc{ background:#9CAA7F; color:#1e2a12; }

/* Footer dark estilizado */
.site-footer{ background: var(--brand-primary) !important; color: var(--brand-bg) !important; }
.site-footer .fw-semibold, .site-footer .text-muted-custom{ color: var(--brand-bg) !important; opacity:.9; }
.site-footer a, .site-footer .link-secondary, .site-footer .nav-link{ color: var(--brand-bg) !important; text-decoration: none; opacity:.9; }
.site-footer a:hover{ opacity:1; text-decoration: underline; }
.site-footer.border-top{ border-top:0 !important; }

/* ===========================
   PRODUCT CARD – NOVO LAYOUT
   =========================== */
.product-card.equal{ min-height:100%; }
.product-card{
  display:flex; flex-direction:column; border:1px solid #e8e4db; border-radius:16px;
  background:#fff; height:100%; overflow:hidden; padding:12px;
}
.product-media{
  position:relative; width:100%;
  aspect-ratio:4/5; border-radius:12px; overflow:hidden;
  background:#F7F4EE;
  display:flex; align-items:center; justify-content:center;
}
.product-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.product-media.is-empty::after{
  content:"SEM IMAGEM"; font-weight:600; letter-spacing:.04em; color:var(--brand-muted);
}
.product-body{ display:flex; flex-direction:column; gap:.35rem; padding:10px 6px 6px; }
.product-title{ font-size:1rem; line-height:1.25; margin:0; color:var(--brand-text); }
.product-brand{ font-size:.9rem; color:var(--brand-muted); }
.product-price-old{ font-size:.95rem; color:#7f7f7f; text-decoration:line-through; }
.product-price{ font-size:1.15rem; font-weight:700; color:var(--brand-accent); }
.btn-olive{
  margin-top:.4rem; align-self:stretch; text-align:center;
  padding:.45rem .9rem; border-radius:12px;
  background:var(--brand-accent); color:#fff; border:1px solid var(--brand-accent);
  font-weight:600; text-decoration:none; transition:.18s ease; display:inline-block;
}
.btn-olive:hover{ background:#fff; color:var(--brand-accent); }
.price-aspiracional strong{ color:#523F2D; }

/* HERO */
.hero-wrap{ position:relative; margin-bottom:0; }
.hero{ position:relative; min-height:72vh; border-radius:0rem; overflow:hidden; }
.hero-slide{ position:relative; min-height:72vh; background-size:cover; background-position:center; }
.hero-slide::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.20) 60%, rgba(0,0,0,.10) 100%);
}
.hero-content{ position:absolute; inset:0; z-index:2; display:flex; align-items:center; }
.hero-card{ backdrop-filter:blur(4px); background:rgba(255,255,255,.55); border:1px solid rgba(0,0,0,.06); border-radius:0rem; padding:1.1rem 1.2rem; }
.carousel-control-prev, .carousel-control-next, .carousel-indicators{ z-index:3; }
.carousel-indicators{ z-index:3; margin-bottom: -2rem; }

/* Navbar: logo à esquerda, ações à direita (desktop OK) */
.navbar, .navbar > .container, .navbar > .container-fluid{
  display:flex; align-items:center; justify-content:space-between;
}
.navbar .navbar-brand{ display:flex; align-items:center; margin-right:1rem; }
.navbar .navbar-nav{ display:flex; align-items:center; gap:.5rem; margin-left:auto; }
.navbar .nav-link{ padding:.6rem .8rem; line-height:1.2; }
.navbar .btn-brand{ align-self:center; padding:.55rem 1rem; border-radius:1.2rem; }

/* Bullets */
.feature-pill{
  display:flex; align-items:center; gap:.6rem;
  background:#fff; border:1px solid rgba(0,0,0,.08);
  border-radius:1.75rem; padding:.95rem 1.2rem;
  box-shadow:0 6px 20px rgba(0,0,0,.04);
}
.feature-pill .dot{
  width:.6rem; height:.6rem; border-radius:50%;
  background:var(--brand-primary);
  box-shadow:0 0 0 6px rgba(69,82,45,.08);
}

/* Breadcrumb */
.cc-bc-wrap{ background:var(--brand-bg); border-bottom:1px solid rgba(0,0,0,.06); }
.cc-breadcrumb{ padding:.65rem 0; }
.cc-breadcrumb .breadcrumb{ margin:0; font-size:.9rem; }
.cc-breadcrumb .breadcrumb-item + .breadcrumb-item::before{ color: var(--brand-muted); }
.cc-breadcrumb .breadcrumb a{ color: var(--brand-primary); text-decoration: none; }
.cc-breadcrumb .breadcrumb a:hover{ text-decoration: underline; }

/* ===========================
   CATEGORY RAIL (carrossel)
   =========================== */
.cat-rail-wrap{ position:relative; margin:8px 0 18px; }
.cat-rail{
  display:flex; gap:.75rem; overflow:auto; padding:6px 2px;
  scroll-snap-type:x mandatory; scrollbar-width:thin;
}
.cat-rail::-webkit-scrollbar{ height:8px; }
.cat-rail::-webkit-scrollbar-thumb{ background:var(--stroke); border-radius:8px; }
.cat-pill{
  flex:0 0 auto; display:flex; align-items:center; gap:.5rem;
  padding:.5rem .75rem; border:1px solid var(--stroke);
  border-radius:999px; background:#fff; scroll-snap-align:start;
  min-width:140px; text-decoration:none; color:var(--brand-text);
  transition: background .2s ease, box-shadow .2s ease;
}
.cat-pill:hover{ background:var(--brand-bg-alt); box-shadow:0 4px 14px rgba(0,0,0,.04); }
.cat-pill--active{ box-shadow: inset 0 0 0 2px var(--brand-accent); }
.cat-icon{
  width:28px; height:28px; border-radius:999px; background:#F7F4EE;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.cat-icon img{ width:100%; height:100%; object-fit:cover; display:block; }
.cat-icon-fallback{ font-size:.9rem; color:var(--brand-muted); }
.cat-name{ font-weight:600; white-space:nowrap; }
.rail-cta{ font-size:.95rem; color:var(--brand-muted); }
.rail-cta:hover{ color:var(--brand-text); }

/* ===========================
   FILTERS RAIL (uma linha)
   =========================== */
.filters-rail{
  display:flex; align-items:center; gap:.5rem;
  padding:.5rem; border:1px solid var(--stroke); border-radius:14px; background:#fff;
  overflow-x:auto; white-space:nowrap; scrollbar-width:thin;
}
.filters-rail::-webkit-scrollbar{ height:8px; }
.filters-rail::-webkit-scrollbar-thumb{ background:var(--stroke); border-radius:8px; }

.f-item{
  display:flex; align-items:center; gap:.4rem;
  background:var(--brand-bg); border:1px solid var(--stroke); border-radius:12px;
  padding:.35rem .6rem; height:44px;
}
.f-item input[type="text"],
.f-item select{
  border:0; background:transparent; height:38px; padding:.25rem .1rem;
  outline:none; box-shadow:none; font-size:.95rem; min-width:160px;
}
.f-item--search{ flex:1 1 auto; min-width:280px; }
.f-item--search input{ width:100%; }
.f-btn{
  height:44px; padding:.55rem 1rem; border-radius:12px; border:1px solid var(--brand-accent);
  background:var(--brand-accent); color:#fff; font-weight:600; white-space:nowrap;
}
.f-btn:hover{ background:#fff; color:var(--brand-accent); }
.f-ico{ font-size:.95rem; color:var(--brand-muted); }

/* ===== Page Hero (forçando exibição da imagem) ===== */
.page-hero{
  position:relative; isolation:isolate;
  border-bottom:1px solid rgba(0,0,0,.06);
  background:transparent;            /* deixa a imagem aparecer */
}
.page-hero.has-bg{ min-height:105px; }  /* ↑ um pouco maior para dar presença */

.page-hero__bg{
  position:absolute; inset:0; z-index:0;
  background-size:cover; background-position:center;
  filter:saturate(.95) contrast(.98);
  
}
.page-hero.has-bg::after{
  content:""; position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(0,0,0,.26) 0%, rgba(0,0,0,.16) 60%, rgba(0,0,0,.10) 100%);
}

.page-hero__inner{
  position:relative; z-index:2;
  display:flex; align-items:center; gap:1rem;
  padding:18px 0;
}

.page-hero__title{ font-weight:800; letter-spacing:.01em; color:var(--brand-text); }

.glass-pill{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.6rem 1rem;
  background:rgba(255,255,255,.62);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}

.breadcrumb.glass-pill{ font-size:.92rem; margin:0; }
.breadcrumb.glass-pill .breadcrumb-item + .breadcrumb-item::before{ color:rgba(0,0,0,.45); }
.breadcrumb.glass-pill a{ color:var(--brand-primary); text-decoration:none; }
.breadcrumb.glass-pill a:hover{ text-decoration:underline; }

/* Oculta breadcrumb antiga, se existir */
.cc-bc-wrap{ display:none !important; }

@media (max-width: 767.98px){
  .page-hero__inner{ flex-direction:column; align-items:stretch; gap:.6rem; padding:14px 0; }
  .glass-pill{ border-radius:14px; padding:.55rem .85rem; }
  .breadcrumb.glass-pill{ overflow:auto; white-space:nowrap; scrollbar-width:none; }
  .breadcrumb.glass-pill::-webkit-scrollbar{ display:none; }
}




/* ===========================
   MOBILE-ONLY FIX (garantia de fechar)
=========================== */

/* Fecha por padrão em <992px; abre só com .show — especificidade alta */
@media (max-width: 991.98px){
  .navbar.navbar-expand-lg .navbar-collapse:not(.show){
    display: none !important;
  }
  .navbar.navbar-expand-lg .navbar-collapse.show{
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
    width: 100%;
  }

  /* Toque confortável e foco visível */
  a, button { touch-action: manipulation; }
  .navbar .nav-link, .navbar .btn-brand, .btn-olive { min-height:44px; }
  :focus-visible { outline:2px solid var(--brand-primary); outline-offset:2px; }
}

/* Mobile hero/card refinements sem afetar desktop */
@media (max-width: 767.98px){
  .hero, .hero-slide{ min-height:52vh; }
  .hero-card{ padding:.85rem .9rem; border-radius:.75rem; }
  .carousel-indicators{ margin-bottom:-1rem; }

  .section{ padding:1.5rem 0; }
  .hero-wrap + .section{ padding-top:1rem; }

  .feature-pill{ padding:.8rem .95rem; gap:.55rem; }
  .feature-pill .dot{ box-shadow:0 0 0 5px rgba(69,82,45,.08); }

  .product-title{ font-size:.98rem; line-height:1.28; }
  .product-brand{ font-size:.88rem; }
  .product-price{ font-size:1.08rem; }
  .product-price-old{ font-size:.9rem; }
  .btn-olive{ padding:.5rem .9rem; font-weight:700; }
  .product-card{ padding:10px; }
  .product-body{ padding:10px 6px 6px; gap:.35rem; }

  .container, .container-fluid{ overflow-x:hidden; }
  img{ max-width:100%; height:auto; }
}

/* Breadcrumb rolável em telas muito pequenas */
@media (max-width: 575.98px){
  .cc-breadcrumb .breadcrumb{
    display:flex; flex-wrap:nowrap; overflow:auto; white-space:nowrap; gap:.25rem;
    scrollbar-width:none;
  }
  .cc-breadcrumb .breadcrumb::-webkit-scrollbar{ display:none; }

  .carousel-control-prev, .carousel-control-next{ width:12%; }
}

/* Desktop+ (inalterado) */
@media (min-width:768px){
  .section{ padding:3.5rem 0; }
}

/* Garantia do ícone do hamburguer (caso algum reset esteja removendo o bg) */
.navbar-light .navbar-toggler{
  border: 1px solid rgba(0,0,0,.1);
  border-radius: .75rem;
}
.navbar-light .navbar-toggler-icon{
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
