﻿
/* Advertisement Styles */
.br-7 { border-radius: 7px; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.1); width: 100%; height: auto; object-fit: cover; }

    .br-7:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* Magazine Header Styles */
.Mag-header { grid-column: 1 / -1; text-align: center; margin: 15px 0; }

    .Mag-header img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid #e0e0e0; }

/* News Items Styles */
.video-container { position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.1); transition: all 0.3s ease; aspect-ratio: 16/9; }

    .video-container:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

    .video-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

    .video-container:hover img { transform: scale(1.05); }

.play-title { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: white; padding: 15px; font-size: 16px; font-weight: bold; text-align: right; opacity: 0; transform: translateY(20px); transition: all 0s; /* بدون transition نرم */ }

.video-container:hover .play-title { opacity: 1; transform: translateY(0); transition-delay: 0.1s; /* تاخیر بسیار کوتاه برای افکت ناگهانی */ }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .p-r-col { /*grid-template-columns: 1fr;*/ gap: 15px; }

    .video-container { aspect-ratio: 16/9; }
    .icon-box-side { display: none; }
    .mobile-icon-slider-container { display: block !important; }
        .mobile-icon-slider-container .item { display: block !important; }
}

@media (max-width: 480px) {
    .play-title { font-size: 14px; padding: 10px; }
}





