/* ==========================================================================
   CART PAGE STYLES (ISOLATED NAMESPACE: crt-*)
   ========================================================================== */

/* Progress Stepper */
.crt-stepper-wrap {
  padding: 30px 0 20px;
  background-color: var(--color-white);
}

.crt-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.crt-step {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999999;
  white-space: nowrap;
}

.crt-step.active {
  color: var(--color-primary, var(--color-primary));
}

.crt-step-line {
  flex: 1;
  border-bottom: 2px dashed #E0E0E0;
  margin: 0 24px;
}

@media (max-width: 575px) {
  .crt-step-line {
    margin: 0 12px;
  }

  .crt-step {
    font-size: 11.5px;
  }
}

/* Cart Main Section */
.crt-main-section {
  padding-bottom: 60px;
  background-color: var(--color-white);
}

/* Cart Item Card */
.crt-item-card {
  background: #FAF6F0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s ease;
}

.crt-item-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.crt-item-thumb {
  width: 95px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.crt-item-thumb[src*="no-image"] {
  object-fit: contain;
  padding: 6px;
}

.crt-item-title a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: #222222;
  margin-bottom: 8px;
  line-height: 1.3;
}

.crt-item-meta {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: #666666;
  margin-bottom: 4px;
}

/* Quantity Control inside Card */
.crt-qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid #DCDCDC;
  border-radius: 4px;
  background: #ffffff;
  height: 32px;
  margin-top: 4px;
}

.crt-qty-btn {
  width: 28px;
  height: 30px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crt-qty-input {
  width: 32px;
  border: none;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #222222;
  background: transparent;
}

.crt-price-col {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  text-align: right;
}

/* Price Details */
.crt-item-price {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: #222222;
  text-align: right;
  margin-bottom: 2px;
  white-space: nowrap !important;
}

.crt-item-tax-note {
  font-family: var(--font-body);
  font-size: 11px;
  color: #888888;
  text-align: right;
  white-space: nowrap !important;
}

/* Mobile Responsive Styling for Cart Cards */
@media (max-width: 767px) {
  .crt-item-card {
    padding: 16px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
  }

  .crt-item-thumb {
    width: 80px;
    height: 105px;
    border-radius: 6px;
  }

  .desktop-price {
    display: none !important;
  }

  .crt-item-title a {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
  }

  .crt-item-meta {
    font-size: 12.5px;
    margin-bottom: 2px;
  }

  .crt-price-mobile {
    margin: 4px 0 6px;
  }

  .crt-price-mobile .crt-item-price-val {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: #222222;
  }

  .crt-price-mobile .crt-item-tax-note {
    font-size: 11px;
    color: #888888;
  }

  .crt-action-row {
    margin-top: 12px;
    padding-top: 12px;
    gap: 8px;
  }

  .crt-btn-white {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Card Action Buttons */
.crt-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #EAE2D8;
}

.crt-btn-white {
  background: #ffffff;
  border: 1px solid #DCDCDC;
  border-radius: 6px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #333333;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crt-btn-white:hover {
  border-color: #000000;
  color: #000000;
  background: #fcfcfc;
}

.crt-btn-white.remove-btn:hover {
  border-color: #e74c3c;
  color: #e74c3c;
  background: #fff5f5;
}

/* Billing Details Side Card */
.crt-billing-sidebar {
  position: relative;
}

@media (min-width: 768px) {
  .crt-billing-sidebar {
    position: sticky;
    top: 90px;
    z-index: 10;
  }
}

.crt-billing-title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  color: #333333;
  margin-bottom: 18px;
}

.crt-billing-box {
  background: #ffffff;
  border: 1px solid #EAEAEA;
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.crt-billing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #555555;
}

.crt-billing-row.total-row {
  font-size: 16px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 0;
}

.crt-billing-divider {
  border-top: 1px solid #EAEAEA;
  margin: 14px 0;
}

/* Coupon Code Box Below Total Amount */
.crt-coupon-wrap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #E0E0E0;
}

.crt-coupon-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FAF6F0;
  border: 1px solid #EAE2D8;
  border-radius: 8px;
  padding: 4px 4px 4px 14px;
}

.crt-coupon-input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13.5px !important;
  color: #333333 !important;
  padding: 6px 0 !important;
  width: 100%;
}

.crt-coupon-input::placeholder {
  color: #999999;
}

.crt-coupon-btn {
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.crt-coupon-btn:hover {
  background: var(--color-primary, var(--color-primary));
  color: #ffffff;
}

/* Checkout Button */
.crt-checkout-btn {
  background: #000000;
  color: #ffffff !important;
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-align: center;
  display: block;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.15s ease;
  margin-top: 20px;
  border: none;
  cursor: pointer;
}

.crt-checkout-btn:hover {
  background: var(--color-primary, var(--color-primary));
  color: #ffffff !important;
}

.crt-continue-btn {
  background: transparent;
  color: #666666 !important;
  width: 100%;
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  display: block;
  text-decoration: none !important;
  transition: color 0.2s ease;
  margin-top: 8px;
}

.crt-continue-btn:hover {
  color: #000000 !important;
}

/* ==========================================================================
   CHECKOUT PAGE STYLES (ISOLATED NAMESPACE: chk-*)
   ========================================================================== */

.chk-stepper-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
  padding: 10px 0;
}

