#cart-toggle {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

#cart-toggle .cart-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 50%;
  padding: 4px;
  line-height: 1;
  text-align: center;
  box-shadow: 0 0 0 2px var(--white-color);
  width: 10px;
  height: 10px;
}

#mini-cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 500px;
  height: 100%;
  background-color: var(--white-color);
  background-image: url('http://sancti.local/wp-content/uploads/2025/05/bg-visual-egmond.png');
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: contain;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

#mini-cart-sidebar.active {
  transform: translateX(0);
}

.mini-cart-message {
  padding: 20px;
  border-top: 4px solid var(--secondary-color);
  background-color: var(--beige-color);
  color: var(--secondary-color);
  font-weight: bold;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header h3 {
  font-size: var(--h3-font-size);
  font-family: var(--h3-font-family);
  font-weight: var(--h3-font-weight);
  text-transform: var(--h3-text-transform);
  color: var(--text-color);
  margin: 0;
}

.close-cart {
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
}

.sidebar-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mini-cart-product {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

#mini-cart-sidebar .product-image img {
  width: 64px !important;
  height: auto !important;
  max-width: 100%;
  object-fit: contain;
}

.product-details {
  flex-grow: 1;
}

.product-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.product-price {
  font-size: 0.95rem;
  color: var(--text-color);
}

.product-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.quantity-decrease,
.quantity-increase {
  width: 30px;
  height: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  background-color: var(--primary-color);
  color: var(--text-color);
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
}

.quantity-input {
  width: 50px;
  padding: 5px;
  text-align: center;
  border: 1px solid #ccc;
}

.mini-cart-subtotal {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  font-weight: bold;
  font-size: 1rem;
}

.free-shipping-hint {
  margin-top: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--primary-color);
  font-weight: bold;
  color: var(--text-color);
  font-size: 0.95rem;
}

.cart-actions {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
}

.cart-actions .button.checkout {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  flex: 1;
  text-align: center;
  border: none;
  padding: var(--button-padding);
  border-radius: var(--button-border-radius);
  font-weight: var(--button-font-weight);
}

.cart-actions .button.continue {
  background-color: var(--secondary-color);
  color: var(--white-color);
  border: var(--button-2-border);
  padding: var(--button-padding);
  border-radius: var(--button-border-radius);
  flex: 1;
  text-align: center;
  font-weight: var(--button-font-weight);
}

#cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9990;
  display: none;
}

#cart-overlay.active {
  display: block;
}

@media (max-width: 768px) {
  #mini-cart-sidebar {
    width: 100%;
  }
}
