﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    direction: rtl;
}

@font-face {
    font-family: "vazir";
    src: url("/lib/content/fonts/Vazir-FD.ttf");
}

@font-face {
    font-family: "yekan";
    src: url("/lib/content/fonts/IRANYekanRegular.woff");
}

:root {
    --brand: #402E32; /* زغالی */
    --gold: #D4AF37; /* طلایی */
    --ink: #2b2224;
    --bg: #FFFFFF;
    --muted: #6d5b60;
    --ring: rgba(212,175,55,0.35);
    --shadow: 0 10px 30px rgba(64,46,50,0.12);
    --radius: 5px;
}

html, body {
    direction: rtl;
    font-family: yekan;
    font-size: 12px;
    color: #000 !important;
    overflow: auto;
    scrollbar-width: none;
}

    body::-webkit-scrollbar {
        display: none;
    }

input,
button {
    font: inherit;
    padding: 0.5rem;
    border: 1px solid #808080;
    border-radius: 5px;
}

    input[type="text"]:focus, input[type="tel"]:focus, textarea:focus, select:focus {
        outline: none;
    }

button {
    padding: 0.5rem;
    font: inherit;
    border: 1px solid var(--brand);
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    color: var(--brand);
    background-color: #fff;
    cursor: pointer;
}

a {
    color: var(--brand);
    text-decoration: none
}

    a:hover {
    }

header {
    background-color: #402E32;
    color: #FFF8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    width: 90%;
    margin: 20px auto;
    border-radius: 12px;
}

.logo img {
    height: 42px;
}

nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

    nav a {
        color: #FFF8F0;
        text-decoration: none;
        font-size: 14px;
        padding: 6px 8px;
        border-radius: 6px;
        transition: background 0.3s;
    }

        nav a:hover,
        nav a.active {
            color: #BB871E;
        }

.auth-cart-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-button {
    background-color: #BB871E;
    color: #FFF8F0;
    border: none;
    border-radius: 5px;
    padding: 6px 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.cart-icon {
    font-size: 22px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

    .cart-icon:hover {
        transform: scale(1.1);
    }

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 300px;
    height: 100%;
    background-color: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    padding: 1rem;
}

    .mobile-menu.active {
        transform: translateX(0);
    }

    .mobile-menu .menu-header img {
        max-width: 100px;
        display: block;
        margin: 0 auto;
    }

    .mobile-menu a {
        display: flex;
        align-items: center;
        padding: 10px;
        border-radius: 8px;
        text-decoration: none;
        color: #333;
        margin: 5px 0;
        border: 1px solid #eee;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        background-color: #fefefe;
    }

        .mobile-menu a i {
            margin-left: 10px;
            width: 20px;
            text-align: center;
        }

        .mobile-menu a.active {
            background-color: #0077b6;
            color: #fff;
        }

    .mobile-menu .cart-item {
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid #ccc;
    }

        .mobile-menu .cart-item a {
            background-color: #0077b6;
            color: white;
        }

.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 900;
}

    .overlay.active {
        display: block;
    }

.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 9999;
    background-color: #25d366;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

    .whatsapp-float:hover {
        transform: scale(1.1);
    }

    .whatsapp-float img {
        display: block;
        width: 45px;
        height: 45px;
    }

.more-text {
    max-height: 20em;
    overflow: hidden;
    line-height: 2.5em;
    position: relative;
    transition: max-height 0.5s ease;
    mask-image: linear-gradient(to bottom, black 60%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent);
}

    .more-text.expanded {
        max-height: 10000px;
        mask-image: none;
        -webkit-mask-image: none;
    }

#toggleBtn {
    margin: 0.5em auto;
    display: block;
    border: 1px solid #A9864E;
    color: #A9864E;
    padding: 0 0.5rem;
    font-size: 12px;
}


footer {
    background-color: #402E32;
    color: #FFF8F0;
    padding: 40px 24px 20px;
    width: 90%;
    margin: 20px auto;
    border-radius: 12px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

    .footer-column h4 {
        margin-bottom: 16px;
        font-size: 18px;
        color: #A9864E;
    }

    .footer-column ul {
        list-style: none;
        padding: 0;
    }

        .footer-column ul li {
            margin: 8px 0;
        }

            .footer-column ul li a {
                color: white;
                text-decoration: none;
                transition: color 0.3s;
            }

                .footer-column ul li a:hover {
                    color: #BB871E;
                }

.footer-bottom {
    text-align: center;
    font-size: 14px;
    margin-top: 24px;
    color: #FFF8F0;
}

.popup {
    position: fixed;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 2rem;
    display: none;
    max-width: 90%;
    transition: all 0.4s ease;
    border-radius: var(--radius);
    box-shadow:var(--shadow);
}

    .popup.active {
        display: block;
    }

/* دسکتاپ */
@media (min-width: 768px) {
    .popup {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 30vw;
    }
}

/* موبایل */
@media (max-width: 767px) {
    .popup {
        left: 50%;
        bottom: 0%;
        transform: translateX(-50%);
        width: 100%;
        animation: slideUp 0.4s forwards;
    }

        .popup.active {
            bottom: 20px;
        }

    @keyframes slideUp {
        to {
            bottom: 0px;
        }
    }
}

.popup img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.popup h3 {
    margin-top: 10px;
    margin-bottom: 5px;
}

.popup .price {
    color: #00b894;
    font-weight: bold;
}

.popup p {
    margin-top: 10px;
}

/* دکمه ضربدر */
.close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
}

/* دکمه تایید */
.confirm-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--brand);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    margin: 2rem 0 auto;
}

.contact-fab {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 9999
}

.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0b1221;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.3);
    transition: transform .2s;
}

    .fab-main:active {
        transform: scale(.9)
    }

.fab-items {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.fab-item {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    text-decoration: none;
    transform: scale(0);
    transition: .3s;
}

.contact-fab.open .fab-item {
    transform: scale(1)
}

.whatsapp {
    background: #25D366;
    right: 70px;
    bottom: 140px;
}

.telegram {
    background: #2AABEE;
    right: 140px;
    bottom: 70px
}

.call {
    background: #0b1221;
    right: 140px;
    bottom: -10px
}

.email {
    background: #ff6b6b;
    right: 70px;
    bottom: -80px
}

@media (max-width: 768px) {
    nav, .auth-cart-container {
        display: none;
    }

    .hamburger {
        display: block;
        color: white;
    }
}

@media only screen and (min-width: 768px) {
}

@media only screen and (min-width: 992px) {
}
