/**
 * CockpitOS CM-Immo Theme - Shop Carousel Widget Styles
 *
 * Verantwortlichkeit: Shop Carousel Styling für CM-Immo
 * Smooth Animations, Ticker Mode, Cool Easing
 *
 * @package CockpitOS_CM_Immo_Theme
 * @version 1.2.0
 */

/* ========================================
   Container
   ======================================== */

.cockpit-shop-carousel {
    color: var(--color-gray-800, #1f2937);
    position: relative;
    width: 100%;
    background-color: var(--color-accent-pink, #fce4ec);
    color: var(--color-gray-800, #1f2937);
    padding: 40px 20px;
    border-radius: 12px;
}

.cockpit-shop-carousel__container {
    overflow: hidden;
    width: 100%;
}

.cockpit-shop-carousel__track {
    display: flex;
}

/* ========================================
   Carousel Mode
   ======================================== */

.cockpit-shop-carousel--carousel .cockpit-shop-carousel__item {
    flex: 0 0 auto;
}

/* ========================================
   Ticker Mode - Continuous Scroll
   ======================================== */

.cockpit-shop-carousel--ticker .cockpit-shop-carousel__track {
    animation: ticker-scroll var(--ticker-duration, 30s) linear infinite;
    will-change: transform;
}

.cockpit-shop-carousel--ticker .cockpit-shop-carousel__item {
    flex: 0 0 auto;
    width: 200px;
    min-width: 200px;
}

.cockpit-shop-carousel--ticker:hover .cockpit-shop-carousel__track.paused {
    animation-play-state: paused;
}

.cockpit-shop-carousel--ticker.ticker-reverse .cockpit-shop-carousel__track {
    animation-name: ticker-scroll-reverse;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

@keyframes ticker-scroll-reverse {
    0% {
        transform: translateX(-33.333%);
    }
    100% {
        transform: translateX(0);
    }
}

/* ========================================
   Grid Mode
   ======================================== */

.cockpit-shop-carousel--grid .cockpit-shop-carousel__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* ========================================
   Logo Item
   ======================================== */

.cockpit-shop-carousel__item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cockpit-shop-carousel__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cockpit-shop-carousel__logo img {
    width: auto;
    height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.cockpit-shop-carousel__item:hover .cockpit-shop-carousel__logo img {
    transform: scale(1.05);
    opacity: 0.8;
}

/* ========================================
   Grayscale Effect
   ======================================== */

.cockpit-shop-carousel--grayscale .cockpit-shop-carousel__logo img {
    filter: grayscale(100%);
}

.cockpit-shop-carousel--grayscale .cockpit-shop-carousel__item:hover .cockpit-shop-carousel__logo img {
    filter: grayscale(0%);
}

/* ========================================
   Navigation
   ======================================== */

.cockpit-shop-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 2px solid var(--color-primary, #da2032);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--color-primary, #da2032);
}

.cockpit-shop-carousel__nav:hover {
    background-color: var(--color-primary, #da2032);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.cockpit-shop-carousel__nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cockpit-shop-carousel__nav--prev {
    left: -20px;
}

.cockpit-shop-carousel__nav--next {
    right: -20px;
}

.cockpit-shop-carousel__nav svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   Responsive - Tablet
   ======================================== */

@media (max-width: 1024px) {
    .cockpit-shop-carousel {
    color: var(--color-gray-800, #1f2937);
        padding: 35px 20px;
    }
    
    .cockpit-shop-carousel__nav--prev {
        left: 0;
    }
    
    .cockpit-shop-carousel__nav--next {
        right: 0;
    }
}

/* ========================================
   Responsive - Mobile
   ======================================== */

@media (max-width: 768px) {
    .cockpit-shop-carousel {
    color: var(--color-gray-800, #1f2937);
        padding: 30px 15px;
    }
    
    .cockpit-shop-carousel__logo img {
        height: 60px;
    }
    
    .cockpit-shop-carousel__item {
        padding: 15px;
    }
    
    .cockpit-shop-carousel__nav {
        width: 32px;
        height: 32px;
    }
    
    .cockpit-shop-carousel__nav svg {
        width: 20px;
        height: 20px;
    }
    
    .cockpit-shop-carousel--grid .cockpit-shop-carousel__grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .cockpit-shop-carousel {
    color: var(--color-gray-800, #1f2937);
        padding: 25px 10px;
    }
    
    .cockpit-shop-carousel__logo img {
        height: 50px;
    }
    
    .cockpit-shop-carousel__item {
        padding: 10px;
    }
    
    .cockpit-shop-carousel--grid .cockpit-shop-carousel__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Accessibility
   ======================================== */

.cockpit-shop-carousel__nav:focus {
    outline: 2px solid var(--color-primary, #da2032);
    outline-offset: 2px;
}

.cockpit-shop-carousel__logo a:focus {
    outline: 2px solid var(--color-primary, #da2032);
    outline-offset: 4px;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .cockpit-shop-carousel__nav {
        display: none;
    }
    
    .cockpit-shop-carousel {
    color: var(--color-gray-800, #1f2937);
        background-color: transparent;
    }
}
