.elementor-366 .elementor-element.elementor-element-a159348{--display:flex;}/* Start custom CSS for shortcode, class: .elementor-element-4f4d3e3 *//* ==========================================================
   Harmonic Music - Product Archive Kit (Fixed & Polished)
   Scope: .hm-archive-wrap
   Palette Applied: #E2B37D, #171717, #F4F1EA, #87A58A
========================================================== */

.hm-archive-wrap {
    --hm-yellow: #E2B37D;
    --hm-yellow-hover: #d1a26c;
    --hm-yellow-soft: rgba(226, 179, 125, 0.10);
    --hm-dark: #171717;
    --hm-muted: #87A58A;
    --hm-border: rgba(135, 165, 138, 0.22);
    --hm-bg-card: #ffffff;
    --hm-bg-page: #F4F1EA;
    --hm-radius: 14px;
    --hm-radius-sm: 8px;
    --hm-shadow: 0 4px 16px rgba(23, 23, 23, 0.04);

    direction: rtl;
    font-family: "Peyda";
    color: var(--hm-dark);
    line-height: 1.6;
    padding: 16px 0 60px;
}

.hm-archive-wrap *,
.hm-archive-wrap *::before,
.hm-archive-wrap *::after {
    box-sizing: border-box;
}

.hm-archive-container {
    width: min(1200px, calc(100% - 24px));
    margin-inline: auto;
}

/* ۱. بردکرامب */
.hm-archive-wrap .hm-pdp-breadcrumb {
    display: block;
    margin: 0 0 16px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid var(--hm-border);
    border-right: 3px solid var(--hm-yellow);
    border-radius: 9px;
    color: #87A58A;
    font-size: 12.5px;
    line-height: 1.8;
}

.hm-archive-wrap .hm-pdp-breadcrumb .woocommerce-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 8px;
    margin: 0 !important;
    padding: 0 !important;
    color: #87A58A !important;
}

.hm-archive-wrap .hm-pdp-breadcrumb a {
    color: #87A58A !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.hm-archive-wrap .hm-pdp-breadcrumb a:hover {
    color: var(--hm-yellow-hover) !important;
    text-decoration: underline !important;
}

.hm-archive-wrap .hm-pdp-breadcrumb .hm-sep {
    color: #E2B37D !important;
    font-size: 13px;
    font-weight: 700;
}

.hm-archive-wrap .hm-pdp-breadcrumb > .woocommerce-breadcrumb > :last-child,
.hm-archive-wrap .hm-pdp-breadcrumb .woocommerce-breadcrumb > span:last-child {
    color: var(--hm-dark) !important;
    font-weight: 800;
}

/* ۲. هدر دسته‌بندی و چیپ‌های ساب‌کتگوری */
.hm-archive-header {
    background: #ffffff;
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--hm-shadow);
}

.hm-archive-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.hm-title-accent {
    width: 4px;
    height: 18px;
    background: var(--hm-yellow);
    border-radius: 2px;
}

.hm-archive-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--hm-dark);
    margin: 0;
}

.hm-archive-desc {
    font-size: 13px;
    color: var(--hm-muted);
    line-height: 1.8;
    margin-bottom: 14px;
}
.hm-archive-desc p:last-child {
    margin-bottom: 0;
}

/* چیپ‌های دسته‌بندی فرعی */
.hm-subcats-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--hm-border);
}

.hm-subcat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--hm-bg-page);
    border: 1px solid var(--hm-border);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--hm-dark);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.hm-subcat-chip:hover {
    background: var(--hm-yellow-soft);
    border-color: var(--hm-yellow);
    color: #8a6a35;
}

.hm-chip-count {
    color: var(--hm-muted);
    font-size: 11px;
    font-weight: 500;
}

/* ۳. نوار ابزار و مرتب‌سازی */
.hm-archive-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius-sm);
    padding: 10px 16px;
    margin-bottom: 16px;
}

.hm-toolbar-count {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--hm-muted);
}

