
:root {
    --primary: #00d2ff;
    --secondary: #3a7bd5;
    --bg-deep: #020617;
    --card-bg: #0f172a;
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

body {
    background: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Vazirmatn', sans-serif;
    background-image: radial-gradient(circle at 50% -20%, #1e293b, #020617 80%);
    min-height: 100vh;
}

.wrapper {
    padding: 40px 0;
}

a {
    text-decoration: none;
    color: inherit;
}


/* ---------- MODERN FILTERS ---------- */
.filter-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 25px;
    position: sticky;
    top: 20px;
}

.filter-group {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.filter-group:last-child {
    border: none;
}

.filter-label {
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    color: var(--primary);
    font-size: 0.95rem;
}

/* Custom Checkbox */
.custom-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: 0.3s;
}

.custom-check input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    position: relative;
}

.custom-check input:checked+.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.custom-check input:checked+.checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-check:hover {
    color: var(--text-main);
}

/* Range Slider */
input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
}

/* ---------- PRODUCT CARDS ---------- */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 15px;
    transition: 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.img-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.product-card:hover .img-box img {
    transform: scale(1.1);
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: none;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: 0.3s;
}

.wishlist-btn:hover {
    color: #ff4757;
    background: #fff;
}

.product-info {
    padding: 15px 5px 5px;
}

.product-cat {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 8px 0;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-tag {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.btn-add-cart {
    margin-top: 15px;
    background: linear-gradient(120deg, #0f172a, #030718);
    border: none;
    color: #efefef;
    font-weight: 700;
    padding: 12px;
    border-radius: 15px;
    transition: 0.3s;
}

.btn-add-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.3);
}

.show-product {
    margin-top: 15px;
    background: linear-gradient(120deg, #0f172a, #030718);
    border: none;
    color: #efefef;
    font-weight: 700;
    padding: 12px;
    border-radius: 15px;
    transition: 0.3s;
    border: 1px solid #00d2ff45;
}

.show-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.3);

}

/* ---------- MOBILE FILTER TRIGGER ---------- */
.mobile-filter-trigger {
    display: none;
}

@media(max-width: 991.98px) {
    .mobile-filter-trigger {
        display: flex !important;
        background: var(--card-bg);
        padding: 15px;
        border-radius: 15px;
        margin-bottom: 20px;
        justify-content: space-between;
        align-items: center;
        border: 1px solid var(--border);
        cursor: pointer;
    }
}

/* ---------- RESPONSIVE OFFCANVAS STYLING ---------- */
.offcanvas-lg {
    background-color: var(--card-bg);
}

@media (min-width: 992px) {
    .offcanvas-lg {
        background-color: transparent;
    }

    .offcanvas-lg .offcanvas-body {
        padding: 0;
    }
}

.offcanvas-header {
    border-bottom: 1px solid var(--border);
}

.p-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #000;
    padding: 4px 15px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 99;
}
/*  */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    margin-bottom: 26px;
}

.products-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

/* Custom Select */
.custom-select {
    position: relative;
    width: 180px;
    font-size: 13px;
}

.select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-trigger:hover {
    background: rgba(255, 255, 255, 0.16);
}

.select-trigger i {
    font-size: 11px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

/* Options */
.select-options {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 100%;
    background: rgba(20, 20, 25, 0.96);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.25s ease;
    z-index: 100;
}

.custom-select.open .select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select.open .select-trigger i {
    transform: rotate(180deg);
}

.option {
    padding: 12px 14px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.25s ease;
}

.option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.option.active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 600;
}


/* add product */

.btn-add-cart i {
    font-size: 16px;
    transition: all 0.3s ease;
}

/* حالت اضافه شده */
.btn-add-cart.added {
    background: rgba(46, 204, 113, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-cart.added i {
    color: #2ecc71;
    transform: scale(1.2);
}

/* تیک */
.btn-add-cart::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    font-size: 16px;
    color: #2ecc71;
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.3s ease;
}

.btn-add-cart.added::after {
    opacity: 1;
    transform: scale(1);
}

.btn-add-cart.added i {
    opacity: 0;
}

/* other css */
/* .product-card{
    z-index: -1 !important;
}
.col-sm-6{
    z-index: -1 !important;
} */
