﻿
.main-container {
    max-width: 1400px;
}

.box {
    border: 1px solid #eef2f7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(15,23,42,.06);
}

/* Sidebar */
.filter-shell {
    padding: 14px;
    position: sticky;
    top: 12px;
}

.filter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 12px;
}

.filter-title .t {
    display: block;
    font-weight: 950;
    color: #0f172a;
    font-size: 15px;
}

.filter-title .s {
    display: block;
    color: #64748b;
    font-weight: 800;
    font-size: 12px;
    margin-top: 4px;
}

.btn-reset {
    border-radius: 12px;
    font-weight: 900;
}

.filter-block {
    padding: 8px 0;
}

.pos-rel {
    position: relative;
}

.mini-hint {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
}

.input-soft {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fbfdff;
    font-weight: 800;
    padding: 10px 12px;
}

    .input-soft:focus {
        background: #fff;
        border-color: #cbd5e1;
        box-shadow: 0 0 0 .15rem rgba(15,23,42,.06);
    }

.clear-x {
    position: absolute;
    right: 10px;
    top: 12px;
    cursor: pointer;
    font-size: 18px;
    color: #94a3b8;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .clear-x:hover {
        background: #f1f5f9;
        color: #0f172a;
    }

.quickres {
    position: absolute;
    z-index: 1000;
    top: 100%;
    width: 100%;
    max-height: 320px;
    overflow: auto;
    border-radius: 14px;
    margin-top: 6px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 50px rgba(15,23,42,.10);
}

.input-icon {
    position: relative;
}

    .input-icon .icon {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        font-weight: 900;
        color: #64748b;
        background: #f1f5f9;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        padding: 2px 8px;
    }

    .input-icon .form-control {
        padding-right: 52px;
    }

.chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
    transition: .15s ease;
    white-space: nowrap;
}

    .chip:hover {
        background: #eef2f7;
    }

.btn-apply {
    border-radius: 14px;
    font-weight: 950;
    background: #0f172a;
    border-color: #0f172a;
}

    .btn-apply:hover {
        background: #0b1220;
        border-color: #0b1220;
    }

.btn-all {
    border-radius: 14px;
    font-weight: 950;
}

/* Accordion */
.filter-card {
    border: 1px solid #eef2f7;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 10px;
}

    .filter-card .card-header {
        background: #fbfdff;
        border-bottom: 1px solid #eef2f7;
        padding: 0;
    }

.acc-btn {
    width: 100%;
    padding: 12px 12px;
    font-weight: 950;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    background: transparent;
}

.filter-card .card-body {
    padding: 12px;
    max-height: 280px;
    overflow: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: .15s ease;
    background: #fff;
}

    .feature-item:hover {
        background: #f8fafc;
        border-color: #e2e8f0;
    }

.feature-check {
    width: 16px;
    height: 16px;
}

.feature-text {
    font-weight: 800;
    color: #0f172a;
}

/* Topbar */
.topbar-shell {
    padding: 12px 14px;
}

.topbar-title {
    font-weight: 950;
    color: #0f172a;
}

.topbar-sub {
    color: #64748b;
    font-weight: 800;
    font-size: 12px;
    margin-top: 6px;
}

.badge-soft {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 900;
}

.sort-row {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.chip-sort {
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
    font-size: 12px;
    text-decoration: none;
    transition: .15s ease;
    white-space: nowrap;
}

    .chip-sort:hover {
        background: #eef2f7;
    }

    .chip-sort.active {
        background: #0f172a;
        border-color: #0f172a;
        color: #fff;
    }

/* Product card (p-card) */
.p-card {
    position: relative;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(15,23,42,.06);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .p-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 55px rgba(15,23,42,.10);
    }

.p-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    pointer-events: none;
}

.p-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

.p-in {
    background: #16a34a;
}

.p-out {
    background: #94a3b8;
}

.p-img {
    display: block;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

    .p-img img {
        width: 100%;
        height: 230px;
        object-fit: cover;
        display: block;
        transition: transform .25s ease;
    }

.p-card:hover .p-img img {
    transform: scale(1.03);
}

.p-body {
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* ستاره‌ها از هر چیزی جدا */
.p-rating {
    display: flex;
    justify-content: flex-start;
    min-height: 18px;
    margin-top: 2px;
}

.p-title {
    color: #0f172a;
    font-weight: 950;
    text-decoration: none;
    line-height: 1.5;
    height: 46px;
    overflow: hidden;
    display: block;
}

    .p-title:hover {
        color: #111827;
    }

.p-brand {
    color: #64748b;
    font-weight: 800;
    font-size: 12px;
    margin-top: -2px;
}

.p-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px dashed #eef2f7;
}

    .p-price .lbl {
        color: #64748b;
        font-weight: 900;
        font-size: 12px;
    }

    .p-price .val {
        color: #0f172a;
        font-weight: 950;
        font-size: 18px;
    }

    .p-price .cur {
        color: #64748b;
        font-weight: 900;
        font-size: 12px;
    }

.p-actions {
    margin-top: 10px;
}

/* Empty state */
.empty-state {
    border: 1px dashed #e5e7eb;
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    background: #fff;
}

.empty-title {
    font-weight: 950;
    font-size: 18px;
    color: #0f172a;
}

.empty-sub {
    color: #64748b;
    margin-top: 6px;
    font-weight: 800;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.pagination-custom {
    list-style: none;
    display: flex;
    gap: 6px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

    .pagination-custom li a, .pagination-custom li span {
        display: block;
        padding: 8px 14px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        color: #0f172a;
        font-weight: 900;
        text-decoration: none;
        background: #fff;
        transition: .15s;
    }

        .pagination-custom li a:hover {
            background: #0f172a;
            color: #fff;
            border-color: #0f172a;
        }

    .pagination-custom li.active span {
        background: #0f172a;
        color: #fff;
        border-color: #0f172a;
    }

    .pagination-custom li.disabled span {
        color: #94a3b8;
        background: #f8fafc;
    }

@media (max-width: 991.98px) {
    .filter-shell {
        position: relative;
        top: auto;
    }

    .sort-row {
        justify-content: flex-start;
    }
}
/* Add to cart controls (Desktop-safe) */
.addcart {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
}

.qty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: .15s ease;
}

    .qty-btn:hover {
        background: #eef2f7;
    }

    .qty-btn:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

.qty-input {
    width: 54px;
    height: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    font-weight: 900;
    color: #0f172a;
    outline: none;
}

    .qty-input:focus {
        box-shadow: 0 0 0 .15rem rgba(15,23,42,.06);
    }

.btn-add {
    flex: 1;
    height: 38px;
    border-radius: 14px;
    border: 1px solid #0f172a;
    background: #0f172a;
    color: #fff;
    font-weight: 950;
    cursor: pointer;
    transition: .15s ease;
    white-space: nowrap;
}

    .btn-add:hover {
        background: #0b1220;
        border-color: #0b1220;
    }

    .btn-add:disabled {
        background: #94a3b8;
        border-color: #94a3b8;
        cursor: not-allowed;
    }

/* Mobile wrap */
@media(max-width: 420px) {
    .addcart {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-add {
        width: 100%;
    }

    .qty {
        justify-content: center;
    }
}

