/* Moderne, schlichte Checkout-Styles für JasonB's 3D-Druck Shop */

/* Grundlegende Farbvariablen */
:root {
  /* Hauptfarbschema */
  --primary: #3a86ff;
  --primary-hover: #2a75ef;
  --secondary: #8338ec;
  --accent: #ff006e;
  --success: #38b000;
  --success-hover: #2d9900;
  --error: #d90429;
  
  /* Dark Mode Farben */
  --bg: #121212;
  --bg-accent: #1e1e1e;
  --bg-element: #2a2a2a;
  --text: #f8f9fa;
  --text-secondary: #adb5bd;
  --border: #333333;
  --input-bg: #222222;
}

/* Animation und Übergänge */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

.pulse {
  animation: pulse 1.5s infinite;
}

/* Progress Steps - Stepper Design - KOMPAKTER */
.checkout-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem; /* Reduziert von 2rem */
  padding: 0.25rem; /* Reduziert von 0.5rem */
}

.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 2.25rem; /* Reduziert von 3rem */
  height: 2.25rem; /* Reduziert von 3rem */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-element);
  border: 2px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.3s ease;
  margin-bottom: 0.25rem; /* Reduziert von 0.5rem */
}

.step-circle.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2); /* Reduziert von 5px */
}

.step-circle.completed {
  background-color: var(--success);
  border-color: var(--success);
  color: white;
}

.step-label {
  font-size: 0.75rem; /* Reduziert von 0.875rem */
  color: var(--text-secondary);
  transition: color 0.3s;
}

.step-label.active {
  color: var(--primary);
  font-weight: 600;
}

.step-connector {
  position: absolute;
  top: 1.125rem; /* Angepasst auf die Mitte des kleineren Kreises */
  height: 2px;
  background-color: var(--border);
  width: calc(100% - 2.25rem); /* Angepasst an die kleinere Kreisbreite */
  left: calc(50% + 1.125rem); /* Angepasst an die kleinere Kreisbreite */
  z-index: 0;
}

.step-connector.active {
  background-color: var(--primary);
}

.step-connector.completed {
  background-color: var(--success);
}

/* Checkout Container Styling - KOMPAKTER */
.checkout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0.75rem; /* Reduziert von 2rem 1rem */
}

/* Form Section Styling - KOMPAKTER */
.form-section {
  background-color: var(--bg-accent);
  border-radius: 0.5rem; /* Reduziert von 0.75rem */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* Reduziert von 0 4px 6px */
  margin-bottom: 1rem; /* Reduziert von 1.5rem */
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.form-section:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); /* Reduziert von 0 6px 12px */
}

.form-section-header {
  background-color: rgba(58, 134, 255, 0.1);
  padding: 0.75rem 1rem; /* Reduziert von 1rem 1.5rem */
  border-bottom: 1px solid var(--border);
}

.form-section-header h2 {
  margin: 0;
  display: flex;
  align-items: center;
  color: var(--primary);
  font-size: 1.1rem; /* Reduziert von 1.25rem */
}

.form-section-header i {
  margin-right: 0.5rem; /* Reduziert von 0.75rem */
  color: var(--primary);
}

.form-section-body {
  padding: 1rem; /* Reduziert von 1.5rem */
}

/* Form Elements - KOMPAKTER */
.form-group {
  margin-bottom: 0.75rem; /* Reduziert von 1.25rem */
}

.form-label {
  display: block;
  margin-bottom: 0.25rem; /* Reduziert von 0.5rem */
  font-weight: 500;
  font-size: 0.8rem; /* Reduziert von 0.875rem */
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem; /* Reduziert von 0.75rem 1rem */
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 0.375rem; /* Reduziert von 0.5rem */
  color: var(--text);
  transition: all 0.2s ease;
  font-size: 0.85rem; /* Neues kleineres Font-Size */
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.2); /* Reduziert von 3px */
  outline: none;
}

