/* =====================================================================
   ایتکو — استایل بخش فروشگاه
   ===================================================================== */

/* ---------------------------------------------------------------------
   هدر
   --------------------------------------------------------------------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }

.topbar { background: var(--brand); color: #fff; font-size: 12.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 36px; gap: 12px; }
.topbar__note { opacity: .92; }
.topbar__links { display: flex; gap: 16px; }
.topbar__links a { color: #fff; opacity: .92; }
.topbar__links a:hover { opacity: 1; }

/* --- باکس شناور نرخ لحظه‌ای ارز (گوشهٔ چپ‌پایین صفحه) --- */
.rate-box {
    position: fixed; left: 16px; bottom: 16px; z-index: 55;
    width: 216px; max-width: calc(100vw - 32px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .38);
    overflow: hidden; direction: rtl;
    animation: rate-box-in .35s ease both;
}
@keyframes rate-box-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.rate-box__head {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff; cursor: pointer; user-select: none; -webkit-user-select: none;
}
.rate-box__title { font-weight: 800; font-size: 12.5px; letter-spacing: .2px; white-space: nowrap; }
.rate-box__live {
    width: 8px; height: 8px; border-radius: 50%; background: #7cffb2;
    margin-inline-start: auto;
    animation: rate-live 1.8s ease-out infinite;
}
.rate-box__chevron { font-size: 11px; line-height: 1; transition: transform .2s ease; }
.rate-box.is-collapsed .rate-box__chevron { transform: rotate(180deg); }
.rate-box.is-collapsed .rate-box__body { display: none; }
.rate-box.is-collapsed .rate-box__live { animation: none; }
@keyframes rate-live {
    0%   { box-shadow: 0 0 0 0 rgba(124, 255, 178, .6); }
    70%  { box-shadow: 0 0 0 7px rgba(124, 255, 178, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 255, 178, 0); }
}

