/* ═══════════════════════════════════════════════════
   HONARA — بخش هیرو (ویترین زنده) — نسخه ۲
   (استایل‌های هدر/نوبار در navbar.css است)
   ═══════════════════════════════════════════════════ */

.hnr-hero {
    --hnr-cream: #F9F6EF;
    --hnr-beige: #EAE3D0;
    --hnr-sage: #8C9D79;
    --hnr-sage-d: #5C6247;
    --hnr-ink: #3E3B35;

    direction: rtl;
    font-family: inherit;
    background: var(--hnr-beige);
    padding: clamp(92px, 10vw, 118px) clamp(16px, 4.5vw, 64px) clamp(34px, 5vw, 54px);
    position: relative;
    overflow: hidden;
}

/* فقط در صفحه اصلی: هیرو زیرِ هدرِ شیشه‌ای بالا کشیده می‌شود */


/* ── واترمارک (کلمه‌ی HONARA به‌صورت SVG) ── */
.hnr-watermark {
    position: absolute;
    top: clamp(96px, 11vw, 130px);
    right: 0;
    left: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
    user-select: none;
    padding: 0 clamp(16px, 4.5vw, 64px);
}

.hnr-watermark svg {
    width: min(760px, 84vw);
    height: auto;
    overflow: visible;
}

/* ── گرید سه‌ستونه ── */
.hnr-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 230px;
    gap: clamp(20px, 3.5vw, 44px);
    align-items: center;
    justify-items: center;
    max-width: 1160px;
    margin-inline: auto;
}

/* ── کارت‌های چرخانِ کناری ── */
.hnr-card {
    width: 100%;
    max-width: 230px;
    background: rgba(255, 255, 255, .92);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(62, 59, 53, .14);
    padding: 14px;
    cursor: pointer;
    transition: transform .35s ease, box-shadow .35s ease;
    animation: hnrFadeUp .8s .5s ease both;
}

.hnr-card--right {
    margin-top: -60px;
}

.hnr-card--left {
    margin-bottom: -60px;
    animation-delay: .65s;
}

.hnr-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 56px rgba(62, 59, 53, .22);
}

.hnr-card__img {
    position: relative;
    height: clamp(110px, 12vw, 150px);
    background: #F5F2E9;
    border-radius: 10px;
}

.hnr-card__img img {
    position: absolute;
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: contain;
    opacity: 0;
    transition: opacity .6s ease;
}

.hnr-card__meta {
    position: relative;
    height: 44px;
    margin-top: 10px;
}

.hnr-card__meta > div {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease;
}

.hnr-card__name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--hnr-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hnr-card__price {
    font-size: 11.5px;
    color: var(--hnr-sage-d);
}

.hnr-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--hnr-sage-d);
    background: #F3EFE4;
    border: 1px solid #E1DAC7;
    border-radius: 999px;
    padding: 9px;
    cursor: pointer;
    transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.hnr-card__btn:hover {
    background: var(--hnr-sage);
    color: #fff;
    border-color: var(--hnr-sage);
}

/* حالت‌های فعال (با JS toggle می‌شوند) */
.hnr-card__img img.is-active {
    opacity: 1;
}

.hnr-card__meta > div.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* ── ستون میانی ── */
.hnr-hero__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(14px, 2vw, 22px);
    text-align: center;
    min-width: 0;
}

.hnr-hero__title {
    margin: 0;
    font-size: clamp(25px, 3.2vw, 36px);
    line-height: 1.5;
    font-weight: 800;
    color: var(--hnr-ink);
    animation: hnrFadeUp .8s .15s ease both;
}

.hnr-hero__title span {
    color: #98A25F;
}

.hnr-hero__photo {
    position: relative;
    border-radius: 120px 120px 10px 10px;
    overflow: hidden;
    width: min(330px, 78vw);
    animation: hnrReveal 1s .3s cubic-bezier(.6, 0, .2, 1) both;
}

.hnr-hero__photo img {
    display: block;
    width: 100%;
    height: clamp(300px, 42vw, 400px);
    object-fit: cover;
    object-position: top;
}

/* دکمه‌ی انتخاب عکس (فقط پنل ادمین) روی تصویرِ هیرو */
.hnr-hero__photo .add-banner-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.hnr-hero__cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    animation: hnrFadeUp .8s .7s ease both;
}

.hnr-btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--hnr-sage);
    border: none;
    border-radius: 999px;
    padding: 13px 28px;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
}

.hnr-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(140, 154, 112, .35);
}

/* ── ردیفِ ویرایشِ عنوان (فقط پنل ادمین) ── */
.hnr-hero__title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* چیپ موبایل (روی دسکتاپ پنهان) */
.hnr-chip {
    display: none;
}

/* ── ریسپانسیو ── */
@media (max-width: 1099px) {
    .hnr-hero__grid {
        grid-template-columns: 170px minmax(0, 1fr) 170px;
    }
}

@media (max-width: 819px) {
    .hnr-hero__grid {
        grid-template-columns: 1fr;
    }

    .hnr-card {
        display: none;
    }

    .hnr-chip {
        display: flex;
        align-items: center;
        gap: 12px;
        width: min(340px, 88vw);
        background: rgba(255, 255, 255, .92);
        border-radius: 14px;
        box-shadow: 0 14px 34px rgba(62, 59, 53, .14);
        padding: 10px 14px;
        cursor: pointer;
        animation: hnrFadeUp .8s .85s ease both;
    }

    .hnr-chip__img {
        position: relative;
        width: 58px;
        height: 58px;
        flex: none;
        background: #F5F2E9;
        border-radius: 10px;
    }

    .hnr-chip__img img {
        position: absolute;
        inset: 5px;
        width: calc(100% - 10px);
        height: calc(100% - 10px);
        object-fit: contain;
        opacity: 0;
        transition: opacity .6s ease;
    }

    .hnr-chip__img img.is-active {
        opacity: 1;
    }

    .hnr-chip__meta {
        position: relative;
        flex: 1;
        height: 44px;
        min-width: 0;
    }

    .hnr-chip__meta > div {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        text-align: right;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity .5s ease, transform .5s ease;
    }

    .hnr-chip__meta > div.is-active {
        opacity: 1;
        transform: translateY(0);
    }

    .hnr-chip__arrow {
        flex: none;
        font-size: 16px;
        color: var(--hnr-sage);
    }
}

/* ── انیمیشن‌ها ── */
@keyframes hnrFadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes hnrReveal {
    from { clip-path: inset(0 0 100% 0); }
    to   { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
    .hnr-hero *, .hnr-hero { animation: none !important; transition: none !important; }
}
