/* =========================================================
   ATHLETIC SHOP / PRODUCTO CSS
   Ficha individual mobile-first, independiente del catálogo.
========================================================= */

.page-product-premium .app-shell{
  background:
    radial-gradient(circle at 78% 8%,rgba(225,6,0,.16),transparent 34%),
    radial-gradient(circle at 8% 28%,rgba(255,255,255,.04),transparent 26%),
    linear-gradient(180deg,#050506 0%,#08080a 42%,#050506 100%);
}

.product-page-shell{
  width:min(1500px,calc(100% - 48px));
  margin:0 auto;
  padding:calc(var(--ath-header) + 58px) 0 34px;
}

.product-breadcrumb{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
  color:rgba(255,255,255,.58);
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.product-breadcrumb a{
  color:rgba(255,255,255,.72);
}

.product-breadcrumb strong{
  color:#fff;
}

.product-detail{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);
  gap:24px;
  align-items:start;
}

.product-gallery,
.product-info-panel,
.product-description-card{
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.025));
  box-shadow:0 28px 90px rgba(0,0,0,.36);
  backdrop-filter:blur(20px);
}

.product-gallery{
  position:sticky;
  top:108px;
  padding:14px;
  border-radius:34px;
}

.product-gallery__main{
  position:relative;
  overflow:hidden;
  width:100%;
  margin:0;
  aspect-ratio:4/5;
  border-radius:26px;
  background:#101010;
}

.product-gallery__main::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.24));
  pointer-events:none;
}

.product-gallery__main img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(1.08) brightness(1.12) contrast(1.04);
  transform:scale(1.01);
  transition:transform .38s ease,filter .38s ease;
}

.product-gallery:hover .product-gallery__main img{
  transform:scale(1.045);
  filter:saturate(1.16) brightness(1.22) contrast(1.06);
}

.product-detail-badge{
  position:absolute;
  left:16px;
  top:16px;
  z-index:2;
  padding:9px 12px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,var(--ath-red),#900400);
  box-shadow:0 14px 36px rgba(225,6,0,.28);
  font-size:11px;
  font-weight:950;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.product-gallery__thumbs{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:9px;
  margin-top:10px;
}

.product-thumb{
  overflow:hidden;
  aspect-ratio:1;
  padding:0;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  background:#111;
  opacity:.72;
  transition:.22s ease;
}

.product-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.product-thumb:hover,
.product-thumb.is-active{
  opacity:1;
  border-color:rgba(225,6,0,.56);
  box-shadow:0 12px 32px rgba(225,6,0,.18);
}

.product-info-panel{
  position:relative;
  overflow:hidden;
  padding:34px;
  border-radius:34px;
}

.product-info-panel::before{
  content:"";
  position:absolute;
  right:-90px;
  top:-110px;
  width:300px;
  height:300px;
  border-radius:50%;
  background:rgba(225,6,0,.16);
  filter:blur(34px);
}

.product-info-panel>*{
  position:relative;
  z-index:1;
}

.product-info-panel h1{
  margin:14px 0 12px;
  font-size:clamp(36px,4.2vw,62px);
  line-height:.9;
  letter-spacing:-.06em;
  text-transform:uppercase;
}

.product-lead{
  max-width:580px;
  margin:0;
  color:rgba(255,255,255,.72);
  font-size:16px;
  line-height:1.56;
}

.product-price-row{
  display:flex;
  align-items:end;
  gap:12px;
  margin:26px 0;
}

.product-price-row strong{
  font-size:34px;
  line-height:1;
  letter-spacing:-.04em;
}

.product-price-row span{
  color:rgba(255,255,255,.42);
  font-size:18px;
  font-weight:900;
  text-decoration:line-through;
}

.product-variant-box{
  padding:18px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:26px;
  background:rgba(0,0,0,.18);
}

.product-option-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.product-option-head b{
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.1em;
}

.product-option-head small{
  color:var(--ath-muted);
  text-align:right;
}

.product-variant-grid{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}

.product-variant-chip{
  min-width:84px;
  min-height:58px;
  padding:10px 13px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:18px;
  color:#fff;
  background:linear-gradient(135deg,rgba(255,255,255,.085),rgba(255,255,255,.025));
  text-align:left;
  transition:.22s ease;
}

.product-variant-chip span,
.product-variant-chip small{
  display:block;
}

.product-variant-chip span{
  font-size:14px;
  font-weight:950;
}

.product-variant-chip small{
  margin-top:4px;
  color:rgba(255,255,255,.62);
  font-size:11px;
  font-weight:800;
}

.product-variant-chip:hover,
.product-variant-chip.is-active{
  border-color:rgba(225,6,0,.62);
  background:linear-gradient(135deg,rgba(225,6,0,.24),rgba(255,255,255,.07));
  box-shadow:0 15px 38px rgba(225,6,0,.18);
  transform:translateY(-2px);
}

.product-variant-chip:disabled{
  cursor:not-allowed;
  opacity:.35;
  transform:none;
}

.product-qty-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:18px 0;
}

