.navbar.navbar-expand-md.navbar-custom {
    background: #fff;
    margin-top: 80px;
}
.products-box{
    margin-top: 10%;
}
.navbar-custom.fixed {
    margin-top: 0 !important;
}

.navbar-nav.ml-auto .nav-item a {
    color: #000;
}

.navbar-left .dropdown ul li a {
    color: #000;
}

.navbar-left .navbar-btn span, .navbar-left .navbar-btn .icon-p-user {
    color: #000;
}

.navbar-left:hover {
    color: #FFF !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.form-container {
    transition: all 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.card-product {
    border: 1px solid #E6E6E6;
    display: block;
    border-radius: 20px;
    padding: 15px;
    background: #fff;
    transition: 0.3s;
    position: relative;
}

.card-product:hover {
    border-color: var(--color2);
}

.card-product-img-body {
    position: relative;
}

.card-product-discount {
    align-items: center;
    background: #e53935;
    border-radius: 0 12px 12px 0;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    height: 30px;
    justify-content: center;
    left: 0;
    min-width: 48px;
    padding: 0 8px;
    position: absolute;
    top: 10px;
    z-index: 2;
}

/* The discount badge is the only card badge used in the catalogue. */
.products-box .card-product-img-body::after { content:none !important; display:none !important; }

.products-filter-form { background:#fff; border:1px solid #e6e6e6; border-radius:14px; margin-bottom:18px; padding:16px; }
.products-filter-form h4 { font-size:16px; font-weight:800; margin:0 0 14px; }
.products-filter-group { border-top:1px solid #eee; margin-top:12px; padding-top:12px; }
.products-filter-group ul { list-style:none; margin:10px 0 0; max-height:190px; overflow:auto; padding:0; }
.products-filter-group li { margin:7px 0; }
.products-filter-group label { cursor:pointer; font-size:13px; }
.catalog-brand-option { align-items:center; display:flex; gap:7px; line-height:1.7; }
.catalog-brand-option input { accent-color:var(--color2,#ef6c00); height:16px; width:16px; }

/* Catalogue category tree and filters */
.products-filter-col .nav__list { margin:0; padding:0; }
.products-filter-col .sidebar-dropdown { align-items:center; border-bottom:1px solid #f0f0f0; display:flex; flex-wrap:wrap; list-style:none; min-height:42px; padding:0; position:relative; }
.products-filter-col .sidebar-dropdown:last-child { border-bottom:0; }
.products-filter-col .category-link { color:#303030; flex:1; font-size:13px; font-weight:600; line-height:1.6; padding:11px 0; text-decoration:none; }
.products-filter-col .category-link:hover { color:var(--color2,#ef6c00); }
.products-filter-col .category-toggle { align-items:center; background:#f7f7f7; border:0; border-radius:8px; color:#666; cursor:pointer; display:inline-flex; height:30px; justify-content:center; margin-right:8px; transition:.2s; width:30px; }
.products-filter-col .category-toggle:hover,.products-filter-col .sidebar-dropdown.is-open .category-toggle { background:var(--color2,#ef6c00); color:#fff; }
.products-filter-col .category-toggle i { font-size:12px; margin:0; transition:transform .2s; }
.products-filter-col .sidebar-dropdown.is-open .category-toggle i { transform:rotate(-90deg); }
.products-filter-col .sidebar-submenu { background:#fafafa; border-radius:8px; flex-basis:100%; list-style:none; margin:0 0 10px; padding:5px 10px; }
.products-filter-col .sidebar-submenu[hidden] { display:none; }
.products-filter-col .sidebar-submenu .filter-item { color:#777; display:block; font-size:12px; padding:7px 5px; text-decoration:none; }
.products-filter-col .sidebar-submenu .filter-item:hover { color:var(--color2,#ef6c00); }
.products-filter-col #collapse2 .acc-body { padding:8px 18px 14px; }
.products-filter-col #collapse2 .acc-body > li { border-bottom:1px solid #f1f1f1; list-style:none; margin:0; padding:9px 0; }
.products-filter-col #collapse2 .acc-body > li:last-child { border-bottom:0; }
.products-filter-col .catalog-brand-option { color:#444; font-size:13px; font-weight:500; justify-content:flex-start; margin:0; }
.products-filter-col .catalog-brand-option input { flex:0 0 auto; }
.products-filter-form .products-filter-group ul { padding:0; }
.products-filter-form .products-filter-group li { border-bottom:1px solid #f0f0f0; list-style:none; padding:8px 0; }
.products-filter-form .products-filter-group li:last-child { border-bottom:0; }
.products-filter-form #slider { margin:20px 9px 12px; }
.products-filter-group input[type=number] { border:1px solid #ddd; border-radius:7px; display:block; margin-top:8px; padding:7px; width:100%; }
.products-filter-form .delete-filter { color:#777; display:inline-block; font-size:12px; margin-right:10px; }

.catalog-toolbar { align-items:center; display:flex; margin:0 0 18px; }
.catalog-toolbar strong, .blog-head-2 small { color:#777; font-size:13px; font-weight:500; }
.catalog-sort-label { color:#555; font-size:13px; font-weight:700; margin:0 0 0 8px; }
.catalog-sort { background:#fff; border:1px solid #dedede; border-radius:9px; color:#333; cursor:pointer; font-family:inherit; font-size:13px; min-width:145px; outline:0; padding:8px 10px; }
.catalog-sort:focus { border-color:var(--color2,#ef6c00); box-shadow:0 0 0 3px rgba(239,108,0,.12); }
#catalog-results { min-height:240px; position:relative; transition:opacity .2s ease; }
#catalog-results.catalog-loading { opacity:.42; pointer-events:none; }
#catalog-results.catalog-loading:after { animation:catalog-spin .7s linear infinite; border:3px solid #eee; border-radius:50%; border-top-color:var(--color2,#ef6c00); content:""; height:34px; left:50%; margin:-17px; position:absolute; top:50%; width:34px; z-index:3; }
.catalog-empty { background:#fff; border:1px dashed #ddd; border-radius:12px; color:#666; padding:35px 15px; text-align:center; width:100%; }
.catalog-pagination { justify-content:center; margin:26px 0; }
@keyframes catalog-spin { to { transform:rotate(360deg); } }

.card-product-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.card-product-title {
    color: #323232;
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.6;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    height: 40px;
}


.card-product-brand span:last-child {
    color: #323232;
}

.card-product-flex {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-top: 10px;
    border-top: 1px solid #E6E8E8;
    padding-top: 10px;
}

.card-product-price {
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.card-product-price-off {
    display: flex;
    align-items: center;
    justify-content: end;
}

.card-product-price-before {
    color: #222222;
    font-size: 14px;
    font-weight: 500;
    text-decoration-line: line-through;
}

.card-product-price-discunt {
    font-weight: 700;
    height: 21px;
    color: #FF7119;
    font-size: 14px;
    display: flex;
    align-items: center;
    border-radius: 20px;
    margin-right: 10px;
}

.card-product-price-main {
    font-size: 16px;
    font-weight: 700;
    color: #222222;
    display: flex;
    align-items: center;
    justify-content: end;
    margin-top: 5px;
    line-height: 1;
}

.card-product-price-main i {
    font-size: 10px;
    margin-right: 5px;
}

.card-product-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color2);
    color: #fff;
    border-radius: 12px;
    font-size: 20px;
    line-height: 1;
    transition: 0.3s;
}

.card-product-btn:hover {
    background: var(--color1);
}

/* =========================================================
   NUBIK - PRODUCTS PAGE REDESIGN
   ========================================================= */


/* =========================
   PAGE
========================= */

.products-box {
    margin-top: 115px;
    padding-bottom: 70px;
}

.products-box > .container {
    position: relative;
}


/* =========================
   PRODUCT PAGE HEADER
========================= */

.products-box h1,
.products-box .page-title {
    color: #111;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
}

.products-box .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 25px;
    font-size: 13px;
}

.products-box .breadcrumb a {
    color: #777;
}

.products-box .breadcrumb a:hover {
    color: var(--color1);
}


/* =========================
   NAVBAR
========================= */

.navbar.navbar-expand-md.navbar-custom {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    margin-top: 0;
    top: 0;

    height: 76px;

    box-shadow:
            0 1px 0 rgba(0,0,0,.04),
            0 8px 30px rgba(0,0,0,.06);

    border-bottom: 1px solid rgba(0,0,0,.04);

    z-index: 1000;
}

.navbar-custom.fixed {
    margin-top: 0 !important;
    box-shadow:
            0 1px 0 rgba(0,0,0,.04),
            0 8px 30px rgba(0,0,0,.07);
}


/* Logo */

.navbar-custom .navbar-logo {
    background: #fff;
    box-shadow: none;
    height: 68px;
    padding: 8px 15px;
    margin-left: 35px;

    border-radius: 0 0 16px 16px;
}

.navbar-custom .navbar-logo img {
    width: 90px;
    height: 60px;
}


/* Menu links */

.navbar-custom .nav-item {
    margin-left: 8px;
}

.navbar-custom .nav-item > a {
    position: relative;

    color: #242424 !important;
    text-shadow: none;

    /*font-size: 15px;*/
    /*font-weight: 600;*/

    padding: 11px 15px;

    border-radius: 12px;

    transition:
            background .2s ease,
            color .2s ease,
            transform .2s ease;
}

.navbar-custom .nav-item > a:hover {
    color: var(--color1) !important;
    background: #fff1f2;
}


/* Active menu */

.navbar-custom .nav-item.active > a {
    color: var(--color1) !important;
    background: #fff1f2;
}


/* Remove old underline animation */

.navbar-custom .nav-item:not(.dropdown) a::after {
    display: none;
}


/* Dropdown */

.navbar-custom .dropdown ul {
    margin-top: 12px;

    border: 1px solid #eee;
    border-radius: 14px;

    padding: 8px;

    box-shadow:
            0 15px 40px rgba(0,0,0,.10);

    background: #fff;

    min-width: max-content;
}

.navbar-custom .dropdown ul li a {
    color: #333 !important;

    border-radius: 9px;

    padding: 10px 13px;

    font-size: 14px;
}

.navbar-custom .dropdown ul li a:hover {
    background: #fff1f2;
    color: var(--color1) !important;
}


/* User / cart buttons */

.navbar-custom .navbar-btn {
    background: #f5f5f5;
    color: #222;

    height: 42px;

    border-radius: 13px;

    padding: 5px 14px;

    margin-right: 8px;

    transition: .2s;
}

.navbar-custom .navbar-btn:hover {
    background: var(--color1) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.navbar-custom .navbar-btn-badge {
    background: var(--color1);
}


/* =========================
   PRODUCTS TOP AREA
========================= */

.products-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;
}

.products-top-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.products-top-title::before {
    content: "";

    width: 5px;
    height: 32px;

    border-radius: 10px;

    background: var(--color1);
}

.products-top-title h1,
.products-top-title h2 {
    margin: 0;

    font-size: 28px;
    font-weight: 800;

    color: #171717;
}


/* =========================
   PRODUCT GRID
========================= */

.products-box .row {
    row-gap: 24px;
}


/* =========================
   PRODUCT CARD
========================= */

.card-product {
    border: 1px solid #e8e8e8;

    display: block;

    border-radius: 18px;

    padding: 10px;

    background: #fff;

    transition:
            transform .25s ease,
            box-shadow .25s ease,
            border-color .25s ease;

    position: relative;

    overflow: hidden;

    height: 100%;
}


/* Top red glow */

.card-product::before {
    content: "";

    position: absolute;

    width: 90px;
    height: 90px;

    left: -35px;
    top: -35px;

    border-radius: 50%;

    background: rgba(222,0,18,.05);

    transition: .3s;

    pointer-events: none;
}


/* Hover */

.card-product:hover {
    border-color: rgba(222,0,18,.15);

    transform: translateY(-5px);

    box-shadow:
            0 15px 35px rgba(0,0,0,.08);
}

.card-product:hover::before {
    transform: scale(2);
}


/* =========================
   PRODUCT IMAGE
========================= */

.card-product-img-body {
    position: relative;

    background: #f8f8f8;

    border-radius: 14px;

    overflow: hidden;

    height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* Image */

.card-product-img {
    width: 100%;
    height: 220px;

    object-fit: contain;

    padding: 12px;

    transition:
            transform .45s cubic-bezier(.2,.8,.2,1);
}

.card-product:hover .card-product-img {
    transform: scale(1.07);
}


/* =========================
   IMAGE BADGE
========================= */

.card-product-img-body::after {
    content: "محصول تازه";

    position: absolute;

    right: 10px;
    top: 10px;

    background: rgba(255,255,255,.94);

    color: #333;

    font-size: 11px;
    font-weight: 700;

    padding: 5px 9px;

    border-radius: 20px;

    box-shadow: 0 4px 12px rgba(0,0,0,.06);

    z-index: 2;
}


/* =========================
   PRODUCT TITLE
========================= */

.card-product-title {
    color: #202020;

    font-size: 15px;

    font-weight: 700;

    margin-top: 14px;

    line-height: 1.8;

    text-overflow: ellipsis;

    -webkit-box-orient: vertical;
    display: -webkit-box;

    overflow: hidden;

    -webkit-line-clamp: 2;

    height: 54px;

    transition: color .2s;
}

.card-product:hover .card-product-title {
    color: var(--color1);
}


/* =========================
   BRAND
========================= */

.card-product-brand {
    margin-top: 4px;

    font-size: 12px;

    color: #999;
}

.card-product-brand span:last-child {
    color: #777;
}


/* =========================
   BOTTOM
========================= */

.card-product-flex {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 12px;

    border-top: 1px solid #eeeeee;

    padding-top: 12px;
}


/* =========================
   PRICE
========================= */

.card-product-price {
    height: auto;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 4px;
}

.card-product-price-off {
    display: flex;

    align-items: center;

    justify-content: flex-start;

    min-height: 20px;
}


/* Old price */

.card-product-price-before {
    color: #a0a0a0;

    font-size: 12px;

    font-weight: 500;

    text-decoration: line-through;
}


/* Discount */

.card-product-price-discunt {
    font-weight: 800;

    height: 22px;

    color: #fff;

    background: var(--color1);

    font-size: 11px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 7px;

    margin-right: 7px;

    padding: 0 7px;
}


/* Main price */

.card-product-price-main {
    font-size: 18px;

    font-weight: 900;

    color: #161616;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    margin-top: 2px;

    line-height: 1.2;
}

.card-product-price-main i {
    font-size: 9px;

    margin-right: 5px;

    color: #777;
}


/* =========================
   ADD TO CART
========================= */

.card-product-btn {
    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--color1);

    color: #fff;

    border-radius: 13px;

    font-size: 19px;

    line-height: 1;

    transition:
            transform .2s ease,
            background .2s ease,
            box-shadow .2s ease;
}

.card-product-btn:hover {
    background: #b8000f;

    color: #fff;

    transform: scale(1.06);

    box-shadow:
            0 7px 18px rgba(222,0,18,.25);
}


/* =========================
   FILTER / CATEGORY BAR
========================= */

.products-filter {
    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;

    margin-bottom: 25px;

    padding: 8px;

    background: #fff;

    border: 1px solid #e8e8e8;

    border-radius: 16px;

    box-shadow: 0 5px 20px rgba(0,0,0,.03);
}

.products-filter a,
.products-filter button {
    border: 0;

    background: transparent;

    color: #666;

    padding: 9px 17px;

    border-radius: 10px;

    font-family: var(--font1);

    font-size: 13px;

    cursor: pointer;

    transition: .2s;
}

.products-filter a:hover,
.products-filter button:hover {
    color: var(--color1);

    background: #fff1f2;
}

.products-filter .active {
    color: #fff !important;

    background: var(--color1);

    box-shadow: 0 5px 14px rgba(222,0,18,.18);
}
.curved-navbar-right,.curved-navbar-left{
    display: none;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {

    .products-box {
        margin-top: 85px;
        padding-bottom: 40px;
    }


    /* Navbar */

    .navbar.navbar-expand-md.navbar-custom {
        height: 65px;

        padding: 0 10px;

        background: rgba(255,255,255,.97);
    }

    .navbar-custom .navbar-logo {
        height: 56px;

        margin-top: -8px;

        padding: 4px 12px;

        border-radius: 0 0 13px 13px;
    }

    .navbar-custom .navbar-logo img {
        width: 65px;
        height: 52px;
    }

    .navbar-custom .navbar-btn {
        width: 38px;
        height: 38px;

        padding: 5px;

        margin-right: 5px;

        border-radius: 11px;
    }


    /* Page title */

    .products-top {
        margin-bottom: 18px;
    }

    .products-top-title {
        gap: 8px;
    }

    .products-top-title::before {
        width: 4px;
        height: 25px;
    }

    .products-top-title h1,
    .products-top-title h2 {
        font-size: 21px;
    }


    /* Cards */

    .card-product {
        padding: 8px;

        border-radius: 15px;
    }

    .card-product-img-body {
        height: 155px;

        border-radius: 11px;
    }

    .card-product-img {
        height: 155px;

        padding: 8px;
    }

    .card-product-img-body::after {
        font-size: 9px;

        padding: 4px 7px;

        right: 7px;
        top: 7px;
    }

    .card-product-title {
        font-size: 13px;

        line-height: 1.7;

        height: 45px;

        margin-top: 10px;
    }

    .card-product-brand {
        font-size: 10px;
    }

    .card-product-flex {
        margin-top: 8px;
        padding-top: 9px;
    }

    .card-product-price-main {
        font-size: 14px;
    }

    .card-product-price-before {
        font-size: 10px;
    }

    .card-product-price-discunt {
        font-size: 9px;

        height: 19px;

        padding: 0 5px;
    }

    .card-product-btn {
        width: 38px;
        height: 38px;

        border-radius: 11px;

        font-size: 16px;
    }


    /* Filter */

    .products-filter {
        overflow-x: auto;

        flex-wrap: nowrap;

        padding: 6px;

        border-radius: 13px;

        scrollbar-width: none;
    }

    .products-filter::-webkit-scrollbar {
        display: none;
    }

    .products-filter a,
    .products-filter button {
        flex: 0 0 auto;

        padding: 8px 13px;

        font-size: 11px;
    }

}
/* =========================================
   Product Card - Modern Style
========================================= */

.card-product {
    border: 1px solid #eeeeee;
    border-radius: 22px;
    padding: 12px;
    background: #fff;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .035);
}

.card-product:hover {
    border-color: #e5e5e5;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .09);
}


/* تصویر */
.card-product-img-body {
    position: relative;
    height: 215px;
    border-radius: 17px;
    background: #fafafa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform .4s ease;
}

.card-product:hover .card-product-img {
    transform: scale(1.06);
}


/* عنوان */
.card-product-title {
    color: #252525;
    font-size: 14px;
    font-weight: 600;
    margin-top: 14px;
    line-height: 1.8;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;

    height: 50px;
}


/* برند */
.card-product-brand {
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}


/* قسمت قیمت */
.card-product-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-top: 12px;
    padding-top: 12px;

    border-top: 1px solid #f1f1f1;
}


/* قیمت */
.card-product-price {
    height: auto;
    min-height: 52px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* قیمت قبلی + درصد */
.card-product-price-off {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    margin-bottom: 4px;
}


/* قیمت قبل از تخفیف */
.card-product-price-before {
    color: #aaa;
    font-size: 12px;
    font-weight: 400;
    text-decoration: line-through;
}


/* درصد تخفیف */
.card-product-price-discunt {
    background: #fff0f1;
    color: #e00016;

    font-size: 11px;
    font-weight: 700;

    height: 23px;
    padding: 0 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;
    margin-right: 0;
}


/* قیمت اصلی */
.card-product-price-main {
    color: #222;

    font-size: 17px;
    font-weight: 800;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    margin-top: 0;
    line-height: 1.2;
}


/* تومان */
.card-product-price-main i {
    font-size: 10px;
    font-style: normal;
    color: #777;
    margin-right: 5px;
    font-weight: 500;
}


/* دکمه خرید */
.card-product-btn {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--color2);
    color: #fff;

    border-radius: 14px;

    font-size: 20px;
    line-height: 1;

    box-shadow: 0 5px 12px rgba(0, 0, 0, .12);

    transition: all .3s ease;
}


/* hover دکمه */
.card-product-btn:hover {
    background: var(--color1);
    color: #fff;

    transform: translateY(-2px) scale(1.04);

    box-shadow: 0 7px 16px rgba(0, 0, 0, .18);
}


/* =========================================
   تخفیف‌دارها
========================================= */

.card-product:has(.card-product-price-before) .card-product-img-body::after {
    content: "پیشنهاد ویژه";

    position: absolute;
    top: 10px;
    right: 10px;

    background: #fff;
    color: #e00016;

    font-size: 10px;
    font-weight: 700;

    padding: 6px 9px;
    border-radius: 8px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}


/* =========================================
   موبایل
========================================= */

@media (max-width: 768px) {

    .card-product {
        border-radius: 17px;
        padding: 9px;
    }

    .card-product-img-body {
        height: 170px;
        border-radius: 14px;
    }

    .card-product-title {
        font-size: 13px;
        line-height: 1.7;
        margin-top: 10px;
        height: 44px;
    }

    .card-product-price-main {
        font-size: 15px;
    }

    .card-product-btn {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 18px;
    }
}
/* =========================================================
   NUBIK PRODUCTS - FILTER + GRID
   نسخه تمیز
========================================================= */


/* =========================================================
   PRODUCT GRID
   فقط گرید محصولات، نه تمام rowهای صفحه
========================================================= */

.products-list-col > .row {
    row-gap: 24px;
}


/* =========================================================
   DESKTOP LAYOUT
   محصولات چپ - فیلتر راست
========================================================= */

.products-layout {
    display: flex;
    align-items: flex-start;
}


/*
    چون RTL است:
    ستون اول = راست
    ستون دوم = چپ

    بنابراین فیلتر را اول و محصولات را دوم می‌گذاریم.
*/

.products-filter-col {
    order: 1;
}

.products-list-col {
    order: 2;
}


/* =========================================================
   FILTER SIDEBAR
========================================================= */

.products-filter-col {
    position: relative;
}


/* sticky واقعی */
.products-filter-col .position-sticky {
    position: sticky;
    top: 95px;
}


/* هر فیلتر */
.products-filter-col .accordion {
    width: 100%;

    background: #fff;

    border: 1px solid #e9e9e9;
    border-radius: 17px;

    margin-bottom: 12px;

    overflow: hidden;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);

    transition:
            box-shadow .25s ease,
            border-color .25s ease;
}


.products-filter-col .accordion:hover {
    border-color: #e2e2e2;

    box-shadow:
            0 8px 25px rgba(0,0,0,.06);
}


/* =========================================================
   FILTER HEADER
========================================================= */

.products-filter-col .acc-header {
    width: 100%;

    background: #fff;
}


.products-filter-col .acc-btn {
    width: 100%;

    min-height: 58px;

    padding: 9px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 0;
    outline: none;

    background: transparent;

    color: #222;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: all .2s ease;
}


/* قسمت عنوان */
.products-filter-col .acc-btn > div {
    display: flex;
    align-items: center;

    gap: 8px;
}


/*
   فقط اگر داخل عنوان آیکون وجود داشت
*/
.products-filter-col .acc-btn i {
    color: var(--color1);
}


/* فلش */
.products-filter-col .acc-btn .icon {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #f7f7f7;

    color: #888;

    transition: all .2s ease;
}


.products-filter-col .acc-btn:hover .icon {
    background: #fff0f1;
    color: var(--color1);
}


/* =========================================================
   FILTER BODY
========================================================= */

.products-filter-col .acc-body {
    padding: 0 16px 16px;

    border-top: 1px solid #f2f2f2;
}


/* =========================================================
   CATEGORY
========================================================= */

.products-filter-col .nav__list {
    list-style: none;

    margin: 0;
    padding: 4px 0;
}


.products-filter-col .nav__list > li {
    list-style: none;

    margin: 0;
    padding: 0;

    border-bottom: 1px solid #f5f5f5;
}


.products-filter-col .nav__list > li:last-child {
    border-bottom: 0;
}


.products-filter-col .nav__list label {
    min-height: 43px;

    width: 100%;

    margin: 0;
    padding: 7px 5px;

    display: flex;
    align-items: center;

    color: #555;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    transition: all .2s ease;
}


.products-filter-col .nav__list label:hover {
    color: var(--color1);

    padding-right: 9px;
}


/* input مخفی */
.products-filter-col .input-li {
    display: none;
}


/* فلش دسته‌بندی */
.products-filter-col .nav__list label .custom {
    margin-left: 8px;

    color: #aaa;

    transition: .2s;
}


/* انتخاب شده */
.products-filter-col .input-li:checked + label {
    color: var(--color1);

    font-weight: 700;
}


/* =========================================================
   CHECKBOX FILTERS
========================================================= */

.products-filter-col .form-check-cat {
    min-height: 42px;

    margin: 0;

    padding: 0;

    display: flex;
    align-items: center;

    border-bottom: 1px solid #f5f5f5;
}


.products-filter-col .form-check-cat:last-child {
    border-bottom: 0;
}


/*
   Labelauty خودش checkbox را کنترل می‌کند.
   پس روی input آن display:none نمی‌گذاریم.
*/

.products-filter-col .labelauty {
    width: 100%;

    min-height: 42px;

    padding: 8px 2px;

    margin: 0;

    display: flex;
    align-items: center;

    color: #555;

    font-size: 13px;

    cursor: pointer;

    transition: all .2s ease;
}


.products-filter-col .labelauty:hover {
    color: var(--color1);
}


/* =========================================================
   PRICE BOX
========================================================= */

.products-filter-col .acc-item {
    min-height: 42px;

    display: flex;
    align-items: center;

    padding: 0 10px;

    margin-bottom: 8px;

    background: #fafafa;

    border: 1px solid #eeeeee;
    border-radius: 10px;
}


.products-filter-col .acc-item-text {
    color: #999;

    font-size: 11px;

    margin-left: 6px;
}


.products-filter-col .acc-item-num {
    flex: 1;

    color: #333;

    font-size: 13px;
    font-weight: 700;
}


.products-filter-col .acc-item-toman img {
    width: 15px;

    opacity: .55;
}


/* =========================================================
   PRICE SLIDER
========================================================= */

.products-filter-col #slider {
    height: 5px;

    margin: 25px 9px 18px;

    background: #ededed;

    border: 0;

    border-radius: 10px;
}


.products-filter-col #slider .ui-slider-range {
    background: var(--color1);

    border-radius: 10px;
}


.products-filter-col #slider .ui-slider-handle {
    width: 18px;
    height: 18px;

    top: -7px;

    border: 3px solid #fff;

    border-radius: 50%;

    background: var(--color1);

    box-shadow:
            0 2px 8px rgba(0,0,0,.2);

    cursor: pointer;
}


.products-filter-col .acc-range-info {
    display: flex;
    justify-content: space-between;

    color: #aaa;

    font-size: 10px;
}


/* =========================================================
   MORE BUTTON
========================================================= */

.products-filter-col #show-more-size,
.products-filter-col #show-more-material,
.products-filter-col #show-more-type-stone,
.products-filter-col #show-more-type-jewel {
    width: 100%;

    padding: 10px;

    border: 0;

    background: transparent;

    color: var(--color1);

    font-family: inherit;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   SIZE GUIDE
========================================================= */

.products-filter-col .product-att-link {
    display: flex;
    align-items: center;

    margin-top: 8px;
    padding-top: 12px;

    border-top: 1px solid #f1f1f1;

    color: #888;

    font-size: 11px;

    transition: .2s;
}


.products-filter-col .product-att-link:hover {
    color: var(--color1);
}


/* =========================================================
   DELETE FILTER
========================================================= */

.products-filter-col .delete-filter {
    width: 100%;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 6px;

    border: 1px solid #ffdfe2;

    border-radius: 12px;

    background: #fff5f6;

    color: #d90015;

    font-family: inherit;

    font-size: 12px;
    font-weight: 700;

    transition: all .2s ease;

    cursor: pointer;
}


.products-filter-col .delete-filter:hover {
    background: var(--color1);

    border-color: var(--color1);

    color: #fff;
}


/* =========================================================
   MOBILE FILTER BUTTON
========================================================= */

.mobile-filter-btn {
    display: none;
}


.filter-overlay {
    display: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    /*
       در موبایل ستون‌ها دیگر layout عادی ندارند.
       محصولات تمام عرض می‌شوند.
    */

    .products-layout {
        display: block;
    }


    .products-list-col {
        width: 100%;
    }


    /*
       فیلتر از جریان صفحه خارج می‌شود
       و به Drawer تبدیل می‌شود.
    */

    .products-filter-col {
        position: fixed !important;

        top: 0;
        right: 0;

        width: min(88vw, 370px);
        height: 100dvh;

        z-index: 10001;

        margin: 0 !important;
        padding: 18px 14px 30px;

        background: #f7f7f7;

        overflow-y: auto;
        overflow-x: hidden;

        transform: translateX(105%);

        visibility: hidden;

        transition:
                transform .35s cubic-bezier(.4,0,.2,1),
                visibility .35s ease;

        box-shadow:
                -12px 0 35px rgba(0,0,0,.16);
    }


    /*
       مهم:
       sticky داخلی در موبایل نباشد
    */

    .products-filter-col .position-sticky {
        position: static !important;

        top: auto !important;
    }


    /*
       باز شدن
    */

    body.filter-open .products-filter-col {
        transform: translateX(0);

        visibility: visible;
    }


    /* =====================================================
       DRAWER OVERLAY
    ===================================================== */

    .filter-overlay {
        position: fixed;

        inset: 0;

        display: block;

        z-index: 10000;

        background: rgba(0,0,0,.42);

        backdrop-filter: blur(2px);

        opacity: 0;

        visibility: hidden;

        transition:
                opacity .3s ease,
                visibility .3s ease;
    }


    body.filter-open .filter-overlay {
        opacity: 1;

        visibility: visible;
    }


    /* =====================================================
       DRAWER TITLE
    ===================================================== */

    .products-filter-col::before {
        content: "فیلتر محصولات";

        display: block;

        padding: 4px 5px 16px;

        color: #222;

        font-size: 18px;
        font-weight: 800;

        border-bottom: 1px solid #e9e9e9;

        margin-bottom: 14px;
    }


    /* =====================================================
       FILTER CARDS MOBILE
    ===================================================== */

    .products-filter-col .accordion {
        border-radius: 14px;

        margin-bottom: 10px;
    }


    .products-filter-col .acc-btn {
        min-height: 54px;

        padding: 8px 14px;
    }


    .products-filter-col .acc-body {
        padding: 0 14px 14px;
    }


    /* =====================================================
       MOBILE FILTER BUTTON
    ===================================================== */

    .mobile-filter-btn {
        position: fixed;

        display: flex;
        align-items: center;
        justify-content: center;

        gap: 8px;

        left: 50%;
        bottom: 14px;

        transform: translateX(-50%);

        z-index: 9999;

        height: 50px;

        padding: 0 20px;

        border: 0;

        border-radius: 16px;

        background: var(--color1);

        color: #fff;

        font-family: inherit;

        font-size: 12px;
        font-weight: 700;

        box-shadow:
                0 8px 25px rgba(0,0,0,.22);

        cursor: pointer;
    }


    .mobile-filter-btn i {
        font-size: 15px;
    }


    .mobile-filter-btn:active {
        transform:
                translateX(-50%)
                scale(.95);
    }
    /* فضای پایین صفحه */
    .products-box {
        padding-bottom: 80px;
    }
}

.card-product-price-2{
    text-decoration: line-through;
}

