[hidden] { display: none !important; }

/* Reuse page-hero from cart */
.page-hero {
background: var(--navy);
padding: 10rem 5% 5rem;
border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-hero-inner { max-width: 640px; }
.page-hero h1 {
font-family: var(--serif);
font-size: clamp(2.2rem, 4vw, 3.5rem);
color: var(--cream);
line-height: 1.1;
margin-bottom: 1rem;
}
.page-hero .section-eyebrow { color: var(--rust-light); margin-bottom: 1rem; }
.page-hero .section-eyebrow::before { background: var(--rust-light); }
.page-hero-desc { font-size: 1rem; color: var(--silver-light); line-height: 1.8; }

/* CHECKOUT LAYOUT */
.checkout-section {
background: var(--cream-light);
padding: 3rem 5% 5rem;
min-height: 70vh;
}
.checkout-grid {
display: grid;
grid-template-columns: 1fr 360px;
gap: 2rem;
max-width: 1100px;
margin: 0 auto;
align-items: start;
}

/* BLOCKS */
.checkout-block {
background: var(--white);
border: 1px solid var(--silver-light);
border-radius: 4px;
padding: 1.5rem;
margin-bottom: 1.5rem;
}
.checkout-block:last-child { margin-bottom: 0; }
.block-heading {
font-family: var(--sans);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--text-muted);
margin-bottom: 1.25rem;
display: flex;
align-items: center;
gap: 0.6rem;
}
.step-num {
display: inline-flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
background: var(--rust);
color: var(--white);
border-radius: 50%;
font-size: 0.65rem;
font-weight: 800;
flex-shrink: 0;
}