.rate-box__list { list-style: none; margin: 0; padding: 5px; }
.rate-row {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 9px; border-radius: 9px;
}
.rate-row + .rate-row { border-top: 1px solid var(--line-soft); }
.rate-row__label { font-weight: 700; color: var(--ink); min-width: 34px; }
.rate-row__value { margin-inline-start: auto; display: inline-flex; align-items: baseline; gap: 4px; }
.rate-row__num { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.rate-row__unit { font-size: 10.5px; color: var(--muted); }
.rate-row__chg { font-size: 11px; font-variant-numeric: tabular-nums; min-width: 44px; text-align: left; }
.rate-row__chg--up   { color: #17915b; }
.rate-row__chg--down { color: #d23b3b; }

.rate-box__foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 12px 9px; font-size: 10px; color: var(--muted);
}
.rate-box__src { opacity: .85; }
.rate-box.is-stale { opacity: .82; }

/* روی موبایل جمع‌وجورتر تا فضای صفحه را کمتر بگیرد */
@media (max-width: 560px) {
    .rate-box { width: 156px; left: 8px; bottom: 8px; border-radius: 12px; }
    .rate-box__head { padding: 6px 10px; gap: 6px; }
    .rate-box__title { font-size: 10.5px; letter-spacing: 0; }
    .rate-box__live { width: 6px; height: 6px; }
    .rate-box__list { padding: 3px; }
    .rate-row { padding: 6px 7px; gap: 5px; }
    .rate-row__label { min-width: 26px; font-size: 12px; white-space: nowrap; }
    .rate-row__num { font-size: 12.5px; white-space: nowrap; }
    .rate-row__unit { display: none; }
    .rate-row__chg { display: none; }    /* درصد تغییر فقط دسکتاپ؛ روی موبایل فقط عدد */
    .rate-box__foot { display: none; }    /* صرفه‌جویی در ارتفاع */
}

.header-main {
    display: flex; align-items: center; gap: 12px;
    padding-top: 12px; padding-bottom: 12px;
}

.menu-toggle { display: inline-flex; }

.search { flex: 1; display: flex; position: relative; max-width: 520px; }
.search input {
    width: 100%; font-family: inherit; font-size: 14px;
    padding: 10px 40px 10px 14px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.search button {
    position: absolute; inset-inline-start: 6px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--muted); cursor: pointer;
    display: flex; align-items: center; padding: 4px;
}
.search button:hover { color: var(--brand); }

.header-actions { display: flex; gap: 2px; margin-inline-start: auto; }

/* ---------------------------------------------------------------------
   مگا منو
   --------------------------------------------------------------------- */
.mega-nav { border-top: 1px solid var(--line-soft); background: var(--surface); }
.mega-nav__list { display: flex; gap: 2px; }

.mega-nav__item { position: relative; }
.mega-nav__item > a {
    display: block; padding: 12px 14px;
    font-size: 14px; font-weight: 600; color: var(--ink);
    border-bottom: 2px solid transparent;
}
.mega-nav__item > a:hover { color: var(--brand); text-decoration: none; border-bottom-color: var(--brand); }

.mega-panel {
    position: absolute; top: 100%; inset-inline-start: 0; z-index: 40;
    min-width: 230px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow); padding: 10px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.mega-nav__item:hover .mega-panel,
.mega-nav__item:focus-within .mega-panel {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-panel a {
    display: block; padding: 8px 12px; border-radius: var(--radius-sm);
    font-size: 13.5px; color: var(--ink);
}
.mega-panel a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }

/* ---------------------------------------------------------------------
   بخش قهرمان (Hero)
   --------------------------------------------------------------------- */
.hero {
    background: linear-gradient(135deg, var(--brand) 0%, #0A5540 100%);
    color: #fff; padding: 52px 0;
}
.hero__text { max-width: 640px; }
.hero h1 { font-size: clamp(24px, 5vw, 38px); margin-bottom: 12px; color: #fff; }
.hero p  { font-size: clamp(14.5px, 2.2vw, 17px); opacity: .92; margin-bottom: 24px; }
.hero .btn--primary { background: #fff; color: var(--brand); }
.hero .btn--primary:hover { background: var(--brand-soft); }

/* ---------------------------------------------------------------------
   بخش‌ها
   --------------------------------------------------------------------- */
.section { padding: 40px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }

.section__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 20px;
}
.section__head h2 { margin: 0; font-size: 19px; }

/* ---------------------------------------------------------------------
   دسته‌بندی‌ها
   --------------------------------------------------------------------- */
.category-grid {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.category-card {
    display: flex; align-items: center; justify-content: center;
    min-height: 92px; padding: 16px 12px; text-align: center;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); color: var(--ink);
    font-weight: 600; font-size: 14px;
    transition: border-color .16s ease, color .16s ease;
}
.category-card:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* دسته با تصویر پس‌زمینه (از پنل مدیریت آپلود می‌شود) */
.category-card--bg {
    position: relative; overflow: hidden; min-height: 116px;
    background-size: cover; background-position: center;
    color: #fff; border-color: transparent;
}
.category-card--bg::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(22, 33, 28, .18) 0%, rgba(22, 33, 28, .68) 100%);
    transition: background .16s ease;
}
.category-card--bg .category-card__name {
    position: relative; z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.category-card--bg:hover { color: #fff; border-color: transparent; }
.category-card--bg:hover::before {
    background: linear-gradient(180deg, rgba(11, 110, 79, .35) 0%, rgba(11, 110, 79, .78) 100%);
}

/* ---------------------------------------------------------------------
   اسلایدر صفحه اصلی
   --------------------------------------------------------------------- */
.hero-slider {
    position: relative; margin: 16px 0 4px;
    border-radius: var(--radius); overflow: hidden;
    background: var(--line-soft);
}
.hero-slider__track {
    display: flex;
    transition: transform .45s ease;
    will-change: transform;
}
.hero-slide {
    position: relative; flex: 0 0 100%; width: 100%;
    display: block; color: inherit;
}
.hero-slide img {
    width: 100%; height: auto; display: block;
    aspect-ratio: 3 / 1; object-fit: cover;
}
.hero-slide:hover { text-decoration: none; }

/* بدون جاوااسکریپت: اسلایدها زیر هم می‌مانند و ترنسفورم اثری ندارد */
.hero-slider:not([data-slider-ready]) .hero-slider__track { flex-direction: column; }

.hero-slider__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    border: none; cursor: pointer;
    background: rgba(255, 255, 255, .85); color: var(--ink);
    font-size: 24px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow); transition: background .15s ease;
}
.hero-slider__nav:hover { background: #fff; }
.hero-slider__nav--prev { right: 12px; }
.hero-slider__nav--next { left: 12px; }

.hero-slider__dots {
    position: absolute; bottom: 12px; inset-inline: 0;
    display: flex; justify-content: center; gap: 7px;
}
.hero-slider__dot {
    width: 9px; height: 9px; padding: 0; border-radius: 50%;
    border: none; cursor: pointer;
    background: rgba(255, 255, 255, .55); transition: background .15s ease, width .15s ease;
}
.hero-slider__dot.is-active { background: #fff; width: 22px; border-radius: 5px; }

/* ---------------------------------------------------------------------
   کارت محصول
   --------------------------------------------------------------------- */
.product-grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}
.product-card {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; color: var(--ink);
    transition: border-color .16s ease, box-shadow .16s ease;
}
.product-card:hover { border-color: var(--brand); box-shadow: var(--shadow); text-decoration: none; }

.product-card__media { position: relative; aspect-ratio: 1; background: var(--line-soft); }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; }
.product-card__placeholder {
    display: flex; align-items: center; justify-content: center; height: 100%;
    color: var(--muted); font-size: 12.5px;
}
.product-card__off, .product-card__used {
    position: absolute; top: 8px; padding: 2px 9px;
    border-radius: 20px; font-size: 11.5px; font-weight: 700;
}
.product-card__off  { inset-inline-start: 8px; background: var(--danger); color: #fff; }
.product-card__used { inset-inline-end: 8px; background: var(--accent-soft); color: var(--accent); }

.product-card__body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__name {
    margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__price { margin-top: auto; display: flex; flex-direction: column; gap: 1px; }
.product-card__old {
    font-size: 12px; color: var(--muted); text-decoration: line-through;
}
.product-card__now { font-size: 14.5px; font-weight: 700; color: var(--ink); }

/* ---------------------------------------------------------------------
   مزیت‌ها
   --------------------------------------------------------------------- */
.feature-grid {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.feature h3 { font-size: 15px; margin-bottom: 4px; }
.feature p  { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---------------------------------------------------------------------
   صفحات ثابت
   --------------------------------------------------------------------- */
.static-page {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px 24px; max-width: 800px; margin: 0 auto;
}
.static-page h1 { font-size: 22px; margin-bottom: 18px; }
.static-page__content { line-height: 2.1; }
.static-page__content h2 { font-size: 17px; margin-top: 24px; }
.static-page__content ul { list-style: disc; padding-inline-start: 22px; margin-bottom: 1em; }

/* ---------------------------------------------------------------------
   فوتر
   --------------------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer__grid {
    display: grid; gap: 28px; padding-top: 36px; padding-bottom: 28px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.site-footer h3 { font-size: 14px; margin-bottom: 12px; }
/* لینک‌های فوتر (درباره ما، تماس با ما و ...) افقی کنار هم و در صورت نبود جا، شکسته می‌شوند */
.site-footer ul { display: flex; flex-flow: row wrap; gap: 8px 16px; }
.site-footer a { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.site-footer a:hover { color: var(--brand); }
.site-footer__about { color: var(--muted); font-size: 13.5px; margin-top: 12px; }

.trust-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 96px; height: 96px; border: 1px dashed var(--line);
    border-radius: var(--radius); color: var(--muted);
    font-size: 11px; text-align: center; padding: 8px; line-height: 1.6;
}

.site-footer__bottom {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    border-top: 1px solid var(--line-soft);
    padding-top: 16px; padding-bottom: 16px;
    font-size: 12.5px; color: var(--muted);
}

/* ---------------------------------------------------------------------
   موبایل
   --------------------------------------------------------------------- */
@media (max-width: 860px) {
    .topbar__note { display: none; }
    .topbar__inner { justify-content: flex-end; }

    /* منو به صورت کشویی نمایش داده می‌شود */
    .mega-nav { display: none; border-top: 1px solid var(--line); }
    .mega-nav.is-open { display: block; }
    .mega-nav__list { flex-direction: column; gap: 0; padding: 8px 0; }
    .mega-nav__item > a { padding: 11px 4px; border-bottom: 1px solid var(--line-soft); }
    .mega-nav__item > a:hover { border-bottom-color: var(--line-soft); }

    .mega-panel {
        position: static; opacity: 1; visibility: visible; transform: none;
        border: none; box-shadow: none; padding: 4px 0 8px 16px;
        min-width: 0; display: none;
    }
    .mega-nav__item.is-expanded .mega-panel { display: block; }
    .mega-panel a { font-size: 13px; padding: 7px 12px; }
}

@media (min-width: 861px) {
    .menu-toggle { display: none; }
    .header-main { padding-top: 16px; padding-bottom: 16px; gap: 24px; }
}

@media (max-width: 600px) {
    .header-main { flex-wrap: wrap; }
    .search { order: 3; flex-basis: 100%; max-width: none; }
    .hero { padding: 36px 0; }
    .section { padding: 28px 0; }
}

/* =====================================================================
   مرحله ۳ — دسته‌بندی، محصول، جستجو و سبد خرید
   ===================================================================== */

/* ---- مسیر راهنما ---- */
.breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
    padding: 16px 0; font-size: 13px; color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

.page-title { font-size: 21px; margin: 16px 0; }

/* ---- چیدمان صفحه دسته‌بندی ---- */
.catalog { display: grid; grid-template-columns: 1fr; gap: 20px; padding-bottom: 40px; }
@media (min-width: 900px) { .catalog { grid-template-columns: 248px 1fr; } }

.catalog__head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
}
.catalog__head h1 { margin: 0 0 2px; font-size: 20px; }
.catalog__count { font-size: 13px; color: var(--muted); }
.catalog__tools { display: flex; align-items: center; gap: 10px; }

.sort { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.sort select {
    font-family: inherit; font-size: 13.5px; padding: 7px 10px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink);
}

/* ---- نوار فیلتر ---- */
.filters {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px; align-self: start;
}
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.filters__head h2 { margin: 0; font-size: 15px; }
.filters__close {
    display: none; background: none; border: none; font-size: 18px;
    color: var(--muted); cursor: pointer; padding: 4px 8px;
}

.filter-group { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.filter-group:first-of-type { border-top: none; padding-top: 0; }
.filter-group h3 { font-size: 13.5px; margin-bottom: 9px; }

.filter-links { display: flex; flex-direction: column; gap: 6px; }
.filter-links a { font-size: 13.5px; color: var(--ink); }
.filter-links a:hover { color: var(--brand); }

.filter-scroll { max-height: 210px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }

.check {
    display: flex; align-items: center; gap: 8px;
    font-size: 13.5px; cursor: pointer; padding: 3px 0;
}
.check input { accent-color: var(--brand); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }

.swatch {
    display: inline-block; width: 15px; height: 15px; border-radius: 50%;
    border: 1px solid var(--line); flex-shrink: 0;
}

.price-inputs { display: flex; gap: 8px; }
.price-inputs input {
    width: 100%; font-family: inherit; font-size: 13px; padding: 8px 10px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink); text-align: center;
}
.filter-hint { display: block; margin-top: 7px; font-size: 11.5px; color: var(--muted); }

/* ---- اسلایدر دو‌سرِ کشویی قیمت ---- */
.price-slider {
    position: relative;
    height: 30px;
    margin: 4px 8px 8px;
    direction: ltr; /* محور عددی از چپ (ارزان) به راست (گران) */
}
.price-slider__track {
    position: absolute;
    inset-block-start: 50%; inset-inline: 0;
    height: 5px; transform: translateY(-50%);
    background: var(--line);
    border-radius: 999px;
}
.price-slider__fill {
    position: absolute;
    inset-block: 0;
    background: var(--brand);
    border-radius: 999px;
    box-shadow: 0 0 8px color-mix(in srgb, var(--brand) 45%, transparent);
}
/* هر دو ورودی روی هم قرار می‌گیرند؛ فقط دستگیره‌ها فعال‌اند */
.price-slider__range {
    position: absolute;
    inset-block-start: 0; inset-inline-start: 0;
    width: 100%; height: 30px; margin: 0; padding: 0;
    background: none; pointer-events: none;
    -webkit-appearance: none; appearance: none;
}
.price-slider__range--min { z-index: 3; }
.price-slider__range--max { z-index: 4; }
.price-slider__range:focus { outline: none; }
.price-slider__range::-webkit-slider-runnable-track { background: none; border: none; }
.price-slider__range::-moz-range-track { background: none; border: none; }
.price-slider__range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--surface); border: 3px solid var(--brand);
    cursor: pointer; pointer-events: auto;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
}
.price-slider__range::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--surface); border: 3px solid var(--brand);
    cursor: pointer; pointer-events: auto;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
}
.price-slider__values {
    display: flex; align-items: center; justify-content: space-between;
    gap: 6px; margin-bottom: 10px;
    font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.price-slider__values span:nth-child(2) { font-weight: 400; color: var(--muted); }

.filter-actions { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }

/* ---- صفحه‌بندی ---- */
.pagination {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
    padding: 28px 0 8px;
}
.pagination__link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 600;
}
.pagination__link:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination__link.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination__gap { display: inline-flex; align-items: center; padding: 0 4px; color: var(--muted); }

/* ---- صفحه محصول ---- */
.product-detail {
    display: grid; grid-template-columns: 1fr; gap: 24px;
    padding-bottom: 32px;
}
@media (min-width: 860px) { .product-detail { grid-template-columns: 1fr 1fr; gap: 36px; } }

.gallery__main {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); aspect-ratio: 1; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }

