@font-face {
    font-family: fa;
    src: url(fa.ttf);
    font-display: swap;
}

@font-face {
    font-family: en;
    src: url(en.otf);
    font-display: swap;
}

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

hr {
    margin: 30px 0;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
}

a {
    text-decoration: black;
}

.despr2 p {
    line-height: 1.8;
    color: #000000;
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.despr2 h4 {
    margin-top: 30px;
    margin-bottom: 10px;
}

button {
    color: #ffffff;
    font-family: fa;
    display: initial;
    background-color: rgb(207, 17, 44);
    font-size: 24px;
    padding: 10px 28px;
    border-width: medium;
    border-style: none;
    border-color: currentcolor;
    border-image: none;
    border-radius: 19px;
}

body {
    background-color: #ffffff;
    direction: rtl;
    font-family: fa;
    text-align: center;
    color: #000000;
    position: relative;
    margin: auto;
}

img {
    border-radius: 9px;
}

.fehrest {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
}

div::-webkit-scrollbar {
    display: none;
}

div {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sortOptions {
    display: none;
    list-style-type: none;
    padding: 0;
    padding: 10px;
    width: 100%;
    max-width: 400px;
}

.sortOptions li {
    margin: 5px 0;
}

.sortOptions input[type="radio"] {
    display: none;
}

.sortOptions label {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    color: #000000;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
    text-align: center;
    position: relative;
}

.sortOptions input[type="radio"]:checked+label {
    background-color: #CF112C;
    color: #ffffff;
    border-color: #CF112C;
    box-shadow: none;
}

.sortOptions label:hover {
    background-color: #000000;
    color: #ffffff;
}

.lock-body-scroll {
    overflow: hidden;
}

.close {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40px' height='40px' viewbox='0 0 40 40'%3E%3Cpath d='M 10,10 L 30,30 M 30,10 L 10,30' stroke='%23CF112C' stroke-width='4' stroke-linecap='butt' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    cursor: pointer;
    width: 50px;
    height: 50px;
    left: 140px;
}

@media only screen and (min-width: 900px) {
    .sortOptions {
        display: flex;
    }
}

.bgalaxy {
    top: 80px;
    left: 0;
    position: fixed;
    z-index: -5;
    width: 120%;
}

.bgpc {
    display: none;
}

@media only screen and (min-width: 900px) {
    .bgalaxy {
        display: none;
    }
    .bgpc {
        display: initial;
    }
}

.header {
    width: 100%;
    display: flex;
    text-align: center;
    height: 67px;
    overflow: hidden;
    border-bottom: 1px solid gray;
    position: fixed;
    background-color: #ffffff;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
}

.header1 {
    flex: 1;
    margin: auto;
}

.header1 img {
    width: 35px;
    border-radius: 3px;
    margin-bottom: -5px;
}

.header1 p {
    color: #CF112C;;
    font-size: 11px;
}

.logo {
    flex: 2;
    margin: auto 0;
    font-size: 30px;
    font-family: en;
    color: #000000;
}

.logo h1 {
    font-size: 25px;
}

.content {
    width: 100%;
    height: 100%;
    padding: 70px 0;
    max-width: 1500px;
    margin: auto;
}

.maincontent {
    position: absolute;
    width: 100%;
    text-align: center;
    z-index: -1;
}

.slider img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
}

.slider {
    margin: 20px 10px;
    overflow: hidden;
}

.brandh2 {
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
    margin: 10px;
    background-color: #ffffff;
    color: #000000;
}

.cat {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

.cat1 {
    flex: 50%;
    padding: 5px;
}

.cat2 {
    background-color: #ffffff;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
    border-radius: 5px;
    float: right;
    display: flex;
    width: 100%;
    overflow: hidden;
}

.cat2 img {
    width: 50px;
}

.cat2 a {
    margin: auto;
    padding: 5px;
    color: #000000;
}

.shopcontent {
    display: flex;
    width: 100%;
}

.sidebar {
    flex: 25%;
    width: 100%;
    display: none;
    padding: 20px;
    height: 100%;
    top: 70px;
    position: sticky;
}

.sidebar1 {
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
    border-radius: 10px;
    max-height: 640px;
    overflow: auto;
}

.shop {
    display: flex;
    flex-wrap: wrap;
    flex: 75%;
    width: 100%;
    /* اضافه کردن این خط برای وسط‌چین کردن آیتم‌ها */
    justify-content: center;
}

.shop1 {
    flex: 50%;
    max-width: 300px;
    /* اگر می‌خواهی متن‌های داخل هر کارت هم وسط‌چین باشد */
    text-align: center;
}

.shop2 {
    background-color: #ffffff;
    box-shadow: none;
}


.shop2 img {
    width: 90%;
}

.shop2 p {
    font-size: 11px;
    color: #000000;
    padding-bottom: 20px;
}

.shop2 button {
    margin-bottom: 20px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 5px;
    padding: 5px 20px;
    border: none;
    font-family: fa;
    font-size: 9px;
}

.picpro img {
    width: 100%;
}


.footer {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    height: 67px;
    overflow: hidden;
    position: fixed;
    bottom: 0;
    right: 0; /* اضافه شد برای جلوگیری از رفتن به سمت چپ */
    left: 0;  /* اضافه شد برای تضمین عرض کامل */
    background-color: #ffffff;
    border-top: 1px solid gray;
    z-index: 9; /* اضافه شد تا زیر بنر و سایر عناصر نرود */
}

.footericon {
    flex: 1;
    margin: auto;
}

.footericon img {
    width: 35px;
    border-radius: 9px;
    margin-bottom: -5px;
}

.footericon p {
    color: #000000;
    font-size: 11px;
}

@media only screen and (min-width: 600px) {
    .shop1 {
        flex: 33%;
    }
}

@media only screen and (min-width: 900px) {
    .sidebar {
        display: initial;
    }
}

@media only screen and (min-width: 1200px) {
    .shop1 {
        flex: 25%;
    }
}

.category-index {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin: auto;
}

.catin22 {
    flex: 100%;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.catin30 {
    flex: 50%;
}

.catin33 {
    margin: 7px;
    display: flex;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
    border-radius: 7px;
    height: 90px;
    background-color: #ffffff;
    overflow: hidden;
}

.catin33i {
    flex: 35%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.catin33i a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.catin33a {
    flex: 65%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.catin33a a {
    margin: 10px;
    color: #000000;
}

.catin33 img {
    width: 80px;
}

.catin22 h4 {
    color: #000000;
}

.brands22 {
    margin: 10px;
}

.singlepr {
    width: 100%;
    max-width: 1170px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.picpr {
    flex: 100%;
    width:100%;
}

.picprimg {
    width: 100%;
    max-width: 600px;
    position: sticky;
    top: 110px;
}

.detailpr {
    flex: 100%;
    padding: 10px;
    padding-bottom: 0;
}

.detailpr1 {
    background-color: #ffffff;
    height: 100%;
    width: 100%;
    padding: 10px;
    border-radius: 7;
}

.detailpr1 h1 {
    border-radius: 7px;
    background-color: #ffffff;
    color: #000000;
}

.detailpr1 p {
    color: #000000;
}

.despr {
    background-color: #ffffff;
    border-radius: 70px;
    width: 100%;
    padding:20px;
}

.despr img {
    width: 90%;
    max-width: 500px;
    text-align: center;
    margin: 30px auto !important;
    border-radius: 7px;
}

.despr1 {
    text-align: center;
    margin: auto;
    max-width: 700px;
}

.despr2 {
    text-align: right;
}

.despr2 h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 30px;
    margin-bottom: 17px;
    color: #000000;
}

.despr2 a {
    color: #CF112C;
    text-decoration: underline;
}

.despr2 .shop2 p {
    color: #CF112C;
    text-decoration: none;
}

.despr2 p {
    color: #000000;
    margin: 10px;
    margin-bottom: 20px;
    text-decoration: none !important;
}

.despr2 ul,
ol,
li {
    color: #000000;
    margin: 10px;
}

@media only screen and (min-width: 700px) {
    .picpr {
        flex: 60%;
    }
    .detailpr {
        flex: 40%;
        border-radius: 4px;
        box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
    }
}

.tablefull {
    width: 100%;
    border-collapse: collapse;
    overflow: auto;
}

tbody {
    width: 100%;
    overflow: auto;
}

.tablefull td {
    padding: 30px 10px;
}

.tablefull th {
    padding: 20px;
}

.cart {
    width: 90%;
    margin: auto;
    overflow: auto;
}

tr button {
    margin: 5px;
    font-size: 40px;
    border-radius: 50px;
    width: 30px;
    padding: 0%;
    height: 30px;
    overflow: hidden;
    background-color: #000000;
    color: #ffffff;
    border: none;
}

.btimg {
    width: 40px;
    background-color: #ffffff;
    margin: 10px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
}

input,
.input {
    border-radius: 7px;
    outline: none;
    padding: 7px;
    margin: 10px;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
    background-color: #ffffff;
    color: #000000;
    text-align: center;
    font-family: fa;
    box-shadow: none;
}

.logbox {
    width: 90%;
    max-width: 500px;
    margin: auto;
    margin-top: 30px;
    padding: 15px;
    background-color: #ffffff;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
    border-radius: 7px;
}

.countcart {
    font-size: 17px !important;
    background-color: white;
    color: #ffffff;
    border-radius: 5px;
    width: 40px;
    margin: auto;
}

.glow-on-hover {
    width: 220px;
    height: 50px;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
    outline: none;
    color: #ffffff;
    background: #000000;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 50px;
    font-size: 20px;
}

.glow-on-hover:before {
    content: '';
    background: #CF112C;
    position: absolute;
    top: -2px;
    left: -2px;
    z-index: -1;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 50px;
}

.glow-on-hover:active {
    color: #ffffff;
    background-color: #CF112C;
}

.glow-on-hover:hover:before {
    opacity: 1;
}

.glow-on-hover:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000000;
    left: 0;
    top: 0;
    border-radius: 50px;
}

.glow-on-hover:hover:after {
    background: #CF112C;
}

.addresses {
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
    border-radius: 10px;
    margin: 20px;
    text-align: right;
    padding: 20px;
    display: flex;
    background-color: #ffffff;
}

.loc {
    position: relative;
    margin: 10px;
    pointer-events: none;
}

#map {
    position: relative;
    width: 100%;
    height: 500px;
    text-align: center;
    margin: auto;
    z-index: 0;
    border-radius: 10px;
    pointer-events: all;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
}

.loc img {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -350px);
    width: 200px;
    pointer-events: none;
    z-index: 2;
}

.shiptime {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

.shiptime1 {
    flex: 40%;
    min-width: 60px;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
    margin: 10px;
    border-radius: 7px;
    padding: 15px 10px;
    background-color: #ffffff;
}

.color3 {
    float: left;
    text-align: left;
    direction: ltr;
    display: flex;
    padding: 0;
    width: 100%;
}

.color3 p {
    flex: 80%;
    margin: 17px;
    font-family: en;
    color: #000000;
}

.color3 input {
    flex: 20%;
    width: 40px;
    height: 40px;
}

.color {
    margin: 20px 10px;
    border-radius: 10px;
    overflow: hidden;
}

.search1 {
    position: relative;
}

.search-results {
    display: none;
    top: 50%;
    left: 70%;
    position: absolute;
    height: 200px;
    z-index: 5;
    background-color: #ffffff;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
    border-radius: 10px;
    padding: 20px;
    color: #000000;
}

.search-results p {
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
    border-radius: 3px;
    margin: 3px;
    padding: 5px;
}

#preloader {
    background: #ffffff url(load.gif) no-repeat center center;
    background-size: 50%;
    height: 100%;
    width: 100%;
    margin: auto;
    position: fixed;
    z-index: 100;
}

.ratebox {
    width: 100%;
    padding: 20px;
}

.rate {
    display: flex;
    width: 100%;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
    background-color: #d7d7d7;
    border-radius: 15px;
    flex-wrap: wrap;
    overflow: hidden;
    padding: 10px;
    margin: auto;
    direction: ltr;
    max-width: 400px;
}

.rate1 {
    flex: 20%;
    overflow: hidden;
    padding: 5px;
}

.rate1 img {
    width: 100%;
    margin: 0 !important;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table,
td,
th {
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
    background-color: #ffffff;
}

td,
th {
    padding: 5px;
    color: #000000;
}

@media only screen and (min-width: 900px) {
    .filter11 {
        display: none;
    }
    #blogs {
        flex: 40% !important;
    }
}

.video,
video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
}

.zahra {
    font-size: 20px !important;
    text-align: center;
    color: #000000;
}

.full-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    z-index: 9999;
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coupon-container {
    background: #ffffff;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    width: 220px;
    display: contents;
}

.coupon-container h3 {
    color: #000000;
    margin-bottom: 15px;
}

.input-coupon {
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
}

.input-coupon input {
    border: none;
    outline: none;
    padding: 10px 15px;
    font-size: 16px;
    width: 100%;
    color: #000000;
    background: transparent;
}

.input-coupon button {
    background-color: #000000;
    border: none;
    padding: 10px 15px;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 0px;
}

.input-coupon button:hover {
    background-color: #CF112C;
}

.alert-box {
    position: fixed;
    bottom: 20%;
    right: 5%;
    background-color: #000000;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease-in-out;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
}

.alert-box.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.alert-success,
.alert-error {
    background-color: #CF112C;
    color: #ffffff;
}

.copycode-container {
    border-radius: 15px;
    padding: 20px 30px;
    background-color: #ffffff;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
}

.copycode-code {
    font-size: 24px;
    font-weight: bold;
    color: #CF112C;
    margin: 10px 0;
}

.copycode-description {
    font-size: 16px;
    color: #000000;
}

.copycode-description2 {
    font-size: 20px;
    color: #000000;
}

.copycode-count {
    font-size: 20px;
    color: #CF112C;
}

.copycode-button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    color: #ffffff;
    background: #CF112C;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
    border-radius: 5px;
    cursor: pointer;
}

