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

@font-face {
    font-family: Vazir-bold;
    src: url('/font/Vazir-Bold.eot');
    src: url('/font/Vazir-Bold.eot?#iefix') format('embedded-opentype'),
    url('/font/Vazir-Bold.woff2') format('woff2'),
    url('/font/Vazir-Bold.woff') format('woff'),
    url('/font/Vazir-Bold.ttf') format('truetype');
    font-weight: bold;
}




/*---------------------------------- End of fonts ---------------------------------- */

body {
    font-family: 'Vazir', sans-serif !important;
}

.navbar-light .navbar-nav .nav-link {
    padding: 20px;
    color: white;
}

.full-slider {
    position: relative;
}
.full-slider > img {
    min-height: 200px;
}

.img-slider {
    position: relative;
}

.desc-slider {
    position: absolute;
    bottom: 0px;
    left: 0;
    background: #d2d2d2cc;
    padding: 0;
    width: 100%;
    display: flex;
    direction: ltr;
}

.text-slider {
    width: 100%;
    background: #dadada94;
    color: white;
    padding: 7px;
    margin: 0;
}

.arrow-left {
    background: #1a1919a6;
    color: white;
    font-size: calc(1.5rem + 1vw);

}

.arrow-right {
    background: #565656a6;
    color: white;
    font-size: calc(1.5rem + 1vw);

}



.title-slider {
    justify-content: center;
    vertical-align: center;
    text-align: center;
    text-align: center;
    vertical-align: middle;
    line-height: 64px;
    font-size: calc(0.9rem + 0.6vw);
    color: #121212;
}

.main-tile1 {
    background: url(../images/back1.jpg) no-repeat 100% transparent;
    height: 27.08vw;
    width: 100%;
    background-size: cover;
    display: table;
    min-height: 250px;
}

.main-title-hove {
    display: none;
    width: 100%;
    height: 100%;
}


.main-tile1:hover #main-title-hove {

    position: relative;
    background-color: #ffffffc2;
    opacity: 0.7;
    font-size: 120px;
    color: #52514f;
    text-align: center;
    display: table-cell !important;
    vertical-align: middle;
}


.main-tile2 {
    background: url(../images/back2.jpg) no-repeat 100% transparent;
    height: 27.08vw;
    width: 100%;
    background-size: cover;
    display: table;
}


.main-tile3 {
    background: url(../images/back3.jpg) no-repeat 100% transparent;
    height: 27.08vw;
    width: 100%;
    background-size: cover;
    display: table;
}

.margin-manual {
    margin-top: 10%;
}

.maghaleha {
    margin: auto;
    display: table-cell;
    vertical-align: middle;

}

.button-maghale {
    min-width: 270px;
    line-height: 56px;
    margin-top: 25px;
    display: inline-block;
    color: #fff;
    background: #745438;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    font-family: Raleway, sans-serif;
    border-color: #5a3e25;
    font-family: 'Vazir' !important;
}

.maghaleha>.title {
    font-size: calc(1.5rem + 1vw);
}

.maghaleha>.desc {
    font-size: calc(0.7rem + 0.5vw);
}

.margin-manual>img {
    max-width: 100%;
    height: auto;
}

.follow_insta {
    text-align: center;
    padding: 5rem 0;
    font-size: calc(1.2rem + 0.8vw);
    padding-bottom: 0;
}

.top-footer {
    background-color: #111820;
}

.col-manual {
    flex: 0 0 auto;
    width: 16.666667%;
}

.footer-title {
    color: white;
    margin-top: 20px;
    font-size: 18px;


}

.footer-desc {
    color: white;
    font-size: 12px;

}

.border-manual {
    text-align: center;
    color: #fff;
    border-left: 1px solid #5D4B37;
}

.btn-primary2
{
    color: #fff;
    background-color: #744e28;
    border-color: #7e5d51;
}
.btn-manual
{
    background: #855e38;
    padding: 1px 4px!important;
    font-size: 10px!important;
    display: inline-block;
    width: 46%;
    padding: 9px !important;
    color: white;
    font-size: calc(10px + 0.3vw) !important;
    margin-bottom: 20px;
}
.card
{
    border-radius: 0.7rem;
    box-shadow: 1px 1px 5px #ddd;
}
.price-old {
    color: rgb(183, 68, 1);
    text-decoration: line-through;
    font-weight: normal;
    font-size: 12px;
    margin: 10px;
}

