.cart-icon-wrapper {
  position: relative;
  display: inline-block;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #e74c3c;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  line-height: 1;
  z-index: 10;
}

.cart-badge.hidden {
  display: none !important;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 999;
  backdrop-filter: blur(2px);
}

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

body.cart-open {
  overflow: hidden !important;
  height: 100vh;
  height: 100dvh;
}

.side-cart {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 100vw;
  height: 100vh;     /* Fallback für ältere Browser */
  height: 100dvh;    /* Passt sich perfekt an mobile Browser-Leisten an */
  background: #ffffff;
  z-index: 1000;
  transition: right 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
  font-family: Arial, sans-serif;
}

.side-cart.open {
  right: 0;
}

.cart-top-banner {
  background: #e9530e;
  color: #ffffff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.cart-top-banner:hover {
  background: #d14707;
}

.cart-content {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.cart-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-title-row h2 {
  font-size: 18px;
  font-weight: bold;
  color: #222222;
  margin: 0;
}

.cart-item-count {
  font-size: 12px;
  color: #555555;
}

.cart-empty-box {
  background: #FFEB82;
  border: 1px solid #FFE218;
  color: #1A180D;
  padding: 10px 14px;
  border-radius: 2px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.cart-empty-box .info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid #1A180D;
  border-radius: 50%;
  font-size: 11px;
}

.cart-alert {
  padding: 8px 12px;
  border-radius: 3px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.cart-alert.hidden,
.cart-empty-box.hidden,
#paypal-block.hidden {
  display: none !important;
}

.cart-alert.green {
  background: #eef9f2;
  border: 1px solid #bce8c9;
  color: #276738;
}

.cart-alert.blue {
  background: #e6f7ff;
  border: 1px solid #91d5ff;
  color: #0050b3;
}

.alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
}

.cart-alert.green .alert-icon { border: 1px solid #276738; }
.cart-alert.blue .alert-icon { border: 1px solid #0050b3; }

.cart-item {
  margin-bottom: 16px;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 3px;
}

.btn-close-item {
  background: #ffffff;
  border: 1px solid #a6a6a6;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 2px;
  color: #444444;
}

.btn-close-item:hover {
  background: #f0f0f0;
}

.cart-item-title {
  font-size: 14px;
  font-weight: bold;
  color: #222222;
  text-decoration: underline;
  margin-bottom: 3px;
  cursor: pointer;
}

.cart-item-sku {
  font-size: 12px;
  color: #444444;
  margin-bottom: 8px;
}

.qty-price-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.qty-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qty-label {
  font-size: 13px;
  font-weight: bold;
  color: #222222;
}

.qty-control-wrapper {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #e9530e;
}

.qty-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #333333;
  padding: 2px 8px;
}

.qty-box {
  background: #f8f9fa;
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 500;
}

.price-display {
  text-align: right;
}

.item-total-price {
  font-size: 15px;
  font-weight: bold;
  color: #222222;
}

.item-unit-price {
  font-size: 11px;
  color: #555555;
  font-style: italic;
  margin-top: 2px;
}

.item-divider {
  border: 0;
  border-top: 1px solid #e0e0e0;
  margin: 16px 0;
}

.cart-summary {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}

.summary-row.bold {
  font-weight: bold;
}

.shipping-label span {
  color: #2e2e2e;
  font-weight: bold;
}

.tax-note {
  font-size: 11px;
  color: #555555;
  margin: 8px 0 14px;
}

.coupon-box label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 4px;
}

.coupon-input-group {
  display: flex;
  margin-bottom: 16px;
}

.coupon-input-group input {
  flex: 1;
  padding: 8px;
  border: 1px solid #e9530e;
  border-right: none;
  outline: none;
  font-size: 12px;
}

.coupon-input-group button {
  background: #ffffff;
  border: 1px solid #e9530e;
  padding: 0 12px;
  cursor: pointer;
  color: #005e5d;
  font-weight: bold;
}

