/**
 * Amberdore Sliders - Vereinheitlichtes CSS
 * Version: 1.4.4
 */

/* ============================================
   GEMEINSAME SLIDER WRAPPER STYLES
   ============================================ */

.similar-products-slider-wrapper,
.neuheiten-slider-wrapper,
.neuheiten-sets-slider-wrapper,
.sets-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    max-width: 100%;
}

.similar-products-slider-wrapper *,
.neuheiten-slider-wrapper *,
.neuheiten-sets-slider-wrapper *,
.sets-slider-wrapper * {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .similar-products-slider-wrapper,
    .neuheiten-slider-wrapper,
    .neuheiten-sets-slider-wrapper,
    .sets-slider-wrapper {
        padding: 15px 0;
    }
}

/* ============================================
   LUXURY BADGE
   ============================================ */

.amberdore-luxury-badge {
    position: absolute;
    top: 5px;
    right: -20px;
    background-color: #E1A140;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 0;
    z-index: 10;
    box-shadow: 3px 3px 8px 1px #1f1f1f73;
    transition: all 0.4s ease;
}

@media (max-width: 768px) {
    .amberdore-luxury-badge {
        right: -40px;
    }
}

/* ============================================
   SLIDER CONTAINER
   ============================================ */

.similar-products-slider,
.neuheiten-slider,
.neuheiten-sets-slider,
.sets-slider {
    position: relative;
    overflow-x: hidden;
    display: flex !important;
    align-items: center;
    padding: 0;
    max-width: 100%;
}

/* Höhen für unterschiedliche Slider - automatisch */
.similar-products-slider {
    height: auto;
}

.neuheiten-slider,
.neuheiten-sets-slider,
.sets-slider {
    height: auto;
}

/* ============================================
   SLIDER TRACK & ITEMS
   ============================================ */

.slider-track {
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease;
    will-change: transform;
}

.slider-item {
    flex: 0 0 auto;
    width: auto;
    background: #fff;
    overflow: hidden;
}

/* ============================================
   PRODUKT ELEMENTE
   ============================================ */

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    position: relative;
    display: flex;
    width: 150px;
    height: 150px;
    overflow: visible;
    background: #f5f5f5;
    margin: 0 auto;
}

/* Größere Bilder für Sets-Slider */
.neuheiten-sets-slider .product-image,
.sets-slider .product-image {
    width: 175px;
    height: auto;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 16px;
    text-align: left;
}


.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    height: 50px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 8px 0;
    text-align: center;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #1f1f1f;
}

.product-brand {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin: 0;
    text-align: center;
}

/* ============================================
   SET-INHALTE
   ============================================ */

.set-contents-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 18px 0 16px 0;
    text-align: left;
}

.set-contents {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 12px 0;
    padding: 0;
    height: 275px;
    overflow-y: auto;
}

.set-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.set-item-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 4px;
}

.set-item-name {
    font-size: 13px;
    color: #333;
    line-height: 1.3;
    flex: 1;
    cursor: default;
    user-select: none;
}

/* ============================================
   DUFTRICHTUNGEN
   ============================================ */

.product-duftrichtungen {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
    height: auto;
    overflow: hidden;
}

.duft-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.duft-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
}

.duft-name {
    font-size: 14px;
    color: #000;
}

/* ============================================
   ANLÄSSE
   ============================================ */

.product-anlaesse {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
    height: auto;
    overflow: hidden;
}

.anlass-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.anlass-item i {
    font-size: 20px;
    color: #000;
}

.anlass-item .icon-image {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.anlass-name {
    font-size: 14px;
    color: #000;
}

/* ============================================
   JAHRESZEITEN
   ============================================ */

.product-jahreszeiten {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
    height: auto;
    overflow: hidden;
}

.jahreszeit-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.jahreszeit-item i {
    font-size: 18px;
    color: #000;
}

.jahreszeit-item .icon-image {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.jahreszeit-name {
    font-size: 14px;
    color: #000;
}

/* ============================================
   PREIS & BUTTON
   ============================================ */

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px 0;
    text-align: center;
}

.product-button {
    display: block;
    background: #1f1f1f;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 0 25px;
    height: 40px;
    line-height: 40px;
    text-decoration: none;
    border-radius: 0;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    width: fit-content;
    margin: 0 auto;
}

.product-button:hover {
    background-color: #ffffff;
    color: #1f1f1f;
    box-shadow: inset 0 0 0 3px #1f1f1f;
}

/* ============================================
   NAVIGATION BUTTONS
   ============================================ */

.slider-nav {
    background-color: #1f1f1f;
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    flex-shrink: 0;
    z-index: 10;
}

.slider-nav:hover {
    background-color: #ffffff;
    color: #1f1f1f;
    box-shadow: inset 0 0 0 3px #1f1f1f;
}

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-nav:disabled:hover {
    background: #1f1f1f;
    color: #fff;
    box-shadow: none;
}

.slider-nav svg {
    width: 24px;
    height: 24px;
}

.slider-prev {
    margin-right: 0;
    margin-left: 15px;
}

.slider-next {
    margin-left: 0;
    margin-right: 15px;
}

@media (max-width: 768px) {
    .slider-prev {
        margin-right: 0;
        margin-left: 10px;
    }
    
    .slider-next {
        margin-left: 0;
        margin-right: 10px;
    }
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.slider-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1f1f1f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   "KEINE PRODUKTE" NACHRICHT
   ============================================ */

.no-products {
    width: 100%;
    padding: 40px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

.no-products p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.similar-products-slider:has(.no-products),
.neuheiten-slider:has(.no-products),
.neuheiten-sets-slider:has(.no-products),
.sets-slider:has(.no-products) {
    height: auto;
}

.similar-products-wrapper:has(.no-products) .slider-nav,
.neuheiten-slider-wrapper:has(.no-products) .slider-nav,
.neuheiten-sets-slider-wrapper:has(.no-products) .slider-nav,
.sets-slider-wrapper:has(.no-products) .slider-nav {
    display: none;
}

/* ============================================
   RESPONSIVE ANPASSUNGEN
   ============================================ */

@media (max-width: 768px) {
    /* Produkte oben ausrichten, Buttons bleiben zentriert */
    .slider-track {
        align-items: flex-start;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .product-brand {
        font-size: 12px;
    }
    
    .product-image {
        width: 120px;
        height: 120px;
    }
    
    /* Größere Bilder für Sets-Slider auf Mobile */
    .neuheiten-sets-slider .product-image,
    .sets-slider .product-image {
        width: 175px;
        height: auto;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .duft-name {
        font-size: 12px;
    }
    
    .duft-circle {
        width: 16px;
        height: 16px;
    }
    
    .anlass-item i {
        font-size: 18px;
    }
    
    .anlass-item .icon-image {
        width: 18px;
        height: 18px;
    }
    
    .anlass-name {
        font-size: 12px;
    }
    
    .jahreszeit-item i {
        font-size: 18px;
    }
    
    .jahreszeit-item .icon-image {
        width: 18px;
        height: 18px;
    }
    
    .jahreszeit-name {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .product-button {
        font-size: 16px;
        height: 35px;
        line-height: 35px;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
    }
    
    /* Set-Contents keine feste Höhe auf Mobile */
    .set-contents {
        height: auto;
        overflow-y: visible;
    }
}

@media (max-width: 991px) {
    .slider-nav {
        width: 35px;
        height: 35px;
    }
}

