/* =========================================================
   ATHLETIC SHOP / CHECKOUT CSS
   Checkout rápido por WhatsApp, mobile-first e independiente.
========================================================= */

.page-checkout-premium .app-shell{
  background:
    radial-gradient(circle at 84% 6%,rgba(225,6,0,.16),transparent 34%),
    radial-gradient(circle at 8% 34%,rgba(255,255,255,.045),transparent 24%),
    linear-gradient(180deg,#050506 0%,#08080a 48%,#050506 100%);
}

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

.checkout-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;
}

.checkout-breadcrumb a{color:rgba(255,255,255,.72);}
.checkout-breadcrumb strong{color:#fff;}

.checkout-hero{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:1fr minmax(260px,360px);
  gap:24px;
  align-items:end;
  min-height:300px;
  padding:38px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:34px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.085),rgba(255,255,255,.025)),
    radial-gradient(circle at 88% 10%,rgba(225,6,0,.18),transparent 34%);
  box-shadow:0 28px 90px rgba(0,0,0,.36);
  backdrop-filter:blur(20px);
}

.checkout-hero__glow{
  position:absolute;
  right:-120px;
  top:-140px;
  width:380px;
  height:380px;
  border-radius:50%;
  background:rgba(225,6,0,.18);
  filter:blur(38px);
}

.checkout-hero__copy,
.checkout-hero__status{
  position:relative;
  z-index:1;
}

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

.checkout-hero p{
  max-width:610px;
  margin:0;
  color:rgba(255,255,255,.72);
  font-size:17px;
  line-height:1.55;
}

.checkout-hero__status{
  padding:22px;
  border:1px solid rgba(225,6,0,.24);
  border-radius:26px;
  background:linear-gradient(135deg,rgba(225,6,0,.16),rgba(255,255,255,.055));
}

.checkout-hero__status span,
.checkout-hero__status small{
  display:block;
  color:rgba(255,255,255,.66);
  font-size:12px;
  font-weight:900;
}

.checkout-hero__status b{
  display:block;
  margin:8px 0;
  font-size:28px;
  line-height:1;
  letter-spacing:-.04em;
}

.checkout-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,480px);
  gap:22px;
  align-items:start;
  margin-top:22px;
}

.checkout-form-panel,
.checkout-summary-panel{
  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));
  box-shadow:0 28px 90px rgba(0,0,0,.34);
  backdrop-filter:blur(20px);
}

.checkout-form-panel{
  display:grid;
  gap:16px;
  padding:32px;
}

.checkout-panel-head h2,
.checkout-summary-head h2{
  margin:8px 0 0;
  font-size:clamp(28px,3.2vw,44px);
  line-height:.96;
  letter-spacing:-.045em;
  text-transform:uppercase;
}

.checkout-panel-head--small h2{
  font-size:clamp(24px,2.6vw,34px);
}

.checkout-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.checkout-form-panel label{
  display:grid;
  gap:8px;
}

.checkout-form-panel label span{
  color:rgba(255,255,255,.72);
  font-size:11px;
  font-weight:950;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.checkout-form-panel label em{
  color:rgba(255,255,255,.42);
  font-style:normal;
  letter-spacing:.08em;
}

.checkout-form-panel input,
.checkout-form-panel select{
  width:100%;
  min-height:48px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:18px;
  color:#fff;
  background:rgba(0,0,0,.28);
  padding:0 14px;
  outline:none;
}

.checkout-form-panel select option{color:#111;}

.checkout-form-panel input:focus,
.checkout-form-panel select:focus{
  border-color:rgba(225,6,0,.56);
  box-shadow:0 0 0 4px rgba(225,6,0,.12);
}

.checkout-divider{
  height:1px;
  margin:6px 0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.14),transparent);
}

.checkout-choice-grid,
.checkout-payment-grid{
  display:grid;
  gap:10px;
}

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

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

.checkout-choice-card,
.checkout-pay-card{
  position:relative;
  cursor:pointer;
  min-height:104px;
  padding:16px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  background:linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.025));
  transition:.22s ease;
}

.checkout-pay-card{min-height:88px;}

.checkout-choice-card input,
.checkout-pay-card input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.checkout-choice-card b,
.checkout-pay-card b{
  display:block;
  font-size:16px;
  letter-spacing:-.02em;
}

.checkout-choice-card small,
.checkout-pay-card small{
  display:block;
  margin-top:7px;
  color:rgba(255,255,255,.62);
  font-size:12px;
  line-height:1.35;
}

