/* checkout.css */

.checkout-page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 32px 60px;
}

/* STEPS BAR */
.steps-bar {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 24px;
}

.step {
  display: flex; align-items: center; gap: 10px;
}

.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--border); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  transition: all 0.3s;
}

.step.active .step-num {
  background: var(--dark-green); color: #fff;
}

.step.done .step-num {
  background: var(--accent-green); color: #fff;
}

.step-label {
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
}

.step.active .step-label { color: var(--dark-green); }
.step.done .step-label { color: var(--accent-green); }

.step-line {
  flex: 1; height: 2px; background: var(--border);
  margin: 0 12px; border-radius: 2px; transition: all 0.3s;
}

.step-line.active { background: var(--accent-green); }

/* PAGE TITLE */
.checkout-title {
  font-size: 36px; font-weight: 800;
  color: var(--dark-green); margin-bottom: 6px;
}

.checkout-sub {
  font-size: 14px; color: var(--text-muted); margin-bottom: 32px;
}

/* GRID */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.checkout-left { display: flex; flex-direction: column; gap: 20px; }
.checkout-right { display: flex; flex-direction: column; gap: 16px; }

/* SECTION */
.checkout-section { padding: 24px; }

.section-heading {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700;
  color: var(--text-dark); margin-bottom: 20px;
}

.section-icon { font-size: 18px; }

/* FULFILLMENT METHODS */
.fulfillment-methods {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}

.method-card {
  border: 2px solid var(--border);
  border-radius: 16px; padding: 20px;
  cursor: pointer; transition: all 0.25s;
  display: flex; gap: 14px;
}

.method-card:hover { border-color: var(--accent-green); }
.method-card.active {
  border-color: var(--dark-green);
  background: linear-gradient(135deg, #f0fdf4, #fff);
  box-shadow: 0 0 0 3px rgba(26,58,42,0.08);
}

.method-icon { font-size: 28px; flex-shrink: 0; }

.method-name { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; }
.method-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }

.method-badge {
  display: inline-block;
  font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
  padding: 3px 10px; border-radius: 20px;
  background: var(--pale-green); color: var(--mid-green);
}

.method-price { background: #fef3d5; color: #b38a1a; }

/* MAP */
.map-placeholder {
  background: linear-gradient(135deg, #1a3a2a 0%, #243d2f 40%, #1e4433 100%);
  border-radius: 16px; height: 220px;
  position: relative; overflow: hidden;
  margin-bottom: 16px;
}

.map-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-hub-pin {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}

.hub-pin-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(232,184,75,0.3);
  animation: pulse 2s ease infinite;
}

.hub-pin-label {
  background: rgba(255,255,255,0.9);
  color: var(--dark-green);
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  white-space: nowrap;
}

/* HUB LIST */
.hub-list {
  display: flex; gap: 10px; flex-wrap: wrap;
}

.hub-item {
  display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 0;
  border: 1.5px solid var(--border);
  border-radius: 12px; padding: 14px;
  cursor: pointer; transition: all 0.2s;
}

.hub-item:hover { border-color: var(--accent-green); background: #f0fdf4; }
.hub-item.active { border-color: var(--dark-green); background: #f0fdf4; }

.hub-item-icon { font-size: 20px; }
.hub-item-name { font-size: 13px; font-weight: 700; color: var(--text-dark); }
.hub-item-detail { font-size: 11px; color: var(--text-muted); }

.more-hubs {
  justify-content: center;
  color: var(--accent-green); font-size: 13px; font-weight: 600;
  border-style: dashed;
}

/* BOTTOM ROW */
.checkout-bottom-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

/* IMPACT CARD */
.impact-card { padding: 22px; }

.impact-percent {
  font-size: 44px; font-weight: 900;
  color: var(--dark-green); font-family: 'Outfit', sans-serif;
  line-height: 1; margin-bottom: 4px;
}

.impact-label {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 4px;
}

.impact-desc {
  font-size: 12px; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 14px;
}

.farmer-avatars { display: flex; gap: -6px; align-items: center; }

.f-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; border: 2px solid #fff;
  margin-right: -8px;
}

.f-avatar-more {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--pale-green); color: var(--mid-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  border: 2px solid #fff; margin-left: 4px;
}

/* TIMELINE CARD */
.timeline-card { padding: 22px; }

.timeline { margin-top: 8px; }

.timeline-item {
  display: flex; align-items: flex-start; gap: 14px;
}

.tl-dot {
  width: 26px; height: 26px; border-radius: 50%;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

.tl-dot.done { background: var(--gold); color: var(--dark-green); }
.tl-dot.pending { background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.25); }

.timeline-line {
  width: 2px; height: 24px;
  background: rgba(255,255,255,0.12);
  margin-left: 12px;
}

.tl-title { font-size: 14px; font-weight: 700; color: #fff; }
.tl-sub { font-size: 12px; color: rgba(255,255,255,0.5); }

/* ORDER SUMMARY CARD */
.order-summary-card { padding: 24px; }

.order-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }

.order-item {
  display: flex; align-items: center; gap: 14px;
}

.order-item-img {
  width: 52px; height: 52px; border-radius: 10px;
  object-fit: cover; border: 1px solid var(--border);
  flex-shrink: 0;
}

.order-item-info { flex: 1; }
.order-item-name { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.order-item-detail { font-size: 12px; color: var(--text-muted); }
.order-item-price { font-size: 15px; font-weight: 800; font-family: 'Outfit', sans-serif; color: var(--text-dark); }

.order-divider {
  height: 1px; background: var(--border); margin: 14px 0;
}

.order-line-items { display: flex; flex-direction: column; gap: 10px; }

.order-line {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-mid);
}

.order-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 16px; font-weight: 700; color: var(--text-dark);
}

.total-price {
  font-size: 24px; font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: var(--dark-green);
}

/* SOIL GUARANTEE */
.soil-guarantee {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fef9eb; border: 1.5px solid #f5d48a;
  border-radius: 14px; padding: 16px; margin-top: 16px;
}

.soil-guarantee-icon { font-size: 22px; flex-shrink: 0; }
.soil-guarantee-title { font-size: 13px; font-weight: 700; color: #7a5c00; margin-bottom: 4px; }
.soil-guarantee-desc { font-size: 12px; color: #a07820; line-height: 1.5; }

/* ADD MORE ITEMS */
.add-more-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer; transition: all 0.2s;
}

.add-more-item:hover { border-color: var(--accent-green); background: #f0fdf4; }
.add-more-emoji { font-size: 22px; }
.add-more-item > div { flex: 1; }

.add-more-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--dark-green); color: #fff;
  border: none; cursor: pointer; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}

.add-more-btn:hover { background: var(--accent-green); transform: scale(1.1); }
