﻿

/* Responsive styles */


.widget-banner { margin-bottom: 8px; }

    .widget-banner img { width: 100%; height: 240px; object-fit: cover; border-radius: 10px; }


.carousel-control-prev, .carousel-control-next { width: 40px; height: 40px; background: transparent; border-radius: 50%; /* top: 50%; */ transform: translateY(-50%); }

.carousel-control-prev { left: 15px; }

.carousel-control-next { right: 15px; }

.carousel-indicators li { width: 12px; height: 12px; border-radius: 8px; /*border-radius: 50%;*/ }

.carousel-item.active { border-radius: 8px; }
/* ----------------- Start advers */

.advers-banner { padding: 0; text-align: center; box-shadow: none; background: 0 0; margin: 2px 0 0px 0; }

    .advers-banner img { border-radius: 10px; }

/* End advers----------------- */
.dt-sl { width: 100%; height: auto; }


/* تنظیمات عمومی بنرها */
.widget-banner img { width: 100%; height: 240px; object-fit: cover; border-radius: 10px; }

/* تنظیمات دسکتاپ */
@media (min-width: 992px) {
    .advers { padding-right: 0; }

    .widget-banner { margin-bottom: 10px; }

        .widget-banner img { height: 240px; }
}

/* تنظیمات تبلت و موبایل */
@media (max-width: 991px) {
    .advers { margin-top: 20px; }

    .widget-banner img { height: 180px; }

    /* نمایش دو بنر کنار هم در موبایل */
    .advers-banner .row { display: flex; flex-wrap: wrap; margin-left: -5px; margin-right: -5px; }

    .advers-banner .col-md-6 { padding-left: 5px; padding-right: 5px; }
}

/* تنظیمات موبایل کوچک */
@media (max-width: 576px) {
    .widget-banner img { height: 150px; }
}



