:root{
  /* largura máxima do conteúdo */
  --container-max: 1440px;    /* antes devia estar ~1080/1200; agora 1440 */
  --gutter: 24px;              /* respiro lateral padrão */
  --gutter-lg: 32px;           /* respiro em telas grandes */
  --gutter-sm: 16px;           /* respiro mobile */

  /* cores (mantém as que já existem) */
  --shopee: #ee4d2d;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --text: #222;
  --muted: #666;
  --ring: rgba(0,0,0,.08);
  --bg: #fff;
  --card:#ffffff;
  --stroke:#efefef;
  --shadow: 0 6px 20px rgba(0,0,0,.06);
  --radius: 16px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font:16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial}

/* container centralizador padrão */
.container{
  width: min(100% - 2*var(--gutter), var(--container-max));
  margin-inline: auto;
}

@media (min-width: 1280px){
  .container{
    width: min(100% - 2*var(--gutter-lg), var(--container-max));
  }
}

@media (max-width: 640px){
  .container{
    width: min(100% - 2*var(--gutter-sm), var(--container-max));
  }
}

.section-title{font-size:22px;margin:28px 0 14px}
.lead{margin:0;color:#fff;opacity:.95;font-size:clamp(0.9rem, 1.8vw, 1rem);font-weight:400}

/* topbar/header */
.topbar{background:var(--shopee);color:#fff;padding:20px 0}
.topbar .container{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.brand{margin:0;font-size:clamp(1.4rem, 2.5vw, 1.8rem);display:flex;gap:8px;align-items:center;font-weight:800;justify-content:center}

/* fundo que vai até as bordas */
.hero-wrap{
  background: linear-gradient(180deg, #fff 0%, #fff 50%, var(--surface-2) 100%);
  /* opcional: uma sombra bem suave abaixo do banner */
  box-shadow: 0 1px 0 0 var(--ring) inset;
  padding-block: clamp(12px, 3vw, 20px);
}

/* Hero carousel responsivo - SOLUÇÃO ULTRA SIMPLES */
.hero-carousel{
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}

.hero-carousel .track{
  display:flex;
  transition:transform .5s ease;
  will-change:transform;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.hero-slide{
  min-width:100%;
  position:relative;
  scroll-snap-align: center;
}

/* IMAGEM NATURAL - SEM FORÇAR ALTURA */
.hero-slide img{
  width: 100%;
  height: auto;
  display: block;
  /* Deixar a imagem se ajustar naturalmente */
}

/* SOLUÇÃO ALTERNATIVA: Mobile usa contain para não cortar */
@media (max-width: 1024px) {
  .hero-slide img {
    object-fit: contain !important;
    object-position: center;
    max-height: 300px;
    height: auto;
  }
}

/* Desktop: usar cover para preencher */
@media (min-width: 1025px) {
  .hero-slide img {
    object-fit: cover;
    height: 350px;
  }
}


.btn{
  display:inline-block;
  background:var(--shopee);
  color:#fff;
  padding:10px 16px;
  border-radius:12px;
  font-weight:700;
  text-decoration:none;
  box-shadow:var(--shadow);
}

.btn:hover{
  filter:brightness(.95);
}

/* Mobile: ajustar botão */
@media (max-width: 768px) {
  .btn{
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 8px;
  }
}

.hero-carousel .nav{
  position:absolute;
  top:50%;
  translate:0 -50%;
  background:rgba(255,255,255,0.95);
  border:2px solid var(--shopee);
  width:40px;
  height:40px;
  border-radius:50%;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
  font-size: 18px;
  font-weight: bold;
  color: var(--shopee);
  transition: all 0.2s ease;
  z-index: 10;
}

.hero-carousel .nav:hover{
  background: var(--shopee);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

/* Mobile: manter navegação visível mas menor */
@media (max-width: 480px) {
  .hero-carousel .nav{
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}

/* Mobile: reduzir tamanho dos botões de navegação */
@media (max-width: 768px) {
  .hero-carousel .nav{
    width: 32px;
    height: 32px;
  }
}

.hero-carousel .prev{
  left:15px;
}

.hero-carousel .next{
  right:15px;
}

/* Mobile: ajustar posição dos botões */
@media (max-width: 768px) {
  .hero-carousel .prev{
    left: 10px;
  }
  .hero-carousel .next{
    right: 10px;
  }
}

/* Mobile muito pequeno: posição mais próxima das bordas */
@media (max-width: 480px) {
  .hero-carousel .prev{
    left: 5px;
  }
  .hero-carousel .next{
    right: 5px;
  }
}

.hero-carousel .dots{
  position:absolute;
  left:0;
  right:0;
  bottom:8px;
  display:flex;
  gap:6px;
  justify-content:center;
}

.hero-carousel .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#fff8;
  border:1px solid #fff;
}

.hero-carousel .dot.active{
  background:#fff;
}

/* Mobile: ajustar dots */
@media (max-width: 768px) {
  .hero-carousel .dots{
    bottom: 12px;
  }
  .hero-carousel .dot{
    width: 6px;
    height: 6px;
  }
}

/* grid de categorias/cards */
.categories-grid{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr); /* mobile (2 colunas) */
}

@media (min-width: 640px){
  .categories-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px){
  .categories-grid{ grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1200px){
  .categories-grid{ grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 1440px){
  .categories-grid{ grid-template-columns: repeat(6, 1fr); }
}

.cat-card{
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.cat-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.12);
}

.cat-card h4{
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.cat-card .sub{
  font-size: 0.85rem;
  color: var(--muted);
}

/* Botões de categorias - Shopee Style */
.cat-card .btn {
  background: #ee4d2d;
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 12px;
  border: 2px solid #ee4d2d;
  transition: all .2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  display: inline-block;
  text-align: center;
  text-decoration: none;
  align-self: flex-start;
  margin-top: 8px;
}

.cat-card .btn:hover {
  background: #fff;
  color: #ee4d2d;
  border-color: #ee4d2d;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,.15);
}

/* Mobile: botões ocupam largura total */
@media (max-width: 768px) {
  .cat-card .btn {
    width: 100%;
  }
}



/* botões */
.btn{
  background: #fff;
  color: var(--shopee);
  border: 1px solid var(--shopee);
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  transition: background .15s ease, color .15s ease;
}

.btn:hover{
  background: var(--shopee);
  color: #fff;
}

/* em telas muito pequenas, reduzir "gutter" */
@media (max-width: 360px){
  :root{
    --gutter-sm: 12px;
  }
}

/* ====== Cards de categorias ====== */
.categories {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1280px) {
  .categories { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .categories { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .categories { grid-template-columns: repeat(2, 1fr); }
}

.cat-card {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: box-shadow .2s ease, transform .2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cat-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

.cat-card .image-container {
  position: relative;
  height: 120px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff3ef 0%, #ffe4dc 100%);
  transition: all 0.3s ease;
}

.cat-card .image-container:hover {
  transform: scale(1.02);
}

.cat-card .category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.cat-card:hover .category-image {
  transform: scale(1.05);
}

.cat-card .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}

.cat-card:hover .image-overlay {
  opacity: 1;
}

.cat-card .overlay-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #ee4d2d;
  border: 2px solid #ee4d2d;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all .2s ease;
}

.cat-card .overlay-btn:hover {
  background: #ee4d2d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(238, 77, 45, 0.3);
}

.cat-card .content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cat-card .head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  border-radius: 8px;
  padding: 4px;
}

.cat-card .head:hover {
  background: rgba(238, 77, 45, 0.05);
  transform: translateY(-1px);
}

.cat-card .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff3ef;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px #ffe4dc;
  font-size: 16px;
}

.cat-card h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
}

/* ====== Botão com gradiente Shopee ====== */
.btn {
  display: inline-block;
  text-align: center;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  transition: all .18s ease;
}

.btn-gradient {
  background: linear-gradient(135deg, #ff7b52 0%, #ee4d2d 50%, #ff9a79 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(238, 77, 45, .25);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 8px 18px rgba(238, 77, 45, .32);
}

.btn-gradient:active {
  transform: translateY(0);
  filter: brightness(.98);
  box-shadow: 0 3px 10px rgba(238, 77, 45, .25);
}

/* Mobile: botão full-width dentro do card */
@media (max-width: 768px) {
  .cat-card .btn { width: 100%; }
}
