/* ═══════════════════════════════════════════════════
   فرشواره — seller.css | صفحه فروشنده/تولیدکننده
   ═══════════════════════════════════════════════════ */

/* ── HERO ── */
.fv-seller-hero {
    position: relative;
    padding: 52px 0 44px;
    overflow: hidden;
}
.fv-seller-hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, var(--plum-950) 0%, var(--plum-800) 60%, rgba(19,122,136,.15) 100%);
    z-index: 0;
}
.fv-seller-hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 70% at 20% 50%, rgba(201,162,39,.08) 0, transparent 65%),
        radial-gradient(circle at 85% 20%, rgba(19,122,136,.12) 0, transparent 40%);
}
.fv-seller-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

/* لوگو */
.fv-seller-hero__logo-wrap {
    position: relative;
    flex: 0 0 auto;
}
.fv-seller-hero__logo-img {
    width: 110px;
    height: 110px;
    border-radius: 20px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
    border: 3px solid rgba(201,162,39,.4);
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.fv-seller-hero__logo-fallback {
    width: 110px;
    height: 110px;
    border-radius: 20px;
    background: conic-gradient(from 45deg, var(--plum-700), var(--teal), var(--gold), var(--plum-700));
    display: grid;
    place-items: center;
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    border: 3px solid rgba(201,162,39,.4);
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.fv-seller-hero__verified-badge {
    position: absolute;
    bottom: -6px;
    left: -6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    display: grid;
    place-items: center;
    border: 2.5px solid var(--plum-950);
}

/* اطلاعات */
.fv-seller-hero__info { flex: 1; color: #fff; }
.fv-seller-hero__meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.fv-seller-hero__since {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    font-weight: 600;
}
.fv-seller-hero__name {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -.8px;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 8px;
}
.fv-seller-hero__tagline {
    font-size: 15px;
    color: rgba(255,255,255,.6);
    font-weight: 500;
    margin-bottom: 16px;
}
.fv-seller-hero__stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.fv-seller-hero__stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
    font-weight: 600;
}
.fv-seller-hero__stat svg { color: var(--gold-lite); flex-shrink: 0; }
.fv-seller-hero__rating {
    display: flex;
    align-items: center;
    gap: 4px;
}
.fv-seller-hero__rating em {
    font-style: normal;
    font-size: 13px;
    color: rgba(255,255,255,.7);
    font-weight: 600;
}

/* دکمه‌های hero */
.fv-seller-hero__ctas {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.fv-btn--whatsapp {
    background: #25d366;
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--r-md);
    padding: 11px 20px;
    transition: background .15s, transform .15s;
}
.fv-btn--whatsapp:hover { background: #1da851; transform: translateY(-1px); }
.fv-btn--instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--r-md);
    padding: 11px 20px;
    transition: opacity .15s, transform .15s;
}
.fv-btn--instagram:hover { opacity: .9; transform: translateY(-1px); }

/* ── Badge ── */
.fv-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
}
.fv-badge--teal    { background: rgba(19,122,136,.2);  color: var(--teal-lite); border: 1px solid rgba(19,122,136,.4);  }
.fv-badge--gray    { background: rgba(255,255,255,.1);  color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.2); }
.fv-badge--blue    { background: rgba(37,99,235,.2);    color: #93c5fd; border: 1px solid rgba(37,99,235,.3); }
.fv-badge--plum    { background: rgba(87,35,98,.4);     color: var(--gold-lite); border: 1px solid rgba(201,162,39,.3); }
.fv-badge--gold    { background: linear-gradient(135deg,var(--gold-lite),var(--gold)); color: #2a1800; border: none; }

/* ── Breadcrumb ── */
.fv-breadcrumb {
    background: var(--champagne);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}
.fv-breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--ink-soft);
    flex-wrap: wrap;
}
.fv-breadcrumb__list a { color: var(--plum-700); font-weight: 600; }
.fv-breadcrumb__list a:hover { color: var(--teal); }
.fv-breadcrumb__list [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ── Layout ── */
.fv-seller-body { padding: 44px 0 64px; }
.fv-seller-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

/* ── کارت‌های محتوا ── */
.fv-seller-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--sh-sm);
}
.fv-seller-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
}
.fv-seller-card__icon { font-size: 20px; }
.fv-seller-card__count {
    margin-right: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--teal);
    background: var(--teal-pale);
    padding: 3px 10px;
    border-radius: 100px;
}
.fv-seller-card__body { padding: 22px; }