/* Custom Select Styling - KOMPAKTER */
select.form-input {
  padding-right: 2rem; /* Anpassen für das Dropdown-Icon */
}

/* Checkbox und Radio Styling - KOMPAKTER */
.checkbox-container {
  display: flex;
  align-items: center; /* Geändert von flex-start zu center für bessere Ausrichtung */
  margin: 0.75rem 0; /* Reduziert von 1rem 0 */
}

.checkbox-container input[type="checkbox"] {
  margin-right: 0.5rem;
}

.checkbox-container label {
  font-size: 0.85rem; /* Reduziert von 0.95rem */
}

/* Abweichende Rechnungsadresse - KOMPAKTER */
.billing-section {
  background-color: var(--bg-element);
  border-radius: 0.375rem; /* Reduziert von 0.5rem */
  padding: 0.75rem; /* Reduziert von 1rem */
  margin-top: 0.75rem; /* Reduziert von 1rem */
  border: 1px solid var(--border);
}

.billing-section h3 {
  margin-top: 0;
  margin-bottom: 0.75rem; /* Reduziert von 1rem */
  font-size: 1rem; /* Reduziert von 1.1rem */
}

/* Versand-Optionen - KOMPAKTER */
.shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem; /* Reduziert von 1rem */
  border: 1px solid var(--border);
  border-radius: 0.375rem; /* Reduziert von 0.5rem */
  margin-bottom: 0.75rem; /* Reduziert von 1rem */
  cursor: pointer;
  transition: all 0.2s ease;
}

.shipping-option-details {
  display: flex;
  align-items: center;
}

.shipping-option-icon {
  margin-right: 0.75rem; /* Reduziert von 1rem */
  width: 2rem; /* Reduziert von 2.5rem */
  height: 2rem; /* Reduziert von 2.5rem */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--bg-accent);
  color: var(--text);
}

.shipping-option-info h4 {
  margin: 0;
  font-size: 0.9rem; /* Reduziert von 1rem */
  color: var(--text);
}

.shipping-option-info p {
  margin: 0.15rem 0 0; /* Reduziert von 0.25rem 0 0 */
  font-size: 0.75rem; /* Reduziert von 0.875rem */
  color: var(--text-secondary);
}

/* Zahlungs-Optionen - KOMPAKTER */
.payment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem; /* Reduziert von 1rem */
  border: 1px solid var(--border);
  border-radius: 0.375rem; /* Reduziert von 0.5rem */
  margin-bottom: 0.75rem; /* Reduziert von 1rem */
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-option-details {
  display: flex;
  align-items: center;
}

.payment-option-logo {
  margin-right: 0.75rem;
  width: 3rem; /* Reduziert für kompakteres Design */
  height: 2rem; /* Reduziert für kompakteres Design */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background-color: #fff;
  border-radius: 0.25rem;
}

.payment-option-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.payment-option-info h4 {
  margin: 0;
  font-size: 0.9rem; /* Reduziert von 1rem */
}

.payment-option-info p {
  margin: 0.15rem 0 0; /* Reduziert von 0.25rem */
  font-size: 0.75rem; /* Reduziert von 0.875rem */
}

/* Zusammenfassungs-Box - KOMPAKTER */
.summary-box {
  background-color: var(--bg);
  border-radius: 0.375rem; /* Reduziert von 0.5rem */
  padding: 0.75rem; /* Reduziert von 1.25rem */
  margin: 1rem 0; /* Reduziert von 1.5rem 0 */
  border: 1px solid var(--border);
}

.summary-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem; /* Reduziert von 1rem */
}

.summary-header i {
  margin-right: 0.375rem; /* Reduziert von 0.5rem */
  color: var(--primary);
}

.summary-header h3 {
  margin: 0;
  font-size: 0.95rem; /* Reduziert von 1.1rem */
  color: var(--text);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0; /* Reduziert von 0.5rem 0 */
  font-size: 0.85rem; /* Reduziert von 0.95rem */
}

