@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
  --bg:#f7f8f6;
  --paper:#ffffff;
  --paper-soft:#fbfbfa;
  --ink:#202321;
  --muted:#7b817d;
  --line:#e6e9e5;
  --line-strong:#d7ddd8;
  --sage:#789184;
  --sage-soft:#edf2ef;
  --gold:#c4a46a;
  --green:#4d7b63;
  --shadow:0 12px 34px rgba(39,48,42,.07);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:"Manrope","Avenir Next","Helvetica Neue",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}

/* superior */
.topbar{
  min-height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:7px 14px;
  background:#eef4f1;
  border-bottom:1px solid #e2ebe6;
  color:#496658;
  font-size:8px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
}

/* header CD Perfumes */
header,.siteHeader{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.98);
  border-bottom:1px solid #e7ede9;
  box-shadow:0 4px 20px rgba(37,62,48,.035);
  backdrop-filter:blur(14px);
}
.headerInner{
  width:min(1380px,100%);
  min-height:104px;
  margin:0 auto;
  padding:10px 32px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:28px;
}
.brand,.siteHeader .brand{
  display:flex!important;
  align-items:center;
  justify-content:center;
  min-width:220px;
  font-size:0!important;
  line-height:0!important;
}
.brand img,.siteHeader .brand img{
  display:block!important;
  width:220px!important;
  height:82px!important;
  max-height:82px!important;
  object-fit:contain!important;
  opacity:1!important;
  visibility:visible!important;
}
.side,.headerSide{
  color:#687b70;
  font-size:9px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  white-space:nowrap;
}
.side.right,.headerSideRight{text-align:right}
.headerSideLeft{text-align:left}

/* quitamos la portada gigante: el catálogo comienza inmediatamente bajo la marca */
.hero{display:none!important}

/* catálogo */
.catalog{
  width:min(1400px,calc(100% - 48px));
  margin:0 auto;
  padding:44px 0 74px;
}
.catalogHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:20px;
}
.catalogHead>div{min-width:0}
.catalogHead .eyebrow{
  display:block;
  margin-bottom:7px;
  color:var(--sage);
  font-size:9px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.catalogHead h2{
  margin:0;
  color:#222522;
  font-size:clamp(30px,3.5vw,44px);
  font-weight:600;
  line-height:1.05;
  letter-spacing:-.04em;
}
.catalogIntro{
  max-width:640px;
  margin:9px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}
.catalogHead>span{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:31px;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:#737973;
  font-size:9px;
  font-weight:700;
}

/* búsqueda + filtros */
.search{
  width:100%;
  height:50px;
  margin:0;
  padding:0 16px;
  border:1px solid var(--line-strong);
  border-radius:14px;
  outline:none;
  background:#fff;
  color:#242724;
  font-family:inherit;
  font-size:13px;
  font-weight:500;
  box-shadow:0 3px 12px rgba(36,44,38,.03);
  transition:.18s ease;
}
.search::placeholder{color:#a2a8a3}
.search:focus{
  border-color:#9eb2a7;
  box-shadow:0 0 0 3px rgba(120,145,132,.10);
}
.chips{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:11px 0 22px;
  scrollbar-width:none;
}
.chips::-webkit-scrollbar{display:none}
.chips button{
  flex:0 0 auto;
  min-height:33px;
  padding:0 13px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:#666d67;
  font-family:inherit;
  font-size:8px;
  font-weight:800;
  letter-spacing:.02em;
  cursor:pointer;
  transition:.16s ease;
}
.chips button:hover{
  border-color:#c8d1cb;
  background:#fafbfa;
}
.chips button.active{
  border-color:#2c312e;
  background:#2c312e;
  color:#fff;
}
.status{
  margin:4px 0 18px;
  padding:24px;
  border:1px dashed #d8ddd9;
  border-radius:14px;
  background:#fff;
  color:#7d847e;
  text-align:center;
  font-size:11px;
}

/* productos */
.grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:16px;
}
.card{
  min-width:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--paper);
  box-shadow:0 3px 12px rgba(33,40,35,.025);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.card:hover{
  transform:translateY(-3px);
  border-color:#d2d8d3;
  box-shadow:var(--shadow);
}
.imgBox{
  position:relative;
  height:235px;
  padding:16px 15px 12px;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:#fbfbfa;
  border-bottom:1px solid #eef0ed;
}
.imgBox img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  transition:transform .18s ease;
}
.card:hover .imgBox img{transform:scale(1.02)}
.imgBox:after{display:none}

