/* ---------- CHECKOUT PAGE ---------- */

.checkout-page {
  padding: 48px 0 96px;
  background: #fff;
  font-family: "Hanken Grotesk", sans-serif;
}

.checkout-container {
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
}

/* ----- Stepper ----- */

.checkout-stepper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #9a9a9a;
}

.checkout-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-step-item.active {
  color: #111111;
}

.checkout-step-number {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  font-size: 10px;
}

.checkout-step-divider {
  width: 24px;
  height: 1px;
  background: #d8cec5;
}

/* ----- Layout ----- */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ----- Order Summary (left) ----- */

.checkout-summary {
  background: #faf3ee;
  padding: 36px;
}

.checkout-summary-title {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #111111;
  margin: 0 0 28px;
}

.checkout-summary-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.checkout-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.checkout-item-img {
  width: 72px;
  height: 96px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f0eeeb;
}

.checkout-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.checkout-item-name {
  font-size: 14px;
  font-weight: 500;
  color: #111111;
  margin: 0 0 4px;
  line-height: 1.4;
}

.checkout-item-variant {
  font-size: 11px;
  color: #605e59;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.checkout-item-qty {
  font-size: 11px;
  color: #605e59;
}

.checkout-item-price {
  font-size: 14px;
  font-weight: 500;
  color: #111111;
  white-space: nowrap;
}

/* ----- Coupon ----- */

.checkout-coupon {
  margin: 24px 0;
  padding-bottom: 24px;
  border-bottom: 1px solid #e3d9d0;
}

.coupon-heading {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #605e59;
  margin: 0 0 10px;
}

.coupon-input-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.coupon-input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d8cec5;
  border-right: none;
  background: #faf8f6;
  font-size: 13px;
  color: #1a1a1a;
  outline: none;
  transition: border-color .2s;
}

.coupon-input:focus {
  border-color: #100604;
}

.coupon-input::placeholder {
  color: #b5aca3;
}

.coupon-input:disabled {
  background: #f0ece8;
  color: #9a9a9a;
}

.coupon-btn {
  height: 42px;
  padding: 0 22px;
  border: 1px solid #100604;
  background: #100604;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}

.coupon-btn:hover {
  background: #000;
}

.coupon-applied {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: #2a6b3c;
}

.coupon-applied svg {
  flex-shrink: 0;
}

.coupon-remove-btn {
  margin-left: auto;
  border: none;
  background: none;
  font-size: 20px;
  color: #b5aca3;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  transition: color .2s;
}

.coupon-remove-btn:hover {
  color: #b54a4a;
}

.coupon-message {
  font-size: 12px;
  margin-top: 8px;
  color: #2a6b3c;
}

.coupon-message.coupon-error {
  color: #b54a4a;
}

.is-hidden {
  display: none;
}

/* ----- Summary Totals ----- */

.checkout-summary-divider {
  height: 1px;
  background: #e3d9d0;
  margin: 24px 0;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: #605e59;
  margin-bottom: 14px;
}

.checkout-summary-row span:first-child {
  color: #605e59;
}

.checkout-summary-row span:last-child {
  color: #111111;
}

.checkout-summary-discount span:last-child {
  color: #2a6b3c;
}

.checkout-summary-total {
  font-size: 15px;
  font-weight: 600;
  color: #111111;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e3d9d0;
}

.checkout-summary-total span:last-child {
  font-weight: 600;
}

.checkout-free-shipping-note {
  font-size: 11px;
  color: #2a6b3c;
  margin-top: -8px;
  margin-bottom: 14px;
}

/* ----- Shipping Form (right) ----- */

.checkout-form {
  max-width: 460px;
}

.checkout-section-title {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #111111;
  margin: 0 0 32px;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 20px;
  margin-bottom: 24px;
}

.checkout-form-grid .checkout-form-group.full-width {
  grid-column: 1 / -1;
}

.checkout-form-group {
  display: flex;
  flex-direction: column;
}

.checkout-form-group label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #605e59;
  margin-bottom: 14px;
}

.checkout-form-group input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #d8cec5;
  background: transparent;
  padding: 10px 0 12px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  outline: none;
  transition: border-color .25s ease;
}

.checkout-form-group input:focus {
  border-bottom-color: #111111;
}

.checkout-form-group input::placeholder {
  color: #b5aca3;
}

/* ----- Payment ----- */

.checkout-payment {
  margin-top: 40px;
}

.checkout-payment-title {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111111;
  margin: 0 0 20px;
}

.checkout-payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.checkout-payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d8cec5;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.checkout-payment-option:hover {
  border-color: #111111;
}

.checkout-payment-option.checkout-payment-active {
  border-color: #111111;
  background: #faf3ee;
}

.checkout-payment-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #d8cec5;
  flex-shrink: 0;
  position: relative;
}

.checkout-payment-active .checkout-payment-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #111111;
}

.checkout-payment-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 2px;
}

.checkout-payment-desc {
  font-size: 11px;
  color: #605e59;
}

.checkout-payment-logo {
  height: 18px;
  margin-left: auto;
}

.checkout-secure-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #605e59;
}

/* ----- Submit Button ----- */

.checkout-pay-btn {
  width: 100%;
  margin-top: 32px;
  padding: 15px 0;
  background: #151515;
  color: #fff;
  border: none;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.checkout-pay-btn:hover {
  background: #000;
}

.checkout-pay-btn:disabled {
  opacity: .6;
  cursor: wait;
}

.checkout-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: checkoutSpin .8s linear infinite;
}

@keyframes checkoutSpin {
  to { transform: rotate(360deg); }
}

