/* =========================================================
   ATHLETIC SHOP / CATÁLOGO PÚBLICO
   Mobile-first premium. Mantener aquí sólo estilos de catalogo.php.
========================================================= */

.page-catalog-premium{
  background:
    radial-gradient(circle at 80% 0%,rgba(225,6,0,.18),transparent 32%),
    radial-gradient(circle at 8% 24%,rgba(255,255,255,.05),transparent 26%),
    linear-gradient(180deg,#060607 0%,#030304 100%);
}

.catalog-page-shell{
  padding-top:calc(var(--ath-header) + 40px);
}

.catalog-hero{
  position:relative;
  width:min(1500px,calc(100% - 48px));
  min-height:360px;
  margin:0 auto 18px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  align-items:end;
  gap:28px;
  overflow:hidden;
  isolation:isolate;
  padding:42px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:34px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.09),rgba(255,255,255,.025)),
    radial-gradient(circle at 74% 25%,rgba(225,6,0,.24),transparent 34%),
    #0a0a0c;
  box-shadow:0 28px 90px rgba(0,0,0,.48);
}

.catalog-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.24)),
    url('../img/banners/home-hero-desktop.png');
  background-size:cover;
  background-position:center top;
  opacity:.42;
  filter:saturate(1.08) brightness(1.12) contrast(1.05);
  transform:scale(1.03);
}

.catalog-hero__glow{
  position:absolute;
  right:-90px;
  bottom:-120px;
  z-index:-1;
  width:360px;
  height:360px;
  border-radius:50%;
  background:rgba(225,6,0,.2);
  filter:blur(42px);
}

.catalog-hero h1{
  max-width:680px;
  margin:12px 0;
  font-size:clamp(42px,6vw,86px);
  line-height:.88;
  letter-spacing:-.065em;
  text-transform:uppercase;
}

.catalog-hero p{
  max-width:560px;
  margin:0;
  color:rgba(255,255,255,.78);
  font-size:18px;
  line-height:1.55;
}

.catalog-hero__stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.catalog-hero__stats span{
  min-height:112px;
  display:flex;
  flex-direction:column;
  justify-content:end;
  padding:18px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:24px;
  background:rgba(0,0,0,.34);
  backdrop-filter:blur(16px);
}

.catalog-hero__stats b{
  font-size:24px;
  line-height:1;
  letter-spacing:-.04em;
  text-transform:uppercase;
}

.catalog-hero__stats small{
  margin-top:6px;
  color:rgba(255,255,255,.62);
  font-size:11px;
  font-weight:950;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.catalog-controls{
  position:sticky;
  top:96px;
  z-index:50;
  width:min(1500px,calc(100% - 48px));
  margin:0 auto;
  padding:12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:28px;
  background:rgba(7,7,9,.78);
  box-shadow:0 20px 70px rgba(0,0,0,.34);
  backdrop-filter:blur(22px);
}

.catalog-search-card{
  margin-bottom:10px;
}

.catalog-search-form label{
  display:block;
  margin:0 0 8px 4px;
  color:rgba(255,255,255,.62);
  font-size:10px;
  font-weight:950;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.catalog-search-form div{
  display:flex;
  gap:8px;
}

.catalog-search-form input,
.catalog-sort-form select{
  width:100%;
  height:48px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  color:#fff;
  background:rgba(255,255,255,.07);
  outline:none;
}

.catalog-search-form input{
  padding:0 16px;
}

.catalog-search-form input:focus,
.catalog-sort-form select:focus{
  border-color:rgba(225,6,0,.55);
  box-shadow:0 0 0 3px rgba(225,6,0,.14);
}

.catalog-search-form button{
  min-width:118px;
  border:0;
  border-radius:999px;
  color:#fff;
  font-weight:950;
  background:linear-gradient(135deg,var(--ath-red),#8f0501);
  box-shadow:0 14px 34px rgba(225,6,0,.24);
}

.catalog-filter-strip,
.catalog-category-strip{
  display:flex;
  gap:8px;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
  padding-bottom:2px;
}

.catalog-filter-strip::-webkit-scrollbar,
.catalog-category-strip::-webkit-scrollbar{
  display:none;
}

/* Separación premium entre buscador y filtros en desktop/móvil. */
.catalog-filter-strip{
  margin-top:18px;
  padding-top:6px;
}

.catalog-category-strip{
  margin-top:9px;
}

.catalog-chip,
.catalog-category-pill{
  position:relative;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 17px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  color:rgba(255,255,255,.78);
  background:
    radial-gradient(circle at 28% 0%,rgba(255,255,255,.14),transparent 34%),
    linear-gradient(135deg,rgba(255,255,255,.085),rgba(255,255,255,.035));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 12px 30px rgba(0,0,0,.22);
  font-size:12px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,background .22s ease;
}

.catalog-chip:hover,
.catalog-category-pill:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.24);
}

.catalog-chip.is-active,
.catalog-category-pill.is-active{
  color:#fff;
  border-color:rgba(225,6,0,.58);
  background:
    radial-gradient(circle at 30% 0%,rgba(255,255,255,.18),transparent 34%),
    linear-gradient(135deg,rgba(225,6,0,.48),rgba(120,4,1,.92));
  box-shadow:0 14px 38px rgba(225,6,0,.24),inset 0 1px 0 rgba(255,255,255,.16);
}

.catalog-results{
  padding-top:34px;
}

.catalog-results-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:22px;
}

