/* ===========================================
   Sitzdesign – Warenkorb / Merkliste / Vergleichen Header-Widgets
   =========================================== */
/* ---- Header-Icons Container ---- */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  color: #333;
}
.header-icon-btn:hover {
  background: #f0f0f0;
}
.header-icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #0d8756;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s;
}
.header-badge.visible {
  opacity: 1;
  transform: scale(1);
}
/* ===========================================
   Panel Overlay (shared for all three)
   =========================================== */
.widget-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.widget-panel-overlay.open {
  display: block;
  opacity: 1;
}
.widget-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: #fff;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.widget-panel-overlay.open .widget-panel {
  transform: translateX(0);
}
.widget-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.widget-panel-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.widget-panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.widget-panel-close:hover {
  background: #f0f0f0;
  color: #333;
}
.widget-panel-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.widget-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.widget-panel-footer {
  padding: 16px 24px;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
  background: #fafafa;
  display: none;
}
.widget-panel-footer.visible {
  display: block;
}
/* ---- Empty State ---- */
.widget-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  color: #aaa;
}
.widget-empty svg {
  width: 48px;
  height: 48px;
  stroke: #ccc;
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 16px;
}
.widget-empty p {
  font-size: 15px;
  color: #bbb;
}
/* ===========================================
   Warenkorb
   =========================================== */
.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  align-items: flex-start;
}
.cart-item-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f8f8f8;
  border-radius: 4px;
  flex-shrink: 0;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
  line-height: 1.3;
}
.cart-item-fabric {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}
.cart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: #333;
}
.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  padding: 2px;
  border-radius: 3px;
  transition: color 0.15s;
  flex-shrink: 0;
  margin-top: 2px;
}
.cart-item-remove:hover {
  color: #e53e3e;
}
.cart-item-remove svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #555;
}
.cart-summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  border-top: 2px solid #e0e0e0;
  padding-top: 10px;
  margin-top: 4px;
}
.cart-summary-note {
  font-size: 11px;
  color: #aaa;
  margin-top: 4px;
}
.btn-checkout-full {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: #0d8756;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
  margin-top: 14px;
  box-shadow: 0 3px 12px rgba(23,88,70,.30);
}
.btn-checkout-full:hover {
  background: #124a3a;
}
.btn-checkout-full:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}
/* ===========================================
   Merkliste
   =========================================== */
.wishlist-item {
  display: flex;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  align-items: flex-start;
}
.wishlist-item-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f8f8f8;
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
}
.wishlist-item-info {
  flex: 1;
  min-width: 0;
}
.wishlist-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
}
.wishlist-item-name:hover {
  text-decoration: underline;
}
.wishlist-item-fabric {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}
.wishlist-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-wishlist-cart {
  padding: 6px 12px;
  background: #0d8756;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-wishlist-cart:hover {
  background: #124a3a;
}
.wishlist-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  padding: 2px;
  border-radius: 3px;
  transition: color 0.15s;
  flex-shrink: 0;
  margin-top: 2px;
}
.wishlist-item-remove:hover {
  color: #e53e3e;
}
.wishlist-item-remove svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
/* ===========================================
   Vergleichen
   =========================================== */
.compare-note {
  font-size: 12px;
  color: #aaa;
  text-align: center;
  padding: 8px 24px 0;
}
.compare-item {
  display: flex;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  align-items: flex-start;
}
.compare-item-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f8f8f8;
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
}
.compare-item-info {
  flex: 1;
  min-width: 0;
}
.compare-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
  line-height: 1.3;
}
.compare-item-fabric {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}
.compare-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}
.compare-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  padding: 2px;
  border-radius: 3px;
  transition: color 0.15s;
  flex-shrink: 0;
  margin-top: 2px;
}
.compare-item-remove:hover {
  color: #e53e3e;
}
.compare-item-remove svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.compare-table-wrapper {
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.compare-table th {
  background: #f8f8f8;
  padding: 10px 14px;
  text-align: center;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #e0e0e0;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compare-table td {
  padding: 9px 14px;
  text-align: center;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: #666;
  background: #fafafa;
  white-space: nowrap;
}
.compare-table tr:hover td {
  background: #fafffd;
}
.btn-compare-full {
  display: block;
  width: 100%;
  padding: 12px 24px;
  background: #333;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
  margin-top: 12px;
}
.btn-compare-full:hover {
  background: #555;
}
.btn-compare-clear {
  display: block;
  width: 100%;
  padding: 9px 24px;
  background: transparent;
  color: #aaa;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  text-align: center;
  margin-top: 4px;
  text-decoration: underline;
}
.btn-compare-clear:hover {
  color: #e53e3e;
}
/* ---- Toast Notification ---- */
.widget-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #222;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.3s;
  opacity: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.widget-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.widget-toast.success {
  background: #0d8756;
}
/* ---- Responsive ---- */
@media (max-width: 576px) {
  .widget-panel {
    width: 100vw;
  }
  .header-icon-btn {
    width: 36px;
    height: 36px;
  }
  .compare-table-wrapper {
    display: none;
  }
}
/* ---- Product-page Buttons for Merkliste & Vergleichen ---- */
.btn-wishlist,
.btn-compare-add {
  display: block;
  width: 100%;
  padding: 10px 24px;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-wishlist:hover,
.btn-compare-add:hover {
  border-color: #0d8756;
  background: #f5f5f5;
}
.btn-wishlist.active {
  border-color: #0d8756;
  color: #0d8756;
  background: #f0f7f5;
}
.btn-compare-add.active {
  border-color: #333;
  color: #333;
  background: #f5f5f5;
}

/* ---- Product Card Action Buttons (Index Page) ---- */
.product-card {
  position: relative;
}
.product-card__actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s;
}
.product-card:hover .product-card__actions {
  opacity: 1;
}
.product-card__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  cursor: pointer;
  color: #888;
  transition: all 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  padding: 0;
}
.product-card__action-btn:hover {
  color: #0d8756;
  border-color: #0d8756;
  background: #f0f7f5;
}
.product-card__action-btn.active {
  color: #0d8756;
  border-color: #0d8756;
  background: #f0f7f5;
}
.product-card__action-btn svg {
  pointer-events: none;
}