.checkout-choice-card:hover,
.checkout-pay-card:hover,
.checkout-choice-card.is-active,
.checkout-pay-card.is-active{
  border-color:rgba(225,6,0,.52);
  background:linear-gradient(135deg,rgba(225,6,0,.22),rgba(255,255,255,.065));
  box-shadow:0 16px 44px rgba(225,6,0,.16);
  transform:translateY(-2px);
}

[data-checkout-city-field],
[data-checkout-address-field],
[data-checkout-reference-field],
[data-checkout-agency-field]{
  display:none !important;
}

[data-checkout-city-field].is-visible,
[data-checkout-address-field].is-visible,
[data-checkout-reference-field].is-visible,
[data-checkout-agency-field].is-visible{
  display:grid !important;
}

.checkout-summary-panel{
  position:sticky;
  top:108px;
  overflow:hidden;
  padding:24px;
}

.checkout-summary-panel::before{
  content:"";
  position:absolute;
  right:-90px;
  top:-120px;
  width:270px;
  height:270px;
  border-radius:50%;
  background:rgba(225,6,0,.14);
  filter:blur(34px);
}

.checkout-summary-panel>*{
  position:relative;
  z-index:1;
}

.checkout-summary-head{
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.checkout-summary-head a{
  flex:0 0 auto;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  color:#fff;
  background:rgba(255,255,255,.06);
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.1em;
}

.checkout-items{
  display:grid;
  gap:10px;
  max-height:460px;
  overflow:auto;
  padding-right:4px;
}

.checkout-item{
  display:grid;
  grid-template-columns:76px 1fr;
  gap:12px;
  align-items:center;
  padding:10px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:20px;
  background:rgba(255,255,255,.045);
}

.checkout-item img{
  width:76px;
  height:88px;
  border-radius:15px;
  object-fit:cover;
  background:#111;
}

.checkout-item h3{
  margin:0 0 5px;
  font-size:14px;
  line-height:1.18;
}

.checkout-item small,
.checkout-item span{
  display:block;
  color:rgba(255,255,255,.62);
  font-size:12px;
}

.checkout-item strong{
  display:block;
  margin-top:7px;
  font-size:15px;
}

.checkout-loading,
.checkout-empty{
  padding:28px 16px;
  border:1px dashed rgba(255,255,255,.16);
  border-radius:22px;
  color:rgba(255,255,255,.66);
  text-align:center;
}

.checkout-empty strong{
  display:block;
  margin-bottom:8px;
  color:#fff;
  font-size:18px;
}

.checkout-total-card{
  margin:18px 0 14px;
  padding:18px;
  border:1px solid rgba(225,6,0,.28);
  border-radius:22px;
  background:linear-gradient(135deg,rgba(225,6,0,.16),rgba(255,255,255,.055));
}

.checkout-total-card span,
.checkout-total-card small{
  display:block;
  color:rgba(255,255,255,.66);
  font-size:12px;
  font-weight:900;
}

.checkout-total-card strong{
  display:block;
  margin:6px 0 8px;
  font-size:32px;
  line-height:1;
  letter-spacing:-.045em;
}

.checkout-submit-btn{
  min-height:54px;
}

.checkout-submit-btn.is-loading{
  opacity:.78;
  pointer-events:none;
}

.checkout-trust-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:12px;
}

.checkout-trust-row span{
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  color:rgba(255,255,255,.66);
  background:rgba(255,255,255,.04);
  font-size:11px;
  font-weight:850;
  text-align:center;
}

@media(max-width:980px){
  .checkout-hero,
  .checkout-layout{
    grid-template-columns:1fr;
  }

  .checkout-summary-panel{
    position:relative;
    top:auto;
  }
}

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

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

  .checkout-hero{
    min-height:260px;
    padding:26px 18px;
    border-radius:26px;
  }

  .checkout-hero h1{
    font-size:clamp(38px,13vw,58px);
  }

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

  .checkout-hero__status{
    padding:18px;
    border-radius:22px;
  }

  .checkout-layout{
    gap:14px;
    margin-top:14px;
  }

  .checkout-form-panel,
  .checkout-summary-panel{
    padding:20px 16px;
    border-radius:26px;
  }

  .checkout-form-grid,
  .checkout-choice-grid,
  .checkout-payment-grid,
  .checkout-trust-row{
    grid-template-columns:1fr;
  }

  .checkout-choice-card,
  .checkout-pay-card{
    min-height:auto;
    padding:15px;
    border-radius:19px;
  }

  .checkout-summary-head{
    flex-direction:column;
  }

  .checkout-items{
    max-height:none;
  }

  .checkout-item{
    grid-template-columns:70px 1fr;
  }

  .checkout-item img{
    width:70px;
    height:82px;
  }
}