.catalog-results-head h2{
  margin:8px 0 0;
  font-size:clamp(30px,4vw,54px);
  line-height:.92;
  letter-spacing:-.055em;
  text-transform:uppercase;
}

.catalog-sort-form{
  min-width:210px;
}

.catalog-sort-form select{
  padding:0 52px 0 16px;
  appearance:none;
  color:#fff;
  background:
    radial-gradient(circle at 88% 50%,rgba(225,6,0,.18),transparent 28%),
    rgba(255,255,255,.07);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1);
}

.catalog-sort-form option{
  color:#111;
}

.catalog-sort-select{
  position:relative;
}

.catalog-sort-select::after{
  content:"";
  position:absolute;
  top:50%;
  right:16px;
  width:10px;
  height:10px;
  pointer-events:none;
  border-right:2px solid rgba(255,255,255,.92);
  border-bottom:2px solid rgba(255,255,255,.92);
  transform:translateY(-65%) rotate(45deg);
  filter:drop-shadow(0 0 8px rgba(225,6,0,.55));
}

.catalog-sort-select::before{
  content:"";
  position:absolute;
  top:50%;
  right:9px;
  width:28px;
  height:28px;
  border-radius:50%;
  background:rgba(225,6,0,.16);
  transform:translateY(-50%);
  pointer-events:none;
}

.catalog-product-grid{
  grid-template-columns:repeat(4,1fr);
}

.catalog-product-card{
  position:relative;
  box-shadow:0 20px 60px rgba(0,0,0,.26);
  transition:transform .28s ease,border-color .28s ease,box-shadow .28s ease;
}

.catalog-product-card:hover{
  transform:translateY(-4px);
  border-color:rgba(225,6,0,.42);
  box-shadow:0 24px 70px rgba(225,6,0,.12),0 20px 60px rgba(0,0,0,.34);
}

.catalog-product-media img{
  filter:saturate(1.1) brightness(1.14) contrast(1.04);
}

.catalog-product-card:hover .catalog-product-media img{
  filter:saturate(1.2) brightness(1.26) contrast(1.07);
  transform:scale(1.06);
}

.catalog-empty-state{
  display:grid;
  place-items:center;
  gap:12px;
  min-height:320px;
  padding:32px;
  text-align:center;
  border:1px dashed rgba(255,255,255,.18);
  border-radius:32px;
  background:linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.02));
}

.catalog-empty-state span{
  color:var(--ath-red-2);
  font-size:11px;
  font-weight:950;
  letter-spacing:.18em;
}

.catalog-empty-state strong{
  font-size:28px;
  line-height:1;
  letter-spacing:-.04em;
}

