/* تنظیمات فونت */
@font-face {
    font-family: 'IRANSans-Bold-web';
    src: url('../fonts/IRANSans-Bold-web.ttf') format('truetype');
}
@font-face {
    font-family: 'Yekan';
    src: url('../fonts/Yekan.eot');
    src: url('../fonts/Yekan.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Yekan.woff2') format('woff2'),
        url('../fonts/Yekan.woff') format('woff'),
        url('../fonts/Yekan.ttf') format('truetype'),
        url('../fonts/Yekan.svg#Yekan') format('svg');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/IRANSans-Medium-web.eot');
    src: url('../fonts/IRANSans-Medium-web.eot?#iefix') format('embedded-opentype'),
         url('../fonts/IRANSans-Medium-web.woff2') format('woff2'),
         url('../fonts/IRANSans-Medium-web.woff') format('woff'),
         url('../fonts/IRANSans-Medium-web.ttf') format('truetype');
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/IRANSans-Light-web.eot');
    src: url('../fonts/IRANSans-Light-web.eot?#iefix') format('embedded-opentype'),
         url('../fonts/IRANSans-Light-web.woff2') format('woff2'),
         url('../fonts/IRANSans-Light-web.woff') format('woff'),
         url('../fonts/IRANSans-Light-web.ttf') format('truetype');
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 200;
    src: url('../fonts/IRANSans-UltraLight-web.eot');
    src: url('../fonts/IRANSans-UltraLight-web.eot?#iefix') format('embedded-opentype'),
         url('../fonts/IRANSans-UltraLight-web.woff2') format('woff2'),
         url('../fonts/IRANSans-UltraLight-web.woff') format('woff'),
         url('../fonts/IRANSans-UltraLight-web.ttf') format('truetype');
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/IRANSans-web.eot');
    src: url('../fonts/IRANSans-web.eot?#iefix') format('embedded-opentype'),
         url('../fonts/IRANSans-web.woff2') format('woff2'),
         url('../fonts/IRANSans-web.woff') format('woff'),
         url('../fonts/IRANSans-web.ttf') format('truetype');
}

/* متغیرهای رنگ و فونت */
:root {
    --primary-color: #4B7BEC;
    --secondary-color: #F9BE25;
    --accent-color: #4285F4;
    --text-color: #333;
    --secondary-text-color: #757575;
    --light-color: #f1f1f1;
    --light-accent-color: #d6e2ff;
    --border-color: #e0e0e0;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --font-family: 'IRANSans', 'Vazirmatn', sans-serif;
    --light-bg: #f8f9fa;
    --header-bg: #25348e;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --radius: 10px;
}

/* استایل مسیر صفحه اطلاعات کتاب */
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
            src: url("../fontawesome-free-6.4.2-web/webfonts/fa-solid-900.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 400;
            src: url("../fontawesome-free-6.4.2-web/webfonts/fa-regular-400.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
            src: url("../fontawesome-free-6.4.2-web/webfonts/fa-brands-400.woff2") format("woff2");
}

/* استایل‌های کلی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IRANSans', tahoma, sans-serif;
    color: var(--text-color);
    background-color: #fff;
    direction: rtl;
    padding-top: 148px; /* افزایش پدینگ برای جلوگیری از همپوشانی (38px نوار آبی + 74px هدر اصلی + 36px منوی اصلی) */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

button {
    cursor: pointer;
    font-family: 'IRANSans', tahoma, sans-serif;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--header-bg);
}

.btn-primary {
    background-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #ff5252;
}

.btn-add-to-cart {
    flex-grow: 1;
    text-align: center;
    justify-content: center;
    background-color: transparent;
    color: #25348e;
    border: 1px solid #25348e;
}

.btn-add-to-cart:hover {
    background-color: rgba(37, 52, 142, 0.1);
}

/* هدر سایت */
.site-header {
    position: relative;
    z-index: 999;
    background-color: #fff;
}

