/* استخراج‌شده از archive-product.php — فقط در همان صفحه لود می‌شود (khaninejad_enqueue_assets) */
/* =========================================
   بازطراحی حرفه‌ای هدر فروشگاه و دسته‌بندی‌ها
========================================= */
.shop-page-header {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    margin: 20px 20px 25px 20px;
    padding: 20px;
    text-align: right;
    direction: rtl;
}

.shop-page-header .breadcrumb-container {
    padding: 0 0 15px 0 !important;
    margin: 0;
    font-size: 11.5px;
    color: #94a3b8;
    border-bottom: 1px dashed #e2e8f0;
}
.shop-page-header .breadcrumb-container nav {
    justify-content: flex-start !important;
}

.shop-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 20px 0 15px 0 !important;
    flex-wrap: wrap;
}

.shop-title {
    font-size: 20px !important;
    font-weight: 800;
    color: var(--khaninejad-text-dark, #1a1b1e);
    margin: 0 !important;
}

.shop-result-count {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.shop-header-bottom-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 5px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 !important;
    width: 100%;
    flex-wrap: wrap;
}

.shop-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.shop-ordering {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--khaninejad-text-dark, #1a1b1e);
}

.shop-ordering select {
    background: #f8fafc url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%2364748b" stroke-width="2"><path d="M6 9l6 6 6-6"/></svg>') no-repeat left 10px center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 30px 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    outline: none;
    font-family: inherit;
}

.shop-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--khaninejad-text-dark, #1a1b1e);
    font-size: 12px;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s;
}
.shop-filter-toggle:hover,
.shop-filter-toggle[aria-expanded="true"] {
    background: #05407b;
    color: #fff;
    border-color: #05407b;
}
.shop-filter-badge {
    background: #DD0A18;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 10px;
    padding: 1px 6px;
    line-height: 1.4;
}

.shop-clear-filters {
    font-size: 12px;
    color: #DD0A18;
    font-weight: 700;
    white-space: nowrap;
}

.shop-subcats-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 !important;
    scrollbar-width: none;
}
.shop-subcats-scroll::-webkit-scrollbar { display: none; }

.shop-subcat-chip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    white-space: nowrap;
    transition: all 0.3s;
}
.shop-subcat-chip:hover,
.shop-subcat-chip.is-active {
    border-color: #05407b;
    color: #05407b;
    background: rgba(0, 84, 251, 0.03);
}

.shop-filter-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}
.shop-filter-drawer.is-open { display: block; }

.shop-filter-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
}

.shop-filter-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(340px, 88vw);
    background: #fff;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    padding: 20px;
    overflow-y: auto;
    direction: rtl;
}

.shop-filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}
.shop-filter-panel-header h2 {
    font-size: 15px;
    font-weight: 800;
    color: var(--khaninejad-text-dark, #1a1b1e);
}
.shop-filter-close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: #64748b;
}

.shop-filter-section {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px dashed #e2e8f0;
}
.shop-filter-section:last-child { border-bottom: none; }
.shop-filter-section-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--khaninejad-text-dark, #1a1b1e);
    margin-bottom: 12px;
}

.shop-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--khaninejad-text-dark, #1a1b1e);
    cursor: pointer;
}
.shop-filter-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #05407b;
    cursor: pointer;
}

.shop-filter-price-widget .price_slider_wrapper { direction: ltr; }
.shop-filter-price-widget .price_label { direction: rtl; font-size: 12px; font-weight: 700; color: #64748b; margin-top: 12px; display: block; }
.shop-filter-price-widget .ui-slider { background: #e2e8f0; height: 4px; border-radius: 4px; position: relative; margin: 15px 4px; }
.shop-filter-price-widget .ui-slider .ui-slider-range { background: #05407b; position: absolute; height: 100%; border-radius: 4px; }
.shop-filter-price-widget .ui-slider .ui-slider-handle {
    position: absolute;
    width: 16px; height: 16px;
    background: #fff;
    border: 3px solid #05407b;
    border-radius: 50%;
    top: -6px;
    cursor: pointer;
    outline: none;
}
.shop-filter-price-widget button[type="submit"] {
    background: #05407b;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    margin-top: 10px;
}

/* -----------------------------------------
   کارت محصول: ستاره امتیاز + تنظیم ارتفاع تصویر محصول (کفش/پوشاک)
   (بج تخفیف اکنون کنار قیمت نمایش داده می‌شود، نه روی تصویر —
   استایل آن در style.css با کلاس‌های .old-price-row و .dk-discount-badge تعریف شده)
----------------------------------------- */
.product-rating-row {
    margin-bottom: 6px;
}
.product-rating-row .star-rating {
    font-size: 12px;
    color: #c9a15a;
}
.product-rating-row .star-rating span::before { color: #c9a15a; }

/* نسبت ابعاد مربعی، مناسب عکاسی محصول کفش و پوشاک */
.product-image {
    height: 260px !important;
    padding: 5px;
}
.product-image img {
    object-fit: cover !important;
    border-radius: 10px;
}

@media (min-width: 768px) {
    .shop-page-header {
        max-width: 1400px;
        margin: 30px auto;
        width: 90%;
        padding: 25px 30px;
    }
    .shop-title { font-size: 24px !important; }
    .shop-header-bottom-row { flex-direction: row; align-items: center; }
    .shop-toolbar {
        width: auto;
        border-left: 2px solid #e2e8f0;
        padding-left: 20px !important;
        margin-left: 10px;
    }
    .shop-subcats-scroll { flex-grow: 1; }
    .shop-filter-panel { width: 380px; }
    
    /* افزایش ارتفاع تصویر محصول در دسکتاپ */
    .product-image {
        height: 320px !important;
    }
}
