/* @font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/IRANSans/IRANSansX-Bold.woff') format('woff'),
        url('../fonts/IRANSans/IRANSansX-Bold.woff2') format('woff2');
} */
@import url('https://cdn.jsdelivr.net/npm/vazirmatn@33.0.0/Vazirmatn-font-face.css');

@font-face {
    font-family: "iransans_bold";
    src: url("../../fonts/Webfonts/fonts/woff2/IRANSansX-Bold.woff2") format("woff2");
    src: url("../../fonts/Webfonts/fonts/woff/IRANSansX-Bold.woff") format("woff");
}

@font-face {
    font-family: "iransans_demibold";
    src: url("../fonts/IRANSans/IRANSansX-DemiBold.woff2") format("woff2");
    src: url("../fonts/IRANSans/IRANSansX-DemiBold.woff") format("woff");
}

/* ====================
End Project Fonts
=======================*/
/* ====================
Font Awesome 6 Pro
=======================*/
:root,
:host {
    --fa-style-family-classic: 'Font Awesome 6 Pro';
    --fa-font-light: normal 300 1em/1 'Font Awesome 6 Pro';
}

@font-face {
    font-family: 'Font Awesome 6 Pro';
    font-style: normal;
    font-weight: 300;
    font-display: block;
    src: url("../fonts/webfonts/fa-light-300.woff2") format("woff2"), url("../fonts/webfonts/fa-light-300.ttf") format("truetype");
}


.fal,
.fa-light {
    font-weight: bold;
}

/* ====================
Define Css Variables
=======================*/
:root {
    --primary-color: #040C26;
    --secondary-color: #F57C00;
    --background-color: #040C26;
    --background-green-color: #3ebf15;
    --text-color-link: #19bfd3;
    --color-hint: #f7c0a0;
    --text-color-hover: #1242FF;
    --text-color-primary: #fff;
    --text-color-500: #ccc;
    --text-color-900: rgba(0, 0, 0, 0.87);
    --primary-border-color: #dadada;
    --alert-error-color: #d8000c;
    --alert-error-bg: #ffdddd;
}

/* ====================
End Define Css Variables
=======================*/
/* ====================
Reset CSS
=======================*/
* {
    margin: 0;
    padding: 0;
    /* از اسکرول افقی جلوگیری میکند */
    box-sizing: border-box;
    /* ------------------------------ */
    /* برای اینکه هر المان جدا جدا رنگ تغییر ندیم و فقط به والد رنگ بدیم */
    color: inherit;
    font-weight: inherit;
}

