/* ============================================================
   carousel.css — Carousel page specific styles
   Shared nav/font/reset styles are in nav.css
   ============================================================ */

/* Page layout: fill full viewport */
html, body {
    height: 100%;
}

body {
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
}


/* ===== Carousel Wrapper ===== */
.carousel-wrapper {
    position: relative;
    width: 100%;
    flex: 1 1 0;       /* fill all remaining height after header */
    min-height: 480px;
    overflow: hidden;  /* hidden so track can slide */
}

/* ===== Carousel Track (Horizontal Slider) ===== */
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ===== Individual Slides ===== */
.carousel-slide {
    flex: 0 0 100%;    /* Each slide takes full width */
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay on each slide */
.carousel-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(80, 80, 90, 0.55);
    z-index: 0;
}


/* ===== Slide Content ===== */
.slide-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  
}

/* Left column: text */
.slide-left {
    flex: 0 0 auto;
    max-width: 580px;
}

/* Right column: product image */
.slide-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: -80px; /* Overlap to the right to balance visual weight */
}

.slide-right img {
    max-height: 540px;
    max-width: 620px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}

/* Slide category label at top-center */
.slide-category {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    padding-top: 60px;
    pointer-events: none;
    z-index: 1;
}

.slide-category h2 {
    font-family: 'Helvetica', sans-serif;
    font-size: 38px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 6px;
}

.slide-category p {
    font-family: 'Hiragino Sans', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: rgba(255,255,255,0.85);
}

/* Main slide text (left-aligned) */
.slide-title {
    font-family: 'Helvetica', sans-serif;
    font-size: 34px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.slide-body {
    font-family: 'Hiragino Sans', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 28px;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,0.8);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    font-family: 'Hiragino Sans', sans-serif;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.slide-btn img {
    height: 5px;
    width: auto;
    transition: transform 0.2s ease;
}

.slide-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

.slide-btn:hover img {
    transform: translateX(4px);
}

/* ===== Carousel Controls ===== */
.carousel-controls {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.carousel-arrow {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
    transition: color 0.2s;
    line-height: 1;
    font-weight: 300;
}

.carousel-arrow:hover {
    color: rgba(255,255,255,0.9);
}

.carousel-dots {
    display: flex;
    gap: 30px;
    align-items: center;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
    padding: 0;
    -webkit-box-shadow: 8px 8px 24px 0px rgb(45, 45, 49);
    -moz-box-shadow: 8px 8px 24px 0px rgb(48, 48, 54);
    box-shadow: 8px 8px 24px 0px rgb(32, 33, 36);
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.25), 0 2px 6px rgba(0,0,0,0.4);
}

/* ===== Slide-in animation for content ===== */
@keyframes slideContentIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.carousel-slide.active .slide-content {
    animation: slideContentIn 0.6s ease 0.2s both;
}

/* ===== Responsive (carousel-specific) ===== */
@media (max-width: 900px) {
    .carousel-wrapper {
        height: 100dvh; /* Keep fixed height for slider */
        flex: none;
    }

    .carousel-slide {
        align-items: center; /* Center vertically in the slide space */
        padding-top: 100px;  /* Account for header */
        padding-bottom: 60px;
    }

    .slide-content {
        padding: 0 32px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
        justify-content: center;
          height: 100%;
    }

    .slide-left {
        max-width: 100%;
        order: 1;
    }

    .slide-right {
        margin-left: 0;
        justify-content: center;
        order: 2;
        width: 100%;
    }

    .slide-right img {
        max-height: 30vh;
        max-width: 100%;
        filter: drop-shadow(0 12px 32px rgba(0,0,0,0.45));
    }

    .slide-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .slide-body {
        font-size: 15px;
        margin-bottom: 16px;
        letter-spacing: 0.05rem;
    }

    .slide-category {
        padding-top: 20px;
    }

    .slide-category h2 {
        font-size: 24px;
    }

    .slide-btn {
        margin: 0 auto;
    }

    .carousel-controls {
        bottom: 20px;
        gap: 12px;
    }

    .carousel-dots {
        gap: 20px;
    }
}


@media (max-width: 600px) {
    .carousel-slide {
        padding-top: 1px;
    }

    .slide-title {
        font-size: 22px;
    }

    
    .slide-category p {
        font-size: 18px;
        padding-inline: 20px;
    }
    .slide-category {
        margin-bottom: 20px;
        margin-top: 20px;
    }

    .slide-body {
        font-size: 14px;
        letter-spacing: 0.05rem;
    }

    .slide-content {
        gap: 30px;
        margin-top: 20px;
    }

    .slide-right img {
        max-height: 30vh;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    .carousel-dots {
        gap: 15px;
    }
}