/* prose */
.fv-prose { font-size: 15px; line-height: 1.9; color: var(--ink-mid); }
.fv-prose p { margin-bottom: 12px; }
.fv-prose p:last-child { margin-bottom: 0; }

/* افتخارات */
.fv-seller-awards {
    margin: 0 22px 22px;
    background: linear-gradient(135deg, rgba(201,162,39,.06), rgba(19,122,136,.04));
    border: 1px solid rgba(201,162,39,.2);
    border-radius: var(--r-md);
    padding: 14px 18px;
}
.fv-seller-awards__title {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--gold-deep);
    margin-bottom: 6px;
}

/* ویدیو */
.fv-seller-video {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}
.fv-seller-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* گالری */
.fv-seller-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.fv-seller-gallery__item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--r-sm);
    overflow: hidden;
    display: block;
}
.fv-seller-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s var(--ease);
}
.fv-seller-gallery__item:hover img { transform: scale(1.05); }
.fv-seller-gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(30,13,36,.45);
    display: grid;
    place-items: center;
    font-size: 22px;
    opacity: 0;
    transition: opacity .2s;
}
.fv-seller-gallery__item:hover .fv-seller-gallery__overlay { opacity: 1; }

/* گرید محصولات در صفحه فروشنده */
.fv-seller-products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
}

/* حالت خالی */
.fv-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--ink-soft);
}
.fv-empty__icon { font-size: 44px; display: block; margin-bottom: 12px; }

/* ── ستاره‌ها ── */
.fv-star { font-size: 16px; }
.fv-star--full  { color: var(--gold); }
.fv-star--half  { color: var(--gold); opacity: .6; }
.fv-star--empty { color: var(--line); }

/* ══════════════ SIDEBAR ══════════════ */

/* کارت تماس */
.fv-seller-contact-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    margin-bottom: 20px;
}
.fv-seller-contact-card__title {
    font-size: 15px;
    font-weight: 800;
    padding: 14px 18px;
    background: var(--plum-950);
    color: var(--gold-lite);
    border-bottom: 1px solid rgba(201,162,39,.2);
}
.fv-seller-contact-list {
    padding: 6px 0;
}
.fv-seller-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    transition: background .15s;
}
.fv-seller-contact-list li:last-child { border-bottom: none; }
.fv-seller-contact-list li:hover { background: var(--champagne); }
.fv-seller-contact-list__icon { font-size: 17px; flex-shrink: 0; margin-top: 2px; }
.fv-seller-contact-list small {
    display: block;
    font-size: 10.5px;
    color: var(--ink-soft);
    font-weight: 600;
    margin-bottom: 2px;
}
.fv-seller-contact-list a,
.fv-seller-contact-list span {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    word-break: break-all;
}
.fv-seller-contact-list a:hover { color: var(--teal); }

