/* RTL and Responsive Product Show Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f4f4f4;
    direction: rtl;
    line-height: 1.6;
    color: #333;
}

.product-container {
    display: flex;
    width: 95%;
    max-width: 1200px;
    margin: 1rem auto;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.product-gallery {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.main-image {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    height: 400px; /* ثبات الارتفاع */
    width: 100%; /* استخدام العرض الكامل */
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* الحفاظ على نسب الصورة */
    transition: transform 0.3s ease;
}

.thumbnail-images {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    height: 100px; /* ثبات الارتفاع */
}

.thumbnail-images .image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%; /* استخدام الارتفاع الكامل */
    border: 2px solid transparent;
}

.thumbnail-images .image-wrapper.active,
.thumbnail-images .image-wrapper:hover {
    border-color: #007bff;
}

.thumbnail-images img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-images .image-wrapper:hover {
    transform: scale(1.05);
}

.product-details {
    flex: 1;
    padding: 1.5rem;
    background-color: #f9f9f9;
}

.product-info {
    margin-bottom: 1.5rem;
}

.product-name {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.product-description {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.order-form {
    background-color: white;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.order-form input {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.order-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.order-button:hover {
    background-color: #27ae60;
}

/* Responsive Breakpoints */
@media screen and (max-width: 992px) {
    .product-container {
        flex-direction: column;
        width: 90%;
    }
    
    .product-name {
        font-size: 1.3rem;
    }
    
    .product-meta {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 576px) {
    .product-container {
        width: 98%;
        margin: 0.5rem auto;
    }
    
    .product-details {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 1.2rem;
    }
    
    .product-description, .product-meta {
        font-size: 0.8rem;
    }
    
    .order-form input {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .order-button {
        font-size: 0.9rem;
    }
}