.main_price
{
    color: rgb(183, 68, 1);
    text-decoration: line-through;
    font-weight: normal;
    font-size: calc(8px + 0.3vw);
    margin: 10px;
}



/* style_shopping.css */

.follow_insta {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.main-title-hove {
    display: none;
    width: 100%;
    height: 100%;
}

.main-tile1:hover #main-title-hove {
    position: relative;
    background-color: #ffffffc2;
    opacity: 0.7;
    font-size: 120px;
    color: #52514f;
    text-align: center;
    display: table-cell !important;
    vertical-align: middle;
}

.main-tile2 {
    background: url(../images/back2.jpg) no-repeat 100% transparent;
    height: 27.08vw;
    width: 100%;
    background-size: cover;
    display: table;
}

.main-tile3 {
    background: url(../images/back3.jpg) no-repeat 100% transparent;
    height: 27.08vw;
    width: 100%;
    background-size: cover;
    display: table;
}

.margin-manual {
    margin-top: 10%;
}

.maghaleha {
    margin: auto;
    display: table-cell;
    vertical-align: middle;
}

.button-maghale {
    min-width: 270px;
    line-height: 56px;
    margin-top: 25px;
    display: inline-block;
    color: var(--text-color);
    background: var(--coffee-dark);
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Vazir' !important;
    border-color: var(--coffee-light);
}

.maghaleha > .title {
    font-size: calc(1.5rem + 1vw);
}

.maghaleha > .desc {
    font-size: calc(0.7rem + 0.5vw);
}

.margin-manual > img {
    max-width: 100%;
    height: auto;
}

.follow_insta {
    text-align: center;
    padding: 5rem 0;
    font-size: calc(1.2rem + 0.8vw);
    padding-bottom: 0;
}

.col-manual {
    flex: 0 0 auto;
    width: 16.666667%;
}

.footer-title {
    color: var(--cream);
    margin-top: 20px;
    font-size: 18px;
}

.footer-desc {
    color: var(--cream);
    font-size: 12px;
}

.border-manual {
    text-align: center;
    color: var(--cream);
    border-left: 1px solid #5D4B37;
}

.price-old {
    color: rgb(183, 68, 1);
    text-decoration: line-through;
    font-weight: normal;
    font-size: 12px;
    margin: 10px;
}



.main_price {
    color: rgb(183, 68, 1);
    text-decoration: line-through;
    font-weight: normal;
    font-size: calc(8px + 0.3vw);
    margin: 10px;
}

.img-manufactures {
    object-fit: cover; /* تصویر به صورت کامل و بدون تغییر نسبت نمایش داده می‌شود */
    width: 100%;
    height: 100%;
}
/* تنظیمات برای خطوط عنوان */
.title-with-lines .line {
    border: 1px solid #a30000;
    margin: 0 15px;
}

/* استایل برای عنوان */
.title-with-lines .title-text {
    font-size: calc(17px + 0.3vw);
    font-weight: bold;
    text-align: center;
}

/* استایل برای تصاویر کاردها */
.img-manufactures {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.card-text.flex-grow-1 {
    display: -webkit-box;
    -webkit-line-clamp: 2;       /* حداکثر دو خط */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: calc(13px + 0.3vw);
    margin-top: 8px;
    line-height: 1.4em;         /* تنظیم خط به اندازه دلخواه */
    min-height: calc(1.4em * 2);  /* حداقل ارتفاع دو خط */
    max-height: calc(1.4em * 2);  /* حداکثر ارتفاع دو خط */
}

.btn-custom-small {
    font-size: 0.8rem;           /* فونت ریزتر */
    font-family: 'Vazir';
    font-weight: 500;            /* وزن متوسط برای زیبایی بیشتر */
    letter-spacing: 0.5px;       /* کمی فاصله بین حروف */
}

.direction-rtl{
    direction: rtl;
}


.img-circle-wrapper {
    width: 150px;           /* اندازه ثابت عرض */
    height: 150px;          /* اندازه ثابت ارتفاع */
    margin: 0 auto;         /* مرکز کردن دایره */
    overflow: hidden;       /* پنهان کردن قسمت‌های اضافی تصویر */
    border-radius: 50%;     /* ایجاد دایره */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); /* سایه زیبا */
  }
  .img-circle-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* حفظ تناسب تصویر */
  }

  .card {
    border: none;
    background: #ebebeb17;
  }

  .price-old {
    font-size: 0.8em; /* اندازه کوچک‌تر */
    color: red; /* رنگ قرمز */
    text-decoration: line-through; /* خط‌خورده */
    margin-bottom: 5px; /* فاصله از قیمت اصلی */
}