.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumb {
    flex: 0 0 66px; width: 66px; height: 66px; padding: 3px; cursor: pointer;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); overflow: hidden;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb.is-active { border-color: var(--brand); }

.product-info h1 { font-size: 20px; line-height: 1.6; }
.product-info__meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    font-size: 13px; color: var(--muted); margin-bottom: 14px;
}
/* توضیح کوتاه محصول — کادر تمیز با نوار رنگی برند */
.short-desc {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 2px 0 4px;
    padding: 12px 14px;
    background: var(--brand-soft);
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--brand);
    border-radius: 12px;
}
.short-desc__icon {
    flex-shrink: 0; color: var(--brand); line-height: 0; margin-top: 1px;
}
.short-desc__text {
    margin: 0; color: var(--ink); font-size: 14px; line-height: 2;
    text-align: justify; text-align-last: right;
}

.badge--new  { background: var(--brand-soft); color: var(--brand); }
.badge--used { background: var(--accent-soft); color: var(--accent); }
.rating { color: var(--accent); font-weight: 700; }

.buy-box {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px; margin-top: 18px;
    display: flex; flex-direction: column; gap: 16px;
}

.option-group { display: flex; flex-direction: column; gap: 8px; }
.option-group__label { font-size: 13.5px; font-weight: 700; }
.option-values { display: flex; flex-wrap: wrap; gap: 8px; }

.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__box {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); font-size: 13.5px; cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.option__box:hover { border-color: var(--brand); }
.option input:checked + .option__box {
    border-color: var(--brand); background: var(--brand-soft); font-weight: 700;
}
.option input:focus-visible + .option__box { outline: 2px solid var(--brand); outline-offset: 2px; }

.price-box { display: flex; flex-direction: column; gap: 2px; }
.price-box__old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.price-box__now { font-size: 22px; font-weight: 800; }
.price-box__from { font-size: 15px; font-weight: 700; color: var(--muted); }
.price-box__hint { font-size: 12.5px; color: var(--accent); }

.stock-line { font-size: 13.5px; min-height: 20px; }
.in-stock  { color: var(--ok); font-weight: 600; }
.low-stock { color: var(--accent); font-weight: 700; }
.out-stock { color: var(--danger); font-weight: 600; }

.buy-actions { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.qty { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.qty input {
    width: 78px; font-family: inherit; font-size: 14px; padding: 10px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink); text-align: center;
}
.qty--sm input { width: 62px; padding: 6px; font-size: 13px; }
.buy-actions .btn { flex: 1; min-width: 170px; }
.buy-note { margin: 0; font-size: 12.5px; color: var(--muted); }

/* نوار شورتکاتِ بخش‌های محصول — چسبان زیر هدر، پرش نرم به بخش‌ها */
.product-nav {
    position: sticky; top: var(--header-h, 60px); z-index: 20;
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 16px; padding: 8px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow);
}
.product-nav__link {
    padding: 7px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 700; color: var(--muted);
    white-space: nowrap; transition: background .15s ease, color .15s ease;
}
.product-nav__link:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.product-nav__link.is-active {
    background: var(--brand); color: #fff;
    box-shadow: 0 0 12px color-mix(in srgb, var(--brand) 45%, transparent);
}
@media (max-width: 600px) {
    .product-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .product-nav::-webkit-scrollbar { display: none; }
}

/* هر بخش هنگام پرش، کمی پایین‌تر از هدرِ چسبان بایستد */
.panel-block[id], .section[id] { scroll-margin-top: calc(var(--header-h, 60px) + 74px); }

