/* ==========================================================================
   SELVİDOĞAN BOUTIQUE — LUXURY CHECKOUT STYLES
   ========================================================================== */

:root {
  --ck-bg: #f8fafc;
  --ck-card-bg: #ffffff;
  --ck-primary: #111827;
  --ck-accent: #c2447c;
  --ck-accent-hover: #a83266;
  --ck-accent-light: #fdf2f7;
  --ck-text: #1e293b;
  --ck-muted: #64748b;
  --ck-border: #e2e8f0;
  --ck-focus-border: #c2447c;
  --ck-focus-ring: rgba(194, 68, 124, 0.15);
  --ck-success: #059669;
  --ck-success-light: #ecfdf5;
  --ck-error: #dc2626;
  --ck-error-light: #fef2f2;
  --ck-radius: 10px;
}

body.checkout-body {
  background-color: var(--ck-bg);
  color: var(--ck-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Minimalist Checkout Header */
.checkout-header {
  background: #ffffff;
  border-bottom: 1px solid var(--ck-border);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.checkout-header__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.checkout-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ck-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.checkout-header__back:hover {
  color: var(--ck-primary);
}
.checkout-header__logo img {
  height: 38px;
  width: auto;
  display: block;
}
.checkout-header__security {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ck-success);
  font-weight: 600;
}

/* Main Container Grid */
.checkout-main {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 36px;
  align-items: start;
}

@media (max-width: 991px) {
  .checkout-main {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 20px auto;
    padding: 0 16px;
  }
}

/* Step Card Component */
.ck-card {
  background: var(--ck-card-bg);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ck-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.ck-card__step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ck-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.ck-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ck-primary);
}

/* Promo Banner */
.ck-promo-banner {
  background: linear-gradient(135deg, #fdf2f7 0%, #fff1f2 100%);
  border: 1px solid #fbcfe8;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ck-promo-banner__icon {
  font-size: 22px;
  flex-shrink: 0;
}
.ck-promo-banner__text {
  font-size: 14px;
  color: #9d174d;
  line-height: 1.45;
}
.ck-promo-banner__text strong {
  font-weight: 700;
  color: #831843;
}

/* Tab Selector (Guest vs Member) */
.ck-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.ck-tab-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--ck-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.ck-tab-btn.is-active {
  background: #ffffff;
  color: var(--ck-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Form Styles */
.ck-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .ck-form-grid {
    grid-template-columns: 1fr;
  }
}
.ck-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ck-field--full {
  grid-column: 1 / -1;
}
.ck-field label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.ck-field input,
.ck-field select,
.ck-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--ck-border);
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--ck-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.ck-field input:focus,
.ck-field select:focus,
.ck-field textarea:focus {
  border-color: var(--ck-focus-border);
  box-shadow: 0 0 0 3px var(--ck-focus-ring);
}
.ck-field.has-error input,
.ck-field.has-error select,
.ck-field.has-error textarea {
  border-color: var(--ck-error);
  background-color: var(--ck-error-light);
}
.ck-field__error {
  font-size: 12px;
  color: var(--ck-error);
  margin-top: 2px;
  display: none;
}
.ck-field.has-error .ck-field__error {
  display: block;
}

/* Phone input with flag prefix */
.ck-phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.ck-phone-prefix {
  position: absolute;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--ck-muted);
  font-weight: 500;
  pointer-events: none;
}
.ck-phone-wrap input {
  padding-left: 56px;
}

/* Terms Checkbox */
.ck-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  cursor: pointer;
}
.ck-terms input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ck-accent);
  cursor: pointer;
}
.ck-terms a {
  color: var(--ck-accent);
  text-decoration: underline;
}

/* Payment Badge in Form */
.ck-payment-box {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
}
.ck-payment-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ck-payment-box__title {
  font-weight: 600;
  font-size: 15px;
  color: var(--ck-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ck-payment-box__icons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ck-payment-box__icons img {
  height: 22px;
  width: auto;
}
.ck-payment-box__desc {
  font-size: 13px;
  color: var(--ck-muted);
  line-height: 1.45;
  margin: 0;
}

/* Right Column: Order Summary Card */
.ck-summary-card {
  background: var(--ck-card-bg);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius);
  padding: 24px;
  position: sticky;
  top: 96px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.ck-summary-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--ck-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ck-summary-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--ck-muted);
}

/* Free Shipping Progress Bar */
.ck-shipping-meter {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
}
.ck-shipping-meter__text {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}
.ck-shipping-meter__bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}
.ck-shipping-meter__fill {
  height: 100%;
  background: linear-gradient(90deg, #c2447c, #059669);
  border-radius: 99px;
  width: 0%;
  transition: width 0.4s ease;
}

/* Cart Items in Summary */
.ck-items-list {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
  border-bottom: 1px solid #f1f5f9;
}
.ck-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #f1f5f9;
}
.ck-item:first-child {
  border-top: none;
}
.ck-item__img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  background: #f1f5f9;
  flex-shrink: 0;
}
.ck-item__info {
  flex: 1;
  min-width: 0;
}
.ck-item__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ck-primary);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ck-item__variant {
  font-size: 12px;
  color: var(--ck-muted);
  margin: 0 0 4px 0;
}
.ck-item__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--ck-primary);
  margin: 0;
}

/* Price Breakdown */
.ck-totals {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.ck-totals__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #475569;
}
.ck-totals__row--discount {
  color: var(--ck-success);
  font-weight: 600;
}
.ck-totals__row--grand {
  border-top: 2px solid #f1f5f9;
  padding-top: 14px;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ck-primary);
}

/* Big Checkout CTA Button */
.ck-submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: var(--ck-accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(194, 68, 124, 0.3);
}
.ck-submit-btn:hover:not(:disabled) {
  background: var(--ck-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(194, 68, 124, 0.4);
}
.ck-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Security list below summary */
.ck-trust-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}
.ck-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}

/* Status alerts */
.ck-alert {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
  margin-top: 16px;
}
.ck-alert--success {
  background: var(--ck-success-light);
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.ck-alert--error {
  background: var(--ck-error-light);
  border: 1px solid #fecaca;
  color: #991b1b;
}