.btn-checkout-main {
  background: #e9530e;
  color: #ffffff;
  border: none;
  width: 100%;
  padding: 10px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 8px;
}

.btn-checkout-main:hover {
  background: #d14707;
}

.btn-checkout-main.disabled {
  background: #f5f5f5 !important;
  color: #bfbfbf !important;
  border: 1px solid #d9d9d9 !important;
  cursor: not-allowed;
}

.btn-cart-link {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  color: #e9530e;
  text-decoration: underline;
  margin-bottom: 12px;
} 

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-error {
  background: #fff2f0;
  border: 1px solid #ffccc7;
  color: #ff4d4f;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideInRight 0.3s ease-out forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.coupon-box {
  margin-bottom: 16px;
}

.coupon-success-msg {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #2e7d32;
  background-color: #e8f5e9;
  border: 1px solid #c8e6c9;
  padding: 8px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-remove-coupon {
  color: #d32f2f;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 8px;
  font-size: 0.8rem;
}

.btn-remove-coupon:hover {
  color: #9a0007;
}

.promo-box {
  margin: 16px 0;
  width: 100%;
  position: relative;
  background: #fafafa;
  border: 2px dashed #e9530e;
  border-radius: 6px;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.promo-box:hover {
  background: #ed6d35;
  background-color: rgba(233, 83, 14, 0.15);
  transform: translateY(-2px);
}

.promo-link {
  display: flex;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  line-height: 0;
}

.promo-img {
  width: 70%;
  height: auto;
  display: block;
  object-fit: contain;
}

.promo-box::before {
  content: "Unsere Empfehlung";
  position: absolute;
  top: -10px;
  left: 12px;
  background: #e9530e;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.variant-pills-wrapper {
  margin: 6px 0;
  width: 100%;
}

.variant-pills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 260px;
  margin: 8px 0;
  padding: 0;
  border: none;
  background: transparent;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.variant-pill-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  border: 1.5px solid #4a3e4e;
  border-radius: 8px;
  background-color: #ffffff;
  color: #2c2c2c;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease-in-out;
}

.variant-pill-btn:hover:not(:disabled) {
  background-color: #f0f4f8;
  border-color: #003366;
  color: #003366;
}

.variant-pill-btn.active {
  background-color: #003366 !important;
  color: #ffffff !important;
  border-color: #003366 !important;
  font-weight: 700;
}

.variant-pill-btn:disabled,
.variant-pill-btn.disabled {
  background-color: #f5f5f5 !important;
  color: #bbbbbb !important;
  border-color: #e0e0e0 !important;
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.7;
}

.variant-pills-container.has-error .variant-pill-btn,
.variant-pill-btn.has-error {
  border-color: #d9534f !important;
  background-color: #fff5f5 !important;
  color: #d9534f !important;
}

@media (max-width: 768px) {
  .variant-pills-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 12px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    position: relative !important;
    z-index: 99 !important;
    box-sizing: border-box !important;
  }

  .variant-pill-btn,
  .variant-pills-container button,
  .variant-pills-container input[type="button"],
  .variant-pills-container a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    white-space: nowrap !important;
    border: 1.5px solid #4a3e4e !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
    color: #2c2c2c !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
  }

  .variant-pill-btn.active,
  .variant-pills-container .active {
    background-color: #003366 !important;
    color: #ffffff !important;
    border-color: #003366 !important;
    font-weight: 700 !important;
  }

  .variant-pills-container.has-error .variant-pill-btn,
  .variant-pill-btn.has-error {
    border-color: #d9534f !important;
    background-color: #fff5f5 !important;
    color: #d9534f !important;
    animation: shake 0.3s ease-in-out;
  }

  .variant-pill-btn:disabled,
  .variant-pill-btn.disabled {
    background-color: #f5f5f5 !important;
    color: #bbbbbb !important;
    border-color: #e0e0e0 !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
    opacity: 0.6 !important;
  }

  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
  }
}

@media (max-width: 600px) {
  .page-header__langs-in {
    display: none;
  }
}