/* Updated Product Details with Dior Luxury Styling */
        .product-details-section {
            padding: 80px 0;
            background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
        }

        .product-details-container {
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            gap: 80px;
            align-items: start;
        }

        .product-image-gallery {
            display: flex;
            flex-direction: column;
            gap: 20px;
            position: sticky;
            top: 80px;
        }

        .main-image {
            width: 100%;
            height: 600px;
            background: white;
            border-radius: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
            transition: all 0.5s ease;
        }

        .main-image:hover {
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
        }

        .main-image img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            transition: transform 0.6s ease;
        }

        .main-image:hover img {
            transform: scale(1.03);
        }

        .thumbnail-gallery {
            display: flex;
            gap: 15px;
        }

        .thumbnail {
            width: 90px;
            height: 90px;
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 0;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            overflow: hidden;
        }

        .thumbnail img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            transition: transform 0.3s ease;
        }

        .thumbnail:hover,
        .thumbnail.active {
            border-color: #ff8c42;
            box-shadow: 0 8px 25px rgba(255, 140, 66, 0.2);
            transform: translateY(-2px);
        }

        .thumbnail:hover img,
        .thumbnail.active img {
            transform: scale(1.05);
        }

        /* Updated Product Info Section */
        .product-info {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .product-header {
            display: flex;
            flex-direction: column;
            gap: 15px;
            padding-bottom: 30px;
            border-bottom: 1px solid #e0e0e0;
        }

        .product-category-tag {
            font-size: 11px;
            letter-spacing: 2px;
            color: #999;
            text-transform: uppercase;
            display: block;
            font-weight: 600;
            margin: 0;
        }

        .product-details-title {
            font-size: 42px;
            color: #1a1a1a;
            margin: 0;
            font-weight: 500;
            font-family: "Playfair Display", serif;
            letter-spacing: 0.5px;
            line-height: 1.2;
        }

        .rating-section {
            display: flex;
            align-items: center;
            gap: 20px;
            padding-top: 15px;
        }

        .rating-stars {
            display: flex;
            gap: 5px;
            font-size: 14px;
        }

        .rating-stars i {
            color: #ff8c42;
        }

        .rating-count {
            color: #999;
            font-size: 14px;
            font-weight: 400;
        }

        /* Updated Pricing Section */
        .pricing-section {
            padding: 30px 0;
            border-bottom: 1px solid #e0e0e0;
        }

        .price-display {
            display: flex;
            align-items: center;
            gap: 20px;
            position: relative;
        }

        .current-price {
            font-size: 36px;
            color: #1a1a1a;
            font-weight: 700;
            font-family: "Montserrat", sans-serif;
        }

        .original-price {
            font-size: 20px;
            color: #999;
            text-decoration: line-through;
            font-weight: 400;
        }

        .dior-discount-badge {
            background: linear-gradient(135deg, #ff8c42, #ff6b35);
            color: white;
            padding: 8px 16px;
            border-radius: 0;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 1px;
            box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
        }

        .product-description {
            color: #666;
            line-height: 1.9;
            font-size: 15px;
            font-weight: 300;
        }

        /* Updated Product Options */
        .product-options {
            display: flex;
            flex-direction: column;
            gap: 25px;
            padding: 30px 0;
            border-bottom: 1px solid #e0e0e0;
        }

        .option-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .option-label {
            font-size: 13px;
            font-weight: 600;
            color: #1a1a1a;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .option-values {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .option-value {
            padding: 12px 20px;
            border: 1px solid #e0e0e0;
            border-radius: 0;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            font-size: 13px;
            background: white;
            font-weight: 500;
            letter-spacing: 0.3px;
        }

        .option-value:hover,
        .option-value.selected {
            border-color: #ff8c42;
            background: rgba(255, 140, 66, 0.08);
            color: #1a1a1a;
        }

        /* Updated Quantity Section */
        .quantity-section {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 30px 0;
            border-bottom: 1px solid #e0e0e0;
        }

        .quantity-selector {
            display: flex;
            align-items: center;
            border: 1px solid #e0e0e0;
            border-radius: 0;
            width: fit-content;
            background: white;
        }

        .qty-btn {
            width: 45px;
            height: 45px;
            border: none;
            background: white;
            cursor: pointer;
            font-size: 18px;
            transition: all 0.3s ease;
            font-weight: 600;
            border-right: 1px solid #e0e0e0;
        }

        .qty-btn:last-child {
            border-right: none;
            border-left: 1px solid #e0e0e0;
        }

        .qty-btn:hover {
            background: #f8f8f8;
            color: #ff8c42;
        }

        .qty-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .qty-input {
            width: 60px;
            border: none;
            text-align: center;
            font-size: 15px;
            font-weight: 600;
            background: white;
            padding: 0;
        }

        /* Updated Action Buttons */
        .action-buttons {
            display: flex;
            gap: 15px;
            padding: 30px 0;
        }

        .product-actions {
            flex: 1;
            display: flex;
        }

        .add-to-cart-btn {
            flex: 1;
            padding: 18px 0;
            background: #1a1a1a;
            color: white;
            border: 2px solid #1a1a1a;
            border-radius: 0;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .add-to-cart-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #ff8c42, #ff6b35);
            transition: left 0.4s ease;
            z-index: -1;
        }

        .add-to-cart-btn:hover {
            border-color: #ff8c42;
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(255, 140, 66, 0.2);
        }

        .add-to-cart-btn:hover::before {
            left: 0;
        }

        .wishlist-btn {
            width: 50px;
            height: 50px;
            border: 2px solid #e0e0e0;
            background: white;
            border-radius: 0;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            color: #999;
        }

        .wishlist-btn:hover {
            border-color: #ff8c42;
            background: rgba(255, 140, 66, 0.08);
            color: #ff8c42;
            transform: scale(1.05);
        }

        .wishlist-btn.added {
            background: linear-gradient(135deg, #ff8c42, #ff6b35);
            color: white;
            border-color: #ff8c42;
        }

        /* Updated Product Features */
        .product-features {
            display: flex;
            flex-direction: column;
            gap: 15px;
            padding: 30px 0;
        }

        .feature {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            font-size: 14px;
            color: #666;
            font-weight: 300;
            line-height: 1.6;
        }

        .feature i {
            color: #ff8c42;
            font-size: 16px;
            width: 20px;
            flex-shrink: 0;
            margin-top: 2px;
        }

        /* Updated Error Container */
        .error-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 500px;
            padding: 60px 20px;
            text-align: center;
        }

        .error-container i {
            font-size: 100px;
            color: #ff8c42;
            margin-bottom: 30px;
            opacity: 0.8;
        }

        .error-container h2 {
            font-size: 36px;
            color: #1a1a1a;
            margin-bottom: 20px;
            font-family: "Playfair Display", serif;
        }

        .error-container p {
            font-size: 16px;
            color: #666;
            margin-bottom: 40px;
            max-width: 500px;
            line-height: 1.8;
        }

        .back-to-shop-btn {
            background: #1a1a1a;
            color: white;
            padding: 16px 40px;
            border: 2px solid #1a1a1a;
            border-radius: 0;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 1px;
            text-decoration: none;
            display: inline-block;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }

        .back-to-shop-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #ff8c42, #ff6b35);
            transition: left 0.4s ease;
            z-index: -1;
        }

        .back-to-shop-btn:hover {
            border-color: #ff8c42;
            transform: translateY(-2px);
        }

        .back-to-shop-btn:hover::before {
            left: 0;
        }


        @media (max-width: 1200px) {
            .product-details-container {
                grid-template-columns: 1fr;
                gap: 60px;
            }

            .product-image-gallery {
                position: static;
            }

            .main-image {
                height: 500px;
            }
        }

        @media (max-width: 768px) {
            .product-details-section {
                padding: 60px 0;
            }

            .product-details-container {
                gap: 40px;
            }

            .product-details-title {
                font-size: 32px;
            }

            .current-price {
                font-size: 28px;
            }

            .main-image {
                height: 350px;
            }

            .thumbnail {
                width: 70px;
                height: 70px;
            }

            .action-buttons {
                flex-direction: column;
            }

            .wishlist-btn {
                width: 100%;
            }

            .quantity-section {
                flex-direction: row;
                align-items: center;
            }
        }

        @media (max-width: 480px) {
            .product-details-title {
                font-size: 26px;
            }

            .current-price {
                font-size: 24px;
            }

            .main-image {
                height: 280px;
            }

            .thumbnail-gallery {
                gap: 10px;
            }

            .thumbnail {
                width: 60px;
                height: 60px;
            }

            .add-to-cart-btn {
                font-size: 12px;
            }
        }


        /* حل المشكلة الأساسي */
.product-details-section {
    max-width: 100%;
    overflow-x: hidden;
}

.product-details-container {
    max-width: 100%;
    padding: 0 20px;
}

/* تحسينات إضافية للشاشات الصغيرة */
@media (max-width: 768px) {
    .product-details-container {
        padding: 0 15px;
        gap: 30px;
    }
    
    .product-details-title {
        font-size: 28px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .wishlist-btn {
        width: 100%;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .product-details-container {
        padding: 0 10px;
        gap: 20px;
    }
    
    .product-details-title {
        font-size: 24px;
    }
    
    .current-price {
        font-size: 22px;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnail-gallery {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .option-values {
        justify-content: center;
    }
    
    .option-value {
        padding: 10px 15px;
        font-size: 12px;
    }
}

.fas .fa-shopping-bag {
    margin-left: 8px !important;
}

html[dir="rtl"] .fas .fa-shopping-bag {
    margin-right: 8px !important;
}


.product-description-text {
    counter-increment: item;
  padding: 15px 0;
  padding-right: 40px;
  position: relative;
  color: #666;
  font-size: 15px;
  line-height: 1.8;

    padding-left: 40px;   /* 👈 بدل right */
  padding-right: 0;
}

@media (max-width: 480px) {
    .product-description-text {
        font-size: 13px;
        padding: 10px 0;
        padding-left: 32px;
    }
}
@media (max-width: 768px) {
    .product-description-text {
        font-size: 14px;
        padding: 12px 0;
        padding-left: 35px;
    }
}