/* Versteckt den Scrollbalken in Webkit-Browsern (optional) */
.more-product-images::-webkit-scrollbar {
    height: 4px;
}
.more-product-images::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.energielabel {
    position: absolute;
    top: 20px;
    left: 15px;
}
.germanylabel {
    position: absolute;
    bottom: 30px;
    right: 15px;
}

#optionen, #optionen input, #optionen select {
    font-size: 14px;
}

/* ── Gallery ── */
.gallery-img-wrap {
    position: relative;
    overflow: hidden;
}
#gallery-main-img {
    cursor: zoom-in;
}
.gallery-arrow {
    position: absolute;
    top: 0;
    height: 100%;
    width: 40px;
    z-index: 2;
    background: rgba(0,0,0,0.15);
    border: none;
    color: white;
    font-size: 1.5rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-arrow:hover {
    background: rgba(0,0,0,0.3);
}
.gallery-prev { left: 0; }
.gallery-next { right: 0; }

.gallery-thumb {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    border: 2px solid transparent;
    border-radius: 4px;
    display: inline-block;
}
.gallery-thumb:hover {
    opacity: 0.85;
}
.gallery-thumb.active {
    border-color: var(--bs-primary);
    opacity: 1;
}
.gallery-thumb img {
    display: block;
    border-radius: 2px;
}

/* ── Lightbox ── */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-lightbox[hidden] {
    display: none;
}
.gallery-lb-close-x {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
}
.gallery-lb-close-btn {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    color: white;
    background: transparent;
    border: 1px solid white;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    border-radius: 4px;
}
.gallery-lb-close-btn:hover {
    background: rgba(255,255,255,0.1);
}
.gallery-lb-img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
}
.gallery-lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    transition: background 0.2s;
}
.gallery-lb-arrow:hover {
    background: rgba(255,255,255,0.25);
}
.gallery-lb-prev { left: 1rem; }
.gallery-lb-next { right: 1rem; }

/* ── Avatar Stack ── */
.avatar-stack {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
}
.avatar-stack .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
    object-fit: cover;
    transition: transform 0.2s, z-index 0s;
    position: relative;
    z-index: 0;
}
.avatar-stack img.avatar:hover {
    transform: scale(2);
    z-index: 10;
}
.avatar-stack .avatar:last-child {
    margin-left: 0;
}
.avatar-stack span.avatar {
    background: #6c757d;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
}

/* ── Sticky Cart Bar ── */
.sticky-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #212529;
    color: white;
    padding: 0.75rem 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.sticky-cart.show {
    transform: translateY(0);
}
.sticky-cart-name {
    max-width: 300px;
}
.sticky-cart-price {
    white-space: nowrap;
    font-size: 1.1rem;
}
.sticky-cart-qty {
    width: 110px;
}
.sticky-cart-qty .sticky-cart-qty-val {
    width: 40px;
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

/* ── Reviews ── */
.review-container .progress {
    height: 8px;
    border-radius: 4px;
}
.review-container .progress-bar {
    background-color: var(--bs-warning);
    border-radius: 4px;
}
.single-review {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.single-review:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.review-stars i {
    font-size: 0.85rem;
}
.review-navigation .page-link {
    cursor: pointer;
}
.review-navigation .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.star-distribution td {
    vertical-align: middle;
    font-size: 0.85rem;
    color: #6c757d;
}
