﻿/* ============================
   PRODUCT PAGE LAYOUT
   ============================ */

.product-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 16px 64px;
    display: grid;
    gap: 40px;
}

    .product-content p {
        text-align: justify;
        text-justify: inter-word;
        text-align-last: left;
    }

/* Intro paragraph */
.product-intro p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================
   RESPONSIVE IMAGE GALLERY
   ============================ */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

    .product-gallery img {
        width: 100%;
        border-radius: 8px;
        box-shadow: var(--shadow-medium);
    }

/* ============================
   PRODUCT IMAGE CAROUSEL
   ============================ */

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: var(--gray-200);
}

.carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

    .carousel-track figure {
        flex: 0 0 100%;
        margin: 0;
        position: relative;
    }

    .carousel-track img {
        width: 100%;
        height: 420px;
        object-fit: cover;
        display: block;
        border-radius: 8px;
    }

    .carousel-track figcaption {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 12px 16px;
        background: var(--overlay-dark);
        color: var(--white);
        font-size: 0.9rem;
        border-radius: 0 0 8px 8px;
    }

/* CAPTION BELOW IMAGE */
.carousel-caption-below .carousel-track figure {
    display: flex;
    flex-direction: column;
}

.carousel-caption-below .carousel-track figcaption {
    position: static;
    background: var(--overlay-dark);
    color: var(--white);
    padding: 12px 16px;
    width: 100%;
    border-radius: 0 0 8px 8px; /* match image rounding */
}

/* HEIGHT-DRIVEN CAROUSEL MODE (auto-shrinks to prevent overflow) */

.carousel-height-driven .carousel-track figure {
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-height-driven .carousel-track img {
    height: 420px; /* height leads */
    width: auto; /* width scales proportionally */
    max-width: 100%; /* prevents horizontal overflow */
    object-fit: contain; /* no cropping */
}


/* Navigation buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--carousel-btn);
    color: var(--white);
    border: none;
    padding: 10px 14px;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10;
}

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .carousel-btn:hover {
        background: var(--carousel-btn-hover);
    }

/* ============================
   PRODUCT DESCRIPTION
   ============================ */

.product-description p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
/* ============================
   PRODUCT CARD LAYOUT
   ============================ */

.product-card {
    display: flex;
    flex-direction: column;
    padding: 24px; /* matches global .card padding */
}

    /* Product card heading */
    .product-card h3 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--text-primary);
        margin-bottom: 0.75rem;
    }
        .product-card h3 .service-icon {
            margin-left: 12px;
        }

    /* Product card paragraph text */
    .product-card p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: var(--text-secondary);
    }

    /* Product card list */
    .product-card ul {
        margin: 12px 0 0;
        padding-left: 0;
        list-style: none;
        font-size: 0.9rem; /* slightly smaller than normal text */
        line-height: 1.5;
    }

    /* Product card list items */
    .product-card li {
        position: relative;
        margin-bottom: 6px;
        padding-left: 1.2rem;
    }

        /* Product card bullet */
        .product-card li::before {
            content: "•";
            position: absolute;
            left: 0;
            top: -0.15rem;
            font-size: 1.2rem;
            color: var(--card-accent);
        }

/* ============================
   SPECS CARD (uses global .card)
   ============================ */

.product-specs {
    padding: 24px;
}

/* ============================
   CTA BUTTONS
   ============================ */

.product-cta {
    margin-top: 16px;
}

    .product-cta .btn {
        margin-top: 8px;
    }