/* شبکه‌های اجتماعی */
.fv-seller-socials {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
}
.fv-seller-social {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 700;
    transition: opacity .15s, transform .15s;
    color: #fff;
}
.fv-seller-social:hover { opacity: .9; transform: translateX(-2px); }
.fv-seller-social--insta   { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); }
.fv-seller-social--telegram { background: #0088cc; }
.fv-seller-social--aparat   { background: #e2261d; }

/* دکمه نقشه */
.fv-seller-map-btn {
    margin: 12px 18px 16px;
    width: calc(100% - 36px);
    justify-content: center;
    color: var(--plum-700);
    border-color: var(--plum-700);
}
.fv-seller-map-btn:hover { background: var(--plum-700); color: #fff; }

/* آمار */
.fv-seller-stats-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    margin-bottom: 20px;
}
.fv-seller-stats-card__title {
    font-size: 15px;
    font-weight: 800;
    padding: 14px 18px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}
.fv-seller-stats-list {
    padding: 6px 0;
}
.fv-seller-stats-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    border-bottom: 1px dashed var(--line);
    font-size: 13.5px;
}
.fv-seller-stats-list li:last-child { border-bottom: none; }
.fv-seller-stats-list span { color: var(--ink-soft); font-weight: 600; }
.fv-seller-stats-list strong { font-weight: 800; color: var(--ink); font-size: 14px; }
.fv-seller-stats-list__rating { display: flex; align-items: center; gap: 4px; }

/* جایگاه تبلیغاتی */
.fv-seller-ad-slot {
    background: linear-gradient(135deg, var(--plum-950), var(--plum-800));
    border: 1px dashed rgba(201,162,39,.35);
    border-radius: var(--r-lg);
    padding: 22px 18px;
    text-align: center;
    color: rgba(255,255,255,.5);
}
.fv-seller-ad-slot__label {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .8px;
    color: var(--gold);
    margin-bottom: 6px;
}
.fv-seller-ad-slot p { font-size: 13px; margin-bottom: 14px; }
.fv-seller-ad-slot__cta {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--gold-lite);
    border: 1px solid rgba(201,162,39,.4);
    padding: 7px 18px;
    border-radius: 100px;
    transition: background .15s;
}
.fv-seller-ad-slot__cta:hover { background: rgba(201,162,39,.12); }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .fv-seller-layout { grid-template-columns: 1fr 280px; }
    .fv-seller-products-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 900px) {
    .fv-seller-layout { grid-template-columns: 1fr; }
    .fv-seller-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        order: -1;
    }
    .fv-seller-ad-slot { display: none; }
    .fv-seller-gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .fv-seller-hero { padding: 36px 0 32px; }
    .fv-seller-hero__inner { flex-direction: column; align-items: center; text-align: center; }
    .fv-seller-hero__stats { justify-content: center; }
    .fv-seller-hero__ctas { justify-content: center; }
    .fv-seller-hero__meta-row { justify-content: center; }
    .fv-seller-sidebar { grid-template-columns: 1fr; }
    .fv-seller-products-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .fv-seller-gallery { grid-template-columns: repeat(3, 1fr); }
    .fv-seller-hero__specialty { justify-content: center; }
}
@media (max-width: 480px) {
    .fv-seller-products-grid { grid-template-columns: 1fr !important; }
    .fv-seller-gallery { grid-template-columns: repeat(2, 1fr); }
    .fv-seller-hero__logo-img,
    .fv-seller-hero__logo-fallback { width: 84px; height: 84px; }
}

/* ══════════════════════════════════════════
   جلوگیری از overflow افقی در موبایل
   ══════════════════════════════════════════ */
.fv-seller-page { overflow-x: hidden; }
.fv-seller-body { overflow-x: hidden; }
.fv-seller-layout { min-width: 0; }
.fv-seller-main  { min-width: 0; overflow: hidden; }
.fv-seller-sidebar { min-width: 0; }
.fv-seller-card  { min-width: 0; overflow: hidden; word-break: break-word; }
.fv-seller-contact-list a { word-break: break-all; }
.fv-seller-video { min-width: 0; }
.fv-seller-video iframe { max-width: 100%; }

/* ══════════════════════════════════════════
   فعالیت‌های تخصصی — زیر نام فروشنده
   ══════════════════════════════════════════ */
.fv-seller-hero__specialty {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.fv-seller-hero__spec-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(201,162,39,.14);
    color: var(--gold-lite);
    border: 1px solid rgba(201,162,39,.35);
    white-space: nowrap;
}

/* ── دکمه ایتا ── */
.fv-btn--eitaa {
    background: #7B2D8B;
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--r-md);
    padding: 11px 20px;
    transition: background .15s, transform .15s;
}
.fv-btn--eitaa:hover { background: #6a2478; transform: translateY(-1px); }

/* ── ایتا در سایدبار ── */
.fv-seller-social--eitaa { background: #7B2D8B; }

/* ── لوگو در hero — object-fit بهتر برای لوگو ── */
.fv-seller-hero__logo-img {
    object-fit: contain;
    background: rgba(255,255,255,.08);
    padding: 6px;
}

/* ── موبایل — دکمه‌های تماس ── */
@media (max-width: 480px) {
    .fv-seller-hero__ctas {
        gap: 8px;
    }
    .fv-seller-hero__ctas .fv-btn {
        font-size: 13px;
        height: 38px;
        padding-inline: 14px;
        flex: 1 1 calc(50% - 4px);
        min-width: 100px;
        justify-content: center;
    }
    .fv-seller-hero {
        padding: 28px 0 24px;
    }
}

/* ══════════════════════════════════════════
   دکمه‌های مسنجر — آیکون واقعی
   ══════════════════════════════════════════ */
.fv-btn--messenger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding-inline: 16px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    border: none;
    font-family: 'Vazirmatn', Tahoma, system-ui, sans-serif;
    transition: opacity .15s, transform .1s;
    color: #fff;
    text-decoration: none;
}
.fv-btn--messenger img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
}
.fv-btn--messenger:hover { opacity: .88; transform: translateY(-1px); }

