/* ===========================================================
   ADORN PERFUMES — Catálogo Femenino & Unisex
   Design tokens derived from the original PDF catalog identity
   =========================================================== */
:root{
  --ink: #0d1220;
  --ink-2: #171d33;
  --ink-soft: #2a3350;
  --plum: #3a0d4a;
  --plum-2: #52145f;
  --plum-deep: #22052e;
  --rose: #a8477a;
  --rose-light: #f3d9e6;
  --bg: #f8f5f8;
  --card: #ffffff;
  --text: #241a26;
  --text-muted: #6c6072;
  --text-faint: #a599a8;
  --border: #ecdfec;
  --gold: #b7955a;
  --gold-light: #ecd9b6;
  --whatsapp: #25D366;
  --whatsapp-dark: #1da851;
  --danger: #c0455a;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --shadow-s: 0 2px 10px rgba(58,13,74,.07);
  --shadow-m: 0 10px 30px rgba(58,13,74,.12);
  --shadow-l: 0 20px 60px rgba(34,5,46,.25);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 76px;
}

*,*::before,*::after{box-sizing:border-box;}
[hidden]{display:none !important;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important;}
}
body{
  margin:0;
  font-family:var(--font-sans);
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer;}
input,select{font-family:inherit;}
h1,h2,h3{margin:0; font-family:var(--font-display);}
:focus-visible{outline:2px solid var(--gold); outline-offset:2px;}

/* ===== HEADER ===== */
.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--card);
  border-bottom:1px solid var(--border);
  height:var(--header-h);
}
.header-inner{
  max-width:1400px; margin:0 auto; height:100%;
  display:flex; align-items:center; gap:24px;
  padding:0 24px;
}
.brand{display:flex; align-items:center; gap:10px; flex-shrink:0;}
.brand-mark{
  width:38px; height:38px; border-radius:8px;
  background:linear-gradient(135deg, var(--plum), var(--plum-2));
  color:#fff; font-family:var(--font-display); font-weight:700; font-size:20px;
  display:flex; align-items:center; justify-content:center;
}
.brand-text{display:flex; flex-direction:column; line-height:1.1;}
.brand-name{font-family:var(--font-display); font-weight:700; font-size:19px; letter-spacing:.06em; color:var(--plum);}
.brand-sub{font-size:9px; letter-spacing:.28em; color:var(--text-muted); font-weight:500;}

