/* Enhanced Product Detail Styles */

/* Product gallery */
.product-gallery {
    margin-bottom: 30px;
}

.product-gallery-main {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    height: 500px; /* Increased height */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.product-gallery-main img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 10px; /* Added padding */
}

.product-gallery-main img:hover {
    transform: scale(1.1); /* Increased zoom effect */
    cursor: pointer; /* Show pointer cursor on hover */
}

.product-gallery-thumbs {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.gallery-thumb.active {
    border-color: var(--primary);
    opacity: 1;
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Zoom functionality */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.zoom-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.zoom-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.zoom-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.zoom-prev, .zoom-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.zoom-prev:hover, .zoom-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

.zoom-prev {
    left: 20px;
}

.zoom-next {
    right: 20px;
}

.zoom-indicator {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
}

/* Enhanced ratings */
.enhanced-ratings {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-gallery-main {
        height: 300px;
    }
    
    .gallery-thumb {
        width: 60px;
        height: 60px;
    }
}

/* Animated loading for ratings */
@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

.star-ratings.loading {
    animation: pulse 1.5s infinite;
}

/* Enhanced product specifications */
.product-specs {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.spec-item {
    display: flex;
    margin-bottom: 8px;
}

.spec-label {
    font-weight: 600;
    width: 120px;
    flex-shrink: 0;
}

.spec-value {
    color: #555;
}
