@font-face {
    font-family: 'Vazirmatn';
    src: url("/jakarta.faces.resource/Vazirmatn-wght.woff2.xhtml?ln=fonts") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
body {
    font-family: "Vazirmatn", sans-serif;
    font-weight: 400;
    line-height: 1.8;
    --bg-gradient: radial-gradient(circle at center, #ffffff 0%, #f0f4ff 50%, #e6f0ff 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    background: var(--bg-gradient);
    min-height: 100vh;
    overflow-x: hidden;
    color: #333;
}
h1,h2,h3,h4,h5,h6{
    font-family: "Vazirmatn", sans-serif;
    font-weight: 600;
}
p{
    line-height: 1.9;
    font-family: "Vazirmatn", sans-serif;
}

.card p{
    font-size: .95rem;
}
.nav-link{
    font-weight: 500;
    font-family: "Vazirmatn", sans-serif;
}
/* Navbar */
.navbar-custom {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    padding: 5px 25px;
    margin: 10px 0;
    display: flex; /* Ensure flex properties are applied */
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
}

.nav-link {
    color: #555 !important;
    padding: 8px 5px !important;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: #000 !important;
}

.nav-link.active {
    background: #ebeeff;
    border-radius: 20px;
    color: #000 !important;
    font-weight: bold;
}

/* Hamburger Menu Styles */
.navbar-toggler {
    border: none;
    font-size: 1.5rem;
    color: #555;
    padding: 0.5rem 0.75rem; /* Better padding */
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile Menu Dropdown */
.mobile-menu-dropdown {
    position: absolute;
    top: 100%; /* Position below navbar */
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 0 0 30px 30px;
    border: 1px solid var(--glass-border);
    border-top: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    z-index: 1020; /* Below mega menu but above content */
    padding: 15px;
    max-height: 0; /* Initially hidden */
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Show mobile menu when toggled */
.mobile-menu-dropdown.show {
    max-height: 500px; /* Adjust as needed */
    padding: 15px;
}

.mobile-menu-dropdown .nav-link {
    padding: 10px 15px !important;
    border-bottom: 1px solid var(--glass-border);
}
.mobile-menu-dropdown .nav-link:last-child {
    border-bottom: none;
}
.mobile-menu-dropdown .btn-register-mobile {
    width: 100%; /* Make mobile register button full width */
    text-align: center;
    margin-top: 10px;
    border-radius: 25px; /* More rounded */
}

/* Hide desktop nav and register button on mobile */
@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .mobile-nav-trigger { display: block; } /* Show hamburger icon */
}
/* Show desktop nav on large screens */
@media (min-width: 992px) {
    .mobile-nav-trigger { display: none; }
    .desktop-nav { display: flex; } /* Use flex for alignment */
}


/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    padding: 25px;
    transition: 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
}

/* Pipeline */
.pipeline-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.rotating-wrapper {
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#rotatingImage {
    width: 100%;
    backface-visibility: hidden;
}

.pipeline-text {
    position: absolute;
    text-align: center;
    font-weight: 800;
    font-size: 1.4rem;
    max-width: 200px;
    color: #222;
    pointer-events: none;
    z-index: 2;
}

/* Button */
.btn-order {
    background: #000;
    color: #fff;
    border-radius: 50px;
    padding: 10px 30px;
    border: none;
    font-size: 0.9rem;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}
.btn-order:hover {
    background: #333;
}

.btn-register {
    background: #4CAF50;
    color: #fff;
    border-radius: 50px;
    padding: 10px 25px;
    border: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}
.btn-register:hover {
    background: #45a049;
}


/* Services */
.custom-services {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.service-item {
    font-size: 0.85rem;
    color: #444;
    cursor: pointer;
    transition: 0.3s ease;
}

.service-item i {
    font-size: 20px;
    display: block;
    margin-bottom: 6px;
    color: #000;
}

.service-item:hover {
    transform: translateY(-3px);
    color: #000;
}





/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar-custom {
        justify-content: space-between; /* Space out logo, toggler */
    }
    .pipeline-container {
        height: 400px;
    }
    .rotating-wrapper {
        width: 300px;
        height: 300px;
    }
    .pipeline-text {
        font-size: 1.2rem;
        max-width: 150px;
    }
}

.header-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.header-left,
.header-right {
    width: 200px; /* عرض ثابت برای تراز دقیق */
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
}

.navbar-custom.desktop-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
/* Sticky Header */
header {
    position: sticky;
    top: 0;
    z-index: 2000;
}

/* افکت هنگام اسکرول */
header.scrolled .glass-card{
    backdrop-filter: blur(25px);
    background: rgba(255,255,255,0.85);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.mobile-menu{
    max-height:0;
    overflow:hidden;
    transition:all .35s ease;
    margin-top:10px;
    border-top:1px solid rgba(0,0,0,0.05);
}

.mobile-menu.show{
    max-height:80vh;
    overflow-y:auto;
    padding-top:15px;
}

.mobile-menu .nav-link{

    display:block;
    padding:10px 0 !important;
    font-size:.95rem;

}

.dropdown-menu {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.6);
}

.dropdown-item {
    font-size: .85rem;
}

.dropdown-item:hover {
    background: #f0f4ff;
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.97);
    transition: all .25s cubic-bezier(.22,.61,.36,1);
    display: block;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-toggle::after{
    margin-right:4px;
}
.nav-link {
    font-size: 14px !important;
}

/* آیتم‌های داخل Dropdown دسکتاپ */
.dropdown-item {
    font-size: 14px !important;
}


/* منوی موبایل */
.mobile-menu .nav-link {
    font-size: 14px !important;
}

/* ===== Support Page ===== */
.support-section {
    padding: 60px 0 30px;
}

.support-card {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 35px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06);
    padding: 40px;
}

.support-card h1 {
    font-size: 2rem;
    font-weight: 900;
    color: #111;
    margin-bottom: 18px;
}

.support-card h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #222;
    margin-top: 35px;
    margin-bottom: 14px;
    position: relative;
    padding-right: 16px;
}