.search-wrap{
  flex:1; max-width:560px; position:relative;
  display:flex; align-items:center;
}
.search-icon{width:18px; height:18px; position:absolute; left:14px; color:var(--text-faint); pointer-events:none;}
#searchInput{
  width:100%; padding:11px 40px 11px 40px;
  border:1px solid var(--border); border-radius:999px;
  background:var(--bg); font-size:14px; color:var(--text);
  transition:border-color .2s, box-shadow .2s;
}
#searchInput:focus{border-color:var(--gold); box-shadow:0 0 0 3px rgba(183,150,91,.15); outline:none;}
.clear-search{
  position:absolute; right:10px; background:none; border:none; font-size:20px;
  color:var(--text-faint); width:24px; height:24px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.clear-search:hover{background:var(--border); color:var(--text);}

.header-actions{display:flex; align-items:center; gap:10px; flex-shrink:0;}
.icon-btn{
  position:relative; background:none; border:1px solid var(--border); border-radius:999px;
  width:44px; height:44px; display:flex; align-items:center; justify-content:center;
  color:var(--ink); transition:background .2s, border-color .2s;
}
.icon-btn svg{width:20px; height:20px;}
.icon-btn:hover{background:var(--bg); border-color:var(--ink-soft);}
.filter-toggle{width:auto; padding:0 16px; gap:8px; display:none;}
.filter-toggle-label{font-size:13px; font-weight:600; letter-spacing:.02em;}
.badge-count{
  position:absolute; top:-4px; right:-4px; background:var(--gold);
  color:#fff; font-size:10px; font-weight:700; min-width:17px; height:17px; border-radius:999px;
  display:flex; align-items:center; justify-content:center; padding:0 4px;
}
.badge-count[hidden]{display:none;}

/* ===== HERO ===== */
.hero{
  background:
    radial-gradient(circle at 85% 20%, rgba(183,150,91,.18), transparent 45%),
    linear-gradient(120deg, var(--plum) 0%, #2b0838 55%, #1a0424 100%);
  color:#fff; padding:76px 24px 92px; text-align:center; position:relative; overflow:hidden;
}
.hero::before{
  content:'';
  position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:26px 26px;
  opacity:.4;
}
.hero-inner{max-width:720px; margin:0 auto; position:relative;}
.hero-eyebrow{
  font-size:12px; letter-spacing:.3em; text-transform:uppercase;
  color:var(--gold-light); margin:0 0 18px; font-weight:600;
}
.hero-title{
  font-size:clamp(30px, 5vw, 50px); line-height:1.15; font-weight:700;
  margin:0 0 20px; color:#fff;
}
.hero-subtitle{
  font-size:16px; line-height:1.6; color:#c7cce0; margin:0 auto 34px; max-width:560px;
}
.hero-actions{display:flex; gap:14px; justify-content:center; flex-wrap:wrap;}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 28px; border-radius:999px; font-size:14px; font-weight:600;
  letter-spacing:.02em; border:1px solid transparent; transition:transform .15s, box-shadow .15s, background .2s;
}
.btn:active{transform:scale(.97);}
.btn-light{background:#fff; color:var(--plum);}
.btn-light:hover{box-shadow:0 8px 24px rgba(255,255,255,.18);}
.btn-outline-light{background:transparent; color:#fff; border-color:rgba(255,255,255,.4);}
.btn-outline-light:hover{background:rgba(255,255,255,.1); border-color:#fff;}
.btn-whatsapp{background:var(--whatsapp); color:#fff;}
.btn-whatsapp:hover{background:var(--whatsapp-dark);}
.btn-whatsapp svg{width:18px; height:18px;}

/* ===== TOOLBAR ===== */
.toolbar{
  background:var(--card); border-bottom:1px solid var(--border);
  position:sticky; top:var(--header-h); z-index:50;
}
.toolbar-inner{
  max-width:1400px; margin:0 auto; padding:14px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.results-count{margin:0; font-size:14px; color:var(--text-muted); font-weight:500;}
.toolbar-right{display:flex; align-items:center; gap:10px;}
.sort-label{font-size:13px; color:var(--text-muted);}
.sort-select{
  border:1px solid var(--border); border-radius:8px; padding:9px 12px;
  font-size:13px; background:#fff; color:var(--text); font-weight:500;
}
.active-chips{
  max-width:1400px; margin:0 auto; padding:0 24px 14px;
  display:flex; gap:8px; flex-wrap:wrap;
}
.chip{
  display:inline-flex; align-items:center; gap:6px;
  background:var(--bg); border:1px solid var(--border); border-radius:999px;
  padding:6px 8px 6px 14px; font-size:12.5px; color:var(--ink); font-weight:500;
}
.chip button{
  background:var(--plum); color:#fff; border:none; width:18px; height:18px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:13px; line-height:1;
}
.chip-clear-all{
  background:none; border:1px dashed var(--text-faint); color:var(--text-muted);
  padding:6px 14px; font-size:12.5px; font-weight:600; border-radius:999px;
}
.chip-clear-all:hover{border-color:var(--danger); color:var(--danger);}

/* ===== MAIN LAYOUT ===== */
.main-layout{
  max-width:1400px; margin:0 auto; padding:28px 24px 60px;
  display:grid; grid-template-columns:270px 1fr; gap:32px; align-items:start;
}

/* ===== FILTERS ===== */
.filters{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius-l);
  padding:22px; position:sticky; top:calc(var(--header-h) + 76px);
  max-height:calc(100vh - var(--header-h) - 100px); overflow-y:auto;
}
.filters-header{display:none; align-items:center; justify-content:space-between; margin-bottom:16px;}
.filters-header h2{font-size:20px;}
.close-filters{width:36px; height:36px;}
.btn-clear-filters{
  width:100%; background:var(--bg); border:1px solid var(--border); color:var(--ink);
  padding:11px; border-radius:10px; font-size:13px; font-weight:600; margin-bottom:22px;
  transition:background .2s, border-color .2s;
}
.btn-clear-filters:hover{background:#fff; border-color:var(--danger); color:var(--danger);}
.filter-group{border-top:1px solid var(--border); padding:18px 0;}
.filter-group:first-of-type{border-top:none; padding-top:0;}
.filter-group h3{
  font-size:12px; text-transform:uppercase; letter-spacing:.12em; color:var(--ink);
  font-weight:700; margin-bottom:12px; font-family:var(--font-sans);
}
.filter-options{display:flex; flex-direction:column; gap:9px; max-height:220px; overflow-y:auto; padding-right:4px;}
.chk{display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--text); cursor:pointer; user-select:none;}
.chk input{width:16px; height:16px; accent-color:var(--rose); cursor:pointer; flex-shrink:0;}
.chk span{flex:1;}
.chk .count{color:var(--text-faint); font-size:12px;}

.price-range{display:flex; flex-direction:column; gap:12px;}
.price-inputs{display:flex; align-items:center; gap:10px;}
.price-input-wrap{
  display:flex; align-items:center; gap:4px; border:1px solid var(--border); border-radius:8px;
  padding:8px 10px; flex:1; font-size:13px;
}
.price-input-wrap span{color:var(--text-faint); font-weight:600;}
.price-input-wrap input{border:none; width:100%; font-size:13px; background:none; color:var(--text);}
.price-input-wrap input:focus{outline:none;}
.price-sep{color:var(--text-faint);}
.range-slider{width:100%; accent-color:var(--rose);}

.filters-overlay{
  display:none; position:fixed; inset:0; background:rgba(13,18,32,.5); z-index:150;
}

/* ===== PRODUCT GRID ===== */
.product-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:22px;
}
.product-card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius-l);
  overflow:hidden; display:flex; flex-direction:column;
  transition:transform .22s ease, box-shadow .22s ease;
  animation:fadeIn .35s ease both;
}
@keyframes fadeIn{from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);}}
.product-card:hover{transform:translateY(-4px); box-shadow:var(--shadow-m);}