/* AGB Checkbox - KOMPAKTER */
.terms-checkbox {
  display: flex;
  align-items: flex-start;
  margin: 1rem 0; /* Reduziert von 1.5rem 0 */
}

.terms-checkbox input[type="checkbox"] {
  margin-top: 0.15rem; /* Reduziert von 0.25rem */
  margin-right: 0.5rem; /* Reduziert von 0.75rem */
}

.terms-checkbox label {
  font-size: 0.85rem; /* Reduziert von 0.95rem */
  line-height: 1.4; /* Kompaktere Zeilenhöhe */
  color: var(--text-secondary);
}

/* Navigation Buttons - KOMPAKTER */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem; /* Reduziert von 1rem */
  font-weight: 500;
  padding: 0.5rem 1.25rem; /* Reduziert von 0.75rem 1.5rem */
  border-radius: 0.375rem; /* Reduziert von 0.5rem */
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

/* Back Button Styling */
.btn-back {
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  border: none;
  text-decoration: none;
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
}

.btn-back:hover {
  background-color: #444;
  color: #fff;
}

.btn-back i {
  margin-right: 8px;
  font-size: 0.9em;
}

/* Next and Submit Button Styling */
.btn-next, .btn-submit {
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  border: none;
  text-decoration: none;
  background-color: #4a6da7;
  color: white;
}

.btn-next:hover, .btn-submit:hover {
  background-color: #3a5d97;
}

.btn-next i {
  margin-left: 8px;
  font-size: 0.9em;
}

.btn-submit i {
  margin-right: 8px;
}

/* Disable button transitions during page load */
.no-transition {
  transition: none !important;
}

/* Make sure form controls have proper styling */
button[type="submit"] {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* Mobile optimization for navigation buttons */
@media (max-width: 576px) {
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-back, .btn-next, .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .btn-back {
        order: 2;
    }
    
    .btn-next, .btn-submit {
        order: 1;
    }
}

/* Hidden Class */
.hidden {
  display: none !important;
}

/* Warenkorb Sidebar - KOMPAKTER */
.order-sidebar {
  position: sticky;
  top: 1rem; /* Reduziert von 2rem */
  background-color: var(--bg-accent);
  border-radius: 0.5rem; /* Reduziert von 0.75rem */
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); /* Reduziert von 0 4px 6px */
  border: 1px solid var(--border);
}

.sidebar-header {
  padding: 0.75rem 1rem; /* Reduziert von 1.25rem */
  border-bottom: 1px solid var(--border);
  background-color: rgba(58, 134, 255, 0.05);
}

.sidebar-title {
  margin: 0;
  font-size: 1rem; /* Reduziert von 1.1rem */
  display: flex;
  align-items: center;
  color: var(--text);
}

.sidebar-title i {
  margin-right: 0.5rem; /* Reduziert von 0.75rem */
  color: var(--primary);
}

.sidebar-content {
  padding: 0.75rem; /* Reduziert von 1.25rem */
}

/* Warenkorb Items - KOMPAKTER */
.cart-item-list {
  max-height: 250px; /* Reduziert von 320px */
  overflow-y: auto;
  margin-bottom: 1rem; /* Reduziert von 1.5rem */
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg);
}

.cart-item-list::-webkit-scrollbar {
  width: 4px; /* Reduziert von 6px */
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0; /* Reduziert von 0.75rem 0 */
  border-bottom: 1px solid var(--border);
}

.cart-item-image-container {
  position: relative;
  flex-shrink: 0;
  margin-right: 0.75rem; /* Reduziert von 1rem */
}

.cart-item-image {
  width: 3rem; /* Reduziert von 3.5rem */
  height: 3rem; /* Reduziert von 3.5rem */
  object-fit: cover;
  border-radius: 0.25rem; /* Reduziert von 0.375rem */
  background-color: var(--bg);
}

