/* Promotion page: scoped to keep the storefront layout independent. */
.promo-page { --promo-pink: #d90268; --promo-ink: #182b46; color: var(--promo-ink); padding-bottom: 36px; }
.promo-page [hidden] { display: none !important; }
.promo-page :is(button,input) { font-family: "IranYekan", Tahoma, sans-serif; }
.promo-page :is(a,button,input,summary):focus-visible { outline: 3px solid #d9026866; outline-offset: 3px; }
.promo-page-heading { margin-block: 24px 12px; }
.promo-page-heading__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; background: #d90268; border-radius: 20px; }
.promo-page-heading h1 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.6; color: #fff; }
.promo-page-heading__inner > span { flex-shrink: 0; padding: 8px 12px; border-radius: 24px; background: #fce7f0; color: #d90268; font-size: 12px; }
.promo-breadcrumb { display: flex; align-items: center; gap: 12px; padding-block: 12px 22px; color: #7b8190; font-size: 11px; }
.promo-page .promo-breadcrumb a { color: #5c6677; }
.promo-page .promo-layout { display: grid; grid-template-columns: 264px minmax(0,1fr); align-items: start; gap: 24px; margin: 0; }
.promo-page .promo-filters { display: flex; flex-direction: column; position: sticky; top: 20px; width: auto; max-width: none; max-height: calc(100vh - 40px); padding: 0; background: #fff; border: 1px solid #e8eaf0; border-radius: 18px; box-shadow: 0 4px 24px #182b4605; overflow: hidden; transform: none; visibility: visible; z-index: 1; }
.promo-page .promo-filters-head { flex-shrink: 0; display: flex; align-items: center; gap: 12px; margin: 0; padding: 18px 16px; border-bottom: 1px solid #eff0f4; font-size: 13px; font-weight: 700; }
.promo-page .promo-reset { margin-inline-start: auto; color: #d90268; font-size: 11px; font-weight: 400; }
.promo-page .promo-filters-close { display: none; width: 36px; height: 36px; padding: 0; border-radius: 10px; background: #f4f5f8; color: #5c6677; font-size: 24px; }
.promo-page .promo-search-form { display: flex; flex-direction: column; flex: 1; min-height: 0; max-height: none; margin: 0; }
.promo-filters-scroll { flex: 1; min-height: 0; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.promo-search-label { display: block; margin-bottom: 8px; font-size: 11px; color: #687386; }
.promo-page .promo-search-input, .promo-filter-search { display: block; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #e4e7ee; border-radius: 10px; background: #f8f9fb; font-size: 12px; color: #26354a; box-sizing: border-box; }
.promo-page .promo-search-input::placeholder, .promo-filter-search::placeholder { color: #9299a6; }
.promo-page .promo-sort-options { min-width: 0; margin: 20px 0; padding: 0; border: 0; }
.promo-page .promo-sort-options legend { float: none; width: auto; margin-bottom: 10px; font-size: 12px; font-weight: 700; }
.promo-sort-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.promo-sort-choice { display: block; position: relative; margin: 0; cursor: pointer; }
.promo-sort-choice input, .promo-filter-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.promo-sort-choice span { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 4px; border: 1px solid #e8eaf0; border-radius: 10px; font-size: 10px; color: #687386; background: #fff; transition: background .2s,border-color .2s; }
.promo-sort-choice input:checked + span { border-color: #eea2c4; background: #fff0f6; color: #b80155; font-weight: 700; }
.promo-sort-choice input:focus-visible + span, .promo-filter-choice input:focus-visible + span { outline: 2px solid #d90268; outline-offset: 2px; }
.promo-filter-section { padding-block: 16px; border-top: 1px solid #eff0f4; }
.promo-filter-section summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; list-style: none; color: #26354a; cursor: pointer; font-size: 12px; font-weight: 700; }
.promo-filter-section summary::-webkit-details-marker { display: none; }
.promo-filter-section summary > span { color: #9299a6; transition: transform .2s; }
.promo-filter-section[open] summary > span { transform: rotate(180deg); }
.promo-filter-search { margin-block: 12px 8px; min-height: 38px; font-size: 11px; }
.promo-filter-options { display: flex; flex-direction: column; gap: 3px; max-height: 184px; padding-inline-end: 5px; overflow-y: auto; overscroll-behavior: contain; }
.promo-filter-choice { display: block; position: relative; margin: 0; cursor: pointer; }
.promo-page .promo-filter-choice--all { width: 100%; padding: 0; border: 0; background: transparent; text-align: right; font: inherit; }
.promo-filter-choice span { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px; border-radius: 9px; color: #5c6677; font-size: 11px; line-height: 1.8; }
.promo-filter-choice span::before { content: ''; width: 15px; height: 15px; flex: 0 0 15px; border: 1px solid #cbd0da; border-radius: 5px; background: #fff; }
.promo-filter-choice--child { margin-inline-start: 16px; }
.promo-filter-choice:hover span { background: #f6f7fa; }
.promo-filter-choice input:checked + span { color: #b80155; background: #fff0f6; }
.promo-filter-choice input:checked + span::before { border-color: #d90268; background: #d90268; box-shadow: inset 0 0 0 3px #fff; }
.promo-filter-choice--all[aria-pressed="true"] span { color: #b80155; background: #fff0f6; }
.promo-filter-choice--all[aria-pressed="true"] span::before { border-color: #d90268; background: #d90268; box-shadow: inset 0 0 0 3px #fff; }
.promo-filter-no-match { margin: 12px 4px 0; color: #9299a6; font-size: 11px; }
.promo-page :is(.promo-filter-options,.promo-filters-scroll) { scrollbar-width: thin; scrollbar-color: #cbd0da transparent; }
.promo-page :is(.promo-filter-options,.promo-filters-scroll)::-webkit-scrollbar { width: 4px; }
.promo-page :is(.promo-filter-options,.promo-filters-scroll)::-webkit-scrollbar-thumb { background: #cbd0da; border-radius: 8px; }
.promo-page :is(.promo-filter-options,.promo-filters-scroll)::-webkit-scrollbar-button { display: none; }
.promo-page :is(.promo-filter-options,.promo-filters-scroll)::-webkit-scrollbar-track { background: transparent; }
.promo-filter-footer { display: none; flex-shrink: 0; padding: 12px 16px; border-top: 1px solid #eff0f4; background: #fff; }
.promo-apply { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 10px; border-radius: 12px; background: #d90268; color: #fff; font-size: 13px; cursor: pointer; transition: transform .18s,background .18s,box-shadow .18s; }
.promo-apply:hover { transform: translateY(-1px); background: #bd0059; box-shadow: 0 4px 12px #d9026826; }
.promo-apply:active { transform: scale(.97); }
.promo-apply__spinner { display: none; width: 14px; height: 14px; border: 2px solid #ffffff66; border-top-color: #fff; border-radius: 50%; }
.promo-apply.is-loading .promo-apply__spinner { display: inline-block; animation: promo-spin .7s linear infinite; }
.promo-content { min-width: 0; }
.promo-page .promo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 0 0 14px; border-bottom: 1px solid #eff0f4; background: #fff; }
.promo-toolbar > div { display: flex; align-items: center; gap: 10px; }
.promo-toolbar strong { color: #26354a; font-size: 13px; }
.promo-toolbar > div > span { color: #9299a6; font-size: 11px; }
.promo-page .promo-filter-toggle { display: none; }
.promo-product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.promo-product { min-width: 0; height: 100%; border: 1px solid #e8eaf0; border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .2s,box-shadow .2s,transform .2s; }
.promo-product:hover { border-color: #edb6cf; box-shadow: 0 8px 24px #182b4609; transform: translateY(-2px); }
.promo-page a.promo-product__link { display: flex; flex-direction: column; gap: 8px; width: 100%; height: 100%; padding: 12px; color: #282e43; text-decoration: none; }
.promo-product__media { display: flex; align-items: center; justify-content: center; flex-shrink: 0; height: 161px; }
.promo-product__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.promo-product__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; height: 48px; margin: 0; overflow: hidden; color: #282e43; font-size: 12px; font-weight: 500; line-height: 16px; }
/* row-reverse: price sits on the left, quick-view button on the right */
.promo-product__footer { display: flex; flex-direction: row-reverse; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.promo-product__pricing { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.promo-product__old { display: flex; align-items: center; gap: 2px; }
.promo-product__old del { color: #969fc0; font-size: 12px; font-weight: 500; line-height: 16px; white-space: nowrap; }
.promo-product__discount { display: inline-flex; align-items: center; justify-content: center; height: 18px; padding-inline: 4px; border-radius: 64px; background: #ff6976; color: #fff; font-size: 10px; font-weight: 600; line-height: 15px; }
.promo-product__price { display: flex; align-items: center; gap: 2px; }
.promo-product__price strong { color: #282e43; font-size: 14px; font-weight: 700; line-height: 24px; white-space: nowrap; }
.promo-product__price img { display: block; flex-shrink: 0; }
.promo-product__view { display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 8px; border-radius: 6px; background: #f4f5f9; }
.promo-product__view img { display: block; }
.promo-page .promo-filter-overlay { display: none; }
.promo-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-block: 28px 0; }
.promo-page .promo-pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 8px 12px; border: 1px solid #e8eaf0; border-radius: 10px; color: #26354a; font-size: 13px; }
.promo-page .promo-pagination a[aria-current="page"],.promo-page .promo-pagination a:hover { background: #d90268; border-color: #d90268; color: #fff; }
.promo-empty-state { padding: 64px 16px; text-align: center; border: 1px dashed #e4e7ee; border-radius: 16px; }
.promo-empty-state h2 { margin: 0 0 12px; color: #26354a; font-size: 18px; }
.promo-empty-state p { color: #9299a6; font-size: 13px; }
.promo-page .promo-empty-state a { margin-top: 20px; color: #d90268; font-size: 13px; }
@keyframes promo-spin { to { transform: rotate(360deg); } }
@media (max-width:1199px) and (min-width:992px) { .promo-page .promo-layout { grid-template-columns: 234px minmax(0,1fr); gap: 16px; } }
@media (max-width:991px) {
    .promo-page .promo-layout { grid-template-columns: minmax(0,1fr); }
    .promo-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .promo-page .promo-filters { position: fixed; top: 0; bottom: 0; right: 0; width: min(90vw,380px); max-height: none; height: 100dvh; border: 0; border-radius: 20px 0 0 20px; box-shadow: -8px 0 40px #182b4614; transform: translateX(102%); visibility: hidden; transition: transform .25s,visibility .25s; z-index: 1050; }
    .promo-page .promo-filters.open { transform: translateX(0); visibility: visible; }
    .promo-page .promo-filters-head { min-height: 68px; }
    .promo-page .promo-filters-close { display: block; }
    .promo-page .promo-search-form { height: auto; max-height: none; flex: 1; min-height: 0; }
    .promo-filters-scroll { flex: 1; min-height: 0; }
    .promo-filter-footer { display: block; padding-bottom: max(12px,env(safe-area-inset-bottom)); }
    .promo-page .promo-filter-overlay { position: fixed; inset: 0; background: #182b4666; backdrop-filter: blur(3px); z-index: 1049; }
    .promo-page .promo-filter-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 12px; border: 1px solid #e4e7ee; border-radius: 12px; background: #fff; color: #26354a; font-size: 11px; }
    .promo-page .promo-toolbar { position: sticky; top: 0; z-index: 2; padding-block: 10px; }
    .promo-toolbar > div { flex-direction: column; align-items: flex-start; gap: 3px; }
}
@media (max-width:767px) {
    .promo-page-heading { margin-top: 16px; }
    .promo-page-heading__inner { padding: 18px 14px; gap: 8px; border-radius: 16px; }
    .promo-page-heading h1 { font-size: 18px; }
    .promo-page-heading__inner > span { padding: 6px 8px; font-size: 10px; }
    .promo-breadcrumb { padding-block: 10px; font-size: 10px; }
    /* Mobile card: thumbnail beside the title, price row underneath */
    .promo-product-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
    .promo-page a.promo-product__link { display: grid; grid-template-columns: 72px minmax(0,1fr); grid-template-areas: "media title" "footer footer"; padding: 8px; }
    .promo-product__media { grid-area: media; width: 72px; height: 72px; }
    .promo-product__title { grid-area: title; -webkit-line-clamp: 2; height: 32px; }
    .promo-product__footer { grid-area: footer; }
}
@media (max-width:374px) { .promo-toolbar > div > span { display: none; } }
@media (prefers-reduced-motion:reduce) { .promo-page :is(.promo-apply,.promo-product,.promo-filters,.promo-sort-choice span,summary > span) { transition: none; } .promo-product:hover,.promo-apply:hover,.promo-apply:active { transform: none; } .promo-apply.is-loading .promo-apply__spinner { animation: none; } }

@font-face {
    font-family: "PromoYekanBakh";
    font-weight: 400;
    src: url("../../assets/fonts/iranyekanBack/woff2/YekanBakhFaNum-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "PromoYekanBakh";
    font-weight: 500;
    src: url("../../assets/fonts/iranyekanBack/woff2/YekanBakhFaNum-SemiBold.woff2") format("woff2");
}

@font-face {
    font-family: "PromoYekanBakh";
    font-weight: 700;
    src: url("../../assets/fonts/iranyekanBack/woff2/YekanBakhFaNum-Bold.woff2") format("woff2");
}

@media (max-width: 991.98px) {

    .promo-content {
        padding-inline: 0;
    }

    .promo-content .promo-title {
        margin: 12px 0 !important;
    }

    /* layout.css forces IranYekan !important on h4/span/div */
    .promo-content .promo-title h4,
    .promo-mtoolbar span,
    .promo-mtoolbar div,
    .promo-mtoolbar input {
        font-family: "PromoYekanBakh", "IranYekan", tahoma !important;
    }

    .promo-content .promo-title h4 {
        margin: 0;
        font-size: 14px;
        font-weight: 700;
        line-height: 24px;
        color: #282e43;
    }

    .promo-mtoolbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 12px;
        font-family: "PromoYekanBakh", "IranYekan", tahoma;
    }

    .promo-mtoolbar *,
    .promo-mtoolbar *::placeholder {
        box-sizing: border-box;
        font-family: inherit;
        letter-spacing: 0;
    }

    .promo-mtoolbar-search {
        flex: none;
        display: flex;
        align-items: center;
        gap: 12px;
        height: 40px;
        margin: 0;
        padding: 0 16px 0 12px;
        border: 1px solid #cacfdf;
        border-radius: 8px;
        background: #fff;
        overflow: hidden;
    }

    .promo-mtoolbar-search:focus-within {
        border-color: #969fc0;
    }

    .promo-mtoolbar-search-btn {
        display: flex;
        flex: none;
        width: 16px;
        height: 16px;
        margin: 0 0 0 -6px;
        padding: 0;
        border: 0;
        background: none;
        cursor: pointer;
    }

    .promo-mtoolbar-search-input {
        flex: 1;
        min-width: 0;
        height: 16px;
        padding: 0;
        border: 0;
        outline: 0;
        background: none;
        font-size: 12px;
        font-weight: 400;
        line-height: 16px;
        color: #2e354d;
    }

    .promo-mtoolbar-search-input::placeholder {
        color: #969fc0;
        opacity: 1;
    }

    .promo-mtoolbar-chips {
        display: flex;
        gap: 16px;
    }

    .promo-chip {
        position: relative;
        flex: 1 0 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 0;
        height: 32px;
        margin: 0;
        padding: 8px;
        border: 1px solid #e0e2ec;
        border-radius: 6px;
        background: #fff;
        font-size: 12px;
        line-height: 16px;
        color: #2e354d;
        cursor: pointer;
    }

    .promo-chip > img {
        display: block;
        flex: none;
    }

    .promo-chip > span {
        font-weight: 500;
        white-space: nowrap;
    }

    .promo-chip-select {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

    .promo-chip > .promo-chip-badge {
        position: absolute;
        top: -9px;
        left: -6px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 64px;
        background: #ff6976;
        font-size: 10px;
        font-weight: 700;
        line-height: 15px;
        color: #fff;
    }

    .promo-mtoolbar-count {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        line-height: 16px;
    }

    .promo-mtoolbar-count-label {
        font-weight: 400;
        color: #969fc0;
    }

    .promo-mtoolbar-count-value {
        font-weight: 700;
        color: #2e354d;
    }
}
