/* Product Page Carousel Styles (from HTML) */
.products-bgwrap {
    animation-delay: 0s !important;
    opacity: 1 !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: -10;
}

/* Remove long startup animation delays on internal pages */
.navimage:nth-child(1),
.navimage:nth-child(3),
.desktop-logo,
.nav-links {
    animation-delay: 0s !important;
}

.page-content {
    padding: 180px 60px 60px;
    max-width: 1440px;
    margin: 0 auto;
    text-align: center;
}

.page-content h1 {
    font-family: 'Rockwell', Arial, sans-serif;
    font-size: 48px;
    color: #363636;
    margin-bottom: 20px;
}

.product-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 160px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border: none;
    color: #1B75B7;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.carousel-arrow:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.arrow-left {
    left: -80px;
}

.arrow-right {
    right: -80px;
}

.product-slide {
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

/* 
    Positions based on instructions:
    Position 1: "display the details" (Left side text block, red box)
    Position 2: "position, shape of the yellow" (Bottom shape)
    Position 3: "display the poster" (Right side image, blue box)
    Position 4: "position and shape of green" (Top shape)
*/

/* State 1: Left Card (Red) - Display Details */
.product-slide.pos-1 {
    opacity: 1;
    pointer-events: auto;
    background-color: #F67777;
    border-radius: 20px;
    padding: 50px 25% 50px 50px;
    width: 70%;
    color: white;
    text-align: left;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(246, 119, 119, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    left: 0;
}

.showcase-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
    letter-spacing: 0.5px;
}

.showcase-desc1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 400;
}

.showcase-desc2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 20px;
    min-height: 150px;
    font-weight: 400;
}

.showcase-btn {
    background-color: white;
    color: #1B75B7;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    padding: 15px 40px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* State 2: Bottom Shape (Yellow) */
.product-slide.pos-2 {
    position: absolute;
    opacity: 1;
    background-color: #EAB043;
    border-radius: 15px;
    width: 20%;
    height: 200px;
    z-index: 3;
    bottom: -50px;
    left: 40%;
    padding: 0;
    top: unset;
    display: block;
}

/* State 3: Right Card (Blue) - Display Poster */
.product-slide.pos-3 {
    opacity: 1;
    pointer-events: auto;
    width: 60%;
    margin-left: -20%;
    top: 100px;
    z-index: 4;
    background-color: #1B75B7;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    display: block;
}

/* State 4: Top Shape (Green) */
.product-slide.pos-4 {
    position: absolute;
    opacity: 1;
    background-color: #68C28A;
    border-radius: 15px;
    width: 20%;
    height: 200px;
    z-index: 2;
    top: 50px;
    left: 55%;
    padding: 0;
    display: block;
}


.slide-content {
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.product-slide.pos-1 .slide-details {
    opacity: 1;
    display: block;
}

.product-slide.pos-3 .slide-image {
    opacity: 1;
    display: block;
}

.slide-image img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
}

/* --- Responsive Styles for Products Page --- */

@media (max-width: 1024px) {
    .page-content {
        padding: 150px 40px 40px;
    }

    .page-content h1 {
        font-size: 38px;
    }

    .product-slide.pos-1 {
        padding: 40px 20% 40px 40px;
    }

    .showcase-title {
        font-size: 30px;
    }

    .showcase-desc1,
    .showcase-desc2 {
        font-size: 16px;
    }

    .arrow-left {
        left: -20px;
    }

    .arrow-right {
        right: -20px;
    }
}

@media (max-width: 900px) {
    .product-showcase {
        margin-top: 40px;
        margin-bottom: 100px;
    }

    .product-slide.pos-1 {
        width: 60%;
        padding: 40px 20% 40px 30px;
    }

    .product-slide.pos-3 {
        width: 50%;
        margin-left: -20%;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 120px 20px 30px;
    }

    .page-content h1 {
        font-size: 28px;
    }

    .page-content p {
        font-size: 14px;
    }

    .product-showcase {
        margin-top: 30px;
        margin-bottom: 60px;
    }

    /* Vertical Stacking for Mobile */
    .carousel-wrapper {
        flex-direction: column;
        min-height: 650px;
        /* Give enough space for absolute positioning */
        border-radius: 20px;
        padding-bottom: 20px;
    }

    /* Slide 1: Details (Now at bottom) */
    .product-slide.pos-1 {
        width: 90%;
        padding: 40px 25px 130px;
        border-radius: 20px;
        margin-top: 20px;
        box-sizing: border-box;
        text-align: center;
    }

    /* Slide 3: Image (Now on top) */
    .product-slide.pos-3 {
        width: 80%;
        margin-left: 0;
        position: relative;
        top: -110px;
        z-index: 5;
    }

    /* Background shapes adjusted */
    .product-slide.pos-2 {
        width: 40%;
        height: 120px;
        bottom: 90px;
        left: 20%;
    }

    .product-slide.pos-4 {
        width: 40%;
        height: 120px;
        top: -20px;
        left: 50%;
        z-index: 0;
    }

    .showcase-title {
        font-size: 24px;
        text-align: center;
    }

    .showcase-desc1 {
        font-size: 15px;
        text-align: center;
    }

    .showcase-desc2 {
        font-size: 15px;
        min-height: auto;
        text-align: center;
    }

    .showcase-btn {
        width: 200px;
        padding: 12px 20px;
        font-size: 16px;
    }

    /* Adjust arrows to be inside or smaller */
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
        top: 40%;
        /* Center relative to image */
    }

    .arrow-left {
        left: 10px;
        z-index: 10;
    }

    .arrow-right {
        right: 10px;
        z-index: 10;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        min-height: 600px;
    }
}