.cart-item-badge {
  position: absolute;
  top: -0.35rem; /* Reduziert von -0.5rem */
  right: -0.35rem; /* Reduziert von -0.5rem */
  width: 1.1rem; /* Reduziert von 1.25rem */
  height: 1.1rem; /* Reduziert von 1.25rem */
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  font-size: 0.7rem; /* Reduziert von 0.75rem */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.cart-item-info {
  flex-grow: 1;
  min-width: 0;
}

.cart-item-title {
  font-weight: 500;
  margin: 0 0 0.15rem; /* Reduziert von 0.25rem */
  font-size: 0.85rem; /* Reduziert von 0.95rem */
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-options {
  font-size: 0.75rem; /* Reduziert von 0.8125rem */
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  margin-left: 0.35rem; /* Reduziert von 0.5rem */
  font-size: 0.85rem; /* Reduziert von 0.95rem */
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

/* Übersicht der Kosten - KOMPAKTER */
.cost-summary {
  margin-top: 1rem; /* Reduziert von 1.5rem */
}

.cost-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem; /* Reduziert von 0.75rem */
  font-size: 0.85rem; /* Reduziert von 0.95rem */
}

.cost-row-total {
  font-weight: 600;
  color: var(--text);
  padding-top: 0.5rem; /* Reduziert von 0.75rem */
  margin-top: 0.5rem; /* Reduziert von 0.75rem */
  border-top: 1px solid var(--border);
  font-size: 1rem; /* Reduziert von 1.1rem */
  text-align: center;
}

.cost-row-total .cost-label,
.cost-row-total .cost-value {
  text-align: center;
  display: block;
  width: 100%;
}

/* Trust Badges - KOMPAKTER */
.trust-badges {
  margin-top: 1rem; /* Reduziert von 1.5rem */
  border-top: 1px solid var(--border);
  padding-top: 1rem; /* Reduziert von 1.5rem */
}

.trust-badge {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem; /* Reduziert von 1rem */
  font-size: 0.8rem; /* Reduziert von 0.875rem */
  color: var(--text-secondary);
}

.trust-badge:last-child {
  margin-bottom: 0;
}

.trust-badge i {
  width: 1.25rem; /* Reduziert von 1.5rem */
  margin-right: 0.5rem; /* Reduziert von 0.75rem */
  font-size: 0.9rem; /* Reduziert von 1rem */
}

/* Zahlungsanbieter Icons - KOMPAKTER */
.payment-icons {
  margin-top: 1rem;
  text-align: center;
}

.payment-icon-wrapper {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
}

.payment-provider {
  height: 1.25rem; /* Reduziert für kompakteres Design */
  background-color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.payment-methods-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem; /* Reduziert für kompakteres Design */
}

.payment-methods-grid img {
  height: 1.25rem; /* Reduziert für kompakteres Design */
  width: auto;
}

/* Fehlermeldungen - KOMPAKTER */
.alert {
  padding: 0.75rem; /* Reduziert von 1rem */
  border-radius: 0.375rem; /* Reduziert von 0.5rem */
  margin-bottom: 1rem; /* Reduziert von 1.5rem */
  position: relative;
}

.alert-danger {
  background-color: rgba(217, 4, 41, 0.1);
  border: 1px solid rgba(217, 4, 41, 0.3);
}

.alert-icon {
  display: flex;
  align-items: flex-start;
}

.alert-icon i {
  color: var(--error);
  margin-right: 0.5rem; /* Reduziert von 0.75rem */
  margin-top: 0.15rem; /* Reduziert von 0.25rem */
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

.alert-title {
  color: var(--error);
  font-weight: 600;
  margin-bottom: 0.35rem; /* Reduziert von 0.5rem */
  font-size: 0.9rem; /* Neues kleineres Font-Size */
}

.alert-list {
  margin: 0;
  padding-left: 1rem; /* Reduziert von 1.25rem */
  color: var(--text);
  font-size: 0.85rem; /* Neues kleineres Font-Size */
}

/* Grid und Spalten überschreiben - KOMPAKTER */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.5rem; /* Reduziert von -1rem */
  margin-left: -0.5rem; /* Reduziert von -1rem */
}

.col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding-right: 0.5rem; /* Reduziert von 1rem */
  padding-left: 0.5rem; /* Reduziert von 1rem */
}

.col-md-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
  padding-right: 0.5rem; /* Reduziert von 1rem */
  padding-left: 0.5rem; /* Reduziert von 1rem */
}

