/*--------------------------------------------------------------
# Checkout Page Styles
--------------------------------------------------------------*/
.checkout-cart {
  background: var(--surface-color);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
}

.cart-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--heading-color);
}

.btn-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-link:hover {
  color: color-mix(in srgb, var(--accent-color), black 20%);
}

.cart-item {
  display: flex;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
  transition: all 0.3s ease;
}

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

.cart-item:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
  padding-left: 15px;
  padding-right: 15px;
  border-radius: 10px;
}

.cart-item-image {
  flex: 0 0 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.cart-item-info {
  flex: 1;
  min-width: 200px;
}

.cart-item-category {
  display: inline-block;
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: var(--accent-color);
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cart-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 8px 0;
  color: var(--heading-color);
}

.cart-item-seller {
  font-size: 0.9rem;
  color: var(--default-color);
  opacity: 0.8;
  margin: 5px 0;
}

.cart-item-discount {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 5px;
}

.cart-item-quantity {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-item-quantity label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--heading-color);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 8px;
  padding: 3px;
  background: white;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--surface-color);
  color: var(--accent-color);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--accent-color);
  color: white;
}

.qty-input {
  width: 50px;
  height: 30px;
  border: none;
  text-align: center;
  font-weight: 600;
  color: var(--heading-color);
  background: transparent;
}

.qty-input:focus {
  outline: none;
}

.cart-item-price {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  min-width: 100px;
}

.price-label {
  font-size: 0.8rem;
  color: var(--default-color);
  opacity: 0.7;
  margin-bottom: 5px;
}

.price-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading-color);
}

.price-old {
  font-size: 1rem;
  color: var(--default-color);
  opacity: 0.6;
  text-decoration: line-through;
  margin-right: 8px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
}

.btn-remove {
  width: 40px;
  height: 40px;
  border: none;
  background: color-mix(in srgb, #dc3545, transparent 90%);
  color: #dc3545;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove:hover {
  background: #dc3545;
  color: white;
}

.checkout-form,
.checkout-payment {
  background: var(--surface-color);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--heading-color);
  display: flex;
  align-items: center;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.payment-option {
  position: relative;
}

.payment-radio {
  position: absolute;
  opacity: 0;
}

.payment-label {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-radio:checked + .payment-label {
  border-color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.payment-icon {
  flex: 0 0 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-color);
}

.payment-info {
  flex: 1;
}

.payment-info h5 {
  margin: 0 0 5px;
  font-size: 1.1rem;
  font-weight: 600;
}

.payment-info p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.payment-badges {
  display: flex;
  gap: 8px;
}

.payment-badges span {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-visa {
  background: #1a1f71;
  color: white;
}

.badge-mastercard {
  background: #eb001b;
  color: white;
}

.order-summary {
  background: var(--surface-color);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.sticky-summary {
  position: sticky;
  top: 100px;
}

.summary-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--heading-color);
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: var(--default-color);
}

.summary-value {
  font-weight: 600;
  color: var(--heading-color);
}

.summary-value.discount {
  color: #28a745;
}

.summary-divider {
  height: 2px;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  margin: 20px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
  border-radius: 10px;
  margin-bottom: 15px;
}

.summary-total span:first-child {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
}

.total-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
}

.promo-input-group {
  display: flex;
  gap: 10px;
}

.promo-input-group .form-control {
  flex: 1;
}

.btn-apply {
  padding: 0 20px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-apply:hover {
  background: color-mix(in srgb, var(--accent-color), black 15%);
}

.btn-checkout-primary {
  padding: 15px 30px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-checkout-primary:hover {
  background: color-mix(in srgb, var(--accent-color), black 15%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px
    color-mix(in srgb, var(--accent-color), transparent 60%);
}

.security-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: white;
  border-radius: 10px;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--default-color);
}

.security-item i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.delivery-info {
  padding: 20px;
  background: white;
  border-radius: 10px;
}

.delivery-info h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--heading-color);
}

.delivery-date {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.delivery-note {
  font-size: 0.85rem;
  color: var(--default-color);
  opacity: 0.8;
  margin: 0;
}

.contact-support {
  padding: 20px;
  background: white;
  border-radius: 10px;
}

.contact-support h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--heading-color);
}

.support-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.support-link:hover {
  color: color-mix(in srgb, var(--accent-color), black 20%);
  padding-left: 5px;
}

.trust-section {
  padding: 60px 0;
}

.trust-badge {
  padding: 30px 20px;
  transition: all 0.3s ease;
}

.trust-badge:hover {
  transform: translateY(-5px);
}

.trust-badge i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.trust-badge h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.trust-badge p {
  font-size: 0.9rem;
  color: var(--default-color);
  opacity: 0.8;
  margin: 0;
}

@media (max-width: 992px) {
  .sticky-summary {
    position: static;
  }

  .cart-item {
    flex-direction: column;
  }

  .cart-item-image {
    width: 100%;
    height: 200px;
  }

  .cart-item-details {
    flex-direction: column;
  }

  .cart-item-price,
  .cart-item-quantity {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .cart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .checkout-cart,
  .checkout-form,
  .checkout-payment,
  .order-summary {
    padding: 20px;
  }

  .total-value {
    font-size: 1.5rem;
  }
}
