/* Cart Page - Live Style Replica */

.cart-page-wrapper {
  position: relative;
  min-height: 100vh;
  padding: 24px 0 72px;
}

.cart-page-wrapper::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/images/tire-1757696909765-Photoroom.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.cart-page-wrapper::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(21, 21, 21, 0.5);
  z-index: 0;
  pointer-events: none;
}

.cart-page-wrapper > .cart-container {
  position: relative;
  z-index: 1;
}

.cart-container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
}

.cart-page .checkout-progress {
  margin-bottom: 28px;
}

.cart-page .dw-process-wrap {
  padding: 12px 0 0 !important;
  margin-bottom: 18px;
}

.cart-page .dw-process-steps {
  max-width: 100% !important;
}

.cart-page-header {
  text-align: center;
  margin-bottom: 26px;
  padding: 26px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 14px;
}

.cart-page-header .header-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffff00 0%, #ffd700 100%);
}

.cart-page-header .header-icon i {
  color: #000;
  font-size: 27px;
}

.cart-page-header h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.cart-page-header p {
  margin: 0;
  color: #8d8d8d;
  font-size: 14px;
}

.cart-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.cart-items-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-items {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 20px;
}

.cart-items__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2f2f2f;
}

.cart-items__title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.cart-items__count {
  color: #ffff00;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.cart-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.cart-alert--warning {
  background: rgba(255, 196, 0, 0.12);
  border: 1px solid rgba(255, 196, 0, 0.28);
  color: #ffe27a;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: #171717;
  border: 1px solid #2f2f2f;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: opacity 0.2s ease;
}

.cart-item:last-child {
  margin-bottom: 0;
}

.cart-item.updating {
  opacity: 0.65;
  pointer-events: none;
}

.cart-item--unavailable {
  border-color: rgba(255, 111, 111, 0.45);
}

.cart-item-image,
.cart-item__image {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  background: #232323;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image img,
.cart-item__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-item-details,
.cart-item__details {
  min-width: 0;
}

.cart-item__brand {
  display: inline-block;
  margin-bottom: 4px;
  color: #ffff00;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.cart-item__name {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.cart-item__name a {
  color: #fff;
  text-decoration: none;
}

.cart-item__name a:hover {
  color: #ffff00;
}

.cart-item__specs {
  display: block;
  color: #989898;
  font-size: 12px;
  margin-bottom: 8px;
}

.cart-item__availability {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 87, 87, 0.12);
  border: 1px solid rgba(255, 87, 87, 0.28);
  color: #ff9b9b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-item__price {
  color: #e5e5e5;
  font-size: 13px;
  margin-bottom: 10px;
}

.cart-item__price span {
  color: #8a8a8a;
  font-size: 11px;
  text-transform: uppercase;
}

.cart-quantity-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cart-quantity-wrapper label {
  color: #b0b0b0;
  font-size: 12px;
  text-transform: uppercase;
}

.cart-quantity {
  display: inline-flex;
  align-items: center;
  background: #252525;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
}

