/* Composición editorial del catálogo, adaptada a la identidad Luna Mágica. */
@import url("catalog-actions.css");

/* Galería de productos: las fotos y la tipografía llevan el ritmo visual. */
.catalog-cta{position:relative!important;overflow:hidden!important;background:#f7f3f0!important}.catalog-cta::before{position:absolute;top:-8rem;left:50%;width:24rem;height:24rem;border:1px solid rgba(255,116,183,.22);border-radius:50%;content:'';transform:translateX(-50%)}.catalog-cta>*{position:relative}.catalog-cta .eyebrow{color:#bd4e85!important}.catalog-cta>p:not(.eyebrow){color:#716970!important}
.catalog-hero{position:relative!important;overflow:hidden!important;padding-block:clamp(2.75rem,5vw,5.5rem) clamp(2.5rem,4vw,4.25rem)!important}.catalog-hero::after{position:absolute;z-index:-1;top:-9rem;right:7%;width:clamp(14rem,29vw,27rem);height:clamp(14rem,29vw,27rem);border-radius:50%;background:radial-gradient(circle at 38% 38%,#ffeaf3 0 28%,#fdf4f7 29% 55%,transparent 56%);content:''}.catalog-hero h1{max-width:10ch!important;font-size:clamp(3.35rem,5.8vw,6.6rem)!important}.catalog-filters{border-right:0!important}.filter-heading h2{font-size:1.7rem!important}.filter-clear{transition:color .18s ease}.filter-clear:hover{color:var(--ink)}.filter-group{border-color:#eee9e8!important}.filter-option{border-radius:8px;padding:0 .35rem;transition:background .18s ease}.filter-option:hover{background:#faf6f7}.filter-help{border-radius:12px!important;background:#211c20!important;box-shadow:0 12px 28px rgba(42,24,33,.12)}.catalog-search input{border-radius:99px!important;border-color:#ded7d6!important;padding-block:.8rem!important;transition:border-color .18s ease,box-shadow .18s ease}.catalog-search input:focus{border-color:var(--pink)!important;box-shadow:0 0 0 4px rgba(255,116,183,.14);outline:0}.product-grid{gap:clamp(2.2rem,3vw,3.4rem) clamp(1.15rem,2vw,2rem)!important}.product-card{cursor:pointer}.product-image{overflow:hidden!important;border-radius:14px!important;background:#f7f3f0!important;box-shadow:0 10px 26px rgba(40,26,29,.06)!important}.product-image img{transition:transform .55s cubic-bezier(.2,.8,.2,1),filter .35s ease!important}.product-card:hover .product-image img{filter:saturate(1.04);transform:scale(1.045)!important}.product-info{border-bottom:0!important;padding:1.1rem .15rem 0!important}.product-info p{color:#bd4e85!important}.product-info h2{font-size:clamp(1.45rem,2vw,1.85rem)!important;letter-spacing:-.035em}.product-info>span{min-height:2.5em;margin-top:.6rem!important}.product-price{margin-top:.9rem!important}.product-price.consult{color:#8b7f85!important}.empty-state{border:0!important;border-radius:14px!important;background:#f7f3f0!important}.results-bar{margin-bottom:1.8rem!important}@media(max-width:680px){.catalog-hero{padding-top:2.65rem!important}.catalog-hero::after{top:-7rem;right:-5rem}.catalog-filters{border:0!important;border-radius:0!important;background:var(--paper)!important}.mobile-filter-toggle{border-radius:99px!important}.results-bar{margin-bottom:1.25rem!important}.product-grid{gap:2.2rem 1rem!important}.product-info{padding-top:1rem!important}}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.catalog-hero{padding-block:clamp(2.25rem,4vw,4rem) clamp(1.75rem,3vw,3rem)}.catalog-hero h1{font-size:clamp(3.2rem,5.4vw,6rem)}.catalog-shell{display:grid;grid-template-columns:minmax(210px,250px) minmax(0,1fr);gap:clamp(2rem,4vw,4.5rem);max-width:1320px;margin:0 auto;border-top:1px solid var(--ink);padding-top:1.25rem}.catalog-filters{position:sticky;top:92px;align-self:start;border-right:1px solid var(--line);padding-right:clamp(1.25rem,2.5vw,2rem)}.filter-heading,.filter-group legend,.results-summary{font-size:.68rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.filter-heading{display:flex;align-items:baseline;justify-content:space-between;margin:.2rem 0 1.35rem}.filter-heading h2{margin:0;font-family:var(--serif);font-size:1.5rem;font-weight:600;letter-spacing:-.04em;text-transform:none}.filter-clear{border:0;border-bottom:1px solid currentColor;background:none;padding:0 0 .15rem;color:var(--muted);cursor:pointer;font:inherit;font-size:.64rem}.filter-group{margin:0;border:0;border-top:1px solid var(--line);padding:1.15rem 0}.filter-group legend{padding:0 0 .75rem}.filter-option{display:flex;align-items:center;gap:.65rem;min-height:2rem;cursor:pointer;font-size:.82rem}.filter-option input{accent-color:var(--pink)}.filter-option span{flex:1}.filter-option small{color:var(--muted);font-size:.7rem}.filter-help{margin-top:.75rem;padding:1.15rem;background:var(--ink);color:#fff}.filter-help p{margin:0 0 .8rem;font-size:.78rem;line-height:1.45}.filter-help a{border-bottom:1px solid var(--pink);color:var(--pink);font-size:.72rem;font-weight:700}.catalog-results{min-width:0}.results-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.results-summary{margin:0;letter-spacing:.1em}.catalog-search{position:relative;width:min(100%,310px)}.catalog-search i{position:absolute;top:50%;left:.85rem;color:var(--muted);font-size:.75rem;transform:translateY(-50%)}.catalog-search input{width:100%;border:1px solid var(--line);background:#fff;padding:.75rem .85rem .75rem 2.2rem;color:var(--ink);font:inherit;font-size:.78rem}.catalog-search input:focus{outline:2px solid var(--pink);outline-offset:2px}.mobile-filter-toggle{display:none}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1.4rem,2.4vw,2.25rem) clamp(1rem,1.6vw,1.5rem)}.product-card{min-width:0}.product-image{aspect-ratio:3/4}.product-image.placeholder{display:grid;place-items:center;background:var(--pink-soft);color:var(--muted)}.product-image.placeholder i{font-size:1.3rem}.product-image span{display:none}.product-info{border-bottom:1px solid var(--line);padding-bottom:1.15rem}.product-info h2{font-size:clamp(1.3rem,2vw,1.65rem)}.product-price{display:block;margin:.75rem 0 0;font-size:.82rem;font-weight:700}.product-price.consult{color:var(--muted);font-size:.72rem;letter-spacing:.06em;text-transform:uppercase}.product-action{margin-top:1rem}.empty-state{max-width:none;margin:0;border:1px solid var(--line);padding:clamp(2rem,5vw,4rem);background:var(--pink-soft);text-align:left}.empty-state strong{display:block;font-family:var(--serif);font-size:1.8rem;font-weight:600}.empty-state p{max-width:440px;margin:.7rem 0 0}@media(max-width:900px){.catalog-shell{grid-template-columns:190px minmax(0,1fr);gap:1.5rem}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.catalog-hero{padding-top:2rem}.catalog-shell{display:block;padding-top:1rem}.catalog-filters{position:fixed;z-index:30;top:0;bottom:0;left:0;width:min(340px,88vw);overflow-y:auto;border:0;padding:4.75rem 1.35rem 2rem;background:var(--paper);box-shadow:18px 0 45px rgba(21,18,21,.18);transform:translateX(-105%);transition:transform .25s ease}.filters-open .catalog-filters{transform:translateX(0)}.mobile-filter-toggle{display:inline-flex;align-items:center;gap:.45rem;border:1px solid var(--ink);background:var(--ink);padding:.65rem .8rem;color:#fff;cursor:pointer;font:700 .7rem var(--sans)}.results-bar{align-items:flex-start}.catalog-search{width:auto;flex:1}}@media(max-width:420px){.product-grid{grid-template-columns:1fr}.results-bar{gap:.65rem}.catalog-search input{max-width:170px}}

/* Categorías anidadas: elegir una familia incluye todos sus descendientes. */
.filter-category-row { display: flex; align-items: center; gap: .25rem; }
.filter-category-row > .filter-option { flex: 1; min-width: 0; }
.filter-category-row .filter-option span { overflow-wrap: anywhere; }
.filter-category-children {
  margin: .2rem 0 .45rem .7rem;
  border-left: 1px solid var(--line);
  padding-left: .65rem;
}
.filter-category-children[hidden] { display: none; }
.category-toggle {
  display: grid;
  flex: none;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.35rem;
}
.category-toggle:hover { background: var(--pink-soft); color: var(--ink); }
.category-toggle span { transition: transform .2s ease; }
.category-toggle[aria-expanded="true"] span { transform: rotate(90deg); }

/* Panel móvil con desplazamiento propio y un fondo que permite cerrarlo. */
.filter-backdrop, .filter-close { display: none; }
.filter-backdrop[hidden] { display: none; }
@media (max-width: 680px) {
  .filters-open { overflow: hidden; }
  .catalog-filters {
    bottom: auto;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    align-self: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    visibility: hidden;
    transition: transform .25s ease, visibility .25s;
  }
  .filters-open .catalog-filters { visibility: visible; transition-property: transform; }
  .filter-backdrop {
    display: block;
    position: fixed;
    z-index: 25;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: rgba(21, 18, 21, .34);
    cursor: pointer;
  }
  .filter-close {
    display: grid;
    position: absolute;
    top: 1.25rem;
    right: 1.35rem;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    font-size: 1.5rem;
  }
}

/* Texto de producto legible y precios fáciles de comparar. */
.product-info h2 {
  font-size: clamp(1.75rem, 2.3vw, 2rem) !important;
  line-height: 1.15;
  overflow-wrap: break-word;
}
.product-info p { font-size: .75rem; }
.product-info > span { font-size: .95rem; line-height: 1.6; }
.product-price {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: lining-nums tabular-nums;
}
.product-price.consult { font-size: .9rem; line-height: 1.4; letter-spacing: .04em; }
.product-action { font-size: .875rem; }
@media (min-width: 421px) and (max-width: 560px) {
  .product-info h2 { font-size: 1.6rem !important; }
}
