﻿@font-face {
    font-family: 'matnha';
    src: url(../font/Kalameh-SemiBold[@mimvid].ttf);
}

@font-face {
    font-family: 'sartitr';
    src: url(../font/Anjoman-UltraBold[@mimvid].ttf);
}
section {
    padding: 2rem;
}

.section1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 90px 57px 22px 60px;
    direction: rtl;
    gap: 50px;
}
.section2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 20px 60px 0px 60px;
    direction: rtl;
}

.section1 .text, .section2 .right {
    max-width: 50%;
}
    .sartitr{
        font-family:'sartitr';
    }
.sartitrdovom {
    font-family: 'matnha';
    font-size: larger;
}
.matnhaaval {
    font-family: 'matnha';
    text-align: justify;
}

.section1 .image, .section2 .left {
    max-width: 45%;
}

.section1 img {
    width: 640px;
    height: 100%;
}

.buttons {
    margin-top: 1rem;
}

    .buttons button {
        margin-left: 1rem;
        padding: 0.5rem 1rem;
        font-size: 1rem;
        font-family: 'matnha', sans-serif;
        color: white;
        background: linear-gradient(135deg, #6a11cb, #2575fc); /* گرادیان زیبا */
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        position: relative;
        overflow: hidden;
    }

        .buttons button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.2);
            transform: skewX(-45deg);
            transition: all 0.5s ease;
        }

        .buttons button:hover::before {
            left: 100%;
        }

        .buttons button:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
        }


.section3 {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    background-color: white;
    gap: 20px;
}

.box1, .box2, .box3 {
    background: linear-gradient(145deg, #ffffff, #dcdcdc);
    padding: 2rem;
    border-radius: 16px;
    margin: 1rem;
    width: 30%;
    min-width: 280px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .box1:hover, .box2:hover, .box3:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 20px rgba(0,0,0,0.2);
    }

    .box1 h3, .box2 h3, .box3 h3 {
        color: #333;
    }

    .box1 p, .box2 p, .box3 p {
        color: #555;
        margin: 1rem 0;
    }

    .box1 button, .box2 button, .box3 button {
        margin-top: 1rem;
        padding: 0.6rem 1.2rem;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 1rem;
        font-family: 'matnha';
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

        .box1 button:hover,
        .box2 button:hover,
        .box3 button:hover {
            background-color: #e18900; /* رنگ آبی تیره‌تر */
            transform: translateY(-2px); /* کمی بالا بیاد */
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* سایه قوی‌تر */
        }


.input-group {
    margin-top: 1rem;
}

    .input-group input {
        padding: 0.5rem;
        border: 1px solid #ccc;
        border-radius: 6px;
        width: 80%;
        margin-bottom: 0.5rem;
    }

.price {
    margin-top: 0.5rem;
    font-weight: bold;
    color: #0a00e3;
    font-family: 'sartitr';
    font-size: x-large;
}
/* واکنش‌گرا برای تبلت و موبایل */
@media (max-width: 992px) {
    .section1, .section2 {
        flex-direction: column;
        padding: 100px 10px;
        gap: 30px;
    }

        .section1 .text, .section2 .right,
        .section1 .image, .section2 .left {
            max-width: 100%;
        }

        .section1 img {
            width: 100%;
            height: auto;
        }

    .box1, .box2, .box3 {
        width: 100%;
    }

    .buttons button {
        width: 100%;
        margin-left: 0;
        margin-bottom: 10px;
    }

    .input-group input {
        width: 100%;
    }

    .price {
        text-align: center;
        font-size: large;
    }
}

/* واکنش‌گرا برای موبایل کوچک‌تر (مانند گوشی‌های زیر 576px) */
@media (max-width: 576px) {
    section {
        padding: 1rem;
    }

    .section1{
        padding: 85px 10px 0px 10px;
    }
    .section2 {
        padding: 0px 10px 0px 10px;
    }

    .box1, .box2, .box3 {
        padding: 1rem;
        margin: 0.5rem 0;
    }

    .buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

        .buttons button {
            font-size: 0.9rem;
        }

    .price {
        font-size: medium;
    }
}

.summary-section {
    margin: 12px 0px 12px 0px;
    padding: 20px;
    background-color: #f3f3f3;
    text-align: center;
    border-radius: 12px;
    margin-inline: auto;
    max-width: 970px;

}

    .summary-section h3 {
        margin-bottom: 10px;
        direction:rtl;
        font-family:'sartitr';
    }

#grand-total {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

#final-purchase-btn {
    padding: 12px 24px;
    font-size: 1rem;
    background-color: rgba(33, 150, 243, 0.9); /* کمی شفاف */
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    backdrop-filter: blur(3px);
}

    #final-purchase-btn:hover {
        background-color: rgba(25, 118, 210, 1); /* رنگ کمی تیره‌تر */
        box-shadow: 0 6px 16px rgba(25, 118, 210, 0.6);
        transform: translateY(-2px);
    }
