/* Product Gallery Custom Styles */

/* Main carousel images - fixed height with proper aspect ratio */
.gallery-product img {
    max-height: 500px;
    width: 100%;
    object-fit: contain;
    object-position: center;
    background: #f8fafc;
}

/* Thumbnails - uniform height */
.flex-control-thumbs {
    margin: 5px 0 0;
    position: static;
    overflow: hidden;
}

.flex-control-thumbs li {
    width: 25%;
    float: left;
    margin: 0;
    padding: 2px;
}

.flex-control-thumbs img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    object-position: center;
    display: block;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.flex-control-thumbs img:hover {
    opacity: 1;
    border-color: #6366f1;
}

.flex-control-thumbs .flex-active {
    opacity: 1;
    cursor: default;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 1px #6366f1;
}

/* Navigation arrows - better visibility */
.flex-direction-nav a {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 50px;
    height: 50px;
    margin: -25px 0 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-indent: -9999px !important;
    overflow: hidden !important;
    font-size: 0 !important;
}

.flex-direction-nav a:before {
    font-family: "flexslider-icon" !important;
    font-size: 32px !important;
    color: #1e293b !important;
    text-shadow: none !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: block !important;
}

.flex-direction-nav .flex-prev:before {
    content: '\f001' !important;
}

.flex-direction-nav .flex-next:before {
    content: '\f002' !important;
}

.flexslider:hover .flex-direction-nav .flex-prev {
    left: 15px;
}

.flexslider:hover .flex-direction-nav .flex-next {
    right: 15px;
}

.flex-direction-nav a:hover {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media screen and (max-width: 860px) {
    .gallery-product img {
        max-height: 400px;
    }
    
    .flex-control-thumbs img {
        height: 60px;
    }
    
    .flex-direction-nav .flex-prev {
        left: 10px;
    }
    
    .flex-direction-nav .flex-next {
        right: 10px;
    }
}

@media screen and (max-width: 640px) {
    .gallery-product img {
        max-height: 300px;
    }
    
    .flex-control-thumbs img {
        height: 50px;
    }
}
