/* Professional Shopping Cart Styles */

/* Cart Container */
.cart-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 15px;
}

/* Cart Header */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}

.cart-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: #212121;
  margin: 0;
}

.cart-item-count {
  font-size: 16px;
  color: #878787;
  font-weight: 400;
}

/* Cart Items Section */
.cart-items-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 24px;
}

.cart-item {
  padding: 24px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

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

.cart-item:hover {
  background-color: #fafafa;
}

/* Cart Item Image */
.cart-item-image-container {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  padding: 8px;
}

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

/* Product Details */
.product-details {
  padding-left: 16px;
}

.product-details h6 {
  font-size: 16px;
  font-weight: 500;
  color: #212121;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-details h6 a {
  color: #212121;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-details h6 a:hover {
  color: #2874f0;
}

.product-details small {
  font-size: 13px;
  color: #878787;
  display: block;
  margin-bottom: 8px;
}

.price-info {
  margin-top: 8px;
}

.price-info .text-danger {
  font-size: 18px;
  font-weight: 600;
  color: #2874f0;
}

.price-info .text-muted {
  font-size: 14px;
  margin-left: 8px;
}

/* Quantity Controls */
.quantity-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.quantity-controls .form-label {
  font-size: 13px;
  color: #878787;
  margin: 0;
  font-weight: 500;
}

.quantity-controls .input-group {
  width: 120px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.quantity-controls .input-group .btn {
  border: none;
  background: #f0f0f0;
  color: #212121;
  font-weight: 600;
  padding: 6px 12px;
  transition: all 0.2s ease;
}

.quantity-controls .input-group .btn:hover {
  background: #e0e0e0;
  color: #2874f0;
}

.quantity-controls .input-group .form-control {
  border: none;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  text-align: center;
  font-weight: 600;
  padding: 6px 8px;
}

.quantity-controls .input-group .form-control:focus {
  box-shadow: none;
  border-color: #2874f0;
}

/* Item Total */
.item-total {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.item-total span {
  font-size: 18px;
  font-weight: 600;
  color: #212121;
}

/* Item Actions */
.item-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
}

.item-actions .btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.item-actions .btn-outline-danger {
  border: 1px solid #ff6161;
  color: #ff6161;
}

.item-actions .btn-outline-danger:hover {
  background: #ff6161;
  color: #fff;
  transform: scale(1.05);
}

.item-actions .btn-outline-secondary {
  border: 1px solid #e0e0e0;
  color: #878787;
}

.item-actions .btn-outline-secondary:hover {
  background: #f0f0f0;
  color: #2874f0;
  border-color: #2874f0;
  transform: scale(1.05);
}

.item-actions .btn i {
  font-size: 16px;
}

/* Cart Actions */
.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.cart-actions .btn {
  padding: 10px 24px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.cart-actions .btn-outline-secondary {
  border: 1px solid #e0e0e0;
  color: #212121;
}

.cart-actions .btn-outline-secondary:hover {
  background: #f0f0f0;
  border-color: #c0c0c0;
}

.cart-actions .btn-outline-danger {
  border: 1px solid #ff6161;
  color: #ff6161;
}

.cart-actions .btn-outline-danger:hover {
  background: #ff6161;
  color: #fff;
}

/* Order Summary */
.order-summary-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: sticky;
  top: 20px;
}

.order-summary-card .card-header {
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 20px;
}

.order-summary-card .card-header h5 {
  font-size: 18px;
  font-weight: 600;
  color: #212121;
  margin: 0;
}

.order-summary-card .card-body {
  padding: 20px;
}

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

.order-summary-row .summary-label {
  color: #000000;
  font-weight: 700;
}

.order-summary-row .summary-value {
  color: #212121;
  font-weight: 500;
}

.order-summary-row.total {
  border-top: 2px solid #e0e0e0;
  margin-top: 12px;
  padding-top: 16px;
}

.order-summary-row.total .summary-label {
  font-size: 18px;
  font-weight: 700;
  color: #000000;
}

.order-summary-row.total .summary-value {
  font-size: 20px;
  font-weight: 700;
  color: #2874f0;
}

.order-summary-row.shipping-free {
  color: #26a69a;
}

.shipping-note {
  background: #e8f5e9;
  border-radius: 4px;
  padding: 10px;
  margin: 12px 0;
}

.shipping-note small {
  color: #26a69a;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkout-button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  background: #ffc107 !important;
  border: none !important;
  color: #000 !important;
  border-radius: 4px;
  transition: all 0.2s ease;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
}

.checkout-button:hover {
  background: #ffb300 !important;
  color: #000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.checkout-button i {
  color: #000 !important;
}

.security-note {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: #878787;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.security-note i {
  color: #26a69a;
}

/* Trust Badges */
.trust-badges-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-top: 16px;
}

.trust-badges-card h6 {
  font-size: 16px;
  font-weight: 600;
  color: #212121;
  margin-bottom: 16px;
}

.trust-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #212121;
}

.trust-feature-item i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.trust-feature-item i.text-success {
  color: #26a69a;
}

.trust-feature-item i.text-primary {
  color: #2874f0;
}

/* Empty Cart */
.empty-cart {
  text-align: center;
  padding: 60px 20px;
}

.empty-cart i {
  font-size: 80px;
  color: #e0e0e0;
  margin-bottom: 24px;
}

.empty-cart h3 {
  font-size: 24px;
  font-weight: 600;
  color: #212121;
  margin-bottom: 12px;
}

.empty-cart p {
  font-size: 16px;
  color: #878787;
  margin-bottom: 24px;
}

.empty-cart .btn {
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 992px) {
  .cart-item {
    padding: 16px;
  }

  .cart-item-image-container {
    height: 120px;
  }

  .product-details {
    padding-left: 12px;
  }

  .product-details h6 {
    font-size: 14px;
  }

  .quantity-controls .input-group {
    width: 100px;
  }

  .item-actions .btn {
    width: 36px;
    height: 36px;
  }

  .order-summary-card {
    position: relative;
    top: 0;
    margin-top: 24px;
  }
}

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

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

  .cart-item {
    padding: 12px;
  }

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

  .cart-item-image-container {
    width: 100%;
    height: 200px;
    margin-bottom: 12px;
  }

  .product-details {
    padding-left: 0;
    margin-bottom: 12px;
  }

  .quantity-controls {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .item-total {
    justify-content: flex-start;
    margin-bottom: 12px;
  }

  .item-actions {
    flex-direction: row;
    justify-content: flex-start;
  }

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

  .cart-actions .btn {
    width: 100%;
  }
}

/* Alignment Fixes */
.cart-item .row {
  align-items: center;
}

.cart-item .col-md-2,
.cart-item .col-md-4 {
  display: flex;
  align-items: center;
}

.cart-item .col-md-2:first-child {
  justify-content: center;
}

.cart-item .col-md-2:last-child {
  justify-content: center;
}

/* Improved spacing */
.cart-item + .cart-item {
  border-top: 1px solid #f0f0f0;
}