.catalog-empty-state small{
  color:rgba(255,255,255,.68);
}

.catalog-pagination{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:28px;
}

.catalog-pagination a{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.13);
  border-radius:50%;
  color:rgba(255,255,255,.76);
  background:rgba(255,255,255,.06);
  font-weight:950;
}

.catalog-pagination a.is-active{
  color:#fff;
  border-color:rgba(225,6,0,.48);
  background:var(--ath-red);
}

@media(max-width:980px){
  .catalog-page-shell{
    padding-top:calc(var(--ath-header-mobile) + 26px);
  }

  .catalog-hero{
    grid-template-columns:1fr;
  }

  .catalog-product-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

@media(max-width:767px){
  .catalog-page-shell{
    padding-top:calc(var(--ath-header-mobile) + 28px);
  }

  .catalog-hero{
    width:calc(100% - 20px);
    min-height:330px;
    margin-bottom:10px;
    padding:26px 18px;
    border-radius:28px;
  }

  .catalog-hero::before{
    background-image:
      linear-gradient(180deg,rgba(0,0,0,.28),rgba(0,0,0,.84)),
      url('../img/banners/home-hero-mobile.png');
    background-position:center top;
    opacity:.62;
    transform:translateY(-15%) scale(1.08);
    transform-origin:center top;
  }

  .catalog-hero h1{
    font-size:clamp(42px,13.5vw,64px);
  }

  .catalog-hero p{
    font-size:14px;
  }

  .catalog-hero__stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
  }

  .catalog-hero__stats span{
    min-height:82px;
    padding:11px;
    border-radius:18px;
  }

  .catalog-hero__stats b{
    font-size:18px;
  }

  .catalog-hero__stats small{
    font-size:8px;
    letter-spacing:.08em;
  }

  .catalog-controls{
    top:82px;
    width:calc(100% - 20px);
    padding:10px;
    border-radius:24px;
  }

  .catalog-search-form div{
    display:grid;
    grid-template-columns:1fr auto;
  }

  .catalog-search-form input{
    height:44px;
    font-size:14px;
  }

  .catalog-search-form button{
    min-width:86px;
    height:44px;
    font-size:12px;
  }

  .catalog-chip,
  .catalog-category-pill{
    min-height:40px;
    padding:0 14px;
    font-size:11px;
  }

  .catalog-results{
    width:calc(100% - 20px);
    padding-top:26px;
  }

  .catalog-results-head{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }

  .catalog-sort-form{
    width:100%;
    min-width:0;
  }

  .catalog-sort-form select{
    height:44px;
  }

  .catalog-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .catalog-product-meta{
    padding:11px;
  }

  .catalog-product-meta small{
    font-size:9px;
  }

  .catalog-product-meta h3{
    min-height:42px;
    font-size:13px;
    line-height:1.18;
  }

  .catalog-buy-row{
    align-items:stretch;
    flex-direction:column;
    gap:8px;
  }

  .catalog-buy-row strong{
    font-size:15px;
  }

  .catalog-empty-state{
    min-height:260px;
    padding:24px 18px;
    border-radius:26px;
  }

  .catalog-empty-state strong{
    font-size:23px;
  }
}

/* ---------------------------------------------------------
   Ajustes: búsqueda/filtros sin recarga y orden premium.
--------------------------------------------------------- */
.catalog-search-form button.is-clear{
  background:linear-gradient(135deg,rgba(255,255,255,.16),rgba(255,255,255,.06));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 12px 30px rgba(0,0,0,.22);
}

.catalog-product-card[hidden],
.catalog-empty-state--client[hidden]{
  display:none !important;
}

.catalog-filter-strip .catalog-chip::before{
  content:"";
  width:7px;
  height:7px;
  margin-right:8px;
  border-radius:50%;
  background:rgba(255,255,255,.26);
  box-shadow:0 0 0 1px rgba(255,255,255,.08);
}

.catalog-filter-strip .catalog-chip.is-active::before{
  background:#fff;
  box-shadow:0 0 14px rgba(225,6,0,.9),0 0 0 4px rgba(225,6,0,.22);
}