.card-media{
  position:relative; background:linear-gradient(160deg,#f6ecf3,#faf7fa);
  aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; padding:18px;
  cursor:pointer;
}
.card-media img{max-height:100%; max-width:100%; object-fit:contain; transition:transform .3s ease;}
.product-card:hover .card-media img{transform:scale(1.04);}
.card-price{
  position:absolute; top:12px; left:12px; background:var(--ink); color:#fff;
  font-size:14px; font-weight:700; letter-spacing:.03em; padding:6px 12px; border-radius:6px;
}
.card-fav{
  position:absolute; top:10px; right:10px; width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,.92); border:none; display:flex; align-items:center; justify-content:center;
  color:var(--ink); backdrop-filter:blur(4px); transition:transform .15s, color .15s;
}
.card-fav svg{width:18px; height:18px;}
.card-fav:hover{transform:scale(1.08);}
.card-fav.active{color:var(--danger);}
.card-fav.active svg{fill:var(--danger); stroke:var(--danger);}
.card-set-badge{
  position:absolute; bottom:12px; left:12px; background:rgba(13,18,32,.85); color:#fff;
  font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  padding:5px 10px; border-radius:999px;
}

.card-body{padding:16px 18px 18px; display:flex; flex-direction:column; gap:8px; flex:1;}
.card-brand{font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--text-muted); font-weight:600;}
.card-name{font-size:16.5px; font-weight:700; color:var(--ink); line-height:1.3; font-family:var(--font-sans);}
.card-presentation{font-size:12.5px; color:var(--text-muted);}
.card-family{display:flex; flex-wrap:wrap; gap:6px; margin-top:2px;}
.tag-family{
  font-size:11px; font-weight:600; color:var(--ink-soft); background:var(--bg);
  border:1px solid var(--border); padding:3px 9px; border-radius:999px;
}
.card-desc{font-size:13px; color:var(--text-muted); line-height:1.55; margin:2px 0;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;}
.card-tags-icons{display:flex; gap:8px; margin-top:2px; flex-wrap:wrap;}
.mini-tag{
  display:flex; align-items:center; gap:4px; font-size:10.5px; color:var(--text-muted);
  background:var(--bg); padding:4px 8px; border-radius:999px; font-weight:600;
}
.mini-tag svg{width:12px; height:12px;}