.panel-block {
    position: relative;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.panel-block h2 {
    font-size: 16px; margin-bottom: 14px; padding-bottom: 10px;
    padding-inline-start: 12px; position: relative;
    border-bottom: 1px solid var(--line-soft);
}
.panel-block h2::before {
    content: ""; position: absolute; inset-inline-start: 0; top: 1px; bottom: 9px;
    width: 4px; border-radius: 3px;
    background: linear-gradient(var(--brand), var(--accent));
    box-shadow: 0 0 10px color-mix(in srgb, var(--brand) 55%, transparent);
}
.rich-text { line-height: 2.1; text-align: justify; text-align-last: right; }
.rich-text ul { list-style: disc; padding-inline-start: 22px; }
/* رسانه‌های درج‌شده در توضیحات محصول همیشه واکنش‌گرا بمانند */
.rich-text img,
.rich-text video {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 14px auto;
}

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td {
    text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line-soft);
}
.spec-table th { width: 34%; color: var(--muted); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* ---- نظرات ---- */
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review { padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.review:last-child { border-bottom: none; padding-bottom: 0; }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; }
.review__stars { color: var(--accent); letter-spacing: 1px; }
.review__date { color: var(--muted); font-size: 12.5px; }
.review__title { font-size: 14px; margin: 8px 0 4px; }
.review__text { margin: 6px 0 0; font-size: 14px; }
.review__reply {
    margin-top: 10px; padding: 10px 14px; background: var(--brand-soft);
    border-radius: var(--radius-sm); font-size: 13.5px;
}

/* ---- سبد خرید ---- */
.cart { display: grid; grid-template-columns: 1fr; gap: 18px; padding-bottom: 40px; }
@media (min-width: 900px) { .cart { grid-template-columns: 1fr 306px; } }

.cart__items { display: flex; flex-direction: column; gap: 12px; }

.cart-item {
    display: grid; grid-template-columns: 92px 1fr; gap: 14px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 14px;
}
@media (min-width: 640px) { .cart-item { grid-template-columns: 92px 1fr auto; } }
.cart-item.has-problem { border-color: #EBC9C4; background: #FEFAF9; }

.cart-item__media {
    width: 92px; height: 92px; background: var(--line-soft);
    border-radius: var(--radius-sm); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.cart-item__media img { width: 100%; height: 100%; object-fit: contain; }

.cart-item__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-item__name { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.cart-item__variant { font-size: 12.5px; color: var(--muted); }
.cart-item__problem { font-size: 12.5px; color: var(--danger); font-weight: 600; }
.cart-item__controls { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; }

.cart-item__price { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.cart-item__unit { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.cart-item__line { font-size: 12px; color: var(--muted); white-space: nowrap; }

.cart-summary {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px; align-self: start;
    position: sticky; top: 16px;
}
.cart-summary h2 { font-size: 15px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.cart-summary__row {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 7px 0; font-size: 14px;
}
.cart-summary__note {
    margin: 12px 0; padding: 11px 13px; background: var(--bg);
    border-radius: var(--radius-sm); font-size: 12.5px; color: var(--muted); line-height: 1.9;
}
.cart-summary__login { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }

.btn.is-disabled { pointer-events: none; opacity: .55; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- نشان تعداد سبد ---- */
.icon-btn--cart { position: relative; }
.cart-badge {
    position: absolute; top: 2px; inset-inline-start: 2px;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--accent); color: #fff;
    border-radius: 20px; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* ---- پیشنهاد جستجو ---- */
.search { position: relative; }
.suggest {
    position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 60;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    max-height: 380px; overflow-y: auto; padding: 6px;
}
.suggest__item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink);
}
.suggest__item:hover { background: var(--brand-soft); text-decoration: none; }
.suggest__item img { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.suggest__name { flex: 1; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__price { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* ---- پیام شناور ---- */
.toast {
    position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 200;
    padding: 12px 20px; border-radius: var(--radius);
    background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
    box-shadow: 0 8px 24px -10px rgba(22,33,28,.5);
    opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease;
    max-width: calc(100vw - 40px);
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast--error { background: var(--danger); }

/* ---- فیلتر در موبایل ---- */
@media (max-width: 899px) {
    .filters {
        /* در صفحه راست‌چین، inline-start همان لبه راست است؛ پس کشوی فیلتر
           از سمت راست وارد می‌شود و با translateX(100%) کاملاً از صفحه بیرون می‌رود. */
        position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 90;
        width: min(320px, 88vw); border-radius: 0; overflow-y: auto;
        transform: translateX(100%); transition: transform .2s ease;
    }
    .filters.is-open { transform: translateX(0); }
    .filters__close { display: block; }
}
@media (min-width: 900px) {
    .filters-toggle { display: none; }
}

/* =====================================================================
   مرحله ۴ — حساب کاربری، تسویه‌حساب و پرداخت
   ===================================================================== */

/* ---- کارت‌های ورود / ثبت‌نام / پرداخت تکمیلی ---- */
.auth-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px 26px;
    max-width: 460px; margin: 32px auto; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 20px; margin-bottom: 6px; }
.auth-card__sub { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.auth-card__foot { text-align: center; margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }

.code-input {
    text-align: center; font-size: 26px; font-weight: 700;
    letter-spacing: 10px; font-family: var(--font-mono);
}

.link-button {
    background: none; border: none; padding: 0; cursor: pointer;
    color: var(--brand); font-family: inherit; font-size: inherit; text-decoration: underline;
}

/* ---- تسویه‌حساب ---- */
.checkout { display: grid; grid-template-columns: 1fr; gap: 18px; padding-bottom: 40px; }
@media (min-width: 900px) { .checkout { grid-template-columns: 1fr 320px; align-items: start; } }

.checkout__summary {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px; position: sticky; top: 16px;
}
.checkout__summary h2 {
    font-size: 15px; margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid var(--line-soft);
}
.checkout__secure { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

.checkout-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.checkout-items li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.checkout-items__name { flex: 1; line-height: 1.7; }
.checkout-items__name small { display: block; color: var(--muted); font-size: 11.5px; }
.checkout-items__qty { color: var(--muted); white-space: nowrap; }
.checkout-items__price { white-space: nowrap; font-weight: 600; }

.cart-summary__row--total {
    border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px;
    font-weight: 700; font-size: 15px;
}

.delivery-option {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 14px; margin-bottom: 10px; cursor: pointer;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color .15s ease, background-color .15s ease;
}
.delivery-option:hover { border-color: var(--brand); }
.delivery-option input { margin-top: 3px; accent-color: var(--brand); width: 17px; height: 17px; }
.delivery-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.delivery-option__body { display: flex; flex-direction: column; gap: 3px; }
.delivery-option__title { font-weight: 700; font-size: 14.5px; }
.delivery-option__desc { font-size: 12.5px; color: var(--muted); line-height: 1.9; }

/* ---- نتیجه پرداخت ---- */
.result-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 34px 26px; text-align: center;
    max-width: 520px; margin: 32px auto; box-shadow: var(--shadow);
}
.result-card__icon {
    width: 62px; height: 62px; margin: 0 auto 16px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 700;
}
.result-card--ok   .result-card__icon { background: var(--ok-soft);     color: var(--ok); }
.result-card--fail .result-card__icon { background: var(--danger-soft); color: var(--danger); }
.result-card h1 { font-size: 20px; margin-bottom: 6px; }
.result-card__msg { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.result-card__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

.result-facts {
    display: flex; flex-direction: column; gap: 1px; margin: 0 0 6px;
    background: var(--line); border: 1px solid var(--line);
    border-radius: var(--radius-sm); overflow: hidden; text-align: right;
}
.result-facts > div {
    display: flex; justify-content: space-between; gap: 12px;
    background: var(--surface); padding: 10px 14px; font-size: 13.5px;
}
.result-facts dt { color: var(--muted); margin: 0; }
.result-facts dd { margin: 0; font-weight: 600; }
.amount-highlight { color: var(--brand); font-weight: 800; }

.notice--inline { margin: 16px 0 0; text-align: right; font-size: 13px; line-height: 2; }

/* ---- لیست سفارش‌ها ---- */
.account-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; margin-top: 8px;
}

.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-row {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 14px 16px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); color: var(--ink); background: var(--surface);
    transition: border-color .15s ease;
}
.order-row:hover { border-color: var(--brand); text-decoration: none; }
.order-row__num { font-weight: 700; font-size: 13.5px; }
.order-row__date { color: var(--muted); font-size: 12.5px; }
.order-row__total { margin-inline-start: auto; font-weight: 700; white-space: nowrap; }

.order-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; margin: 8px 0 18px;
}
.order-head__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge--lg { font-size: 13px; padding: 5px 14px; }

.order-detail { display: grid; grid-template-columns: 1fr; gap: 16px; padding-bottom: 40px; }
@media (min-width: 900px) { .order-detail { grid-template-columns: 1fr 320px; align-items: start; } }

.order-items { display: flex; flex-direction: column; gap: 12px; }
.order-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.order-item__media {
    width: 64px; height: 64px; background: var(--line-soft);
    border-radius: var(--radius-sm); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.order-item__media img { width: 100%; height: 100%; object-fit: contain; }
.order-item__body { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; min-width: 0; }
.order-item__total { font-weight: 700; white-space: nowrap; font-size: 13.5px; }

/* ---- خط زمانی پیگیری ---- */
.timeline { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline li {
    position: relative; display: flex; gap: 12px;
    padding: 0 0 18px 0; padding-inline-start: 22px;
}
.timeline li::before {
    content: ""; position: absolute; inset-inline-start: 5px; top: 14px; bottom: 0;
    width: 1px; background: var(--line);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline__dot {
    position: absolute; inset-inline-start: 0; top: 5px;
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--brand-soft); border: 2px solid var(--brand);
}
.timeline strong { font-size: 13.5px; display: block; }
.timeline__note { display: block; font-size: 12.5px; color: var(--muted); }
.timeline__date { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.mini-title { font-size: 13px; margin: 16px 0 8px; color: var(--muted); }
.payment-list { display: flex; flex-direction: column; gap: 8px; }
.payment-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 12.5px; padding: 8px 0; border-bottom: 1px solid var(--line-soft);
}
.payment-list li:last-child { border-bottom: none; }

/* =====================================================================
   مرحله ۵ — حساب کاربری، علاقه‌مندی و نظرات
   ===================================================================== */

/* ---- دکمه علاقه‌مندی روی کارت محصول ---- */
.product-card-wrap { position: relative; display: flex; }
.product-card-wrap .product-card { flex: 1; }
.wish-form { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; }
.wish-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; padding: 0; cursor: pointer;
    background: rgba(255, 255, 255, .92); color: var(--muted);
    border: 1px solid var(--line); border-radius: 50%;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.wish-btn:hover { color: var(--danger); border-color: var(--danger); }
.wish-btn.is-on { color: var(--danger); border-color: var(--danger); background: #fff; }
.wish-btn.is-on svg path { fill: currentColor; }

/* کارت کارکرده نشانش را جابه‌جا می‌کند تا زیر قلب نیفتد */
.product-card-wrap .product-card__used { inset-inline-end: 46px; }

/* ---- چیدمان حساب کاربری ---- */
.account { display: grid; grid-template-columns: 1fr; gap: 18px; padding-bottom: 40px; }
@media (min-width: 860px) { .account { grid-template-columns: 210px 1fr; align-items: start; } }

.account-nav {
    display: flex; flex-direction: column; gap: 2px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 10px;
}
.account-nav__link {
    display: block; padding: 10px 13px; border-radius: var(--radius-sm);
    font-size: 14px; color: var(--ink); text-align: right;
    background: none; border: none; width: 100%; cursor: pointer; font-family: inherit;
}
.account-nav__link:hover { background: var(--line-soft); text-decoration: none; }
.account-nav__link.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.account-nav__logout { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.account-nav__link--exit { color: var(--danger); }
.account-nav__link--exit:hover { background: var(--danger-soft); }

@media (max-width: 859px) {
    .account-nav { flex-direction: row; flex-wrap: wrap; }
    .account-nav__link { width: auto; }
    .account-nav__logout { margin: 0; padding: 0; border: none; }
}

.account__main { min-width: 0; }

.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.account-stat {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px; text-align: center; color: var(--ink);
    transition: border-color .15s ease;
}
.account-stat:hover { border-color: var(--brand); text-decoration: none; }
.account-stat__value { display: block; font-size: 21px; font-weight: 800; color: var(--brand); }
.account-stat__label { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.to-review { display: flex; flex-direction: column; gap: 8px; }
.to-review li { font-size: 13.5px; }

/* ---- دفترچه آدرس ---- */
.address-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.address-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px; font-size: 13.5px;
}
.address-card.is-default { border-color: var(--brand); }
.address-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.address-card__actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---- علاقه‌مندی‌ها ---- */
.wishlist-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.wishlist-item { display: flex; flex-direction: column; gap: 8px; }
.wishlist-item__note { margin: 0; font-size: 12px; color: var(--danger); text-align: center; }

/* ---- نظرات ---- */
.review__pending { margin: 8px 0 0; font-size: 12.5px; color: var(--warn); }

.review-form { display: flex; flex-direction: column; gap: 14px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label {
    font-size: 27px; line-height: 1; color: var(--line); cursor: pointer;
    transition: color .12s ease;
}
/* در RTL ستاره‌ها معکوس چیده شده‌اند، پس هم خودش و هم بعدی‌ها رنگی می‌شوند */
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: var(--accent); }
.star-input input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }

.review-login-note {
    background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius-sm);
    padding: 14px 16px; font-size: 13.5px; color: var(--muted); margin: 0;
}

.buy-box-tail { display: flex; flex-direction: column; gap: 10px; }
.wish-inline { margin-top: -4px; }
.wish-inline__btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.wish-inline__btn.is-on { color: var(--danger); border-color: var(--danger); }

/* =====================================================================
   افزوده‌ها: بلاگ، ویجت تماس، پاپ‌آپ، پس‌زمینه مگا منو، تم گیمینگ سبک
   ===================================================================== */

/* ---------- تگ زیر کارت دسته‌بندی ---------- */
.category-card__tag {
    display: block; font-size: 12px; font-weight: 500;
    color: var(--muted); margin-top: 4px;
}
.category-card--bg .category-card__tag { color: rgba(255,255,255,.9); }

/* ---------- پس‌زمینه مگا منو ---------- */
.mega-nav--bg .mega-panel {
    background-image: linear-gradient(rgba(16,22,20,.86), rgba(16,22,20,.92)), var(--megamenu-bg);
    background-size: cover; background-position: center;
    border-color: transparent;
}
.mega-nav--bg .mega-panel a { color: #EAF2ED; }
.mega-nav--bg .mega-panel a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- بلاگ ---------- */
.blog-grid {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.blog-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); color: var(--ink);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.blog-card:hover {
    text-decoration: none; border-color: var(--brand);
    box-shadow: 0 10px 30px -18px rgba(11,110,79,.6);
    transform: translateY(-2px);
}
.blog-card__media {
    aspect-ratio: 16 / 9; background: var(--line-soft);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__ph { font-size: 40px; opacity: .5; }
.blog-card__body { padding: 14px 15px; display: flex; flex-direction: column; gap: 8px; }
.blog-card__title { font-size: 15px; margin: 0; line-height: 1.7; }
.blog-card__excerpt { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.9;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card__meta { font-size: 12px; color: var(--muted); margin-top: auto; }

/* مطلب تکی */
.post__title { font-size: clamp(20px, 4vw, 28px); margin: 10px 0 8px; }
.post__meta { display: flex; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.post__cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.post__cover img { width: 100%; height: auto; display: block; }
.post__lead { font-size: 16px; font-weight: 600; line-height: 2; margin-bottom: 16px; }
.post__foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- ویجت تماس چسبان ---------- */
.contact-fab {
    position: fixed; inset-block-end: 18px; inset-inline-start: 18px; z-index: 60;
    display: flex; flex-direction: column-reverse; align-items: center; gap: 10px;
}
.contact-fab__toggle {
    width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px -8px rgba(11,110,79,.7), 0 0 0 0 rgba(11,110,79,.5);
    transition: transform .18s ease, box-shadow .18s ease;
}
.contact-fab__toggle:hover { transform: scale(1.06); }
.contact-fab.is-open .contact-fab__toggle { transform: rotate(360deg); background: var(--brand-dark); }

.contact-fab__list {
    display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.contact-fab.is-open .contact-fab__list { opacity: 1; visibility: visible; transform: translateY(0); }
.contact-fab__item {
    display: flex; align-items: center; gap: 8px;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line); border-radius: 40px;
    padding: 8px 14px 8px 10px; font-size: 13px; font-weight: 600;
    box-shadow: var(--shadow); white-space: nowrap;
    transition: transform .14s ease, border-color .14s ease;
}
.contact-fab__item:hover { text-decoration: none; transform: translateX(-3px); }
.contact-fab__item svg { flex-shrink: 0; }
.contact-fab__item--phone    { color: var(--brand); }
.contact-fab__item--whatsapp { color: #25A366; }
.contact-fab__item--telegram { color: #229ED9; }
.contact-fab__item--map      { color: var(--accent); }

/* ---------- پاپ‌آپ مشاوره ---------- */
body.no-scroll { overflow: hidden; }
.consult-popup { position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center; padding: 20px; }
.consult-popup__backdrop { position: absolute; inset: 0; background: rgba(16,22,20,.6); backdrop-filter: blur(2px); }
.consult-popup__box {
    position: relative; z-index: 1; width: 100%; max-width: 380px; text-align: center;
    background: var(--surface); border-radius: 16px; padding: 30px 24px 26px;
    box-shadow: 0 30px 70px -25px rgba(0,0,0,.5);
    border-top: 4px solid var(--accent);
    animation: consult-in .3s ease;
}
@keyframes consult-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.consult-popup__close {
    position: absolute; inset-block-start: 10px; inset-inline-end: 12px;
    background: none; border: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer;
}
.consult-popup__icon { font-size: 40px; margin-bottom: 6px; }
.consult-popup__title { font-size: 19px; margin-bottom: 8px; }
.consult-popup__text { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.consult-popup__phone {
    display: block; font-size: 26px; font-weight: 800; color: var(--brand);
    letter-spacing: 1px; margin-bottom: 18px; font-family: var(--font-mono);
}
.consult-popup__cta { width: 100%; }

/* ---------- تم گیمینگ سبک (بدون شلوغی) ---------- */
/* درخشش ملایم برند روی دکمه اصلی */
.btn--primary { box-shadow: 0 2px 10px -4px rgba(11,110,79,.5); }
.btn--primary:hover { box-shadow: 0 6px 18px -6px rgba(11,110,79,.65); }

/* نوار تاکیدی کوچک کنار عنوان بخش‌ها */
.section__head h2 { position: relative; padding-inline-start: 12px; }
.section__head h2::before {
    content: ""; position: absolute; inset-inline-start: 0; inset-block: 4px auto;
    top: 50%; transform: translateY(-50%);
    width: 4px; height: 1em; border-radius: 3px;
    background: linear-gradient(var(--brand), var(--accent));
}

/* درخشش لبه‌ی کارت محصول هنگام هاور */
.product-card:hover { box-shadow: 0 12px 30px -18px rgba(11,110,79,.55); }

/* هیرو: هاله‌ی نئونی ملایم */
.hero { position: relative; overflow: hidden; }
.hero::after {
    content: ""; position: absolute; inset-block-start: -40%; inset-inline-start: -10%;
    width: 60%; height: 180%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(194,104,14,.25), transparent 70%);
}
.hero__inner { position: relative; z-index: 1; }

/* اسلایدر: قاب نئونی نازک */
.hero-slider { box-shadow: 0 0 0 1px var(--line-soft), 0 14px 40px -26px rgba(11,110,79,.5); }

/* =====================================================================
   هدر چسبان + بهبود موبایل برای بخش‌های جدید
   ===================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    box-shadow: 0 2px 10px -8px rgba(22, 33, 28, .5);
}

/* لنگر پیمایش تا هدر چسبان روی هدف ننشیند */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }

@media (max-width: 860px) {
    /* منوی کشویی موبایل وقتی باز است، بلندتر از صفحه نشود */
    .mega-nav.is-open { max-height: 72vh; overflow-y: auto; }
}

@media (max-width: 600px) {
    /* ویجت تماس کمی کوچک‌تر روی موبایل */
    .contact-fab { inset-block-end: 14px; inset-inline-start: 14px; }
    .contact-fab__toggle { width: 48px; height: 48px; }

    /* پاپ‌آپ روی موبایل کمی جمع‌وجورتر */
    .consult-popup__box { padding: 26px 18px 22px; }
    .consult-popup__phone { font-size: 22px; }

    /* بلاگ: در موبایل تک‌ستونه‌ی راحت */
    .blog-grid { grid-template-columns: 1fr; }

    /* عنوان بخش‌ها و اکشن‌ها در موبایل زیر هم */
    .section__head { flex-wrap: wrap; }
}

/* جعبه‌ی سئو و پیش‌نمایش گوگل روی موبایل بدون سرریز افقی */
@media (max-width: 520px) {
    .seo-box__head { flex-wrap: wrap; gap: 8px; }
    .seo-snippet__title { white-space: normal; }
}

/* =====================================================================
   آیکون دسته‌ها در مگا منو — با بردن ماوس ظاهر می‌شود
   ===================================================================== */
.mega-link { display: flex; align-items: center; }
.mega-icon {
    width: 0; height: 20px; opacity: 0; object-fit: contain; flex-shrink: 0;
    margin-inline-end: 0;
    transition: width .2s ease, opacity .2s ease, margin-inline-end .2s ease;
}
/* با هاور روی آیتم، آیکونش با یک انیمیشن ملایم ظاهر می‌شود */
.mega-link:hover .mega-icon,
.mega-nav__item > a:hover .mega-icon {
    width: 20px; opacity: 1; margin-inline-end: 8px;
}
/* در منوی موبایل (لمسی) آیکون‌ها همیشه نمایش داده می‌شوند */
@media (max-width: 860px) {
    .mega-icon { width: 18px; opacity: 1; margin-inline-end: 8px; }
}

/* =====================================================================
   ویدیوی پس‌زمینه‌ی استیکی صفحه اصلی (محو‌شونده با اسکرول)
   ===================================================================== */
.video-hero {
    position: relative;
    min-height: var(--vh-band, 56vh);   /* بنر ویدیویی صفحه‌های داخلی (قابل تنظیم) */
    display: flex; align-items: center; justify-content: center;
    text-align: center;
}
.video-hero--full { min-height: 92vh; }   /* تمام‌قد برای صفحه اصلی */
/* ویدیو ثابت پشت محتوا می‌ماند؛ محتوای بعدی (home-body) روی آن اسکرول می‌شود */
.video-hero__bg {
    position: fixed; inset: 0; z-index: -1;
    background: #070b09; will-change: opacity;
}
.video-hero__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-hero__scrim {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(120% 75% at 50% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
        linear-gradient(180deg, rgba(7,11,9,.28) 0%, rgba(7,11,9,.5) 55%, var(--bg) 100%);
}
.video-hero__content {
    position: relative; z-index: 1; color: #fff; padding: 20px 0;
    will-change: opacity, transform;
}
.video-hero__content h1 {
    color: #fff; font-size: clamp(28px, 6vw, 54px); line-height: 1.3; margin-bottom: 14px;
    text-shadow: 0 0 22px color-mix(in srgb, var(--brand) 55%, transparent), 0 2px 24px rgba(0,0,0,.55);
}
.video-hero__content p {
    color: rgba(255,255,255,.92); font-size: clamp(15px, 2.4vw, 19px);
    max-width: 640px; margin: 0 auto 26px; text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.video-hero .btn--primary {
    box-shadow: 0 0 20px color-mix(in srgb, var(--brand) 60%, transparent), 0 8px 22px -8px rgba(0,0,0,.6);
}
/* فلش کوچک «به پایین اسکرول کن» */
.video-hero__scroll {
    position: absolute; inset-block-end: 22px; inset-inline: 0; margin: auto;
    width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px;
    display: block;
}
.video-hero__scroll span {
    position: absolute; top: 8px; inset-inline: 0; margin: auto;
    width: 4px; height: 8px; border-radius: 3px; background: #fff;
    animation: vhScroll 1.5s ease-in-out infinite;
}
@keyframes vhScroll { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(10px); opacity: .3; } }

/* بدنه‌ی صفحه که با پس‌زمینه‌ی مات روی ویدیوی ثابت می‌آید */
.home-body--over-video,
.main--over-video { position: relative; z-index: 0; background: var(--bg); }

@media (max-width: 600px) {
    .video-hero { min-height: calc(var(--vh-band, 56vh) * 0.8); }
    .video-hero--full { min-height: 78vh; }
}

/* اسلایدر وقتی زیر ویدیوی صفحه اصلی می‌آید کمی فاصله بگیرد */
.home-slider-under-video { margin-top: 18px; }

/* فوتر روی موبایل: بلوک‌ها تمام‌عرض تا لینک‌ها (درباره ما، تماس با ما و ...)
   کنار هم و افقی جا شوند، نه یکی زیر دیگری */
@media (max-width: 600px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .site-footer h3 { margin-bottom: 8px; }
    .site-footer ul { gap: 8px 18px; }
}

/* =====================================================================
   لایه‌ی نئونی (measured، وفادار به رنگ برند و بدون شلوغی)
   بیشترِ درخشش‌ها روی هاور است تا حالت عادی آرام بماند.
   ===================================================================== */
.btn--primary:hover {
    box-shadow: 0 0 16px color-mix(in srgb, var(--brand) 50%, transparent), 0 6px 18px -6px rgba(11,110,79,.6);
}
.btn--accent, .badge--accent { box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 45%, transparent); }

/* نوار تاکیدی کنار عنوان بخش‌ها کمی می‌درخشد */
.section__head h2::before {
    box-shadow: 0 0 10px color-mix(in srgb, var(--brand) 65%, transparent);
}

/* کارت محصول: درخشش نئونی هنگام هاور */
.product-card:hover {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent),
                0 0 22px -6px color-mix(in srgb, var(--brand) 55%, transparent),
                0 12px 30px -18px rgba(11,110,79,.6);
}
/* کارت دسته و کارت مطلب */
.category-card:hover {
    box-shadow: 0 0 0 1px var(--brand), 0 0 18px -6px color-mix(in srgb, var(--brand) 55%, transparent);
}
.blog-card:hover {
    box-shadow: 0 0 20px -6px color-mix(in srgb, var(--brand) 50%, transparent), 0 10px 30px -18px rgba(11,110,79,.55);
}
/* آیتم مگا منو هنگام هاور کمی می‌درخشد */
.mega-nav__item > a:hover { text-shadow: 0 0 10px color-mix(in srgb, var(--brand) 45%, transparent); }

/* قلب/دکمه‌های تعاملی ظریف‌تر بدرخشند */
.hero-slider__dot.is-active { box-shadow: 0 0 8px rgba(255,255,255,.8); }

/* =====================================================================
   فیلتر محصولات سبک دیجی‌کالا: بخش‌های بازشونده، چیپ‌ها، جستجوی برند
   ===================================================================== */

/* سایدبار چسبان روی دسکتاپ (زیر هدر) */
@media (min-width: 900px) {
    .filters {
        position: sticky; top: 168px;   /* پایین‌تر از هدر چسبان */
        max-height: calc(100vh - 184px); overflow-y: auto;
    }
}

/* گروه فیلتر به‌صورت آکاردئون (details/summary) */
details.filter-group > summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; padding: 2px 0;
}
details.filter-group > summary::-webkit-details-marker { display: none; }
details.filter-group > summary h3 { margin: 0; }
details.filter-group > summary::after {
    content: ""; width: 8px; height: 8px; flex-shrink: 0;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: rotate(45deg); transition: transform .18s ease; margin-bottom: 3px;
}
details.filter-group[open] > summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
.filter-group__body { padding-top: 10px; }
.filter-group--plain { padding-top: 14px; }

/* جستجوی داخل لیست برند */
.filter-search {
    width: 100%; font-family: inherit; font-size: 13px;
    padding: 7px 10px; margin-bottom: 8px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--ink);
}
.filter-search:focus { outline: none; border-color: var(--brand); background: var(--surface); }

/* چیپ فیلترهای فعال بالای نتایج */
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.filter-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px; border-radius: 20px;
    background: var(--brand-soft); color: var(--brand);
    font-size: 12.5px; font-weight: 600;
    transition: background .15s ease, color .15s ease;
}
.filter-chip:hover { text-decoration: none; background: var(--brand); color: #fff; }
.filter-chip__x { font-size: 11px; opacity: .85; }
.filter-chips__clear { font-size: 12.5px; color: var(--danger); font-weight: 600; }
.filter-chips__clear:hover { text-decoration: underline; }

/* نشانگر فعال‌بودن فیلتر روی دکمه‌ی موبایل */
.filters-toggle__dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent); margin-inline-start: 5px; vertical-align: middle;
}

/* =====================================================================
   رنگ‌ولعاب: پس‌زمینهٔ زندهٔ صفحه + کارت‌های کمی رنگی
   (همه با متغیرهای رنگ برند، پس با تمِ انتخابیِ مدیر هماهنگ می‌مانند)
   ===================================================================== */
body {
    background:
        radial-gradient(1200px 560px at 100% -4%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%),
        radial-gradient(1000px 520px at -6% 3%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 58%),
        radial-gradient(900px 700px at 108% 55%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 60%),
        var(--bg);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* بخش‌های سفید کمی از زمینه جدا و زنده‌تر شوند */
.section--alt {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--brand) 7%, var(--surface)), var(--surface));
}

/* کارت دسته‌بندی: ته‌رنگ ملایم برند + نوار رنگی پایین هنگام هاور */
.category-card {
    background: linear-gradient(158deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--surface) 62%);
    position: relative; overflow: hidden;
}
.category-card::after {
    content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transform: scaleX(0); transform-origin: inline-start;
    transition: transform .22s ease;
}
.category-card:hover::after { transform: scaleX(1); }

/* کارت محصول: ته‌رنگ خیلی ملایم تا روی زمینه شناور به‌نظر برسد */
.product-card {
    background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--brand) 5%, var(--surface)));
}
.product-card__media { background: color-mix(in srgb, var(--brand) 5%, var(--line-soft)); }

/* جعبهٔ خرید و پنل‌ها: هالهٔ نرم تا از زمینه بلند شوند */
.buy-box, .panel-block, .filters {
    box-shadow: 0 1px 2px rgba(22, 33, 28, .05), 0 14px 30px -22px color-mix(in srgb, var(--brand) 55%, rgba(22,33,28,.5));
}

/* =====================================================================
   بنر تبلیغاتی صفحه اصلی
   ===================================================================== */
.ad-banner {
    display: block; margin: 20px 0; border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ad-banner__img { width: 100%; height: auto; display: block; }
a.ad-banner { transition: transform .15s ease, box-shadow .2s ease; }
a.ad-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 40%, transparent),
                0 16px 34px -16px color-mix(in srgb, var(--brand) 60%, rgba(0, 0, 0, .45));
}
@media (max-width: 600px) { .ad-banner { margin: 14px 0; border-radius: var(--radius-sm); } }

/* =====================================================================
   صفحهٔ فروش اپل‌آیدی آمریکا
   ===================================================================== */
.appleid-hero {
    text-align: center; padding: 40px 20px; margin: 22px 0;
    border-radius: 18px; border: 1px solid var(--line);
    background:
        radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%),
        linear-gradient(180deg, color-mix(in srgb, var(--brand) 6%, var(--surface)), var(--surface));
    box-shadow: var(--shadow);
}
.appleid-hero__badge {
    display: inline-block; font-size: 12.5px; font-weight: 700;
    color: var(--brand); background: var(--brand-soft);
    padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.appleid-hero h1 { font-size: clamp(24px, 5vw, 40px); line-height: 1.35; margin: 0 0 12px; }
.appleid-hero p { color: var(--muted); max-width: 640px; margin: 0 auto 18px; line-height: 2; }
.appleid-hero__price {
    display: inline-block; font-size: 15px; margin-bottom: 18px;
    padding: 8px 16px; border-radius: 10px;
    background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.appleid-cta { display: inline-flex; align-items: center; gap: 8px; }
.appleid-hero__note { color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }

.appleid-steps {
    display: grid; gap: 14px; margin: 26px 0;
    grid-template-columns: 1fr;
}
@media (min-width: 720px) { .appleid-steps { grid-template-columns: repeat(3, 1fr); } }
.appleid-step {
    position: relative; text-align: center; padding: 24px 18px 20px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
    box-shadow: var(--shadow);
}
.appleid-step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%; margin-bottom: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff; font-weight: 800; font-size: 18px;
    box-shadow: 0 0 16px color-mix(in srgb, var(--brand) 45%, transparent);
}
.appleid-step h3 { margin: 0 0 6px; font-size: 16px; }
.appleid-step p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.9; }

.appleid-features {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 28px;
}
.appleid-feature {
    font-weight: 600; font-size: 13.5px; color: var(--ink);
    padding: 10px 16px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface);
}
.appleid-cta-bottom { text-align: center; margin: 0 0 36px; }

/* =====================================================================
   پورتال وب اپل‌آیدی: کارت ورود، ویزارد سفارش، پروفایل
   ===================================================================== */
.appleid-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 8px; }