.cart-quantity__btn {
  width: 34px;
  height: 34px;
  border: none;
  background: #333;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cart-quantity__btn:disabled,
.cart-quantity__input:disabled,
.cart-checkout-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.cart-quantity__btn:hover {
  background: #ffff00;
  color: #000;
}

.cart-quantity__btn i {
  font-size: 11px;
}

.cart-quantity__input {
  width: 40px;
  height: 34px;
  border: none;
  background: transparent;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.cart-quantity__input:focus {
  outline: none;
}

.cart-item__remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: #ff5b5b;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.cart-item__remove:hover {
  color: #ff7b7b;
}

.cart-item-subtotal,
.cart-item__total {
  text-align: right;
  min-width: 122px;
}

.subtotal-label {
  display: block;
  color: #9a9a9a;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.subtotal-amount,
.item-total {
  color: #ffff00;
  font-size: 22px;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(255, 255, 0, 0.22);
}

.cart-sidebar-column {
  position: sticky;
  top: var(--dw-sticky-right-offset, 120px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card,
.cart-totals {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
}

.sidebar-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid #333;
  background: linear-gradient(135deg, #1f1f1f 0%, #1a1a1a 100%);
}

.sidebar-card-header i {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 0, 0.12);
  color: #ffff00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.sidebar-card-header h3 {
  margin: 0;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-card-body {
  padding: 18px;
}

.alignment-description {
  margin: 0 0 12px;
  color: #969696;
  font-size: 13px;
}

.alignment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #252525;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 13px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.alignment-option:last-child {
  margin-bottom: 0;
}

.alignment-option:hover {
  border-color: #3e3e3e;
}

.alignment-option.selected {
  border-color: #ffff00;
  background: rgba(255, 255, 0, 0.08);
}

.alignment-option input[type='radio'] {
  display: none;
}

.alignment-option-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.alignment-radio {
  width: 18px;
  height: 18px;
  border: 2px solid #606060;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.alignment-radio::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffff00;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.alignment-option.selected .alignment-radio {
  border-color: #ffff00;
}

.alignment-option.selected .alignment-radio::after {
  opacity: 1;
  transform: scale(1);
}

.alignment-option-label {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.alignment-option-price {
  color: #ffff00;
  font-size: 13px;
  font-weight: 700;
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.summary-row,
.cart-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
}

.summary-row.total,
.cart-totals__row--total {
  border-top: 2px solid #333;
  border-bottom: none;
  margin-top: 4px;
  padding-top: 14px;
  padding-bottom: 0;
}

.summary-row-label,
.cart-totals__label {
  color: #a8a8a8;
  font-size: 14px;
}

.summary-row-label i {
  color: #ffff00;
  margin-right: 6px;
}

.summary-row-value,
.cart-totals__value {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

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

.summary-row.total .summary-row-value {
  color: #ffff00;
  font-size: 24px;
  font-weight: 800;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-checkout,
.cart-checkout-btn {
  width: 100%;
  max-width: 100%;
  border: none;
  border-radius: 10px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #ffff00 0%, #ffd700 100%);
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 14px;
  font-weight: 800;
  transition: all 0.2s ease;
  box-sizing: border-box;
  min-width: 0;
}

.btn-checkout:hover,
.cart-checkout-btn:hover {
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 255, 0, 0.26);
}

.btn-continue,
.cart-continue {
  width: 100%;
  border: 2px solid #444;
  border-radius: 10px;
  padding: 12px 18px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-continue:hover,
.cart-continue:hover {
  color: #ffff00;
  border-color: #ffff00;
}

.payment-methods-available {
  text-align: center;
  padding-top: 14px;
}

.payment-methods-available p {
  margin: 0 0 12px;
  color: #8d8d8d;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-methods-available p i {
  color: #4caf50;
  margin-right: 5px;
}

.payment-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.payment-logo {
  height: 18px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  opacity: 1;
}

.payment-logo--visa,
.payment-logo--mastercard {
  height: 17px;
}

.payment-logo--payflex {
  height: 20px;
}

.payment-logo--payfast {
  height: 18px;
  background: #ffffff;
  border-radius: 5px;
  padding: 2px 5px;
}

.empty-cart-card,
.cart-empty {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 56px 40px;
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.empty-cart-icon,
.cart-empty__icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 0, 0.12);
}

.empty-cart-icon i,
.cart-empty__icon i {
  color: #ffff00;
  font-size: 34px;
}

.empty-cart-card h2,
.cart-empty h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 24px;
}

.empty-cart-card p,
.cart-empty p {
  margin: 0 0 24px;
  color: #8f8f8f;
}

.cart-message {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.cart-message--success {
  background: rgba(76, 175, 80, 0.18);
  color: #b9efba;
  border: 1px solid rgba(76, 175, 80, 0.35);
}

.cart-message--error {
  background: rgba(244, 67, 54, 0.18);
  color: #ffc4c4;
  border: 1px solid rgba(244, 67, 54, 0.35);
}

@media (max-width: 1100px) {
  .cart-main-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .cart-container {
    padding: 0 20px;
  }
}

@media (max-width: 900px) {
  .cart-main-layout {
    grid-template-columns: 1fr;
  }

  .cart-sidebar-column {
    position: static !important;
    top: auto !important;
    align-self: auto !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .cart-page-header h1 {
    font-size: 24px;
  }

  .cart-item {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 14px;
  }

  .cart-item-image,
  .cart-item__image {
    width: 84px;
    height: 84px;
  }

  .subtotal-amount,
  .item-total {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .cart-container {
    padding: 0 14px;
  }

  .cart-page .dw-process-wrap {
    padding-top: 10px !important;
    margin-bottom: 14px;
  }

  .cart-sidebar-column {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 76px 1fr;
  }

  .cart-item-subtotal,
  .cart-item__total {
    grid-column: 1 / -1;
    text-align: left;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #333;
  }

  .subtotal-label {
    display: inline-block;
    margin: 0 10px 0 0;
  }

  .subtotal-amount,
  .item-total {
    font-size: 18px;
  }

  .cart-page-header {
    padding: 20px 16px;
  }

  .cart-page-header h1 {
    font-size: 20px;
  }
}

@media (max-width: 560px) {
  .cart-page-wrapper {
    padding-top: 16px;
  }

  .cart-items,
  .sidebar-card {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cart-items {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .sidebar-card-body {
    padding: 14px 12px;
  }

  .cart-item {
    padding: 12px;
    gap: 12px;
  }

  .cart-item__name {
    font-size: 13px;
  }

  .cart-quantity__btn {
    width: 30px;
    height: 30px;
  }

  .cart-quantity__input {
    width: 36px;
    height: 30px;
    font-size: 13px;
  }

  .summary-row.total .summary-row-value {
    font-size: 20px;
  }

  .btn-checkout,
  .cart-checkout-btn {
    padding: 13px 16px;
    font-size: 13px;
  }

  .btn-continue,
  .cart-continue {
    padding: 11px 14px;
    font-size: 12px;
  }

  .empty-cart-card,
  .cart-empty {
    padding: 42px 22px;
  }

  .empty-cart-card h2,
  .cart-empty h2 {
    font-size: 21px;
  }
}
