﻿body {
}

/* Full width container */
.full-width-container {
    width: 100%;
    padding: 11px;
    margin: 0 auto;
}

/* Thumbnail images */
.thumb-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 80vh; /* scale with viewport height */
    overflow-y: auto; /* scroll if overflow */
}

    .thumb-list img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        cursor: pointer;
        border: 2px solid transparent;
        border-radius: 6px;
        transition: 0.2s;
        flex-shrink: 0;
    }

        .thumb-list img.active-thumb {
            border-color: #007bff;
        }

/* Main product image */
.main-image {
    /* width: 100%;
        max-height: 80vh; 
        object-fit: contain;
        border-radius: 10px; */
    width: 100%;
    aspect-ratio: 5 / 5;
    overflow: hidden;
    height: 100%;
    object-fit: cover;
}

/* Gaps between columns */
.thumb-column {
    margin-right: 15px;
}

.image-column {
    margin-right: 15px;
}

/* Responsive for mobile */
@media (max-width: 767px) {
    .thumb-list {
        flex-direction: row !important;
        max-height: none;
        overflow-x: auto;
        gap: 10px;
        margin-bottom: 15px;
    }

        .thumb-list img {
            flex: 0 0 auto;
        }
    /* Hide desktop thumbnail column */
    .thumb-column {
        display: none;
    }
    /* Overlay thumbnails on left side */
    .mobile-thumbs-left {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        position: absolute;
        /* left: 8px; */
        top: 50%;
        transform: translateY(-50%);
        /*  background: rgba(0, 0, 0, 0.35);
            padding: 8px; */
        border-radius: 10px;
        max-height: 70%;
        overflow-y: auto;
    }

        .mobile-thumbs-left img {
            width: 45px;
            height: 45px;
            object-fit: cover;
            border-radius: 6px;
            border: 2px solid transparent;
            cursor: pointer;
            flex-shrink: 0;
        }

            .mobile-thumbs-left img.active-thumb {
                border-color: #fff;
            }
    /* Make main image smaller on mobile */
    /* .main-image {
            max-height: 50vh;
            width: 90%; 
            margin: 0 auto; 
        } */
    /* Optional: reduce image column padding */
    .image-column {
        padding-left: 5px;
        padding-right: 5px;
    }
}

.image-wrapper {
    position: relative;
}

/* Hide mobile overlay on desktop */
.mobile-thumbs-left {
    display: none;
}

.pin-wrapper {
    position: relative;
    max-width: 220px;
    margin-top: 15px;
}

.pin-input {
    padding-right: 70px; /* space for button */
    height: 32px;
}

.pin-btn {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    height: 24px;
    font-size: 11px;
    padding: 0 8px;
    border-radius: 4px;
    border: none;
    background: transparent;
}
/* Hide only on mobile */
@media (max-width: 767px) {
    .toggle-content {
        display: none;
        padding: 10px 0;
    }

    .toggle-header {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #eee;
        padding: 10px 0;
    }
}

/* On desktop always visible */
@media (min-width: 768px) {
    .toggle-content {
        display: block !important;
    }

    .toggle-icon {
        display: none;
    }
}

