/* =========================================================
   ANTIQUE HOME — CHECKOUT PAGE
   Mobile-first; two-column layout from 1024px.
   ========================================================= */

:root{
  --paper:      #F4EFE6;
  --paper-2:    #EFE8DC;
  --paper-card: #FBF8F3;
  --ink-900:    #2B241C;
  --ink-600:    #5B5145;
  --ink-400:    #857A6C;
  --gold-deep:  #A98A5C;
  --champagne:  #E3D5BC;
}

.checkout-body{
  position:relative;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--sans);
  min-height:100vh;
  overflow-x:hidden;
}

.chk__bg{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
}
.chk__bg img{
  width:100%; height:100%;
  object-fit:cover;
  object-position:top center;
  opacity:.5;
}
.chk__bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(244,239,230,.55) 0%, var(--paper) 62%, var(--paper) 100%);
}

/* =========================================================
   TOP BAR
   ========================================================= */

.chk__topbar{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 18px var(--gutter);
  flex-wrap:wrap;
}

.chk__back{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:500;
  letter-spacing:.02em;
  color: var(--ink-900);
  order:1;
}
.chk__back svg{ width:15px; height:11px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
@media (hover:hover){ .chk__back:hover{ color: var(--gold-deep); } }

.chk__brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  order:3;
  width:100%;
}
.chk__brand-name{
  font-family: var(--serif);
  font-weight:600;
  font-size:19px;
  letter-spacing:.16em;
  color: var(--ink-900);
}
.chk__brand-sub{
  font-size:8px;
  font-weight:500;
  letter-spacing:.3em;
  color: var(--gold-deep);
  margin-top:2px;
}

.chk__secure{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11.5px;
  font-weight:500;
  color: var(--ink-600);
  order:2;
}
.chk__secure svg{ width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }

@media (min-width: 700px){
  .chk__topbar{ flex-wrap:nowrap; }
  .chk__back{ order:0; }
  .chk__brand{ order:0; width:auto; }
  .chk__secure{ order:0; }
}

/* =========================================================
   LAYOUT
   ========================================================= */

.chk__wrap{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:18px;
  padding: 6px var(--gutter) 30px;
  max-width:1280px;
  margin:0 auto;
}

@media (min-width: 1024px){
  .chk__wrap{
    flex-direction:row;
    align-items:flex-start;
    gap:28px;
    padding-top:10px;
  }
  .chk__col{ flex:1 1 50%; min-width:0; }
  .chk__col--left{ display:flex; flex-direction:column; gap:18px; }
  .chk__col--right{ display:flex; flex-direction:column; gap:18px; position:sticky; top:20px; }
}

.chk__col{ display:flex; flex-direction:column; gap:18px; }

/* =========================================================
   CARD SECTIONS
   ========================================================= */

.chk__card{
  background: var(--paper-card);
  border:1px solid rgba(43,36,28,.08);
  border-radius:14px;
  padding:20px 18px;
  box-shadow: 0 2px 10px rgba(43,36,28,.04);
}

.chk__heading{
  margin:0 0 4px;
  font-family: var(--serif);
  font-weight:600;
  font-size:19px;
  color: var(--ink-900);
}
.chk__heading small{
  font-family: var(--sans);
  font-size:12px;
  font-weight:400;
  color: var(--ink-400);
}
.chk__sub{
  margin:0 0 16px;
  font-size:12px;
  font-weight:300;
  color: var(--ink-600);
}

/* =========================================================
   FIELDS
   ========================================================= */

.chk__field{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
  padding: 13px 14px;
  border:1px solid rgba(43,36,28,.16);
  border-radius:9px;
  background: var(--paper-2);
  transition: border-color .25s ease;
}
.chk__field:last-child{ margin-bottom:0; }
.chk__field:focus-within{ border-color: var(--gold-deep); }
.chk__field svg{
  flex:none;
  width:17px; height:17px;
  fill:none; stroke: var(--ink-400); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round;
}
.chk__field input,
.chk__field select,
.chk__field textarea{
  flex:1;
  border:0;
  background:none;
  font-family: var(--sans);
  font-size:13px;
  color: var(--ink-900);
  outline:none;
  min-width:0;
}
.chk__field input::placeholder,
.chk__field textarea::placeholder{ color: var(--ink-400); }
.chk__field select{ appearance:none; cursor:pointer; color: var(--ink-400); }
.chk__field select:valid{ color: var(--ink-900); }
.chk__field--select{ padding-right:38px; }
.chk__chev{
  position:absolute;
  right:14px; top:50%;
  transform: translateY(-50%);
  width:11px; height:7px;
  fill:none; stroke: var(--ink-400); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;
  pointer-events:none;
}
.chk__field--textarea{ align-items:flex-start; }
.chk__field--textarea svg{ margin-top:2px; }
.chk__field--textarea textarea{ resize:vertical; min-height:64px; font-family:inherit; }

