/* ==========================================================================
   1. GERAL, UTILITÁRIOS E BRANDING (GLOBAL)
   ========================================================================== */

/* Gradiente de topo que fica atrás do header */
.bg-gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(110deg, #f5efe8 0%, #e6d2c2 55%, #cfa893 100%);
  z-index: 0;
}

/* Espaçamento da primeira seção */
section:first-of-type {
  margin-top: 35px;
  position: relative;
  z-index: 1;
}

/* Classe para forçar a cor terracota em textos */
.text-brand {
  color: #9c4f3b !important;
}

/* --- BOTÃO GLOBAL BRANDING --- */
.btn-brand {
  background-color: #9c4f3b !important;
  border-color: #9c4f3b !important;
  color: #ffffff !important;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 6px 18px rgba(156, 79, 59, 0.18);
}

.btn-brand:hover, 
.btn-brand:focus {
  background-color: #b45f48 !important; 
  border-color: #b45f48 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(156, 79, 59, 0.28);
}

.btn-brand:active {
  transform: translateY(0);
}


/* ==========================================================================
   2. HEADER (Menu Superior)
   ========================================================================== */

.header-glass {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(11px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.header-logo,
.header-nav .nav-link {
  transition: all 0.3s ease-in-out;
}

.header-logo:hover {
  transform: scale(1.06);
  opacity: 0.92;
}

.header-nav .nav-link,
.header-offcanvas .nav-link {
  color: #2f3746;
}

.header-nav .nav-link:hover,
.header-nav .nav-link.active,
.header-offcanvas .nav-link:hover,
.header-offcanvas .nav-link.active {
  color: #9c4f3b;
}

.header-nav .nav-link:hover {
  transform: translateY(-1px);
}

/* Menu Mobile (Offcanvas) */
.header-offcanvas {
  background: #fff !important;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}


/* ==========================================================================
   3. HERO SLIDER (Banner Principal)
   ========================================================================== */

.hero-cestaria {
  --hero-sb-x: 3.75rem; 
  --hero-sb-y: 1.75rem; 
  min-height: 540px;
}

.hero-bg-gradient {
  background: 
    radial-gradient(900px 500px at 18% 12%, rgba(245, 240, 225, 0.65) 0%, transparent 60%),
    radial-gradient(1100px 650px at 75% 82%, rgba(223, 184, 154, 0.32) 0%, transparent 68%),
    linear-gradient(180deg, #eee7df 0%, #eadfd4 52%, #ddb8a0 100%);
}

.hero-cestaria .swiper-scrollbar.hero-scrollbar {
  position: absolute;
  inset: auto var(--hero-sb-x) var(--hero-sb-y) var(--hero-sb-x);
  width: auto;
  height: 4px;
  background: rgba(255, 255, 255, .42);
  z-index: 4;
  border-radius: 999px;
}

.hero-cestaria .swiper-scrollbar-drag {
  background: #273142;
  border-radius: 999px;
}


/* ==========================================================================
   4. COMPONENTES (Categorias e Cards)
   ========================================================================== */

/* Slider de Categorias */
.cat-slider .category-main-img {
  height: 185px;
  width: 100%;
  object-fit: cover;
}

.cat-slider .img-hover {
  overflow: hidden;
  display: block;
}

.cat-slider .img-hover img {
  transition: transform .35s ease;
}

.cat-slider .img-hover:hover img {
  transform: scale(1.04);
}

.cat-slider .category-card {
  transition: transform .25s ease;
}

.cat-slider .category-card:hover {
  transform: translateY(-5px);
}

/* Grid de Produtos */
.product-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.product-link:hover {
  color: #9c4f3b;
}


/* ==========================================================================
   5. MEDIA QUERIES (Responsivo)
   ========================================================================== */

@media (max-width: 991.98px) {
  .header-glass {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: none;
    box-shadow: 0 8px 24px rgba(98, 62, 43, 0.08) !important;
  }
  .hero-cestaria {
    --hero-sb-x: 2rem;
    --hero-sb-y: 1.25rem;
    min-height: 520px;
  }
}

@media (max-width: 767.98px) {
  .hero-cestaria {
    --hero-sb-x: 1.25rem;
    --hero-sb-y: 1rem;
    min-height: auto;
    padding-bottom: 3.25rem;
  }
}

@media (max-width: 575.98px) {
  .cat-slider .category-main-img {
    height: 200px;
  }
}