﻿/*custom error*/
/* Error and Success Alert*/

@font-face {
    font-family: "IRANSansWeb";
    font-style: normal;
    font-weight: normal;
    src: url('/fonts/IranSans/IRANSansWebFaNum.eot') format('embedded-opentype'), url('/fonts/IranSans/IRANSansWebFaNum.woff2') format('woff2'), url('/fonts/IranSans/IRANSansWebFaNum.woff') format('woff'), url('/fonts/IranSans/IRANSansWebFaNum.ttf') format('truetype');
    font-display: swap;
}

* {
    box-sizing: border-box;
    font-family: 'IRANSansWeb';
}

.floating-alert-container {
    position: fixed;
    left: 50%;
    top: 1rem;
    transform: translateX(-50%);
    z-index: 10000;
    display: none;
    max-width: 80%;
    width: 300px;
}

.floating-alert {
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    color: white;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #81998C;
}

.alert-danger {
    background-color: #DC3545;
}

.fade-out {
    animation: fadeOut 0.5s ease-in-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .floating-alert-container {
        width: 90%;
        max-width: 100%;
        margin-top: 10%;
    }
}

@media (max-width: 1024px) {
    .floating-alert-container {
        width: 90%;
        max-width: 100%;
        margin-top: 10%;
    }
}
/*custom error end*/


/*basket*/
#cash-summary {
    position: fixed;
    bottom: 35px;
    right: 0;
    width: 320px;
    background: #fff;
    padding: 20px 10px;
    border-top: 1px solid #000
    /*box-shadow: 0 -2px 10px rgba(0,0,0,0.1);*/
}

    #cash-summary p {
        margin: 0 15px 15px 0;
        min-width: 150px;
        white-space: nowrap;
    }

    #cash-summary a {
        margin-right: 7px;
    }


.cart-btn {
    display: block;
    width: 95%;
    max-width: 300px;
    margin: 5px 0;
    padding: 10px 0;
    text-align: center;
    background-color: #ffff;
    border: 1px solid var(--main-bg-color);
    color: #000;
    font-weight: bold;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    position: relative;
    top: 40px;
}

/*    .cart-btn:hover {
        background-color: var(--cream-bg);
    }
*/
.cash-btn {
    display: block;
    width: 95%;
    max-width: 300px;
    margin: 5px 0;
    padding: 10px 0;
    text-align: center;
    background-color: var(--main-bg-color);
    color: #000;
    font-weight: bold;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    position: relative;
    top: 40px;
}

    .cash-btn:hover {
        background-color: #f0a500;
    }

@media(max-width: 780px) {



    .card {
        padding: 3px;
        border-width: 1px;
        border-radius: 15px;
        background: transparent;
    }

        .card img {
            max-height: 160px;
        }

        .card p {
            font-size: 9.5px;
            margin: 4px 2px 2px 2px;
            margin-top: 16px;
            font-weight: bold;
        }

    .buttons {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin: 12px 4px 0 4px;
        flex-direction: row;
        text-align: center;
        margin-bottom: 5px;
    }

    button.btn {
        font-size: 11px;
        padding: 4px 8px;
        gap: 6px;
        margin: 0;
        flex: 1;
        max-width: 48%;
        transform: scale(0.95);
        border-radius: 999px;
    }



    .separator {
        border-bottom: 2px solid #666;
        margin: 12px -8px;
        width: auto;
    }

    #cash-summary {
        position: fixed;
        bottom: 35px;
        right: 0;
        width: 320px;
        background: #fff;
        padding: 20px 10px;
        border-top: 1px solid #000
        /*box-shadow: 0 -2px 10px rgba(0,0,0,0.1);*/
    }

        #cash-summary p {
            margin: 0 15px 15px 0;
            min-width: 150px;
            white-space: nowrap;
        }

        #cash-summary a {
            margin-right: 7px;
        }

    .cart-btn {
        display: block;
        width: 95%;
        max-width: 300px;
        margin: 5px 0;
        padding: 10px 0;
        text-align: center;
        background-color: #ffff;
        border: 1px solid #000;
        color: #000;
        font-weight: bold;
        border-radius: 12px;
        text-decoration: none;
        transition: background-color 0.3s ease;
        position: relative;
        top: 40px;
    }

    /*.cart-btn:hover {
            background-color: #7e50c9;
        }
*/
    .cash-btn {
        display: block;
        width: 95%;
        max-width: 300px;
        margin: 5px 0;
        padding: 10px 0;
        text-align: center;
        background-color: var(--main-bg-color);
        color: #000;
        font-weight: bold;
        border-radius: 12px;
        text-decoration: none;
        transition: background-color 0.3s ease;
        position: relative;
        top: 40px;
    }

        .cash-btn:hover {
            background-color: #f0a500;
        }
}

@media (max-width: 400px) {

    .card {
        padding: 2px;
        border-width: 1px;
        border-radius: 12px;
        background: transparent;
    }

        .card img {
            max-height: 120px;
        }

        .card p {
            font-size: 8.5px;
            margin: 4px 2px 2px 2px;
            margin-top: 12px;
            font-weight: bold;
        }

    .buttons {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
        margin: 10px 3px 0 3px;
        flex-direction: row;
        text-align: center;
        margin-bottom: 4px;
    }

    button.btn {
        font-size: 10px;
        padding: 3px 6px;
        gap: 5px;
        margin: 0;
        flex: 1;
        max-width: 48%;
        transform: scale(0.9);
        border-radius: 999px;
    }

    .separator {
        border-bottom: 2px solid #666;
        margin: 10px -8px;
        width: auto;
    }

    /*    #cash-summary {
        display: flex;
        position: relative;
        flex-direction: column;
        align-items: center;
    }

        #cash-summary p {
            margin: 0 0 15px 0;
            position: relative;
            top: 25px;
            left: 55px;
        }*/
    #cash-summary {
        position: fixed;
        bottom: 35px;
        right: 0;
        width: 320px;
        background: #fff;
        padding: 20px 10px;
        border-top: 1px solid #000
        /*box-shadow: 0 -2px 10px rgba(0,0,0,0.1);*/
    }

        #cash-summary p {
            margin: 0 15px 15px 0;
            min-width: 150px;
            white-space: nowrap;
        }

        #cash-summary a {
            margin-right: 7px;
        }

    .cart-btn {
        display: block;
        width: 95%;
        max-width: 300px;
        margin: 5px 0;
        padding: 10px 0;
        text-align: center;
        background-color: #ffff;
        border: 1px solid #000;
        color: #000;
        font-weight: bold;
        border-radius: 12px;
        text-decoration: none;
        transition: background-color 0.3s ease;
        position: relative;
        top: 40px;
    }

    /*  .cart-btn:hover {
            background-color: #7e50c9;
        }*/

    .cash-btn {
        display: block;
        width: 95%;
        max-width: 300px;
        margin: 5px 0;
        padding: 10px 0;
        text-align: center;
        background-color: var(--main-bg-color);
        color: #000;
        font-weight: bold;
        border-radius: 12px;
        text-decoration: none;
        transition: background-color 0.3s ease;
        position: relative;
        top: 40px;
    }

        .cash-btn:hover {
            background-color: #f0a500;
        }
}