.body{
  flex:1;
  display:flex;
  flex-direction:column;
  padding:13px 14px 14px;
}
.badge{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  min-height:20px;
  padding:0 7px;
  border-radius:999px;
  background:var(--sage-soft);
  color:#60746a;
  font-size:7px;
  font-weight:800;
  letter-spacing:.07em;
}
.card h3{
  margin:9px 0 5px;
  min-height:39px;
  color:#252825;
  font-size:11px;
  font-weight:700;
  line-height:1.38;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.sku{
  margin-bottom:10px;
  color:#a3a8a4;
  font-size:7px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.bottom{
  margin-top:auto;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
}
.price{
  color:#242724;
  font-size:17px;
  font-weight:800;
  line-height:1;
  letter-spacing:-.02em;
}
.available{
  color:var(--green);
  font-size:7px;
  font-weight:800;
  letter-spacing:.06em;
}
.view{
  width:100%;
  min-height:36px;
  margin-top:11px;
  padding:0 10px;
  border:1px solid #d9ddda;
  border-radius:10px;
  background:#f8f9f7;
  color:#373c38;
  font-family:inherit;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
  transition:.16s ease;
}
.view:hover{
  border-color:#2c312e;
  background:#2c312e;
  color:#fff;
}

/* footer */
footer{
  padding:34px 20px;
  background:#262a27;
  border-top:1px solid #313632;
  color:#cfd4d0;
  text-align:center;
}
.footerBrand{
  color:#fff;
  font-size:16px;
  font-weight:700;
  letter-spacing:.08em;
}
.footerBrand small{
  color:#c8cdc9;
  font-size:8px;
  letter-spacing:.12em;
}
footer p{
  margin:9px 0 0;
  color:#929993;
  font-size:10px;
}

/* modal */
.modal{
  position:fixed;
  inset:0;
  z-index:100;
  display:grid;
  place-items:center;
  padding:18px;
}
.modal.hidden{display:none}
.modalBackdrop{
  position:absolute;
  inset:0;
  background:rgba(25,29,26,.62);
  backdrop-filter:blur(8px);
}
.modalCard{
  position:relative;
  z-index:1;
  width:min(850px,94vw);
  max-height:90vh;
  overflow:auto;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  border:1px solid #e3e7e3;
  border-radius:22px;
  background:#fff;
  box-shadow:0 30px 90px rgba(24,30,26,.26);
}
.modalClose{
  position:absolute;
  right:14px;
  top:14px;
  z-index:2;
  width:38px;
  height:38px;
  border:1px solid #e1e5e1;
  border-radius:50%;
  background:#fff;
  color:#39403b;
  font-size:22px;
  cursor:pointer;
}
.modalImage{
  min-height:460px;
  padding:28px;
  display:grid;
  place-items:center;
  background:#fbfbfa;
}
.modalImage img{
  width:100%;
  height:100%;
  max-height:410px;
  object-fit:contain;
}
.modalInfo{
  padding:44px 34px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:#f4f6f3;
  border-left:1px solid #e4e8e4;
}
.modalInfo h3{
  margin:12px 0 10px;
  color:#272b28;
  font-size:26px;
  font-weight:700;
  line-height:1.08;
  letter-spacing:-.03em;
}
.modalSku{
  margin-bottom:16px;
  color:#929992;
  font-size:9px;
}
.modalPrice{
  margin-bottom:8px;
  color:#252925;
  font-size:28px;
  font-weight:800;
  letter-spacing:-.03em;
}
.modalAvailable{
  color:var(--green);
  font-size:9px;
  font-weight:800;
}
.modalNote{
  margin-top:20px;
  color:#737a74;
  font-size:10px;
  line-height:1.55;
}
.modalTrust{
  display:grid;
  gap:7px;
  margin-top:20px;
  padding-top:17px;
  border-top:1px solid #dce1dd;
  color:#6f766f;
  font-size:9px;
  font-weight:700;
}
body.modalOpen{overflow:hidden}
.hidden{display:none!important}

@media(max-width:1250px){
  .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:980px){
  .catalog{width:min(100% - 32px,1400px)}
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  .topbar{
    min-height:26px;
    padding:5px 8px;
    font-size:7px;
    letter-spacing:.10em;
  }
  .headerInner{
    min-height:82px;
    grid-template-columns:1fr;
    padding:8px 14px;
  }
  .side,.headerSide{display:none}
  .brand,.siteHeader .brand{min-width:0}
  .brand img,.siteHeader .brand img{
    width:176px!important;
    height:66px!important;
    max-height:66px!important;
  }
  .catalog{
    width:calc(100% - 20px);
    padding:28px 0 52px;
  }
  .catalogHead{
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
    margin-bottom:16px;
  }
  .catalogHead h2{
    font-size:31px;
    line-height:1.03;
  }
  .catalogIntro{font-size:10px}
  .catalogHead>span{min-height:28px;font-size:8px}
  .search{height:46px;font-size:12px}
  .chips{padding:9px 0 17px}
  .chips button{
    min-height:31px;
    padding:0 10px;
    font-size:7px;
  }
  .grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }
  .card{border-radius:14px}
  .imgBox{
    height:178px;
    padding:10px 8px 8px;
  }
  .body{padding:9px 9px 10px}
  .badge{
    min-height:18px;
    padding:0 5px;
    font-size:6px;
  }
  .card h3{
    margin:7px 0 4px;
    min-height:35px;
    font-size:9px;
  }
  .sku{font-size:6px;margin-bottom:8px}
  .price{font-size:14px}
  .available{font-size:6px}
  .view{
    min-height:33px;
    margin-top:9px;
    font-size:8px;
  }
  .modalCard{
    grid-template-columns:1fr;
    max-height:92vh;
  }
  .modalImage{
    min-height:280px;
    height:300px;
    padding:18px;
  }
  .modalInfo{
    padding:22px 18px 24px;
    border-left:0;
    border-top:1px solid #e4e8e4;
  }
  .modalInfo h3{font-size:23px}
  .modalPrice{font-size:24px}
}

/* Official logo, airy white header */
.brand img,.siteHeader .brand img{
 content:url("/assets/cd-logo-biblioteca.svg");
 width:248px!important;height:124px!important;max-height:124px!important;
 filter:none!important;mix-blend-mode:normal;object-fit:contain!important;
}
.headerInner{height:auto;min-height:148px;padding:10px 32px;}
.side,.headerSide{font-size:10px;letter-spacing:.14em;font-weight:600;}
@media(max-width:700px){
 .headerInner{height:auto;min-height:112px;padding:6px 20px;gap:0;}
 .brand img,.siteHeader .brand img{width:200px!important;height:100px!important;max-height:100px!important;}
 .topbar{font-size:9px;letter-spacing:.10em;padding:8px 12px;}
}