.price-new {
    font-size: 1.2em; /* اندازه بزرگ‌تر */
    color: #333; /* رنگ پیش‌فرض */
    font-weight: bold; /* ضخیم‌تر */
}

.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* حداکثر دو خط */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2em; /* ارتفاع خط */
    max-height: 2.4em; /* حداکثر ارتفاع برای دو خط */
}

.menu-has-children a {
    display: flex;
    align-items: center;
}

.menu-has-children i {
    margin-right: 5px; /* فاصله بین آیکون و متن */
}

@media (max-width: 768px) {
    .menu-has-children a {
        justify-content: flex-start; /* تنظیم موقعیت متن و آیکون در نسخه موبایل */
    }
}


.menu-has-children {
    position: relative;
  }
  .menu-has-children > .dropdown-cart {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    min-width: 300px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    direction: rtl;
  }
  .menu-has-children:hover > .dropdown-cart {
    display: block;
  }
  /* استایل جدول */
  .dropdown-cart table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
  }
  .dropdown-cart table th,
  .dropdown-cart table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    font-size: 0.9rem;
  }
  .dropdown-cart table th {
    background-color: #f8f8f8;
    font-weight: bold;
  }
  /* استایل دکمه مشاهده سبد خرید */
  .btn-cart {
    display: block;
    text-align: center;
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  .btn-cart:hover {
    background-color: #0056b3;
  }
  /* تنظیمات آیکون در منو */
  .nav-menu li a i {
    margin-left: 5px;
  }


  .assistant-box {
    max-width: 700px;
    margin: auto;
    margin-top: 80px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.07);
}
.icon-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}
.icon-btn {
    font-size: 48px;
    cursor: pointer;
    padding: 18px;
    color: #6c757d;
    transition: all 0.3s ease-in-out;
    border: 3px solid transparent;
    border-radius: 100%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-btn:hover {
    color: #0d6efd;
    transform: scale(1.1);
}
.icon-btn.active {
    color: white;
    background-color: #dc3545;
    border-color: #dc3545;
}
.input-group {
    margin-top: 20px;
    display: none;
}
.input-group input {
    direction: rtl;
    text-align: right;
}
.mic-visual-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 60px auto 20px;
}
.mic-pulse-ring {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(220, 53, 69, 0.4);
    z-index: 1;
    transform: scale(1);
}
.mic-visual {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #dc3545;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 2;
}
.mic-visual i {
    font-size: 20px;
    color: white;
}
.mic-text {
    font-size: 16px;
    color: #444;
    margin-top: 12px;
    text-align: center;
}
#chat-history {
    margin-top: 20px;
    margin-bottom: 15px;
    padding: 10px;

    border-radius: 5px;

    text-align: right;
    direction: rtl;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 1000px;
}
.message {
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 5px;
    clear: both;
}
.user-message {
    background-color: #e2f7ff;
    float: left;
    text-align: left;
}
.ai-message {
    background-color: #f0f0f0;
    float: right;
    text-align: right;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
/* استایل کلی برای ai-assistant-bar */
.ai-assistant-bar {
    background-color: #2d2d2d;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 1px 1px 8px rgb(224 176 104);
    max-width: 800px;
    margin: 20px auto;
    direction: rtl;
    /* font-family: 'Roboto', sans-serif; */
    position: relative;
    overflow: hidden;
}

/* افکت نئونی پس‌زمینه */
.ai-assistant-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    z-index: 0;
}

