﻿/* ===============================
   PRODUCT DETAIL POPUP (CARD)
   =============================== */

.product-detail {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    display: none;
    z-index: 1050; /* higher than header/gallery */
    font-family: inherit;
}

/* show popup */
.product-detail--visible {
    display: block;
}

/* dark overlay behind card */
.product-detail__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* slightly lighter overlay */
}

/* the white card */
.product-detail__card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 480px;
    background: #ffffff;
    padding: 24px 28px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 1;
    /* initial (hidden) animation state */
    transform: translate(-50%, -40%);
    opacity: 0;
    transition: all 0.35s ease;
}

/* animate card in when visible */
.product-detail--visible .product-detail__card {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* close (×) button */
.product-detail__close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666666;
}

    .product-detail__close:hover {
        color: #000000;
    }

/* title */
.product-detail__card h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 4px 0 16px;
    color: #333333;
}

/* list */
.product-detail__list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

    .product-detail__list li {
        position: relative;
        padding-left: 18px;
        margin-bottom: 6px;
        font-size: 16px;
        color: #555555;
    }

        /* green diamond bullet */
        .product-detail__list li::before {
            content: "◆";
            position: absolute;
            left: 0;
            top: 2px;
            font-size: 10px;
            color: #008b3d; /* use your brand green */
        }

        /* subtle hover effect */
        .product-detail__list li:hover {
            color: #006f2c;
        }

/* small screens tweaks */
@media (max-width: 575.98px) {
    .product-detail__card {
        padding: 20px 18px;
        max-width: 95%;
    }

        .product-detail__card h3 {
            font-size: 20px;
        }

    .product-detail__list li {
        font-size: 15px;
    }
}