html,
body {
    height: 100%;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main {
    /* فضای خالی را پر می‌کند */
    flex-grow: 1;
}

body {
    line-height: 1.5;
    font-size: 0.875rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: iransans_bold, sans-serif;
    background: linear-gradient(to bottom, #000000, #0035DC);
    background-attachment: fixed;
    /* برای ثابت نگه داشتن گرادینت هنگام اسکرول */
    /* background: linear-gradient(0deg, rgba(0, 53, 220, 1) 0%, rgba(1, 51, 211, 1) 30%, rgba(8, 37, 127, 1) 49%, rgba(13, 29, 77, 1) 68%, rgba(17, 21, 31, 1) 76%, rgba(16, 17, 41, 1) 85%, rgba(18, 19, 20, 1) 92%, rgba(0, 0, 0, 1) 100%); */
    background-repeat: no-repeat;
    direction: rtl;
    font-weight: 500;
}

/* make this responsive for all width */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* ---------------------------------- */
ul,
ol {
    list-style: none;
}

input,
textarea,
select,
button {
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    border: none;
    outline: none;
    background-color: inherit;
}

button,
input[type="button"],
input[type="submit"] {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

.text-link {
    color: var(--text-color-link);
    text-decoration: underline;
}

/* ====================
End Reset CSS
=======================*/
/* ====================
Customized Scrollbar
=======================*/
body::-webkit-scrollbar {
    width: 9px;
}

/* بخش لغزنده اسکرول بار */
body::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    width: 9px;
    border-radius: 10px;
}

/* فضای پشت اسکرول بار */
body::-webkit-scrollbar-track {
    background-color: var(--background-color);
}

@media (max-width:792px) {
    body::-webkit-scrollbar {
        display: none;
    }
}

/* ====================
End Customized Scrollbar
=======================*/
/* ====================
Container Classes
=======================*/
/* .container { */
/* width: 100%;
    padding-right: 15px;
    padding-left: 15px; */
/* وسط چین میکند */
/* margin-right: auto;
    margin-left: auto; */
/* } */

/* Desktop Extra Large (width larger than 1200px) */
/* @media(min-width:1400px) {
    .container {
        max-width: 1320px;
    }
} */

/* Desktop (width between 768px and 1200px) */
/* @media(min-width:1200px) and (max-width:1399px) {
    .container {
        max-width: 1140px;
    }
} */

/* Tablet (width between 768px and 1200px) */
/* @media(min-width:768px) and (max-width:1199px) {
    .container {
        max-width: 1110px;
    }
} */

/* Mobile (width smaller than 768px) */
/* @media(max-width:767px) {
    .container {
        max-width: 100%;
    }
} */

/* استایل پایه – موبایل */
.container {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

/* بنرها – پیش‌فرض تمام عرض */
.fullwidth-banner {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* تبلت */
@media (min-width: 768px) {
    .container {
        max-width: 1110px;
    }
}

/* دسکتاپ */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* مانیتور بزرگ */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .fullwidth-banner {
        max-width: 1920px;
        /* هم‌عرض کانتینر */
        margin-left: auto;
        margin-right: auto;
    }
}

/* ====================
End Container Classes
=======================*/
/* ====================
Responsive Grid System
=======================*/
.row {
    /* عناصر کنار هم قرار میگیرند */
    display: flex;
    /* اگر جانشد بره خط بعدی */
    flex-wrap: wrap;
}

/* Desktops (width larger than 1200px) */
@media(min-width:1200px) {

    /* .col-lg-1 {
        flex-grow: 0;   عنصر رشد نمیکند 
         flex-shrink: 0; عنصر کوچک نمیشود 
         flex-basis: 8.33%; عرض پایه عنصر 
    } */
    .col-lg-1 {
        flex: 0 0 8.33%;
    }

    .col-lg-2 {
        flex: 0 0 16.66%;
    }

    .col-lg-3 {
        flex: 0 0 25%;
    }

    .col-lg-4 {
        flex: 0 0 33.33%;
    }

    .col-lg-5 {
        flex: 0 0 41.66%;
    }

    .col-lg-6 {
        flex: 0 0 50%;
    }

    .col-lg-7 {
        flex: 0 0 58.33%;
    }

    .col-lg-8 {
        flex: 0 0 66.66%;
    }

    .col-lg-9 {
        flex: 0 0 75%;
    }

    .col-lg-10 {
        flex: 0 0 83.33%;
    }

    .col-lg-11 {
        flex: 0 0 91.66%;
    }

    .col-lg-12 {
        flex: 0 0 100%;
    }
}

/* Tablet (width between 768px and 1200px) */
@media(min-width:768px) and (max-width:1199px) {
    .col-md-1 {
        flex: 0 0 8.33%;
    }

    .col-md-2 {
        flex: 0 0 16.66%;
    }

    .col-md-3 {
        flex: 0 0 25%;
    }

    .col-md-4 {
        flex: 0 0 33.33%;
    }

    .col-md-5 {
        flex: 0 0 41.66%;
    }

    .col-md-6 {
        flex: 0 0 50%;
    }

    .col-md-7 {
        flex: 0 0 58.33%;
    }

    .col-md-8 {
        flex: 0 0 66.66%;
    }

    .col-md-9 {
        flex: 0 0 75%;
    }

    .col-md-10 {
        flex: 0 0 83.33%;
    }

    .col-md-11 {
        flex: 0 0 91.66%;
    }

    .col-md-12 {
        flex: 0 0 100%;
    }
}

/* Mobile (width smaller than 768px) */
@media(max-width:767px) {
    .col-sm-1 {
        flex: 0 0 8.33%;
    }

    .col-sm-2 {
        flex: 0 0 16.66%;
    }

    .col-sm-3 {
        flex: 0 0 25%;
    }

    .col-sm-4 {
        flex: 0 0 33.33%;
    }

    .col-sm-5 {
        flex: 0 0 41.66%;
    }

    .col-sm-6 {
        flex: 0 0 50%;
    }

    .col-sm-7 {
        flex: 0 0 58.33%;
    }

    .col-sm-8 {
        flex: 0 0 66.66%;
    }

    .col-sm-9 {
        flex: 0 0 75%;
    }

    .col-sm-10 {
        flex: 0 0 83.33%;
    }

    .col-sm-11 {
        flex: 0 0 91.66%;
    }

    .col-sm-12 {
        flex: 0 0 100%;
    }
}

/* ====================
Responsive Grid System
=======================*/
/* ====================
Alignment Classes
=======================*/
/* محور X ها */
.justify-content-start {
    justify-content: flex-start;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-end {
    justify-content: flex-end;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-around {
    justify-content: space-around;
}

/* محور Y ها */
.align-items-start {
    align-items: flex-start;
}

.align-items-center {
    align-items: center;
}

.align-items-end {
    align-items: flex-end;
}

/* ====================
End Alignment Classes
=======================*/
/* ====================
Responsive Width and Height Classes
=======================*/
.w-20 {
    width: 20%;
}

.w-25 {
    width: 25%;
}

.w-50 {
    width: 50%;
}

.w-75 {
    width: 75%;
}

.w-80 {
    width: 80%;
}

.w-100 {
    width: 100%;
}

.w-auto {
    width: auto;
}

.h-25 {
    height: 25%;
}

.h-50 {
    height: 50%;
}

.h-75 {
    height: 75%;
}

.h-100 {
    height: 100%;
}

.h-auto {
    height: auto;
}

.h-100vh {
    /* Full ViewPort Height */
    height: 100vh;
}

/* ====================
End Responsive Width and Height Classes
=======================*/
/* ====================
Spacing (Margin and Padding)
=======================*/
.m-0 {
    margin: 0;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 1rem;
}

.mr-4 {
    margin-right: 1.5rem;
}

.mr-5 {
    margin-right: 3rem;
}

.mr-6 {
    margin-right: 4rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-3 {
    margin-left: 1rem;
}

.ml-4 {
    margin-left: 1.5rem;
}

.ml-5 {
    margin-left: 3rem;
}

.mx-1 {
    margin: 0 0.25rem;
}

.mx-2 {
    margin: 0 0.5rem;
}

.mx-3 {
    margin: 0 1rem;
}

.mx-4 {
    margin: 0 1.5rem;
}

.mx-5 {
    margin: 0 3rem;
}

.mx-6 {
    margin: 4rem 0;
}

.my-1 {
    margin: 0.25rem 0;
}

.my-2 {
    margin: 0.5rem 0;
}

.my-3 {
    margin: 1rem 0;
}

.my-4 {
    margin: 1.5rem 0;
}

.my-5 {
    margin: 3rem 0;
}

.my-6 {
    margin: 4rem 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.p-0 {
    padding: 0;
}

.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.p-5 {
    padding: 3rem;
}

.pt-1 {
    padding-top: 0.25rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pt-3 {
    padding-top: 1rem;
}

.pt-4 {
    padding-top: 1.5rem;
}

.pt-5 {
    padding-top: 3rem;
}

.pr-1 {
    padding-right: 0.25rem;
}

.pr-2 {
    padding-right: 0.5rem;
}

.pr-3 {
    padding-right: 1rem;
}

.pr-4 {
    padding-right: 1.5rem;
}

.pr-5 {
    padding-right: 3rem;
}

.pl-1 {
    padding-left: 0.25rem;
}

.pl-2 {
    padding-left: 0.5rem;
}

.pl-3 {
    padding-left: 1rem;
}

.pl-4 {
    padding-left: 1.5rem;
}

.pl-5 {
    padding-left: 3rem;
}

.pb-1 {
    padding-bottom: 0.25rem;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

.pb-3 {
    padding-bottom: 1rem;
}

.pb-4 {
    padding-bottom: 1.5rem;
}

.pb-5 {
    padding-bottom: 3rem;
}

/* ====================
End Spacing (Margin and Padding)
=======================*/
/* ====================
Text Alignment
=======================*/
.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

/* ====================
End Text Alignment
=======================*/
/* ====================
Text Color
=======================*/
.text-white {
    color: var(--text-color-500);
}

.text-danger {
    color: #f00;
}

/* ====================
End Text Color
=======================*/
/* ====================
Typography (Font Size)
=======================*/
.fs-1 {
    font-size: 2.5rem;
}

.fs-2 {
    font-size: 2rem;
}

.fs-3 {
    font-size: 1.75rem;
}

.fs-4 {
    font-size: 1.5rem;
}

.fs-5 {
    font-size: 1.25rem;
}

.fs-6 {
    font-size: 1rem;
}

.fs-7 {
    font-size: 0.75rem;
}

.fw-light {
    font-weight: 300;
}

.fw-normal {
    font-weight: 400;
}

.fw-bold {
    font-weight: 700;
}

.fw-bolder {
    font-weight: bolder;
}

.fw-lighter {
    font-weight: lighter;
}

/* ====================
End Typography (Font Size)
=======================*/
/* ====================
Rounded Corner (Border Radius)
=======================*/
.rounded-1 {
    border-radius: 0.125rem !important;
}

.rounded-2 {
    border-radius: 0.25rem !important;
}

.rounded-3 {
    border-radius: 0.375rem !important;
}

.rounded-4 {
    border-radius: 0.5rem !important;
}

.rounded-5 {
    border-radius: 1rem !important;
}

.rounded-6 {
    border-radius: 1.5rem !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

/* ====================
End Rounded Corner (Border Radius)
=======================*/
/* ====================
Display Utilities
=======================*/
.d-none {
    display: none !important;
}

.d-flex {
    display: flex;
}

.d-block {
    display: block;
}

.flex-column {
    flex-direction: column;
}

@media (max-width:768px) {
    .d-sm-none {
        display: none !important;
    }

    .d-sm-inline {
        display: inline !important;
    }

    .d-sm-inline-block {
        display: inline-block !important;
    }

    .d-sm-block {
        display: block !important;
    }

    .d-sm-flex {
        display: flex !important;
    }
}

/* Small Devices */
@media (min-width:768px) and (max-width:1199px) {
    .d-md-none {
        display: none !important;
    }

    .d-md-inline {
        display: inline !important;
    }

    .d-md-inline-block {
        display: inline-block !important;
    }

    .d-md-block {
        display: block !important;
    }

    .d-md-flex {
        display: flex !important;
    }
}

/* Large Devices */
@media (min-width:1200px) {
    .d-lg-none {
        display: none !important;
    }

    .d-lg-inline {
        display: inline !important;
    }

    .d-lg-inline-block {
        display: inline-block !important;
    }

    .d-lg-block {
        display: block !important;
    }

    .d-lg-flex {
        display: flex !important;
    }
}

.cursor-pointer {
    cursor: pointer;
}

/* ====================
End Display Utilities
=======================*/
/* Contact Support Button */
#contact-support {
    width: 4.5rem;
    height: 4.5rem;
    position: fixed;
    right: 30px;
    bottom: 5.5rem;
    z-index: 999;
    color: #cccccc;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    visibility: hidden;
    opacity: 0;
    border-radius: 55px;
    border: none;
    background-color: var(--primary-color);
    font-size: 3rem;
    transition: all 0.4s ease;
    transform: translateY(60px);
    -ms-transform: translateY(60px);
    -webkit-box-shadow: 0px 9px 15px -1px rgba(0, 0, 0, 0.67);
    box-shadow: 0px 9px 15px -1px rgba(0, 0, 0, 0.67);
}

#contact-support::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: var(--primary-color);
    border-radius: 50px;
    animation: wave 15s linear infinite;
    transform: scale(1);
    transition: all 0.5s ease-in-out;
}


#contact-support i {
    font-size: 2.5rem;
}

#contact-support:hover,
#contact-support:focus {
    color: #777;
    background-color: #a81313;
}

#contact-support.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
}

@keyframes wave {

    /* اجرای سریع (حدود 0.6s = 2% از 30s) */
    0% {
        opacity: 0.9;
        transform: scale(0.85);
    }

    2% {
        opacity: 0.6;
        transform: scale(1.25);
    }

    4% {
        opacity: 0.25;
        transform: scale(1.7);
    }

    6% {
        opacity: 0;
        transform: scale(2);
    }

    /* توقف تا پایان ۵ ثانیه اول */
    16.66% {
        /* 5 ثانیه از 30 ثانیه */
        opacity: 0;
        transform: scale(1);
    }

    /* ۲۵ ثانیه خاموش */
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

@media screen and (min-width: 768px) {
    #contact-support {
        display: flex;
    }
}

@media screen and (max-width: 492px) {
    #contact-support {
        display: flex;
        bottom: 75px;
    }
}

/* Scroll Top Button */
#scroll-top {
    position: fixed;
    width: 3.5rem;
    height: 3.5rem;
    left: 30px;
    bottom: 5.5rem;
    z-index: 999;
    color: #f8f9fa;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    visibility: hidden;
    opacity: 0;
    border-radius: 50%;
    border: none;
    background-color: #8e8989;
    font-size: 1.8rem;
    transition: all 0.4s ease;
    transform: translateY(60px);
    -ms-transform: translateY(60px);
}

#scroll-top:hover,
#scroll-top:focus {
    color: #f8f9fa;
    background-color: #5d5d5d;
}

#scroll-top.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
}

/* Favorite */
.favorite-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    /* فاصله بین آیکون و متن */
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
}