/* استایل هدر */
.ai-header {
    text-align: center;
    margin-bottom: 20px;
    z-index: 1;
    position: relative;
}

.ai-title {
    font-size: 26px;
    font-weight: 700;
    color: #e0b068; /* تغییر رنگ عنوان */
    text-shadow: 0 0 10px rgba(224, 176, 104, 0.6); /* تغییر سایه متن عنوان */
}

.ai-subtitle {
    display: block;
    font-size: 16px;
    color: #a0a0a0;
    margin-top: 5px;
}

/* استایل تاریخچه چت */
.ai-chat-history {
    max-height: 400px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* استایل پیام‌های چت */
.message {
    max-width: 80%;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.5;
    animation: fadeIn 0.5s ease-in;
    position: relative;
    display: flex;
    align-items: center;
}

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

.message-user {
    background: linear-gradient(45deg, #b38b4d, #e0b068); /* تغییر گرادیان پس‌زمینه */
    color: #fff;
    margin-right: 40px;
    margin-left: auto;
    box-shadow: 0 0 10px rgba(179, 139, 77, 0.5); /* تغییر سایه */
    border: 1px solid rgba(224, 176, 104, 0.6); /* تغییر رنگ حاشیه */
}

.message-user::before {
    content: '';
    position: absolute;
    right: -35px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: url('https://img.icons8.com/ios-filled/50/C39857/user.png') no-repeat center;
    background-size: contain;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(224, 176, 104, 0.4); /* تغییر سایه */
}

.message-bot {
    background: rgba(204, 170, 102, 0.15); /* تغییر پس‌زمینه */
    color: #fff;
    margin-left: 40px;
    margin-right: auto;
    border: 1px solid rgba(204, 170, 102, 0.5); /* تغییر حاشیه */
    backdrop-filter: blur(5px);

}

.message-bot::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: url('https://img.icons8.com/ios-filled/50/C39857/bot.png') no-repeat center;
    background-size: contain;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(204, 170, 102, 0.4); /* تغییر سایه */
}

/* استایل کانتینر ورودی */
.ai-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(199, 163, 96, 0.5); /* تغییر حاشیه */
    border-radius: 15px;
    backdrop-filter: blur(10px);
    width: 100%;
    position: relative;
    z-index: 1;
}

/* افکت نئونی برای کانتینر ورودی */
.ai-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    opacity: 0.6;
    z-index: -1;
}

/* استایل wrapper ورودی متن */
.input-wrapper {
    display: flex;
    width: 100%;
}

/* استایل wrapper عناصر ورودی */
.input-elements-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(199, 163, 96, 0.6); /* تغییر حاشیه */
    border-radius: 12px;
    padding: 8px;
    transition: all 0.3s ease;
}

.input-elements-wrapper:hover {
    border-color: #e6c07a; /* تغییر رنگ هاور */
    box-shadow: 0 0 12px rgba(230, 192, 122, 0.5); /* تغییر سایه هاور */
}

/* استایل ورودی متن */
.ai-text-input {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 16px;
    color: #fff;
    background: transparent;
    outline: none;
    text-align: right;
}

.ai-text-input::placeholder {
    color: #756417;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* استایل دکمه‌های ارسال و میکروفون */
.send-btn, .mic-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #e0b068; /* تغییر رنگ آیکون */
    padding: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.send-btn:hover, .mic-btn:hover {
    color: #e6c07a; /* تغییر رنگ هاور آیکون */
    transform: scale(1.15);
}

.send-btn::after, .mic-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(224, 176, 104, 0.4) 0%, transparent 70%); /* تغییر رنگ شعاعی هاور */
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.send-btn:hover::after, .mic-btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.send-btn:focus, .mic-btn:focus {
    outline: none;
    color: #e6c07a; /* تغییر رنگ فوکوس */
    box-shadow: 0 0 0 3px rgba(230, 192, 122, 0.5); /* تغییر سایه فوکوس */
}

/* استایل wrapper ضبط صدا */
.voice-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(199, 163, 96, 0.6); /* تغییر حاشیه */
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* استایل ویژوالایزر صدا */
.voice-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: 15px;
}