.widget-amazing-slider { direction: rtl; margin: 20px 0; padding: 15px; background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

.slider-item { padding: 10px; text-align: center; transition: all 0.3s ease; }

    .slider-item:hover { transform: translateY(-5px); }

.item-title { font-size: 14px; margin: 10px 0; height: 40px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/*.price {
    margin: 10px 0;
}*/

.discount { background: #ef394e; color: white; padding: 2px 5px; border-radius: 10px; font-size: 12px; margin-left: 5px; }

del { color: #999; font-size: 13px; }

ins { text-decoration: none; font-weight: bold; color: #333; display: block; }

.countdown-timer { display: flex; justify-content: center; align-items: center; margin: 10px 0; font-size: 12px; }

    .countdown-timer .number { display: flex; flex-direction: column; align-items: center; margin: 0 3px; }

    .countdown-timer .digit { background: #f0f0f0; padding: 2px 5px; border-radius: 3px; min-width: 20px; text-align: center; }

    .countdown-timer .letter { font-size: 10px; color: #999; margin-top: 2px; }

.product--actions { display: flex; justify-content: center; margin-top: 10px; }

.action-item { margin: 0 5px; cursor: pointer; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #f5f5f5; transition: all 0.3s ease; }

    .action-item:hover { background: #ef394e; color: white; }

    .action-item svg { width: 16px; height: 16px; }

.view-all-img { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }

    .view-all-img .all-title { margin-top: 10px; font-weight: bold; }

.view-all { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }

    .view-all .all-title { margin-top: 10px; font-weight: bold; }

    .view-all .arrow svg { width: 24px; height: 24px; fill: #ef394e; }

.widget-product .product-carousel .owl-item, .brand-slider .owl-carousel .owl-item { margin-left: 8px !important; }

@media (max-width: 767.98px) {
    .widget-product .product-carousel .item { min-height: auto !important; max-height: none !important; padding: 5px; }

    .amazing-mobile-icon img { width: 70px; height: auto; }

    .amazing-mobile-icon p { font-size: 13px; margin-top: 5px; }
}



/*<%-- -------محصولات پرفروش-------------% >*/

.widget-product .item { position: relative; padding: 15px; text-align: center; /*border: 1px solid #eee;*/ margin: 5px; }

.widget-product .actions { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; transition: all 0.3s ease; }

.widget-product .item:hover .actions { opacity: 1; left: 15px; }

.widget-product .actions ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

.widget-product .actions .btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }

.widget-product .product-label-group { position: absolute; top: 10px; right: 10px; z-index: 2; }

    .widget-product .product-label-group.left { left: 10px; right: auto; }

.maxOrder .border-right-1, .brand .border-right-1 { border-right: 1px solid #e0e0e2; }

.maxOrder, .brand { border: 1px solid #e0e0e2; border-radius: 10px; padding: 15px; }



.widget-product .item { position: relative; padding: 15px; text-align: center; margin: 5px; overflow: hidden; /* اضافه شده */ }

.widget-product .actions { position: absolute; left: -50px; /* شروع از خارج از دید */ top: 20%; transform: translateY(-50%); opacity: 0; transition: all 0.3s ease; z-index: 10; }

.widget-product .item:hover .actions { opacity: 1; left: 15px; /* موقعیت نهایی در سمت چپ */ }

.widget-product .actions ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

.widget-product .actions .btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: transform 0.3s ease; /* انیمیشن برای دکمه‌ها */ }

    .widget-product .actions .btn:hover { transform: scale(1.1); /* بزرگ شدن دکمه در هاور */ }

.widget-product .product-label-group { position: absolute; top: 10px; right: 10px; z-index: 2; }

    .widget-product .product-label-group.left { left: 10px; right: auto; }

/* انیمیشن برای هر دکمه */
.widget-product .item:hover .actions li:nth-child(1) .btn { transition-delay: 0.1s; }

.widget-product .item:hover .actions li:nth-child(2) .btn { transition-delay: 0.2s; }

.widget-product .item:hover .actions li:nth-child(3) .btn { transition-delay: 0.3s; }

/*-----------story-----------------*/

#stories-container { display: flex; overflow-x: auto; padding: 15px 10px; gap: 20px; scrollbar-width: none; }

    #stories-container::-webkit-scrollbar { display: none; }

.story { display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: transform 0.2s; flex: 0 0 auto; width: 80px; }

    .story:hover { transform: scale(1.05); }

.story-avatar { width: 80px; height: 80px; border-radius: 50%; padding: 3px; /*background: linear-gradient(45deg, #ff9a9e, #fad0c4, #fad0c4, #a18cd1);*/ background: #fc6f6f; display: flex; align-items: center; justify-content: center; }

    .story-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid white; }

.story-username { margin-top: 8px; font-size: 0.75rem; text-align: center; font-weight: 500; color: #333; overflow: hidden; text-overflow: ellipsis; /*white-space: nowrap; */width: 100%; }

/* Modal Styles */
.story-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); z-index: 1000; overflow: hidden; }

.modal-content { position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; background-color: transparent; }

.modal-story { width: 90%; max-height: 90%; border-radius: 10px; overflow: hidden; box-shadow: 0 0 30px rgba(0, 0, 0, 0.4); }

    .modal-story img { width: 100%; height: auto; display: block; }

.close-modal { position: absolute; top: 20px; right: 20px; font-size: 30px; color: white; cursor: pointer; background: rgba(0, 0, 0, 0.5); border-radius: 50%; width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; transition: all 0.3s; }

    .close-modal:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(90deg); }

.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); font-size: 40px; color: white; cursor: pointer; background: rgba(0, 0, 0, 0.4); width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: all 0.3s; }

    .nav-arrow:hover { background: rgba(255, 255, 255, 0.2); }

.arrow-left { left: 20px; }

.arrow-right { right: 20px; }

.story-info { position: absolute; bottom: 30px; left: 0; width: 100%; text-align: center; color: white; padding: 0 20px; }

    .story-info h3 { font-size: 1.6rem; margin-bottom: 10px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }

    .story-info p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

.progress-container { position: absolute; top: 20px; left: 10%; width: 80%; height: 4px; background: rgba(255, 255, 255, 0.3); border-radius: 2px; }

.progress-bar { height: 100%; background: white; width: 0%; border-radius: 2px; transition: width 0.1s linear; }

#stories-container.dragging { cursor: grabbing; user-select: none; }


.new-product-carousel .item { padding: 0 10px; }

.new-product-carousel .product-wrapper { border: 1px solid #eee; padding: 10px; margin-bottom: 15px; height: 100%; }

.new-product-carousel .owl-nav { position: absolute; top: -60px; right: 0; }

.new-product-carousel .owl-prev,
.new-product-carousel .owl-next { width: 40px; height: 40px; background: #f5f5f5 !important; border-radius: 50% !important; margin: 0 5px !important; }

    .new-product-carousel .owl-prev:hover,
    .new-product-carousel .owl-next:hover { background: #ef394e !important; color: white !important; }


/* Responsive styles */
@media (max-width: 768px) {
    .story { width: 70px; }

    .story-avatar { width: 70px; height: 70px; }

    .nav-arrow { width: 50px; height: 50px; font-size: 30px; }
}

@media (max-width: 480px) {
    .story { width: 65px; }

    .story-avatar { width: 65px; height: 65px; }

    .story-username { font-size: 0.7rem; }

    .story-info h3 { font-size: 1.4rem; }
}

.amazing-section { background-color: #ef4056 !important; }

.Special .owl-item { background: #fff; border: 0; border-radius: 10px; }
.story-modal .modal-story iframe {
    width: 100% !important;
    height: 100vh !important; /* کل ارتفاع صفحه */
    border: 0;
    display: none; /* پیشفرض مخفی */
}

/*------------story end---------------*/


/* استایل‌های پایه برای Swiper */
.mag-swiper { width: 100%; padding: 10px 0 15px; direction: rtl; overflow: hidden; }

.magazine-item { background: #fff; border-radius: 8px; overflow: hidden; /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);*/ transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; border: 1px solid #e0e0e2; }

    .magazine-item:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12); }

.magazine-link { display: block; text-decoration: none; color: #333; }

.magazine-image-container { position: relative; padding-top: 70%; /* نسبت تصویر 7:10 */ overflow: hidden; }

.magazine-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }

.magazine-link:hover .magazine-image { transform: scale(1.05); }

.magazine-content { padding: 15px; text-align: center; }

.magazine-title { font-size: 12px; font-weight: 600; margin: 0 0 10px; line-height: 1.4; height: 44px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.magazine-icon { display: none; color: #ef394e; font-size: 20px; }

.date-mag { color: #929090; margin-bottom: 0px; font-size: 11px; margin-top: 20px; }

/* استایل‌های ناوبری */
.swiper-button-next,
.swiper-button-prev { color: #ef394e; width: 44px; height: 44px; background: #fff; border-radius: 50%; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); transition: all 0.3s ease; top: 45%; }

    .swiper-button-next:hover,
    .swiper-button-prev:hover { background: #ef394e; color: #fff; transform: scale(1.1); }

    .swiper-button-next:after,
    .swiper-button-prev:after { font-size: 20px; font-weight: bold; }

.swiper-button-next { left: 10px; right: auto; }

.swiper-button-prev { right: 10px; left: auto; }

/* پاجینیشن */
.swiper-pagination { bottom: 15px !important; }

.swiper-pagination-bullet { width: 10px; height: 10px; background: #ddd; opacity: 1; transition: all 0.3s ease; }

.swiper-pagination-bullet-active { width: 25px; border-radius: 10px; background: #ef394e; }

/* رسپانسیو */
@media (max-width: 991px) {
    .magazine-title { font-size: 14px; height: 40px; }

    .magazine-content { padding: 12px; }
}

@media (max-width: 767px) {
    .magazine-title { font-size: 13px; height: 36px; }

    .magazine-image-container { padding-top: 80%; }

    .swiper-button-next,
    .swiper-button-prev { width: 36px; height: 36px; }

        .swiper-button-next:after,
        .swiper-button-prev:after { font-size: 16px; }
}


.widget-products-slider { background: #fff; border-radius: 10px; padding: 15px; box-shadow: 0 3px 10px rgba(0,0,0,0.1); margin-bottom: 30px; }

    .widget-products-slider .widget-header { border-bottom: 2px solid #eee; margin-bottom: 15px; text-align: center; }

    .widget-products-slider .maglogo { max-width: 150px; height: auto; }

.slider-item { background: #f9f9f9; border-radius: 8px; padding: 10px; display: flex; align-items: center; gap: 10px; transition: all 0.3s ease; }

    .slider-item:hover { background: #e6f0ff; transform: translateY(-4px); }

    .slider-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }

.item-title { font-size: 15px; font-weight: 600; margin: 0; color: #222; }

.product-name i { color: #007bff; }

/* ناوبری */
.swiper-button-next,
.swiper-button-prev { color: #007bff; transition: 0.3s; }

    .swiper-button-next:hover,
    .swiper-button-prev:hover { color: #0056b3; }

.swiper-pagination-bullet { background: #007bff; opacity: 0.6; }

.swiper-pagination-bullet-active { opacity: 1; }



.discount-item span { background: #ef4056; border-radius: 10px; color: #fff; /* float: left; */ line-height: 1.5; padding: 1px 7px; font-size: .8rem; }

/* استایل بخش جدیدترین محصولات */
.new-products-section { border: 1px solid #e0e0e2; background: #fff; border-radius: 12px; /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);*/ margin-top: 15px; overflow: hidden; }

    .new-products-section .card-header { background: #fff; /*border-bottom: 1px solid #f0f0f0;*/ padding: 15px 25px; display: flex; align-items: center; justify-content: space-between; }

    .new-products-section .section-title { font-size: 18px; font-weight: 700; color: #333; margin: 0; display: flex; align-items: center; }

        .new-products-section .section-title i { color: #ef394e; margin-left: 10px; font-size: 20px; }

/* استایل کارت محصول */
.product-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); transition: all 0.3s ease; height: 100%; display: flex; flex-direction: column; border:1px solid #dedede !important }

    .product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }

.product-media { position: relative; padding-top: 100%; overflow: hidden; border-radius: 10px 10px 0 0; }

.product-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

.product-link:hover .product-image { transform: scale(1.05); }

.product-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.03); transition: all 0.3s ease; }

.product-link:hover .product-overlay { background: rgba(0, 0, 0, 0.1); }

/* استایل بدنه محصول */
.product-content { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }

.product-title { font-size: 14px; font-weight: 600; margin: 0 0 10px; line-height: 1.5; height: 42px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

    .product-title a { color: #333; text-decoration: none; transition: color 0.3s ease; }

        .product-title a:hover { color: #ef394e; }

/* استایل قیمت */
.product-price-container { margin-top: auto; }

.current-price { font-size: 16px; font-weight: 700; color: #ef394e; display: flex; align-items: center; justify-content: center; }

.old-price { font-size: 13px; color: #999; text-decoration: line-through; display: flex; align-items: center; justify-content: center; margin-top: 5px; }

.currency { font-size: 12px; margin-right: 3px; }

.out-of-stock { color: #999; font-size: 14px; text-align: center; padding: 5px 0; }

/* استایل نشان‌ها */
.product-badge { position: absolute; top: 10px; right: 10px; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; color: #fff; z-index: 2; }
    .product-badge.left { left: 10px; right: auto; }
.special-badge { background: linear-gradient(to left, #ef394e, #ff6b6b); }
.product-badge.blue { background: linear-gradient(to left, #3955ef, #6b82ff); }
.used-badge { background: linear-gradient(to left, #3498db, #5dade2); top: 40px; }

/* استایل ناوبری */
.swiper-nav { display: flex; gap: 10px; }

.new-products-section .swiper-button-next,
.new-products-section .swiper-button-prev { position: relative; top: auto; left: auto; right: auto; width: 36px; height: 36px; margin: 0; background: #f5f5f5; border-radius: 50%; color: #666; transition: all 0.3s ease; }

    .new-products-section .swiper-button-next:hover,
    .new-products-section .swiper-button-prev:hover { background: #ef394e; color: #fff; }

    .new-products-section .swiper-button-next:after,
    .new-products-section .swiper-button-prev:after { font-size: 16px; }

/* پاجینیشن */
.new-products-section .swiper-pagination { position: relative; bottom: auto; margin-top: 20px; }

.new-products-section .swiper-pagination-bullet { background: #ddd; opacity: 1; width: 10px; height: 10px; }

.new-products-section .swiper-pagination-bullet-active { background: #ef394e; width: 25px; border-radius: 10px; }

/* رسپانسیو */
@media (max-width: 768px) {
    .new-products-section .new-products-section .card-header { padding: 15px; }

    .new-products-section .new-products-section .section-title { font-size: 16px; }

    .new-products-section .product-content { padding: 8px; }

    .product-title { font-size: 13px; height: 38px; }

    .current-price { font-size: 14px; }

    .old-price { font-size: 12px; }
}

@media (max-width: 480px) {
    .swiper-nav { display: none; }
}


.brands-wrapper .swiper-slide { display: flex; justify-content: center; align-items: center; height: 100%; }

    .brands-wrapper .swiper-slide a { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; }

    .brands-wrapper .swiper-slide figure { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; margin: 0; }

    .brands-wrapper .swiper-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; }

.brands-wrapper .swiper-slide { text-align: center; padding-right: 10px; }

    .brands-wrapper .swiper-slide a { display: inline-block; }

    .brands-wrapper .swiper-slide img { margin: 0 auto; display: block; }
/* حذف border-right از اسلاید فعال */
.brands-wrapper .swiper-slide-active, .maxOrder .swiper-slide:first-child { border-right: none !important; }

/* حذف border-right از اولین اسلاید در حالت عادی */
.brands-wrapper .swiper-slide:first-child, .maxOrder .swiper-slide:first-child { border-right: none !important; }


footer .fa { margin-left: 5px; }



.vendor-sidebar .widget-collapsible .widget-body { padding-top: 2rem; padding-bottom: 3rem; }

.vendor-sidebar .widget-categories .widget-body { padding: 0.7rem 0 2rem; }

.vendor-sidebar .widget-time .widget-body { padding: 0.3rem 0 2rem; }

.vendor-sidebar .widget.widget-products .widget-body { padding: 1rem 0 2rem; }

.vendor-sidebar .product-widget .product-media { padding-right: 0.2rem; }

.vendor-sidebar .product-widget .product-details { padding-bottom: 0.8rem; }

.vendor-sidebar .product-widget .product-name { margin-bottom: 0.6rem; }

.vendor-sidebar .product-widget .ratings-container { margin-bottom: 0.4rem; }

.vendor-sidebar .product-widget .product-price { font-size: 1.6rem; }
/* Vendor Wrapper*/
.vendor-wrapper { padding: 2.2rem 3rem; }

    .vendor-wrapper .row { margin-right: -20px; margin-left: -20px; }

    .vendor-wrapper p { /*max-width: 40rem;*/ line-height: 1.75; /*margin-bottom: 2.3rem;*/ /*height:15px;*/ }

    .vendor-wrapper img { width: 100%; border-radius: 0.5rem; }

    .vendor-wrapper .vendor-title { font-size: 2.4rem; line-height: 1.4; }

    .vendor-wrapper .vendor-widget { padding: 0 2rem 0.9rem 2rem; border: 1px solid #eee; border-radius: 0.5rem; }

    .vendor-wrapper .vendor-subtitle { font-size: 1.4rem; line-height: 1.4; }

    .vendor-wrapper .product-absolute:hover { -webkit-box-shadow: unset; box-shadow: unset; }

    .vendor-wrapper .product-details { padding-top: 0px !important; }

        .vendor-wrapper .product-details .product-name { line-height: 1.7rem !important; min-height: 68px; }

.vendor-wrapper { background-repeat: no-repeat; }
/* فقط برای بخش کیف پول و پیشنهاد ویژه در صفحه */
.row.cols-lg-2.mb-6 > .mb-4 .vendor-wrapper { background-color: #fff; border-radius: 10px; padding: 1.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.06); transition: transform 0.3s ease, box-shadow 0.3s ease; }

    /* افکت هاور */
    .row.cols-lg-2.mb-6 > .mb-4 .vendor-wrapper:hover { transform: translateY(-5px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }

/* عنوان‌ها */
.row.cols-lg-2.mb-6 > .mb-4 .vendor-title { font-size: 1.4rem; font-weight: bold; color: #333; margin-bottom: 0.8rem; }

/* متن توضیح */
.row.cols-lg-2.mb-6 > .mb-4 p { font-size: 0.95rem; color: #666; margin-bottom: 1rem; }

/* کارت محصول داخل اسلایدر */
.row.cols-lg-2.mb-6 > .mb-4 .product { background: #fff; border-radius: 6px; overflow: hidden; transition: box-shadow 0.3s ease; }

    .row.cols-lg-2.mb-6 > .mb-4 .product:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.row.cols-lg-2.mb-6 > .mb-4 .product-name a { color: #444; font-weight: 600; font-size: 0.95rem; text-decoration: none; }

    .row.cols-lg-2.mb-6 > .mb-4 .product-name a:hover { color: #007bff; }

/* قیمت */
.row.cols-lg-2.mb-6 > .mb-4 .product-price { font-size: 1rem; color: #222; }

/* ریسپانسیو: موبایل یک ستونه */
@media (max-width: 991.98px) {
    .row.cols-lg-2.mb-6 { display: block; }

        .row.cols-lg-2.mb-6 > .mb-4 { width: 100%; margin-bottom: 1.5rem; }
}



/* استایل‌های اسلایدر */

.main-slider { max-height: 400px; height: 400px; /* ارتفاع ثابت */ position: relative; overflow: hidden; max-width: 1920px; margin: 0 auto; touch-action: pan-y; cursor: grab; user-select: none; }

    .main-slider .carousel-inner,
    .main-slider .carousel-item { height: 100%; /* حالا با والد fix شده هماهنگ میشه */ }

    .main-slider img { object-fit: cover; height: 100%; width: 100%; /*border-radius: 10px;*/ }

/* کنترل‌های اسلایدر */
.carousel-control-prev,
.carousel-control-next { width: 50px; height: 50px; background-color: rgba(0, 0, 0, 0.3); border-radius: 50%; top: 10%; transform: translateY(-50%); opacity: 0.7; transition: opacity 0.3s; }

.carousel-control-prev { left: 15px; }

.carousel-control-next { right: 15px; }

    .carousel-control-prev:hover,
    .carousel-control-next:hover { opacity: 0.9; }

/* نشانگرهای اسلایدر */
.carousel-indicators { bottom: 10px; margin: 0; /* جلوگیری از اضافه شدن height */ }

    .carousel-indicators li { margin: 0 5px; }
        .carousel-indicators li.active { width: 30px; background-color: #f14242; border-color: #f14242; }
/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .main-slider { height: 300px; }

    .carousel-control-prev,
    .carousel-control-next { width: 40px; height: 40px; }
}

@media (max-width: 992px) {
    /*.main-slider, .carousel-item img:not(.carousel-item-adversCarousel img) { height: 350px; }*/

    .widget-banner img { height: 160px; }
}

@media (max-width: 768px) {
    /*.main-slider, .carousel-item img:not(.carousel-item-adversCarousel img) { height: 300px; }*/

    .widget-banner img { height: 140px; }
}



@media (max-width: 576px) {
    .widget-banner img { height: 120px; }
    .main-slider { height: 250px; }

    .carousel-control-prev,
    .carousel-control-next { width: 35px; height: 35px; }

    .carousel-indicators li { width: 10px; height: 10px; }
}


.rvcCategory .category-item { transition: transform 0.3s ease; }

.rvcCategory .category-img { width: 140px; height: 140px; margin: 0 auto 10px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; overflow:hidden }

    .rvcCategory .category-img img { max-width: 90%; max-height: 90%; object-fit: contain;  }

.rvcCategory .category-title { font-size: 13px; font-weight: 500; color: #222; }

.rvcCategory .category-item:hover .category-img { transform: scale(1.08) translateY(-5px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.rvcCategory .category-item:hover .category-title { color: #ef394e; }
.rvcCategory h6 { font-weight: 600; }

/*--------پیشنهاد RVC-------*/
/* قاب کلی */
.offer-wrapper { background: #fff; border: 1px solid #eee; border-radius: 16px; overflow: hidden; }
.rvcOffer h6 { font-weight: 600; }

/* ستون‌های گرید دسکتاپ */
.rvc-offer-grid .offer-col,
.offer-col { padding: 20px 10px; border: 1px solid #eee; display: flex; justify-content: center; align-items: center; }

/* کارت داخلی */
.offer-card { width: 100%; transition: transform 0.3s ease; }

/* دایره خاکستری */
.offer-img-wrap { width: 100px; height: 100px; margin: 0 auto 10px; border-radius: 50%; border: 2px solid #f5f5f5; /*background: #f5f5f5;*/ display: flex; align-items: center; justify-content: center; overflow: hidden; }

    .offer-img-wrap img { max-width: 90%; max-height: 90%; object-fit: contain; transition: transform 0.3s ease; }

/* عنوان */
.offer-title { font-size: 13px; font-weight: 500; color: #333; line-height: 1.4; }

.rvcOffer .offer-card:hover .offer-title { color: #ef394e; }

/* افکت هاور */
.offer-card:hover { transform: translateY(-4px); }

    .offer-card:hover .offer-img-wrap img { transform: scale(1.1); }

/* گرید 8 تایی */
@media (min-width: 1200px) {
    .col-xl-1-5 { flex: 0 0 12.5%; max-width: 12.5%; }
}

/* موبایل - Swiper */
.offer-swiper-container { padding: 0 30px; /* فضای کافی برای دکمه‌ها */ }

.offer-swiper .swiper-slide { width: 40% !important; border: 1px solid #eee; background: #fff; padding: 15px 10px; margin-bottom: 0px !important; }

/* استایل دکمه‌های ناوبری */
.swiper-button-next, .swiper-button-prev { width: 30px; height: 30px; background: white; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.15); color: #333; top: 50%; transform: translateY(-50%); }

    .swiper-button-next:after, .swiper-button-prev:after { font-size: 14px; font-weight: bold; }

.swiper-button-next { right: 0; }

.swiper-button-prev { left: 0; }

/* موبایل: محدود کردن عنوان */
@media (max-width: 767px) {
    .offer-title { font-size: 13px; font-weight: 500; color: #333; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 100%; }
}
/*-------categorybox----------*/
.category-boxes .category-card { background: #fff; /*border: 1px solid #eee;
    border-radius: 16px;*/ padding: 15px; text-align: center; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }

.category-boxes .cat-title { font-size: 15px; font-weight: bold; margin-bottom: 5px; color: #222; }

.category-boxes .cat-subtitle { font-size: 13px; color: #777; margin-bottom: 15px; }

.category-boxes .cat-products img { width: 100%; height: auto; object-fit: contain; padding: 5px; }



.category-boxes .see-more:hover { text-decoration: underline; }
.category-boxes .cat-products { display: flex; flex-wrap: wrap; }

    .category-boxes .cat-products .col-6 { flex: 0 0 50%; max-width: 50%; display: flex; align-items: center; justify-content: center; padding: 10px; }

    /* فقط خطوط داخلی */
    .category-boxes .cat-products .col-6 { border: none; /* پیش‌فرض بدون خط */ }

        /* بالا-چپ */
        .category-boxes .cat-products .col-6:nth-child(1) { border-bottom: 1px solid #eee; border-left: 1px solid #eee; }

        /* بالا-راست */
        .category-boxes .cat-products .col-6:nth-child(2) { border-bottom: 1px solid #eee; border-right: 1px solid #eee; }

        /* پایین-چپ */
        .category-boxes .cat-products .col-6:nth-child(3) { border-top: 1px solid #eee; border-left: 1px solid #eee; }

        /* پایین-راست */
        .category-boxes .cat-products .col-6:nth-child(4) { border-top: 1px solid #eee; border-right: 1px solid #eee; }

    .category-boxes .cat-products img { max-width: 100%; height: auto; object-fit: contain; }
    .category-boxes .cat-products img { max-width: 100%; height: auto; object-fit: contain; transition: transform 0.3s ease, box-shadow 0.3s ease; border-radius: 8px; /* کمی نرم‌تر */ }

        .category-boxes .cat-products img:hover { transform: scale(1.08); }
.category-boxes .see-more { justify-content: center; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #05b8c4; font-weight: 500; text-decoration: none; transition: color 0.3s ease; }

    .category-boxes .see-more:hover { text-decoration: none; color: #009688; }

    .category-boxes .see-more .arrow { display: inline-block; transition: transform 0.3s ease; }
    .category-boxes .see-more:hover .arrow { transform: translateX(-4px); /* حرکت فلش به راست */ }
.brands-wrapper { width: 100%; }
    .brands-wrapper .swiper-slide { box-sizing: border-box; }
.swiper-adversTwo .swiper-pagination { bottom: 1.2rem !important; }
.rounded { border-radius: 1rem !important; }
/* خط جداکننده برای دسکتاپ */
@media (min-width: 768px) {
    .category-boxes .col-md-3:not(:last-child) .category-card { border-left: 1px solid #eee; }
}


/*--------تخفیفات رویایی----------*/
/* استایل مخصوص برای موبایل */
.amazing-mobile-container { padding: 12px; margin: 0 5px 15px 5px; }

.amazing-product-mobile { padding: 8px; flex-shrink: 0; margin-left: 15px; }

.amazing-mobile-img { width: 100px; object-fit: contain; }

.amazing-mobile-slider { background: transparent !important; border: none !important; flex-grow: 1; padding: 0 !important; margin: 0 !important; }


@media (min-width: 992px) {
    .amazing-mobile-container { display: none !important; }
}



@media (max-width: 991.98px) {
    .amazing-section .d-flex.d-lg-none { padding: 12px !important; margin: 0 5px; }

    .amazing-product-mobile { padding: 8px; }

    .amazing-section .widget-product { margin-right: 0 !important; }

    .amazing-section .owl-carousel .item { background: white; border-radius: 8px; padding: 10px; margin: 5px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
}
/* در موبایل: بجای خط عمودی، خط افقی پایین هر کارت */
@media (max-width: 767.98px) {
    .category-boxes .col-12:not(:last-child) .category-card { border-bottom: 1px solid #eee; }
    .amazing-mobile-container { padding: 12px; margin: 0 !important; }
    .swiper-adversTwo .swiper-pagination { bottom: .5rem !important; }
    .img-enamad{
        max-height:80px;
    }
}

.offer-next { left: 1px !important; }
.offer-prev { right: 1px !important; }
.offer-next, .offer-prev { top: 55%; }
/* استایل بخش اصلی */
.mobile-section {
    background: linear-gradient(135deg, #ef4056 0%, #cf2137 100%) !important;
    margin: 20px 0px;
    padding: 20px 0px;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-shadow: 0 8px 20px rgba(239, 64, 86, 0.3);
}
/* المان‌های تزئینی */
.decoration { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.15); z-index: 0; }

.circle-1 { width: 200px; height: 200px; top: -80px; right: -80px; }

.circle-2 { width: 150px; height: 150px; bottom: -60px; left: -60px; }

/* عنوان بخش */
.section-title { color: white; font-weight: 800; font-size: 1.2rem; text-align: center; margin-bottom: 5px; position: relative; z-index: 2; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); padding: 0 10px; }
    .section-title i { font-size: 20px; }

/* کاروسل محصولات */
.amazing-mobile-slider { background: transparent; border: none; box-shadow: none; }
.modal-story img { width: 100%; height: auto; max-height: 80vh; border-radius: 10px; object-fit: contain; }
.modal-story iframe { width: 100%; height: auto; max-height: 100vh; /* مثل عکس اندازه حداکثر */ border-radius: 10px; object-fit: contain; }

.modal-story iframe { height: 100vh; /* ارتفاع ثابت بزرگ‌تر برای ویدئو */ }

.custom-html-widget a img:not(.img-enamad) {
    max-height: 100px !important;
}