.product-qty-row>span{
  color:rgba(255,255,255,.76);
  font-size:13px;
  font-weight:950;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.product-qty-control{
  display:inline-flex;
  align-items:center;
  padding:5px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background:rgba(0,0,0,.24);
}

.product-qty-control button,
.product-qty-control input{
  width:42px;
  height:38px;
  border:0;
  color:#fff;
  background:transparent;
  text-align:center;
  font-weight:950;
}

.product-qty-control button{
  border-radius:50%;
  background:rgba(255,255,255,.08);
}

.product-qty-control input{
  outline:none;
  -moz-appearance:textfield;
}

.product-qty-control input::-webkit-outer-spin-button,
.product-qty-control input::-webkit-inner-spin-button{
  margin:0;
  -webkit-appearance:none;
}

.product-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.product-add-main{
  min-height:54px;
}

.product-whatsapp-btn{
  min-height:54px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 18px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  color:#fff;
  background:rgba(255,255,255,.075);
  font-weight:950;
  text-align:center;
}

.product-benefits{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:9px;
  margin-top:18px;
}

.product-benefits span{
  min-height:70px;
  display:flex;
  align-items:center;
  padding:13px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px;
  color:rgba(255,255,255,.72);
  background:rgba(255,255,255,.045);
  font-size:12px;
  font-weight:850;
  line-height:1.35;
}

.product-description-card{
  margin-top:24px;
  padding:34px;
  border-radius:34px;
}

.product-description-card h2{
  max-width:760px;
  margin:10px 0;
  font-size:clamp(28px,3.4vw,48px);
  line-height:.96;
  letter-spacing:-.045em;
  text-transform:uppercase;
}

.product-description-card p{
  max-width:900px;
  margin:0;
  color:rgba(255,255,255,.72);
  line-height:1.7;
}

.product-related{
  width:100%;
  padding-bottom:36px;
}

.product-empty-state{
  min-height:520px;
  display:grid;
  align-content:center;
  justify-items:start;
  padding:46px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:34px;
  background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.025));
}

.product-empty-state h1{
  margin:12px 0;
  font-size:clamp(38px,5vw,68px);
  line-height:.9;
  letter-spacing:-.06em;
  text-transform:uppercase;
}

.product-empty-state p{
  max-width:520px;
  color:var(--ath-muted);
}

@media(max-width:980px){
  .product-detail{
    grid-template-columns:1fr;
  }

  .product-gallery{
    position:relative;
    top:auto;
  }

  .product-benefits{
    grid-template-columns:1fr;
  }
}

@media(max-width:767px){
  .product-page-shell{
    width:calc(100% - 28px);
    padding:calc(var(--ath-header-mobile) + 34px) 0 18px;
  }

  .product-breadcrumb{
    overflow-x:auto;
    white-space:nowrap;
    margin-bottom:12px;
    padding-bottom:4px;
    font-size:10px;
  }

  .product-detail{
    gap:14px;
  }

  .product-gallery{
    padding:10px;
    border-radius:26px;
  }

  .product-gallery__main{
    width:100%;
    margin:0;
    aspect-ratio:1/1.18;
    border-radius:20px;
  }

  .product-gallery__main img{
    object-position:center top;
  }

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

  .product-info-panel{
    padding:22px 18px;
    border-radius:26px;
  }

  .product-info-panel h1{
    font-size:clamp(34px,11vw,52px);
  }

  .product-lead{
    font-size:14px;
  }

  .product-price-row strong{
    font-size:30px;
  }

  .product-option-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .product-option-head small{
    text-align:left;
  }

  .product-variant-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .product-variant-chip{
    width:100%;
  }

  .product-qty-row{
    align-items:flex-start;
    flex-direction:column;
  }

  .product-actions{
    grid-template-columns:1fr;
  }

  .product-benefits span{
    min-height:56px;
  }

  .product-description-card{
    margin-top:14px;
    padding:24px 18px;
    border-radius:26px;
  }

  .product-related-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .product-empty-state{
    min-height:460px;
    padding:28px 20px;
    border-radius:26px;
  }
}

