@font-face { font-family: "IRANYekanX"; src: url("../fonts/IRANYekanX-Thin.woff") format("woff"); font-style: normal; font-weight: 100; font-display: swap; }
@font-face { font-family: "IRANYekanX"; src: url("../fonts/IRANYekanX-UltraLight.woff") format("woff"); font-style: normal; font-weight: 200; font-display: swap; }
@font-face { font-family: "IRANYekanX"; src: url("../fonts/IRANYekanX-Light.woff") format("woff"); font-style: normal; font-weight: 300; font-display: swap; }
@font-face { font-family: "IRANYekanX"; src: url("../fonts/IRANYekanX-Regular.woff") format("woff"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "IRANYekanX"; src: url("../fonts/IRANYekanX-Medium.woff") format("woff"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "IRANYekanX"; src: url("../fonts/IRANYekanX-DemiBold.woff") format("woff"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "IRANYekanX"; src: url("../fonts/IRANYekanX-Bold.woff") format("woff"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "IRANYekanX"; src: url("../fonts/IRANYekanX-ExtraBold.woff") format("woff"); font-style: normal; font-weight: 800; font-display: swap; }
@font-face { font-family: "IRANYekanX"; src: url("../fonts/IRANYekanX-Black.woff") format("woff"); font-style: normal; font-weight: 900; font-display: swap; }

:root {
    --eh-primary: #242f9b;
    --eh-primary-dark: #171f63;
    --eh-accent: #f0bb40;
    --eh-accent-dark: #f43904;
    --eh-ink: #1c1c25;
    --eh-muted: #717171;
    --eh-line: #e9ebef;
    --eh-surface: #f7f8fa;
}

.estehkam-products, .estehkam-products * {
    font-family: "IRANYekanX", Tahoma, sans-serif !important;
}

.estehkam-products {
    background: var(--eh-surface);
    color: var(--eh-ink);
    overflow-x: hidden;
}

.estehkam-products .flex-1 { min-width: 0; }

.eh-p-heading {
    margin: 22px 0 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--eh-ink);
}

.eh-category-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 24px 0 28px;
    padding: 25px 28px;
    border: 1px solid rgba(36, 47, 155, .08);
    border-radius: 22px;
    background:
        radial-gradient(circle at 8% 20%, rgba(240, 187, 64, .18), transparent 30%),
        linear-gradient(135deg, #fff, #f5f7ff);
    box-shadow: 0 14px 38px rgba(20, 31, 83, .06);
}

.eh-category-intro > div > span {
    display: block;
    margin-bottom: 6px;
    color: var(--eh-accent-dark);
    font-size: 12px;
    font-weight: 800;
}

.eh-category-intro h1 {
    margin: 0 0 8px;
    color: var(--eh-primary-dark);
    font-size: clamp(22px, 2.4vw, 34px);
    font-weight: 900;
}

.eh-category-intro p,
.eh-category-intro__description {
    margin: 0;
    color: var(--eh-muted);
    font-size: 14px;
    line-height: 2;
}

.eh-category-intro__description > :first-child { margin-top: 0; }
.eh-category-intro__description > :last-child { margin-bottom: 0; }

.eh-category-intro > a {
    display: inline-flex;
    min-width: max-content;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 13px;
    background: var(--eh-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(36, 47, 155, .18);
}

/* Filters panel */
.estehkam-products .panel-side {
    min-width: 306px !important;
    max-width: 306px !important;
    padding: 20px 22px !important;
    border: 0 !important;
    position: sticky;
    top: 170px;
    border: 1px solid rgba(36,47,155,.08) !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, #fff, #fbfcff) !important;
    box-shadow: 0 16px 42px rgba(20,31,83,.07);
}

.estehkam-products .panel-side > div:first-child {
    margin: -20px -22px 6px;
    padding: 18px 22px 14px !important;
    border-color: var(--eh-line) !important;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(135deg, #f1f3ff, #fff9ec);
}

.estehkam-products .panel-side > div:first-child p:first-child {
    font-size: 16px !important;
    font-weight: 700 !important;
}

.estehkam-products .panel-side > div:first-child p:last-child {
    color: var(--eh-accent-dark) !important;
    font-weight: 700 !important;
}

.eh-filter-item {
    border-bottom: 1px solid var(--eh-line);
}

.eh-filter-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 53px;
    padding: 15px 3px;
    cursor: pointer;
}

.eh-filter-item__header p {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--eh-ink);
}

.eh-filter-item__chevron {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--eh-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

.eh-filter-item.is-open .eh-filter-item__chevron {
    transform: rotate(180deg);
}

.eh-filter-item__body {
    padding-bottom: 16px;
}

.eh-filter-search {
    position: relative;
    margin-bottom: 10px;
}

.eh-filter-search input {
    width: 100%;
    height: 42px;
    padding: 0 38px 0 12px;
    border: 1px solid var(--eh-line);
    border-radius: 10px;
    background: var(--eh-surface);
    font-size: 13px;
    color: var(--eh-ink);
}

.eh-filter-search input:focus {
    outline: 0;
    border-color: var(--eh-primary);
    background: #fff;
}

.eh-filter-search svg {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--eh-muted);
    stroke-width: 2;
    transform: translateY(-50%);
}

.eh-filter-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eh-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
}

.eh-filter-option:hover {
    border-color: rgba(36,47,155,.08);
    background: #f5f7ff;
}

.eh-filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--eh-primary);
    border-radius: 5px;
    cursor: pointer;
}

