﻿/* PAGE BANNER */
.banner {
    background: radial-gradient(circle at 85% 20%, #123a7a 0%, #081a3f 45%, #01112a 78%);
    padding: 56px 0 46px;
    color: #fff;
}

.crumb {
    color: var(--gray-light);
    font-size: 13px;
    margin-bottom: 14px;
}

    .crumb a {
        color: var(--gray-light);
    }

        .crumb a:hover {
            color: #fff;
        }

    .crumb span {
        color: var(--blue-light);
    }

.banner h1 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 10px;
}

.banner p {
    color: var(--gray-light);
    font-size: 14px;
    max-width: 520px;
}

/* SHOP LAYOUT */
.shop {
    padding: 56px 0 96px;
    background: var(--paper);
}

    .shop .wrap {
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 34px;
        align-items: start;
    }

/* SIDEBAR */
.side-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
}

    .side-box h4 {
        font-size: 14.5px;
        margin-bottom: 16px;
        color: var(--navy);
    }

.cat-list li {
    margin-bottom: 4px;
}

.cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--ink);
    transition: .15s;
}

    .cat-list a:hover {
        background: var(--paper);
    }

    .cat-list a.active {
        background: var(--blue);
        color: #fff;
    }

        .cat-list a.active span.count {
            color: #fff;
            opacity: .8;
        }

.cat-list span.count {
    color: var(--gray);
    font-size: 12px;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

    .price-range input[type=range] {
        width: 100%;
        accent-color: var(--blue);
    }

.price-vals {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .tag-cloud span {
        padding: 7px 13px;
        border-radius: 100px;
        font-size: 12px;
        background: var(--paper);
        color: var(--gray);
        border: 1px solid var(--line);
        cursor: pointer;
    }

        .tag-cloud span:hover {
            border-color: var(--blue);
            color: var(--blue);
        }

.promo-box {
    background: linear-gradient(135deg, #123a7a, #081a3f);
    border-radius: 14px;
    padding: 26px 20px;
    color: #fff;
    text-align: center;
}

    .promo-box .ic {
        width: 44px;
        height: 44px;
        margin: 0 auto 14px;
        border-radius: 12px;
        background: rgba(63,139,255,.18);
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .promo-box .ic svg {
            width: 22px;
            height: 22px;
            stroke: var(--blue-light);
        }

    .promo-box h4 {
        color: #fff;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .promo-box p {
        color: var(--gray-light);
        font-size: 12.5px;
        margin-bottom: 16px;
    }

/* TOOLBAR */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 14px;
}

.result-count {
    font-size: 13.5px;
    color: var(--gray);
}

    .result-count b {
        color: var(--navy);
    }

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 9px 16px;
    min-width: 220px;
}

    .search-box svg {
        width: 15px;
        height: 15px;
        stroke: var(--gray);
        flex-shrink: 0;
    }

    .search-box input {
        border: none;
        outline: none;
        font-size: 13px;
        width: 100%;
        background: transparent;
        color: var(--ink);
    }

select.sort {
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 10px 16px;
    font-size: 13px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-family: inherit;
}

/* PRODUCT GRID */
.shop .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 44px;
}
.p-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden; /* ← این کافیه، گوشه‌های thumb رو خودش می‌بره */
    transition: .25s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.shop-thumb .p-card {
    padding: 0;
}

    .p-card .thumb {
        width: 100%;
        aspect-ratio: 16/9;
        border-radius: 0; /* ← هیچ border-radius نداشته باشه */
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--paper);
    }
        .p-card .thumb svg {
            width: 80px;
            height: 80px;
        }

    .p-card .body {
        padding: 16px 20px 22px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .p-card .foot-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: auto;
        align-items:center;
    }

        .p-card .foot-row .pill {
            width: 100%;
            justify-content: center;
        }

/* PAGINATION */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .pagination a {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        color: var(--ink);
        border: 1px solid var(--line);
        background: #fff;
    }

        .pagination a.active {
            background: var(--blue);
            color: #fff;
            border-color: var(--blue);
        }

        .pagination a:hover:not(.active) {
            border-color: var(--blue);
            color: var(--blue);
        }

    .pagination .dots {
        color: var(--gray);
        padding: 0 4px;
    }

.contact-price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 100px;
    text-decoration: none;
    transition: .2s;
}

    .contact-price:hover {
        filter: brightness(1.1);
        color: #fff;
    }

@media (max-width: 980px) {
    .shop .wrap {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
