/* ── CHECKOUT PAGE STYLES ── */

.checkout-main { padding-top: 72px; }
.checkout-container { max-width: 1100px; margin: 0 auto; padding: 60px 40px; }

.checkout-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

/* GALLERY */
.product-gallery {}
.main-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
}
.thumbnails { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--accent); }

/* PRODUCT DETAILS */
.product-details { padding: 10px 0; }
.product-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  margin: 12px 0 20px;
  color: var(--charcoal);
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.price-current { font-size: 28px; font-weight: 500; color: var(--accent); }
.price-original { font-size: 16px; color: var(--text-light); text-decoration: line-through; }
.price-badge {
  background: var(--charcoal);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 2px;
}
.product-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.quantity-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.qty-label { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-btn {
  width: 36px; height: 36px;
  background: var(--cream-dark);
  color: var(--charcoal);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  border: none; cursor: pointer;
}
.qty-btn:hover { background: var(--cream-deeper); }
.qty-value { width: 44px; text-align: center; font-size: 16px; font-weight: 500; color: var(--charcoal); }
.stock-info { font-size: 13px; color: var(--text-muted); }

.btn-buy {
  width: 100%;
  padding: 18px;
  background: var(--charcoal);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 400;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 14px;
}
.btn-buy:hover:not(:disabled) { background: var(--accent); }
.btn-buy:disabled { opacity: 0.5; cursor: not-allowed; }
.secure-note { font-size: 12px; color: var(--text-light); text-align: center; }

/* REVIEWS */
.reviews-section { border-top: 1px solid var(--border); padding-top: 60px; }
.reviews-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 36px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.reviewer-info { display: flex; flex-direction: column; gap: 2px; }
.reviewer-name { font-weight: 500; font-size: 15px; color: var(--charcoal); }
.reviewer-location { font-size: 12px; color: var(--text-light); }
.stars { color: #C0892A; font-size: 16px; letter-spacing: 2px; }
.review-text { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 10px; }
.review-date { font-size: 12px; color: var(--text-light); }

/* ADDRESS MODAL */
.address-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42,36,32,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.address-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  background: var(--cream-dark);
  border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--cream-deeper); }
.modal-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.modal-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 32px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; font-weight: 400; }
.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: var(--cream);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--charcoal);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus { border-color: var(--accent); }
.form-group input::placeholder { color: var(--text-light); }

.order-summary {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 16px;
  margin: 24px 0;
}
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); padding: 4px 0; }
.summary-total { font-weight: 500; color: var(--charcoal); font-size: 16px; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; }

.btn-pay {
  width: 100%;
  padding: 18px;
  background: var(--charcoal);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 400;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.btn-pay:hover:not(:disabled) { background: var(--accent); }
.btn-pay:disabled { opacity: 0.6; cursor: not-allowed; }
.payment-note { font-size: 12px; color: var(--text-light); text-align: center; }

/* SUCCESS */
.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42,36,32,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}
.success-icon { font-size: 48px; color: var(--accent); margin-bottom: 24px; }
.success-modal h2 { font-family: var(--font-display); font-size: 36px; font-weight: 300; margin-bottom: 16px; }
.success-modal p { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.7; }
.order-id-display { font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: 0.05em; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .checkout-container { padding: 40px 20px; }
  .checkout-product { grid-template-columns: 1fr; gap: 40px; }
  .address-modal { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Spec Pills ───────────────────────────────────── */
.spec-pill {
  padding: 7px 16px;
  border: 1.5px solid rgba(42,36,32,0.35);
  background: transparent;
  color: var(--charcoal, #2A2420);
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}
.spec-pill:hover,
.spec-pill.active {
  background: var(--charcoal, #2A2420);
  color: #fff;
  border-color: var(--charcoal, #2A2420);
}

/* ── Spec Select ──────────────────────────────────── */
.spec-select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--charcoal, #2A2420);
  appearance: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.spec-select:focus {
  outline: none;
  border-color: var(--accent, #8B6F4E);
}
