/* ── Checkout Flow Dark Theme ── */
:root {
  --co-bg: #000;
  --co-card: #0f0f0f;
  --co-border: rgba(255,255,255,0.08);
  --co-accent: #5AE0E7;
  --co-accent-dim: rgba(90,224,231,0.12);
  --co-muted: rgba(255,255,255,0.42);
  --co-text: #e5e5e5;
}

/* Page wrapper */
.co-page {
  background: var(--co-bg);
  min-height: 100vh;
  padding: 120px 0 60px;
  font-family: 'Montserrat', sans-serif;
}

/* Grid */
.co-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Card */
.co-card {
  background: var(--co-card);
  border: 1px solid var(--co-border);
  border-radius: 8px;
  overflow: hidden;
}

.co-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--co-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.co-card-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: .02em;
}

.co-card-header span {
  font-size: 12px;
  color: var(--co-muted);
  font-weight: 500;
}

.co-card-body {
  padding: 20px 24px;
}

/* Product row */
.co-product-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--co-border);
}

.co-product-row:last-child {
  border-bottom: none;
}

.co-product-img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: #181818;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--co-border);
}

.co-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.co-product-info {
  flex: 1;
  min-width: 0;
}

.co-product-name,
.co-product-name:hover,
.co-product-name:focus {
  font-size: 13px !important;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
  text-decoration: none;
  display: block;
}

.co-product-name:hover { color: var(--co-accent); }

.co-variant-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--co-border);
  color: var(--co-muted);
  padding: 3px 8px;
  border-radius: 3px;
  margin-right: 4px;
  margin-bottom: 4px;
}

.co-product-qty {
  font-size: 11px;
  color: var(--co-muted);
  margin-top: 6px;
}

.co-product-price {
  text-align: right;
  flex-shrink: 0;
}

.co-price-current {
  font-size: 15px;
  font-weight: 700;
  color: var(--co-accent);
  display: block;
}

.co-price-original {
  font-size: 11px;
  color: var(--co-muted);
  text-decoration: line-through;
  display: block;
  margin-top: 2px;
}

/* Qty selector (cart) */
.co-qty-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.co-qty-wrap label {
  font-size: 11px;
  color: var(--co-muted);
  margin: 0;
}

.co-qty-select {
  background: #1a1a1a;
  border: 1px solid var(--co-border);
  color: #fff;
  font-size: 12px;
  padding: 5px 28px 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235AE0E7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  min-width: 60px;
}

.co-qty-select:focus { outline: none; border-color: var(--co-accent); }

.co-remove-btn {
  font-size: 11px;
  color: var(--co-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
  font-family: 'Montserrat', sans-serif;
}

.co-remove-btn:hover { color: #ff6b6b; }

/* Phone field */
.co-field-wrap {
  margin-bottom: 16px;
}

.co-field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--co-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.co-field-input {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid var(--co-border);
  color: #fff;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  transition: border-color .2s;
}

.co-field-input:focus {
  outline: none;
  border-color: var(--co-accent);
}

.co-field-input::placeholder { color: rgba(255,255,255,0.2); }

.co-field-error {
  font-size: 11px;
  color: #ff6b6b;
  margin-top: 4px;
  display: block;
}

/* Terms */
.co-terms {
  font-size: 11px;
  color: var(--co-muted);
  line-height: 1.6;
  margin-top: 16px;
}

.co-terms a {
  color: var(--co-accent);
  text-decoration: none;
  font-size: 11px;
}

.co-terms a:hover { text-decoration: underline; }

/* Price summary */
.co-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--co-border);
  font-size: 13px;
}

.co-summary-row:last-child { border-bottom: none; }

.co-summary-label { color: var(--co-muted); font-weight: 400; }
.co-summary-value { color: #fff; font-weight: 600; }
.co-summary-value.discount { color: #4ade80; }
.co-summary-value.free { color: #4ade80; }

.co-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 0;
  margin-top: 4px;
}

.co-summary-total-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.co-summary-total-value {
  font-size: 18px;
  font-weight: 900;
  color: var(--co-accent);
}

/* CTA Button */
.co-cta-btn,
.co-cta-btn:hover,
.co-cta-btn:focus {
  display: block;
  width: 100%;
  background: var(--co-accent);
  color: #000;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 16px;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  text-decoration: none;
}

.co-cta-btn:hover { background: #3ec8cf; color: #000; }
.co-cta-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Empty cart */
.co-empty {
  text-align: center;
  padding: 80px 20px;
}

.co-empty img { width: 120px; opacity: .4; margin-bottom: 20px; }
.co-empty p { color: var(--co-muted); font-size: 14px; }

/* Frequently bought */
.co-freq-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  margin: 28px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--co-border);
}

.co-freq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.co-freq-card {
  background: var(--co-card);
  border: 1px solid var(--co-border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}

.co-freq-card:hover { border-color: rgba(90,224,231,0.4); transform: translateY(-2px); }

.co-freq-img {
  height: 120px;
  background: #181818;
  overflow: hidden;
}

.co-freq-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

.co-freq-body { padding: 10px 12px; }
.co-freq-name { font-size: 11px; font-weight: 600; color: #fff; line-height: 1.4; margin-bottom: 6px; }
.co-freq-price { font-size: 13px; font-weight: 700; color: var(--co-accent); }
.co-freq-original { font-size: 10px; color: var(--co-muted); text-decoration: line-through; margin-left: 4px; }

.co-freq-add-btn {
  display: block;
  width: 100%;
  background: var(--co-accent-dim);
  border: 1px solid rgba(90,224,231,0.3);
  color: var(--co-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px;
  border-radius: 4px;
  text-align: center;
  margin-top: 8px;
  text-decoration: none;
  transition: background .2s, color .2s;
  font-family: 'Montserrat', sans-serif;
}

.co-freq-add-btn:hover { background: var(--co-accent); color: #000; font-size: 10px; }

/* Payment response */
.co-payment-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 20px;
}

.co-status-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 24px;
}

.co-status-icon.success { background: rgba(74,222,128,0.15); color: #4ade80; }
.co-status-icon.failed { background: rgba(255,107,107,0.15); color: #ff6b6b; }

.co-status-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.co-status-msg {
  font-size: 13px;
  color: var(--co-muted);
  margin-bottom: 6px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 991px) {
  .co-grid {
    grid-template-columns: 1fr;
  }
  .co-freq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .co-page { padding: 100px 0 40px; }
  .co-grid { padding: 0 12px; gap: 16px; }
  .co-card-body { padding: 16px; }
  .co-product-img { width: 64px; height: 64px; }
  .co-freq-grid { grid-template-columns: 1fr; }
}
