:root {
    --primary: #00f2fe;
    --secondary: #4facfe;
    --dark: #020617;
    --card: #0f172a;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.03);
    --gold: #facc15;
}

body {
    background-color: var(--dark);
    color: #f8fafc;
    font-family: 'Vazir', sans-serif;
    overflow-x: hidden;
}

.section-padding {
    padding: 100px 0;
}

.p-card {
    background: var(--card);
    border-radius: 35px;
    padding: 15px;
    border: 1px solid var(--border);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.social-btn:hover {
    background: var(--primary);
    color: #000;
    transform: scale(1.1);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}

.icon-btn {
    background: var(--glass);
    border: 1px solid var(--border);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: 0.3s;
}

.badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--gold);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 50%;
}

.btn-glow {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    color: #000;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
    transition: 0.4s;
}

.p-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 25px;
    object-fit: cover;
    margin-bottom: 20px;
}

.p-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--gold);
    color: #000;
    padding: 4px 15px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.8rem;
}

.btn-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.6);
    color: #000;
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-header h2 {
    font-weight: 800;
    font-size: 2.5rem;
}

.section-header .line {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto;
    border-radius: 10px;
}

.p-card:hover {
    transform: scale(1.03);
    border-color: var(--primary);
}

.text-muted {
    color: rgb(131, 131, 131) !important;
}

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #040A1D;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loader-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #00A7B1;
    border-radius: 50%;
    animation: loader-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #00A7B1 transparent transparent transparent;
}

.loader-text {
    margin-top: 20px;
    color: #C5F2F5;
    font-size: 16px;
    font-weight: 500;
    font-family: 'IRANSans', sans-serif;
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.loader-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.loader-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes loader-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 992px) {
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        background: var(--card);
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        padding: 30px;
        transition: 0.4s;
        z-index: 999;
    }

    .nav-list.active {
        right: 0;
    }

    .nav-link {
        display: block !important;
        padding: 15px;
        border-radius: 12px;
    }

    .mega-menu {
        position: static;
        box-shadow: none;
        padding: 20px 0 0;
        border: none;
        display: none;
        opacity: 1;
        visibility: visible;
    }

    .nav-item.open .mega-menu {
        display: block;
        animation: fadeInUp 0.3s;
    }

    .mobile-nav-toggle {
        position: absolute;
        top: 2px;
        left: 5%;
    }

    .user-icons {
        display: none;
    }

    .hero-left {
        display: none !important;
    }

    .hero-right {
        width: 100% !important;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-right p {
        font-size: 19px;
    }
}

/* basket Item */

.basket-item>div:first-child {
    display: flex;
    height: 100px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #032d32;
    padding: 5px;
    border-radius: 5px 5px 0 0;
}

.basket-item>div:last-child {
    text-align: center;
    padding: 10px 0;
    border: 1px solid #032d32;
    margin-bottom: 10px;

}

.basket-item img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
}

.my-toast {
    position: absolute;
    ruby-align: 20%;
    top: 30%;
    right: 20%;
    background: #171e31;
    min-width: 300px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 1px solid #272f40;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    opacity: 0;
    transition: all 0.5s ease;
}

.active-toast{
    top: 13% !important;
    opacity: 1;
}