/* استایل اصلی هدر */
.custom-product-panel .page-header { background: linear-gradient(135deg, #f30b0b 0%, #ff8d8d 100%); padding: 40px 0; margin-bottom: 30px; position: relative; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

    /* افکت داینامیک پس‌زمینه */
    .custom-product-panel .page-header::before { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%); animation: gradientRotate 15s infinite linear; }

    /* کانتینر محتوا */
    .custom-product-panel .page-header .container { position: relative; z-index: 2; text-align: center; }

/* استایل عنوان */
.custom-product-panel .page-title { font-size: 2.5rem; font-weight: 800; color: #fff; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); margin: 0; position: relative; display: inline-block; padding-bottom: 10px; }

    /* افکت زیر عنوان */
    .custom-product-panel .page-title::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: #fff; border-radius: 2px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

/* انیمیشن پالس برای جذابیت بیشتر */
@keyframes pulse {
    0% { transform: scale(1); }

    50% { transform: scale(1.05); }

    100% { transform: scale(1); }
}

.custom-product-panel .page-title { animation: pulse 3s infinite ease-in-out; }

/* انیمیشن گرادیان چرخان */
@keyframes gradientRotate {
    0% { transform: rotate(0deg); }

    100% { transform: rotate(360deg); }
}



@keyframes suddenAppear {
    0% { opacity: 0; transform: translateY(20px); }

    100% { opacity: 1; transform: translateY(0); }
}

.play-title { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: white; padding: 15px; font-size: 16px; font-weight: bold; text-align: right; opacity: 0; transform: translateY(20px); }

.video-container:hover .play-title { animation: suddenAppear 0.2s forwards; }

/* استایل کلی سایدبار */
.sidebar-content { background-color: #fff; border-radius: 10px; box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08); padding: 20px; font-family: 'Yekan', 'Segoe UI', Tahoma, sans-serif; }



.filter-actions .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74, 108, 247, 0.4); }

.filter-actions .btn i { font-size: 16px; }

/* استایل ویجت‌های قابل جمع شدن */
.widget-collapsible { margin-top: 25px; border-bottom: 1px solid #f0f0f0; padding-bottom: 20px; }

    .widget-collapsible:last-child { border-bottom: none; }

.widget-title { font-size: 16px; font-weight: 700; color: #333; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 10px 0; position: relative; }

/*.widget-title::after {
        content: "+";
        font-size: 18px;
        color: #666;
        transition: all 0.3s ease;
    }

    .widget-title.collapsed::after {
        content: "-";
    }*/

.widget-body { padding-top: 15px; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }

    to { opacity: 1; transform: translateY(0); }
}

/* استایل رنج قیمت */
#range { width: 100%; height: 40px; border: 1px solid #ddd; border-radius: 6px; padding: 0 15px; font-size: 14px; transition: all 0.3s; }

    #range:focus { border-color: #4a6cf7; box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1); }

/* استایل لیست برندها */
.filter-items { max-height: 300px; overflow-y: auto; padding-right: 5px; }

.inline-rb { width: 100%; border-collapse: separate; border-spacing: 0 8px; }

    .inline-rb tr { transition: all 0.2s; }

        .inline-rb tr:hover { background-color: #f9f9f9; }

    .inline-rb td { display: flex; }

    .inline-rb label { display: flex; align-items: center; cursor: pointer; font-size: 14px; color: #555; padding-right: 8px; transition: all 0.2s; position: relative; /*margin-right: auto;*/ line-height: normal; font-weight: normal !important; }

        .inline-rb label:hover { color: #333; }

    .inline-rb input[type="checkbox"] { display: block !important; margin-left: 10px; width: 16px; height: 16px; cursor: pointer; /*appearance: none;*/ -webkit-appearance: none; border: 1px solid #ccc; border-radius: 4px; transition: all 0.2s; position: relative; }

        .inline-rb input[type="checkbox"]:checked { background-color: #f30b0b; border-color: #f53f3f; }

            .inline-rb input[type="checkbox"]:checked::after { content: "✓"; position: absolute; color: white; font-size: 12px; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* اسکرول بار سفارشی */
.filter-items::-webkit-scrollbar { width: 6px; }

.filter-items::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }

.filter-items::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 10px; }

    .filter-items::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }


/* نسخه موبایل */
@media (max-width: 768px) {
    .custom-product-panel .page-header { padding: 25px 0; }

    .custom-product-panel .page-title { font-size: 1.8rem; }

        .custom-product-panel .page-title::after { width: 60px; height: 3px; }
}

/*--------------ویژگی ها--------------------*/
.short-attributes { padding: 15px; margin-top: 15px; }
    .short-attributes .attributes { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .short-attributes .title { font-weight: bold; font-size: 1.3rem; display: block; margin-bottom: 10px; color: #333; text-align: right; }

    .short-attributes .attribute { background: #f0f0f1; border-radius: 8px; border-radius: 8px; padding: 8px 8px 4px; }

    .short-attributes .label { font-weight: 500; /* color: #898989; */ /* display: block; */ color: #81858b; display: block; font-size: 1.2rem; }

    .short-attributes .value { color: #000; font-size: 1rem; display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .8rem 0; }

    .short-attributes .view-all { align-items: center; display: flex; gap: 8px; justify-content: center; margin: 16px 0; }

        .short-attributes .view-all hr { border-bottom: none; border-top: 1px solid #f0f0f1; flex-grow: 1; margin: 0; }

        .short-attributes .view-all a { background: transparent; border: 1px solid #f0f0f1; border-radius: 8px; font-weight: 700; padding: 4px 12px; font-size: 1.3rem; color: #000; text-decoration: none; }

            .short-attributes .view-all a:hover { text-decoration: underline; }
.summary-columns, .rvc-product-sidebar { justify-content: center; }
/* واکنش‌گرا */
@media (min-width: 768px) {
    .short-attributes .attribute { display: flex; flex-direction: column; }
}

@media (max-width: 767px) {
    .short-attributes .attribute { width: 100%; border-bottom: 1px dashed #ddd; }
}

@media (max-width: 576px) {
    .short-attributes .attributes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/*--------------اتمام ویژگی ها --------------------*/


.hidden { display: none; }

.rvc-product-details { width: calc(100% - 380px); }

.rvc-product-sidebar { margin: auto; width: 330px; margin-top: 10px; }

.rvc-cart-box { background-color: #f0f0f1; border: 1px solid #e0e0e2; border-radius: 8px; padding: 12px 16px; }

.rvc-page-title { font-size: 1.9rem; line-height: 2; }

.widget { background: none !important; }
/* استایل کلی تب‌ها */
.product-tabs { margin-top: 40px; border: 1px solid #e1e1e1; border-radius: 8px; overflow: hidden; background: #fff; }

/* نوار تب‌ها */
.tab-nav-boxed { border-bottom: 1px solid #e1e1e1; background: #f9f9f9; }

    .tab-nav-boxed .nav-tabs { display: flex; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }

    .tab-nav-boxed .nav-item { margin: 0; }

    .tab-nav-boxed .nav-link { display: block; padding: 15px 25px; color: #555; font-weight: 600; text-decoration: none; position: relative; transition: all 0.3s ease; }

        .tab-nav-boxed .nav-link.active,
        .tab-nav-boxed .nav-link:hover { color: #2575fc; }

/*.tab-nav-underline .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2575fc;
}*/

/* محتوای تب‌ها */
.tab-content { padding: 25px; }

.tab-pane { display: none; }

    .tab-pane.active { display: block; }

/* استایل بخش‌های مختلف محتوا */
.description { line-height: 1.8; color: #555; }

    .description ul,
    .description ol { padding-right: 20px; }

/* استایل نظرات */
.Cm { padding: 20px; margin-bottom: 20px; border: 1px solid #e1e1e1; border-radius: 8px; background: #f9f9f9; }

.Cm-title { font-weight: bold; color: #333; margin-bottom: 10px; }

.Cm-description { color: #555; line-height: 1.7; margin-bottom: 10px; }

.Cm-date { color: #888; font-size: 0.9em; margin-bottom: 10px; }

.Cm-score { display: flex; gap: 15px; }

    .Cm-score span { display: flex; align-items: center; gap: 5px; }

.Cm-Answer { padding: 15px; margin-top: 15px; background: #fff; border-radius: 6px; border-right: 3px solid #2575fc; }

/* استایل فرم نظر دهی */
.suggestRadio { display: flex; gap: 20px; margin: 10px 0; }

    .suggestRadio label { margin-right: 5px; cursor: pointer; }

.muti-txtBox { width: 100%; border: 1px solid #ddd; border-radius: 6px; padding: 10px; resize: vertical; }

/* رسپانسیو */
@media (max-width: 768px) {
    .tab-nav-boxed .nav-link { padding: 12px 15px; font-size: 0.9em; }

    .tab-content { padding: 15px; }

    .Cm { padding: 15px; }

    .suggestRadio { flex-direction: column; gap: 10px; }
}

.custom-width { width: 21% !important; max-width: 21% !important; flex: 0 0 21% !important; }

.custom-width-productPanel { width: 79% !important; max-width: 79% !important; flex: 0 0 79% !important; }

@media (max-width: 1200px) {
    .custom-width { width: 100% !important; }

    .custom-width-productPanel { width: 100% !important; }
}

.login-register-container a { font-size: 1.2rem; }

.topbar-left .nav { border-left: 0; }

.rvc-swiper-container { padding: 0; }
.rvc-product-gallery .swiper-slide { background-color: #fff; border: 1px solid #e0e0e2; border-radius: 8px; cursor: pointer; overflow: hidden; padding: 4px; }
.rvc-cad-box { align-items: center; display: flex; gap: 8px; }
    .rvc-cad-box i { color:#fff !important }
    /*-----------مودال برای تصاویر--------------*/
    /* دکمه‌های ناوبری مودال؛ بدون تداخل با منو */
    #imageModal .image-nav-btn { top: 50%; transform: translateY(-50%); z-index: 1065; width: 44px; height: 44px; opacity: .85; transition: transform .2s, opacity .2s; }

    #imageModal .image-nav-btn:hover { opacity: 1; transform: translateY(-50%) scale(1.06); }

#prevImage { left: 15px; }

#nextImage { right: 15px; }


.modal { z-index: 1060 !important; }

.modal-backdrop { z-index: 1055 !important; }


.swiper-slide img { pointer-events: auto !important; }

.product-thumbs .swiper-slide,
.product-thumbs .swiper-slide img { position: relative; z-index: 20; cursor: pointer; }
#imageModal .modal-title { color: #7f7f7f; }
Specificity { margin-bottom: 0; line-height: 1.5; font-size: 14px; color: #7f7f7f; }

/*-----------تعداد سبد خرید-------*/

.quantity-holder:not(.hidden) .qty
Specificity { -moz-appearance: textfield; border: none; border-radius: 0; text-align: center; width: 60px; }
.quantity-holder:not(.hidden) .decrease-qty { /*border-left: 1px solid #e0e0e2;*/ border-right: none; }
.quantity-holder:not(.hidden) { align-items: center; width: 100%; border-radius: 8px; display: inline-flex; overflow: hidden; }
    .quantity-holder:not(.hidden) .decrease-qty, .quantity-holder:not(.hidden) .increase-qty { align-items: center; background-color: #fff; cursor: pointer; display: inline-flex; font-family: monospace, Open Sans, sans-serif; font-size: 2.4rem; height: 48px; justify-content: center; padding: 0 16px; user-select: none; }
.txtQuantity { text-align: center; width: 60px; background-clip: padding-box; background-color: #fff; border: 1px solid #e0e0e2; /* border-radius: 8px; */ display: block; height: 50px; padding: 8px; width: 100%; }
.quantity-holder:not(.hidden) .decrease-qty, .quantity-holder:not(.hidden) .increase-qty
Specificity { align-items: center; background-color: #fff; cursor: pointer; display: inline-flex; font-family: monospace, Open Sans, sans-serif; font-size: 2.4rem; height: 48px; justify-content: center; padding: 0 16px; user-select: none; }
/* ===== Sidebar Filters — boxed sections with borders ===== */

/* خودِ بلوک‌ها (دکمه اعمال، هر ویجتِ قابل‌جمع‌شدن) */
.col-xl-3 .filter-actions,
.col-xl-3 .widget.widget-collapsible { border: 1px solid #e5e7eb; /* خط دور هر بخش */ border-radius: 12px; /* گوشه‌های گرد */ background: #fff; /* پس‌زمینه سفید */ margin-bottom: 14px; /* فاصله بین باکس‌ها */ overflow: hidden; /* برش سرریز برای هدر */ box-shadow: 0 1px 0 rgba(0,0,0,.02); }

    /* هدر هر ویجت */
    .col-xl-3 .widget.widget-collapsible .widget-title { margin: 0; padding: 12px 14px; font-weight: 700; font-size: 15px; border-bottom: 1px solid #f0f2f4; /* خط جداکننده هدر از بدنه */ display: flex; align-items: center; }

        .col-xl-3 .widget.widget-collapsible .widget-title span { display: inline-block; line-height: 1.6; border-bottom: 2px solid rgb(239, 64, 86); }



    /* بدنه‌ی ویجت‌ها */
    .col-xl-3 .widget.widget-collapsible .widget-body { padding: 12px 14px; }

/* باکس دکمه «اعمال تغییرات» هم شبیه ویجت دیده شود */
.col-xl-3 .filter-actions { padding: 10px; }

    .col-xl-3 .filter-actions .btn { width: 100%; border-radius: 10px; }

/* رِنج قیمت */
#range { width: 100% !important; /* تمام عرض باکس را بگیرد */ direction: ltr; /* اغلب پلاگین‌های رنج LTR هستند */ }

/* لیست برندها (چک‌باکس‌ها) */
.col-xl-3 .filter-items.item-check .inline-rb input[type="checkbox"] { margin-inline-start: 0; margin-inline-end: 8px; }

.col-xl-3 .filter-items.item-check .inline-rb label { display: inline-flex; align-items: center; gap: 6px; line-height: 1.9; cursor: pointer; }

/* فاصله‌گذاری در موبایل کمی بیشتر تا لمس راحت‌تر باشد */
@media (max-width: 576px) {
    .col-xl-3 .widget.widget-collapsible .widget-title { padding: 14px 16px; }

    .col-xl-3 .widget.widget-collapsible .widget-body { padding: 14px 16px; }

    .col-xl-3 .filter-actions { padding: 12px; }
    .links-col { padding-left: 0px; margin-left: 0px; }
    .summary-columns { display: block !important; }


    .rvc-product-details { width: 100%; }
}

.img-80 { height: 80px; }
/* استایل‌های Swier thumbs */
.product-thumbs-wrap { position: relative; padding: 0 30px; /* فضا برای دکمه‌های ناوبری */ }

.product-thumbs-swiper { width: 100%; height: 100px; }

.product-thumb { text-align: center; cursor: pointer; opacity: 0.6; transition: opacity 0.3s ease; }

    .product-thumb:hover,
    .product-thumb.swiper-slide-thumb-active { opacity: 1; }

.thumb-inner { padding: 5px; border: 2px solid transparent; transition: border-color 0.3s ease; }

.product-thumb.swiper-slide-thumb-active .thumb-inner { border-color: #007bff; }

.swiper-button-next-thumbs,
.swiper-button-prev-thumbs { width: 30px; height: 30px; background: white; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2); color: #333; top: 50%; transform: translateY(-50%); }

.swiper-button-next-thumbs { right: 0; }

.swiper-button-prev-thumbs { left: 0; }

    .swiper-button-next-thumbs::after,
    .swiper-button-prev-thumbs::after { content: none; /* حذف محتوای پیش‌فرض */ }

.thumbnail-clickable { border-radius: 4px; }

/* استایل اسلایدر موبایل */
.mobile-icon-slider-container { margin: 10px 0; padding: 10px 0;     background: #f8f8f8; border-radius: 8px; }
.mobile-icon-slider { display: flex; flex-wrap: wrap; justify-content: center; }

    .mobile-icon-slider .item { width: 140px; padding: 10px 5px; }

    .mobile-icon-slider .icon-box { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 15px 10px; background: white; border-radius: 8px; min-width: 100 px !important; height: 100%; transition: all 0.3s ease; }

        .mobile-icon-slider .icon-box:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

    .mobile-icon-slider .icon-box-icon { margin-bottom: 10px; font-size: 24px; }

    .mobile-icon-slider .icon-box-title { font-size: 12px; margin: 0; font-weight: 600; }

    .mobile-icon-slider .icon-box-content p { font-size: 10px; margin: 5px 0 0 0; color: #777; }

    /* استایل Owl Carousel */
    .mobile-icon-slider.owl-carousel .owl-stage { display: flex; }

    .mobile-icon-slider.owl-carousel .owl-item { display: flex; height: auto; }

    .mobile-icon-slider.owl-carousel .owl-nav { position: absolute; top: 50%; width: 100%; transform: translateY(-50%); display: flex; justify-content: space-between; pointer-events: none; }

        .mobile-icon-slider.owl-carousel .owl-nav button { pointer-events: all; background: rgba(255,255,255,0.8) !important; border-radius: 50% !important; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

            .mobile-icon-slider.owl-carousel .owl-nav button span { font-size: 20px; line-height: 1; }
.open > .dropdown-menu { display: block; }
/* حالت موبایل: سایدبار مخفی باشه */
@media (max-width: 991px) {

    .filter-sidebar { position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px; height: 100%; background: #fff; z-index: 1060; transition: right 0.3s ease-in-out; overflow-y: auto; box-shadow: -4px 0 12px rgba(0,0,0,0.25); }

        .filter-sidebar.active { right: 0; }

    .filter-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1050; display: none; transition: all 0.3s ease-in-out; }

    /* وقتی سایدبار بازه → overlay از سمت چپ تا شروع سایدبار */
    .filter-sidebar.active ~ .filter-overlay { display: block; right: 80%; /* یا دقیقا هم‌اندازه با width سایدبار */ }
}