.copycode-button:hover {
    background: #000000;
}

.container-ivitee::-webkit-scrollbar {
    width: 8px;
}

.container-ivitee::-webkit-scrollbar-thumb {
    background: #CF112C;
    border-radius: 10px;
}

.container-ivitee::-webkit-scrollbar-track {
    background: #ffffff;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
}

.container-ivitee h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #CF112C;
}

.container-ivitee table {
    width: 100%;
    border-collapse: collapse;
}

.container-ivitee th,
.container-ivitee td {
    text-align: right;
    padding: 10px;
    box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
}

.container-ivitee th {
    background: #CF112C;
    color: #ffffff;
    font-weight: bold;
}

.container-ivitee tr:nth-child(even) {
    background: #ffffff;
    color: #000000;
}

.container-ivitee tr:nth-child(odd) {
    background: #ffffff;
    color: #000000;
}


 .product-gallery-container {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        position: relative;
    }

    /* تنظیمات عکس‌های اسلایدر اصلی */
    .mainSwiper .swiper-slide {
        background-color: #ffffff; /* رنگ پس‌زمینه برای فضای خالی اطراف عکس‌های مستطیلی */
        border-radius: 8px;
    }
  

    .mainSwiper .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* جادوی نمایش کامل عکس بدون به هم ریختن سایز */
        aspect-ratio: 1 / 1; /* قاب را مربع نگه می‌دارد تا چیدمان سایت به هم نریزد */
        border-radius: 8px;
    }

    /* تنظیمات اسلایدر تامبنیل (عکس‌های کوچک) */
    .thumbSwiper {
        margin-top: 10px;
        box-sizing: border-box;
        padding: 10px 0;
    }

    .thumbSwiper .swiper-slide {
        width: 25%;
        height: 100%;
        opacity: 0.5;
        cursor: pointer;
        background-color: #ffffff;
        border-radius: 6px;
    }

    .thumbSwiper .swiper-slide-thumb-active {
        opacity: 1;
        border: 2px solid #000;
    }

    .thumbSwiper .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* برای عکس‌های کوچک هم کامل نمایش داده شود */
        aspect-ratio: 1 / 1;
        border-radius: 4px;
    }

    /* --- واکنش‌گرایی (Responsive) --- */
    
        /* --- واکنش‌گرایی (Responsive) --- */
    
    /* در موبایل (کوچکتر از 768px): مخفی کردن دکمه‌های چپ/راست و عکس‌های کوچک */
    @media (max-width: 767px) {
        .thumbSwiper { display: none; }
        .swiper-button-next, .swiper-button-prev { display: none !important; }
        
        /* ایجاد فضا در پایین اسلایدر اصلی */
        .mainSwiper { padding-bottom: 35px !important; }
        
        /* نمایش دقیق نقطه‌ها در فضای ایجاد شده (بدون عدد منفی) */
        .swiper-pagination { 
            display: block !important; 
            bottom: 5px !important; 
        }
        .mainSwiper .swiper-slide img {
            box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
        }
    }
