/* ==========================================================================
   سیستم طراحی مشترک — ویلچر پارسیان (صفحه نخست، فوتر، اجزای مشترک)
   همه‌ی قواعد زیر .hp هستند تا با main.css / bootstrap تداخل نکنند.
   صفحه محصول: product.css
   ========================================================================== */
.hp {
    --hp-navy: #002F5D;
    --hp-blue: #3085C3;
    --hp-mist: #E6F0F8;
    --hp-soft: #F4F8FB;
    --hp-line: #D9E5EF;
    --hp-text: #46586B;
    --hp-sale: #D92D4B;
    --hp-radius: 24px;
    --hp-gap: 16px;
    font-family: "IRANYekanX", sans-serif;
    font-weight: 500;
    color: var(--hp-text);
    line-height: 1.9;
    overflow-x: clip;
}

/* خنثی‌سازی قواعد عمومی main.css (h1…div { color }) فقط داخل .hp */
.hp :where(h1, h2, h3, p, div, a, b, strong, button, summary, li, span, s) {
    color: inherit;
}
/* main.css روی برخی المان‌ها (مثل article) فونت دیگری می‌گذارد؛ داخل .hp همه از IRANYekanX ارث می‌برند.
   آیکون‌ها (icomoon) با !important خودشان محفوظ‌اند. */
.hp :where(*) { font-family: inherit; }

.hp *, .hp *::before, .hp *::after { box-sizing: border-box; }
.hp img { display: block; max-width: 100%; height: auto; }
.hp ul { list-style: none; margin: 0; padding: 0; }
.hp p { margin: 0; }
.hp a { text-decoration: none; }

.hp :focus-visible {
    outline: 3px solid var(--hp-blue);
    outline-offset: 3px;
    border-radius: 8px;
}

.hp-wrap {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}

.hp-sec { padding-block: clamp(36px, 6vw, 72px); }
.hp-cta-sec { padding-bottom: 0; }

/* ---------- تایپوگرافی ---------- */
.hp .hp-h1 {
    margin: 0;
    font-size: clamp(2rem, 5.2vw, 3.6rem);
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--hp-navy);
}
.hp .hp-h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    font-weight: 800;
    line-height: 1.6;
    color: var(--hp-navy);
}
.hp .hp-h3 {
    margin: 0 0 2px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--hp-navy);
}
.hp .hp-lead {
    margin-top: 18px;
    max-width: 52ch;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--hp-text);
}

/* ---------- دکمه‌ها ---------- */
.hp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hp a.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 16px;
    border: 1.5px solid transparent;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.hp a.hp-btn:active { transform: translateY(1px); }