.voice-bar {
    width: 8px;
    height: 30px;
    background: linear-gradient(180deg, #e6c07a 0%, #b38b4d 100%); /* تغییر گرادیان ویژوالایزر */
    border-radius: 4px;
    animation: voiceWave 1.2s ease-in-out infinite alternate;
    transform-origin: bottom;
}

.voice-bar:nth-child(2) { animation-delay: 0.15s; }
.voice-bar:nth-child(3) { animation-delay: 0.3s; }
.voice-bar:nth-child(4) { animation-delay: 0.45s; }
.voice-bar:nth-child(5) { animation-delay: 0.6s; }
.voice-bar:nth-child(6) { animation-delay: 0.75s; }
.voice-bar:nth-child(7) { animation-delay: 0.9s; }
.voice-bar:nth-child(8) { animation-delay: 1.05s; }

@keyframes voiceWave {
    0% { transform: scaleY(0.2); }
    100% { transform: scaleY(1.2); }
}

/* استایل دکمه توقف */
.stop-btn {
    background: linear-gradient(45deg, #ff4560, #dc3545);
    color: white;
    border: none;
    font-size: 18px;
    padding: 12px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.stop-btn:hover {
    background: linear-gradient(45deg, #e03e54, #b02a37);
    transform: scale(1.1);
}

.stop-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.stop-btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.stop-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.5);
}

/* ریسپانسیو */
@media (max-width: 576px) {
    .ai-assistant-bar {
        padding: 15px;
        margin: 10px;
        border-radius: 15px;
    }

    .ai-title {
        font-size: 20px;
    }

    .ai-subtitle {
        font-size: 14px;
    }

    .ai-chat-history {
        max-height: 300px;
        padding: 10px;
    }

    .message {
        font-size: 14px;
        padding: 8px 12px;
    }

    .message-user::before, .message-bot::before {
        width: 24px;
        height: 24px;
        right: -30px;
        left: -30px;
    }

    .ai-input-container {
        padding: 10px;
    }

    .ai-text-input {
        font-size: 14px;
        padding: 10px;
    }

    .send-btn, .mic-btn {
        font-size: 18px;
        padding: 8px;
    }

    .stop-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .voice-bar {
        width: 6px;
        height: 24px;
    }
}


/* استایل ردیف محصولات */
.ai-product-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    padding: 10px;
    animation: fadeIn 0.5s ease-in;
}

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

/* استایل ستون‌ها */
.ai-product-row .col-6,
.ai-product-row .col-md-4,
.ai-product-row .col-lg-3 {
    padding: 10px;
}

/* استایل کارت محصول */
.ai-card.ai-product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 153, 255, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ai-product-card:hover {
    border-color: #00eaff;
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.5);
    transform: translateY(-5px);
}

/* افکت نئونی برای کارت */
.ai-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 153, 255, 0.2) 0%, transparent 70%);
    opacity: 0.5;
    z-index: 0;
}

/* استایل کانتینر تصویر */
.ai-image-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05); /* هماهنگ با تم نئونی */
    border-radius: 12px 12px 0 0;
    z-index: 1;
}

/* استایل تصویر */
.ai-product-image {
    max-height: 180px;
    width: auto;
    object-fit: contain; /* نمایش کامل تصویر بدون برش */
    padding: 10px;
    transition: transform 0.3s ease;
    loading: lazy; /* بهینه‌سازی بارگذاری */
}

.ai-product-card:hover .ai-product-image {
    transform: scale(1.1); /* زوم هنگام hover */
}