.card-actions{display:flex; gap:8px; margin-top:auto; padding-top:8px;}
.btn-details{
  flex:1; background:var(--card); border:1px solid var(--plum); color:var(--plum);
  padding:10px; border-radius:10px; font-size:12.5px; font-weight:700; letter-spacing:.02em;
  transition:background .2s, color .2s;
}
.btn-details:hover{background:var(--plum); color:#fff;}
.btn-card-whatsapp{
  flex:1; background:var(--whatsapp); color:#fff; border:none; border-radius:10px;
  font-size:12.5px; font-weight:700; display:flex; align-items:center; justify-content:center; gap:6px;
  padding:10px; transition:background .2s;
}
.btn-card-whatsapp:hover{background:var(--whatsapp-dark);}
.btn-card-whatsapp svg{width:15px; height:15px;}

.no-results{
  text-align:center; padding:80px 20px; color:var(--text-muted); grid-column:1/-1;
}
.no-results svg{width:44px; height:44px; color:var(--text-faint); margin-bottom:14px;}
.no-results h3{font-size:19px; color:var(--ink); margin-bottom:8px; font-family:var(--font-sans);}
.no-results p{font-size:14px; margin-bottom:20px;}
.no-results .btn-clear-filters{width:auto; padding:11px 24px; display:inline-block;}

/* ===== BACK TO TOP ===== */
.back-to-top{
  position:fixed; bottom:26px; right:26px; width:48px; height:48px; border-radius:50%;
  background:var(--plum); color:#fff; border:none; display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-m); z-index:80; transition:transform .2s, opacity .2s;
}
.back-to-top svg{width:20px; height:20px;}
.back-to-top:hover{transform:translateY(-3px);}

/* ===== HELP FLOAT BUTTON ===== */
.help-float{
  position:fixed; bottom:26px; left:26px; z-index:80;
  width:56px; height:56px; border-radius:50%;
  background:var(--whatsapp); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-m); transition:transform .2s;
}
.help-float svg{width:26px; height:26px;}
.help-float:hover{transform:scale(1.06);}

/* ===== FAVORITES DRAWER ===== */
.fav-drawer{
  position:fixed; top:0; right:-420px; width:100%; max-width:420px; height:100%;
  background:#fff; z-index:210; box-shadow:var(--shadow-l);
  display:flex; flex-direction:column; transition:right .3s ease;
}
.fav-drawer.open{right:0;}
.fav-drawer-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 22px; border-bottom:1px solid var(--border);
}
.fav-drawer-header h2{font-size:20px;}
.fav-drawer-body{flex:1; overflow-y:auto; padding:16px 22px;}
.fav-item{display:flex; gap:12px; padding:12px 0; border-bottom:1px solid var(--border);}
.fav-item img{width:56px; height:56px; object-fit:contain; background:var(--bg); border-radius:8px; padding:6px;}
.fav-item-info{flex:1;}
.fav-item-name{font-size:13.5px; font-weight:700; color:var(--ink);}
.fav-item-brand{font-size:11px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.08em;}
.fav-item-price{font-size:12.5px; color:var(--ink-soft); font-weight:600; margin-top:2px;}
.fav-item-remove{background:none; border:none; color:var(--text-faint); font-size:20px; align-self:flex-start;}
.fav-item-remove:hover{color:var(--danger);}
.fav-empty{text-align:center; color:var(--text-muted); padding:60px 10px; font-size:13.5px;}
.fav-drawer-footer{padding:18px 22px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:10px;}
.fav-drawer-footer .btn-whatsapp{width:100%; padding:13px;}
.fav-drawer-overlay{display:none; position:fixed; inset:0; background:rgba(13,18,32,.5); z-index:200;}
.fav-drawer-overlay.open{display:block;}