.hp a.hp-btn--primary, .hp a.hp-btn--primary:visited { background: var(--hp-navy); color: #fff; }
.hp a.hp-btn--primary:hover { background: #00417f; color: #fff; }
.hp a.hp-btn--ghost, .hp a.hp-btn--ghost:visited { background: transparent; color: var(--hp-navy); border-color: var(--hp-navy); }
.hp a.hp-btn--ghost:hover { background: var(--hp-navy); color: #fff; }
.hp a.hp-btn--light, .hp a.hp-btn--light:visited { background: #fff; color: var(--hp-navy); }
.hp a.hp-btn--light:hover { background: var(--hp-mist); color: var(--hp-navy); }
.hp a.hp-btn--outline-light, .hp a.hp-btn--outline-light:visited { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hp a.hp-btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

.hp a.hp-link, .hp a.hp-link:visited {
    font-size: .95rem;
    font-weight: 800;
    color: var(--hp-blue);
    padding-inline: 4px;
}
.hp a.hp-link:hover { color: var(--hp-navy); text-decoration: underline; text-underline-offset: 6px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hp-hero { padding-block: clamp(20px, 4vw, 48px) clamp(20px, 3vw, 32px); }
.hp-hero__grid { display: grid; gap: 28px; align-items: center; }

.hp-hero__text .hp-actions { margin-top: 28px; }

.hp .hp-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--hp-line);
    font-size: .92rem;
}
.hp-facts li { padding-inline: 0 18px; margin-inline-end: 18px; border-inline-end: 1px solid var(--hp-line); }
.hp-facts li:last-child { border-inline-end: 0; margin-inline-end: 0; padding-inline-end: 0; }
.hp .hp-facts b { color: var(--hp-navy); font-weight: 800; }

.hp-hero__art {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    max-height: 560px;
    width: 100%;
    margin-inline: auto;
    background: var(--hp-mist);
    border: 1px solid var(--hp-line);
    border-radius: 32px;
    overflow: hidden;
}
.hp-hero__art > img {
    position: relative;
    z-index: 2;
    width: 92%;
    height: 92%;
    object-fit: contain;
    filter: drop-shadow(0 28px 30px rgba(0, 47, 93, .18));
    animation: hp-float 7s ease-in-out 1.2s infinite;
}
/* حلقه‌هایی شبیه چرخ ویلچر */
.hp-ring {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    height: 86%;
    width: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 47, 93, .14);
    animation: hp-ring-in 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
.hp-ring--a { height: 90%; }
.hp-ring--b {
    height: 64%;
    border-style: dashed;
    border-color: rgba(48, 133, 195, .45);
    animation: hp-ring-in 1.1s cubic-bezier(.2, .7, .2, 1) .15s both, hp-spin 50s linear 1.4s infinite;
}
@keyframes hp-ring-in { from { opacity: 0; scale: .8; } to { opacity: 1; scale: 1; } }
@keyframes hp-spin { to { rotate: 360deg; } }
@keyframes hp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 899px) {
    .hp-hero__art { aspect-ratio: 6 / 5; }
    .hp-hero__art > img { width: 84%; height: 90%; }
}
@media (min-width: 900px) {
    .hp-hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

/* ==========================================================================
   نوار مزیت‌ها
   ========================================================================== */
.hp-perks { padding-block: 8px clamp(8px, 2vw, 16px); }
.hp-perks__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--hp-line);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}
.hp-perks__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-inline-start: 1px solid var(--hp-line);
    border-top: 1px solid var(--hp-line);
}
.hp-perks__list li:nth-child(-n+2) { border-top: 0; }
.hp-perks__list li:nth-child(2n+1) { border-inline-start: 0; }
.hp-perks__list i {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--hp-mist);
    color: var(--hp-navy);
    font-size: 1.15rem;
    transition: background-color .25s, color .25s, transform .25s;
}
.hp-perks__list li:hover i { background: var(--hp-navy); color: #fff; transform: rotate(-8deg) scale(1.06); }
.hp-perks__list b { display: block; font-size: .92rem; font-weight: 800; color: var(--hp-navy); line-height: 1.6; }
.hp-perks__list span { display: block; font-size: .8rem; line-height: 1.6; }
@media (max-width: 899px) {
    .hp-perks__list li { padding: 12px 14px; gap: 10px; }
    .hp-perks__list span { display: none; }
    .hp-perks__list i { width: 38px; height: 38px; font-size: 1rem; }
}
@media (min-width: 900px) {
    .hp-perks__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hp-perks__list li { border-top: 0; border-inline-start: 1px solid var(--hp-line); padding: 20px 22px; }
    .hp-perks__list li:nth-child(2n+1) { border-inline-start: 1px solid var(--hp-line); }
    .hp-perks__list li:first-child { border-inline-start: 0; }
}

/* ==========================================================================
   دسته‌بندی‌ها (کاشی)
   ========================================================================== */
/* کاشی‌های تصویری دسته‌بندی */
.hp-cats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .hp-cats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.hp a.hp-tile, .hp a.hp-tile:visited {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 10px 14px;
    border: 1px solid var(--hp-line);
    border-radius: 20px;
    background: #fff;
    color: var(--hp-navy);
    text-align: center;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.hp a.hp-tile:hover { border-color: var(--hp-blue); box-shadow: 0 10px 26px rgba(0, 47, 93, .1); transform: translateY(-3px); color: var(--hp-navy); }
.hp-tile__img { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--hp-soft); overflow: hidden; }
.hp-tile__img img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s; }
.hp a.hp-tile:hover .hp-tile__img img { transform: scale(1.06); }
.hp-tile__txt { display: grid; min-width: 0; line-height: 1.6; }
.hp-tile__txt b { font-size: .95rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-tile__txt small { font-size: .8rem; color: var(--hp-text); }

/* دو بنر دسته‌های پرطرفدار */
.hp-promos { padding-block: 0; }
.hp-promos__grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .hp-promos__grid { grid-template-columns: 1fr 1fr; } }
.hp a.hp-promo, .hp a.hp-promo:visited {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 190px; padding: 24px; border-radius: 24px; overflow: hidden; color: var(--hp-navy);
    transition: transform .25s, box-shadow .25s;
}
.hp a.hp-promo--a { background: linear-gradient(135deg, #E6F0F8 0%, #CFE2F3 100%); }
.hp a.hp-promo--b { background: linear-gradient(135deg, #FFF1EC 0%, #FFDCCF 100%); }
.hp a.hp-promo:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 47, 93, .12); color: var(--hp-navy); }
.hp-promo__txt { position: relative; z-index: 1; display: grid; gap: 4px; justify-items: start; }
.hp-promo__txt small { font-size: .8rem; font-weight: 700; color: var(--hp-blue); }
.hp-promo--b .hp-promo__txt small { color: #C2552E; }
.hp-promo__txt b { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 900; line-height: 1.5; }
.hp-promo__txt > span:not(.hp-promo__btn) { font-size: .9rem; color: var(--hp-text); }
.hp-promo__btn {
    margin-top: 10px; padding: 8px 18px; border-radius: 12px; background: var(--hp-navy); color: #fff;
    font-size: .88rem; font-weight: 800; transition: background-color .2s;
}
.hp a.hp-promo:hover .hp-promo__btn { background: #00417f; }
.hp-promo__img { flex: 0 0 auto; width: min(42%, 180px); height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s; }
.hp a.hp-promo:hover .hp-promo__img { transform: scale(1.06) rotate(-2deg); }

/* ==========================================================================
   اسلایدر محصولات (Swiper) و کارت فروشگاهی
   ========================================================================== */
.hp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.hp-head__tools { display: flex; align-items: center; gap: 8px; }
.hp-sec--tint { background: var(--hp-soft); border-block: 1px solid var(--hp-line); }

.hp button.hp-arrow {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--hp-line);
    border-radius: 50%;
    background: #fff;
    color: var(--hp-navy);
    cursor: pointer;
    transition: background-color .2s, color .2s, opacity .2s, border-color .2s;
}
.hp button.hp-arrow:hover:not(.swiper-button-disabled) { background: var(--hp-navy); color: #fff; border-color: var(--hp-navy); }
.hp button.hp-arrow.swiper-button-disabled { opacity: .35; cursor: default; }
@media (min-width: 700px) { .hp button.hp-arrow { display: grid; } }

.hp-swiper { overflow: hidden; padding: 2px; margin: -2px; }
.hp-swiper .swiper-slide { height: auto; }

.hp article.hp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.hp article.hp-card:hover { border-color: var(--hp-blue); box-shadow: 0 14px 30px rgba(0, 47, 93, .1); transform: translateY(-4px); }

.hp-card__media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    padding: 10%;
    background: var(--hp-soft);
    border-bottom: 1px solid var(--hp-line);
    overflow: hidden;
}
.hp-card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .45s ease; }
.hp article.hp-card:hover .hp-card__media img { transform: scale(1.06); }
.hp-card.is-oos .hp-card__media img { opacity: .5; }

.hp .hp-card__badge {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--hp-sale);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.8;
}
.hp .hp-card__badge--muted { background: #8496A8; }
.hp .hp-card__badge--feat { background: var(--hp-navy); }

.hp-card__body { display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 14px 14px 6px; }
.hp .hp-card__cat { font-size: .78rem; color: #8496A8; line-height: 1.6; }
.hp .hp-card__title { margin: 0; text-align: start; font-size: .95rem; font-weight: 600; line-height: 1.8; }
.hp .hp-card__title a, .hp .hp-card__title a:hover {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--hp-navy);
}
.hp .hp-card__title a:hover { color: var(--hp-blue); }
.hp-card__price { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; font-size: .95rem; }
.hp .hp-price { font-weight: 800; color: var(--hp-navy); }
.hp .hp-price small { font-size: .75rem; font-weight: 500; color: var(--hp-text); }
.hp .hp-price--sale { color: var(--hp-sale); }
.hp .hp-price--old { font-size: .82rem; font-weight: 300; color: #8496A8; text-decoration: line-through; }
.hp .hp-price--call { font-weight: 600; color: var(--hp-blue); }

.hp-card__foot { padding: 10px 14px 14px; }
.hp a.hp-card__btn, .hp a.hp-card__btn:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 1.5px solid var(--hp-navy);
    border-radius: 12px;
    background: transparent;
    color: var(--hp-navy);
    font-size: .9rem;
    font-weight: 800;
    transition: background-color .2s, color .2s;
}
.hp a.hp-card__btn:hover { background: var(--hp-navy); color: #fff; }
.hp a.hp-card__btn--cart, .hp a.hp-card__btn--cart:visited { background: var(--hp-navy); color: #fff; }
.hp a.hp-card__btn--cart:hover { background: #00417f; border-color: #00417f; }
.hp-card__btn i { font-size: 1.05rem; }


/* ==========================================================================
   فروش ویژه — باند سرمه‌ای با تاکید قرمز
   ========================================================================== */
.hp-head__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-width: 0; }
.hp .hp-flash {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px 4px 12px;
    border-radius: 999px;
    background: var(--hp-sale);
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
    line-height: 1.8;
    box-shadow: 0 6px 18px rgba(217, 45, 75, .35);
}
.hp-flash svg { animation: hp-flash 1.6s ease-in-out infinite; }
@keyframes hp-flash { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

.hp-sec.hp-sale {
    position: relative;
    isolation: isolate;
    margin-block: clamp(20px, 4vw, 48px);
    background: linear-gradient(135deg, #002F5D 0%, #00417F 55%, #0B5AA3 100%);
    color: #fff;
    overflow: hidden;
}
/* حلقه‌های محو شبیه چرخ، هماهنگ با هیرو */
.hp-sale::before, .hp-sale::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .08);
    aspect-ratio: 1;
}
.hp-sale::before { width: 520px; top: -260px; left: -140px; }
.hp-sale::after { width: 360px; bottom: -200px; right: -80px; border-style: dashed; border-color: rgba(255, 255, 255, .1); }

.hp .hp-sale .hp-h2 { color: #fff; }
.hp .hp-sale a.hp-link, .hp .hp-sale a.hp-link:visited { color: #BFE0F7; }
.hp .hp-sale a.hp-link:hover { color: #fff; }
.hp .hp-sale button.hp-arrow { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); color: #fff; }
.hp .hp-sale button.hp-arrow:hover:not(.swiper-button-disabled) { background: #fff; border-color: #fff; color: var(--hp-navy); }
.hp-sale article.hp-card { border-color: transparent; }
.hp-sale article.hp-card:hover { border-color: var(--hp-sale); box-shadow: 0 16px 34px rgba(0, 0, 0, .28); }

@media (prefers-reduced-motion: reduce) { .hp-flash svg { animation: none; } }

/* ==========================================================================
   چرا پارسیان
   ========================================================================== */
.hp-why__grid { display: grid; gap: 32px; align-items: center; }
.hp-why__photo { border: 1px solid var(--hp-line); border-radius: var(--hp-radius); overflow: hidden; background: var(--hp-mist); }
.hp-why__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 38% 50%; }

.hp .hp-list { display: grid; gap: 12px; margin-top: 20px; }
.hp-list li {
    display: flex;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--hp-line);
    border-radius: 18px;
    background: #fff;
    transition: border-color .25s, transform .25s;
}
.hp-list li:hover { border-color: var(--hp-blue); transform: translateX(-4px); }
.hp-list p { font-size: .96rem; }
.hp-ico {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--hp-navy);
}
.hp-ico img { width: 22px; height: auto; }

@media (min-width: 900px) {
    .hp-why__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
    .hp-why__photo img { aspect-ratio: 5 / 6; object-position: 36% 50%; }
}

/* ==========================================================================
   سوالات متداول
   ========================================================================== */
.hp-faq { background: var(--hp-soft); }
.hp-faq__grid { display: grid; gap: 28px; }
.hp-faq__intro p { margin: 12px 0 14px; max-width: 46ch; }
.hp-faq__list { display: grid; gap: 10px; align-content: start; }

.hp-qa { background: #fff; border: 1px solid var(--hp-line); border-radius: 18px; transition: border-color .2s; }
.hp-qa[open] { border-color: var(--hp-blue); }
.hp-qa summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    font-weight: 800;
    color: var(--hp-navy);
    cursor: pointer;
    list-style: none;
}
.hp-qa summary::-webkit-details-marker { display: none; }
.hp-qa summary svg { flex: 0 0 auto; transition: transform .25s; }
.hp-qa[open] summary svg { transform: rotate(180deg); }
.hp-qa__body { padding: 0 20px 18px; font-size: .96rem; }
.hp-qa__body > * { margin-block: 0 .6em; }
.hp-qa__body > *:last-child { margin-bottom: 0; }

@media (min-width: 900px) {
    .hp-faq__grid { grid-template-columns: 5fr 7fr; gap: 64px; }
    .hp-faq__intro { position: sticky; top: 24px; align-self: start; }
}

/* ==========================================================================
   دعوت به مشاوره
   ========================================================================== */
.hp-cta {
    display: grid;
    gap: 24px;
    align-items: center;
    padding: clamp(28px, 5vw, 56px);
    background: var(--hp-navy);
    border-radius: 32px;
    color: #fff;
}
.hp .hp-cta .hp-h2 { color: #fff; }
.hp-cta p { margin-top: 8px; color: rgba(255, 255, 255, .82); }
@media (min-width: 900px) {
    .hp-cta { grid-template-columns: 1fr auto; gap: 48px; }
}


/* ==========================================================================
   Header: نوار اصلی (جستجو)، مگامنو، کشوی موبایل
   ========================================================================== */
:root { --hp-header-h: 124px; }
@media (min-width: 900px) { :root { --hp-header-h: 132px; } }

.hp.hp-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid var(--hp-line);
    transition: box-shadow .25s;
}
.admin-bar .hp.hp-header { top: 32px; }
.hp.hp-header.is-stuck { box-shadow: 0 8px 26px rgba(0, 47, 93, .09); }

.hp-header__bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "burger logo actions" "search search search";
    align-items: center;
    gap: 10px 8px;
    padding-block: 10px 12px;
}
.hp-burger { grid-area: burger; }
.hp-logo { grid-area: logo; justify-self: start; display: block; }
.hp-header .hp-logo img { display: block; height: 26px; width: auto; max-width: 100%; }
.hp-search { grid-area: search; }
.hp-header__actions { grid-area: actions; display: flex; gap: 8px; }

.hp button.hp-burger, .hp button.hp-drawer__close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--hp-line);
    border-radius: 14px;
    background: #fff;
    color: var(--hp-navy);
    cursor: pointer;
    transition: background-color .2s;
}
.hp button.hp-burger:hover, .hp button.hp-drawer__close:hover { background: var(--hp-mist); }

/* جستجو */
.hp-search {
    display: flex;
    align-items: center;
    height: 46px;
    width: 100%;
    padding-inline: 18px 5px;
    border: 1.5px solid var(--hp-line);
    border-radius: 999px;
    background: var(--hp-soft);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.hp-search:focus-within { border-color: var(--hp-blue); background: #fff; box-shadow: 0 0 0 4px rgba(48, 133, 195, .14); }
.hp .hp-search input[type=search] {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: .95rem;
    color: var(--hp-navy);
    outline: 0;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}
.hp .hp-search input[type=search]::placeholder { color: #8496A8; }
.hp .hp-search input[type=search]::-webkit-search-cancel-button { display: none; }
.hp .hp-search button {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--hp-navy);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s;
}
.hp .hp-search button:hover { background: #00417f; }

/* دکمه‌های حساب و سبد */
.hp a.hp-act, .hp a.hp-act:visited {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    height: 44px;
    padding: 0 11px;
    border: 1px solid var(--hp-line);
    border-radius: 14px;
    background: #fff;
    color: var(--hp-navy);
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .2s, border-color .2s;
}
.hp a.hp-act:hover { background: var(--hp-mist); border-color: var(--hp-mist); color: var(--hp-navy); }
.hp-act__txt { display: none; }
.hp .hp-badge {
    position: absolute;
    top: -7px;
    inset-inline-start: -7px;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--hp-sale);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0 0 2px #fff;
}
.hp .hp-badge[data-count="0"] { display: none; }

@media (min-width: 900px) {
    .hp-header__bar {
        grid-template-columns: auto minmax(260px, 1fr) auto;
        grid-template-areas: "logo search actions";
        gap: 28px;
        padding-block: 14px;
    }
    .hp-burger { display: none !important; }
    .hp-header .hp-logo img { height: 32px; }
    .hp-search { justify-self: center; max-width: 640px; }
    .hp-act__txt { display: inline; }
    .hp a.hp-act--account { padding-inline: 16px; }
}
/* شماره‌ی تماس: فقط روی عرض‌های بزرگ */
.hp a.hp-act--tel { display: none; }
@media (min-width: 1100px) { .hp a.hp-act--tel { display: inline-flex; padding-inline: 16px; } }

/* ---------- منوی دسکتاپ و مگامنو ---------- */
.hp-nav { display: none; border-top: 1px solid var(--hp-line); }
@media (min-width: 900px) { .hp-nav { display: block; } }
.hp-nav > .hp-wrap { position: relative; }
.hp-nav__list { display: flex; flex-wrap: wrap; gap: 2px; }
.hp a.hp-nav__link, .hp a.hp-nav__link:visited {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 16px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--hp-navy);
    transition: color .2s;
}
.hp a.hp-nav__link::after {
    content: "";
    position: absolute;
    inset-inline: 16px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--hp-blue);
    transform: scaleX(0);
    transition: transform .25s ease;
}
.hp-nav__item:hover > a.hp-nav__link, .hp-nav__item:focus-within > a.hp-nav__link { color: var(--hp-blue); }
.hp-nav__item:hover > a.hp-nav__link::after, .hp-nav__item:focus-within > a.hp-nav__link::after { transform: scaleX(1); }
.hp-chev { transition: transform .25s; }
.hp-nav__item:hover .hp-chev, .hp-nav__item:focus-within .hp-chev { transform: rotate(180deg); }

.hp-mega {
    position: absolute;
    top: 100%;
    inset-inline: clamp(16px, 4vw, 32px);
    z-index: 5;
    padding: 24px 28px 28px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 24px 44px rgba(0, 47, 93, .14);
    max-height: 70vh;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
}
.hp-nav__item:hover > .hp-mega, .hp-nav__item:focus-within > .hp-mega {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s ease, transform .2s ease;
}
.hp-mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 28px; }
.hp a.hp-mega__head, .hp a.hp-mega__head:visited {
    display: block;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--hp-line);
    font-size: .95rem;
    font-weight: 800;
    color: var(--hp-navy);
}
.hp a.hp-mega__head:hover { color: var(--hp-blue); }
.hp-mega__col ul { display: grid; gap: 2px; }
.hp-mega__col li a, .hp-mega__col li a:visited { display: inline-block; padding-block: 3px; font-size: .9rem; color: var(--hp-text); transition: color .2s, transform .2s; }
.hp-mega__col li a:hover { color: var(--hp-navy); transform: translateX(-3px); }