.eh-filter-option label {
    flex: 1;
    font-size: 13px;
    color: var(--eh-ink);
    cursor: pointer;
}

.eh-filter-loadmore {
    display: block;
    margin: 10px auto 0;
    padding: 7px 18px;
    border: 1px solid var(--eh-line);
    border-radius: 20px;
    background: #fff;
    color: var(--eh-primary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.eh-price-range {
    padding-top: 6px;
}

.estehkam-products .panel-side [class*="range-slider"],
.estehkam-products .panel-side input[type="range"] {
    accent-color: var(--eh-primary) !important;
}

/* Toolbar */
.eh-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    padding: 11px 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 5px rgba(0,0,0,.03);
}

.eh-sort-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.eh-sort-tabs button {
    padding: 7px 14px;
    border: 1px solid var(--eh-line);
    border-radius: 20px;
    background: #fff;
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: .15s ease;
    white-space: nowrap;
}

.eh-sort-tabs button.is-active {
    border-color: var(--eh-primary);
    background: var(--eh-primary);
    color: #fff;
}

.eh-toolbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.eh-limit-select {
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--eh-line);
    border-radius: 10px;
    background: #fff;
    color: var(--eh-ink);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.eh-mode-switch {
    display: flex;
    gap: 6px;
}

.eh-mode-switch button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--eh-line);
    border-radius: 9px;
    color: var(--eh-muted);
    cursor: pointer;
    background: #fff;
}

.eh-mode-switch button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eh-mode-switch button.is-active {
    border-color: var(--eh-primary);
    background: var(--eh-primary);
    color: #fff;
}

/* Product grid + card */
.estehkam-products .eh-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--eh-line);
    border-radius: 15px;
    background: #fff;
}

.estehkam-products .eh-p-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border-left: 1px solid var(--eh-line);
    border-bottom: 1px solid var(--eh-line);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    transition: box-shadow .2s ease;
}

.estehkam-products .eh-p-card:hover {
    z-index: 1;
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(36,47,155,.18), 0 10px 26px rgba(18,39,59,.08);
}

.estehkam-products .eh-p-card__image {
    position: relative;
    display: grid;
    height: 190px;
    place-items: center;
    padding: 12px 16px 6px;
    background: #fff;
    overflow: hidden;
}

.estehkam-products .eh-p-card__image img {
    max-width: 88%;
    max-height: 88%;
    -o-object-fit: contain;
    object-fit: contain;
}

