.product-layout-wrapper {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.product-gallery-column {
    flex: 0 0 400px;
}

.product-info-column {
    flex: 1;
}

.product-gallery-container {
    width: 400px;
}

.main-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* This maintains aspect ratio */
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: none; /* Remove this conflicting rule */
}

.gallery-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.nav-prev,
.nav-next {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.thumbnail.active {
    border-color: #4B0082;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.product-options {
    margin-bottom: 2rem;
}

.product-purchase {
    margin-bottom: 2rem;
}

.product-description {
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .product-layout-wrapper {
        flex-direction: column;
    }
    
    .product-gallery-column {
        width: 100%;
    }
    
    .product-gallery-container,
    .main-image-container,
    .main-image {
        width: 100%;
        height: auto;
    }
}