.custom-breadcrumb {
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: -6px 0px;
    background-color: #f8f9fa;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.custom-breadcrumb li {
    display: inline-flex;
    align-items: center;
    margin: 10px 0;
}
.custom-breadcrumb li+li:before {
    content: "/";
    padding: 0 10px;
    color: #6c757d;
}
.custom-breadcrumb a {
    color: #495057;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}
.custom-breadcrumb a:hover {
    color: #007bff; /* رنگ دلخواه برند شما */
}
.custom-breadcrumb .active {
    color: #6c757d;
    font-weight: normal;
    pointer-events: none;
}
 .ai-color-btn {
          display: inline-block;
          padding: 14px 28px;
          font-size: 16px;
          font-weight: bold;
          color: #fff;
          text-decoration: none;
          border-radius: 50px;
          background: linear-gradient(45deg, #ff6ec4, #7873f5, #4ADEDE);
          background-size: 300% 300%;
          animation: gradientMove 5s ease infinite;
          box-shadow: 0 8px 20px rgba(120, 115, 245, 0.4);
          transition: all 0.3s ease;
        }
        
        .ai-color-btn:hover {
          transform: translateY(-3px);
          box-shadow: 0 12px 25px rgba(120, 115, 245, 0.6);
        }
        
        @keyframes gradientMove {
          0% {background-position: 0% 50%;}
          50% {background-position: 100% 50%;}
          100% {background-position: 0% 50%;}
        }
        
        
        
   .ms-slider-container {
        direction: rtl;
        font-family: inherit;
        background-color: #ffffff;
        max-width: 900px;
        margin: 30px auto;
        position: relative;
        padding: 0;
    }

    .ms-title {
        font-size: 22px;
        font-weight: bold;
        margin-bottom: 20px;
        color: #000;
        padding: 0 10px;
    }

    .ms-wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }

    .ms-track {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        padding: 15px 10px;
        -ms-overflow-style: none;
        scrollbar-width: none;
        width: 100%;
        cursor: grab;
    }

    .ms-track:active {
        cursor: grabbing;
        scroll-snap-type: none;
        scroll-behavior: auto;
    }

    .ms-track::-webkit-scrollbar {
        display: none;
    }

    .ms-card {
        flex: 0 0 180px;
        scroll-snap-align: start;
        background-color: #ffffff;
        border-radius: 4px;
        box-shadow: 0 0 10px -4px rgb(0 0 0 / 59%);
        padding: 10px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        text-align: center;
        user-select: none;
        border: 1px solid #f5f5f5; /* حاشیه بسیار محو برای تفکیک بهتر */
    }

    .ms-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    }

    .ms-card a {
        text-decoration: none !important;
        color: inherit !important;
        display: block;
    }

    .ms-image {
        width: 100%;
        height: 150px;
        object-fit: contain;
        margin-bottom: 10px;
        pointer-events: none;
    }

    .ms-name {
        font-size: 14px;
        font-weight: 600;
        margin: 0 0 10px 0;
        line-height: 1.4;
        height: 40px;
        overflow: hidden;
        color: black;
    }

    .ms-price-old {
        text-decoration: line-through;
        color: #CF112C;
        margin: 0 0 5px 0;
        font-size: 14px;
        font-weight: bold;
    }

    .ms-price {
        margin: 0;
        color: #000;
        font-size: 16px;
        font-weight: bold;
    }

    .ms-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background-color: #ffffff;
        border: 1px solid #eaeaea;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        cursor: pointer;
        z-index: 10;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 18px;
        color: #000;
        transition: all 0.2s;
        padding: 0;
    }

    .ms-btn:hover {
        background-color: #000;
        color: #fff;
    }

    .ms-prev { right: -15px; } 
    .ms-next { left: -15px; }  

    @media (max-width: 768px) {
        .ms-btn { display: none !important; }
        .ms-card { flex: 0 0 130px; }
        .ms-image { height: 120px; }
    }
    
    
    
    
    
    .barcode-container {
    display: inline-block;
    padding: 20px 40px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    text-align: center;
}

