﻿/* PRODUCT DETAILS SECTION  */
.product-details-section {
    background: #f8f9fa;
    padding: 80px 0;
}

/* PRODUCT DETAILS CARD */
.product-details-card {
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    padding: 45px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* PRODUCT GALLERY */
.product-gallery {
    width: 100%;
}

/* MAIN IMAGE BOX */
.product-image-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 15px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

/* MAIN IMAGE */
.product-main-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0;
    padding: 0;
    border: 0;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.25s ease;
}

/* Very small hover zoom */
.product-image-container:hover .product-main-image {
    transform: scale(1.015);
}

/* GALLERY PREVIOUS / NEXT */
.gallery-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    cursor: pointer;
    z-index: 20;
    transition: background 0.25s ease, transform 0.25s ease;
}

    .gallery-navigation:hover {
        background: #EAA636;
        transform: translateY(-50%) scale(1.06);
    }

.gallery-prev {
    left: 18px;
}

.gallery-next {
    right: 18px;
}

/* ZOOM LABEL */
.zoom-label {
    position: absolute;
    left: 20px;
    bottom: 20px;
    padding: 9px 16px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    border-radius: 30px;
    font-size: 13px;
    line-height: 1.4;
    z-index: 15;
    pointer-events: none;
}

    .zoom-label i {
        margin-right: 6px;
    }

/* PRODUCT THUMBNAILS */
.product-thumbnails {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    padding: 0;
    flex-wrap: nowrap;
}

/* THUMBNAIL BUTTON */
.product-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
    min-width: 90px;
    min-height: 90px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

    .product-thumbnail:hover {
        border-color: #EAA636;
        transform: translateY(-3px);
    }

    .product-thumbnail.active {
        border-color: #EAA636;
        box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
    }

    /* THUMBNAIL IMAGE */
    .product-thumbnail img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        object-fit: contain;
        object-position: center;
        border-radius: 7px;
        user-select: none;
        -webkit-user-drag: none;
    }

/* FALLBACK */
.product-thumbnails > img {
    display: block;
    width: 90px;
    height: 90px;
    max-width: 90px;
    max-height: 90px;
    object-fit: contain;
    border-radius: 10px;
    padding: 3px;
    border: 2px solid transparent;
    cursor: pointer;
}

/* PRODUCT CATEGORY */
.product-category {
    color: #c19a6b;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* PRODUCT TITLE */
.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    color: #222222;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* PRODUCT LINE */
.product-line {
    width: 70px;
    height: 3px;
    background: #c19a6b;
    margin-bottom: 25px;
}

/* SHORT DESCRIPTION */
.product-short-description {
    font-size: 18px;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 30px;
}

/* DETAIL BLOCK */
.detail-block {
    margin-top: 30px;
}

    .detail-block h3 {
        font-family: 'Playfair Display', serif;
        font-size: 22px;
        color: #222222;
        margin-bottom: 15px;
    }

        .detail-block h3 i {
            color: #c19a6b;
            margin-right: 8px;
        }

    .detail-block p {
        color: #666666;
        line-height: 1.8;
        margin-bottom: 0;
    }

/* PRODUCT HIGHLIGHTS */
.product-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

    .product-list li {
        display: flex;
        gap: 12px;
        align-items: center;
        margin-bottom: 12px;
        color: #555555;
        line-height: 1.5;
    }

        .product-list li i {
            color: #c19a6b;
            flex-shrink: 0;
        }

/* PRODUCT INFO TABLE */
.product-info-table {
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 18px;
    border-bottom: 1px solid #eeeeee;
}

    .info-row:last-child {
        border-bottom: none;
    }

    .info-row span {
        color: #777777;
    }

    .info-row strong {
        color: #333333;
        text-align: right;
        font-weight: 600;
    }

/* BUSINESS INFORMATION */
.business-information {
    margin-top: 35px;
    padding: 25px;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    background: #fafafa;
}

    .business-information h3 {
        font-family: 'Playfair Display', serif;
        font-size: 22px;
        color: #222222;
        margin-bottom: 20px;
    }

        .business-information h3 i {
            color: #c19a6b;
            margin-right: 8px;
        }

.business-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
}

    .business-info-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .business-info-item > i {
        color: #c19a6b;
        font-size: 18px;
        width: 22px;
        flex-shrink: 0;
        margin-top: 3px;
    }

    .business-info-item div {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .business-info-item span {
        color: #888888;
        font-size: 13px;
    }

    .business-info-item strong {
        color: #333333;
        font-size: 15px;
        font-weight: 600;
    }

/* BACK BUTTON */
.product-back-button {
    margin-top: 30px;
    padding: 12px 25px;
}

/* LIGHTBOX */
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 90px;
    background: rgba(0, 0, 0, 0.96);
}

    .product-lightbox.show {
        display: flex;
    }

    /* LIGHTBOX IMAGE */
    .product-lightbox img {
        display: block;
        width: auto;
        height: auto;
        max-width: 90vw;
        max-height: 88vh;
        object-fit: contain;
        border-radius: 8px;
        user-select: none;
        -webkit-user-drag: none;
        box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
    }

/* LIGHTBOX CLOSE */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #222222;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

    .lightbox-close:hover {
        background: #EAA636;
        color: #ffffff;
        transform: scale(1.05);
    }

/* LIGHTBOX PREVIOUS / NEXT */
.lightbox-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background 0.25s ease, transform 0.25s ease;
}

    .lightbox-navigation:hover {
        background: #EAA636;
        transform: translateY(-50%) scale(1.05);
    }

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

/* NOT FOUND */
.product-not-found {
    display: none;
    text-align: center;
    padding: 100px 20px;
}

    .product-not-found i {
        font-size: 60px;
        color: #c19a6b;
    }

    .product-not-found h2 {
        margin-top: 20px;
        color: #222222;
    }

    .product-not-found p {
        color: #666666;
    }

/* TABLET */

@media (max-width: 991px) {
    .product-details-section {
        padding: 65px 0;
    }

    .product-details-card {
        padding: 30px;
    }

    .product-image-container {
        height: 520px;
    }

    .product-title {
        font-size: 36px;
    }

    .product-lightbox {
        padding: 60px 65px;
    }
}

/* MOBILE */
@media (max-width: 575px) {
    .product-details-section {
        padding: 45px 0;
    }

    .product-details-card {
        padding: 20px;
    }

    .product-image-container {
        height: 420px;
        border-radius: 12px;
    }

    .product-title {
        font-size: 30px;
    }

    .product-short-description {
        font-size: 16px;
    }

    /* THUMBNAILS */
    .product-thumbnails {
        gap: 10px;
        margin-top: 14px;
    }

    .product-thumbnail {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
        min-width: 72px;
        min-height: 72px;
    }

    /* GALLERY ARROWS */
    .gallery-navigation {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    /* ZOOM LABEL */
    .zoom-label {
        left: 12px;
        bottom: 12px;
        padding: 7px 11px;
        font-size: 11px;
    }

    /* PRODUCT INFO */
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

        .info-row strong {
            text-align: left;
        }

    /* BUSINESS INFORMATION */
    .business-information {
        padding: 18px;
    }

    .business-info-item {
        gap: 10px;
    }

    /* LIGHTBOX*/
    .product-lightbox {
        padding: 70px 15px;
    }

        .product-lightbox img {
            max-width: 94vw;
            max-height: 78vh;
        }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        font-size: 27px;
    }

    .lightbox-navigation {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }
}