/* ===== MODAL ===== */
.modal-overlay{
  display:none; position:fixed; inset:0; background:rgba(13,18,32,.6); z-index:300;
  align-items:center; justify-content:center; padding:20px;
}
.modal-overlay.open{display:flex;}
.modal{
  background:#fff; border-radius:var(--radius-l); max-width:840px; width:100%;
  max-height:90vh; overflow-y:auto; position:relative; box-shadow:var(--shadow-l);
  animation:modalIn .25s ease;
}
@keyframes modalIn{from{opacity:0; transform:scale(.96) translateY(10px);} to{opacity:1; transform:scale(1) translateY(0);}}
.close-modal{
  position:absolute; top:16px; right:16px; z-index:2; background:#fff; font-size:20px;
}
.modal-body{display:grid; grid-template-columns:1fr 1fr;}
.modal-media{
  background:linear-gradient(160deg,#f6ecf3,#faf7fa); display:flex; align-items:center; justify-content:center;
  padding:40px; border-radius:var(--radius-l) 0 0 var(--radius-l);
}
.modal-media img{max-height:420px;}
.modal-info{padding:36px 34px; display:flex; flex-direction:column; gap:12px;}
.modal-brand{font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--text-muted); font-weight:700;}
.modal-name{font-size:26px; font-weight:700; color:var(--ink); line-height:1.2;}
.modal-presentation{font-size:13.5px; color:var(--text-muted);}
.modal-price{font-size:24px; font-weight:800; color:var(--ink); font-family:var(--font-display);}
.modal-family{display:flex; gap:8px; flex-wrap:wrap;}
.modal-desc{font-size:14px; line-height:1.7; color:var(--text);}
.modal-set-contents{
  background:var(--bg); border-radius:10px; padding:14px 16px; font-size:13px; color:var(--text-muted);
  border-left:3px solid var(--gold);
}
.modal-set-contents strong{color:var(--ink); display:block; margin-bottom:4px; font-size:12px; text-transform:uppercase; letter-spacing:.06em;}
.modal-tags{display:flex; gap:10px; flex-wrap:wrap; margin-top:2px;}
.modal-actions{display:flex; gap:10px; margin-top:10px;}
.modal-actions .btn-whatsapp{flex:1; padding:14px;}
.modal-actions .card-fav{position:static; border:1px solid var(--border); background:#fff;}

/* ===== FOOTER ===== */
.site-footer{background:var(--plum-deep); color:#fff; padding:44px 24px;}
.footer-inner{
  max-width:1400px; margin:0 auto; display:flex; align-items:center; justify-content:space-between;
  gap:24px; flex-wrap:wrap;
}
.footer-brand{display:flex; align-items:center; gap:12px;}
.footer-brand-name{font-family:var(--font-display); font-weight:700; font-size:16px; margin:0; letter-spacing:.05em;}
.footer-tag{font-size:12px; color:#9aa1b8; margin:2px 0 0;}
.footer-contact{display:flex; gap:20px; flex-wrap:wrap; font-size:13px;}
.footer-contact a:hover{color:var(--gold-light);}
.footer-copy{width:100%; text-align:center; font-size:11.5px; color:#7b8299; margin:28px 0 0; border-top:1px solid rgba(255,255,255,.1); padding-top:20px;}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1024px){
  .main-layout{grid-template-columns:1fr;}
  .filters{
    position:fixed; top:0; left:-320px; width:300px; height:100%; z-index:200;
    border-radius:0; max-height:100%; transition:left .3s ease; padding:20px;
  }
  .filters.open{left:0;}
  .filters-header{display:flex;}
  .filters-overlay.open{display:block;}
  .filter-toggle{display:flex;}
}

@media (max-width: 760px){
  .header-inner{gap:10px; padding:0 14px;}
  .brand-sub{display:none;}
  .search-wrap{order:3; max-width:100%; width:100%; margin-top:8px;}
  .site-header{height:auto; padding:10px 0;}
  :root{--header-h:96px;}
  .header-inner{flex-wrap:wrap;}
  .filter-toggle-label{display:none;}
  .filter-toggle{padding:0; width:44px;}
  .hero{padding:52px 18px 64px;}
  .hero-actions{flex-direction:column; align-items:stretch;}
  .toolbar-inner{padding:12px 16px;}
  .main-layout{padding:20px 14px 40px;}
  .product-grid{grid-template-columns:repeat(auto-fill, minmax(150px,1fr)); gap:14px;}
  .card-body{padding:12px 13px 14px;}
  .card-name{font-size:14.5px;}
  .card-desc{-webkit-line-clamp:2;}
  .card-actions{flex-direction:column;}
  .modal-body{grid-template-columns:1fr;}
  .modal-media{border-radius:var(--radius-l) var(--radius-l) 0 0; padding:24px;}
  .modal-media img{max-height:260px;}
  .modal-info{padding:24px 20px;}
  .footer-inner{flex-direction:column; align-items:flex-start;}
  .help-float{width:50px; height:50px; bottom:18px; left:18px;}
  .back-to-top{bottom:18px; right:18px; width:44px; height:44px;}
  .fav-drawer{max-width:100%;}
}
