@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body{
    margin:0;
    font-family: 'Vazirmatn', sans-serif;
    <?php echo $background_css; ?>
}
        .popup-wrapper {
            backdrop-filter: blur(5px);
            width: 100%;
            height: 100vh;
            background: rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .popup {
            background: #fff;
            max-width: 420px;
            width: 95%;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.25);
            padding: 20px 20px 25px;
            direction: rtl;
            text-align: right;
            animation: fadeIn .4s ease;
        }
        @keyframes fadeIn {
            from { transform: scale(.97); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        .product-info { display: flex; margin-bottom: 15px; }
        .product-info img {
            width: 90px; height: 90px;
            border-radius: 8px;
            object-fit: cover;
            margin-left: 10px;
        }
        .product-info .title { font-size: 15px; font-weight: bold; margin-bottom: 8px; }
        .product-info .price { color: #0a7b24; font-size: 14px; }

        .form-group { margin-bottom: 10px; }
        .form-group label { display: block; font-size: 13px; margin-bottom: 3px; }
        .form-group input,
        .form-group textarea {
            width: 100%;
            box-sizing: border-box;
            padding: 7px 8px;
            border-radius: 6px;
            border: 1px solid #ddd;
            font-size: 13px;
        }
        .form-group textarea { resize: vertical; min-height: 60px; }

        .btn-submit {
            width: 100%;
            padding: 10px;
            background: #00a651;
            color: #fff;
            border: none;
            border-radius: 6px;
            font-size: 15px;
            cursor: pointer;
        }
        
        .price .old-price {
    text-decoration: line-through;
    color: #a00;
    font-size: 13px;
    margin-left: 5px;
}

.price .new-price {
    color: #0a7b24;
    font-weight: bold;
    font-size: 15px;
}

.sale-badge {
    background: #ff2233;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 6px;
}

.stock {
    font-size: 13px;
    color: #444;
    margin-top: 5px;
}

.description {
    font-size: 13px;
    color: #444;
    margin-top: 8px;
    line-height: 1.6;
}


        .btn-submit:hover { background: #008a45; }

        .small-note { font-size: 11px; color: #666; margin-top: 6px; }
        .loading { font-size: 13px; text-align: center; padding: 20px 0; }
        .error { color: #c00; font-size: 13px; text-align: center; padding: 10px 0; }