.fv-btn--whatsapp  { background: #25D366; }
.fv-btn--eitaa     { background: #7B2D8B; }
.fv-btn--telegram  { background: #0088CC; }
.fv-btn--rubika    { background: #F5671B; }
.fv-btn--bale      { background: #1A6FB5; }
.fv-btn--instagram { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }

/* ── ایتا و روبیکا در سایدبار ── */
.fv-seller-social--eitaa    { background: #7B2D8B; }
.fv-seller-social--rubika   { background: #F5671B; }
.fv-seller-social--bale     { background: #1A6FB5; }
.fv-seller-social--whatsapp { background: #25D366; }

/* آیکون در سایدبار */
.fv-seller-social img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════
   پس‌زمینه hero فروشنده
   ══════════════════════════════════════════ */
.fv-seller-hero--has-bg .fv-seller-hero__bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* روی پس‌زمینه — گرادیان تیره‌تر بشه */
.fv-seller-hero--has-bg .fv-seller-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
        rgba(18,7,30,.88) 0%,
        rgba(30,13,50,.75) 55%,
        rgba(18,7,30,.65) 100%
    );
    z-index: 1;
}

.fv-seller-hero--has-bg .fv-seller-hero__bg::before {
    z-index: 2;
}

.fv-seller-hero--has-bg .fv-seller-hero__inner {
    z-index: 3;
}

/* ══════════════════════════════════════════
   موبایل — دکمه‌های مسنجر
   ══════════════════════════════════════════ */
@media (max-width: 600px) {
    .fv-seller-hero__ctas {
        gap: 7px;
    }
    .fv-btn--messenger,
    .fv-seller-hero__ctas .fv-btn {
        font-size: 12.5px;
        height: 38px;
        padding-inline: 12px;
        flex: 1 1 calc(50% - 4px);
        min-width: 90px;
        justify-content: center;
    }
}

/* ══════════════════════════════════════════
   نقشه embed نشان
   ══════════════════════════════════════════ */
.fv-seller-map-embed {
    margin: 0 18px 16px;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--line);
}

.fv-seller-map-embed iframe {
    width: 100% !important;
    height: 220px !important;
    border: none !important;
    display: block;
}

@media (max-width: 768px) {
    .fv-seller-map-embed iframe {
        height: 200px !important;
    }
}

/* ══════════════════════════════════════════
   موبایل — اصلاح کامل
   ══════════════════════════════════════════ */

/* جلوگیری از overflow کلی */
.fv-seller-page,
.fv-seller-hero,
.fv-seller-hero__inner,
.fv-seller-hero__ctas {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    /* hero */
    .fv-seller-hero { padding: 28px 0 24px; }
    .fv-seller-hero__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 0 4px;
    }
    .fv-seller-hero__info { width: 100%; }
    .fv-seller-hero__stats  { justify-content: center; flex-wrap: wrap; gap: 12px; }
    .fv-seller-hero__meta-row { justify-content: center; }

    /* دکمه‌های تماس موبایل */
    .fv-seller-hero__ctas {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }
    .fv-seller-hero__ctas .fv-btn,
    .fv-seller-hero__ctas .fv-btn--messenger {
        width: 100%;
        height: 40px;
        font-size: 13px;
        padding-inline: 10px;
        justify-content: center;
        border-radius: 10px;
        gap: 6px;
    }
    .fv-seller-hero__ctas .fv-btn--messenger img {
        width: 16px;
        height: 16px;
    }

    /* لوگو */
    .fv-seller-hero__logo-img,
    .fv-seller-hero__logo-fallback {
        width: 90px;
        height: 90px;
    }

    /* sidebar */
    .fv-seller-layout { grid-template-columns: 1fr; }
    .fv-seller-sidebar { grid-template-columns: 1fr; order: 0; }
    .fv-seller-ad-slot { display: none; }
    .fv-seller-gallery { grid-template-columns: repeat(3, 1fr); }
    .fv-seller-products-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
    .fv-seller-hero__ctas {
        grid-template-columns: 1fr 1fr;
        max-width: 320px;
    }
    .fv-seller-gallery { grid-template-columns: repeat(2, 1fr); }
    .fv-seller-products-grid { grid-template-columns: 1fr !important; }
}