/* Product Details Styles (from styles.css) */
/* Product Details Sections */
.product-details-container {
    max-width: 1000px;
    margin: 40px auto 100px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 40px;
}

.detail-section {
    background-color: white;
    padding: 60px 80px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.section-badge {
    display: inline-block;
    background-color: rgba(246, 119, 119, 0.1);
    color: #F67777;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.section-heading {
    font-family: 'Rockwell', Arial, sans-serif;
    font-size: 36px;
    color: #363636;
    margin-bottom: 25px;
    line-height: 1.2;
}

.section-paragraph {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #666;
    line-height: 1.8;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    margin-top: 40px;
}

.feature-card {
    background-color: #fcfcfc;
    border: 1px solid #eaeaea;
    border-radius: 20px;
    padding: 35px 40px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: #1B75B7;
}

.feature-icon {
    position: absolute;
    top: -20px;
    left: 40px;
    width: 45px;
    height: 45px;
    background-color: #1B75B7;
    color: white;
    font-family: 'Rockwell', Arial, sans-serif;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(27, 117, 183, 0.3);
}

.feature-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    color: #363636;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 5px;
}

.feature-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

.feature-list {
    margin: 15px 0 20px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

.feature-list li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.feature-list li::marker {
    color: #1B75B7;
}

.feature-conclusion {
    font-weight: 600;
    color: #363636 !important;
    margin-top: 15px;
}

.material-option {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #eaeaea;
}

.material-option:first-of-type {
    border-top: none;
    padding-top: 10px;
    margin-top: 10px;
}

.material-option h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #F67777;
    margin-bottom: 10px;
    font-weight: 700;
}

/* Comparison Table */
.table-container {
    overflow-x: auto;
    margin-top: 30px;
    border-radius: 15px;
    border: 1px solid #eaeaea;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Montserrat', sans-serif;
    text-align: left;
}

.comparison-table th,
.comparison-table td {
    padding: 20px 25px;
    border-bottom: 1px solid #eaeaea;
}

.comparison-table th {
    background-color: #f8f8f8;
    color: #363636;
    font-weight: 700;
    font-size: 16px;
}

.comparison-table td {
    font-size: 16px;
    color: #666;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .premium-col {
    background-color: rgba(246, 119, 119, 0.05);
    font-weight: 600;
    color: #F67777;
}

.comparison-table th.premium-col {
    background-color: rgba(246, 119, 119, 0.1);
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 35px;
}

.faq-item {
    background-color: #fcfcfc;
    border: 1px solid #eaeaea;
    border-radius: 15px;
    padding: 25px 30px;
    transition: background-color 0.3s ease;
}

.faq-item:hover {
    background-color: #f5f5f5;
    border-color: #F67777;
}

.faq-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #363636;
    font-weight: 700;
    margin-bottom: 10px;
}

.faq-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Buy Now Buttons */
.buy-now-container {
    margin-top: 30px;
}

.buy-now-container.center-btn {
    text-align: center;
    margin-top: 40px;
}

.buy-now-container.final-buy-btn {
    margin-top: 50px;
}

.buy-now-btn {
    display: inline-block;
    background-color: #1B75B7;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    padding: 18px 45px;
    border-radius: 15px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(27, 117, 183, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.buy-now-btn:hover {
    background-color: #155e96;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(27, 117, 183, 0.4);
}

@media (max-width: 900px) {
    .detail-section {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .product-details-container {
        padding: 0 20px;
    }

    .detail-section {
        padding: 40px 25px;
    }

    .section-heading {
        font-size: 28px;
    }

    .feature-card {
        padding: 30px 25px;
    }

    .feature-icon {
        left: 25px;
    }
}

@media (max-width: 480px) {
    .product-details-container {
        padding: 0;
    }

}