/* Frontend CSS för 56Kilo Shopping Carousel */

.carousel-56kilo-container {
    font-family: 'Taviraj', serif, Arial, sans-serif;
    margin: 20px 0;
}

.carousel-announcement {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.carousel-announcement .highlight {
    color: #e57373;
    font-weight: bold;
}

.carousel-container-56kilo {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    white-space: nowrap;
    width: 100%;
    cursor: grab;
    scroll-behavior: smooth;
    padding: 10px 0;
    gap: 20px;
}

.carousel-container-56kilo.active {
    cursor: grabbing;
}

.carousel-container-56kilo::-webkit-scrollbar {
    height: 8px;
}

.carousel-container-56kilo::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.carousel-container-56kilo::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.carousel-container-56kilo a {
    text-decoration: none;
    color: inherit;
}

.carousel-item-56kilo {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 200px;
    background-color: #f7f7f7;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.carousel-item-56kilo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.carousel-image-56kilo {
    width: 200px;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.carousel-image-56kilo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.carousel-item-56kilo:hover .carousel-image-56kilo img {
    transform: scale(1.05);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #999;
    font-size: 14px;
}

.carousel-content-56kilo {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carousel-title-56kilo {
    text-align: center;
    margin-bottom: 8px;
}

.carousel-title-56kilo span {
    color: #222;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.3;
    display: block;
}

.carousel-price-56kilo {
    text-align: center;
    margin-top: 8px;
}

.carousel-price-56kilo span {
    color: #e57373;
    font-weight: bold;
    font-size: 16px;
}

.carousel-disclaimer {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

/* Responsiv design */
@media (max-width: 768px) {
    .carousel-container-56kilo {
        gap: 15px;
    }
    
    .carousel-item-56kilo {
        width: 160px;
    }
    
    .carousel-image-56kilo {
        width: 160px;
        height: 160px;
    }
    
    .carousel-announcement {
        font-size: 16px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .carousel-item-56kilo {
        width: 140px;
    }
    
    .carousel-image-56kilo {
        width: 140px;
        height: 140px;
    }
    
    .carousel-announcement {
        font-size: 14px;
        padding: 10px;
    }
    
    .carousel-content-56kilo {
        padding: 10px;
    }
}

/* Tillgänglighet */
.carousel-item-56kilo:focus-within {
    outline: 2px solid #e57373;
    outline-offset: 2px;
}

/* Smooth loading animation */
.carousel-56kilo-container {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