/* FORM FIELDS */
.co-field {
display: flex;
flex-direction: column;
gap: 0.35rem;
margin-bottom: 1rem;
}
.co-field:last-child { margin-bottom: 0; }
.co-field label {
font-family: var(--sans);
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-muted);
}
.optional {
font-weight: 400;
text-transform: none;
letter-spacing: 0;
font-family: var(--body);
font-size: 0.75rem;
}
.co-field input,
.co-field select {
padding: 0.65rem 0.85rem;
border: 1.5px solid var(--silver-light);
border-radius: 3px;
font-family: var(--body);
font-size: 0.9rem;
color: var(--text-dark);
background: var(--white);
outline: none;
transition: border-color 0.2s;
}
.co-field input:focus,
.co-field select:focus { border-color: var(--rust); }
.co-field input.input-error,
.co-field select.input-error {
border-color: #c62828;
background: #fff8f8;
}
.co-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.co-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* PAYMENT TABS */
.payment-tabs {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
margin-bottom: 1.25rem;
}
.payment-tab {
display: flex;
align-items: center;
gap: 0.4rem;
padding: 0.5rem 0.9rem;
border: 1.5px solid var(--silver-light);
background: var(--white);
color: var(--text-muted);
font-family: var(--sans);
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
border-radius: 3px;
cursor: pointer;
transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.payment-tab svg { width: 14px; height: 14px; flex-shrink: 0; }
.payment-tab:hover { border-color: var(--navy); color: var(--navy); }
.payment-tab.active { border-color: var(--rust); background: var(--rust); color: var(--white); }

.payment-note {
font-size: 0.78rem;
color: var(--text-muted);
margin-top: 0.75rem;
line-height: 1.6;
}
.cod-note {
background: #f7f8fa;
border: 1.5px solid var(--silver-light);
border-radius: 3px;
padding: 1rem 1.25rem;
font-size: 0.88rem;
color: var(--text-muted);
line-height: 1.8;
}
.cod-note strong { color: var(--text-dark); }

/* ORDER SUMMARY */
.checkout-summary {
background: var(--white);
border: 1px solid var(--silver-light);
border-radius: 4px;
padding: 1.5rem;
position: sticky;
top: 100px;
}
.summary-item {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
padding: 0.65rem 0;
border-bottom: 1px solid #f0f2f5;
}
.summary-item:last-child { border-bottom: none; }
.summary-item-info { display: flex; flex-direction: column; gap: 0.15rem; }
.summary-item-img {
width: 44px;
height: 44px;
object-fit: contain;
background: #f5f7fa;
border: 1px solid #eef0f2;
border-radius: 2px;
flex-shrink: 0;
}
.summary-item-name {
font-size: 0.85rem;
font-weight: 500;
color: var(--text-dark);
}
.summary-item-qty {
font-size: 0.74rem;
color: var(--text-muted);
}
.summary-item-price {
font-family: var(--sans);
font-size: 0.82rem;
font-weight: 700;
color: var(--navy);
white-space: nowrap;
}
.summary-totals {
margin-top: 1rem;
border-top: 1px solid #eef0f2;
padding-top: 1rem;
display: flex;
flex-direction: column;
gap: 0.55rem;
}
.summary-row {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.85rem;
color: var(--text-muted);
}
.summary-row span:last-child {
font-family: var(--sans);
font-weight: 600;
color: var(--text-dark);
}
.summary-row.total-row {
padding-top: 0.75rem;
margin-top: 0.25rem;
border-top: 1.5px solid var(--silver-light);
}
.summary-row.total-row span {
font-family: var(--sans);
font-size: 1.05rem;
font-weight: 800;
color: var(--navy);
}
.delivery-note {
font-size: 0.72rem;
color: var(--rust);
font-weight: 600;
text-align: right;
margin-top: -0.2rem;
}
.btn-place-order {
width: 100%;
padding: 0.9rem;
background: var(--rust);
color: var(--white);
border: none;
border-radius: 3px;
font-family: var(--sans);
font-size: 0.82rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
cursor: pointer;
margin-top: 1.5rem;
transition: background 0.2s;
}
.btn-place-order:hover { background: var(--rust-light); }
.btn-back-cart {
display: block;
text-align: center;
margin-top: 0.75rem;
font-family: var(--sans);
font-size: 0.7rem;
font-weight: 600;
color: var(--text-muted);
text-decoration: none;
transition: color 0.2s;
}
.btn-back-cart:hover { color: var(--navy); }

/* SUCCESS OVERLAY */
.success-overlay {
position: fixed;
inset: 0;
background: rgba(13,27,42,0.75);
display: flex;
align-items: center;
justify-content: center;
z-index: 500;
padding: 1.5rem;
}
.success-box {
background: var(--white);
border-radius: 6px;
padding: 2.5rem 2rem;
max-width: 420px;
width: 100%;
text-align: center;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.success-icon {
width: 64px; height: 64px;
background: var(--rust);
color: var(--white);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.75rem;
font-weight: 700;
margin: 0 auto 1.25rem;
}
.success-box h2 {
font-family: var(--serif);
font-size: 1.7rem;
color: var(--navy);
margin-bottom: 0.75rem;
}
.success-order-id {
font-family: var(--sans);
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.12em;
color: var(--rust);
background: rgba(0,158,57,0.08);
padding: 0.4rem 1.25rem;
border-radius: 2px;
display: inline-block;
margin-bottom: 1rem;
}
.success-box p {
font-size: 0.88rem;
color: var(--text-muted);
line-height: 1.75;
margin-bottom: 1.5rem;
}
.btn-continue-shopping {
display: inline-block;
background: var(--navy);
color: var(--white);
text-decoration: none;
padding: 0.75rem 2rem;
font-family: var(--sans);
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
border-radius: 2px;
border: none;
cursor: pointer;
transition: background 0.2s;
}
.btn-continue-shopping:hover { background: var(--steel); }

/* RESPONSIVE */
@media (max-width: 960px) {
.checkout-grid { grid-template-columns: 1fr; }
.checkout-summary-col { order: -1; }
.checkout-summary { position: static; }
}
@media (max-width: 600px) {
.co-row-2, .co-row-3 { grid-template-columns: 1fr; }
}

/* PHONEPE PAYMENT BLOCK */
.phonepe-payment-block {
  padding: 1.25rem 0 0.5rem;
}
.phonepe-logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.phonepe-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
}
.phonepe-label {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.phonepe-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #7f1d1d;
  border-radius: 4px;
  padding: 0.7rem 1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* PAYMENT VERIFICATION OVERLAY */
.payment-verify-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,27,42,0.72);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.payment-verify-overlay[hidden] { display: none !important; }
.payment-verify-box {
  background: var(--white);
  border-radius: 8px;
  padding: 3rem 2.5rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
}
.payment-verify-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--silver-light);
  border-top-color: #5f259f;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.payment-verify-box h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.payment-verify-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.btn-cancel-payment {
  margin-top: 1.25rem;
  background: none;
  border: 1.5px solid var(--silver-light);
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-cancel-payment:hover { border-color: #c62828; color: #c62828; }

/* CHECKOUT TIMER BANNER */
.checkout-timer-banner {
  background: #edf7f1;
  border-bottom: 1px solid #b2dfca;
  color: #1a5c35;
  text-align: center;
  padding: 0.7rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  position: sticky;
  top: 72px;
  z-index: 50;
  letter-spacing: 0.01em;
}
.checkout-timer-banner strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.checkout-timer-banner.timer-urgent {
  background: #fff8e1;
  border-bottom-color: #f9a825;
  color: #6d4c00;
}
