/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.show { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 95vw;
  height: 100vh;
  background: #fff;
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.cart-drawer.open { right: 0; }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e2ddd8;
}
.cart-drawer-header h3 {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
.cart-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #0a0a0a;
  display: flex;
  align-items: center;
}

.cart-items-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: #999;
  font-size: 14px;
  font-weight: 300;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #f0ece6;
}
.cart-item-img {
  width: 80px;
  height: 100px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f5f2ee;
}
.cart-item-img img { width:100%; height:100%; object-fit:cover; object-position:center top; }

.cart-item-info { flex: 1; }
.cart-item-name { font-size: 12px; font-weight: 600; letter-spacing: 0.3px; margin-bottom: 4px; }
.cart-item-meta { font-size: 11px; color: #6b6560; margin-bottom: 6px; }
.cart-item-price { font-size: 13px; font-weight: 600; color: #b01c1c; margin-bottom: 10px; }

.cart-qty-row { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 28px; height: 28px;
  border: 1px solid #d4cfc8;
  background: none;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #0a0a0a;
  transition: background 0.15s;
  font-family: 'Montserrat', sans-serif;
}
.qty-btn:hover { background: #f0ece6; }
.qty-num { font-size: 13px; font-weight: 600; min-width: 20px; text-align: center; }
.remove-btn {
  margin-left: 8px;
  font-size: 11px;
  color: #6b6560;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  transition: color 0.15s;
}
.remove-btn:hover { color: #b01c1c; }

.cart-footer {
  border-top: 1px solid #e2ddd8;
  padding: 20px 24px;
}
.cart-ship-note {
  font-size: 11px;
  color: #2a7a2a;
  margin-bottom: 12px;
  display: block;
  letter-spacing: 0.3px;
}
.cart-totals { margin-bottom: 16px; }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b6560;
  padding: 4px 0;
}
.cart-total-row.bold {
  font-size: 14px;
  font-weight: 700;
  color: #0a0a0a;
  border-top: 1px solid #e2ddd8;
  margin-top: 8px;
  padding-top: 10px;
}
.btn-checkout-cta {
  display: block;
  width: 100%;
  padding: 16px;
  background: #0a0a0a;
  color: #fff;
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: 10px;
}
.btn-checkout-cta:hover { background: #1a2a4a; }
.btn-continue-shopping {
  display: block;
  width: 100%;
  padding: 12px;
  background: none;
  color: #0a0a0a;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  border: 1px solid #d4cfc8;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-continue-shopping:hover { border-color: #0a0a0a; background: #f5f2ee; }

/* ===== CHECKOUT PAGE ===== */
.checkout-page { background: #fafaf8; min-height: 100vh; }

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: #fff;
  border-bottom: 1px solid #e2ddd8;
  position: sticky;
  top: 0;
  z-index: 10;
}

.checkout-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 4px;
  color: #0a0a0a;
}
.checkout-logo span { color: #1a2a4a; }

.checkout-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.step { color: #bbb; }
.step.active { color: #0a0a0a; font-weight: 700; }
.step-sep { color: #ccc; font-size: 14px; }

.checkout-secure {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #6b6560;
}

.checkout-body {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  align-items: start;
  gap: 48px;
}

/* Form */
.checkout-form-col { min-width: 0; }

.form-section { background: #fff; border: 1px solid #e2ddd8; padding: 32px; margin-bottom: 0; }
.form-section.hidden { display: none; }

.form-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 20px;
  color: #0a0a0a;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group.half { grid-column: span 1; }

.form-group label { font-size: 11px; letter-spacing: 1px; font-weight: 600; text-transform: uppercase; color: #4a4a4a; }
.form-group input, .form-group select {
  padding: 12px 14px;
  border: 1.5px solid #e2ddd8;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  color: #0a0a0a;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus { border-color: #1a2a4a; }
.form-group input.input-error { border-color: #b01c1c; }
.form-hint { font-size: 11px; color: #6b6560; }

.btn-checkout-next {
  margin-top: 28px;
  width: 100%;
  padding: 16px;
  background: #0a0a0a;
  color: #fff;
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-checkout-next:hover { background: #1a2a4a; }

.btn-checkout-back {
  display: block;
  margin-top: 12px;
  background: none;
  border: none;
  font-size: 12px;
  color: #6b6560;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  text-decoration: underline;
  padding: 0;
}

/* Shipping options */
.shipping-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.shipping-opt {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1.5px solid #e2ddd8;
  cursor: pointer;
  transition: border-color 0.2s;
  gap: 14px;
}
.shipping-opt:has(input:checked) { border-color: #1a2a4a; background: #f5f8ff; }
.shipping-opt input { accent-color: #1a2a4a; width: 16px; height: 16px; }
.shipping-opt-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.shipping-opt-info strong { display: block; font-size: 13px; margin-bottom: 2px; }
.shipping-opt-info span { font-size: 12px; color: #6b6560; }
.shipping-price { font-size: 14px; font-weight: 700; color: #0a0a0a; }

.free-ship-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f0faf0;
  color: #2a7a2a;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Payment tabs */
.payment-tabs { display: flex; gap: 0; margin-bottom: 0; border-bottom: 2px solid #e2ddd8; }
.pay-tab {
  padding: 12px 20px;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b6560;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.pay-tab.active { color: #1a2a4a; border-bottom-color: #1a2a4a; }

.pay-panel { padding: 20px 0; }
.pay-panel.hidden { display: none; }
.pay-panel-note { font-size: 12px; color: #6b6560; margin-bottom: 16px; font-weight: 300; line-height: 1.6; }

.bank-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.bank-btn {
  padding: 12px 8px;
  border: 1.5px solid #e2ddd8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.bank-btn:hover { border-color: #1a2a4a; }
.bank-btn.active { border-color: #1a2a4a; background: #f5f8ff; color: #1a2a4a; }

.card-icons { display: flex; gap: 8px; margin-bottom: 4px; }
.card-icon-badge {
  padding: 4px 10px;
  background: #f0ece6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 2px;
  color: #4a4a4a;
}

.order-agree {
  margin: 20px 0 16px;
  font-size: 12px;
  color: #6b6560;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.order-agree label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.order-agree a { color: #1a2a4a; text-decoration: underline; }
.order-agree input { margin-top: 2px; accent-color: #1a2a4a; }

.btn-place-order {
  width: 100%;
  padding: 18px;
  background: #1a2a4a;
  color: #fff;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
  margin-bottom: 10px;
}
.btn-place-order:hover { background: #0a0a0a; }

.secure-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #6b6560;
  margin-top: 8px;
  justify-content: center;
}

/* Summary */
.checkout-summary {
  background: #fff;
  border: 1px solid #e2ddd8;
  padding: 28px;
  position: sticky;
  top: 90px;
}

.summary-title {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2ddd8;
  padding-bottom: 14px;
}

.summary-items { margin-bottom: 20px; }
.summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0ece6;
  font-size: 12px;
}
.summary-item-img {
  position: relative;
  width: 56px;
  height: 70px;
  flex-shrink: 0;
  background: #f5f2ee;
}
.summary-item-img img { width:100%; height:100%; object-fit:cover; object-position:center top; }
.summary-qty {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #0a0a0a;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.summary-item-info { flex: 1; }
.summary-item-info p:first-child { font-weight: 600; font-size: 12px; margin-bottom: 3px; }
.summary-item-meta { font-size: 11px; color: #6b6560; }
.summary-item > span { font-size: 13px; font-weight: 600; white-space: nowrap; }

.summary-totals { border-top: 1px solid #e2ddd8; padding-top: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; color: #6b6560; padding: 4px 0; }
.summary-total-row { font-size: 15px; font-weight: 700; color: #0a0a0a; margin-top: 8px; border-top: 1px solid #e2ddd8; padding-top: 12px; }
.summary-tax { font-size: 11px; color: #aaa; margin-top: 8px; }

/* ===== ORDER SUCCESS PAGE ===== */
.success-page {
  max-width: 640px;
  margin: 60px auto 80px;
  padding: 0 24px;
  text-align: center;
}
.success-icon { margin-bottom: 20px; }
.success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 8px;
}
.success-sub { font-size: 14px; color: #6b6560; margin-bottom: 40px; font-weight: 300; }

.order-card {
  background: #fff;
  border: 1px solid #e2ddd8;
  padding: 24px;
  text-align: left;
  margin-bottom: 36px;
}
.order-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f5f2ee;
  color: #6b6560;
}
.order-card-row:last-child { border-bottom: none; }
.order-card-row span:first-child { font-weight: 600; color: #0a0a0a; }
.order-card-divider { border-top: 2px solid #e2ddd8; margin: 12px 0; }
.order-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 12px;
}
.order-card-item img { width: 48px; height: 60px; object-fit: cover; object-position: center top; flex-shrink: 0; }
.order-card-item div { flex: 1; }
.order-card-item span { font-weight: 700; white-space: nowrap; }
.order-card-total { font-weight: 700; font-size: 14px; color: #0a0a0a; }

.success-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 28px; }
.success-note { font-size: 12px; color: #888; line-height: 1.7; }

@media (max-width: 900px) {
  .checkout-body { grid-template-columns: 1fr; }
  .checkout-summary { position: static; order: -1; }
  .checkout-header { padding: 14px 16px; }
  .checkout-steps { display: none; }
  .bank-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.half { grid-column: 1 / -1; }
}
