@font-face {
    font-family: Vazirmatn;
    src: url('../node_modules/vazirmatn/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    font-family: Vazirmatn, 'tahoma';
    font-feature-settings: 'ss01';
}

body {
    background-color: #f7f7f7;
    padding-top: 80px;
}

/* Navbar */

/* استایل کلی Navbar */
.custom-navbar {
    background: linear-gradient(135deg, #0a192f, #1e3a8a);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    padding: 12px 10px;

    /* فیکس کردن در بالای صفحه */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* اطمینان از اینکه Navbar همیشه بالاتر از محتوا قرار دارد */

    /* محدود کردن عرض به container */
    width: 100%;

    /* سایر تنظیمات */
    display: flex;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.font-size-13 {
    font-size: 13px;
}

/* لینک‌های داخل Navbar */
.custom-navbar .nav-link {
    color: #f0f9ff;
    font-weight: bold;
    padding: 8px 12px;
    transition: color 0.3s ease-in-out;
}

.custom-navbar .nav-link:hover {
    color: #ad877c;
}

/* برند (نام فروشگاه) */
.custom-navbar .navbar-brand {
    font-size: 1.1rem;
    font-weight: bold;
    color: #f0f9ff;
    transition: color 0.3s ease-in-out;
}

.custom-navbar .navbar-brand:hover {
    color: #38bdf8;
}

/* دکمه‌های سبد خرید و خروج */
.button-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.cart-btn,
.logout-btn {
    background-color: transparent;
    border: 2px solid #38bdf8;
    color: #38bdf8;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
}

.cart-btn:hover,
.logout-btn:hover {
    background-color: #38bdf8;
    color: #0a192f;
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: row;
        justify-content: flex-end;
    }
}

#main-navbar .navbar-toggler {
    background-color: #e8e5e7;
}

/* End navbar */

.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.update-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #4caf50;
    color: white;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    z-index: 1000;
}

.logo-box {
    width: 150px;
}

.truncate-1line {
    display: -webkit-box !important;
    -webkit-line-clamp: 1;
    /* Limits the text to 1 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.truncate-2line {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    /* Limits the text to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-height-none {
    line-height: 0 !important;
}

input.no-spinner::-webkit-outer-spin-button,
input.no-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input.no-spinner {
    -moz-appearance: textfield;
}

.offcanvas-body li {
    padding: .5rem 0;
    border: 1px solid rgb(221, 221, 221);
    border-radius: 10px;
    text-align: start;
    margin: .5rem 0;
}