.chk-badge-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #777777;
  background: #FAF6F0;
  border: 1px solid #EAE2D8;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.chk-badge-step.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.chk-badge-step.done {
  color: #222222;
  background: #ffffff;
}

.chk-step-arrow {
  color: #cccccc;
  font-size: 12px;
}

.chk-main-card {
  background: #FAF6F0;
  border: none;
  border-radius: 12px;
  padding: 30px 32px;
  box-shadow: none;
}

.chk-section-header {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px dashed #E5DCD0 !important;
  position: relative !important;
}

.chk-icon-badge {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background: #F0E6DA !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--color-primary-dark, #836649) !important;
  font-size: 20px !important;
  flex-shrink: 0 !important;
  position: static !important;
  float: none !important;
  margin: 0 !important;
}

.chk-header-text {
  flex: 1 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  float: none !important;
}

.chk-section-title {
  font-family: var(--font-body, sans-serif) !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  color: #222222 !important;
  margin: 0 0 3px 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  display: block !important;
  position: static !important;
}

.chk-section-subtitle {
  font-size: 13px !important;
  color: #777777 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  display: block !important;
}

/* Form Inputs & Grid Alignment */
.chk-main-card .row {
  margin-left: -8px !important;
  margin-right: -8px !important;
  display: flex !important;
  flex-wrap: wrap !important;
}

.chk-main-card .row>[class*="col-"] {
  padding-left: 8px !important;
  padding-right: 8px !important;
  float: none !important;
  box-sizing: border-box !important;
}

.chk-main-card .col-md-6 {
  width: 50% !important;
  flex: 0 0 50% !important;
  max-width: 50% !important;
}

.chk-main-card .col-md-4 {
  width: 33.33333333% !important;
  flex: 0 0 33.33333333% !important;
  max-width: 33.33333333% !important;
}

