/* DAX Parfums · ancho fluido 1080p / QHD / 4K, sin franjas laterales */
:root, html { background:#111214; color-scheme:dark; }
html, body { width:100%; max-width:100%; min-width:0; overflow-x:clip; }
body { background:#111214 !important; }
.promo, header, footer, #view { width:100%; max-width:none; }
header {
  box-sizing:border-box;
  width:100%; max-width:none; margin:0;
  padding-inline:clamp(18px,5vw,100px);
  background:#17181a !important;
  border-bottom:1px solid #303238;
}
.wrap {
  box-sizing:border-box;
  width:100%; max-width:2200px;
  margin-inline:auto;
  padding-inline:clamp(20px,4.7vw,100px);
}
.reference-hero { width:100%; padding-inline:clamp(24px,7vw,134px); min-height:clamp(540px,58vh,810px); }
.grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(12px,1.4vw,24px); }
@media(min-width:2100px){.grid { grid-template-columns:repeat(5,minmax(0,1fr)); } }
@media(min-width:3000px){.grid { grid-template-columns:repeat(6,minmax(0,1fr)); } }
@media(max-width:1300px) { .grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:850px) {
  header { padding-inline:20px; }
  .wrap { padding-inline:20px; }
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .reference-hero { min-height:560px; padding-inline:7vw; }
}
@media(max-width:650px) {
  header { min-height:82px; flex-wrap:wrap; padding:12px 16px; }
  .wrap { padding-inline:16px; }
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .reference-hero { min-height:max(620px,150vw); padding:clamp(52px,8vw,76px) 24px 40px; }
}
@media(max-width:380px) {
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  header .topnav { order:3; width:100%; justify-content:center; }
}

/* Categorías nuevas: navegación adaptada sin romper el encabezado móvil. */
@media (max-width: 950px) {
  header { flex-wrap:wrap; }
  header .topnav {
    order:3; width:100%; min-width:0;
    display:flex; flex-wrap:nowrap; justify-content:flex-start;
    gap:clamp(15px,3.2vw,27px); overflow-x:auto; overflow-y:hidden;
    white-space:nowrap; scrollbar-width:none; -webkit-overflow-scrolling:touch;
  }
  header .topnav::-webkit-scrollbar { display:none; }
  header .topnav a { flex:0 0 auto; }
}
@media (max-width:420px) {
  .catalog-section .chips { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .catalog-section .chips button { min-width:0; width:100%; }
}
