/* ========== صفحة تفاصيل المنتج ========== */
.product-page {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 70px);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* معرض الصور */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(101, 67, 33, 0.1);
    transition: all 0.3s ease;
}

.main-image:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(101, 67, 33, 0.15);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-images {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
}

.thumbnail {
    width: 85px;
    height: 85px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    position: relative;
}

.thumbnail.active {
    border-color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(44, 192, 98, 0.3);
}

.thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(101, 67, 33, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail:hover::after {
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.thumbnail:hover img {
    transform: scale(1.1);
}

/* معلومات المنتج */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.product-info h1 {
    font-size: 2.4rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    padding-bottom: 15px;
}

.product-info h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ========== زرار السعر الزجاجي ========== */
.product-price-glass {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    margin: 15px 0 25px 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* تأثير زجاجي داخلي */
.product-price-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 50px;
    z-index: 1;
}

/* النصوص داخل الزرار */
.product-price-glass .price-icon {
    font-size: 1.5rem;
    z-index: 2;
    position: relative;
}

.product-price-glass .price-amount {
    z-index: 2;
    position: relative;
    letter-spacing: -0.5px;
}

/* تأثير hover */
.product-price-glass:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

/* تأثير active */
.product-price-glass:active {
    transform: translateY(-1px);
}

.product-description h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-description p {
    color: #555;
    line-height: 1.9;
    font-size: 1.1rem;
    margin: 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
}

/* اختيار الكمية */
.quantity-selector h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 10px 15px;
    border-radius: 30px;
    width: fit-content;
    border: 2px solid #e2e8f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 15px;
    border: none;
    background: var(--accent-color);
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.quantity-btn.minus {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.quantity-btn.plus {
    background: linear-gradient(135deg, #2cc062, #25a852);
}

.quantity-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-color);
    min-width: 60px;
    text-align: center;
    background: #ffffff;
    padding: 5px 10px;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

/* أزرار الشراء */
.product-actions {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.add-to-cart-btn, .buy-now-btn {
    flex: 1;
    min-width: 220px;
    padding: 20px 35px;
    border-radius: 16px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before,
.buy-now-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-to-cart-btn {
    background: transparent;
    color: #000000;
    border: 3px solid #000000;
    position: relative;
    z-index: 1;
}

.buy-now-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53, #ff6b6b);
    background-size: 200% 100%;
    color: white;
    border: 3px solid transparent;
    animation: gradientShift 3s ease infinite;
    position: relative;
    z-index: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========== قسم آراء العملاء - تصميم سلايدر ========== */
.simple-reviews {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

/* Swiper Container */
.reviews-swiper {
    width: 100%;
    padding: 40px 0 70px;
    position: relative;
}

/* Swiper Slides */
.reviews-swiper .swiper-slide {
    width: 320px; /* عرض ثابت للكروت */
    height: 450px; /* ارتفاع ثابت للكروت */
    border-radius: 24px;
    overflow: hidden;
    background: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* تأثير 3D للكروت */
.reviews-swiper .swiper-slide {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* الكروت الجانبية بتكون أصغر وأغمق */
.reviews-swiper .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.6;
    transform: scale(0.85);
    filter: brightness(0.9);
}

/* الكرت النشط بيكون واضح وأكبر */
.reviews-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
    box-shadow: 0 25px 50px rgba(101, 67, 33, 0.2);
    z-index: 2;
}

/* الصور داخل الكروت */
.reviews-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* تأثير تكبير الصورة عند التحويم */
.reviews-swiper .swiper-slide:hover img {
    transform: scale(1.05);
}

/* تأثير ظل داخلي للصورة */
.reviews-swiper .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0) 70%, 
        rgba(0,0,0,0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

/* أسهم التنقل */
.reviews-swiper .swiper-button-next,
.reviews-swiper .swiper-button-prev {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.reviews-swiper .swiper-button-next:after,
.reviews-swiper .swiper-button-prev:after {
    font-size: 24px;
    font-weight: bold;
}

.reviews-swiper .swiper-button-next:hover,
.reviews-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.reviews-swiper .swiper-button-next {
    right: 10px;
}

.reviews-swiper .swiper-button-prev {
    left: 10px;
}

/* الدوتس (Pagination) */
.reviews-swiper .swiper-pagination {
    bottom: 10px;
}

.reviews-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.reviews-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
    transform: scale(1.2);
}

/* ========== Media Queries للسلايدر ========== */

/* للشاشات المتوسطة (تابلت) */
@media (max-width: 1024px) {
    .reviews-swiper .swiper-slide {
        width: 280px;
        height: 400px;
    }
    
    .reviews-swiper .swiper-button-next,
    .reviews-swiper .swiper-button-prev {
        width: 50px;
        height: 50px;
    }
    
    .reviews-swiper .swiper-button-next:after,
    .reviews-swiper .swiper-button-prev:after {
        font-size: 20px;
    }
}

/* للشاشات الصغيرة (موبايل) */
@media (max-width: 768px) {
    .simple-reviews {
        padding: 40px 0 60px;
    }
    
    .reviews-swiper {
        padding: 30px 0 50px;
    }
    
    .reviews-swiper .swiper-slide {
        width: 250px;
        height: 350px;
    }
    
    /* نخفي الأسهم على الموبايل علشان مكانهم يبقى واسع */
    .reviews-swiper .swiper-button-next,
    .reviews-swiper .swiper-button-prev {
        display: none;
    }
    
    /* نخلي الدوتس أكبر شوية */
    .reviews-swiper .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }
}

/* للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .reviews-swiper .swiper-slide {
        width: 220px;
        height: 320px;
        border-radius: 18px;
    }
    
    .reviews-swiper .swiper-slide:not(.swiper-slide-active) {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

/* ========== قسم تقييمات المنتج ========== */
.product-reviews-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    margin-top: 40px;
    border-top: 1px solid rgba(101, 67, 33, 0.1);
}

.reviews-summary {
    padding: 25px;
    margin: 30px auto;
    max-width: 800px;
}

.average-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.rating-stars-large {
    font-size: 1.5rem;
    color: #ffc107;
    letter-spacing: 5px;
    direction: ltr;
    display: inline-block;
}

.rating-stars-large .star {
    cursor: default;
}

.rating-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.average-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.total-reviews {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* نموذج إضافة التقييم */
.add-review-form {
    padding: 20px;
    margin: 40px auto;
    max-width: 800px;
}

.add-review-form h3 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px dashed rgba(101, 67, 33, 0.2);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

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

.rating-input p {
    color: #555;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.stars-selector {
    font-size: 2.2rem;
    color: #ddd;
    letter-spacing: 8px;
    direction: ltr;
    display: inline-block;
    cursor: pointer;
}

.stars-selector .star-select {
    transition: all 0.2s ease;
    display: inline-block;
}

.stars-selector .star-select:hover,
.stars-selector .star-select.active {
    color: #ffc107;
    transform: scale(1.2);
}

.form-group {
    margin-bottom: 22px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: 'El Messiri', sans-serif;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(44, 192, 98, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.submit-review-btn {
    background: linear-gradient(135deg, var(--accent-color), #25a852);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin: 25px 0 15px;
    font-family: 'El Messiri', sans-serif;
    letter-spacing: -0.5px;
}

.submit-review-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(44, 192, 98, 0.3);
    background: linear-gradient(135deg, #25a852, var(--accent-color));
}

.submit-review-btn:active {
    transform: translateY(-1px);
}

.form-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #adb5bd;
}

/* شبكة التقييمات */
.reviews-grid-container {
    margin-top: 50px;
}

.reviews-grid-container h3 {
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.product-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.product-review-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(224, 224, 224, 0.6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(101, 67, 33, 0.3);
}

.product-review-card .review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.product-review-card .user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f1f5f9;
    flex-shrink: 0;
}

.product-review-card .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-review-card .user-info {
    flex: 1;
}

.product-review-card .user-name {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.product-review-card .review-date {
    color: #6b7280;
    font-size: 0.85rem;
}

.product-review-card .review-stars {
    color: #ffc107;
    font-size: 1.3rem;
    letter-spacing: 2px;
    direction: ltr;
    margin: 15px 0;
}

.product-review-card .review-comment {
    color: #555;
    line-height: 1.7;
    font-size: 0.9rem;
    margin: 18px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.product-review-card .review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #e5e7eb;
}

.product-review-card .like-btn {
    background: transparent;
    border: 1.5px solid #e5e7eb;
    color: #6b7280;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'El Messiri', sans-serif;
}

.product-review-card .like-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.product-review-card .like-btn.liked {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.product-review-card .like-btn.liked:hover {
    background: #b91c1c;
}

.product-review-card .like-count {
    font-weight: 700;
}

.reviews-empty {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    color: #6b7280;
    font-size: 1.1rem;
    background: #f9fafb;
    border-radius: 16px;
    border: 2px dashed #d1d5db;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'El Messiri', sans-serif;
}

.load-more-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(101, 67, 33, 0.2);
}

/* رسائل الحالة */
.review-message {
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    text-align: center;
    font-weight: 600;
    display: none;
}

.review-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
}

.review-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

.review-message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    display: block;
}

/* الصور الرمزية */
.avatar-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.avatar-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.avatar-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.avatar-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.avatar-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.avatar-6 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ========== شاشة التحميل - الموجة المتحركة (النسخة البسيطة) ========== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* ⬇⬇⬇ التأثير الزجاجي الشفاف جداً ⬇⬇⬇ */
background: rgba(255, 255, 255, 0.3);
backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* ⬅ لدعم سفاري */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

/* الموجة المتحركة - نفس شكل المعرض */
.wave-loader {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    height: 70px;
}

.wave-loader span {
    width: 14px;
    height: 30px;
    background: #663e15;
    border-radius: 7px;
    animation: wave 1.2s infinite ease-in-out;
}

.wave-loader span:nth-child(1) { 
    height: 40px;
    animation-delay: 0s;
}
.wave-loader span:nth-child(2) { 
    height: 55px;
    animation-delay: -0.1s;
}
.wave-loader span:nth-child(3) { 
    height: 70px;
    animation-delay: -0.2s;
}
.wave-loader span:nth-child(4) { 
    height: 55px;
    animation-delay: -0.3s;
}
.wave-loader span:nth-child(5) { 
    height: 40px;
    animation-delay: -0.4s;
}

/* ========== الأنيميشات ========== */

/* حركة الموجة - نفس أنيميشة المعرض */
@keyframes wave {
    0%, 100% { 
        height: 30px; 
        transform: translateY(0px);
    }
    50% { 
        height: 60px; 
        transform: translateY(-15px);
    }
}

/* التعديل لارتفاعات مختلفة */
@keyframes wave {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-20px);
    }
}

/* النقاط المتحركة */
@keyframes loadingDots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* ========== Media Queries ========== */
@media (max-width: 768px) {
    .wave-loader {
        gap: 10px;
        height: 60px;
    }
    
    .wave-loader span {
        width: 12px;
    }
    
    .wave-loader span:nth-child(1) { height: 35px; }
    .wave-loader span:nth-child(2) { height: 45px; }
    .wave-loader span:nth-child(3) { height: 55px; }
    .wave-loader span:nth-child(4) { height: 45px; }
    .wave-loader span:nth-child(5) { height: 35px; }
    
    .loading-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .wave-loader {
        gap: 8px;
        height: 50px;
    }
    
    .wave-loader span {
        width: 10px;
        border-radius: 5px;
    }
    
    .wave-loader span:nth-child(1) { height: 30px; }
    .wave-loader span:nth-child(2) { height: 40px; }
    .wave-loader span:nth-child(3) { height: 50px; }
    .wave-loader span:nth-child(4) { height: 40px; }
    .wave-loader span:nth-child(5) { height: 30px; }
    
    .loading-text {
        font-size: 1.2rem;
    }
}

/* ========== Media Queries ========== */
@media (max-width: 768px) {
    .logo-3d-container {
        width: 120px;
        height: 120px;
    }
    
    .spinning-logo {
        padding: 12px;
    }
    
    .loading-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .logo-3d-container {
        width: 100px;
        height: 100px;
    }
    
    .spinning-logo {
        padding: 10px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
}

/* ========== Media Queries لتقييمات المنتج لكل الشاشات ========== */

/* 1. الشاشات الكبيرة جداً (1200px فما فوق) */
@media (min-width: 1200px) {
    .product-reviews-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 كروت جنب بعض */
        gap: 30px;
    }
    
    .product-review-card {
        padding: 30px;
        min-height: 320px;
    }
    
    .product-review-card .review-comment {
        font-size: 1.05rem;
        line-height: 1.8;
    }
}

/* 2. الشاشات الكبيرة (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .product-reviews-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 كروت جنب بعض */
        gap: 25px;
    }
    
    .product-review-card {
        padding: 25px;
        min-height: 300px;
    }
    
    .product-review-card .review-comment {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* 3. الشاشات المتوسطة (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .product-reviews-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 كروت جنب بعض */
        gap: 20px;
    }
    
    .product-review-card {
        padding: 20px;
        min-height: 280px;
    }
    
    .product-review-card .user-avatar {
        width: 55px;
        height: 55px;
    }
    
    .product-review-card .review-comment {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 12px;
    }
}

/* 4. الشاشات الصغيرة (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .product-reviews-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 كروت جنب بعض */
        gap: 15px;
    }
    
    .product-review-card {
        padding: 18px;
        min-height: 260px;
    }
    
    .product-review-card .user-avatar {
        width: 50px;
        height: 50px;
    }
    
    .product-review-card .user-name {
        font-size: 1rem;
    }
    
    .product-review-card .review-stars {
        font-size: 1.2rem;
        margin: 12px 0;
    }
    
    .product-review-card .review-comment {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 10px;
        margin: 12px 0;
        -webkit-line-clamp: 4; /* يظهر 4 أسطر فقط */
    }
    
    .product-review-card .review-footer {
        padding-top: 12px;
        margin-top: 15px;
    }
}

/* 5. الشاشات الصغيرة جداً (480px - 575px) */
@media (min-width: 480px) and (max-width: 575px) {
    .product-reviews-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 كروت جنب بعض */
        gap: 10px;
    }
    
    .product-review-card {
        padding: 15px;
        min-height: 250px;
        max-height: 270px;
        overflow: hidden;
    }
    
    .product-review-card .review-header {
        margin-bottom: 10px;
        gap: 10px;
    }
    
    .product-review-card .user-avatar {
        width: 45px;
        height: 45px;
    }
    
    .product-review-card .user-name {
        font-size: 0.95rem;
    }
    
    .product-review-card .review-date {
        font-size: 0.8rem;
    }
    
    .product-review-card .review-stars {
        font-size: 1.1rem;
        margin: 10px 0;
        letter-spacing: 1px;
    }
    
    .product-review-card .review-comment {
        font-size: 0.85rem;
        line-height: 1.4;
        padding: 8px;
        margin: 10px 0;
        -webkit-line-clamp: 3; /* يظهر 3 أسطر فقط */
        max-height: 70px;
        overflow: hidden;
    }
    
    .product-review-card .like-btn {
        padding: 3px 10px;
        font-size: 0.85rem;
    }
}