/* نوار آبی بالای سایت */
.top-bar {
    background: linear-gradient(to left, #25348e, #5455c5);
    padding: 8px 0;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* افزایش برای اطمینان از نمایش بالاتر از همه */
    transition: transform 0.3s ease;
    height: 38px;
}

.top-bar.hidden {
    transform: translateY(-100%);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slogan {
    font-size: 0.9rem;
    font-weight: 300;
}

.contact-info a {
    color: white;
    font-size: 0.85rem;
    margin-left: 15px;
}

.contact-info a i {
    margin-left: 5px;
}

/* هدر اصلی */
.main-header {
    background-color: white;
    padding: 12px 0;
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    z-index: 990;
    border-bottom: 1px solid #eee;
    transition: top 0.3s ease;
    height: 74px;
}

.main-header.scrolled {
    top: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: 125px;
    object-fit: contain;
}

.header-search {
    flex: 1;
    margin: 0 20px;
}

.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid #eee;
    border-radius: 20px;
    font-family: 'IRANSans', tahoma, sans-serif;
    background-color: #f8f9fa;
    font-size: 0.9rem;
}

.search-form button {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #777;
    font-size: 0.9rem;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-top: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

/* حذف شد: این قانون با JavaScript تداخل داشت */
/* .search-form input:focus + button + .search-suggestions {
    display: block;
} */

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item.no-results {
    color: #666;
    font-style: italic;
    cursor: default;
}

.suggestion-item.no-results:hover {
    background-color: transparent;
}

.suggestion-image {
    width: 40px;
    height: 50px;
    margin-left: 10px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-price {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
}

.suggestion-item i {
    margin-left: 10px;
    color: #666;
}

.suggestion-item span {
    font-size: 0.9rem;
    color: #333;
}

.header-actions {
    display: flex;
    align-items: center;
}

.user-account, .shopping-cart {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 15px;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    padding: 5px 0;
}

.user-account i, .shopping-cart i {
    font-size: 1.5rem;
    margin-left: 5px;
    color: var(--primary-color);
}

/* استایل شمارنده سبد خرید */
.cart-count {
    position: absolute;
    top: -10px;
    left: -5px;
    background-color: #ff0000;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-right: 10px;
}

/* منوی اصلی */
.main-navigation {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #f0f0f0;
    position: fixed;
    top: 112px; /* تنظیم شده برای فاصله مناسب از هدر */
    left: 0;
    right: 0;
    z-index: 985;
    transition: top 0.3s ease;
}

.main-navigation.scrolled {
    top: 74px; /* ارتفاع هدر اصلی */
}

.main-menu {
    display: flex;
    justify-content: space-between;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-menu > li.active > a {
    color: var(--primary-color);
}

.main-menu > li > a:hover {
    color: var(--primary-color);
}

/* زیرمنوی کتاب‌ها */
.dropdown {
    position: relative;
}

.dropdown > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 5px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 990;
}

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

.dropdown-menu li {
    position: relative;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: #f7f9fc;
    color: var(--primary-color);
    padding-right: 20px;
}

/* زیرمنوی سطح دوم (لیست کتاب‌ها) */
.dropdown-menu li.has-submenu > a::after {
    content: "\f104";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
}

.dropdown-menu li.has-submenu:hover > a::after {
    transform: translateY(-50%) rotate(-90deg);
}

.submenu {
    position: absolute;
    top: 0;
    right: 100%;
    width: 230px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 991;
    max-height: 350px; /* حداکثر ارتفاع برابر با ارتفاع زیرمنوی اصلی */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f7f7f7;
}

.dropdown-menu li.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu::-webkit-scrollbar {
    width: 5px;
}

.submenu::-webkit-scrollbar-track {
    background: #f7f7f7;
    border-radius: 10px;
}

.submenu::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.submenu li a {
    padding: 6px 15px;
    font-size: 0.85rem;
}

/* منوی موبایل */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background-color: white;
    z-index: 9999;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.mobile-logo img {
    height: 40px;
    width: 100px;
    object-fit: contain;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #555;
}

.mobile-menu-content {
    padding: 15px;
}

.mobile-menu-items li {
    position: relative;
}

.mobile-menu-items li a {
    display: block;
    padding: 8px 0;
    color: var(--text-color);
    font-weight: 500;
}

.mobile-menu-items li.active a {
    color: var(--primary-color);
}

.mobile-contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mobile-contact a {
    display: block;
    padding: 8px 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.mobile-contact a i {
    margin-left: 8px;
    color: var(--primary-color);
}

.mobile-social {
    display: flex;
    margin-top: 20px;
    gap: 10px;
}

.mobile-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #eee;
    border-radius: 50%;
    color: #666;
    transition: all 0.3s ease;
}

.mobile-social .social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* منوی موبایل با زیرمنوها */
.mobile-menu-items .dropdown > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.mobile-menu-items .dropdown.open > a::after {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-dropdown-menu {
    padding-right: 15px;
    border-right: 2px solid var(--primary-color);
    margin: 5px 0 5px 0;
    display: none;
}

.mobile-dropdown-menu.open {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mobile-dropdown-menu li a {
    padding: 8px 15px;
    font-size: 0.85rem;
    display: block;
}

/* زیرمنوی سطح دوم در حالت موبایل */
.mobile-dropdown-menu li.has-submenu > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-dropdown-menu li.has-submenu.open > a::after {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-submenu {
    padding-right: 15px;
    border-right: 1px solid #eee;
    margin: 5px 0 5px 0;
    display: none;
}

.mobile-submenu.open {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mobile-submenu li a {
    padding: 6px 15px;
    font-size: 0.8rem;
}

/* اسلایدر اصلی و پرفروش‌ها */
.banner-bestsellers-section {
    display: flex;
    gap: 20px;
    margin: 20px auto;
    max-width: 1170px;
    justify-content: center;
    align-items: stretch;
}

.banner-section {
    flex: 0 0 75%; /* عرض 3/4 - flex-grow: 0, flex-shrink: 0, flex-basis: 75% */
    margin: 0;
    height: 350px; /* ارتفاع ثابت */
    min-height: 350px;
    max-height: 350px;
}

.main-slider {
    position: relative;
    width: 100%;
    height: 350px; /* ارتفاع ثابت */
    min-height: 350px;
    max-height: 350px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 350px; /* ارتفاع ثابت */
    min-height: 350px;
    max-height: 350px;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 30px;
    background: #fff;
    transition: all 0.5s ease;
    transform: translateX(100%);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 10;
}

.slide-content {
    flex: 1;
    padding: 20px 5px 20px 0;
    z-index: 5;
}

.slide-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 20px;
    z-index: 5;
}

.slide-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.slide-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #666;
}

.slide-description {
    font-size: 1rem;
    color: #777;
    margin-bottom: 25px;
    line-height: 1.6;
}

.slide .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.slide .btn:hover {
    background-color: #0e61b5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* کنترل‌های اسلایدر */
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    z-index: 10;
}

.slider-controls button {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.slider-controls button:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slider-controls button:active {
    transform: scale(0.95);
}

.slider-controls i {
    font-size: 18px;
    color: #333;
}

/* پرفروش‌های تیزهوشان */
.bestseller-nav {
    position: absolute;
    width: 100%;
    top: 40%;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.bestseller-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.bestseller-nav-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.bestseller-nav-btn:active {
    transform: scale(0.95);
}

/* دکمه‌های ناوبری پرفروش‌ها */
.bestseller-nav-btns {
    position: absolute;
    bottom: 20px; /* افزایش فاصله از پایین */
    left: 0;
    right: 0;
    z-index: 10;
    pointer-events: none;
}

.bestseller-nav-btn {
    position: absolute;
    pointer-events: auto;
}

.bestseller-nav-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #29378a;
    color: #29378a;
    border-radius: 50%;
    width: 36px; /* افزایش اندازه برای بهتر دیده شدن */
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; /* افزایش اندازه فونت */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}

.bestseller-nav-btn:hover {
    background: #29378a;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(41, 55, 138, 0.4);
}

.bestseller-nav-btn:active {
    transform: scale(0.95);
}

/* قرار دادن دکمه‌ها در گوشه‌ها */
.bestseller-nav-btn.prev-bestseller {
    right: 20px; /* افزایش فاصله از لبه راست */
    bottom: 0; /* تراز با پایین container */
}

.bestseller-nav-btn.next-bestseller {
    left: 20px; /* افزایش فاصله از لبه چپ */
    bottom: 0; /* تراز با پایین container */
}

/* تاچ اسکرول */
.tabs-nav {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    cursor: grab;
    padding-bottom: 5px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.books-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.bestsellers-section {
    flex: 0 0 25%; /* عرض 1/4 - flex-grow: 0, flex-shrink: 0, flex-basis: 25% */
    margin: 0;
    position: relative;
    height: 350px; /* ارتفاع ثابت */
    min-height: 350px;
    max-height: 350px;
}

.bestsellers-box {
    position: relative;
    background-color: #29378a;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 15px;
    height: 350px; /* ارتفاع ثابت */
    min-height: 350px;
    max-height: 350px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bestsellers-box::before {
    content: "پرفروش‌های تیزهوشان";
    color: white;
    display: block;
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
}

.bestseller-item {
    display: none;
    height: 350px; /* ارتفاع ثابت */
    min-height: 350px;
    max-height: 350px;
    flex-direction: column;
    justify-content: flex-start; /* تغییر از space-between به flex-start */
    position: relative;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bestseller-item.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.bestseller-item.active {
    display: flex;
}

.bestseller-image {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 180px; /* کاهش ارتفاع تصویر */
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0; /* جلوگیری از کوچک شدن تصویر */
}

.bestseller-image::before {
    display: none;
}

.bestseller-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.bestseller-content {
    padding: 6px 8px; /* کاهش بیشتر padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 50px; /* کاهش فاصله از دکمه‌های ناوبری */
    justify-content: space-between; /* توزیع محتوا */
    min-height: 0; /* اجازه کوچک شدن */
    min-height: 100px; /* حداقل ارتفاع برای محتوا */
}

.bestseller-title {
    font-size: 12px; /* کاهش بیشتر اندازه فونت */
    font-weight: 700;
    margin: 0;
    margin-bottom: 6px; /* کاهش بیشتر فاصله */
    color: #D6D6D6;
    line-height: 1.2;
    height: 32px; /* کاهش بیشتر ارتفاع */
    min-height: 32px;
    max-height: 32px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    padding: 0;
    flex-shrink: 0; /* جلوگیری از کوچک شدن عنوان */
}

.bestseller-price {
    font-size: 12px; /* کاهش بیشتر اندازه فونت */
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px; /* کاهش بیشتر فاصله */
    margin-top: auto; /* فشار دادن قیمت به پایین */
    flex-shrink: 0; /* جلوگیری از کوچک شدن قیمت */
    line-height: 1.2;
}

/* هدر بخش‌ها */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.section-title {
    font-size: 1.2rem;
    color: var(--text-color);
    position: relative;
    padding-right: 12px;
}

.section-title::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.view-all {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* تب‌ها */
.tabs {
    margin-bottom: 20px;
}

.tab-btn {
    white-space: nowrap;
    padding: 10px 15px;
    border: none;
    background-color: transparent;
    font-family: 'IRANSans';
    font-weight: 500;
    font-size: 0.9rem;
    color: #666;
    position: relative;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    left: 0;
    height: 2px;
    background-color: var(--primary-color);
}

/* کارت کتاب‌ها */
.book-card {
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 0 0 180px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.book-card:active {
    transform: scale(0.98);
}

.book-img {
    height: 200px;
    position: relative;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-x pan-y;
    border-radius: 12px;
}

.book-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(to top, white, transparent 12%),
        linear-gradient(to bottom, white, transparent 12%),
        linear-gradient(to left, white, transparent 12%),
        linear-gradient(to right, white, transparent 12%);
    pointer-events: none;
    z-index: 1;
}

.book-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    border-radius: 12px;
}

.book-info {
    padding: 10px;
    text-align: right;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.book-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A2E53;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-grade {
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 5px;
    pointer-events: none;
    background-color: #E1E9F8;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 15px;
}

.book-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1A2E53;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.book-price.discount {
    font-size: 0.85rem;
    color: #1A2E53;
    text-decoration: line-through;
    text-decoration-color: #FF7C75;
    text-decoration-thickness: 2px;
}

.book-price-final {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1A2E53;
    margin-right: 5px;
}

/* آیکون‌های سبد خرید */
.add-to-cart-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1 !important;
    transform: scale(1);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    visibility: visible !important;
}

.add-to-cart-icon:hover {
    background: rgba(40, 167, 69, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.add-to-cart-icon i {
    font-size: 18px;
}

.book-img:hover .add-to-cart-icon,
.bestseller-image:hover .add-to-cart-icon {
    background: rgba(40, 167, 69, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* بنرهای تبلیغاتی */
.promo-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.promo-banner {
    background-color: #e1e9f8;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 319px;
    position: relative;
}

/* استایل بنر مجله تیزهوشان */
.promo-banner[style*="background-color: #e1e9f8"] {
    position: relative;
    overflow: hidden;
}

.promo-banner[style*="background-color: #e1e9f8"] .promo-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}

.promo-banner[style*="background-color: #e1e9f8"] .promo-image {
    position: absolute;
    bottom: 15px;
    left: 15px;
    height: 220px;
    width: 50%;
    max-width: 50%;
    object-fit: contain;
    margin-bottom: 0;
    padding-bottom: 0;
}

.promo-banner[style*="background-color: #e1e9f8"] .promo-color-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 65%;
    aspect-ratio: 1;
    background-color: #FF7C75;
    z-index: 0;
    border-radius: 0 100% 0 0;
}

.promo-banner[style*="background-color: #e1e9f8"] .promo-title {
    color: #2E3192;
}

.promo-banner[style*="background-color: #e1e9f8"] .promo-text {
    color: #4785FF;
}

/* استایل بنر کودک توانا */
.promo-banner[style*="background-image: url('images/kids-collection.png')"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.promo-banner[style*="background-image: url('images/kids-collection.png')"] .promo-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 10px;
    padding: 20px;
}

/* استایل بنر مجموعه 13 آزمون */
.promo-banner[style*="background: linear-gradient(to bottom, #E1E9F8 70%, #F9BE25 30%)"] {
    position: relative;
}

.promo-banner[style*="background: linear-gradient(to bottom, #E1E9F8 70%, #F9BE25 30%)"] .promo-content {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: absolute;
    top: 0;
    right: 0;
}

.promo-content {
    padding: 25px;
    flex: 1;
    z-index: 1;
    position: relative;
}

.promo-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.promo-text {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.promo-grade {
    display: inline-block;
    padding: 4px 10px;
    background-color: #2F59AA;
    color: white;
    font-size: 0.75rem;
    border-radius: 20px;
    margin-bottom: 15px;
}

.see-all-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.promo-banner[style*="background: linear-gradient(to bottom, #E1E9F8 70%, #F9BE25 30%)"] .promo-image {
    position: absolute;
    bottom: 15px;
    left: 15px;
    height: 220px;
    max-width: 65%;
    object-fit: contain;
}

.promo-image {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 319px;
    max-width: 60%;
    object-fit: contain;
    z-index: 0;
}

/* برای باکس 12 آزمون، رنگ‌های سفارشی اعمال می‌شود */
.promo-banner[style*="background: linear-gradient(to bottom, #E1E9F8 70%, #F9BE25 30%)"] .promo-title {
    font-size: 1.4rem;
    color: #2E3192;
    margin-bottom: 12px;
    text-align: right;
}

.promo-banner[style*="background: linear-gradient(to bottom, #E1E9F8 70%, #F9BE25 30%)"] .promo-text {
    font-size: 1rem;
    color: #4785FF;
    margin-bottom: 15px;
}

/* فوتر */
.site-footer {
    background-color: #f8f9fa;
    padding: 40px 0 20px;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-about {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 0;
}

.footer-logo {
    margin-bottom: 0;
    height: 60px;
    flex-shrink: 0;
}

.footer-bottom-section {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.footer-offices {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-office p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.footer-office p i {
    margin-left: 8px;
    margin-top: 4px;
    color: var(--primary-color);
}

.footer-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #666;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #eee;
    border-radius: 50%;
    color: #666;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #888;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .footer-bottom-section {
        grid-template-columns: 1fr 1fr;
    }
    
    .promo-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* باکس مجموعه 12 آزمون در حالت تبلت */
    .promo-banner[style*="background: linear-gradient(to bottom, #E1E9F8 70%, #F9BE25 30%)"] {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-about {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-bottom-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
    }
    
    .header-search {
        margin: 0 10px;
    }
    
    .user-account span {
        display: none;
    }
    
    .slide {
        flex-direction: column-reverse;
        padding: 15px;
    }
    
    .slide-content {
        text-align: center;
    }
    
    .bestsellers-box {
        flex-direction: column;
    }
    .bestseller-content {
        order: 2;
        text-align: center;
    }
    
    .bestseller-image {
        order: 1;
    }
    
    .book-card {
        flex: 0 0 160px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .promo-section {
        grid-template-columns: 1fr;
    }
    
    .slider-controls button {
        width: 35px;
        height: 35px;
    }
    
    .slider-controls i {
        font-size: 16px;
    }
    
    /* تنظیم promo-content در حالت موبایل برای همه باکس‌ها */
    .promo-content {
        width: 100%;
        padding: 15px;
        background: transparent !important;
        background-image: none !important;
    }
    
    /* استایل باکس مجله تیزهوشان در موبایل */
    .promo-banner[style*="background-color: #e1e9f8"] {
        position: relative;
        overflow: hidden;
        height: 280px;
    }
    
    .promo-banner[style*="background-color: #e1e9f8"] .promo-content {
        position: absolute;
        top: 0;
        right: 0;
        padding: 15px;
        z-index: 2;
    }
    
    .promo-banner[style*="background-color: #e1e9f8"] .promo-image {
        position: absolute;
        bottom: 5px;
        left: 5px;
        height: 250px;
        width: 50%;
        max-width: 50%;
        margin-bottom: 0;
        padding-bottom: 0;
        z-index: 1;
    }
    
    .promo-banner[style*="background-color: #e1e9f8"] .promo-color-box {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 65%;
        aspect-ratio: 1;
        background-color: #FF7C75;
        z-index: 0;
        border-radius: 0 100% 0 0;
    }
    
    .promo-banner[style*="background-color: #e1e9f8"] .promo-title {
        color: #2E3192;
        font-size: 1.2rem;
    }
    
    .promo-banner[style*="background-color: #e1e9f8"] .promo-text {
        color: #4785FF;
        font-size: 0.9rem;
    }
    
    /* حفظ استایل باکس مجموعه کودک توانا در موبایل مشابه دسکتاپ */
    .promo-banner[style*="background-image: url('images/kids-collection.png')"] {
        height: 250px;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }
    
    .promo-banner[style*="background-image: url('images/kids-collection.png')"] .promo-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.6) !important;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        border-radius: 10px;
        padding: 15px;
        box-shadow: none;
    }
    
    .promo-banner[style*="background-image: url('images/kids-collection.png')"] .promo-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
        color: #2E3192;
    }
    
    .promo-banner[style*="background-image: url('images/kids-collection.png')"] .promo-text {
        font-size: 0.9rem;
        margin-bottom: 0;
        color: #4785FF;
    }
    
    .promo-banner[style*="background: linear-gradient(to bottom, #E1E9F8 70%, #F9BE25 30%)"] {
        background: linear-gradient(to bottom, transparent 70%, #F9BE25 30%) !important;
    }
    
    .promo-banner[style*="background: linear-gradient(to bottom, #E1E9F8 70%, #F9BE25 30%)"] .promo-content {
        background-color: transparent !important;
        background-image: none !important;
        padding: 20px 15px;
    }
    
    .promo-banner[style*="background: linear-gradient(to bottom, #E1E9F8 70%, #F9BE25 30%)"] .promo-image {
        bottom: 10px;
        left: 10px;
        height: 180px;
        max-width: 65%;
    }
    
    /* استایل باکس مجله تیزهوشان در موبایل */
    .promo-banner[style*="background-color: #e1e9f8"] .promo-image {
        position: absolute;
        bottom: 5px;
        left: 5px;
        height: 250px;
        width: 50%;
        max-width: 50%;
        margin-bottom: 0;
        padding-bottom: 0;
        z-index: 1;
    }
    
    /* حذف استایل تکراری در انتهای media query */
    .promo-banner[style*="background: linear-gradient(to bottom, #E1E9F8 70%, #F9BE25 30%)"] .promo-image {
        bottom: 10px;
        left: 10px;
        height: 180px;
        max-width: 65%;
    }
    
    /* سبد خرید در موبایل */
    .cart-item {
        padding: 10px 0;
    }
    
    .cart-item-image {
        width: 50px;
        height: 70px;
        margin-left: 10px;
    }
    
    .cart-item-info h4 {
        font-size: 0.85rem;
    }
    
    .cart-item-price {
        font-size: 0.8rem;
    }
    
    .remove-item {
        padding: 6px;
        font-size: 0.85rem;
    }
    
    /* استایل برای صفحه پرداخت در موبایل */
    .coupon-form {
        flex-direction: column;
    }
    
    .shipping-option label {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .option-price {
        margin-top: 10px;
    }
    
    .payment-options {
        flex-direction: column;
        gap: 10px;
    }
}

/* سبد خرید */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.cart-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-cart {
    border: none;
    background: transparent;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    height: calc(100vh - 180px);
}

.cart-footer {
    background-color: #fff;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    position: relative;
    z-index: 10;
    padding-bottom: max(15px, env(safe-area-inset-bottom, 15px));
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: bold;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    position: relative;
    z-index: 11;
    height: auto;
    min-height: 48px;
}

.btn-checkout:hover {
    background-color: #3955d1;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 769px) {
    .cart-sidebar {
        width: 400px;
        right: auto;
        left: -400px;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .cart-sidebar.open {
        left: 0;
        right: auto;
    }
}

/* اصلاحات مخصوص اندروید */
@supports (-webkit-touch-callout: none) {
    .cart-footer {
        padding-bottom: 25px;
    }
    
    .btn-checkout {
        margin-bottom: 10px;
    }
}

/* به‌روزرسانی استایل cart-item */
.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.cart-item-image {
    width: 60px;
    height: 85px;
    margin-left: 15px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: 500;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-price .discount {
    font-size: 0.75rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
    display: inline-block;
    font-weight: normal;
}

.cart-item-price .final-price {
    color: var(--primary-color);
    font-weight: 600;
}

.remove-item {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .cart-item {
        padding: 10px 0;
    }
    
    .cart-item-image {
        width: 50px;
        height: 70px;
        margin-left: 10px;
    }
    
    .cart-item-info h4 {
        font-size: 0.85rem;
    }
    
    .cart-item-price {
        font-size: 0.8rem;
    }
    
    .remove-item {
        padding: 6px;
        font-size: 0.85rem;
    }
}

/* تنظیم شکل نشانگر ماوس برای منوی کتاب‌ها در حالت دسکتاپ */
.main-menu .dropdown a[class="cursor-pointer"],
.main-menu li.dropdown:nth-child(2) > a,
.main-menu li.dropdown:nth-child(2),
.main-navigation .main-menu > li.dropdown:nth-child(2) > a {
    cursor: pointer !important;
}

/* اطمینان از نمایش علامت نشانگر دست روی همه منوهای دارای زیرمنو */
.nav-item.has-dropdown > a,
.dropdown-menu .has-submenu > a,
.books-menu a,
.dropdown > a {
    cursor: pointer !important;
}

/* منوی ورود کاربر */
.user-dropdown {
    position: fixed;
    top: 0;
    left: -400px;
    width: 350px;
    height: 100vh;
    background-color: white;
    z-index: 99999;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* کلاس برای نمایش منوی کاربر با کلیک */
.user-dropdown.show {
    left: 0;
}

.user-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.user-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.user-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.user-dropdown-header #lblAuthTitle {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.close-user-dropdown {
    border: none;
    background: transparent;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    position: relative;
    transition: color 0.3s ease;
}

.auth-tab.active {
    color: var(--primary-color);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    left: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.auth-content {
    display: none;
    max-height: 70vh;
    overflow-y: auto;
}

.auth-content::-webkit-scrollbar {
    width: 3px;
}

.auth-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.auth-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.auth-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.auth-form {
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(75, 123, 236, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-right: 15px;
    cursor: pointer;
}

.auth-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: white;
    font-family: 'IRANSans', tahoma, sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-btn:hover {
    background-color: var(--header-bg);
}

.forgot-password {
    text-align: center;
    margin-top: 10px;
}

.forgot-password a {
    font-size: 0.8rem;
    color: #888;
}

.forgot-password a:hover {
    color: var(--primary-color);
}

.user-menu-items {
    border-top: 1px solid #eee;
    margin-top: 15px;
    padding-top: 15px;
}

.user-menu-items li {
    margin-bottom: 8px;
}

.user-menu-items li a {
    display: block;
    padding: 8px 10px;
    font-size: 0.9rem;
    color: #555;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.user-menu-items li a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.user-menu-items li a i {
    margin-left: 8px;
    width: 16px;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cursor-pointer {
    cursor: pointer !important;
}

/* استایل‌های صفحه اطلاعات کتاب */

/* بردکرامب (مسیر صفحه) */
.breadcrumb {
    margin: 20px 0;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #666;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #0089ff;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb .current {
    color: #0089ff;
    font-weight: 500;
}

/* بخش اصلی اطلاعات کتاب */
.book-details {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.book-details-content {
    display: flex;
    padding: 30px;
}

/* بخش گالری تصاویر کتاب */
.book-image-gallery {
    width: 40%;
    padding-left: 30px;
}

.main-image {
    background-color: #f9f9f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    overflow: hidden;
    margin-bottom: 15px;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.thumbnail.active {
    border-color: #0089ff;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* بخش اطلاعات کتاب */
.book-info-container {
    width: 60%;
}

.book-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A2E53;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.book-meta-item {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.meta-label {
    min-width: 100px;
    color: #666;
    font-weight: 500;
}

.meta-value {
    color: #333;
}

/* بخش قیمت و دکمه افزودن به سبد خرید */
.book-price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.book-price {
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: #0089ff;
}

.price-currency {
    font-size: 16px;
    color: #666;
}

.add-to-cart-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: #f0f0f0;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #555;
    transition: background-color 0.2s;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity-input {
    width: 40px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    color: #333;
}

.book-availability {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.available {
    color: #28a745;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.available::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #28a745;
    margin-left: 5px;
}

.delivery-info {
    color: #666;
    font-size: 14px;
}

/* تب‌های توضیحات کتاب */
.book-details-tabs {
    padding: 0 30px 30px;
}

.book-details-tabs .tabs-nav {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.book-details-tabs .tab-btn {
    padding: 15px 20px;
    border: none;
    background: none;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.book-details-tabs .tab-btn:hover {
    color: #0089ff;
}

.book-details-tabs .tab-btn.active {
    color: #0089ff;
}

.book-details-tabs .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    left: 0;
    height: 2px;
    background-color: #0089ff;
}

.book-details-tabs .tab-pane {
    display: none;
    padding: 20px 0;
}

.book-details-tabs .tab-pane.active {
    display: block;
}

/* استایل توضیحات کتاب */
.book-description h3,
.book-summary h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.book-description p,
.book-summary p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

.book-description ul,
.book-summary ul {
    padding-right: 20px;
    margin-bottom: 15px;
}

.book-description li,
.book-summary li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #555;
}

/* جدول مشخصات کتاب */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.specs-table th {
    width: 150px;
    color: #666;
    font-weight: 500;
}

.specs-table td {
    color: #333;
}

/* دکمه دانلود خلاصه کتاب */
.download-summary {
    margin-top: 30px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-download:hover {
    background-color: #e5e5e5;
}

/* کتاب‌های مرتبط */
.related-books-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* استایل‌های پاسخگو برای صفحه bookinfo */
@media screen and (max-width: 992px) {
    .book-details-content {
        flex-direction: column;
    }
    
    .book-image-gallery,
    .book-info-container {
        width: 100%;
    }
    
    .book-image-gallery {
        padding-left: 0;
        margin-bottom: 30px;
    }
    
    .main-image {
        height: 350px;
    }
    
    .book-price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .add-to-cart-section {
        width: 100%;
    }
    
    .btn-add-to-cart {
        flex-grow: 1;
        text-align: center;
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    .book-details-content {
        padding: 15px;
    }
    
    .book-details-tabs {
        padding: 0 15px 15px;
    }
    
    .main-image {
        height: 280px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .book-title {
        font-size: 20px;
    }
    
    .book-details-tabs .tab-btn {
        padding: 10px;
        font-size: 14px;
    }
}

/* استایل‌های صفحه نهایی کردن خرید - کامل و یکپارچه */

/* استایل کلی صفحه */
.checkout-page {
    margin: 40px 0;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}

.checkout-container {
    display: flex;
    gap: 30px;
}

.checkout-summary,
.checkout-payment {
    width: 50%;
}

/* استایل باکس‌های صفحه */
.checkout-box {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.box-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #444;
    margin-bottom: 15px;
}

/* استایل محصولات سبد خرید */
.order-items {
    margin-bottom: 25px;
}

.order-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
    align-items: center;
}

.order-item .item-details {
    flex-grow: 1;
    margin-left: 10px;
}

.item-image {
    width: 60px;
    height: 80px;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    flex-shrink: 0;
}

.item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.item-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 14px;
}

.price-discount {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    display: inline-block;
    margin-left: 8px;
}

.price-final {
    color: #0089ff;
    font-weight: 500;
}

.show-all-items {
    text-align: center;
    margin-top: 15px;
}

.show-all-btn {
    background: none;
    border: none;
    color: #0089ff;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 10px;
}

.show-all-btn:hover {
    text-decoration: underline;
}

/* استایل فرم کد تخفیف */
.coupon-box {
    margin: 25px 0;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}

.coupon-form {
    display: flex;
    gap: 10px;
}

.coupon-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.btn-apply-coupon {
    padding: 0 20px;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-apply-coupon:hover {
    background-color: #e5e5e5;
}

/* استایل بخش شیوه ارسال */
.shipping-method {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}

.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shipping-option {
    position: relative;
}

.shipping-option label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.shipping-option input {
    position: absolute;
    opacity: 0;
}

.shipping-option input:checked + label {
    border-color: #0089ff;
    background-color: rgba(0, 137, 255, 0.05);
}

.option-details {
    display: flex;
    flex-direction: column;
}

.option-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.option-desc {
    font-size: 13px;
    color: #777;
}

.option-price {
    font-weight: 500;
    color: #0089ff;
}

/* استایل بخش جزئیات صورتحساب */
.bill-details {
    margin-bottom: 25px;
}

.bill-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.bill-label {
    color: #666;
}

.bill-value {
    font-weight: 500;
    color: #333;
}

.discount-value {
    color: #28a745;
}

.total-row {
    border-bottom: none;
    border-top: 2px solid #eee;
    margin-top: 10px;
    padding-top: 15px;
}

.total-row .bill-label,
.total-row .bill-value {
    font-size: 18px;
    font-weight: 600;
    color: #0089ff;
}

/* استایل بخش اطلاعات کاربر */
.user-info {
    margin: 25px 0;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}

.user-info-display {
    margin-bottom: 15px;
}

.info-item {
    margin-bottom: 10px;
}

.info-label {
    color: #666;
    display: inline-block;
    width: 140px;
}

.info-value {
    color: #333;
    font-weight: 500;
}

.btn-edit-info {
    padding: 8px 16px;
    font-size: 14px;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-edit-info:hover {
    background-color: #e5e5e5;
}

/* استایل بخش روش‌های پرداخت */
.payment-methods {
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}

.payment-options {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-option label {
    cursor: pointer;
}

.bank-logos {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.bank-logos img {
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.bank-logos img:hover {
    opacity: 1;
}

/* استایل دکمه‌های نهایی */
.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn-payment {
    padding: 15px 20px;
    background-color: #0089ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

.btn-payment:hover {
    background-color: #0070d2;
}

.return-to-shop {
    text-align: center;
    color: #666;
    text-decoration: none;
    padding: 5px;
}

.return-to-shop:hover {
    color: #0089ff;
    text-decoration: underline;
}

/* استایل‌های پاسخگو برای صفحه نهایی کردن خرید */
@media screen and (max-width: 992px) {
    .checkout-container {
        flex-direction: column;
    }
    
    .checkout-summary,
    .checkout-payment {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .coupon-form {
        flex-direction: column;
    }
    
    .shipping-option label {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .option-price {
        margin-top: 10px;
    }
    
    .payment-options {
        flex-direction: column;
        gap: 10px;
    }
}

@media screen and (max-width: 576px) {
    .checkout-box {
        padding: 15px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .bill-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .total-row {
        flex-direction: row;
    }
}

/* استایل دکمه حذف کالا در صفحه نهایی کردن خرید */
.remove-order-item {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    flex-shrink: 0;
}

.remove-order-item:hover {
    background-color: #ff5555;
    color: #fff;
    border-color: #ff5555;
}

.promo-banner[style*="background-image: url('images/kids-collection.png')"] .promo-title {
    color: #2E3192;
}

.promo-banner[style*="background-image: url('images/kids-collection.png')"] .promo-text {
    color: #4785FF;
    font-weight: bold;
}

@media screen and (max-width: 1200px) {
    .cart-item {
        padding: 10px 0;
    }
}

@media screen and (max-width: 1200px) {
    .coupon-form {
        flex-direction: column;
    }
}

/* استایل‌های اعتبارسنجی فرم */
.validation-summary {
    background-color: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #d32f2f;
    font-size: 14px;
    line-height: 1.5;
}

.validation-summary ul {
    margin: 0;
    padding-right: 0;
    list-style-type: none;
}

.validation-summary li {
    margin-bottom: 5px;
    position: relative;
    padding-right: 20px;
}

.validation-summary li:before {
    content: "•";
    position: absolute;
    right: 0;
    color: #d32f2f;
}

.validation-error {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    text-align: right;
    background-color: #ffebee;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ffcdd2;
}

.form-group {
    position: relative;
    margin-bottom: 16px;
}

.form-group .validation-error {
    position: absolute;
    bottom: -24px;
    right: 0;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 1;
}

.form-control:invalid {
    border-color: #d32f2f;
}

.form-control:valid {
    border-color: #4caf50;
}

.login-error {
    color: #d32f2f;
    font-size: 14px;
    text-align: center;
    background-color: #ffebee;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ffcdd2;
    margin-bottom: 16px;
    display: block;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.remember-me:hover {
    background-color: #f0f2f5;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* استایل‌های منوی کاربری */
.user-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-menu-items li {
    margin-bottom: 8px;
}

.user-menu-items li:last-child {
    margin-bottom: 0;
}

.user-menu-items a,
.user-menu-items .logout-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.user-menu-items a:hover,
.user-menu-items .logout-link:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.user-menu-items i {
    margin-left: 8px;
    width: 20px;
    text-align: center;
}

.logout-link {
    color: #d32f2f;
}

.logout-link:hover {
    background-color: #ffebee;
    color: #d32f2f;
}

/* استایل‌های صفحه نتایج جستجو */
.search-results-page {
    margin: 40px 0;
}

.search-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.search-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.search-header p {
    color: #666;
    font-size: 16px;
}

.search-results {
    display: grid;
    gap: 20px;
}

.search-result-item {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.result-image {
    width: 120px;
    height: 160px;
    margin-left: 20px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.result-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.result-title a:hover {
    color: var(--primary-color);
}

.result-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-content i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
}

.no-results-content h3 {
    font-size: 20px;
    color: #666;
    margin-bottom: 10px;
}

.no-results-content p {
    color: #999;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* استایل‌های پاسخگو برای صفحه نتایج جستجو */
@media (max-width: 768px) {
    .search-result-item {
        flex-direction: column;
        text-align: center;
    }
    
    .result-image {
        width: 100px;
        height: 130px;
        margin: 0 auto 15px;
    }
    
    .search-header h1 {
        font-size: 20px;
    }
    
    .result-title {
        font-size: 16px;
    }
    
    .result-price {
        font-size: 14px;
    }
}

/* استایل‌های GridView سبد خرید */
.cart-gridview {
    border: none !important;
    background: transparent !important;
    width: 100% !important;
}

.cart-gridview table {
    border: none !important;
    background: transparent !important;
    width: 100% !important;
}

.cart-gridview tr {
    border: none !important;
    background: transparent !important;
}

.cart-gridview td {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    vertical-align: top !important;
}

.cart-row, .cart-alternating-row {
    background: transparent !important;
    border: none !important;
}

/* دکمه‌های عملیات GridView */
.cart-action-button {
    background: none !important;
    border: none !important;
    color: #ff6b6b !important;
    cursor: pointer !important;
    padding: 8px !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 2px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

.cart-delete-button {
    background: none !important;
    border: none !important;
    color: #ff6b6b !important;
    cursor: pointer !important;
    padding: 8px !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 2px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

.cart-edit-button {
    background: none !important;
    border: none !important;
    color: #4B7BEC !important;
    cursor: pointer !important;
    padding: 8px !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 2px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

.cart-action-button:hover,
.cart-delete-button:hover {
    background-color: rgba(255, 107, 107, 0.1) !important;
    color: #ff5252 !important;
}

.cart-edit-button:hover {
    background-color: rgba(75, 123, 236, 0.1) !important;
    color: #3955d1 !important;
}

/* مخفی کردن ستون CommandField */
.cart-gridview .CommandField {
    display: none !important;
}

/* استایل برای نمایش تعداد در سبد خرید */
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.cart-item-quantity .quantity-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-quantity .quantity-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.cart-item-quantity .quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
    font-size: 12px;
    height: 28px;
}

.cart-item-quantity .quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(75, 123, 236, 0.1);
}

/* استایل برای حالت خالی بودن سبد خرید */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 1rem;
}

.empty-cart::before {
    content: '\f07a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    color: #ddd;
}

/* بهبود استایل دکمه حذف */
.remove-item {
    background: none !important;
    border: none !important;
    color: #ff6b6b !important;
    cursor: pointer !important;
    padding: 8px !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
}

.remove-item:hover {
    background-color: rgba(255, 107, 107, 0.1) !important;
    color: #ff5252 !important;
}