/* ---------- کشوی موبایل ---------- */
html.hp-lock { overflow: hidden; }
.hp-drawer { position: fixed; inset: 0; z-index: 1100; visibility: hidden; transition: visibility 0s .3s; }
.hp-drawer.is-open { visibility: visible; transition: none; }
.hp-drawer__overlay { position: absolute; inset: 0; background: rgba(0, 47, 93, .5); opacity: 0; transition: opacity .3s; }
.hp-drawer.is-open .hp-drawer__overlay { opacity: 1; }
.hp-drawer__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(88vw, 360px);
    background: #fff;
    box-shadow: -20px 0 50px rgba(0, 47, 93, .2);
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.2, .7, .2, 1);
}
.hp-drawer.is-open .hp-drawer__panel { transform: none; }
.hp-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--hp-line); }
.hp-drawer__head img { display: block; height: 26px; width: auto; }
.hp-drawer__body { flex: 1; overflow-y: auto; padding: 6px 16px; overscroll-behavior: contain; }
.hp-drawer__foot { display: grid; gap: 10px; padding: 14px 16px 18px; border-top: 1px solid var(--hp-line); background: var(--hp-soft); }
.hp .hp-drawer__foot a.hp-btn { min-height: 48px; }

.hp-acc { border-bottom: 1px solid var(--hp-line); }
.hp-acc summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; font-weight: 800; color: var(--hp-navy); cursor: pointer; list-style: none; }
.hp-acc summary::-webkit-details-marker { display: none; }
.hp-acc[open] summary .hp-chev { transform: rotate(180deg); }
.hp-acc__body { display: grid; padding: 0 0 12px; }
.hp a.hp-acc__link, .hp a.hp-acc__link:visited { display: block; padding: 14px 2px; border-bottom: 1px solid var(--hp-line); font-weight: 800; color: var(--hp-navy); }
.hp a.hp-acc__all, .hp a.hp-acc__all:visited { padding: 8px 12px; margin-bottom: 4px; border-radius: 10px; background: var(--hp-mist); font-size: .88rem; font-weight: 800; color: var(--hp-navy); }
.hp a.hp-acc__head, .hp a.hp-acc__head:visited { padding: 10px 12px 4px; font-size: .92rem; font-weight: 800; color: var(--hp-blue); }
.hp a.hp-acc__leaf, .hp a.hp-acc__leaf:visited { padding: 6px 12px 6px 12px; font-size: .9rem; color: var(--hp-text); }
.hp a.hp-acc__leaf:hover { color: var(--hp-navy); }
@media (min-width: 900px) { .hp-drawer { display: none; } }