.heart-icon {
    width: 24px;
    height: 24px;
    transition: fill 0.3s ease-in-out;
}

.heart-icon .heart-path {
    fill: black;
    /* حالت اولیه - مشکی توپر */
}

.heart-filled .heart-path {
    fill: red;
    /* وقتی در علاقه‌مندی‌ها هست، قرمز شود */
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: .75rem 1.2rem;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.5;
    letter-spacing: -.01em;
    border-radius: 3rem;
    white-space: nowrap;
    /* transition: all 0.3s; */
}

.btn-primary {
    color: var(--text-color-500);
    background: var(--text-color-hover);
    transition: background 0.4s;
    box-shadow: none;
}

.btn-primary:hover {
    background: #0a2696;
}

.btn-success {
    color: var(--text-color-900);
    background: #00ab55;
    transition: background 0.4s;
    box-shadow: none;
}

.btn-success:hover {
    background: #01773c;
}

.btn-danger {
    color: #fff;
    background-color: #f00;
    transition: background 0.4s;
    box-shadow: none;
}

.btn-danger:hover {
    background: rgb(197, 0, 0);
}

/* input */
.input__group {
    display: flex;
    flex-direction: column;
    /* gap: 0.5rem; */
    width: 100%;
}

.input__label {
    font-weight: bold;
    text-align: right;
}