/* 6. الموبايل الصغير (360px - 479px) */
@media (min-width: 360px) and (max-width: 479px) {
    .product-reviews-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 كروت جنب بعض */
        gap: 10px;
    }
    
    .product-review-card {
        padding: 5px;
        min-height: 180px;
        max-height: 220px;
    }
    
    .product-review-card .review-header {
        margin-bottom: 8px;
        gap: 8px;
    }
    
    .product-review-card .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .product-review-card .user-name {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }
    
    .product-review-card .review-date {
        font-size: 0.75rem;
    }
    
    .product-review-card .review-stars {
        font-size: 1rem;
        margin: 8px 0;
        letter-spacing: 1px;
    }
    
    .product-review-card .review-comment {
        font-size: 0.7rem;
        line-height: 1.4;
        padding: 5px;
        margin: 8px 0;
        -webkit-line-clamp: 3;
        max-height: 65px;
    }
    
    .product-review-card .review-footer {
        padding-top: 10px;
        margin-top: 10px;
    }
    
    .product-review-card .like-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

/* 7. الموبايل الصغير جداً (أقل من 360px) */
@media (max-width: 359px) {
    .product-reviews-grid {
        grid-template-columns: 1fr; /* كارت واحد تحت بعض */
        gap: 15px;
    }
    
    .product-review-card {
        padding: 15px;
        min-height: auto;
        max-height: none;
    }
    
    .product-review-card .review-comment {
        -webkit-line-clamp: 4;
        max-height: none;
    }
}