.estehkam-products .eh-p-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    padding: 3px 10px;
    border-radius: 12px 12px 12px 4px;
    background: var(--eh-red, var(--eh-accent-dark));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 5px 10px rgba(244,57,4,.3);
}

.estehkam-products .eh-p-card__wish {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--eh-line);
    border-radius: 50%;
    background: #fff;
    font-size: 15px;
    color: #81909d;
    cursor: pointer;
}

.estehkam-products .eh-p-card__body {
    padding: 9px 13px 13px;
}

.estehkam-products .eh-p-card__name {
    min-height: 38px;
    margin: 0 0 5px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--eh-ink);
}

.estehkam-products .eh-p-card__price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--eh-ink);
}

.estehkam-products .eh-p-card__price del {
    color: #b8bcc4;
    font-size: 11px;
    font-weight: 500;
}

.estehkam-products .eh-p-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 7px;
}

.estehkam-products .eh-p-card__cart {
    display: flex;
    place-items: center;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    padding: 0 9px;
    border: 0;
    border-radius: 10px;
    background: var(--eh-primary);
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    transition: width .25s ease, background .2s ease, box-shadow .2s ease;
}

.estehkam-products .eh-p-card__cart svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.estehkam-products .eh-p-card__cart span {
    width: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 10px;
    font-weight: 800;
    transition: width .25s ease, opacity .2s ease;
}

.estehkam-products .eh-p-card:hover .eh-p-card__cart,
.estehkam-products .eh-p-card:focus-within .eh-p-card__cart {
    width: 142px;
    background: var(--eh-primary-dark);
    box-shadow: 0 9px 20px rgba(36, 47, 155, .2);
}

.estehkam-products .eh-p-card:hover .eh-p-card__cart span,
.estehkam-products .eh-p-card:focus-within .eh-p-card__cart span {
    width: auto;
    opacity: 1;
}

.estehkam-products .eh-p-card__cart:disabled {
    opacity: .5;
    cursor: default;
}

.estehkam-products .eh-empty {
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 80px 0;
    text-align: center;
    color: var(--eh-muted);
}

.estehkam-products .eh-search-results {
    padding-bottom: 96px;
}

@media (max-width: 1180px) {
    .estehkam-products .eh-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .estehkam-products .eh-p-card__image { height: 200px; }
}

@media (max-width: 900px) {
    .estehkam-products .eh-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .estehkam-products .panel-side { min-width: 100% !important; max-width: 100% !important; }
    .estehkam-products .eh-p-card__image { height: 185px; }
    .estehkam-products .eh-search-results { padding-bottom: 72px; }
    .eh-category-intro { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
    .eh-toolbar { flex-direction: column; align-items: stretch; }
    .eh-sort-tabs { overflow-x: auto; flex-wrap: nowrap; }
    .estehkam-products .eh-p-card__image { height: 155px; padding-inline: 8px; }
    .estehkam-products .eh-p-card__body { padding-inline: 10px; }
    .estehkam-products .eh-p-card__cart { width: 34px !important; padding: 0; }
    .estehkam-products .eh-p-card__cart span { display: none; }
    .estehkam-products .eh-search-results { padding-bottom: 52px; }
    .eh-category-intro { margin: 14px 0 20px; padding: 20px; border-radius: 18px; }
    .eh-category-intro > a { width: 100%; justify-content: center; }
}
.eh-p-card__missing {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 250px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    color: #526078;
    background:
        radial-gradient(circle at 15% 15%, rgba(248, 173, 26, .16), transparent 34%),
        linear-gradient(145deg, #fbfcff, #eef2fa);
}

.eh-p-card__missing svg {
    width: 58px;
    fill: none;
    stroke: #2937ad;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eh-p-card__missing span {
    max-width: 170px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
}

.eh-p-card__missing--list {
    min-width: 250px;
    min-height: 258px;
}