/* ---------------------------------------------------------
   Producto V2: tallas, colores visuales, stock y compra rápida.
--------------------------------------------------------- */
.product-choice-group{
  margin-top:16px;
}

.product-choice-title{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.product-choice-title span{
  color:#fff;
  font-size:12px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.product-choice-title small{
  color:rgba(255,255,255,.52);
  font-size:11px;
  text-align:right;
}

.product-size-options,
.product-color-options{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}

.product-size-chip,
.product-color-chip{
  border:1px solid rgba(255,255,255,.13);
  color:#fff;
  background:linear-gradient(135deg,rgba(255,255,255,.085),rgba(255,255,255,.025));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,background .22s ease,opacity .22s ease;
}

.product-size-chip{
  min-width:58px;
  min-height:48px;
  display:grid;
  place-items:center;
  border-radius:17px;
  font-size:14px;
  font-weight:950;
}

.product-color-chip{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:0 13px 0 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}

.product-color-chip i{
  width:28px;
  height:28px;
  display:block;
  border:1px solid rgba(255,255,255,.26);
  border-radius:50%;
  background:var(--variant-color,linear-gradient(135deg,#202020,#555));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 8px 18px rgba(0,0,0,.28);
}

.product-size-chip:hover,
.product-color-chip:hover,
.product-size-chip.is-active,
.product-color-chip.is-active{
  border-color:rgba(225,6,0,.62);
  background:linear-gradient(135deg,rgba(225,6,0,.24),rgba(255,255,255,.07));
  box-shadow:0 15px 38px rgba(225,6,0,.18),inset 0 1px 0 rgba(255,255,255,.14);
  transform:translateY(-2px);
}

.product-size-chip:disabled,
.product-color-chip:disabled{
  cursor:not-allowed;
  opacity:.34;
  transform:none;
  box-shadow:none;
}

.product-stock-pill{
  margin-top:16px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:18px;
  color:rgba(255,255,255,.72);
  background:rgba(255,255,255,.045);
  font-size:12px;
  font-weight:900;
  line-height:1.35;
}

.product-stock-pill[data-state="ok"]{
  border-color:rgba(55,210,132,.35);
  color:#d7ffe9;
  background:rgba(55,210,132,.10);
}

.product-stock-pill[data-state="low"]{
  border-color:rgba(255,190,82,.38);
  color:#ffe4b7;
  background:rgba(255,190,82,.10);
}

.product-stock-pill[data-state="out"]{
  border-color:rgba(255,75,75,.48);
  color:#ffd0d0;
  background:rgba(255,75,75,.10);
}

.product-stock-pill[data-state="preorder"]{
  border-color:rgba(225,6,0,.42);
  color:#fff;
  background:rgba(225,6,0,.12);
}

.product-actions{
  grid-template-columns:1fr 1fr .7fr;
}

.product-buy-now-btn{
  min-height:54px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 18px;
  border:1px solid rgba(225,6,0,.46);
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,rgba(225,6,0,.22),rgba(255,255,255,.07));
  box-shadow:0 16px 42px rgba(225,6,0,.16);
  font-weight:950;
  text-align:center;
  transition:.22s ease;
}

.product-buy-now-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 54px rgba(225,6,0,.24);
}

.product-buy-now-btn:disabled{
  cursor:not-allowed;
  opacity:.65;
  transform:none;
}

@media(max-width:767px){
  .product-choice-title{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }

  .product-choice-title small{
    text-align:left;
  }

  .product-size-options{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  .product-size-chip{
    min-width:0;
    width:100%;
  }

  .product-color-options{
    display:grid;
    grid-template-columns:1fr;
  }

  .product-color-chip{
    justify-content:flex-start;
    width:100%;
  }

  .product-actions{
    grid-template-columns:1fr;
  }
}
