.arabian-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    direction: rtl;
    align-items: center; /* Center the gallery if needed */
    max-width: 700px;
    width: 100%;
    margin-bottom: 30px;
}

.arabian-gallery-main-image {
    max-width: 700px;
    width: 100%;
    height: 724px;
    border-radius: 20px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #D8A862;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    position: relative; /* For arrow positioning */
}

.arabian-gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.gallery-nav-prev,
.gallery-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: #D8A862;
    border: none;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0.8;
}

.gallery-nav-prev:hover,
.gallery-nav-next:hover {
    background-color: #c49652;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-prev {
    right: 20px;
}

.gallery-nav-next {
    left: 20px;
}

.arabian-gallery-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 0px 0px 17px;
    scrollbar-width: thin;
    scrollbar-color: #D8A862 transparent;
    width: 100%;
}

.arabian-gallery-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.arabian-gallery-thumbnails::-webkit-scrollbar-thumb {
    background: #D8A862;
    border-radius: 10px;
}

.arabian-gallery-thumb {
    width: 158px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #D8A862;
    transition: all 0.3s ease;
    background: #fff;
    opacity: 1;
}

.arabian-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arabian-gallery-thumb.active {
    border-color: #D8A862;
    border-width: 2px; /* Keep active distinction */
    transform: scale(0.98);
}

.arabian-gallery-thumb:hover {
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .arabian-gallery-main-image {
        height: auto;
        aspect-ratio: 700/724;
    }
    .arabian-gallery-thumb {
        width: 120px;
        height: 84px;
    }
    
    .gallery-nav-prev,
    .gallery-nav-next {
        width: 45px !important;
        height: 45px !important;
        font-size: 14px !important;
    }
    
    .gallery-nav-prev {
        right: 10px !important;
    }
    
    .gallery-nav-next {
        left: 10px !important;
    }
}
