/* ============================================
   Hero Carousel
   ============================================ */

.ccs-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: var(--ccs-bg);
}

.ccs-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* --- Slides --- */
.ccs-carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 500px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.ccs-carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Image fills entire slide */
.ccs-carousel-slide img,
.ccs-carousel-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.05);
    transition: transform 6s ease;
}

.ccs-carousel-slide.active img,
.ccs-carousel-slide.active .ccs-carousel-bg-img {
    transform: scale(1);
}

/* Bottom gradient overlay — text readability without covering artwork */
.ccs-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 30%, transparent 60%);
    z-index: 2;
}

/* --- Content: bottom-left bar --- */
.ccs-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 3rem 4rem 2.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s ease 0.3s, opacity 0.6s ease 0.3s;
}

.ccs-carousel-slide.active .ccs-carousel-content {
    transform: translateY(0);
    opacity: 1;
}

.ccs-carousel-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin: 0 0 0.5rem;
    max-width: 500px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ccs-carousel-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin: 0 0 1rem;
}

.ccs-carousel-price {
    font-size: 1.1rem;
    color: var(--ccs-gold);
    font-weight: 700;
    margin-bottom: 1rem;
}

.ccs-carousel-price del {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.ccs-carousel-price ins {
    text-decoration: none;
    color: var(--ccs-gold);
}

.ccs-carousel-cta {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--ccs-accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ccs-carousel-cta:hover {
    background: var(--ccs-accent-hover);
    color: white;
}

/* --- Arrow Buttons --- */
.ccs-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ccs-carousel-prev {
    left: 1rem;
}

.ccs-carousel-next {
    right: 1rem;
}

.ccs-carousel-arrow:hover {
    background: rgba(0,0,0,0.8);
}

/* --- Dot Indicators --- */
.ccs-carousel-dots {
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    z-index: 5;
    display: flex;
    gap: 0.5rem;
}

.ccs-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

.ccs-carousel-dot.active {
    background: var(--ccs-accent);
}

.ccs-carousel-dot:hover {
    background: rgba(255,255,255,0.7);
}

/* --- Responsive: Tablet --- */
@media (max-width: 768px) {
    .ccs-carousel,
    .ccs-carousel-slide {
        height: 350px;
    }

    .ccs-carousel-content {
        padding: 2rem 1.5rem 1.5rem;
    }

    .ccs-carousel-title {
        font-size: 1.2rem;
    }

    .ccs-carousel-arrow {
        width: 38px;
        height: 38px;
    }

    .ccs-carousel-prev {
        left: 0.5rem;
    }

    .ccs-carousel-next {
        right: 0.5rem;
    }
}

/* --- Responsive: Mobile --- */
@media (max-width: 480px) {
    .ccs-carousel,
    .ccs-carousel-slide {
        height: 300px;
    }

    .ccs-carousel-content {
        padding: 1.5rem 1rem 1rem;
    }

    .ccs-carousel-title {
        font-size: 1.1rem;
    }

    .ccs-carousel-cta {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
}