@media (prefers-reduced-motion: reduce) {
    .hp-mega, .hp-drawer__panel, .hp-drawer__overlay { transition: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.hp-footer {
    margin-top: clamp(40px, 6vw, 72px);
    padding-block: clamp(36px, 5vw, 64px) 24px;
    background: var(--hp-soft);
    border-top: 1px solid var(--hp-line);
    border-radius: 0;
    overflow-x: clip;
}
.hp-footer p { text-align: start; font-size: .95rem; }

.hp-footer__main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--hp-line); margin-bottom: 22px; }
.hp-footer__brand { grid-column: 1 / -1; }
.hp-footer__brand img { width: min(240px, 70%); height: auto; }
.hp-footer__brand p { margin-top: 14px; max-width: 46ch; }
.hp-footer__contact { margin-top: 16px; }

.hp-footer__label { display: block; font-size: .85rem; color: var(--hp-text); }
.hp a.hp-footer__tel, .hp a.hp-footer__tel:visited {
    display: inline-block;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 900;
    line-height: 1.5;
    color: var(--hp-navy);
}
.hp a.hp-footer__tel:hover { color: var(--hp-blue); }
.hp-footer__social { display: flex; gap: 10px; margin-top: 12px; }
.hp a.hp-social, .hp a.hp-social:visited {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--hp-line);
    border-radius: 50%;
    background: #fff;
    font-size: 1.15rem;
    transition: border-color .2s, transform .2s;
}
.hp a.hp-social:hover { border-color: var(--hp-blue); transform: translateY(-2px); }

