:root{
  --pink-header: rgba(216,138,151,0.47);
  --pink-label: #d88a97;
  --pink-btn: rgba(215,137,150,0.9);
  --olive-band: #b7bd91;
  --banner-strip: #f5e5e5;
  --text-black: #1a1a1a;
}

*{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
  width:100%;
  background:#ffffff;
  font-family:'Afacad Flux', sans-serif;
  color:var(--text-black);
  overflow-x:hidden;
}

a{ text-decoration:none; color:inherit; }

.page{
  display:flex;
  flex-direction:column;
  min-height:100vh;
  width:100%;
}

/* ===== cabeçalho ===== */
.topbar{
  flex:0 0 auto;
  width:100%;
  background:var(--pink-header);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: clamp(8px,1.4vw,14px) clamp(20px,4vw,60px);
  flex-wrap:wrap;
  row-gap:8px;
}

.logo{ line-height:1; white-space:nowrap; }
.logo .lux{ font-family:'Luxurious Script', cursive; font-size:clamp(24px,2.6vw,44px); }
.logo .ita{ font-family:'Italiana', serif; font-size:clamp(18px,2vw,32px); letter-spacing:1px; }
.logo .imp{ font-family:'Imperial Script', cursive; font-size:clamp(24px,2.6vw,44px); }

.navlinks{
  display:flex;
  gap:clamp(16px,2.6vw,44px);
  flex-wrap:wrap;
  justify-content:center;
}
.nav-item{
  position:relative;
  font-size:clamp(16px,1.6vw,26px);
  font-weight:400;
  color:var(--text-black);
  padding-bottom:2px;
}
.nav-item.active{ font-weight:700; color:#ffffff; }
.nav-item::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  width:0%;
  height:2px;
  background:currentColor;
  transition:width .25s ease;
}
.nav-link{ cursor:pointer; transition:opacity .2s ease; }
.nav-link:hover{ opacity:0.7; }
.nav-link:hover::after,
.nav-item:hover::after{ width:100%; }

.icons{
  display:flex;
  align-items:center;
  gap:clamp(12px,1.6vw,22px);
}
.icons svg{
  width:clamp(20px,1.8vw,26px);
  height:clamp(20px,1.8vw,26px);
  fill:none;
  stroke:#1a1a1a;
  stroke-width:1.8;
}

/* ===== barra de busca ===== */
.search-wrap{
  width:100%;
  display:flex;
  justify-content:center;
  padding:clamp(20px,3vw,34px) clamp(16px,3vw,40px);
}
.search-bar{
  width:100%;
  max-width:700px;
  display:flex;
  align-items:center;
  border:1px solid rgba(0,0,0,0.18);
  border-radius:36px;
  padding:clamp(10px,1.4vw,14px) clamp(20px,2.4vw,28px);
  gap:12px;
}
.search-bar input{
  flex:1;
  border:none;
  outline:none;
  font-family:'Afacad Flux', sans-serif;
  font-size:clamp(16px,1.6vw,24px);
  color:#595858;
  background:transparent;
}
.search-bar input::placeholder{ color:#595858; }
.search-bar button{
  border:none;
  background:none;
  cursor:pointer;
  display:flex;
  padding:0;
}
.search-bar svg{
  width:clamp(20px,1.8vw,28px);
  height:clamp(20px,1.8vw,28px);
  fill:none;
  stroke:#595858;
  stroke-width:2;
}

/* ===== barra de categorias (com dropdown em CSS) ===== */
.category-bar{
  width:100%;
  background:var(--olive-band);
  display:flex;
  gap:clamp(24px,4vw,60px);
  justify-content:center;
  align-items:center;
  padding:clamp(10px,1.4vw,14px) 20px;
  flex-wrap:wrap;
  position:relative;
  z-index:5;
}
.category-item{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:clamp(16px,1.4vw,22px);
  cursor:pointer;
}
.chevron{
  width:8px;
  height:8px;
  border-right:2px solid var(--text-black);
  border-bottom:2px solid var(--text-black);
  transform:rotate(45deg);
  margin-top:-4px;
  transition:transform .2s ease;
}

.category-dropdown{
  position:relative;
}
.dropdown-panel{
  list-style:none;
  margin:0;
  padding:10px 0;
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  background:var(--olive-band);
  min-width:220px;
  border-radius:0 0 8px 8px;
  box-shadow:0 8px 16px rgba(0,0,0,0.12);
  opacity:0;
  visibility:hidden;
  transition:opacity .2s ease;
}
.dropdown-panel li{ padding:8px 20px; }
.dropdown-panel a{ font-size:clamp(16px,1.4vw,20px); }
.dropdown-panel a:hover{ opacity:0.7; }

.category-dropdown:hover .dropdown-panel,
.category-dropdown:focus-within .dropdown-panel{
  opacity:1;
  visibility:visible;
}
.category-dropdown:hover .chevron{ transform:rotate(225deg); }

/* ===== banner ===== */
.banner-photo{
  position:relative;
  width:100%;
  height:clamp(90px,14vw,180px);
  overflow:hidden;
}
.banner-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.banner-tag{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  background:var(--banner-strip);
  text-align:center;
  font-family:'IM Fell French Canon', serif;
  color:var(--pink-label);
  font-size:clamp(18px,2vw,30px);
  padding:clamp(6px,1vw,10px) 0;
}

/* ===== conteúdo principal ===== */
.catalog-main{
  flex:1 1 auto;
  width:100%;
  padding:clamp(24px,4vw,50px) clamp(20px,5vw,70px);
}

.filtros-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:clamp(18px,1.8vw,24px);
  cursor:pointer;
  margin:0 0 clamp(24px,3vw,36px) 0;
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:clamp(20px,3vw,36px);
}

.product-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.product-card img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:8px;
  margin-bottom:clamp(14px,1.8vw,20px);
}
.product-card h3{
  margin:0 0 4px 0;
  color:var(--pink-label);
  font-weight:400;
  font-size:clamp(18px,1.6vw,24px);
}
.price{
  margin:0 0 clamp(14px,1.8vw,20px) 0;
  font-size:clamp(18px,1.6vw,24px);
}

.btn-comprar{
  display:block;
  width:100%;
  max-width:220px;
  text-align:center;
  background:var(--pink-btn);
  color:#ffffff;
  font-weight:700;
  font-size:clamp(16px,1.5vw,22px);
  padding:clamp(10px,1.4vw,14px) 0;
  border-radius:10px;
  transition:transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn-comprar:hover{
  background:#c67a87;
  transform:translateY(-2px);
  box-shadow:0 6px 14px rgba(0,0,0,0.15);
}
.btn-comprar:active{ transform:scale(0.96); }

/* ===== paginação ===== */
.pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin-top:clamp(40px,6vw,70px);
  font-family:'Fleur De Leah', cursive;
}
.page-arrow{
  font-size:clamp(28px,3vw,40px);
  color:var(--olive-band);
  transition:transform .2s ease, color .2s ease;
}
.page-arrow:hover{
  color:var(--pink-label);
  transform:scale(1.15);
}
.page-number{
  font-size:clamp(24px,2.6vw,34px);
  color:var(--text-black);
}

/* ===== responsivo ===== */
@media (max-width: 900px){
  .navlinks{ order:3; width:100%; justify-content:center; }
  .icons{ order:2; }
  .category-bar{ gap:20px; }
}

@media (max-width: 600px){
  .banner-photo{ height:110px; }
  .product-grid{ grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); }
}

@media (max-width: 400px){
  .search-bar{ padding:8px 16px; }
}