/* ----- Empty State ----- */

.checkout-empty {
  text-align: center;
  padding: 80px 24px;
}

.checkout-empty-icon {
  color: #d8cec5;
  margin-bottom: 20px;
}

.checkout-empty h2 {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #111111;
  margin: 0 0 10px;
}

.checkout-empty p {
  font-size: 14px;
  color: #605e59;
  margin: 0 0 24px;
}

.checkout-empty .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  background: #151515;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background .2s ease;
}

.checkout-empty .btn:hover {
  background: #000;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {
  .checkout-layout {
    gap: 48px;
  }
}

@media (max-width: 960px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .checkout-form {
    max-width: 100%;
    order: 1;
  }

  .checkout-summary {
    order: 2;
  }
}

@media (max-width: 640px) {
  .checkout-container {
    padding: 0 24px;
  }

  .checkout-stepper {
    margin-bottom: 32px;
  }

  .checkout-summary {
    padding: 24px;
  }

  .checkout-form-grid {
    grid-template-columns: 1fr;
  }

  .checkout-summary-title,
  .checkout-section-title,
  .checkout-empty h2 {
    font-size: 20px;
  }
}

/* ---------- ORDER STATUS PAGES (Confirmed / Cancelled) ---------- */

.os-page {
  padding: 64px 0 96px;
  background: #fff;
  font-family: "Hanken Grotesk", sans-serif;
}

.os-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.os-hero {
  text-align: center;
  margin-bottom: 56px;
}

.os-check-circle {
  margin-bottom: 24px;
}

.os-check-svg {
  display: inline-block;
}

.os-circle {
  stroke-dasharray: 189;
  stroke-dashoffset: 189;
}

.os-tick {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

@keyframes os-draw-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes os-draw-tick {
  to { stroke-dashoffset: 0; }
}

.os-cross-circle {
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2.5px solid #b54a4a;
}

.os-cross-svg {
  display: block;
}

.os-title {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: #111111;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.os-subtitle {
  font-size: 16px;
  color: #605e59;
  margin: 0 0 8px;
}

.os-order-id {
  font-size: 13px;
  color: #9a9a9a;
  letter-spacing: 0.03em;
  margin: 0;
}

.os-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.os-main {
  min-width: 0;
}

.os-section {
  margin-bottom: 40px;
}

.os-section-title {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #111111;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3d9d0;
}

.os-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.os-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.os-item-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.os-item-img {
  width: 56px;
  height: 72px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: #f0eeeb;
}

.os-item-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d8cec5;
}

.os-item-name {
  font-size: 14px;
  font-weight: 500;
  color: #111111;
  margin: 0 0 4px;
}

.os-item-variant {
  font-size: 11px;
  color: #605e59;
  margin: 0;
  letter-spacing: 0.02em;
}

.os-item-qty {
  font-size: 13px;
  color: #9a9a9a;
  white-space: nowrap;
}

.os-item-price {
  font-size: 14px;
  font-weight: 500;
  color: #111111;
  white-space: nowrap;
  min-width: 64px;
  text-align: right;
}

.os-address {
  font-size: 14px;
  color: #111111;
  margin: 0 0 4px;
  line-height: 1.6;
}

.os-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.os-timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  opacity: 0.35;
}

.os-timeline-active {
  opacity: 1;
}

.os-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8cec5;
  flex-shrink: 0;
  margin-top: 5px;
}

.os-timeline-active .os-timeline-dot {
  background: #c4a430;
}

.os-timeline-label {
  font-size: 14px;
  font-weight: 500;
  color: #111111;
  margin: 0 0 2px;
}

.os-timeline-desc {
  font-size: 12px;
  color: #605e59;
  margin: 0;
}

.os-sidebar {
  min-width: 0;
}

.os-summary {
  background: #faf3ee;
  padding: 28px;
  margin-bottom: 20px;
}

.os-summary .os-section-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 16px;
}

.os-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.os-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #605e59;
}

.os-summary-row span:last-child {
  color: #111111;
}

.os-summary-discount span:last-child {
  color: #2a6b3c;
}

.os-summary-total {
  font-weight: 600;
  padding-top: 14px;
  margin-top: 8px;
  border-top: 1px solid #e3d9d0;
}

.os-summary-total span {
  color: #111111;
}

.os-status-card {
  background: #fff;
  border: 1px solid #e3d9d0;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.os-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.os-status-label {
  font-size: 12px;
  color: #605e59;
  letter-spacing: 0.04em;
}

.os-status-value {
  font-size: 13px;
  color: #111111;
  font-weight: 500;
}

.os-status-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid currentColor;
}

.os-status-confirmed {
  color: #2a6b3c;
}

.os-status-cancelled {
  color: #b54a4a;
}

.os-status-pending {
  color: #b58a2a;
}

.os-status-shipped {
  color: #2a5b8c;
}

.os-status-delivered {
  color: #2a6b3c;
}

.os-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.os-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  box-sizing: border-box;
}

.os-btn-primary {
  background: #151515;
  color: #fff;
  border: none;
}

.os-btn-primary:hover {
  background: #000;
}

.os-btn-outline {
  background: transparent;
  color: #111111;
  border: 1px solid #d8cec5;
}

.os-btn-outline:hover {
  border-color: #111111;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 860px) {
  .os-grid {
    grid-template-columns: 1fr;
  }

  .os-container {
    padding: 0 24px;
  }

  .os-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .os-page {
    padding: 40px 0 64px;
  }

  .os-item {
    flex-wrap: wrap;
  }

  .os-summary {
    padding: 20px;
  }
}
