/* Checkout Basket Page Styles */

.checkout-basket-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 48px 20px;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Basket Section */
.basket-section {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.08) 0%, rgba(107, 114, 128, 0.02) 100%);
  border: 1px solid rgba(107, 114, 128, 0.2);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.basket-section:hover {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.12) 0%, rgba(107, 114, 128, 0.04) 100%);
  border-color: rgba(107, 114, 128, 0.3);
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #f1f5f9;
  letter-spacing: -0.6px;
  font-family: 'Outfit', sans-serif;
}

/* Basket Items */
.basket-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.basket-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(107, 114, 128, 0.15);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.basket-item:hover {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.08) 0%, rgba(107, 114, 128, 0.02) 100%);
  border-color: rgba(107, 114, 128, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.item-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.item-info {
  flex: 1;
}

.item-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #f1f5f9;
  font-family: 'Outfit', sans-serif;
}

.item-title a {
  color: #f1f5f9;
  text-decoration: none;
  transition: all 0.3s ease;
}

.item-title a:hover {
  color: #cbd5e1;
}

.item-options {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.option-name {
  font-weight: 500;
}

.option-value {
  color: rgba(255, 255, 255, 0.8);
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px;
  width: fit-content;
}

.btn-quantity {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 16px;
  transition: all 0.2s;
}

.btn-quantity:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-primary, #fff);
}

.btn-quantity:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.quantity-input {
  width: 45px;
  height: 32px;
  background: transparent;
  border: none;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input[type=number] {
  -moz-appearance: textfield;
}

.btn-remove {
  padding: 8px;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
}

.btn-remove:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  transform: scale(1.1);
  color: #ff5555;
}

.btn-remove svg {
  transition: all 0.3s ease;
}

.item-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary, #fff);
  text-align: right;
}

/* Coupon Section */
.coupon-section {
  margin-top: 8px;
}

.coupon-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coupon-input-group {
  display: flex;
  gap: 12px;
}

.coupon-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.coupon-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.coupon-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.btn-coupon {
  padding: 10px 20px;
  background: rgba(107, 114, 128, 0.1);
  color: #cbd5e1;
  border: 1px solid rgba(107, 114, 128, 0.5);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-coupon:hover {
  background: rgba(107, 114, 128, 0.2);
  color: #f1f5f9;
  border-color: rgba(107, 114, 128, 0.7);
}

.coupon-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 6px;
  color: #10b981;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Checkout Summary Sidebar */
.checkout-summary {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.1) 0%, rgba(107, 114, 128, 0.03) 100%);
  border: 1px solid rgba(107, 114, 128, 0.25);
  border-radius: 16px;
  padding: 32px 28px;
  backdrop-filter: blur(25px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 24px 0;
  color: #f1f5f9;
  letter-spacing: -0.6px;
  font-family: 'Outfit', sans-serif;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.summary-label {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.summary-value {
  color: #fff;
  font-weight: 600;
}

.summary-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  margin: 8px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 14px;
}

.summary-price {
  font-size: 24px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1;
}

.btn-checkout-primary {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.15) 0%, rgba(107, 114, 128, 0.08) 100%);
  color: #f1f5f9;
  border: 1px solid rgba(107, 114, 128, 0.4);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.4px;
  font-family: 'Outfit', sans-serif;
}

.btn-checkout-primary:hover {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.25) 0%, rgba(107, 114, 128, 0.15) 100%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(107, 114, 128, 0.4);
  border-color: rgba(107, 114, 128, 0.6);
}

.btn-checkout-primary:active {
  transform: translateY(-1px);
}

.btn-continue-shopping {
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  color: #cbd5e1;
  border: 1.5px solid rgba(107, 114, 128, 0.3);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  font-family: 'Outfit', sans-serif;
}

.btn-continue-shopping:hover {
  background: rgba(107, 114, 128, 0.08);
  border-color: rgba(107, 114, 128, 0.5);
  color: #f1f5f9;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 960px) {
  .checkout-basket-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .checkout-summary {
    position: relative;
    top: auto;
    order: -1;
  }

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

  .item-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .checkout-basket-container {
    padding: 20px 16px;
  }

  .basket-section {
    padding: 16px;
  }

  .coupon-input-group {
    flex-direction: column;
  }

  .btn-coupon {
    width: 100%;
  }

  .summary-price {
    font-size: 20px;
  }
}