/* ========== Media Queries ========== */
@media (min-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        padding: 40px;
    }
    
    .main-image {
        height: 500px;
    }
    
    .thumbnail {
        width: 100px;
        height: 100px;
    }
    
    .product-info h1 {
        font-size: 1.8rem;
    }
    
    .product-price-glass {
        font-size: 2.2rem;
    }
    
    .product-description p {
        font-size: 1rem;
        padding: 10px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .main-image {
        height: 450px;
    }
    
    .product-info h1 {
        font-size: 2.5rem;
    }
    
    .product-price-glass {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .product-page {
        padding: 80px 0 40px;
    }
    
    .product-detail {
        padding: 25px;
        gap: 35px;
        border-radius: 20px;
    }
    
    .main-image {
        height: 350px;
        border-radius: 16px;
    }
    
    .thumbnail {
        width: 75px;
        height: 75px;
        border-radius: 12px;
    }
    
    .product-info h1 {
        font-size: 2rem;
    }
    
    .product-price-glass {
        font-size: 2rem;
    }
    
    .product-description h3 {
        font-size: 1.3rem;
    }
    
    .product-description p {
        font-size: 1rem;
        padding: 12px;
    }
    
    .quantity-controls {
        padding: 12px 20px;
        gap: 15px;
    }
    
    .quantity-btn {
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }
    
    .quantity-number {
        font-size: 1.9rem;
        min-width: 50px;
    }
    
    .product-actions {
        gap: 20px;
    }
    
    .add-to-cart-btn, .buy-now-btn {
        min-width: 100%;
        padding: 18px 25px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .product-page {
        padding: 70px 0 30px;
    }
    
    .product-detail {
        padding: 20px;
        gap: 30px;
        border-radius: 16px;
    }
    
    .main-image {
        height: 280px;
        border-radius: 14px;
    }
    
    .thumbnail {
        width: 65px;
        height: 65px;
        border-radius: 10px;
    }
    
    .product-info h1 {
        font-size: 1rem;
        padding-bottom: 10px;
    }
    
    .product-price-glass {
        font-size: 1.2rem;
        margin: 5px 0 10px;
    }
    
    .product-description h3 {
        font-size: 1rem;
    }
    
    .product-description p {
        font-size: 0.8rem;
        line-height: 1.7;
    }
    
    .quantity-selector h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .quantity-controls {
        padding: 5px 10px;
        gap: 12px;
        border-radius: 20px;
    }
    
    .quantity-btn {
        width: 20px;
        height: 20px;
        font-size: 0.9rem;
        border-radius: 15px;
    }
    
    .quantity-number {
        font-size: 0.8rem;
        min-width: 20px;
    }
    
    .add-to-cart-btn, .buy-now-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        border-radius: 15px;
    }
}

@media (max-width: 360px) {
    .main-image {
        height: 240px;
    }
    
    .thumbnail {
        width: 55px;
        height: 55px;
    }
    
    .product-info h1 {
        font-size: 1rem;
    }
    
    .product-price-glass {
        font-size: 1rem;
    }
    
    .quantity-btn {
        width: 15px;
        height: 15px;
        font-size: 0.9rem;
    }
    
    .quantity-number {
        font-size: 0.8rem;
    }
}
/* ========== إضافة CSS للروابط في صفحة المنتج ========== */
.nav-links {
    display: none; /* مخفية افتراضياً في الشاشات الصغيرة */
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    align-items: center;
    justify-content: center;
    flex: 2;
    order: 2;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    background: rgba(44, 192, 98, 0.1);
    color: var(--accent-color);
}

/* إظهار الروابط في الشاشات الكبيرة */
@media (min-width: 768px) {
    .nav-links {
        display: flex !important;
    }
    
    .nav-actions-left {
        display: none !important;
    }
}

/* إخفاء الروابط في الشاشات الصغيرة */
@media (max-width: 767px) {
    .nav-links {
        display: none !important;
    }
    
    .nav-actions-left {
        display: flex !important;
    }
}