﻿/* صفحهٔ همه فرش‌ها */
.shop-page {
    padding: 28px 0 64px;
    direction: rtl;
    color: #181818;
}

/* مسیر صفحه */
.shop-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    color: #666666;
    font-size: 13px;
    line-height: 1.8;
}

    .shop-breadcrumb a {
        color: inherit;
        text-decoration: none;
    }

        .shop-breadcrumb a:hover {
            color: #107047;
        }

        .shop-breadcrumb a:focus-visible {
            outline: 2px solid #107047;
            outline-offset: 4px;
        }

/* عنوان صفحه */
.shop-heading {
    margin-bottom: 28px;
}

    .shop-heading h1 {
        margin: 0 0 10px;
        font-size: 30px;
        font-weight: 700;
        line-height: 1.6;
    }

    .shop-heading p {
        margin: 0;
        color: #666666;
        font-size: 15px;
        line-height: 2;
    }

/* نوار ابزار */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    margin-bottom: 24px;
    padding: 10px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.shop-result-count {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #666666;
    font-size: 14px;
}

    .shop-result-count strong {
        color: #181818;
        font-weight: 500;
    }

/* با فعال شدن جاوااسکریپت، کنترل نمایش در موبایل ظاهر می‌شود. */
.shop-view-controls {
    display: none;
    align-items: center;
    gap: 8px;
}

.shop-view-label {
    margin-inline-end: 4px;
    color: #666666;
    font-size: 13px;
}

.shop-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #ffffff;
    color: #666666;
    cursor: pointer;
    touch-action: manipulation;
}

    .shop-view-button svg {
        display: block;
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.6;
    }

    .shop-view-button[aria-pressed="true"] {
        border-color: #107047;
        background: #eff8f3;
        color: #107047;
    }

    .shop-view-button:focus-visible {
        outline: 2px solid #107047;
        outline-offset: 3px;
    }

/* دسکتاپ: سه ستون */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 36px 24px;
}

/* تبلت: دو ستون */
@media (min-width: 769px) and (max-width: 991px) {
    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* موبایل: یک ستون به‌صورت پیش‌فرض */
@media (max-width: 768px) {
    .shop-page {
        padding: 20px 0 44px;
    }

    .shop-breadcrumb {
        margin-bottom: 18px;
        font-size: 12px;
    }

    .shop-heading {
        margin-bottom: 22px;
    }

        .shop-heading h1 {
            font-size: 25px;
        }

        .shop-heading p {
            font-size: 13px;
        }

    .shop-toolbar {
        margin-bottom: 20px;
    }

    .shop-page[data-layout-ready="true"] .shop-view-controls {
        display: flex;
    }

    .shop-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

        .shop-grid[data-mobile-columns="2"] {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 26px 12px;
        }
}