.support-card h2::before {
    content: "";
    position: absolute;
    right: 0;
    top: 6px;
    width: 5px;
    height: 22px;
    border-radius: 10px;
    background: #4CAF50;
}

.support-card p {
    color: #555;
    line-height: 2;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.support-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.support-list li {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    padding: 12px 16px;
    margin-bottom: 10px;
    color: #444;
    font-size: 0.92rem;
}

.support-list li i {
    color: #4CAF50;
    margin-left: 8px;
}

.support-form {
    margin-top: 25px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    padding: 25px;
}

.support-form label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 8px;
}

.support-form .form-control,
.support-form .form-select {
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 11px 15px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: none;
}

.support-form .form-control:focus,
.support-form .form-select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.12);
}

.support-submit {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 35px;
    font-size: 0.95rem;
    transition: 0.3s ease;
}

.support-submit:hover {
    background: #333;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .support-card {
        padding: 25px 18px;
        border-radius: 25px;
    }

    .support-card h1 {
        font-size: 1.55rem;
    }

    .support-card h2 {
        font-size: 1.1rem;
    }
}
.support-card p,
.support-card li {
    text-align: justify;
    text-align-last: right;
}
.auth-buttons a{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:13px;
    padding:7px 16px;
    border-radius:40px;
    text-decoration:none;
    transition:all .25s ease;
    font-family:"Vazirmatn",sans-serif;
}

/* Login */
.btn-login{
    color:#333;
    background:rgba(255,255,255,0.7);
    border:1px solid rgba(0,0,0,0.08);
}

.btn-login:hover{
    background:#fff;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

/* Register */
.btn-register{
    background:#000;
    color:#fff;
    border:1px solid #000;
}

.btn-register:hover{
    background:#222;
    transform:translateY(-1px);
}

/* Icons */
.auth-buttons i{
    font-size:12px;
}
/* ===== Mobile Auth Buttons ===== */

.mobile-auth-buttons{
    display:flex;
    gap:10px;
    margin-top:14px;
}

.mobile-auth-buttons .btn-auth{
    flex:1;
    justify-content:center;
    min-height:42px;
}

.mobile-auth-buttons .btn-login{
    background:rgba(255,255,255,0.75);
}

.mobile-auth-buttons .btn-register{
    background:#000;
    color:#fff;
}
.breadcrumb{
    border:1px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(15px);
    border-radius:20px;
    margin-bottom:0;
}

.breadcrumb-item a{
    color:#555;
}

.breadcrumb-item a:hover{
    color:#000;
}

.breadcrumb-item.active{
    color:#000;
    font-weight:600;
}
/* ===== 404 Page ===== */

.error404-section{
    min-height: calc(100vh - 260px);
    display:flex;
    align-items:center;
    justify-content:center;
    padding-top:40px;
    padding-bottom:40px;
}

.error404-card{
    position:relative;
    padding:80px 40px;
    border-radius:35px;
    overflow:hidden;
}

.error404-bg{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    font-size:260px;
    font-weight:900;
    color:rgba(0,0,0,0.05);
    pointer-events:none;
    user-select:none;
}

.error404-content{
    position:relative;
    max-width:520px;
    margin:auto;
}

.error404-content h1{
    font-size:2rem;
}

.error404-content p{
    font-size:.95rem;
    line-height:2;
}

/* موبایل */

@media(max-width:768px){

    .error404-bg{
        font-size:150px;
    }

    .error404-card{
        padding:50px 25px;
    }

}
.home-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

#rotatingImage {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
}