.hm-orderby-select {
    border: 1px solid var(--hm-border);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-family: inherit;
    color: var(--hm-dark);
    background-color: var(--hm-bg-page);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.hm-orderby-select:focus {
    border-color: var(--hm-yellow);
}

/* ۴. گرید کارت‌های محصول */
.hm-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hm-product-card {
    background: var(--hm-bg-card);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: var(--hm-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hm-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(23, 23, 23, 0.08);
    border-color: #E2B37D;
}

/* برچسب‌های وضعیت محصول */
.hm-badge-discount,
.hm-badge-stock-out {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
    pointer-events: none;
}

.hm-badge-discount {
    background: #e63946;
    color: #ffffff;
}

.hm-badge-stock-out {
    background: #646b73;
    color: #ffffff;
}

.hm-product-card.is-out-of-stock .hm-card-thumb img {
    opacity: 0.65;
    filter: grayscale(50%);
}

/* تصویر با نسبت ۱ در ۱ */
.hm-card-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: var(--hm-bg-page);
    border-radius: var(--hm-radius-sm);
    overflow: hidden;
    padding: 8px;
    margin-bottom: 12px;
}

.hm-card-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.hm-product-card:hover .hm-card-thumb img {
    transform: scale(1.03);
}

/* متن و عنوان کارت */
.hm-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hm-card-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 10px;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hm-card-title a {
    color: var(--hm-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.hm-card-title a:hover {
    color: #8a6a35;
}

/* قیمت محصول */
.hm-card-price {
    font-size: 14.5px;
    font-weight: 900;
    color: var(--hm-dark);
    margin-top: auto;
    margin-bottom: 12px;
    min-height: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.hm-card-price del {
    color: var(--hm-muted);
    font-size: 12px;
    font-weight: 500;
}

.hm-card-price ins {
    text-decoration: none;
    color: var(--hm-dark);
}

/* دکمه‌های اکشن ووکامرس */
.hm-card-actions {
    position: relative;
    margin-top: 4px;
}

.hm-card-actions .button,
.hm-card-actions a.button {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 10px !important;
    background: var(--hm-bg-page) !important;
    border: 1px solid var(--hm-border) !important;
    border-radius: var(--hm-radius-sm) !important;
    color: var(--hm-dark) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    line-height: normal !important;
}

.hm-card-actions .button:hover {
    background: var(--hm-yellow) !important;
    border-color: var(--hm-yellow) !important;
    color: var(--hm-dark) !important;
    box-shadow: 0 3px 10px rgba(226, 179, 125, 0.25);
}

/* لینک مشاهده سبد خرید پس از افزودن ایجکس */
.hm-card-actions .added_to_cart {
    display: block !important;
    text-align: center !important;
    margin-top: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #87A58A !important;
    text-decoration: underline !important;
}

/* لودینگ ایجکس دکمه */
.hm-card-actions .button.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ۵. صفحه‌بندی (Pagination) */
.hm-pagination-nav {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.hm-pagination-list {
    display: inline-flex;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hm-pagination-list .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--hm-border);
    font-size: 13px;
    font-weight: 700;
    color: var(--hm-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.hm-pagination-list .page-numbers.current,
.hm-pagination-list a.page-numbers:hover {
    background: var(--hm-yellow);
    border-color: var(--hm-yellow);
    color: var(--hm-dark);
}

/* پیام خالی بودن دسته‌بندی */
.hm-empty-archive {
    background: #ffffff;
    border: 1px dashed var(--hm-border);
    border-radius: var(--hm-radius);
    padding: 40px 20px;
    text-align: center;
    color: var(--hm-muted);
    font-size: 14px;
}

/* ==========================================================
   ریسپانسیو موبایل و تبلت
========================================================== */
@media (max-width: 992px) {
    .hm-archive-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 650px) {
    .hm-archive-wrap {
        padding: 8px 0 40px;
    }

    .hm-archive-container {
        width: 100%;
        padding-inline: 10px;
    }

    .hm-archive-header {
        padding: 14px;
        margin-bottom: 12px;
    }

    .hm-archive-title {
        font-size: 16px;
    }

    .hm-archive-desc {
        font-size: 11.5px;
    }

    /* نوار اسکرول افقی نرم برای چیپ‌های زیردسته در موبایل */
    .hm-subcats-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .hm-subcats-strip::-webkit-scrollbar {
        display: none;
    }

    .hm-archive-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 12px;
    }

    .hm-orderby-select {
        width: 100%;
    }

    /* گرید ۲ ستونه اختصاصی موبایل */
    .hm-archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .hm-product-card {
        padding: 8px;
        border-radius: 10px;
    }

    .hm-card-thumb {
        padding: 4px;
        margin-bottom: 8px;
    }

    .hm-card-title {
        font-size: 11.5px;
        height: 35px;
        margin-bottom: 6px;
    }

    .hm-card-price {
        font-size: 12.5px;
        margin-bottom: 8px;
    }

    .hm-card-actions .button,
    .hm-card-actions a.button {
        padding: 6px 8px !important;
        font-size: 11px !important;
    }

    .hm-badge-discount,
    .hm-badge-stock-out {
        font-size: 9px;
        padding: 2px 6px;
        top: 6px;
        right: 6px;
    }
}/* End custom CSS */