/* استایل بدنه کارت */
.ai-card-body {
    padding: 12px;
    color: #fff;

    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* استایل عنوان */
.card-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #00b7ff;
    text-shadow: 0 0 5px rgba(0, 183, 255, 0.4);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* استایل قیمت */
.ai-product-price {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* برای RTL */
}

.ai-product-price .text-success {
    color: #00eaff !important;
    text-shadow: 0 0 5px rgba(0, 234, 255, 0.4);
}

.ai-product-price .text-danger {
    color: #ff4560 !important;
    text-shadow: 0 0 5px rgba(255, 69, 96, 0.4);
}

.ai-product-price .text-muted {
    font-size: 12px;
    color: #6b7280 !important; /* این رنگ خاکستری است و تغییری نمی‌کند */
}

/* استایل پیام ربات */
.message-bot {
    background: rgba(199, 163, 96, 0.15); /* تغییر پس‌زمینه */
    color: #fff;
    margin-left: 40px;
    margin-right: auto;
    border: 1px solid rgba(199, 163, 96, 0.5); /* تغییر حاشیه */
    backdrop-filter: blur(5px);
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.5;
    animation: fadeIn 0.5s ease-in;
    position: relative;
    display: flex;
    align-items: center;
    direction: ltr;
}
.message-bot::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: url('https://img.icons8.com/ios-filled/50/C39857/bot.png') no-repeat center;
    background-size: contain;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.4);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .ai-product-row {
        margin: 0 -8px;
        padding: 8px;
    }

    .ai-product-row .col-6,
    .ai-product-row .col-md-4,
    .ai-product-row .col-lg-3 {
        padding: 8px;
    }

    .card-title {
        font-size: 15px;
    }

    .ai-product-price {
        font-size: 13px;
    }

    .ai-product-price .text-muted {
        font-size: 11px;
    }

    .ai-card-body {
        padding: 10px;
    }

    .ai-image-container {
        height: 160px; /* کاهش ارتفاع در تبلت */
    }

    .ai-product-image {
        max-height: 140px;
        padding: 8px;
    }
}

@media (max-width: 576px) {
    .ai-product-row {
        margin: 0 -5px;
        padding: 5px;
    }

    .ai-product-row .col-6,
    .ai-product-row .col-md-4,
    .ai-product-row .col-lg-3 {
        padding: 5px;
    }

    .card-title {
        font-size: 14px;
    }

    .ai-product-price {
        font-size: 12px;
    }

    .ai-product-price .text-muted {
        font-size: 10px;
    }

    .ai-card-body {
        padding: 8px;
    }

    .ai-image-container {
        height: 140px; /* کاهش ارتفاع در موبایل */
    }

    .ai-product-image {
        max-height: 120px;
        padding: 8px;
    }

    .message-bot::before {
        width: 24px;
        height: 24px;
        left: -30px;
    }
}

@media (max-width: 400px) {
    .ai-product-row {
        margin: 0 -4px;
        padding: 4px;
    }

    .ai-product-row .col-6 {
        padding: 4px;
    }

    .card-title {
        font-size: 13px;
    }

    .ai-product-price {
        font-size: 11px;
    }

    .ai-product-price .text-muted {
        font-size: 9px;
    }

    .ai-card-body {
        padding: 6px;
    }

    .ai-image-container {
        height: 120px; /* کاهش ارتفاع در صفحه‌نمایش‌های خیلی کوچک */
    }

    .ai-product-image {
        max-height: 100px;
        padding: 6px;
    }
}
/* کارت کلاسیک با طراحی حرفه‌ای */
.classic-card {
    border: 1px solid #fff;
    border-radius: 8px;
    background-color: #ffffff;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.classic-card:hover {
    transform: translateY(-5px);
}

/* تصویر محصول */
.image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* عنوان محصول */
.product-title {
    font-size: calc(0.9rem + 0.2vw);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333333;
}

/* قیمت‌ها */
.price {
    margin-bottom: 0.5rem;
}

.main-price {
    font-size: calc(0.8rem + 0.2vw);
    color: #888888;
    display: block;
    margin-bottom: 0.25rem;
}

.price-old {
    font-size: calc(0.9rem + 0.2vw);
    color: #d40000;
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.price-new {
    font-size: calc(1rem + 0.2vw);
    color: #8d8d8d;
    font-weight: bold;
}

/* تنظیمات ریسپانسیو برای موبایل */
@media (max-width: 576px) {
    .image-container {
        height: 150px;
    }

    .product-title {
        font-size: calc(0.8rem + 0.2vw);
    }

    .main-price,
    .price-old,
    .price-new {
        font-size: calc(0.8rem + 0.2vw);
    }
}
