
/* ====== PROFESSIONAL CHECKOUT PAGE ====== */
body.checkout-page *:focus {
  outline: none !important;
  box-shadow: none !important;
}
body.checkout-page {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.checkout-header {
  border-bottom: 1px solid var(--border);
  background: #fdfbf7;
}

.checkout-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 0;
  min-height: calc(100vh - 80px);
}

.checkout-main {
  padding: 40px 60px 40px 0;
  border-right: 1px solid var(--border);
}

.checkout-sidebar {
  padding: 40px 0 40px 40px;
  background: rgba(255, 255, 255, 0.01);
}

.checkout-breadcrumb {
  display: flex;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.checkout-breadcrumb a { color: var(--text-primary); text-decoration: none; }
.checkout-breadcrumb .active {
  color: var(--text-primary);
  font-weight: 600;
}

.checkout-section {
  margin-bottom: 20px;
}

.checkout-section h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.login-link {
  font-size: 13px;
  color: var(--text-primary);
  text-decoration: underline;
}

.luxury-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  box-sizing: border-box;
  transition: all var(--transition);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Fix: select dropdown dark background & light text */
select.luxury-input {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  cursor: pointer;
}

select.luxury-input option {
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

.luxury-input:focus {
  border-color: #1a1a1a;
  background: rgba(0,0,0,0.02);
  outline: none;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  margin-top: 10px;
}

.shipping-options {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.shipping-option {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
}

.shipping-option .price {
  font-weight: 600;
  color: var(--text-primary);
}

.payment-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.payment-header {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.payment-header label {
  font-size: 13px;
  margin-left: 8px;
  cursor: pointer;
}

.payment-body {
  padding: 30px;
  text-align: center;
  background: rgba(0, 0, 0, 0.1);
}

.payment-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.checkout-summary-sticky {
  position: sticky;
  top: 40px;
}

.checkout-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.checkout-item-img-wrap {
  position: relative;
}

.checkout-item-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.checkout-item-qty {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #1a1a1a;
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.checkout-item-info {
  flex: 1;
}

.checkout-item-info h4 {
  font-size: 14px;
  margin-bottom: 2px;
  font-weight: 500;
  color: var(--text-primary);
}

.checkout-item-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.discount-wrap {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

#coupon-msg {
  font-size: 12px;
  padding: 0 2px;
  line-height: 1.4;
}

#discount-row {
  color: #d4263c;
  font-weight: 500;
}

/* ===== AVAILABLE COUPONS — FLIPKART ACCORDION STYLE ===== */
.avail-coupons-section {
  margin: 16px 0;
  background: #fff;
  border: 1px solid #e2cc7e;
  border-radius: 10px;
  overflow: hidden;
}

/* Collapsed header — always visible, clickable */
.avail-coupons-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #2d2018;
  cursor: pointer;
  user-select: none;
  background: #fffdf7;
  transition: background 0.15s;
}
.avail-coupons-header:hover { background: #fdf5e0; }

/* Divider inside drawer */
.avail-coupon-divider {
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 8px 16px 6px;
  border-top: 1px solid #f0e8d8;
  background: #fafaf8;
}

/* Coupon list */
.avail-coupon-list {
  display: flex;
  flex-direction: column;
}

.avail-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-top: 1px solid #f0ebe0;
  cursor: pointer;
  transition: background 0.15s;
  gap: 12px;
  background: #fff;
}
.avail-list-item:hover { background: #fdf8ec; }
.avail-list-item.active-coupon { background: #fef7e0; }

.avail-list-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.avail-list-badge {
  font-size: 11px;
  font-weight: 800;
  color: #b8860b;
  background: #fff8e1;
  border: 1.5px dashed #d4af37;
  border-radius: 5px;
  padding: 4px 8px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
}

.avail-list-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.avail-list-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #2d2018;
  line-height: 1.3;
}
.avail-list-sub {
  font-size: 11px;
  color: #999;
}

/* Apply/Applied button on each row */
.avail-list-apply-btn {
  font-size: 12px;
  font-weight: 700;
  color: #c9a84c;
  border: 1.5px solid #c9a84c;
  border-radius: 5px;
  padding: 5px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
  pointer-events: none; /* item click handles it */
}
.avail-list-item:hover .avail-list-apply-btn { background: #c9a84c; color: #fff; }
.avail-list-apply-btn.applied {
  background: #1a7a4a;
  border-color: #1a7a4a;
  color: #fff;
}

/* Manual input row */
.avail-coupon-input-row {
  display: flex;
  gap: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #f0e8d8;
}

.avail-code-input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #e2cc7e;
  border-right: none;
  border-radius: 6px 0 0 6px;
  font-size: 13px;
  background: #fff;
  color: #2d2018;
  outline: none;
  letter-spacing: 0.5px;
}
.avail-code-input:focus { border-color: #c9a84c; }

.avail-apply-btn {
  height: 42px;
  padding: 0 18px;
  background: #c9a84c;
  color: #fff;
  border: none;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.avail-apply-btn:hover { background: #a8872e; }
.avail-apply-btn.remove-mode { background: #888; }
.avail-apply-btn.remove-mode:hover { background: #666; }

.summary-details {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
}

.total-row {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 18px;
  color: var(--text-primary);
}

.tax-note {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.checkout-footer-small {
  margin-top: 60px;
  padding-top: 30px;
  padding-bottom: 40px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.checkout-footer-small p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.checkout-footer-small .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.checkout-footer-small .footer-links a {
  font-size: 11px;
  color: var(--text-primary);
  text-decoration: underline;
}

@media (max-width: 991px) {
  .checkout-container { padding: 0; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-main { order: 2; padding: 40px 20px; border-right: none; }
  .checkout-sidebar { order: 1; padding: 30px 20px; background: var(--bg-card); margin: 0; border-bottom: 1px solid var(--border); }
}

.checkout-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

.checkout-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  transform: scale(1.6);
  transform-origin: center;
  display: block;
}

/* ==========================================
   MOBILE HEADER — Compact logo, minimal spacing
   ========================================== */
@media (max-width: 768px) {
  .checkout-header-inner {
    padding: 12px 20px !important;
  }

  .checkout-logo {
    height: 35px !important;
    transform: scale(1.8) !important;
  }
}

/* ===== TAP HIGHLIGHT FIX ===== */
* {
  -webkit-tap-highlight-color: transparent !important;
}

.payment-box,
.shipping-option,
.coupon-item,
label,
input[type="radio"] {
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}

select,
select:focus,
select:active,
select:focus-visible {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  box-shadow: none !important;
}
