@font-face {
    font-family: 'IRANSans';
    src: url('/assets/fonts/IRANSans/woff2/IRANSansWeb.woff2') format('woff2'), url('/assets/fonts/IRANSans/woff/IRANSansWeb.woff') format('woff'), url('/assets/fonts/IRANSans/ttf/IRANSansWeb.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'kalameh';
    src: url('/assets/fonts/F_top xBold.ttf') format('ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}






h1,
h2,
h3,
h4,
h5,
h6,
span,
div {
    font-family: IRANSans;
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 900;
    src: url('/assets/fonts/IRANSans/eot/IRANSansWeb_Black.eot');
    src: url('/assets/fonts/IRANSans/eot/IRANSansWeb_Black.eot?#iefix') format('embedded-opentype'),
    /* IE6-8 */
    url('/assets/fonts/IRANSans/woff2/IRANSansWeb_Black.woff2') format('woff2'),
    /* FF39+,Chrome36+, Opera24+*/
    url('/assets/fonts/IRANSans/woff/IRANSansWeb_Black.woff') format('woff'),
    /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('/assets/fonts/IRANSans/ttf/IRANSansWeb_Black.ttf') format('truetype');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: bold;
    src: url('/assets/fonts/IRANSans/eot/IRANSansWeb_Bold.eot');
    src: url('/assets/fonts/IRANSans/eot/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'),
    /* IE6-8 */
    url('/assets/fonts/IRANSans/woff2/IRANSansWeb_Bold.woff2') format('woff2'),
    /* FF39+,Chrome36+, Opera24+*/
    url('/assets/fonts/IRANSans/woff/IRANSansWeb_Bold.woff') format('woff'),
    /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('/assets/fonts/IRANSans/ttf/IRANSansWeb_Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 500;
    src: url('/assets/fonts/IRANSans/eot/IRANSansWeb_Medium.eot');
    src: url('/assets/fonts/IRANSans/eot/IRANSansWeb_Medium.eot?#iefix') format('embedded-opentype'),
    /* IE6-8 */
    url('/assets/fonts/IRANSans/woff2/IRANSansWeb_Medium.woff2') format('woff2'),
    /* FF39+,Chrome36+, Opera24+*/
    url('/assets/fonts/IRANSans/woff/IRANSansWeb_Medium.woff') format('woff'),
    /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('/assets/fonts/IRANSans/ttf/IRANSansWeb_Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 300;
    src: url('/assets/fonts/IRANSans/eot/IRANSansWeb_Light.eot');
    src: url('/assets/fonts/IRANSans/eot/IRANSansWeb_Light.eot?#iefix') format('embedded-opentype'),
    /* IE6-8 */
    url('/assets/fonts/IRANSans/woff2/IRANSansWeb_Light.woff2') format('woff2'),
    /* FF39+,Chrome36+, Opera24+*/
    url('/assets/fonts/IRANSans/woff/IRANSansWeb_Light.woff') format('woff'),
    /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('/assets/fonts/IRANSans/ttf/IRANSansWeb_Light.ttf') format('truetype');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 200;
    src: url('/assets/fonts/IRANSans/eot/IRANSansWeb_UltraLight.eot');
    src: url('/assets/fonts/IRANSans/eot/IRANSansWeb_UltraLight.eot?#iefix') format('embedded-opentype'),
    /* IE6-8 */
    url('/assets/fonts/IRANSans/woff2/IRANSansWeb_UltraLight.woff2') format('woff2'),
    /* FF39+,Chrome36+, Opera24+*/
    url('/assets/fonts/IRANSans/woff/IRANSansWeb_UltraLight.woff') format('woff'),
    /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('/assets/fonts/IRANSans/ttf/IRANSansWeb_UltraLight.ttf') format('truetype');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: normal;
    src: url('/assets/fonts/IRANSans/eot/IRANSansWeb.eot');
    src: url('/assets/fonts/IRANSans/eot/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
    /* IE6-8 */
    url('/assets/fonts/IRANSans/woff2/IRANSansWeb.woff2') format('woff2'),
    /* FF39+,Chrome36+, Opera24+*/
    url('/assets/fonts/IRANSans/woff/IRANSansWeb.woff') format('woff'),
    /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('/assets/fonts/IRANSans/ttf/IRANSansWeb.ttf') format('truetype');
}

.float-right {
    float: right !important;
}

.float-left {
    float: left !important;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem
    }
}

.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: #0000001a;
    border: solid rgba(0,0,0,.15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em #0000001a,inset 0 .125em .5em #00000026
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh
}

.bi {
    vertical-align: -.125em;
    fill: currentColor
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden
}

    .nav-scroller .nav {
        display: flex;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
        margin-top: -1px;
        overflow-x: auto;
        text-align: center;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch
    }

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8
}

.bd-mode-toggle {
    z-index: 1500
}

    .bd-mode-toggle .bi {
        width: 1em;
        height: 1em
    }

    .bd-mode-toggle .dropdown-menu .active .bi {
        display: block !important
    }

.horizontal-scroll-wrapper {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}


.gallery-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.gallery-item {
    width: 150px;
    text-align: center;
    transition: transform 0.3s ease;
}

    .gallery-item img {
        width: 100%;
        border-radius: 0.5rem;
        transition: transform 0.3s ease;
    }

        .gallery-item img:hover {
            transform: scale(1.1);
            z-index: 2;
        }

    .gallery-item .btn {
        margin-top: 0.5rem;
    }


.product_thumb img {
    transition: opacity .7s ease, transform 2s cubic-bezier(0,0,.44,1.18);
    transform: scale(1, 1);
    width: 100%;
}



.product-card {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 15px;
    position: relative;
    text-align: center;
}

    .product-card img {
        max-height: 200px;
        object-fit: contain;
        width: 100%;
    }

.badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
}

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

    .favorite-btn:hover {
        color: red;
    }

.grid-view .product-item {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
}

.list-view .product-item {
    flex: 0 0 100%;
    max-width: 100%;
}

.list-view .product-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    text-align: left;
}




.list-view .product-card img {
    width: 150px;
    height: auto;
}

.grid-view .list-only {
    display: none !important;
}

.w-full {
    width: 100%;
}



.SearchInput_SearchInput__HB9qi {
    transition: all .15s ease;
    -webkit-transition: all .15s ease;
    -o-transition: all .15s ease;
    -moz-transition: all .15s ease
}

.SearchInput {
    height: 2.5rem;
    box-shadow: 0 1px 5px rgba(0,0,0,.2);
    border: 1px solid #e0e0e2;
    border-bottom: 1px solid #19bfd3;
    cursor: text;
    width: 195px;
    margin-left: 25rem;
}


@media (min-width: 1024px) {
    .SearchInput {
        width: 600px
    }
}


.h_iframe-aparat_embed_frame {
    position: relative;
}

    .h_iframe-aparat_embed_frame .ratio {
        display: block;
        width: 100%;
        height: auto;
    }

    .h_iframe-aparat_embed_frame iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }


.rating {
    padding-left: 0;
    list-style: none;
}


.rating__item--active {
    color: #F7DE45;
}

.rating__item {
    margin-left: .1rem;
    color: #E1E1E1;
    font-size: 15px;
}


/* Custom styles for better aesthetics and consistency */
body {
    font-family: 'IRANSans', sans-serif; /* Using Inter font, ensure it's loaded or use a fallback */
    direction: rtl; /* Ensure RTL for the entire body */
    text-align: right; /* Default text alignment for RTL */
}



.card {
    border-radius: 1rem; /* More rounded corners for cards */
    overflow: hidden; /* Ensures content respects rounded corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Subtle shadow for cards */
}

.card-header {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    background-color: #f8f9fa; /* Light header background */
    font-weight: 600;
    color: #495057;
    padding: 1rem;
}

.form-control, .form-select {
    border-radius: 0.5rem; /* Rounded inputs */
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
    text-align: right; /* Ensure input text is right-aligned */
}

    .form-control:focus, .form-select:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
    }