.auth-card {
    max-width: 420px; margin: 32px auto; padding: 26px 22px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 20px; margin: 0 0 6px; }
.auth-card__hint { color: var(--muted); font-size: 13px; margin: 0 0 18px; line-height: 1.9; }
.auth-card__alt { text-align: center; margin: 16px 0 0; font-size: 13px; color: var(--muted); }

.appleid-wizard {
    max-width: 560px; margin: 28px auto; padding: 24px 22px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.appleid-wizard h1 { font-size: 20px; margin: 0 0 4px; }
.wizard-options { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }

.appleid-summary { margin: 14px 0 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.appleid-summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line-soft); }
.appleid-summary__row:first-child { border-top: none; }
.appleid-summary__row span { color: var(--muted); }
.appleid-summary__row--total { background: var(--brand-soft); }
.appleid-summary__row--total b { color: var(--brand); font-size: 16px; }

.appleid-pay { margin-bottom: 16px; }
.appleid-pay__card {
    display: flex; flex-direction: column; gap: 6px; align-items: center;
    padding: 16px; margin-top: 10px; border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
}
.appleid-pay__num { font-size: 20px; font-weight: 800; letter-spacing: 2px; font-variant-numeric: tabular-nums; }

/* پروفایل */
.appleid-account { max-width: 720px; margin: 26px auto; }
.appleid-account__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.appleid-account__head h1 { font-size: 21px; margin: 0 0 2px; }
.appleid-account__actions { display: flex; align-items: center; gap: 8px; }

.appleid-order { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; background: var(--surface); box-shadow: var(--shadow); }
.appleid-order__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.appleid-order__id { font-weight: 800; margin-inline-end: 8px; }
.appleid-order__meta { font-size: 13px; color: var(--ink); margin-bottom: 10px; line-height: 2; }
.appleid-order__do { display: flex; gap: 8px; flex-wrap: wrap; }
.appleid-order__hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.appleid-order__hint--danger { color: var(--danger); }
.code-form { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.code-form input { flex: 1; min-width: 140px; font-family: inherit; font-size: 15px; letter-spacing: 3px; text-align: center;
    padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.appleid-order__delivered { margin-top: 8px; padding: 14px; border-radius: 12px; background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.appleid-order__delivered h3 { margin: 0 0 8px; font-size: 15px; color: var(--ok); }
.appleid-creds { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: 13.5px; line-height: 2; direction: ltr; text-align: left; }

.badge--warn  { background: var(--warn-soft); color: var(--warn); }
.badge--danger{ background: var(--danger-soft); color: var(--danger); }
.badge--brand { background: var(--brand-soft); color: var(--brand); }
