@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Castoro:ital@0;1&family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap");

@font-face {
    font-family: IRANSans;
    src: url('../fonts/IRANSans/woff/IRANSansWeb_Light.woff');
    src: url('../fonts/IRANSans/woff/IRANSansWeb_Light.woff');
url('../fonts/IRANSans/woff/IRANSansWeb_Light.woff') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 700;
    src: url(../fonts/IRANSans/eot/IRANSansWeb_Bold.eot)
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 500;
    src: url(../fonts/IRANSans/eot/IRANSansWeb_Medium.eot);
    src: url(../fonts/IRANSans/eot/IRANSansWeb_Medium.eot?#iefix) format('embedded-opentype'), url(../fonts/IRANSans/woff2/IRANSansWeb_Medium.woff2) format('woff2'), url(../fonts/IRANSans/woff/IRANSansWeb_Medium.woff) format('woff'), url(../fonts/IRANSans/ttf/IRANSansWeb_Medium.ttf) format('truetype')
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 300;
    src: url(../fonts/IRANSans/eot/IRANSansWeb_Light.eot);
    src: url(../fonts/IRANSans/eot/IRANSansWeb_Light.eot?#iefix) format('embedded-opentype'), url(../fonts/IRANSans/woff2/IRANSansWeb_Light.woff2) format('woff2'), url(../fonts/IRANSans/woff/IRANSansWeb_Light.woff) format('woff'), url(../fonts/IRANSans/ttf/IRANSansWeb_Light.ttf) format('truetype')
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 200;
    src: url(../fonts/IRANSans/eot/IRANSansWeb_UltraLight.eot);
    src: url(../fonts/IRANSans/eot/IRANSansWeb_UltraLight.eot?#iefix) format('embedded-opentype'), url(../fonts/IRANSans/woff2/IRANSansWeb_UltraLight.woff2) format('woff2'), url(../fonts/IRANSans/woff/IRANSansWeb_UltraLight.woff) format('woff'), url(../fonts/IRANSans/ttf/IRANSansWeb_UltraLight.ttf) format('truetype')
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/IRANSans/eot/IRANSansWeb.eot);
    src: url(../fonts/IRANSans/eot/IRANSansWeb.eot?#iefix) format('embedded-opentype'), url(../fonts/IRANSans/woff2/IRANSansWeb.woff2) format('woff2'), url(../fonts/IRANSans/woff/IRANSansWeb.woff) format('woff'), url(../fonts/IRANSans/ttf/IRANSansWeb.ttf) format('truetype')
}

@font-face {
    font-family: b yekan;
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/Yekan.ttf)
}

/* styles.css - استایل با تم رنگ قرمز خون (Blood Red Theme) */
/* رنگ‌های اصلی:
   - اصلی: #DC143C (crimson red)
   - تیره: #8B0000 (dark red)
   - روشن: #FF6B6B (light red)
   - بک‌گراند: #F8F9FA (خاکستری روشن)
   - متن: #333333 / #6C757D
   گرادینت‌ها: از تیره به روشن برای عمق */

/* ریست و کلی */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F8F9FA; /* بک‌گراند خاکستری روشن - تمیز */
    color: #333333; /* متن اصلی تیره */
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

body, h1, h2, h3, p, button {
    font-family: IRANSans !important;
}

.iransans-toast {
    font-family: IRANSans !important;
    direction: rtl;
}

.iransans-toast-title {
    font-family: IRANSans !important;
    font-size: 14px;
    font-weight: 500;
}

.swal2-popup {
    font-family: IRANSans !important;
    direction: rtl;
}

.swal2-title {
    font-family: IRANSans !important;
}

.int {
    font-family: b yekan !important;
}

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

ul {
    list-style: none;
}

/* هدر اصلی - تم قرمز خون با گرادینت */
.main-header {
    background: linear-gradient(135deg, #DC143C 0%, #B22222 100%); /* گرادینت از قرمز کریمزون به تیره‌تر */
    color: #FFFFFF; /* متن سفید */
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.2); /* سایه قرمز ملایم */
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
    color: #FFFFFF;
}

.logo img {
    margin-left: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.desktop_show {
    display: none;
}

.mobile_show {
    display: block;
}

@media (min-width: 769px) {
    .desktop_show {
        display: block;
    }

    .mobile_show {
        display: none;
    }
}


.nav-menu {
    position: relative;
}

.nav-menu ul {
    display: flex;
    gap: 15px;
}

.nav-menu a {
    color: #000000;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1); /* شفاف سفید */
    transition: all 0.3s ease;
    display: block;
    font-size: 0.9em;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #9f051d;
}

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

.search-icon, .cart-icon {
    font-size: 1.3em;
    padding: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon:hover, .cart-icon:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.login-btn {
    background-color: #FFFFFF;
    color: #DC143C;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    border: 1px solid #DC143C;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: #DC143C;
    color: #FFFFFF;
    box-shadow: 0 2px 5px rgba(220, 20, 60, 0.3);
}

/* منوی همبرگری برای موبایل */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* بخش هیرو - overlay قرمز خون */
.hero-section {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(rgba(220, 20, 60, 0.85), rgba(220, 20, 60, 0.85)), /* overlay قرمز */ url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* لایه تیره برای خوانایی */
    z-index: 1;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

.hero-section h2 {
    font-size: 2em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-image {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button {
    background-color: #FF0000; /* قرمز خالص برای CTA */
    color: #FFFFFF;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.cta-button:hover {
    background-color: #CC0000; /* قرمز تیره‌تر در hover */
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(255, 0, 0, 0.4);
}

/* بخش‌های عمومی - سفید با accents قرمز */
section {
    padding: 30px 15px;
    max-width: 1200px;
    margin: 0 auto 20px;
    background-color: #FFFFFF; /* سفید خالص */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #E9ECEF; /* حاشیه خاکستری روشن */
}

h2 {
    color: #DC143C; /* قرمز برای عنوان‌ها */
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 3px solid #DC143C;
    padding-bottom: 10px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 3px;
    background-color: #FF0000; /* قرمز خالص برای خط زیرین */
    border-radius: 2px;
}

/* گریدها - کارت‌های سفید با سایه قرمز ملایم */
.categories-grid,
.products-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-item,
.product-item,
.feature-item {
    background-color: #FFFFFF;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(220, 20, 60, 0.1); /* سایه قرمز ملایم */
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #E9ECEF;
}

.category-item:hover,
.product-item:hover,
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.2);
}

.category-img,
.product-img,
.feature-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h3 {
    color: #333333;
    margin-bottom: 10px;
    font-size: 1.2em;
}

p {
    color: #6C757D; /* خاکستری متوسط برای متن ثانویه */
    margin-bottom: 15px;
    font-size: 0.95em;
}

/* محصولات - رنگ قیمت: قرمز برای قیمت جدید */
.product-price {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.price {
    font-size: 1.2em;
    color: #DC143C; /* قرمز برای قیمت */
    margin-left: 10px;
}

.old-price {
    text-decoration: line-through;
    color: #6C757D; /* خاکستری */
}

.add-to-cart {
    background-color: #DC143C; /* قرمز */
    color: #FFFFFF;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background-color: #B22222; /* قرمز تیره‌تر */
    box-shadow: 0 4px 8px rgba(220, 20, 60, 0.3);
}

/* بخش مشاوره - قرمز روشن #FFE5E5 */
.consultation {
    background-color: #FFE5E5; /* قرمز خیلی روشن (ملایم) */
    border-radius: 10px;
    text-align: center;
    padding: 30px 20px;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.1);
    border: 1px solid #FF6B6B; /* حاشیه قرمز روشن */
}

.consult-img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.consult-form {
    max-width: 500px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.consult-form input,
.consult-form textarea {
    padding: 12px;
    border: 1px solid #DEE2E6; /* خاکستری روشن */
    border-radius: 5px;
    font-family: inherit;
    font-size: 1em;
    direction: rtl;
    background-color: #FFFFFF;
    transition: border-color 0.3s ease;
}

.consult-form input:focus,
.consult-form textarea:focus {
    outline: none;
    border-color: #DC143C;
    box-shadow: 0 0 8px rgba(220, 20, 60, 0.2);
}

.consult-form button {
    background-color: #DC143C;
    color: #FFFFFF;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.consult-form button:hover {
    background-color: #B22222;
    box-shadow: 0 4px 8px rgba(220, 20, 60, 0.3);
}

/* فوتر - تیره #343A40 با قرمز برای لینک‌ها */
footer {
    background-color: #343A40; /* خاکستری تیره */
    color: #FFFFFF;
    padding: 30px 15px 15px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.footer-section h3 {
    color: #DC143C; /* قرمز برای عنوان فوتر */
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-section p,
.footer-section ul li {
    margin-bottom: 10px;
    color: #ADB5BD; /* خاکستری روشن */
    font-size: 0.9em;
}

.footer-section ul li a {
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #DC143C;
}

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

.social-links a {
    color: #DC143C;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: #FF0000;
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #495057;
    color: #ADB5BD;
    font-size: 0.85em;
}

/* ریسپانسیو - حفظ تم قرمز */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 15px;
    }

    .logo {
        font-size: 1.3em;
    }

    .menu-toggle {
        display: flex;
    }

    /*.nav-menu {*/
    /*    position: absolute;*/
    /*    top: 100%;*/
    /*    right: 0;*/
    /*    width: 100%;*/
    /*    background: linear-gradient(135deg, #DC143C 0%, #B22222 100%);*/
    /*    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);*/
    /*    border-radius: 0 0 10px 10px;*/
    /*    overflow: hidden;*/
    /*    max-height: 0;*/
    /*    transition: max-height 0.3s ease;*/
    /*}*/
    /*.nav-menu.active {*/
    /*    max-height: 300px;*/
    /*}*/
    /*.nav-menu ul {*/
    /*    flex-direction: column;*/
    /*    gap: 0;*/
    /*    padding: 10px 0;*/
    /*}*/
    /*.nav-menu a {*/
    /*    padding: 12px 20px;*/
    /*    border-radius: 0;*/
    /*    background-color: transparent;*/
    /*    border-bottom: 1px solid rgba(255, 255, 255, 0.1);*/
    /*}*/
    /*.nav-menu a:last-child {*/
    /*    border-bottom: none;*/
    /*}*/
    .header-actions {
        margin-right: auto;
        margin-left: 10px;
    }

    .hero-section h2 {
        font-size: 1.7em;
    }

    .hero-section p {
        font-size: 0.95em;
    }

    .categories-grid,
    .products-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    section {
        padding: 20px 10px;
        margin: 10px;
    }

    h2 {
        font-size: 1.5em;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2em;
    }

    .logo img {
        max-width: 55px;
    }

    .header-actions {
        gap: 8px;
    }

    .search-icon, .cart-icon {
        font-size: 1.1em;
        padding: 6px;
    }

    .login-btn {
        padding: 6px 12px;
        font-size: 0.85em;
    }

    .hero-section {
        padding: 30px 15px;
    }

    .hero-section h2 {
        font-size: 1.5em;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 1em;
    }

    h2 {
        font-size: 1.3em;
    }

    .category-item,
    .product-item,
    .feature-item {
        padding: 12px;
    }

    .consultation {
        padding: 20px 15px;
    }

    footer {
        padding: 25px 10px 10px;
    }
}

/* انیمیشن‌های ملایم */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.8s ease-out;
}

html {
    scroll-behavior: smooth;
}

/* سایدبار پایین صفحه برای موبایل - طرح افقی */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    box-shadow: 0 -2px 15px rgba(220, 20, 60, 0.15);
    z-index: 1000;
    border-top: 2px solid #DC143C;
    padding: 8px 0 5px;
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    color: #6C757D;
    padding: 8px 12px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    color: #DC143C;
    background-color: rgba(220, 20, 60, 0.1);
}

.nav-icon {
    font-size: 1.4em;
    margin-left: 8px;
}

.nav-text {
    font-size: 0.8em;
    font-weight: 500;
    white-space: nowrap;
}

/* نشانگر وضعیت فعال */
.mobile-nav-item.active {
    color: #FFFFFF;
    background: linear-gradient(135deg, #DC143C 0%, #B22222 100%);
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

/* نشانگر تعداد در سبد خرید */
.cart-badge {
    position: absolute;
    top: -2px;
    right: 5px;
    background-color: #FF0000;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7em;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #FFFFFF;
}

/* اضافه کردن padding به فوتر برای جلوگیری از همپوشانی */
.ptd {
    padding-top: 20px;
}

/* تنظیمات برای تبلت و موبایل‌های بزرگتر */
@media (max-width: 768px) {
    .ptd {
        padding-top: 0 !important;
    }

    .mobile-bottom-nav {
        display: block;
    }

    /* اضافه کردن فضای کافی در پایین صفحه برای محتوا */

}

/* تنظیمات برای موبایل‌های کوچک */
@media (max-width: 480px) {
    .ptd {
        padding-top: 0 !important;
    }

    .mobile-bottom-nav {
        padding: 6px 0 3px;
    }

    .mobile-nav-item {
        padding: 6px 10px;
        flex-direction: column;
    }

    .nav-icon {
        font-size: 1.2em;
        margin-left: 0;
        margin-bottom: 4px;
    }

    .nav-text {
        font-size: 0.7em;
    }

    .cart-badge {
        top: 0;
        right: 8px;
        width: 16px;
        height: 16px;
        font-size: 0.65em;
    }
}

/* برای موبایل‌های بسیار کوچک */
@media (max-width: 360px) {
    .ptd {
        padding-top: 0 !important;
    }

    .mobile-nav-item {
        padding: 5px 8px;
    }

    .nav-icon {
        font-size: 1.1em;
    }

    .nav-text {
        font-size: 0.65em;
    }
}

/* انیمیشن برای تعامل بهتر */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.mobile-nav-item:active .nav-icon {
    animation: pulse 0.3s ease;
}

/* حالت افقی برای موبایل‌های متوسط */
@media (min-width: 361px) and (max-width: 480px) {
    .mobile-nav-item {
        flex-direction: row;
    }

    .nav-icon {
        margin-left: 5px;
        margin-bottom: 0;
    }
}


/* استایل‌های هدر هوشمند */
.main-header {
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    color: #FFFFFF;
    padding: 10px 0;
    /*box-shadow: 0 2px 10px rgba(220, 20, 60, 0.2);*/
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.main-header.header-hidden {
    transform: translateY(-100%);
}

.main-header.header-shrink {
    padding: 5px 0;
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    /*box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);*/
}

.header-shrink .logo {
    font-size: 1.2em;
}

.header-shrink .logo img {
    max-width: 35px;
}

.header-shrink .nav-menu a {
    padding: 4px 8px;
    font-size: 0.85em;
}

.header-shrink .search-icon,
.header-shrink .cart-icon {
    font-size: 1.2em;
    padding: 6px;
}

.header-shrink .login-btn {
    padding: 6px 12px;
    font-size: 0.85em;
}

/* اضافه کردن فضای خالی در بالای محتوا برای جبران هدر ثابت */
body {
    padding-top: 70px;
}

.header-shrink + * {
    margin-top: 60px;
}

.bg-blood {
    background-color: #9F051D !important;
}

.light-person {
    filter: brightness(1.5);
}

.limit {
    display: inline-block;
    max-width: var(--char-limit, 100px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