.input__control {
    background-color: #fff;
    color: var(--text-color-900);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    width: 100%;
}

.select__control {
    background-color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    width: 100%;
}

.select-container {
    position: relative;
}

/* Counter Input */
.cart-counter {
    padding: 0.7rem;
    border: 1px solid var(--primary-border-color);
    border-radius: 0.5rem;
    color: var(--text-color-500);
    font-size: 0.875rem;
}

.btn-disabled {
    opacity: 50%;
}

.cart-counter__number {
    margin: 0 1rem;
}

.header-cart-counter {
    padding: 0.7rem;
    border: 1px solid var(--primary-border-color);
    border-radius: 0.5rem;
    color: var(--text-color-500);
    font-size: 0.875rem;
}

.header-cart-counter__number {
    margin: 0 1rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 1rem;
}

.alert-success {
    color: var(--text-color-900);
    background: var(--text-color-hover);
}

.alert-error {
    width: 100%;
    max-width: 100%;
    background: var(--alert-error-bg);
    color: var(--alert-error-color);
    padding: 12px 20px;
    border-left: 5px solid var(--alert-error-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    -webkit-box-shadow: 2px 2px 10px 2px rgba(0, 0, 0, 0.27);
    box-shadow: 2px 2px 10px 2px rgba(0, 0, 0, 0.27);
}

.alert-danger {
    width: 100%;
    max-width: 100%;
    background: var(--alert-error-color);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    /* margin: 0.5rem 0; */
    -webkit-box-shadow: 2px 2px 10px 2px rgba(0, 0, 0, 0.27);
    box-shadow: 2px 2px 10px 2px rgba(0, 0, 0, 0.27);
}

/* Alert Validation */
/* === BASIC ALERT CLASSES === */
.alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* عرض کامل */
    box-sizing: border-box;
    /* padding داخل عرض حساب بشه */
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.rtl-alert {
    direction: rtl;
    /* متن راست به چپ */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* عرض کامل parent */
    box-sizing: border-box;
    /* فاصله از input */
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 0.375rem;
    color: #842029;
    padding: 0.5rem 0.75rem;
}

.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

.alert-info {
    background-color: #cff4fc;
    border-color: #b6effb;
    color: #055160;
}

/* Dismiss button */
.alert button.close-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    margin-left: 0.5rem;
}