.accordion-button:not(.collapsed) {
    color: #007bff;
    background-color: #e7f1ff;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

.accordion-button {
    padding: 1rem 1.25rem;
    text-align: right; /* Ensure accordion button text is right-aligned */
}

.accordion-body {
    padding: 1rem 1.25rem;
}

.accordion-item {
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

    .accordion-item:last-of-type {
        margin-bottom: 0;
    }

.list-group-item {
    border: none; /* Remove borders for cleaner list */
    padding: 0.5rem 0;
    text-align: right;
}

    .list-group-item a {
        color: #495057;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .list-group-item a:hover {
            color: #007bff;
        }

/* Product Grid */
#productContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive grid */
    gap: 1.5rem; /* Spacing between product cards */
}

/* Pagination */
.pagination .page-item .page-link {
    border-radius: 0.5rem; /* Rounded pagination buttons */
    margin: 0 0.2rem;
    color: #007bff;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}


.category-box {
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: #4d4d4d;
    text-align: center;
    margin: 0 0 8px 8px;
}

    .category-box:hover {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-5px);
    }

    .category-box img {
        height: auto;
        width: auto;
        max-height: 72px;
        object-fit: contain;
        margin-bottom: 10px;
    }

.ui-categories-grid {
    display: flex;
    flex-flow: row wrap;
}

.category-name {
    font-weight: 500;
    font-size: .875rem;
    color: #333;
}

@media (min-width: 992px) {
    .custom-col-lg-1-5 {
        flex: 0 0 auto;
        width: 12.5%; /* یعنی 1.5 از 12 => 100 / 8 = 12.5 */
    }
}

.search {
    background: #f2f2f2;
    border: 1px solid #c6c6c6;
    border-radius: 8px;
    height: 48px;
    padding: 0 48px 0 12px;
    line-height: 32px;
    font-size: 1rem;
    background-image: url(/assets/images/search.svg);
}

.cart {
    background-image: url(/assets/images/cart.svg);
}


.header-logo {
    max-height: 60px;
    width: 100%;
    height: 50px;
    transition: all .3s;
    opacity: 1;
}

.user-icon {
    height: 50px;
}


.header-search-input {
    border-radius: 1rem;
}

.my-cart-button {
    border-radius: 1rem;
    padding: 0.5rem 1rem;
}

.user-icon-mobile {
    width: 32px;
    height: 32px;
}

.count-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #00d1c7;
    color: #fff;
    min-width: 24px;
    height: 24px;
    line-height: 28px;
    border-radius: 12px;
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    padding: 0 5px;
}



