@font-face {
    font-family: 'iranyekan';
    src: url('../fonts/iranyekanr.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-feature-settings: "ss02";
    font-display: swap;

}

@font-face {
    font-family: 'iranyekan';
    src: url('../fonts/iranyekanb.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-feature-settings: "ss02";
    font-display: swap;

}

@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap !important;
    src: url('../webfonts/fa-solid-900.woff2') format('woff2');
}

body {

    font-family: 'iranyekan' !important;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    direction: rtl;
     background: linear-gradient(180deg, #f6f9fc 0%, #eef4f9 100%);
    text-align: right;

}
.ss02 {
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}
.woocommerce,
.woocommerce * {
    font-family: 'iranyekan' !important;
}
body {
    font-family: 'iranyekan' !important;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    direction: rtl;
background-color:#f9f9f9;
 
}
.container-home{

margin:5px auto;
}
/* General Body Styles */

/* ********************اسلایدر های سایت ************/
.banner-grid-container {
    display: flex;
    flex-direction: row-reverse; 
    gap: 20px;
    max-width: 1200px;
    margin: 30px auto;
    font-family: Tahoma, sans-serif; 
    direction: rtl;
    padding: 0 15px;
}

/* استایل‌های بخش اسلایدر بزرگ */
.main-slider-wrapper {
    width: 60%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 340px;
}

.custom-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.custom-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.custom-slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-info {
    color: #fff;
    max-width: 50%;
}

.slide-info h2 {
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: bold;
text-align:center;
}

.slide-info p {
    font-size: 16px;
    margin: 0 0 25px 0;
    opacity: 0.9;
color:#f8eeee;
text-align:center;
align-content:justify;

}

.slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    transition: background 0.3s;
}

.slide-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slide-img-box {
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-img-box img {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
}

/* دکمه‌های ناوبری اسلایدر */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.prev-slide { left: 20px; }
.next-slide { right: 20px; }

/* نقاط زیر اسلایدر */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 20px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #fff;
    width: 12px;
    border-radius: 5px;
}

/* استایل‌های گرید سمت چپ */
.side-banners-grid {
    width: 40%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.mini-banner {
    border-radius: 20px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 160px;
    box-sizing: border-box;
    overflow: hidden;
    color: #fff;
}

.mini-banner h3 {
    font-size: 14px;
    margin: 0 0 5px 0;
}

.mini-banner p {
    font-size: 11px;
    margin: 0;
    opacity: 0.8;
}

.mini-banner img {
    position: absolute;
    bottom: 10px;
    left: 10px;
    max-width: 75px;
    max-height: 75px;
    object-fit: contain;
}

.mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #fff;
    color: #333;
    border-radius: 50%;
    text-decoration: none;
    margin-top: 15px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* باکس عریض پایین */
.wide-banner {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    height: 165px;
    padding: 17px;
}

.wide-banner h2 {
    font-size: 22px;
    margin: 0 0 5px 0;
}

.wide-banner p {
    font-size: 12px;
    margin: 0 0 20px 0;
}

.wide-banner img {
    position: static;
    max-width: 180px;
    max-height: 120px;}
.mini-btn-wide {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    transition: background 0.3s;
}

.mini-btn-wide:hover {
    background: rgba(255, 255, 255, 0.3);
}
.mini-banner p{
color:#242323d1;

}
/* ریسپانسیو برای نمایشگرهای کوچک موبایل */
@media (max-width: 768px) {
.custom-slide{padding:10px;
}
    .banner-grid-container {
        flex-direction: column;
    }
    .main-slider-wrapper, .side-banners-grid {
        width: 100%;
    }
    .main-slider-wrapper {
        height: 280px;
    }
    .slide-info h2 { font-size: 20px; }
.slide-info p {
    font-size: 13px;}
.wide-banner {
    height: 200px;
}
}
 /***************** باکس های رنگی عکس های دسته بندی ****************** */

/* =========================
   CONTAINER
========================= */

.custom-card-container{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;

    max-width:1200px;
    margin:50px auto;
    padding:20px;
}


/* =========================
   CARD STYLE
========================= */

.custom-card{
    position:relative;

    background:#F01516;
    border-radius:30px 30px 30px 30PX;

    height:260px;

    display:flex;
    flex-direction:column;
    justify-content:flex-end;

    padding:28px;

    text-decoration:none !important;
    overflow:visible;

    border:1px solid #ececec;

    box-shadow:
    0 10px 30px rgba(0,0,0,.05);

    transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}


/* Hover */

.custom-card:hover{
    transform:translateY(-8px);

    box-shadow:
    0 20px 45px rgba(0,0,0,.10);

    border-color:#d8d8d8;
}


/* =========================
   IMAGE
========================= */

.card-image{
    position:absolute;

    top:-35px;
    left:50%;

    transform:translateX(-50%);

    width:100%;
    max-width:210px;
    max-height:190px;

    object-fit:contain;

    transition:
    transform .4s ease;
}

.custom-card:hover .card-image{
    transform:
    translateX(-50%)
    scale(1.06);
}


/* =========================
   CONTENT
========================= */

.card-content{
    text-align:right;
    z-index:2;
}

.card-title{
    color:white;

    font-size:20px;
    font-weight:800;

    line-height:1.8;

    margin:0 0 8px 0 !important;
}

.card-subtitle{
    color:white;

    font-size:14px;
    line-height:2;

    margin:0 0 50px 0 !important;
}


/* =========================
   ARROW BUTTON
========================= */

.card-arrow{
    position:absolute;

    bottom:24px;
    left:24px;

    width:48px;
    height:48px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#ffffff;

    font-size:20px;
    font-weight:bold;

    box-shadow:
    0 8px 20px rgba(15,157,138,.25);

    transition:
    background .3s ease,
    transform .3s ease;
}
.card-arrow{
        background:#3f51b5 !important;
}
.custom-card:hover .card-arrow{
    background:#087565 !important;


    transform:translateX(-4px);
}


/* =========================
   ACCENT COLORS
========================= */

/* به‌جای رنگ کامل کارت
   فقط نوار ظریف بالا */

.card-blue::before,
.card-pink::before,
.card-orange::before,
.card-yellow::before{
    content:"";

    position:absolute;

    top:0;
    right:0;

    width:100%;
    height:6px;

    border-radius:
    30px 30px 0 0;
}




/* =========================
   MOBILE
========================= */

@media(max-width:992px){

    .custom-card-container{
        grid-template-columns:repeat(2,1fr);
    }
}


@media(max-width:576px){

    .custom-card-container{
        grid-template-columns:repeat(2,1fr);

        gap:40px;

        padding-top:35px;
    }

    .custom-card{
        height:250px;

        padding:20px;
    }

    .card-image{
        max-width:150px;
        max-height:140px;

        top:-25px;
    }

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

    .card-subtitle{
        font-size:12px;
        line-height:1.8;
    }

    .card-arrow{
        width:40px;
        height:40px;
        background:#3f51b5 !important;
        font-size:17px;

        left:18px;
        bottom:18px;
    }
}

/*********** باکس پیشنهدات شگفت انگیز***************/
:root {
    --main-red: #f35252;
    --main-blue: #f01516;
    --border-color: #f0f0f0;
    --text-dark: #333;
    --text-muted: #b5b5b5; /* رنگ کم‌رنگ‌تر برای قیمت قبلی */
}

.special-offers-container {
    display: flex;
    direction: rtl;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    font-family: 'Vazir', Tahoma, sans-serif;
    overflow: hidden;
    max-width: 1200px;
    margin: 20px auto;
}

/* ستون سمت راست */
.product-sidebar-right {
    width: 30%;
    border-left: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: #fff;
}

.sidebar-header {
    background: var(--main-blue);
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 8px 0;
    border-radius: 6px;
    font-size: 14px;
}

.product-img-slider-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    margin: 15px 0;
}

.product-img-wrapper {
    width: 70%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
}

.slide-img.active {
    display: block;
}

.nav-btn {
    background: none;
    border: 1px solid var(--border-color);
    font-size: 28px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    color: #999;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #f5f5f5;
    color: var(--text-dark);
}

/* ساختار جدید تایمر */
.timer-section-wrapper {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.timer-title {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.countdown-timer-fixed {
    display: flex;
    gap: 12px;
    direction: ltr;
    justify-content: center;
}

.countdown-timer-fixed .time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-timer-fixed .num-box {
    background: #f0f2f5;
    border-radius: 6px;
    padding: 6px 12px;
    min-width: 45px;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.countdown-timer-fixed .num-box span {
    font-size: 18px;
    font-weight: bold;
    color: var(--main-blue);
}

.countdown-timer-fixed small {
    font-size: 11px;
    color: #777;
    margin-top: 4px;
}

/* ستون وسط */
.offers-slider-content-mid {
    width: 45%;
    padding: 25px;
}

.offers-slider-content-mid .slide-content {
    display: none;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.offers-slider-content-mid .slide-content.active {
    display: flex;
}

.prod-title {
    font-size: 18px;
    color: var(--text-dark);
    margin: 0 0 15px 0;
}

/* اصلاح باکس قیمت و خط خوردن قیمت قدیمی */
.price-discount-compact-box {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    max-width: 280px;
    margin-bottom: 20px;
}

.price-side {
    width: 70%;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    background: #fafafa;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 2px;
}

.new-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
}

.discount-side {
    width: 30%;
    background: var(--main-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

/* اصلاح چیدمان لیست مشخصات و متن ویژگی‌ها */
.product-short-excerpt {
    font-size: 13px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 25px;
}

.product-short-excerpt ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-short-excerpt ul li {
    margin-bottom: 8px;
    position: relative;
    padding-right: 15px;}
product-short-excerpt ul li::before {
    content: "•";
    color: var(--main-blue);
    position: absolute;
    right: 0;
    font-weight: bold;
}

.add-to-cart-btn {
    background: var(--main-red);
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(243, 82, 82, 0.25);
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background: #d44343;
}

/* ستون سمت چپ */
.offers-tabs-left {
    width: 25%;
    background: #fafafa;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.offers-tabs-left .tab-item {
    padding: 18px 15px;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.offers-tabs-left .tab-item.active {
    background: #fff;
    color: var(--main-blue);
    font-weight: bold;
    border-right: 3px solid var(--main-blue);
}
@media (max-width: 768px) {
    /* ۱. تک ستونه کردن کانتینر اصلی */
    .special-offers-container {
        flex-direction: column;
        max-width: 100%;
        margin: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
        position: relative;
    }

    /* ۲. حذف تب‌های سمت چپ در موبایل برای خلوت شدن صفحه مطابق عکس */
    .offers-tabs-left {
        display: none !important;
    }

    /* ۳. تنظیم بخش سایدبار (تصویر و تایمر) */
    .product-sidebar-right {
        width: 100% !important;
        border-left: none; /* حذف مرز عمودی */
        padding: 15px;
        box-sizing: border-box;
    }

    /* هدر پیشنهاد ویژه بالای عکس قرار می‌گیرد */
    .sidebar-header {
        font-size: 15px;
        font-weight: bold;
        padding: 10px 0;
        background: linear-gradient(90deg, #5171e3, #3b5998); /* تم آبی گرادینت شبیه عکس */
        border-radius: 10px;
    }

    /* شناور کردن فلش‌های چپ و راست روی تصویر دقیقا مثل عکس */
    .product-img-slider-wrapper {
        position: relative;
        margin: 20px 0 10px 0;
        justify-content: center;
    }

    .product-img-wrapper {
        width: 100%;
        height: 250px; /* یکم بزرگتر برای جلوه بهتر در موبایل */
    }

    .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: rgba(255, 255, 255, 0.8);
        border: none;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .prev-btn {
        left: -5px; /* چسبیده به چپ کادر */
    }

    .next-btn {
        right: -5px; /* چسبیده به راست کادر */
    }

    /* ۴. جابجایی باکس محتوا به زیر عکس */
    .offers-slider-content-mid {
        width: 100% !important;
        padding: 0 20px 20px 20px;
        box-sizing: border-box;
        text-align: center; /* راست‌چین یا وسط‌چین کردن متن‌ها بر اساس عکس */
    }

    .offers-slider-content-mid .slide-content.active {
        align-items: center; /* وسط‌چین کردن آیتم‌های داخلی در موبایل */
    }

    .prod-title {
        font-size: 16px;
        line-height: 1.6;
        text-align: center;
        margin-bottom: 10px;
    }

    /* ۵. استایل باکس قیمت فشرده شبیه عکس */
    .price-discount-compact-box {
        max-width: 100%;
        width: 100%;
        border: none;
        background: transparent;
        justify-content: center;
        margin-bottom: 15px;
    }

    .price-side {
        width: auto;
        background: transparent;
        padding: 0;
        flex-direction: row-reverse; /* قیمت تخفیف خورده و اصلی کنار هم قرار بگیرند */
        align-items: center;
        gap: 10px;
    }

    .new-price {
        font-size: 18px;
        color: #2b55da; /* رنگ آبی قیمت در عکس */
    }

    .old-price {
        font-size: 13px;
        margin-bottom: 0;
    }

    .discount-side {
        display: none;
    }

  
    .product-sidebar-right {
        display: flex;
        flex-direction: column;
    }
    
    .timer-section-wrapper {
        order: 3;
        margin-top: 15px;
        border-top: 1px dashed var(--border-color);
        padding-top: 15px;
    }

    .countdown-timer-fixed {
        gap: 8px;
    }

    .countdown-timer-fixed .num-box {
        min-width: 40px;
        padding: 4px 8px;
    }

    .countdown-timer-fixed .num-box span {
        font-size: 16px;
    }

    /* ۷. دکمه خرید محصول */
    .add-to-cart-btn {
        align-self: center; 
        width: 70%;
        justify-content: center;
        margin-top: 10px;
        border-radius: 8px;
        padding: 10px 20px;
    }
    .product-short-excerpt {
       display:none;
       
    }

    }
   
/********************** تازه ترین محصولات ******************/
.latest-products-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}


.latest-products-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.section-title {
    font-size: 20px;
    color: #2b2d42;
    font-weight: bold;
    margin: 0;
    order: 1; /* اصرار بر قرارگیری در اولین موقعیت سمت راست */
}

.products-tabs {
    display: flex;
    gap: 20px;
    order: 2; /* قرارگیری در سمت چپ */
}

.tab-control {
    font-size: 14px;
    color: #7f8c8d;
    cursor: pointer;
    padding-bottom: 12px;
    position: relative;
    transition: color 0.2s;
}

.tab-control:hover, .tab-control.active {
    color: #3f51b5;
    font-weight: bold;
}

.tab-control.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #3f51b5;
    border-radius: 3px 3px 0 0;
}

/* ساختار اسلایدر */
.products-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.products-carousel-track {
    display: flex;
    gap: 15px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    padding: 10px 0;
}

/* کارت محصول و تنظیمات انیمیشن سریع */
.product-card-item , .row-product-card-item {
    min-width: calc(20% - 12px);
    box-sizing: border-box;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.2s ease-in-out;
    overflow: hidden;
    opacity: 1;
}

/* کلاسی برای مخفی شدن آنی و بدون فریز شدن مرورگر */
.product-card-item.is-hidden {
    display: none !important;
}

.product-card-item:hover, .row-product-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.prod-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.prod-img-box {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
    position: relative;
    background: #fff;
}

.prod-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.discount-badge-round {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #3f51b5;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 20px;
    z-index: 2;
}

.prod-details-box {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #f9f9f9;
}

.product-item-title {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    height: 42px;
    overflow: hidden;
    margin: 0 0 15px 0;
}

.product-item-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.old-price-val {
    text-decoration: line-through;
    color: #b5b5b5;
    font-size: 15px;
}

.new-price-val {
    color: #3f51b5;
    font-size: 15px;
    font-weight: bold;
}

.carousel-nav {
    position: absolute;
    bottom: -45px;
    background: #3f51b5;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 5;
}

.prev-item { right: 0; }
.next-item { right: 38px; }

.latest-products-section {
    margin-bottom: 80px;
}

.prod-img-box {
    position: relative;
    overflow: hidden; 
}

/* باکس اصلی دکمه‌های هاور */
.product-hover-actions {
    position: absolute;
    bottom: -60px; 
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    gap: 12px;
    z-index: 10;
    width: auto;
    white-space: nowrap;
    opacity: 0;
    transition: bottom 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

/* بالا آمدن دکمه‌ها هنگام هاور روی کارت محصول */
.product-card-item:hover, .row-product-card-item:hover .product-hover-actions {
    bottom: 15px; /* به موقعیت استاندارد روی عکس می‌رسد */
    opacity: 1;
}
.product-card-item:hover .product-hover-actions {
    bottom: 15px; /* به موقعیت استاندارد روی عکس می‌رسد */
    opacity: 1;
}

/* استایل تکی دکمه‌ها */
.hover-action-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #555e6b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

/* استایل آیکون‌های داخلی */
.hover-action-btn .action-icon {
    width: 20px;
    height: 20px;
    stroke: #555e6b;
    transition: stroke 0.2s ease, fill 0.2s ease;
}

/* افکت هاور روی هر دکمه */
.hover-action-btn:hover .action-icon {
    stroke: #3f51b5; /* تغییر رنگ آیکون به سرمه‌ای در هاور */
    transform: scale(1.1);
}

/* استایل دکمه علاقه‌مندی زمانی که فعال (Active) است */
.hover-action-btn.my-wishlist-btn.active .action-icon {
    stroke: #f35252;
    fill: #f35252; /* قرمز پر شده برای محصولاتی که در لایست لایک هستند */
}

/* استایل دکمه مقایسه زمانی که فعال است */
.hover-action-btn.my-compare-btn.active .action-icon {
    stroke: #2ecc71;
}


@media (max-width: 780px) {
    .product-card-item, .row-product-card-item { min-width: calc(50% - 8px); }
    .products-tabs { overflow-x: auto; padding-bottom: 5px; }
    .tab-control { white-space: nowrap;font-size: 13px;padding-bottom:0; }
  .latest-products-header { flex-direction: column-reverse; align-items: stretch; gap: 15px; }
.section-title {order: 2;}
.carousel-nav {width: 23px;}
}

/***************** دسته بندیها */
.custom-category-row-section {
    max-width: 1200px;
    margin: 40px auto 60px auto;
    direction: rtl;
    padding: 0 15px;
}

.category-row-header {
    display: flex;
    flex-direction: row; /* تنظیم ردیف راست به چپ */
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 12px;
    margin-bottom: 25px;
    width: 100%;
}

.row-section-title {
    font-size: 20px;
    color: #2b2d42;
    font-weight: bold;
    margin: 0;
    text-align: right;
    order: 1; /* عنوان ابتدا و در سمت راست قرار گیرد */
}

.header-left-side {
    order: 2; /* لینک مشاهده همه در سمت چپ قرار گیرد */
}

.row-view-all-link {
    font-size: 13.5px;
    color: #3f51b5;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
.row-view-all-link {
    font-size: 13.5px;
    color: #3f51b5;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.row-view-all-link:hover {
    color: #2c3b8c;
}

/* ساختار ریل کاروسل */
.row-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.row-carousel-track {
    display: flex;
    gap: 15px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    padding: 10px 0;
}

/* کارت محصول یکسان */
.custom-category-row-section .product-card-item, .row-product-card-item {
    min-width: calc(20% - 12px);
    box-sizing: border-box;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.custom-category-row-section .product-card-item:hover,.row-product-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.custom-category-row-section .prod-img-box {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: hidden;
    background: #fff;
}

.custom-category-row-section .prod-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* باکس اقدامات هاور ۴ گانه */
.custom-category-row-section .product-hover-actions {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    gap: 12px;
    z-index: 10;
    opacity: 0;
    transition: bottom 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.custom-category-row-section .product-card-item:hover .product-hover-actions .row-product-card-item:hover {
    bottom: 15px;
    opacity: 1;
}

.custom-category-row-section .hover-action-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-category-row-section .hover-action-btn .action-icon {
    width: 20px;
    height: 20px;
    stroke: #555e6b;
    transition: stroke 0.2s, transform 0.2s;
}

.custom-category-row-section .hover-action-btn:hover .action-icon {
    stroke: #3f51b5;
    transform: scale(1.1);
}

.custom-category-row-section .my-wishlist-btn.active .action-icon {
    stroke: #f35252;
    fill: #f35252;
}

.custom-category-row-section .my-compare-btn.active .action-icon {
    stroke: #2ecc71;
}

/* جزییات قیمت */
.custom-category-row-section .prod-details-box {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #f9f9f9;
}

.custom-category-row-section .product-item-title {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    height: 42px;
    overflow: hidden;
    margin: 0 0 15px 0;
    font-weight: normal;
}

.custom-category-row-section .new-price-val {
    color: #3f51b5;
    font-size: 15px;
    font-weight: bold;
}

.discount-badge-round {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #3f51b5;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 20px;
    z-index: 2;
}

.old-price-val {
    text-decoration: line-through;
    color: #b5b5b5;
    font-size: 11px;
    margin-left: 5px;
}

/* دکمه‌های ناوبری اسلایدر */
.row-carousel-nav {
    position: absolute;
    bottom: -45px;
    background: #3f51b5;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 5;
}

.prev-item { right: 0; }
.next-item { right: 38px; }

/* ریسپانسیو */
@media (max-width: 992px) {
    .custom-category-row-section .product-card-item, .row-product-card-item { min-width: calc(33.33% - 10px); }
}
@media (max-width: 576px) {
    .custom-category-row-section .product-card-item, .row-product-card-item { min-width: calc(50% - 8px); }
}

/***************** مقاله */
.dark-magazine-section {
    background-color: #0f172a; /* سرمه‌ای تیره و عمیق */
    padding: 60px 0;
    margin: 40px 0;

}

.mag-dark-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* هدر وسط‌چین شده با خط تزئینی قرمز */
.mag-dark-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: flex;
    justify-content: center;
}

.mag-dark-title {
    font-size: 22px;
    color: #ffffff; /* متن سفید در بک‌گراند تیره */
    font-weight: bold;
    margin: 0;
    padding-bottom: 15px;
    position: relative;
}

/* خط مینی‌مال قرمز رنگ زیر عنوان وسط‌چین */
.mag-dark-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #e53e3e; /* قرمز جذاب سایت شما */
    border-radius: 2px;
}

/* شبکه ۴ ستونه ثابت و فشرده */
.mag-dark-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

/* استایل کارت‌ها هماهنگ با تم تیره */
.mag-dark-card {
    background: #1e293b; /* رنگ بدنه کارت (کمی روشن‌تر از بک‌گراند اصلی) */
    border-radius: 12px;
    border: 1px solid #334155;
    transition: transform 0.3s ease, box-shadow 0.3s, border-color 0.3s;
    overflow: hidden;
}

.mag-dark-card:hover {
    transform: translateY(-5px);
    border-color: #3f51b5; /* تغییر رنگ مرز کارت به آبی در هاور */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.mag-dark-link {
    text-decoration: none;
    display: block;
}

/* باکس تصویر کارت */
.mag-dark-img-box {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.mag-dark-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mag-dark-card:hover .mag-dark-img-box img {
    transform: scale(1.05);
}

/* نشان دسته‌بندی با تم قرمز */
.mag-dark-cat {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #e53e3e; /* قرمز */
    color: #ffffff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: bold;
}

/* بخش جزییات متن داخل کارت تیره */
.mag-dark-details {
    padding: 15px;
}

.mag-dark-date {
    font-size: 11px;
    color: #94a3b8;
    display: block;
    margin-bottom: 8px;
}

.mag-dark-item-title {
    font-size: 14px;
    color: #f8fafc; /* سفید شفاف */
    margin: 0 0 10px 0;
    line-height: 1.6;
    font-weight: bold;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mag-dark-card:hover .mag-dark-item-title {
    color: #3f51b5; /* تغییر رنگ عنوان به آبی اصلی سایت در هاور */
}

.mag-dark-excerpt {
    font-size: 12.5px;
    color: #cbd5e1; /* طوسی روشن خوانا */
    line-height: 1.7;
    margin: 0 0 15px 0;
    height: 42px;
    overflow: hidden;
    text-align: justify;
}

.mag-dark-more {
    font-size: 12px;
    color: #3f51b5; /* آبی */
    font-weight: bold;
    transition: color 0.2s;
}

.mag-dark-card:hover .mag-dark-more {
    color: #e53e3e; /* تغییر دکمه ادامه مطلب به قرمز در هاور کارت */
}

/* ریسپانسیو کاملاً خودکار بدون نیاز به جاوا اسکریپت */
@media (max-width: 992px) {
    .mag-dark-grid { grid-template-columns: repeat(2, 1fr); } /* ۲ تایی در تبلت */
}
@media (max-width: 576px) {
    .mag-dark-grid { grid-template-columns: repeat(2, 1fr); } /* تک ستونه در موبایل */
}
/****************************** ترین های فروشگاه */
/* باکس اصلی بخش ترین‌های فروشگاه */
.valuable-products-section {
    max-width: 1200px;
    margin: 50px auto;
    direction: rtl;
    padding: 0 15px;
}

/* هدر تراز شده */
.valuable-products-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.valuable-section-title {
    font-size: 20px;
    color: #2b2d42;
    font-weight: bold;
    margin: 0;
}

/* دکمه‌های ناوبری تب‌ها */
.valuable-tabs {
    display: flex;
    gap: 10px;
  order: 1
}

.v-tab-btn {
    background: #f4f6f9;
    border: 1px solid #e1e4e8;
    padding: 8px 16px;
    font-size: 13px;
    color: #555;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
 order: 2; 
}

.v-tab-btn:hover, .v-tab-btn.active {
    background: #3f51b5;
    color: #fff;
    border-color: #3f51b5;
}

/* ریل کاروسل */
.valuable-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.valuable-carousel-track {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

/* مدیریت نمایش/مخفی‌سازی تب‌ها */
.valuable-tab-content {
    display: none;
    width: 100%;
    gap: 15px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.valuable-tab-content.active {
    display: flex; /* فقط تب اکتیو به صورت فلکس اسلایدر نمایش داده شود */
}

/* کارت‌های محصول اختصاصی */
.v-product-card {
    min-width: calc(25% - 12px); /* نمایش ۴ محصول همزمان */
    box-sizing: border-box;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.v-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.v-img-container {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #fff;
    overflow: hidden;
}

.v-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* باکس دکمه‌های شناور هنگام هاور */
.v-hover-actions-box {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    gap: 12px;
    z-index: 10;
    opacity: 0;
    transition: bottom 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.v-product-card:hover .v-hover-actions-box {
    bottom: 15px;
    opacity: 1;
}

/* جزئیات کارت */
.v-details-container {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #f9f9f9;
}

.v-product-title {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    height: 42px;
    overflow: hidden;
    margin: 0 0 15px 0;
    font-weight: normal;
}

.v-new-price {
    color: #3f51b5;
    font-size: 15px;
    font-weight: bold;
}

.v-old-price {
    text-decoration: line-through;
    color: #b5b5b5;
    font-size: 11px;
    margin-left: 5px;
}

.v-discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #3f51b5;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 20px;
    z-index: 2;
}

/* دکمه‌های فلش چپ و راست کاروسل */
.valuable-nav {
    position: absolute;
    bottom: -45px;
    background: #3f51b5;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 5;
}

.prev-v-item { right: 0; }
.next-v-item { right: 38px; }

.valuable-products-section {
    padding-bottom: 50px; /* ایجاد فضا برای دکمه‌های ناوبری پایینی */
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .v-product-card { min-width: calc(33.33% - 10px); }
}

@media (max-width: 780px) {
 .v-product-card { min-width: calc(50% - 8px); }
    .tab-control { white-space: nowrap; }
    .tab-control {font-size: 13px;}
  .valuable-products-header { flex-direction: column-reverse; align-items: stretch; gap: 15px; }
.valuable-section-title {order: 2;}
}
html,
body,
div,
span,
p,
a,
li,
ul,
ol,
h1,
h2,
h3,
h4,
h5,
h6,
input,
textarea,
button,
label {
    font-family: 'iranyekan' !important;
}
body {
    overflow-x: hidden;
}
@media (max-width: 780px) {
 html, body {
    max-width: 100%;
    overflow-x: hidden;
}
}






