/* Warenkorb Icon mit Zähler */
.cart-icon-container {
  position: relative;
  cursor: pointer;
}

.cart-counter {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #000 !important; /* Always black */
  color: #fff !important; /* Always white text */
  font-size: 11px;
  font-family: 'Agency FB', sans-serif;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Warenkorb Überlagerung */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Warenkorb Container */
.cart-container {
  position: fixed;
  top: 0;
  right: -380px;
  width: 380px;
  height: 100%;
  background-color: #fff;
  z-index: 300;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-container.active {
  right: 0;
}

/* Warenkorb Header */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.cart-title {
  font-size: 24px;
  text-transform: uppercase;
  font-weight: 200;
  color: #000 !important; /* Always black text */
}

.cart-close {
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
  color: #000 !important; /* Always black */
}

.cart-close:hover {
  color: #aaa;
}

/* Warenkorb Items Container */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Leerer Warenkorb */
.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 20px;
}

.empty-cart-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-cart-message {
  font-size: 20px;
  font-weight: 200;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #000 !important; /* Always black text */
}

.continue-shopping {
  display: inline-block;
  padding: 10px 15px;
  background-color: #000 !important; /* Always black */
  color: #fff !important; /* Always white text */
  text-transform: uppercase;
  font-size: 14px;
  transition: background-color 0.2s;
}

.continue-shopping:hover {
  background-color: #333 !important; /* Dark gray on hover */
}

/* Warenkorb Item */
.cart-item {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.cart-item-image {
  width: 80px;
  height: 100px;
  background-color: #f8f8f8;
  margin-right: 15px;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 16px;
  margin-bottom: 4px;
  color: #000 !important; /* Always black text */
}

.cart-item-variants {
  font-size: 12px;
  color: #777;
  margin-bottom: 3px;
  font-family: 'Agency FB', sans-serif;
}

.cart-item-price {
  font-family: 'Agency FB', sans-serif;
  font-size: 16px;
  color: #000 !important; /* Always black text */
}

.cart-item-actions {
  display: flex;
  align-items: center;
  margin-top: 5px;
}

.quantity-control {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.quantity-btn {
  width: 24px;
  height: 24px;
  background-color: transparent;
  border: 1px solid #ddd;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.quantity-input {
  width: 30px;
  height: 24px;
  border: 1px solid #ddd;
  border-left: none;
  border-right: none;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
}

.remove-item {
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.7;
  color: #000 !important; /* Always black */
}

.remove-item:hover {
  opacity: 1;
}

/* Warenkorb Footer */
.cart-footer {
  padding: 20px;
  border-top: 1px solid #eee;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 16px;
}

.subtotal-label {
  text-transform: uppercase;
  color: #000 !important; /* Always black text */
}

.subtotal-price {
  font-family: 'Agency FB', sans-serif;
  font-size: 18px;
  color: #000 !important; /* Always black text */
}

.checkout-button {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #000 !important; /* Always black */
  color: #fff !important; /* Always white text */
  text-align: center;
  text-transform: uppercase;
  font-size: 16px;
  margin-bottom: 10px;
  transition: background-color 0.2s;
}

.checkout-button:hover {
  background-color: #333 !important; /* Dark gray on hover */
}

.continue-shopping-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: transparent;
  border: 1px solid #000 !important; /* Always black border */
  color: #000 !important; /* Always black text */
  text-align: center;
  text-transform: uppercase;
  font-size: 14px;
  transition: background-color 0.2s, color 0.2s;
}

.continue-shopping-btn:hover {
  background-color: #f5f5f5;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .cart-container {
    width: 100%;
    right: -100%;
  }
  
  .cart-item {
    padding: 10px 0;
  }
  
  .cart-item-image {
    width: 70px;
    height: 90px;
  }
  
  .cart-item-title {
    font-size: 14px;
  }
  
  .cart-item-price {
    font-size: 14px;
  }
  
  .quantity-btn, .quantity-input {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }
  
  .quantity-input {
    width: 25px;
  }
}

/* Varianten-Auswahl Styles für Produktseite */
.product-variants {
  margin-top: 10px;
}

.variant-group {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.color-select, .size-select {
  flex: 1;
  padding: 5px;
  border: 1px solid #ddd;
  font-family: 'Oswald', sans-serif;
  font-weight: 200;
  font-size: 14px;
  background-color: white;
  cursor: pointer;
}

/* Add to Cart Button Styles */
.add-to-cart-btn {
  width: 100%;
  padding: 8px 0;
  background-color: transparent;
  border: 1px solid #000 !important; /* Always black border */
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  font-weight: 200;
  font-size: 14px;
  margin-top: 10px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.add-to-cart-btn:hover {
  background-color: #000 !important; /* Always black on hover */
  color: #fff !important; /* Always white text on hover */
}