@media (max-width: 992px) {
    .home-card-img {
        height: 160px;
    }

    #rotatingImage {
        max-width: 300px;
    }
}
/* رزرو فضا برای بخش تصویر مرکزی چرخنده */
.pipeline-container {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* رزرو فضا فقط برای کارت‌های محتوا، نه برای هدر و فوتر */
main .glass-card,
.row .glass-card {
    min-height: 120px;
    contain: layout;
}

/* اصلاح ارتفاع هدر که به اشتباه بزرگ شده بود */
header .glass-card {
    min-height: auto !important; /* اجازه بده هدر بر اساس محتوا کوچک شود */
}

/* تنظیمات موبایل */
@media (max-width: 992px) {
    .pipeline-container {
        min-height: 400px;
    }
    main .glass-card,
    .row .glass-card {
        min-height: 100px; /* در موبایل کمی کمتر */
    }
}
/* اصلاحات برای جلوگیری از بهم ریختگی منو در مانیتورهای کوچک و تبلت افقی */
@media (min-width: 992px) and (max-width: 1494px) {
    /* کاهش فاصله بین آیتم‌های منو */
    nav.d-lg-flex {
        gap: 0.5rem !important;
    }

    /* کوچک‌تر کردن فونت منو */
    .nav-link {
        font-size: 13px !important;
        padding: 8px 4px !important;
    }

    /* منعطف کردن باکس جستجو */
    .search-input {
        width: 120px !important; /* کاهش عرض از 160 به 120 */
        font-size: 12px;
    }

    /* کوچک‌تر کردن دکمه‌های ورود و ثبت نام */
    .auth-buttons a {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    /* کاهش فواصل کل هدر */
    header.container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .glass-card.py-2.px-lg-4 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* جلوگیری از بزرگ شدن بیش از حد لوگو در این بازه */
@media (max-width: 1494px) {
    header img {
        width: 40px;
        height: 40px;
    }
}

/* استایل کمکی برای باکس جستجو */
.search-box-container {
    flex-shrink: 1; /* اجازه می‌دهد در صورت نیاز کوچک شود */
    min-width: 100px;
}

main#main-content {
    display: block;
    min-height: 80vh; /* رزرو ۸۰ درصد ارتفاع صفحه قبل از لود محتوا */
    width: 100%;
}

/* اگر از کانتینر بوت‌استرپ داخل main استفاده می‌کنید */
main#main-content .container {
    min-height: 600px;
}

/* بخش فوتر یا کارت‌های پایین صفحه */
.glass-card.py-4 {
    min-height: 150px;
    contain: layout;
}
@media (max-width: 768px) {
    .pipeline-container { min-height: 400px; }
    main#main-content { min-height: 100vh; }
}

/* Desktop dropdown */
.dropdown-menu {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    padding: 10px 0;
    min-width: 220px;
}

.dropdown-item {
    font-size: 14px !important;
    color: #444;
    padding: 6px 16px;
    transition: all .2s ease;
}

.dropdown-item:hover {
    background: #f4f7ff;
    color: #000;
}

.dropdown-toggle::after {
    margin-right: 6px;
}
.mobile-dropdown .mobile-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    background: transparent;
    color: #555 !important;
}
.mobile-dropdown .mobile-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    background: transparent;
    color: #555 !important;
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    padding: 0 15px;
    margin-right: 8px;
    border-right: 2px solid rgba(0,0,0,0.08);
    transition:
            max-height .35s ease,
            opacity .25s ease,
            transform .25s ease,
            padding .25s ease;
}

.mobile-submenu a {
    display: block;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    padding: 8px 0;
}

.mobile-submenu a:hover {
    color: #000;
}

.mobile-dropdown.active .mobile-submenu {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    padding: 8px 15px;
}

.submenu-icon {
    font-size: .8rem;
    transition: transform .3s ease;
}

.mobile-dropdown.active .submenu-icon {
    transform: rotate(180deg);
}
.product-category-section {
    padding: 55px 0 30px;
}

.product-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: flex-start;
}

.category-sidebar {
    position: sticky;
    top: 115px;
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    padding: 22px;
}

.category-sidebar h2 {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 16px;
    color: #111;
}

.category-search {
    margin-bottom: 16px;
}

.category-search input {
    width: 100%;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 11px 16px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.85);
    outline: none;
    transition: all 0.25s ease;
}

.category-search input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.12);
}

.shirt-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shirt-menu li {
    margin-bottom: 9px;
}

