        /* ========== مودال (صفحه جزییات محصول) ========== */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(30, 20, 10, 0.85);
            backdrop-filter: blur(8px);
            z-index: 999;
            justify-content: center;
            align-items: center;
            padding: 30px;
            animation: fadeIn 0.3s ease;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-box {
            background: #fffdfa;
            max-width: 750px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            border-radius: 40px;
            padding: 45px 45px 40px;
            position: relative;
            box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 215, 175, 0.3);
        }

        .modal-close {
            position: absolute;
            top: 20px;
            left: 25px;
            font-size: 2rem;
            background: none;
            border: none;
            cursor: pointer;
            color: #7a5d41;
            transition: 0.2s;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f4f0ea;
        }

        .modal-close:hover {
            background: #3e2c1b;
            color: #fff;
            transform: rotate(90deg);
        }

        .modal-box img {
            width: 100%;
            height: 280px;
            object-fit: cover;
            border-radius: 24px;
            margin-bottom: 20px;
        }

        .modal-box h2 {
            font-size: 2.2rem;
            font-weight: 900;
            margin-bottom: 5px;
            color: #3e2c1b;
        }

        .modal-box .modal-price {
            font-size: 1.8rem;
            color: #6f4e37;
            font-weight: 700;
            display: inline-block;
            background: #f4f0ea;
            padding: 0 25px;
            border-radius: 40px;
            margin: 10px 0 20px;
        }

        .modal-box .modal-desc {
            font-size: 1.05rem;
            color: #4d3826;
            margin-bottom: 25px;
            border-bottom: 2px dashed #f0ebe4;
            padding-bottom: 20px;
        }

        .modal-details-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            background: #f8f3ed;
            padding: 20px 25px;
            border-radius: 24px;
        }

        .modal-details-grid span {
            font-weight: 700;
            color: #3e2c1b;
        }

        .modal-details-grid span i {
            color: #d4a373;
            margin-left: 8px;
            width: 22px;
        }

        .modal-details-grid .detail-item {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        /* ========== مخفی کردن نوار اسکرول داخل مودال ولی حفظ اسکرول ========== */
        .modal-box {
            scrollbar-width: none;
            /* برای مرورگر فایرفاکس */
            -ms-overflow-style: none;
            /* برای مرورگرهای قدیمی Edge و IE */
        }

        .modal-box::-webkit-scrollbar {
            display: none;
            /* برای مرورگرهای کروم، سافاری و اپرا */
            width: 0;
        }