/* Modern Cart Dropdown Styling */

/* Cart Button */
.modern-cart-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #343a40;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

.modern-cart-button:hover {
  background-color: #212529;
  color: white;
  text-decoration: none;
}

/* Make sure the dropdown works with the anchor tag */
.dropdown > a[data-bs-toggle="dropdown"] {
  display: inline-block;
}

.modern-cart-button i {
  font-size: 18px;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Cart Dropdown */
.modern-cart-dropdown {
  width: 350px;
  padding: 15px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

/* Cart Header */
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
}

.cart-header h6 {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
}

.cart-header .cart-count-badge {
  background-color: #dc3545;
  color: white;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Cart Items */
.cart-items {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f1f1;
}

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

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 12px;
}

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

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 3px;
  font-size: 14px;
  color: #212529;
  text-decoration: none;
  display: block;
}

.cart-item-name:hover {
  color: #007bff;
}

.cart-item-meta {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 3px;
}

.cart-item-price {
  font-weight: 600;
  font-size: 14px;
  color: #212529;
}

.cart-item-quantity {
  font-size: 13px;
  color: #6c757d;
  margin-right: 10px;
}

.cart-item-remove {
  background-color: transparent;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 5px;
  transition: all 0.2s ease;
}

.cart-item-remove:hover {
  color: #c82333;
}

/* Cart Totals */
.cart-totals {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 15px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 14px;
}

.cart-total-row:last-child {
  margin-bottom: 0;
  padding-top: 5px;
  border-top: 1px dashed #dee2e6;
  font-weight: 600;
}

/* Cart Actions */
.cart-actions {
  display: flex;
  gap: 10px;
}

.cart-action-button {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cart-view {
  background-color: #f8f9fa;
  color: #212529;
  border: 1px solid #dee2e6;
}

.cart-view:hover {
  background-color: #e9ecef;
}

.cart-checkout {
  background-color: #007bff;
  color: white;
  border: 1px solid #007bff;
}

.cart-checkout:hover {
  background-color: #0069d9;
  border-color: #0062cc;
}

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

.empty-cart i {
  font-size: 40px;
  color: #dee2e6;
  margin-bottom: 10px;
}

.empty-cart p {
  color: #6c757d;
  margin-bottom: 15px;
}

.continue-shopping {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
}

.continue-shopping:hover {
  background-color: #0069d9;
}