.barcode-image {
    margin-bottom: 5px;
}

.barcode-number {
    color: #333;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 5px;
}

.description-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height .5s ease;
}

.despr1.is-collapsed .description-wrapper {
    max-height: 350px;
}

.despr1.is-expanded .description-wrapper {
    max-height: none;
}

.description-fade {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 110px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, .85) 55%,
        #fff 100%
    );
    transition: opacity .3s ease;
}

.despr1.is-expanded .description-fade {
    opacity: 0;
}

.description-toggle {
    position: relative;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    margin: 14px auto 0;
    padding: 12px 24px;
    border: 0;
    border-radius: 10px;
    background-color: #CF112C;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(207, 17, 44, .28);
}

.description-toggle.is-visible {
    display: flex;
}

.description-toggle:hover {
    background-color: #B80F27;
}

.product-action-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 28px;
    border: 0;
    border-radius: 19px;
    background-color: #CF112C;
    color: #fff;
    font-family: inherit;
    font-size: 24px;
    cursor: pointer;
    text-decoration: none;
}

.product-action-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.comment-card {
    max-width: 900px;
    margin: 30px auto;
    padding: 15px;
    border: 2px solid #000;
    border-radius: 7px;
    background-color: #fff;
    color: #000;
    box-shadow: 4px 4px 0 #000;
}

.comment-reply {
    margin-top: 20px;
    padding: 10px;
    border: 2px solid #000;
    border-right: 4px solid #CF112C;
    border-radius: 7px;
    background-color: #fff;
}

.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    direction: ltr;
    font-family: sans-serif;
}

.rating-stars {
    color: transparent;
    -webkit-text-stroke: 1px #000;
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: 2px;
}