/* =========================================
   Checkout (Manualidades El Cisne)
   Paleta pastel + glass suave (sin cajas rígidas)
   ========================================= */

:root{
  --bg:#fbf7ff;
  --card:rgba(255,255,255,.78);
  --text:#1d1b22;
  --muted:#5b5566;

  --celeste:#9ad9ff;
  --turquesa:#4fe3d5;
  --lila:#b7a7ff;
  --rosa:#ffb3d9;

  --b1:1px solid rgba(0,0,0,.06);
  --stroke:1px solid rgba(120,80,180,.14);

  --shadow:0 18px 45px rgba(20,10,40,.12);
  --shadow2:0 10px 28px rgba(20,10,40,.08);
  --glow:0 22px 60px rgba(20,10,40,.10);

  --radius:18px;
  --radius2:26px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(79,227,213,.22), transparent 60%),
    radial-gradient(900px 400px at 100% 10%, rgba(183,167,255,.20), transparent 60%),
    radial-gradient(800px 380px at 50% 105%, rgba(255,179,217,.22), transparent 60%),
    var(--bg);
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width:min(1100px, calc(100% - 32px));
  margin:0 auto;
}

/* =========================================
   Header simple del checkout
   (si NO usas el header global)
   ========================================= */
.checkoutTop{
  padding:16px 0 6px;
}
.checkoutTop__brand{
  display:flex; align-items:center; gap:10px;
  font-weight:900;
}
.checkoutTop__brand img{
  width:34px; height:34px; border-radius:12px;
  box-shadow: var(--shadow2);
}
.checkoutTop__links{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top:6px;
  opacity:.9;
}
.checkoutTop__links a{
  padding:8px 10px;
  border-radius:12px;
  border: var(--b1);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(8px);
}
.checkoutTop__links a:hover{ background: rgba(255,255,255,.75); text-decoration:none; }

h1{
  margin:12px 0 6px;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -0.02em;
}
.lead{
  margin:0 0 18px;
  color:var(--muted);
}

/* =========================================
   Layout
   ========================================= */
.checkoutGrid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:14px;
  padding: 10px 0 26px;
}
@media (max-width: 980px){
  .checkoutGrid{ grid-template-columns:1fr; }
}

/* =========================================
   Card
   ========================================= */
.card{
  border: var(--stroke);
  background: var(--card);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.card__pad{ padding:16px; }

.card__title{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.card__title h2{
  margin:0;
  font-size:18px;
  letter-spacing:-0.01em;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius: 999px;
  border: var(--b1);
  background: rgba(255,255,255,.65);
  font-size:12px;
  font-weight:800;
  color: rgba(30,20,50,.82);
}

/* =========================================
   Form
   ========================================= */
.formGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
@media (max-width: 720px){
  .formGrid{ grid-template-columns:1fr; }
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
label{
  font-size:13px;
  color: rgba(50,40,70,.85);
  font-weight:800;
}
input, textarea, select{
  width:100%;
  padding:11px 12px;
  border-radius: 14px;
  border: var(--b1);
  background: rgba(255,255,255,.7);
  outline:none;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  font-size:14px;
}
textarea{ min-height: 92px; resize: vertical; }
input:focus, textarea:focus, select:focus{
  border-color: rgba(183,167,255,.75);
  box-shadow: 0 0 0 4px rgba(183,167,255,.22);
}

.span2{ grid-column: 1 / -1; }

/* =========================================
   Buttons
   ========================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 14px;
  border-radius: 14px;
  border: var(--b1);
  background: rgba(255,255,255,.7);
  cursor:pointer;
  font-weight:900;
}
.btn:hover{ background: rgba(255,255,255,.85); }
.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.btn--primary{
  border-color: rgba(79,227,213,.55);
  background: linear-gradient(135deg, rgba(79,227,213,.35), rgba(183,167,255,.26));
}
.btn--primary:hover{
  background: linear-gradient(135deg, rgba(79,227,213,.45), rgba(183,167,255,.34));
}

.btnRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

/* =========================================
   Summary
   ========================================= */
.summaryList{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top: 6px;
}
.lineItem{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px;
  border-radius: 16px;
  border: var(--b1);
  background: rgba(255,255,255,.62);
}
.lineItem__img{
  width:46px; height:46px;
  border-radius: 14px;
  background: rgba(0,0,0,.06);
  border: var(--b1);
  background-size: cover;
  background-position:center;
  flex:0 0 46px;
}
.lineItem__body{
  flex:1;
  min-width:0;
}
.lineItem__name{
  font-weight:900;
  margin:0;
  line-height:1.15;
}
.lineItem__meta{
  margin:2px 0 0;
  font-size:12px;
  color: var(--muted);
}
.lineItem__right{
  text-align:right;
  white-space:nowrap;
  font-weight:900;
}

.hr{
  height:1px;
  background: rgba(0,0,0,.07);
  margin:12px 0;
}

.totalRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-size:16px;
  font-weight:1000;
}
.totalRow small{
  display:block;
  font-size:12px;
  font-weight:800;
  color: var(--muted);
  margin-top:2px;
}

.note{
  margin-top:10px;
  font-size:12px;
  color: rgba(70,60,90,.8);
  opacity:.9;
}

/* Sticky pay */
.stickyPay{
  position: sticky;
  top: 12px;
}

/* Tiny toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  background: rgba(15,12,25,.92);
  color: #fff;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  box-shadow: var(--shadow2);
  z-index: 50;
  display:none;
}
.toast.is-on{ display:block; }

/* =========================================
   HEADER CHECKOUT FIX (header global)
   Mejorado:
   - glass más bonito
   - separación y responsivo
   - evita que el contenido “salte” bajo sticky
   ========================================= */

.page-checkout{
  /* si tu header sticky tapa contenido, esto ayuda */
  scroll-padding-top: 74px;
}

/* Header sticky con glass */
.page-checkout .header{
  position: sticky;
  top: 0;
  z-index: 50;

  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(20,10,40,.07);
}

/* Contenedor interno */
.page-checkout .header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding:10px 16px;
  max-width:1100px;
  margin:auto;
}

/* Brand */
.page-checkout .brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  min-width: 0;
}

/* ✅ Logo consistente */
.page-checkout .brand__logo{
  width:42px !important;
  height:42px !important;
  object-fit:contain;
  border-radius:14px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 10px 26px rgba(20,10,40,.10);
  background: rgba(255,255,255,.55);
}

/* Texto brand */
.page-checkout .brand__text{
  display:grid;
  line-height:1.05;
  min-width:0;
}
.page-checkout .brand__text strong{
  font-size:14px;
  letter-spacing:-.01em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.page-checkout .brand__text span{
  font-size:12px;
  opacity:.78;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Link “seguir comprando” */
.page-checkout .nav__link{
  font-size:14px;
  text-decoration:none;
  color:#6b5fa8;
  font-weight:800;

  padding:10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(8px);
}
.page-checkout .nav__link:hover{
  background: rgba(255,255,255,.75);
  text-decoration:none;
}

/* Mobile tweaks */
@media (max-width: 520px){
  .page-checkout .header__inner{
    padding:10px 12px;
  }
  .page-checkout .brand__logo{
    width:38px !important;
    height:38px !important;
    border-radius:12px;
  }
  .page-checkout .nav__link{
    padding:9px 10px;
    border-radius: 12px;
    font-size:13px;
  }
}