/* Responsive Design für Checkout - KOMPAKTER */
@media (max-width: 768px) {
  .col-md-4, .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .checkout-progress {
    flex-wrap: wrap;
    justify-content: space-around;
  }
  
  .step-connector {
    display: none; /* Verbindungslinien ausblenden auf kleinen Bildschirmen */
  }
  
  .form-navigation {
    flex-direction: column;
    gap: 0.75rem; /* Reduziert von 1rem */
  }
  
  .btn {
    width: 100%;
  }
  
  .btn-back {
    order: 2;
  }
  
  .btn-next, .btn-submit {
    order: 1;
  }
  
  .order-sidebar {
    margin-top: 1rem;
    position: static;
  }
  
  /* Formularfelder für mobile Geräte optimieren */
  .form-row {
    flex-direction: column;
  }
  
  .form-group {
    padding: 0;
  }
}

/* Besonders kompakte Darstellung für sehr kleine Bildschirme */
@media (max-width: 480px) {
  .checkout-container {
    padding: 0.5rem;
  }
  
  .sidebar-content {
    padding: 0.5rem;
  }
  
  .form-section-body {
    padding: 0.75rem;
  }
  
  .cart-item-image {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Payment methods grid kompakter machen */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2rem, 1fr));
  gap: 0.25rem;
}

/* Kompaktere Form-Reihen */
.form-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.25rem;
  margin-left: -0.25rem;
}

.form-row > .form-group {
  padding-right: 0.25rem;
  padding-left: 0.25rem;
}

/* Kompaktere Input-Höhe */
.form-input {
  height: 2.25rem;
  line-height: 1.25;
}

/* Felder kompakter */
.invalid-feedback {
  font-size: 0.7rem;
  margin-top: 0.15rem;
}

/* Generell kleinere Abstände */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

p {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Buttons kompakter */
.btn-link {
  font-size: 0.8rem;
  padding: 0;
}

/* Rechnungsadresse Sektion kompakter */
.billing-section {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Formular insgesamt kompakter */
#checkout-form {
  margin-bottom: 1rem;
}

/* Mollie Payment Badge */
.payment-badge-container {
  margin-top: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.mollie-badge {
  max-width: 300px; /* Increased from 200px to 300px */
  height: auto;
}

/* Ende der kompaktere Styles */

/* Warenkorb Artikel Entfernen Button Styling */
.cart-remove, .mini-cart-item-remove {
    color: var(--error);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(217, 4, 41, 0.1);
    margin-left: 5px;
}

.cart-remove:hover, .mini-cart-item-remove:hover {
    color: #b5001e;
    background-color: rgba(217, 4, 41, 0.2);
    transform: scale(1.1);
}

.remove-file {
    background-color: var(--error);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.remove-file:hover {
    background-color: #b5001e;
    transform: scale(1.1);
}

/* Mini-Cart Button Styling */
.mini-cart-item-remove {
    color: var(--error);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(217, 4, 41, 0.1);
    margin-left: auto; /* Push to the right side */
    padding: 0;
}

.mini-cart-item-remove:hover {
    color: #fff; /* White text on hover */
    background-color: var(--error);
    transform: scale(1.1);
}

/* Fix for mini-cart appearing on hover */
.cart-icon {
    position: relative;
}

.mini-cart {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    width: 320px;
    background-color: var(--bg-accent);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

/* Show mini-cart on parent hover */
.cart-icon:hover .mini-cart {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Add a small invisible area to prevent the cart from closing when moving mouse to cart */
.cart-icon::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    /* background-color: red; Uncomment for debugging */
    opacity: 0;
}
