* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    display: flex;
    gap: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-images {
    display: flex;
    gap: 20px;
    flex: 1;
}

/* Thumbnail List */
.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #ff9900;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

/* Main Image Container */
.main-image-container {
    position: relative;
    flex: 1;
    max-width: 500px;
    height: 500px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: crosshair;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

/* Zoom Lens */
.zoom-lens {
    position: absolute;
    border: 2px solid #ff9900;
    background: rgba(255, 153, 0, 0.1);
    width: 150px;
    height: 150px;
    display: none;
    pointer-events: none;
    z-index: 10;
}

/* Zoom Result */
.zoom-result {
    position: absolute;
    left: 110%;
    top: 0;
    width: 400px;
    height: 500px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background-repeat: no-repeat;
    background-size: 200%;
    display: none;
    z-index: 100;
}

.main-image-container:hover .zoom-lens,
.main-image-container:hover .zoom-result {
    display: block;
}

/* Product Info */
.product-info {
    flex: 1;
    max-width: 500px;
}

.product-info h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.price {
    font-size: 28px;
    color: #B12704;
    font-weight: bold;
    margin-bottom: 20px;
}

.description {
    color: #666;
    line-height: 1.6;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.lightbox.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.close-lightbox:hover {
    color: #ff9900;
}

.lightbox-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.lightbox-image-container {
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightboxImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 40px;
    padding: 20px 25px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 1002;
}

.lightbox-nav:hover {
    background-color: rgba(255, 153, 0, 0.8);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Lightbox Thumbnails */
.lightbox-thumbnails {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 80%;
}

.lightbox-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.lightbox-thumbnails img:hover,
.lightbox-thumbnails img.active {
    border-color: #ff9900;
    opacity: 1;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
    }

    .product-images {
        flex-direction: column;
    }

    .thumbnail-list {
        flex-direction: row;
        width: 100%;
    }

    .zoom-result {
        display: none !important;
    }

    .main-image-container {
        max-width: 100%;
        height: 400px;
    }

    .lightbox-content {
        width: 95%;
    }

    .lightbox-nav {
        font-size: 30px;
        padding: 15px 20px;
    }
}