.secondary-font {
    font-family: 'IRANSans' !important;
}



/* Section Title Styling */
.section-title {
    color: #00bcd4; /* A light blue/teal as seen in the screenshot */
    position: relative;
    padding-right: 15px; /* Space for the underline effect */
    margin-bottom: 20px;
}

    .section-title::after {
        content: '';
        position: absolute;
        right: 0;
        bottom: -5px; /* Adjust to position the underline */
        width: 100px; /* Length of the underline */
        height: 4px; /* Thickness of the underline */
        background-color: #00bcd4; /* Same color as text */
        border-radius: 2px;
    }

/* Product Card Styling */
.product-box {
    border: 1px solid #c6c6c6;
    padding: 16px;
    border-radius: 16px;
}

    .product-box .wide-layout {
        display: flex;
        align-items: stretch;
    }

.items-in-box-badge {
    right: 0;
    border-radius: 0 0 0 16px;
    background: #00d1c7;
    color: #fff;
}

@media screen and (max-width: 480px) {
    .product {
        width: 100% !important;
    }
}

.product {
    width: 15rem;
}

.original-price {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: #999;
    font-size: 1em;
    margin-bottom: .6666666667em;
}

.line-through {
    text-decoration: line-through;
}

.value {
    direction: ltr;
}

span {
    vertical-align: baseline;
}

span {
    display: inline-block;
}

.discount-percentage {
    border-radius: 4px;
    padding: 4px 6px;
    background: #ffcf32;
    color: #1a1a1a;
    font-weight: 700;
    font-size: .8333333333em;
    margin-right: .3em;
    direction: ltr;
    display: inline-block;
}

.unit {
    font-size: .6em;
    margin-right: .1em;
}


.w-80px {
    width: 80px !important;
}

.product-image-container {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 8px; /* اختیاری برای زیبایی */
    background-color: #f9f9f9; /* اختیاری برای پس‌زمینه هنگام بارگذاری */
}

    .product-image-container img {
        /*width: 100%;
        height: 100%;*/
        object-fit: contain;
        transition: transform 0.3s ease;
    }

        .product-image-container img:hover {
            transform: scale(1.05); /* افکت زوم هنگام هاور */
        }



.ui-deliver-time .deliver-time {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    margin-bottom: 9px;
    font-size: .875rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

    .ui-deliver-time .deliver-time:hover {
        background-color: #e6f5d0;
        border-color: #72c725;
    }

.carousel-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #444;
}
#miniCartSidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    max-width: 540px;
    height: 100vh;
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
}

    #miniCartSidebar.open {
        transform: translateX(0);
    }

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1049;
}

@media (max-width: 768px) {
    .dropdown-menu .dropdown-menu {
        position: static !important;
        transform: none !important;
        min-width: 100% !important;
        margin-top: 0.5rem;
        border-radius: 0.5rem;
        box-shadow: none;
    }
}



.primary_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    max-height: 120px;
    width: auto;
}