/* Fade out animation */
.alert.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

/* Cart & DropDown */
.header-cart__item-container {
    /* برای اینکه زیرمنو داشته باشد */
    position: relative;
}

/* زیرمنو */
.header-cart__dropdown {
    padding: 0.5rem;
    padding-bottom: 0;
    background: var(--primary-color);
    border: 1px solid var(--primary-border-color);
    border-radius: 0.875rem;
    position: absolute;
    text-align: right;
    top: 2.5rem;
    left: 0;
    width: 350px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    /* opacity: 0; */
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* اضافه شده برای اسکرول مخفی */
    max-height: 300px;
    /* ارتفاع حداکثری */
    overflow-y: auto;
    /* اسکرول عمودی در صورت نیاز */
    overflow-x: hidden;
    /* جلوگیری از اسکرول افقی */
}

.header-cart__item-container:hover .header-cart__dropdown {
    opacity: 1;
    visibility: visible;
}

.header-cart__item-container:hover .header-cart__item {
    color: var(--text-color-hover);
}

/* آیتم‌های زیرمنو */
.header-cart__dropdown-item-container {
    border-bottom: 1px solid var(--primary-border-color);
    padding: 0.5rem 0;
}

.header-cart__dropdown-item-container:last-child {
    border-bottom: none;
}