.shirt-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #444;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 18px;
    padding: 11px 14px;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.shirt-menu a:hover {
    color: #000;
    background: #fff;
    transform: translateX(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.shirt-menu i {
    font-size: 0.75rem;
    color: #4CAF50;
}

.empty-category-message {
    display: none;
    color: #777;
    font-size: 0.88rem;
    text-align: center;
    margin-top: 14px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
}

.shirt-content {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 35px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06);
    padding: 40px;
}

.shirt-content h1 {
    font-size: 2rem;
    font-weight: 900;
    color: #111;
    margin-bottom: 18px;
}

.shirt-content h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #222;
    margin-top: 35px;
    margin-bottom: 14px;
    position: relative;
    padding-right: 16px;
}

.shirt-content h2::before {
    content: "";
    position: absolute;
    right: 0;
    top: 6px;
    width: 5px;
    height: 22px;
    border-radius: 10px;
    background: #4CAF50;
}

.shirt-content p {
    color: #555;
    line-height: 2;
    font-size: 0.95rem;
    text-align: justify;
    text-align-last: right;
    margin-bottom: 12px;
}

.shirt-feature-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.shirt-feature-list li {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 18px;
    padding: 13px 15px;
    color: #444;
    font-size: 0.92rem;
}

.shirt-feature-list i {
    color: #4CAF50;
    margin-left: 8px;
}

.shirt-cta {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 26px;
    padding: 24px;
}

.shirt-cta p {
    margin-bottom: 16px;
}

@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        position: static;
        order: 1;
    }

    .shirt-content {
        order: 2;
        padding: 28px 20px;
        border-radius: 28px;
    }

    .shirt-content h1 {
        font-size: 1.55rem;
    }

    .shirt-feature-list {
        grid-template-columns: 1fr;
    }
}
h3{
    font-size: 18px!important;
}
.product-short-description {
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.8;
    min-height: 3.6em;
}

.product-detail-short-desc {
    text-align: justify;
}
.image-wrapper {
    overflow: hidden;
    transition: transform 0.4s ease;
}
.image-wrapper img {
    transition: transform 0.6s ease;
}
.image-wrapper:hover img {
    transform: scale(1.05);
}
.h_iframe-aparat_embed_frame {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: #000;
}

.h_iframe-aparat_embed_frame .ratio {
    display: block;
    width: 100%;
    height: auto;
}

.h_iframe-aparat_embed_frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* level 2 item with submenu */
.dropdown-submenu {
    position: relative;
}

.submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.submenu-arrow {
    font-size: 12px;
    transition: transform .2s ease;
}

.submenu-menu {
    position: absolute;
    bottom: 0;
    top: auto;
    right: 100%;
    margin-right: 8px;
    min-width: 220px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.22, 0.61, 0.35, 1);
    display: block;
}

/* open on hover */
.dropdown-submenu:hover > .submenu-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* arrow animation */
.dropdown-submenu:hover > .submenu-toggle .submenu-arrow {
    transform: translateX(-2px);
}

/* optional better hover */
.dropdown-submenu > .dropdown-item,
.dropdown-submenu > .submenu-toggle {
    white-space: nowrap;
}

/* رفع مشکل افت کیفیت اسکرول‌بار در مرورگرهای مبتنی بر وب‌کیت */
.submenu-menu::-webkit-scrollbar {
    width: 4px;
}
.submenu-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

/* هاور ساب‌منو */
.dropdown-submenu:hover > .submenu-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.page-inline-image {
    margin: 30px 0;
}

.page-inline-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 28px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06);
    padding: 8px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.page-inline-image img:hover {
    transform: scale(1.01);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.1);
}


.blog-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
}


.blog-list-item {
    border-radius: 30px;
    padding: 0;
    overflow: hidden;
}

.blog-list-content {
    min-height: 100%;
}

.blog-list-image-wrap {
    height: 100%;
    min-height: 180px;
    max-height: 220px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.35);
}

.blog-list-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.blog-list-title {
    color: #111;
    line-height: 1.9;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.blog-list-desc {
    color: #555;
    line-height: 2;
    font-size: 0.95rem;
    text-align: justify;
    text-align-last: right;
    margin-bottom: 18px;
}

.blog-list-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 10px 18px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    flex: 0 0 auto;
}

.blog-list-btn:hover {
    background: #222;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .blog-list-image-wrap {
        min-height: 180px;
        max-height: 200px;
    }

    .blog-list-title {
        font-size: 1rem;
    }

    .blog-list-content {
        padding: 22px 18px !important;
    }
}
.cart-product-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}
.quantity-control {
    max-width: 130px;
}
.quantity-input {
    width: 45px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
}
.remove-btn {
    color: #dc3545;
    cursor: pointer;
    transition: color 0.2s;
}
.remove-btn:hover {
    color: #bd2130;
}