.chk__row2{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
@media (min-width: 480px){
  .chk__row2{ grid-template-columns: 1fr 1fr; }
  .chk__row2 .chk__field{ margin-bottom:0; }
}
.chk__row2 + .chk__field,
.chk__field + .chk__row2{ margin-top:12px; }

/* =========================================================
   DELIVERY OPTIONS
   ========================================================= */

.chk__delivery{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
@media (min-width: 480px){
  .chk__delivery{ grid-template-columns: 1fr 1fr; }
}

.chk__radioCard{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:16px;
  border:1.5px solid rgba(43,36,28,.14);
  border-radius:10px;
  background: var(--paper-2);
  cursor:pointer;
  transition: border-color .25s ease, background .25s ease;
}
.chk__radioCard input{ position:absolute; opacity:0; pointer-events:none; }
.chk__radioCard.is-active,
.chk__radioCard:has(input:checked){
  border-color: var(--gold-deep);
  background: var(--paper-card);
}
.chk__radioDot{
  position:absolute;
  top:14px; right:14px;
  width:18px; height:18px;
  border-radius:50%;
  border:1.5px solid rgba(43,36,28,.3);
}
.chk__radioCard.is-active .chk__radioDot,
.chk__radioCard:has(input:checked) .chk__radioDot{
  border-color: var(--ink-900);
  background: radial-gradient(circle, var(--ink-900) 0 5px, transparent 5px);
}
.chk__radioIco{ color: var(--ink-900); margin-bottom:4px; }
.chk__radioIco svg{ width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.chk__radioCard strong{ font-family: var(--serif); font-weight:600; font-size:14.5px; color: var(--ink-900); }
.chk__radioMeta{ font-size:11.5px; color: var(--ink-600); }
.chk__radioPrice{ font-size:12.5px; font-weight:600; color: var(--gold-deep); margin-top:2px; }

/* =========================================================
   ORDER SUMMARY — items
   ========================================================= */

.chk__items{ list-style:none; margin:0 0 16px; padding:0; display:flex; flex-direction:column; gap:14px; }

.chk__item{ display:flex; gap:12px; }
.chk__itemMedia{
  flex:none;
  width:64px; height:64px;
  border-radius:9px;
  overflow:hidden;
  background: var(--paper-2);
  margin:0;
}
.chk__itemMedia img{ width:100%; height:100%; object-fit:cover; }

.chk__itemBody{ flex:1; min-width:0; }
.chk__itemTop{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.chk__itemTop h3{ margin:0; font-family: var(--serif); font-weight:600; font-size:14.5px; color: var(--ink-900); }
.chk__itemTop p{ margin:2px 0 0; font-size:11.5px; color: var(--ink-400); }
.chk__itemRemove{
  flex:none;
  width:24px; height:24px;
  display:flex; align-items:center; justify-content:center;
  border:0; background:none; cursor:pointer;
  color: var(--ink-400);
}
.chk__itemRemove svg{ width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; }
@media (hover:hover){ .chk__itemRemove:hover{ color:#a33; } }

.chk__itemBottom{ display:flex; align-items:center; justify-content:space-between; margin-top:8px; }
.chk__itemQty{ transform:scale(.92); transform-origin:left center; }
.chk__itemPrice{ font-size:13px; font-weight:600; color: var(--ink-900); }
.chk__itemPrice b{ font-weight:600; }

/* reuse the site's .qty control */
.qty{
  display:inline-flex;
  align-items:center;
  gap:0;
  border:1px solid rgba(43,36,28,.18);
  border-radius:20px;
  overflow:hidden;
}
.qty__btn{
  width:26px; height:26px;
  display:flex; align-items:center; justify-content:center;
  border:0; background:none; cursor:pointer;
  color: var(--ink-900);
}
.qty__btn svg{ width:11px; height:11px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; }
.qty__num{ min-width:22px; text-align:center; font-size:12.5px; font-weight:500; color: var(--ink-900); }

/* ---------- promo ---------- */

.chk__promo{
  display:flex;
  gap:10px;
  margin-bottom:6px;
}
.chk__promoField{
  flex:1;
  display:flex;
  align-items:center;
  gap:9px;
  padding:12px 14px;
  border:1px solid rgba(43,36,28,.16);
  border-radius:9px;
  background: var(--paper-2);
}
.chk__promoField svg{ width:16px; height:16px; flex:none; fill:none; stroke: var(--ink-400); stroke-width:1.5; }
.chk__promoField input{ flex:1; border:0; background:none; font-size:12.5px; color: var(--ink-900); outline:none; min-width:0; }
.chk__promo button{
  flex:none;
  padding:0 20px;
  border:0;
  border-radius:9px;
  background: var(--champagne);
  color: var(--ink-900);
  font-size:12px;
  font-weight:600;
  letter-spacing:.03em;
  cursor:pointer;
  transition: background .25s ease;
}
@media (hover:hover){ .chk__promo button:hover{ background: var(--gold-deep); color:#fff; } }
.chk__promoNote{ min-height:14px; margin:6px 0 0; font-size:11.5px; color: var(--gold-deep); }

/* ---------- totals ---------- */

.chk__totals{ margin-top:16px; padding-top:16px; border-top:1px solid rgba(43,36,28,.1); }
.chk__totalsRow{ display:flex; justify-content:space-between; font-size:13px; color: var(--ink-600); margin-bottom:8px; }
.chk__totalsFinal{
  display:flex; justify-content:space-between; align-items:center;
  margin-top:10px; padding-top:12px;
  border-top:1px solid rgba(43,36,28,.1);
}
.chk__totalsFinal span{ font-family: var(--serif); font-weight:600; font-size:17px; color: var(--ink-900); }
.chk__totalsFinal strong{ font-size:19px; font-weight:700; color: var(--ink-900); }

/* =========================================================
   RIGHT — promo panel
   ========================================================= */

.chk__promoPanel{
  position:relative;
  margin:0;
  border-radius:14px;
  overflow:hidden;
  min-height:220px;
  display:flex;
  align-items:flex-end;
}
.chk__promoPanel img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
}
.chk__promoPanel::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(100deg, rgba(43,36,28,.62) 0%, rgba(43,36,28,.28) 46%, rgba(43,36,28,.05) 75%);
}
.chk__promoPanel figcaption{
  position:relative;
  z-index:1;
  padding: 22px 24px;
  color:#fff;
}
.chk__promoPanel h3{
  margin:0 0 14px;
  font-family: var(--serif);
  font-weight:500;
  font-size: clamp(22px, 4.4vw, 28px);
  line-height:1.2;
}
.chk__promoBrand{
  font-family: var(--serif);
  font-weight:600;
  font-size:15px;
  letter-spacing:.2em;
  color: var(--champagne);
}

@media (min-width: 700px){
  .chk__promoPanel{ min-height:280px; }
}

/* =========================================================
   PAYMENT METHOD
   ========================================================= */

.chk__pay{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-bottom:16px;
}
.chk__payCard{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 8px;
  min-height:84px;
  border:1.5px solid rgba(43,36,28,.14);
  border-radius:10px;
  background: var(--paper-2);
  cursor:pointer;
  text-align:center;
  transition: border-color .25s ease, background .25s ease;
}
.chk__payCard input{ position:absolute; opacity:0; pointer-events:none; }
.chk__payCard.is-active,
.chk__payCard:has(input:checked){
  border-color: var(--gold-deep);
  background: var(--paper-card);
}
.chk__payDot{
  position:absolute;
  top:8px; right:8px;
  width:16px; height:16px;
  border-radius:50%;
  border:1.5px solid rgba(43,36,28,.3);
}
.chk__payCard.is-active .chk__payDot,
.chk__payCard:has(input:checked) .chk__payDot{
  border-color: var(--ink-900);
  background: radial-gradient(circle, var(--ink-900) 0 4.5px, transparent 4.5px);
}
.chk__payIco{ color: var(--ink-900); }
.chk__payIco svg{ width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.chk__payLabel{ font-size:11.5px; font-weight:600; color: var(--ink-900); line-height:1.25; }
.chk__payLogo{
  font-family: var(--sans);
  font-weight:700;
  font-size:13px;
  letter-spacing:-.01em;
}
.chk__payLogo--instapay{
  background: linear-gradient(90deg, #7b2ff7, #f107a3);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.chk__payPanel{
  padding-top:6px;
}

.chk__payNote{
  display:flex;
  gap:10px;
  padding:14px;
  border-radius:10px;
  background: var(--paper-2);
  margin-bottom:14px;
}
.chk__payNote svg{ flex:none; width:20px; height:20px; fill:none; stroke: var(--gold-deep); stroke-width:1.5; margin-top:1px; }
.chk__payNote strong{ display:block; font-size:12.5px; color: var(--ink-900); margin-bottom:3px; }
.chk__payNote p{ margin:0; font-size:11.5px; font-weight:300; color: var(--ink-600); line-height:1.5; }

.chk__instapayBtn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:15px;
  border:1px solid rgba(43,36,28,.14);
  border-radius:9px;
  background: var(--paper-card);
  cursor:pointer;
  margin-bottom:16px;
  transition: border-color .25s ease;
}
.chk__instapayBtn span{
  font-family: var(--sans);
  font-weight:700;
  font-size:15px;
  background: linear-gradient(90deg, #7b2ff7, #f107a3);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.chk__instapayBtn svg{ width:18px; height:10px; fill:none; stroke: var(--ink-900); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
@media (hover:hover){ .chk__instapayBtn:hover{ border-color: var(--gold-deep); } }

.chk__payPerks{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.chk__payPerks li{ display:flex; gap:8px; }
.chk__payPerks svg{ flex:none; width:18px; height:18px; fill:none; stroke: var(--gold-deep); stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.chk__payPerks strong{ display:block; font-size:11.5px; color: var(--ink-900); }
.chk__payPerks span{ font-size:10.5px; color: var(--ink-400); }

.chk__cardTitle{ margin:0 0 12px; font-size:13px; font-weight:600; color: var(--ink-900); }

/* =========================================================
   ADDITIONAL NOTES / AGREE / SUBMIT
   ========================================================= */

.chk__agree{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:14px 0 18px;
  font-size:12px;
  color: var(--ink-600);
  cursor:pointer;
}
.chk__agree input{ position:absolute; opacity:0; pointer-events:none; }
.chk__agreeBox{
  flex:none;
  width:18px; height:18px;
  margin-top:1px;
  border-radius:4px;
  border:1.5px solid rgba(43,36,28,.3);
  display:flex; align-items:center; justify-content:center;
  background: var(--paper-2);
  transition: border-color .2s ease, background .2s ease;
}
.chk__agreeBox svg{ width:10px; height:8px; fill:none; stroke:#fff; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; opacity:0; transition: opacity .15s ease; }
.chk__agree input:checked + .chk__agreeBox{ background: var(--ink-900); border-color: var(--ink-900); }
.chk__agree input:checked + .chk__agreeBox svg{ opacity:1; }
.chk__agree a{ color: var(--gold-deep); text-decoration: underline; }

.chk__submit{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:17px;
  border:0;
  border-radius:10px;
  background: var(--ink-900);
  color: var(--paper-card);
  font-family: var(--sans);
  font-size:13px;
  font-weight:600;
  letter-spacing:.02em;
  cursor:pointer;
  transition: background .3s ease;
}
.chk__submit svg{ width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.chk__submitArrow{ width:20px; height:10px; margin-left:2px; }
@media (hover:hover){ .chk__submit:hover{ background: var(--gold-deep); } }
.chk__submit:disabled{ opacity:.5; cursor:not-allowed; }

/* =========================================================
   TRUST ROW
   ========================================================= */

.chk__trust{
  position:relative;
  z-index:1;
  list-style:none;
  margin:0;
  padding: 26px var(--gutter) 40px;
  max-width:820px;
  margin:0 auto;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  text-align:center;
}
.chk__trust li{ display:flex; flex-direction:column; align-items:center; gap:6px; }
.chk__trust svg{ width:24px; height:24px; fill:none; stroke: var(--gold-deep); stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.chk__trust span{ font-size:10.5px; color: var(--ink-600); line-height:1.4; }

@media (min-width: 480px){
  .chk__trust span{ font-size:11.5px; }
}

@media (prefers-reduced-motion: reduce){
  .chk__field, .chk__radioCard, .chk__payCard, .chk__submit, .chk__instapayBtn, .chk__promo button{ transition:none !important; }
}