.header-cart__dropdown-item {
    display: block;
    color: var(--text-color-900);
    font-size: 1rem;
    white-space: nowrap;
    padding: 8px 15px;
    transition: background 0.3s ease, color 0.3s ease;
}

.product-cart__info {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.product-cart__image-container {
    width: 80px;
    border-radius: 1rem;
    overflow: hidden;
}

.product-cart__title a {
    display: block;
    word-wrap: break-word;
    /* max-width: 170px; */
    width: 100%;
    overflow: hidden;
    max-height: 3em;
    line-height: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-overflow: ellipsis;
    white-space: normal;
}

.product-cart-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-cart__detail {
    width: 75%;
    margin-right: 0.5rem;
    display: flex;
    flex-direction: column;
}

.product-cart__footer {
    position: sticky;
    bottom: 0;
    margin: 0;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.5rem 0;
}

.product-cart__footer-price {
    display: flex;
    flex-direction: column;
    width: 60%;
}

.cart-total-price {
    font-weight: 600;
}

.product-cart__footer-action {
    /* width: 40%; */
}

/* End Cart & DropDown */
/* Modal */
/* پایه استایل برای مودال */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-dialog {
    max-width: 400px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-content {
    background: #ffffff;
    border: none;
    border-radius: 10px;
}

.modal-header {
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
}

.modal-header .close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.modal-body label {
    font-weight: 600;
    color: #333;
}

.modal-body input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-footer {
    padding: 10px 15px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #ddd;
}

.modal-footer button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-footer button:hover {
    background-color: #0056b3;
}

/* BreadCrumb */
.breadcrumb {
    padding-top: 1rem;
}

.breadcrumb__item-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.breadcrumb__item {
    margin-left: 0.6rem;
    color: var(--text-color-500);
}

.breadcrumb__item-link:hover {
    color: var(--text-color-hover);
}

.breadcrumb__item:last-child {
    color: #979797;
}

/* For Use X-Scroll */
.x-scrollable {
    white-space: nowrap;
    overflow: auto;
    scrollbar-width: none;
}

/* For Use ... End Of the long text */
.ellipsis {
    text-overflow: ellipsis;
    overflow: hidden;
}

.ellipsis-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media screen and (min-width: 768px) {
    #scroll-top {
        display: flex;
    }

}

@media screen and (max-width: 492px) {
    #scroll-top {
        display: flex;
        bottom: 75px;
        width: 45px;
        height: 45px;
    }

    #contact-support {
        width: 3.5rem;
        height: 3.5rem;
    }

    #contact-support i {
        font-size: 2rem;
    }

    .alert-danger {
        width: 100%;
    }
}

