
.modern-product-detail {
    max-width: 100%;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
    direction: rtl;
}

.suggestions-modern {
    padding: 16px;
    background: white;
    border-radius: 24px;
    margin: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.suggestions-header-modern {
    margin-bottom: 16px;
}

.suggestions-title-modern {
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestions-icon {
    font-size: 28px;
}

.suggestions-title-modern h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 4px 0;
}

.suggestions-title-modern p {
    font-size: 12px;
    color: #718096;
    margin: 0;
}

.suggestions-scroll-modern {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.suggestions-track {
    display: flex;
    gap: 12px;
    padding: 4px 0;
}

.suggestion-card-modern {
    flex: 0 0 120px;
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.suggestion-card-modern:active {
    transform: scale(0.96);
}

.suggestion-image-modern {
    position: relative;
    height: 100px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.suggestion-image-modern img {
    max-width: 100%;
    max-height: 76px;
    object-fit: contain;
}

.suggestion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.suggestion-card-modern:active .suggestion-overlay {
    opacity: 1;
}

.suggestion-overlay i {
    color: white;
    font-size: 20px;
}

.suggestion-info-modern {
    padding: 8px;
}

.suggestion-info-modern h6 {
    font-size: 12px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-info-modern span {
    font-size: 10px;
    color: #718096;
}

.product-main-modern {
    padding: 16px;
}
.product-gallery-modern {
    margin-bottom: 20px;
}

.gallery-container {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.gallery-main {
    position: relative;
    background: #f8f9fa;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.gallery-thumbs {
    padding: 12px;
    background: white;
    border-top: 1px solid #edf2f7;
}

.thumb-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.thumb-item {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumb-item.active {
    border-color: #4a1726;
}

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

.product-info-modern {
    background: white;
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.product-title-modern {
    font-size: 22px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.product-price-modern {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px dashed #edf2f7;
}

.price-current {
    font-size: 32px;
    font-weight: 800;
    color: #48bb78;
}

.price-current span {
    font-size: 18px;
}

.price-old {
    font-size: 16px;
    color: #a0aec0;
}

.product-description-modern {
    margin-bottom: 20px;
}

.product-description-modern p {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

.option-section-modern {
    margin-bottom: 20px;
}

.option-label-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.option-label-modern i {
    color: #4a1726;
}

.size-options-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-btn {
    min-width: 55px;
    padding: 8px 16px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn:active {
    transform: scale(0.95);
}

.size-btn.selected {
    background: #4a1726;
    border-color: #4a1726;
    color: white;
}

.color-options-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.color-btn:active {
    transform: scale(0.9);
}

.color-btn.selected {
    border-color: #4a1726;
    box-shadow: 0 0 0 2px #4a1726;
}

.color-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 8px;
}

.color-btn:active .color-tooltip {
    opacity: 1;
}

.action-buttons-modern {
    margin: 24px 0 20px;
}

.add-to-cart-modern {
    width: 100%;
    background: linear-gradient(135deg, #4a1726 0%, #d39e7f 100%);
    border: none;
    padding: 16px 24px;
    border-radius: 60px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.add-to-cart-modern:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.share-section-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #edf2f7;
}

.share-label {
    font-size: 13px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-icons {
    display: flex;
    gap: 12px;
}

.share-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.share-icon:active {
    transform: scale(0.9);
}

.share-icon.facebook { background: #1877f2; }
.share-icon.twitter { background: #1da1f2; }
.share-icon.whatsapp { background: #25d366; }
.share-icon.telegram { background: #0088cc; }
.share-icon.instagram { background: #e4405f; }



.product-tabs-modern {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.tabs-header-modern {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #edf2f7;
}

.tab-btn {
    flex: 1;
    padding: 16px 12px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.tab-btn.active {
    color: #4a1726;
    background: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a1726, #d39e7f);
}

.tab-badge {
    background: #ed8936;
    color: white;
    padding: 2px 6px;
    border-radius: 20px;
    font-size: 10px;
}

.tabs-content-modern {
    padding: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.description-content {
    font-size: 14px;
    line-height: 1.7;
    color: #4a5568;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.review-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 16px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
}

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

.reviewer-details h6 {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 4px 0;
}

.review-date {
    font-size: 10px;
    color: #a0aec0;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fbbf24;
    font-size: 12px;
}

.review-rating span {
    color: #718096;
    font-weight: 600;
}

.review-body p {
    font-size: 13px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

.empty-reviews {
    text-align: center;
    padding: 40px 20px;
}

.empty-reviews i {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 12px;
}

.empty-reviews p {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

.add-review-form {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 20px;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.form-header i {
    font-size: 24px;
    color: #4a1726;
}

.form-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.rating-input {
    margin-bottom: 16px;
}

.rating-input label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.required {
    color: #e53e3e;
}

.stars-rating {
    display: flex;
    gap: 8px;
}

.stars-rating i {
    font-size: 28px;
    cursor: pointer;
    color: #cbd5e0;
    transition: color 0.2s;
}

.stars-rating i.active {
    color: #fbbf24;
}

.comment-input {
    margin-bottom: 16px;
}

.comment-input label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.comment-input textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.comment-input textarea:focus {
    outline: none;
    border-color: #4a1726;
}

.submit-review-btn {
    width: 100%;
    background: linear-gradient(135deg, #4a1726, #d39e7f);
    border: none;
    padding: 12px;
    border-radius: 60px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-review-btn:active {
    transform: scale(0.97);
}

.login-prompt {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 20px;
}

.login-prompt i {
    font-size: 48px;
    color: #cecfd3;
    margin-bottom: 12px;
}

.login-prompt p {
    font-size: 14px;
    color: #718096;
    margin: 0 0 16px 0;
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #4a1726, #d39e7f);
    color: white;
    text-decoration: none;
    border-radius: 60px;
    font-size: 14px;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.add-to-cart-modern.loading {
    opacity: 0.7;
    pointer-events: none;
}

.add-to-cart-modern.loading i:first-child {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .product-gallery-modern {
        margin-bottom: 0px;
    }
    .product-title-modern {
        font-size: 15px;
    }
    .price-current {
        font-size: 20px;
    }
    .product-main-modern {
        padding: 2px;
    }

    .gallery-container{
        box-shadow: none;
        background: none;
    }
    .gallery-main {
        padding: 0;
        min-height: none;
        background: none;
    }
    .gallery-main img {
        max-height: 200px;
    }
    .option-label-modern {
        font-size: 12px;
        
    }

    .size-btn {
        padding: 4px;
        font-size: 12px;
    }
    .color-btn {
        width: 25px;
        height: 25px;
    }
    .action-buttons-modern{
        /* margin: 0px; */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .add-to-cart-modern {
        width: 50%;
        font-size: 14px;
        padding: 12px;
    }
    .login-prompt {
        padding: 10px;
    }
    .login-prompt i {
        font-size: 30px;
    }
    .login-link {
        padding: 10px;
        font-size: 10px;
    }
    .login-prompt i {
        font-size: 16px;
    margin-bottom: -3px;
    }
}


/* CSS إضافي لإصلاح أي مشاكل */
.product-gallery-section {
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.gallery-top {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.gallery-thumbs {
    margin-top: 15px;
}

.gallery-thumbs .swiper-wrapper {
    display: flex;
    align-items: center;
}

.gallery-thumbs .swiper-slide {
    width: 80px !important;
    height: 80px !important;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    transition: all 0.2s;
}

.gallery-thumbs .swiper-slide-thumb-active {
    border-color: #4a1726 !important;
    box-shadow: 0 0 0 2px rgba(102,126,234,0.3);
}

.gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ضبط حجم الصور في السلايدر الرئيسي */
.gallery-top .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.gallery-top .swiper-slide img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* تحسين شكل الأزرار */
.swiper-button-next, 
.swiper-button-prev {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    width: 45px;
    height: 45px;
}

.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
    color: #4a1726;
}

/* للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .gallery-top .swiper-slide {
        min-height: 250px;
    }
    
    .gallery-top .swiper-slide img {
        max-height: 250px;
    }
    
    .gallery-thumbs .swiper-slide {
        width: 55px !important;
        height: 55px !important;
    }
}


/* تنسيق Swiper للمنتج */
.swiper-container {
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* السلايدر الرئيسي */
.gallery-top {
    height: 400px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #f8f9fa;
}

.gallery-top .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
}

.gallery-top .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 380px;
}

/* السلايدر المصغر */
.gallery-thumbs {
    height: 100px;
    margin-top: 15px;
    box-sizing: border-box;
    padding: 0 10px;
}

.gallery-thumbs .swiper-slide {
    width: 80px;
    height: 80px;
    opacity: 0.5;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.gallery-thumbs .swiper-slide-active {
    opacity: 1;
    border-color: #4a1726;
}

.gallery-thumbs .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* أزرار التصفح */
.swiper-button-next,
.swiper-button-prev {
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #4a1726;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px!important;
    font-weight: bold;
}


/* نقاط التنقل */
.swiper-pagination-bullet {
    background: #4a1726;
}

/* للشاشات الصغيرة */
@media (max-width: 768px) {
    .gallery-top {
        height: 300px;
    }
    
    .gallery-top .swiper-slide img {
        max-height: 280px;
    }
    
    .gallery-thumbs {
        height: 70px;
    }
    
    .gallery-thumbs .swiper-slide {
        width: 60px;
        height: 60px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px!important;
    }
}