.hp .hp-footer__title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--hp-navy);
}
.hp-footer__menu { display: grid; gap: 4px; }
.hp-footer__menu a, .hp-footer__menu a:visited {
    display: inline-block;
    padding-block: 3px;
    font-size: .95rem;
    color: var(--hp-text);
}
.hp-footer__menu a:hover { color: var(--hp-navy); text-decoration: underline; text-underline-offset: 5px; }

.hp-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}
.hp-footer__badges { display: flex; gap: 10px; }
.hp-footer__badges a, .hp-footer__badges > img {
    display: grid;
    place-items: center;
    padding: 6px;
    border: 1px solid var(--hp-line);
    border-radius: 14px;
    background: #fff;
}
.hp-footer__badges img { width: 56px; height: 56px; object-fit: contain; filter: none; }
.hp-footer__badges > img { width: 68px; height: 68px; }
.hp-footer__badges a img { width: 56px; height: 56px; padding: 0; border: 0; }
.hp-footer p.hp-footer__copy { flex: 1 1 220px; font-size: .85rem; }

.hp button.hp-up {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--hp-line);
    border-radius: 999px;
    background: #fff;
    font-size: .9rem;
    font-weight: 600;
    color: var(--hp-navy);
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.hp button.hp-up:hover { background: var(--hp-navy); border-color: var(--hp-navy); color: #fff; }

a.hp.hp-wa, a.hp.hp-wa:visited {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 999px;
    background: #25a244;
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(0, 47, 93, .18);
    transition: background-color .2s, transform .2s;
}
a.hp.hp-wa:hover { background: #1e8a39; color: #fff; transform: translateY(-2px); }
.hp-wa img { width: 26px; height: 26px; }

@media (min-width: 900px) {
    .hp-footer__main { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
    .hp-footer__brand { grid-column: auto; }
}
@media (max-width: 520px) {
    a.hp.hp-wa { padding: 0; width: 52px; justify-content: center; }
    a.hp.hp-wa span { display: none; }
    .hp button.hp-up { margin-inline-start: auto; }
}

/* ==========================================================================
   انیمیشن‌ها
   - .hp-in: ورود پله‌ای هیرو (فقط CSS)
   - .hp-reveal: ظاهر شدن هنگام اسکرول (ui.js کلاس .hp-anim را روی .hp می‌گذارد)
   ========================================================================== */
.hp-in {
    opacity: 0;
    transform: translateY(26px);
    animation: hp-up .85s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) forwards;
}
.hp-in--art { transform: scale(.94); animation-name: hp-pop; }
@keyframes hp-up  { to { opacity: 1; transform: none; } }
@keyframes hp-pop { to { opacity: 1; transform: none; } }

.hp.hp-anim .hp-reveal:not(.is-in) { opacity: 0; transform: translateY(30px); }
.hp.hp-anim .hp-reveal--zoom:not(.is-in) { transform: scale(.96); }
.hp.hp-anim .hp-reveal {
    transition: opacity .7s ease var(--rd, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--rd, 0s);
}

/* دکمه‌ها: فلش لطیف هنگام هاور */
.hp a.hp-btn--primary { position: relative; overflow: hidden; }
.hp a.hp-btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
    transform: translateX(120%);
    transition: transform .7s ease;
}
.hp a.hp-btn--primary:hover::after { transform: translateX(-120%); }

@media (prefers-reduced-motion: reduce) {
    .hp-in, .hp.hp-anim .hp-reveal:not(.is-in) { opacity: 1; transform: none; animation: none; }
    .hp.hp-anim .hp-reveal { transition: none; }
    .hp-ring, .hp-ring--b, .hp-hero__art > img { animation: none; }
}

/* ---------- موبایل ---------- */
@media (max-width: 520px) {
    .hp a.hp-btn { flex: 1 1 100%; }
    .hp .hp-facts { margin-top: 24px; padding-top: 16px; font-size: .85rem; }
    .hp-facts li { padding-inline-end: 12px; margin-inline-end: 12px; }
    .hp-hero__art { border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .hp-ring { animation: none; }
    .hp *, .hp *::before, .hp *::after { transition: none !important; }
}

/* ---------- دکمه‌های علاقه‌مندی / اشتراک‌گذاری ---------- */
.pdp-actions {
    position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2;
    display: flex; flex-direction: column; gap: 8px;
}
button.pdp-act {
    display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
    border: 1px solid var(--hp-line); border-radius: 50%; background: rgba(255, 255, 255, .95);
    color: var(--hp-navy); box-shadow: 0 4px 14px rgba(0, 47, 93, .08); cursor: pointer;
    transition: color .2s, border-color .2s, transform .2s;
}
button.pdp-act:hover { border-color: var(--hp-blue); transform: scale(1.06); }
button.pdp-act:disabled { opacity: .6; cursor: wait; }
button.pdp-act--fav.is-on { color: var(--hp-sale); border-color: #F5C2CC; }
button.pdp-act--fav.is-on path { fill-opacity: 1; }
button.pdp-act--fav.is-on { animation: hp-fav-pop .3s ease-out; }
@keyframes hp-fav-pop { 50% { transform: scale(1.18); } }

/* ---------- پیام کوتاه (toast) ---------- */
.hp-toast {
    position: fixed; z-index: 2000; inset-inline: 16px; bottom: 96px; width: fit-content; max-width: calc(100% - 32px); margin-inline: auto;
    padding: 12px 20px; border-radius: 14px; background: var(--hp-navy); color: #fff; font-size: .92rem; font-weight: 700;
    box-shadow: 0 12px 30px rgba(0, 47, 93, .25); opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s;
}
.hp-toast.is-in { opacity: 1; transform: none; }

/* ---------- صفحه‌ی علاقه‌مندی‌ها در حساب کاربری ---------- */
.hp-fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.hp-fav-item { position: relative; }
.hp-fav-item .hp-fav-remove { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; width: 36px; height: 36px; }
.hp-fav-empty { padding: 20px; border: 1px dashed var(--hp-line); border-radius: 16px; color: var(--hp-text); text-align: center; }

/* ---------- پنجره‌ی ورود (مهمان) ---------- */
dialog.hp-dialog {
    width: min(92vw, 400px); padding: 28px 24px 22px; border: 0; border-radius: 24px; background: #fff;
    color: var(--hp-text); text-align: center; box-shadow: 0 30px 80px rgba(0, 47, 93, .25);
}
dialog.hp-dialog[open] { animation: hp-dialog-in .25s ease-out; }
dialog.hp-dialog::backdrop { background: rgba(0, 31, 61, .45); backdrop-filter: blur(3px); }
.hp-dialog__icon {
    display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%;
    background: #FDECEF; color: var(--hp-sale);
}
.hp-dialog .hp-dialog__title { margin: 0; color: var(--hp-navy); font-size: 1.15rem; font-weight: 900; line-height: 1.6; }
.hp-dialog .hp-dialog__text { margin: 8px 0 22px; font-size: .93rem; line-height: 2; }
.hp-dialog__actions { display: grid; gap: 10px; }
.hp-dialog .hp-dialog__btn {
    display: grid; place-items: center; min-height: 48px; padding: 0 20px; border: 1.5px solid var(--hp-line); border-radius: 14px;
    background: #fff; color: var(--hp-navy); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
    transition: background-color .2s, border-color .2s;
}
.hp-dialog .hp-dialog__btn:hover { border-color: var(--hp-navy); }
.hp-dialog .hp-dialog__btn--primary { background: var(--hp-navy); border-color: var(--hp-navy); color: #fff; }
.hp-dialog .hp-dialog__btn--primary:hover { background: #00417f; color: #fff; }
@keyframes hp-dialog-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.hp-dialog[open] { animation: none; } }