/* Alpine */
[x-cloak] {
    display: none !important;
}

/* HTML: <div class="loader"></div> */
.loader {
    width: 60px;
    aspect-ratio: 4;
    --_g: no-repeat radial-gradient(circle closest-side, #fff 90%, #0000);
    background:
        var(--_g) 0% 50%,
        var(--_g) 50% 50%,
        var(--_g) 100% 50%;
    background-size: calc(100%/3) 100%;
    animation: l7 1.5s infinite linear;
}

/* Features */
.feature-img img {
    width: 50px;
    height: 50px;
}

.feature-text {
    color: var(--text-color-500);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* End Featues */
@keyframes l7 {
    33% {
        background-size: calc(100%/3) 0%, calc(100%/3) 100%, calc(100%/3) 100%
    }

    50% {
        background-size: calc(100%/3) 100%, calc(100%/3) 0%, calc(100%/3) 100%
    }

    66% {
        background-size: calc(100%/3) 100%, calc(100%/3) 100%, calc(100%/3) 0%
    }
}

/* Show more / less  */
.more-content {
    display: none;
}

.short-content,
.more-content,
.content-section {
    color: var(--text-color-500);
}

.toggle-btn {
    display: flex;
    background-color: transparent;
    border: 0;
    padding: 0;
    color: #007bff;
}

.toggle-btn:focus {
    outline: none;
    box-shadow: none;
}

.chevron {
    transition: transform 0.3s;
}

.chevron.down {
    transform: rotate(0deg);
}

.chevron.up {
    transform: rotate(180deg);
}


/* //// */
.limited-content {
    max-height: 400px;
    overflow: hidden;
    transition: all 2s ease;
}

.limited-content.expanded {
    max-height: none;
}