﻿
.card {
    max-width: 1000px;
    margin: 50px auto;
    background: #f9f9f9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    direction: rtl;
}

.pro-card-detail {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

    .pro-card-detail .left {
        flex: 1 1 300px;
        background-color: #5A189A;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px;
        min-height: 280px;
    }

        .pro-card-detail .left img {
            max-width: 100%;
            max-height: 200px;
            object-fit: contain;
        }

    .pro-card-detail .right {
        flex: 2 1 400px;
        background-color: #eee;
        padding: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

.product-info h1 {
    font-size: 24px;
    color: #5A189A;
    margin-bottom: 10px;
}

.product-info .details {
    font-size: 16px;
    color: #444;
}

.product-info .fs-4 {
    font-size: 22px;
}

.pricing_discount_badge {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #5A189A;
    background: #e0d4f4;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
}

.p-table-container {
    padding : 16px;
}

.p-table {
    width: 100%;
    margin-top: 30px;
    border-collapse: collapse;
    font-size: 15px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

    .p-table thead tr {
        background-color: #5A189A;
        color: #fff;
        text-align: center;
    }

    .p-table th, .table td {
        background-color: #5A189A;
        padding: 12px 16px;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .p-table tbody tr:hover {
        background-color: #f5f5f5;
    }

    .p-table tbody tr {
        background-color: #eee;
        border: 1px solid #f9f9f9;
    }


@media (max-width: 768px) {
    .p-table thead {
        display: none;
    }

    .p-table,
    .p-table tbody,
    .p-table tr,
    .p-table td {
        display: block;
        width: 100%;
    }

        .p-table tr {
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 10px;
            background-color: #f9f9f9;
        }

        .p-table td {
            text-align: right;
            padding: 8px 12px;
            position: relative;
            padding-right: 50%;
        }

            .p-table td::before {
                content: attr(data-label);
                position: absolute;
                right: 12px;
                top: 8px;
                font-weight: bold;
                color: #555;
            }
}


.product-info i {
    margin-right: 10px;
    color: #777;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .product-info i:hover {
        color: #5A189A;
    }