.chk-main-card .col-12,
.chk-main-card .col-md-12 {
  width: 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

@media (max-width: 767px) {

  .chk-main-card .col-md-6,
  .chk-main-card .col-md-4 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .chk-main-card {
    padding: 24px;
  }
}

.chk-form-group {
  margin-bottom: 6px;
}

.chk-label {
  font-family: var(--font-body, sans-serif) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #444444 !important;
  margin-bottom: 6px !important;
  display: block !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  line-height: 1.2 !important;
}

.chk-input {
  background: #ffffff !important;
  border: 1px solid #EAE2D8 !important;
  border-radius: 8px !important;
  padding: 11px 16px !important;
  font-size: 14px !important;
  color: #222222 !important;
  width: 100% !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  height: auto !important;
}

.chk-input:focus {
  border-color: var(--color-primary, #B77916) !important;
  outline: none !important;
}

.chk-input::placeholder {
  color: #aaaaaa;
}

/* Sticky Summary Card */
.chk-summary-card {
  position: sticky;
  top: 90px;
  background: #ffffff;
  border: 1px solid #EAEAEA;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.chk-summary-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: #222222;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chk-item-preview-list {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 20px;
}

.chk-item-preview-list::-webkit-scrollbar {
  width: 4px;
}

.chk-item-preview-list::-webkit-scrollbar-thumb {
  background: #d1c4b5;
  border-radius: 4px;
}

.chk-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #E5DCD0;
}

.chk-item-row:last-child {
  border-bottom: none;
}

.chk-item-img {
  width: 55px;
  height: 70px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.chk-item-name {
  font-size: 13.5px;
  font-weight: 500;
  color: #333333;
  margin-bottom: 2px;
  line-height: 1.3;
}

.chk-item-qty {
  font-size: 12px;
  color: #777777;
}

.chk-item-price {
  font-size: 14px;
  font-weight: 600;
  color: #222222;
  white-space: nowrap;
}

/* Place Order Button */
.chk-place-order-btn {
  background: #000000;
  color: #ffffff !important;
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-top: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.chk-place-order-btn:hover {
  background: var(--color-primary, var(--color-primary));
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(183, 121, 22, 0.25);
  transform: translateY(-1px);
}

.chk-security-notes {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 11.5px;
  color: #777777;
}

.chk-security-notes span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* intl-tel-input (Phone Number Field) Fixes */
.phone-input-w-100 {
  width: 100% !important;
}

.phone-input-w-100 .iti,
.iti {
  width: 100% !important;
  display: block !important;
  position: relative !important;
}

.iti input,
.iti input.form-control,
.iti input.prf-input,
.iti input.chk-input {
  width: 100% !important;
}

.iti--separate-dial-code input,
.iti--separate-dial-code input.form-control,
.iti--separate-dial-code input.prf-input,
.iti--separate-dial-code input.chk-input {
  padding-left: 95px !important;
}

.iti--allow-dropdown input:not(.iti--separate-dial-code input),
.iti--allow-dropdown input.form-control:not(.iti--separate-dial-code input),
.iti--allow-dropdown input.prf-input:not(.iti--separate-dial-code input),
.iti--allow-dropdown input.chk-input:not(.iti--separate-dial-code input) {
  padding-left: 54px !important;
}

.iti__selected-flag {
  border-radius: 8px 0 0 8px !important;
  padding: 0 10px 0 12px !important;
  background-color: transparent !important;
}

.iti__selected-dial-code {
  font-family: var(--font-body, sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #333333 !important;
  margin-left: 6px !important;
}

.iti__country-list {
  z-index: 99999 !important;
  max-width: 360px !important;
  border-radius: 8px !important;
  border: 1px solid #EAE2D8 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
  font-family: var(--font-body, sans-serif) !important;
  font-size: 13.5px !important;
}

/* Toast Containers MUST have transparent backdrop background */
.swal2-container.swal2-top,
.swal2-container.swal2-top-start,
.swal2-container.swal2-top-end,
.swal2-container.swal2-top-left,
.swal2-container.swal2-top-right,
.swal2-container.swal2-bottom,
.swal2-container.swal2-bottom-start,
.swal2-container.swal2-bottom-end,
.swal2-container.swal2-bottom-left,
.swal2-container.swal2-bottom-right {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

/* SweetAlert2 Modal / Dialog Customization (Anhad Brand Aesthetic) */
.swal2-container.swal2-center {
  background: rgba(17, 17, 17, 0.45) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.swal2-popup:not(.swal2-toast) {
  border-radius: 16px !important;
  padding: 2.25rem 2rem 2rem 2rem !important;
  background: #ffffff !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid #eaeaea !important;
  font-family: inherit !important;
  max-width: 440px !important;
  width: 90% !important;
}

.swal2-popup:not(.swal2-toast) .swal2-title {
  font-family: inherit !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #111111 !important;
  margin-top: 1rem !important;
  margin-bottom: 0.5rem !important;
  padding: 0 !important;
}

.swal2-popup:not(.swal2-toast) .swal2-html-container,
.swal2-popup:not(.swal2-toast) .swal2-content {
  font-family: inherit !important;
  font-size: 0.95rem !important;
  color: #666666 !important;
  margin-top: 0.25rem !important;
  margin-bottom: 1rem !important;
}

/* SweetAlert Icons Styling */
.swal2-popup:not(.swal2-toast) .swal2-icon {
  margin: 0.5rem auto 0 auto !important;
}

.swal2-popup:not(.swal2-toast) .swal2-icon.swal2-warning {
  border-color: #B77916 !important;
  color: #B77916 !important;
}

.swal2-popup:not(.swal2-toast) .swal2-icon.swal2-warning .swal2-icon-content {
  color: #B77916 !important;
}

.swal2-popup:not(.swal2-toast) .swal2-icon.swal2-error {
  border-color: #e74c3c !important;
  color: #e74c3c !important;
}

.swal2-popup:not(.swal2-toast) .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
  background-color: #e74c3c !important;
}

.swal2-popup:not(.swal2-toast) .swal2-icon.swal2-success {
  border-color: #B77916 !important;
  color: #B77916 !important;
}

.swal2-popup:not(.swal2-toast) .swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: #B77916 !important;
}

.swal2-popup:not(.swal2-toast) .swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(183, 121, 22, 0.3) !important;
}

/* SweetAlert Action Buttons */
.swal2-popup:not(.swal2-toast) .swal2-actions {
  gap: 12px !important;
  margin-top: 1.5rem !important;
  width: 100% !important;
  justify-content: center !important;
}

.swal2-popup:not(.swal2-toast) .swal2-styled {
  margin: 0 !important;
  padding: 10px 24px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  font-family: inherit !important;
}

.swal2-popup:not(.swal2-toast) .swal2-confirm {
  background-color: #B77916 !important;
  color: #ffffff !important;
  border: 1px solid #B77916 !important;
  box-shadow: 0 4px 12px rgba(183, 121, 22, 0.25) !important;
}

.swal2-popup:not(.swal2-toast) .swal2-confirm:hover,
.swal2-popup:not(.swal2-toast) .swal2-confirm:focus {
  background-color: #96610f !important;
  border-color: #96610f !important;
  box-shadow: 0 6px 16px rgba(183, 121, 22, 0.35) !important;
}

.swal2-popup:not(.swal2-toast) .swal2-cancel {
  background-color: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #d0d0d0 !important;
  box-shadow: none !important;
}

.swal2-popup:not(.swal2-toast) .swal2-cancel:hover,
.swal2-popup:not(.swal2-toast) .swal2-cancel:focus {
  background-color: #f8f9fa !important;
  color: #111111 !important;
  border-color: #b0b0b0 !important;
}

/* Modal Top Right Close Button */
.swal2-popup:not(.swal2-toast) .swal2-close {
  top: 14px !important;
  right: 14px !important;
  font-size: 20px !important;
  color: #999999 !important;
  transition: color 0.15s ease !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.swal2-popup:not(.swal2-toast) .swal2-close:hover {
  color: #111111 !important;
}