/* =========================================================================
   قالب‌های صفحه فروشگاه عمومی فروشندگان (seller.php)
   هر فروشنده از تنظیمات فروشگاه (seller/profile.php) یکی از این ۴ قالب را
   انتخاب می‌کند. رنگ اصلی هر فروشگاه هم از طریق متغیر CSS --st-accent
   (روی خودِ ست‌شده در ریشه‌ی .st-store) قابل تنظیم است.

   ساختار مشترک همه‌ی قالب‌ها (به‌جز مجله‌ای که ساید‌بار مخصوص خودش را دارد):
   هدر فروشگاه (بالا) + یک ردیف دو ستونه‌ی «st-body-grid» شامل ستون
   دسته‌بندی‌ها («st-cat-sidebar») و ستون محصولات («st-body-main»). چون
   جهت صفحه RTL است، ستون اول در HTML (دسته‌بندی‌ها) به‌طور طبیعی سمت
   راست صفحه قرار می‌گیرد.
   ========================================================================= */

.st-store { --st-accent: #0ea5e9; margin-bottom: 40px; }

/* بیرون‌زدن از کانتینر مرکزی سایت برای بنرهای full-width */
.st-bleed { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }

.st-stats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.st-stat-pill {
    font-size: 12.5px; font-weight: 700; padding: 7px 16px; border-radius: 999px;
    white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; transition: transform .15s;
}
.st-stat-pill:hover { transform: translateY(-1px); }

.st-empty {
    text-align: center; padding: 70px 16px; color: #a1a1aa; font-size: 14px;
}
.st-empty::before {
    content: "🗂️"; display: block; font-size: 34px; margin-bottom: 14px; opacity: .7;
}

/* نوار فیلتر فعال (جستجو/دسته‌بندی) بالای صفحه */
.st-filter-bar {
    max-width: 1100px; margin: 0 auto 18px; padding: 12px 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    background: color-mix(in srgb, var(--st-accent) 7%, white);
    border: 1px solid color-mix(in srgb, var(--st-accent) 20%, white);
    border-radius: 14px; font-size: 13px; color: #3f3f46;
}
.st-filter-bar span { font-weight: 600; }
.st-filter-bar a { color: var(--st-accent); font-weight: 800; text-decoration: none; white-space: nowrap; }
.st-filter-bar a:hover { text-decoration: underline; }

/* صفحه‌بندی زیر گرید محصولات (شماره صفحات) - مشترک بین قالب‌های کلاسیک/مدرن/تیره/مجله‌ای */
.st-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 28px 2px 4px; }
.st-page-link {
    min-width: 36px; height: 36px; padding: 0 6px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; text-decoration: none;
    background: #fff; border: 1px solid #e4e4e7; color: #52525b; transition: .15s;
}
.st-page-link:hover { border-color: var(--st-accent); color: var(--st-accent); }
.st-page-link.is-active { background: var(--st-accent); border-color: var(--st-accent); color: #fff; }
.st-dark .st-page-link { background: #1a2740; border-color: #2d3d59; color: #94a3b8; }
.st-dark .st-page-link:hover { color: var(--st-accent); }
.st-dark .st-page-link.is-active { background: var(--st-accent); color: #0f172a; border-color: transparent; }

/* عنوان بخش «محصولات فروشگاه» بالای گرید - سلسله‌مراتب بصری روشن قبل از محصولات */
.st-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 2px 18px; }
.st-section-title {
    font-size: 16.5px; font-weight: 800; color: #18181b; margin: 0;
    position: relative; padding-right: 14px;
}
.st-section-title::before {
    content: ""; position: absolute; right: 0; top: 2px; bottom: 2px; width: 4px;
    border-radius: 4px; background: var(--st-accent);
}
.st-section-count {
    font-size: 11.5px; font-weight: 700; color: #71717a; background: #f4f4f5;
    padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}

/* ------------------------------------------------------------------- */
/* ستون دسته‌بندی‌ها (سمت راست) - مشترک بین کلاسیک/مدرن/تیره             */
/* ------------------------------------------------------------------- */
.st-body-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; padding: 0 4px; }
.st-body-main-full { padding: 0 4px; }
.st-cat-sidebar { position: sticky; top: 90px; }
.st-cat-block {
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid #ececef; border-radius: 18px; padding: 22px 18px 18px;
    box-shadow: 0 10px 28px -18px rgba(15,23,42,.18);
}
.st-cat-block::before {
    content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px;
    background: linear-gradient(90deg, var(--st-accent), color-mix(in srgb, var(--st-accent) 40%, white));
}
.st-cat-title {
    font-size: 13px; font-weight: 800; color: #18181b; margin: 0 0 14px;
    display: flex; align-items: center; gap: 6px; letter-spacing: .2px;
}
.st-cat-title::before { content: "🗂"; font-size: 13px; }
.st-cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.st-cat-link {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 11px; border-radius: 11px; text-decoration: none;
    font-size: 13px; font-weight: 600; color: #52525b; transition: .15s;
}
.st-cat-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-cat-link b {
    font-weight: 700; font-size: 11px; color: #a1a1aa; background: #f4f4f5;
    border-radius: 999px; padding: 2px 8px; flex-shrink: 0;
}
.st-cat-link:hover { background: #f4f4f5; color: #18181b; }
.st-cat-link.is-active { background: color-mix(in srgb, var(--st-accent) 12%, white); color: var(--st-accent); font-weight: 800; }
.st-cat-link.is-active b { background: var(--st-accent); color: #fff; }

/* سردسته‌ی دارای زیردسته (آکاردئون) - همان استایل .st-cat-link اما با <details>/<summary> */
.st-cat-parent { border-radius: 11px; }
.st-cat-parent > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 11px; border-radius: 11px; cursor: pointer; user-select: none;
    list-style: none; font-size: 13px; font-weight: 600; color: #52525b; transition: .15s;
}
.st-cat-parent > summary::-webkit-details-marker { display: none; }
.st-cat-parent > summary span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-cat-parent > summary b {
    font-weight: 700; font-size: 11px; color: #a1a1aa; background: #f4f4f5;
    border-radius: 999px; padding: 2px 8px; flex-shrink: 0;
}
.st-cat-parent > summary:hover { background: #f4f4f5; color: #18181b; }
.st-cat-parent.is-active > summary,
.st-cat-parent.has-active-child > summary { background: color-mix(in srgb, var(--st-accent) 12%, white); color: var(--st-accent); font-weight: 800; }
.st-cat-parent.is-active > summary b,
.st-cat-parent.has-active-child > summary b { background: var(--st-accent); color: #fff; }
.st-cat-parent > summary .st-cat-caret { font-size: 10px; color: #a1a1aa; transition: transform .15s; flex-shrink: 0; }
.st-cat-parent[open] > summary .st-cat-caret { transform: rotate(-90deg); }
.st-cat-children { list-style: none; margin: 2px 0 4px; padding: 0 0 0 10px; display: flex; flex-direction: column; gap: 2px; }
.st-cat-children .st-cat-link { font-size: 12.5px; font-weight: 500; padding: 8px 11px; }

/* ------------------------------------------------------------------- */
/* کارت محصول - ظاهر مشترک و حرفه‌ای‌تر (برچسب دسته/تخفیف/ویژه، امتیاز) */
/* ------------------------------------------------------------------- */
.st-thumb { position: relative; overflow: hidden; }
.st-thumb img { display: block; transition: transform .35s ease; }
a:hover > .st-thumb img { transform: scale(1.06); }
.st-thumb-tag {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    background: rgba(24,24,27,.62); backdrop-filter: blur(3px); color: #fff;
    font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
    max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.st-thumb-off {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; font-size: 10.5px; font-weight: 800;
    padding: 4px 9px; border-radius: 999px; box-shadow: 0 4px 12px -3px rgba(239,68,68,.65);
}
.st-thumb-featured {
    position: absolute; bottom: 10px; right: 10px; z-index: 2;
    background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff;
    font-size: 10.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
    box-shadow: 0 4px 12px -3px rgba(249,115,22,.5);
}
.st-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: #a1a1aa; margin: 3px 0 11px; }
.st-meta-rating { color: #d97706; font-weight: 700; }
.pc-price del, .st-card-price del, .st-list-price del { color: #a1a1aa; font-weight: 400; font-size: 11.5px; margin-inline-start: 6px; }
.pc-price, .st-card-price, .st-list-price { font-size: 15px; }

/* ------------------------------------------------------------------- */
/* ۱) کلاسیک - ساده و مرکزچین، برای فروشگاه‌های کوچک و رسمی            */
/* ------------------------------------------------------------------- */
.st-classic .st-header {
    text-align: center; padding: 44px 20px 34px; margin-bottom: 26px; border-radius: 24px;
    background:
        radial-gradient(600px 220px at 50% -40%, color-mix(in srgb, var(--st-accent) 16%, transparent), transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--st-accent) 5%, white), #fff 60%);
    border: 1px solid color-mix(in srgb, var(--st-accent) 14%, #ececef);
}
.st-classic .st-avatar {
    width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; background: #f4f4f5;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-accent) 55%, white), 0 10px 26px -12px rgba(0,0,0,.22);
}
.st-classic .st-name { font-size: 23px; font-weight: 800; color: #18181b; margin: 0 0 8px; letter-spacing: -.2px; }
.st-classic .st-bio { color: #6b7280; font-size: 14px; max-width: 560px; margin: 0 auto 18px; line-height: 1.9; }
.st-classic .st-stat-pill { background: #fff; color: #3f3f46; border: 1px solid #ececef; box-shadow: 0 2px 6px -3px rgba(0,0,0,.06); }
.st-classic .st-stat-pill.st-accent-pill { background: var(--st-accent); color: #fff; border-color: transparent; }
.st-classic .product-card, .st-classic .st-cat-block { border: 1px solid #ececef; border-radius: 18px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.st-classic .product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 36px -18px rgba(0,0,0,.2); border-color: color-mix(in srgb, var(--st-accent) 40%, white); }
.st-classic .product-card .pc-price { color: var(--st-accent); font-weight: 800; }
.st-classic .product-card .pc-title { transition: color .15s; }
.st-classic .product-card:hover .pc-title { color: var(--st-accent); }

/* ------------------------------------------------------------------- */
/* ۱-الف) کلاسیک - هدر آبی یکپارچه در تمام صفحات فروشگاه + پس‌زمینه مورب
   هدر (لوگو/جستجو/دکمه OFF/منوی صفحات فروشگاه) از includes/store-header.php
   در همه‌ی صفحات فروشگاه (محصول، سبد خرید، تسویه‌حساب، پیگیری سفارش و...)
   لود می‌شود؛ قوانین زیر روی همان هدر مشترک اعمال می‌شوند تا رنگ آبی
   فروشگاه (--store-accent) در همه‌جا یکدست باشد، نه فقط صفحه اصلی.        */
/* ------------------------------------------------------------------- */
body.st-tpl-classic {
    background-color: #f8fbff;
    background-image: repeating-linear-gradient(
        135deg,
        color-mix(in srgb, var(--store-accent, #0ea5e9) 6%, transparent) 0,
        color-mix(in srgb, var(--store-accent, #0ea5e9) 6%, transparent) 1px,
        transparent 1px,
        transparent 42px
    );
    background-attachment: fixed;
}

/* هدر اصلی (نوار بالا + منوی صفحات فروشگاه) به رنگ آبی تم فروشگاه */
body.st-tpl-classic .sh-header {
    background: linear-gradient(135deg, var(--store-accent, #0ea5e9), color-mix(in srgb, var(--store-accent, #0ea5e9) 78%, #0b1f33)) !important;
    border-bottom: none !important;
    box-shadow: 0 12px 28px -16px color-mix(in srgb, var(--store-accent, #0ea5e9) 65%, transparent);
}
/* توجه: انتخابگر عمومی ".sh-header a" عمدا استفاده نشده تا روی منوی
   بازشونده‌ی حساب کاربری (#account-menu-dropdown - پس‌زمینه سفید) اثر
   نگذارد؛ فقط لینک‌های خودِ نوار هدر (لوگو/سبد خرید/منوی صفحات) سفید
   می‌شوند. */
body.st-tpl-classic .sh-header > div > a,
body.st-tpl-classic .sh-header span.font-extrabold,
body.st-tpl-classic .sh-header svg { color: #fff; }
body.st-tpl-classic .sh-header > div > a:hover { opacity: .92; }
body.st-tpl-classic .sh-header .sh-search {
    background: rgba(255,255,255,.96); border: 1px solid transparent; color: #1b2430;
}
body.st-tpl-classic .sh-header .sh-search::placeholder { color: #94a3b8; }
body.st-tpl-classic .sh-header .sh-search + svg { color: #94a3b8; }
body.st-tpl-classic .sh-header a[title="سبد خرید"]:hover { background: rgba(255,255,255,.16); }
body.st-tpl-classic .sh-header #account-menu-dropdown a { color: #475569; }
body.st-tpl-classic .sh-header #account-menu-dropdown a:hover { color: #0f172a; }
body.st-tpl-classic .sh-header nav {
    background: rgba(255,255,255,.08) !important;
    border-top-color: rgba(255,255,255,.18) !important;
}
body.st-tpl-classic .sh-header nav a { color: rgba(255,255,255,.85) !important; }
body.st-tpl-classic .sh-header nav a:hover { color: #fff !important; }

/* دکمه OFF: چون هدر خودش آبی شده، دکمه دیگر نباید هم‌رنگ هدر باشد - سفید
   با متن رنگی تا داخل هدر آبی خوش‌خوان و برجسته دیده شود. */
body.st-tpl-classic .sh-off-btn {
    background: #fff !important;
    color: var(--store-accent, #0ea5e9) !important;
    border: 2px solid rgba(255,255,255,.85);
    box-shadow: 0 6px 16px -6px rgba(0,0,0,.35);
}
body.st-tpl-classic .sh-off-btn:hover { filter: none; transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(0,0,0,.4); }
body.st-tpl-classic .sh-header #account-menu-btn { box-shadow: 0 0 0 2px rgba(255,255,255,.85); }

/* ------------------------------------------------------------------- */
/* ۴-الف) بازار فایل کلاسیک (filebazaar) - همان منطق «هدر یکپارچه» بالا،
   با رنگ آبی سنتی‌تر خود این قالب و بدون سایدبار (که از HTML قالب هم
   حذف شده - نگاه کنید به seller.php). هدر مشترک (includes/store-header.php)
   روی صفحات دیگر (محصول/سبد خرید/...) هم با همین آبی یکدست می‌شود.        */
/* ------------------------------------------------------------------- */
body.st-tpl-filebazaar {
    background-color: #f4f7fa;
    background-image: repeating-linear-gradient(
        135deg,
        color-mix(in srgb, var(--store-accent, #2b8fc7) 7%, transparent) 0,
        color-mix(in srgb, var(--store-accent, #2b8fc7) 7%, transparent) 1px,
        transparent 1px,
        transparent 40px
    );
    background-attachment: fixed;
}
body.st-tpl-filebazaar .sh-header {
    background: linear-gradient(135deg, var(--store-accent, #2b8fc7), color-mix(in srgb, var(--store-accent, #2b8fc7) 75%, #0b2436)) !important;
    border-bottom: none !important;
    box-shadow: 0 12px 28px -16px color-mix(in srgb, var(--store-accent, #2b8fc7) 65%, transparent);
}
body.st-tpl-filebazaar .sh-header > div > a,
body.st-tpl-filebazaar .sh-header span.font-extrabold,
body.st-tpl-filebazaar .sh-header svg { color: #fff; }
body.st-tpl-filebazaar .sh-header .sh-search {
    background: rgba(255,255,255,.96); border: 1px solid transparent; color: #1b2430;
}
body.st-tpl-filebazaar .sh-header .sh-search::placeholder { color: #94a3b8; }
body.st-tpl-filebazaar .sh-header .sh-search + svg { color: #94a3b8; }
body.st-tpl-filebazaar .sh-header a[title="سبد خرید"]:hover { background: rgba(255,255,255,.16); }
body.st-tpl-filebazaar .sh-header #account-menu-dropdown a { color: #475569; }
body.st-tpl-filebazaar .sh-header #account-menu-dropdown a:hover { color: #0f172a; }
body.st-tpl-filebazaar .sh-header #account-menu-btn { box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
body.st-tpl-filebazaar .sh-header nav {
    background: rgba(255,255,255,.08) !important;
    border-top-color: rgba(255,255,255,.18) !important;
}
body.st-tpl-filebazaar .sh-header nav a { color: rgba(255,255,255,.85) !important; }
body.st-tpl-filebazaar .sh-header nav a:hover { color: #fff !important; }
body.st-tpl-filebazaar .sh-off-btn {
    background: #fff !important;
    color: var(--store-accent, #2b8fc7) !important;
    border: 2px solid rgba(255,255,255,.85);
    box-shadow: 0 6px 16px -6px rgba(0,0,0,.35);
}
body.st-tpl-filebazaar .sh-off-btn:hover { filter: none; transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(0,0,0,.4); }

/* صفحه اصلی فروشگاه: حذف فاصله سفید بالای صفحه تا هدر آبی سراسری و نوار
   آبی اختصاصی خود قالب (لوگو/نام فروشگاه/نوار منو) بدون شکاف بچسبند. */
body.st-tpl-filebazaar.st-store-home .page-main { padding-top: 0; }
body.st-tpl-filebazaar.st-store-home .st-filebazaar .fb-header-band {
    border-radius: 0 0 6px 6px;
    margin-top: 0;
}

/* صفحه اصلی فروشگاه: حذف فاصله‌ی سفید بالای صفحه تا هدر آبی و کارت هویت
   فروشگاه (آواتار/نام/بیو) بدون شکاف به هم بچسبند و یک بلوک آبی واحد بسازند. */
body.st-tpl-classic.st-store-home .page-main { padding-top: 0; }
body.st-tpl-classic.st-store-home .st-classic .st-header {
    background: linear-gradient(180deg, color-mix(in srgb, var(--store-accent, #0ea5e9) 16%, #fff), #fff 88%);
    border: none;
    border-radius: 0 0 28px 28px;
    padding-top: 36px;
    box-shadow: 0 18px 30px -24px color-mix(in srgb, var(--store-accent, #0ea5e9) 55%, transparent);
}

/* ------------------------------------------------------------------- */
/* ۲) مدرن - بنر بزرگ وسط صفحه با عنوان/جستجو/دکمه + کارت مینیاتوری     */
/*    تزئینی، حس فروشگاه‌های دیجیتال امروزی (الهام‌گرفته از قالب        */
/*    پیوستی کاربر)                                                    */
/* ------------------------------------------------------------------- */
.st-hero {
    position: relative; overflow: hidden; background-size: cover; background-position: center;
    border-radius: 28px; margin: 4px 4px 28px; padding: 46px 6px;
}
.st-hero-fallback {
    background:
        radial-gradient(60% 150% at 14% 10%, color-mix(in srgb, var(--st-accent) 62%, #818cf8), transparent 62%),
        radial-gradient(50% 130% at 92% 100%, rgba(255,255,255,.2), transparent 60%),
        linear-gradient(120deg, color-mix(in srgb, var(--st-accent) 88%, #4f46e5), #1e1b4b 130%);
}
.st-hero-fallback::before, .st-hero-fallback::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(42px); opacity: .38; pointer-events: none;
}
.st-hero-fallback::before { width: 240px; height: 240px; background: #fff; top: -80px; left: -40px; }
.st-hero-fallback::after { width: 280px; height: 280px; background: color-mix(in srgb, var(--st-accent) 55%, #fff); bottom: -130px; right: -60px; }
/* اگر بنر سفارشی (تصویر) باشد، یک لایه تیره‌کننده روی آن قرار می‌گیرد تا متن سفید همیشه خوانا بماند */
.st-hero:not(.st-hero-fallback)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15,15,25,.72), rgba(15,15,25,.5)); }

.st-hero-inner {
    position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; padding: 0 26px;
    display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.st-hero-content { flex: 1 1 380px; min-width: 280px; }
.st-hero-badge {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px); color: #fff;
    font-size: 12.5px; font-weight: 700; padding: 6px 14px 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.st-hero-badge-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1.5px solid #fff; background: #fff; }
.st-hero-title { font-size: 34px; font-weight: 800; color: #fff; margin: 0 0 14px; letter-spacing: -.4px; line-height: 1.3; text-shadow: 0 2px 18px rgba(0,0,0,.2); }
.st-hero-desc { color: rgba(255,255,255,.86); font-size: 14.5px; max-width: 520px; margin: 0 0 24px; line-height: 1.9; }

.st-hero-search { display: flex; gap: 8px; max-width: 440px; margin: 0 0 20px; }
.st-hero-search input {
    flex: 1; height: 48px; border: none; border-radius: 14px; padding: 0 18px; font-size: 13.5px;
    font-family: inherit; background: #fff; color: #18181b; box-shadow: 0 10px 26px -12px rgba(0,0,0,.35);
}
.st-hero-search input:focus { outline: 2px solid rgba(255,255,255,.6); outline-offset: 1px; }
.st-hero-search button {
    height: 48px; padding: 0 22px; border: none; border-radius: 14px; background: #18181b; color: #fff;
    font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background .15s;
    flex-shrink: 0;
}
.st-hero-search button:hover { background: color-mix(in srgb, var(--st-accent) 70%, #18181b); }

.st-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.st-hero-btn, .st-hero-btn-outline {
    display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 12px;
    font-size: 13.5px; font-weight: 700; text-decoration: none; transition: transform .15s, opacity .15s;
}
.st-hero-btn { background: #fff; color: #18181b; }
.st-hero-btn:hover { transform: translateY(-2px); }
.st-hero-btn-outline { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.st-hero-btn-outline:hover { background: rgba(255,255,255,.2); }

.st-hero-trust { display: flex; gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,.82); font-size: 12.5px; font-weight: 600; }

/* کارت مینیاتوری تزئینی سمت مقابل متن - صرفا جنبه بصری دارد و داده واقعی نشان نمی‌دهد */
.st-hero-mock { flex: 0 0 auto; display: none; }
.st-hero-mock-card {
    width: 250px; padding: 22px 20px; border-radius: 20px; background: rgba(255,255,255,.97);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); transform: rotate(-3deg);
}
.st-hero-mock-dots { display: flex; gap: 6px; margin-bottom: 18px; }
.st-hero-mock-dots span { width: 10px; height: 10px; border-radius: 50%; background: #e4e4e7; display: block; }
.st-hero-mock-dots span:first-child { background: #fca5a5; }
.st-hero-mock-dots span:nth-child(2) { background: #fde68a; }
.st-hero-mock-dots span:nth-child(3) { background: #86efac; }
.st-hero-mock-line { height: 14px; border-radius: 8px; background: #f0f0f3; margin-bottom: 12px; }
.st-hero-mock-line:nth-child(1) { width: 88%; }
.st-hero-mock-line-accent { width: 62%; background: var(--st-accent); opacity: .85; }
.st-hero-mock-line-short { width: 45%; }

@media (min-width: 900px) { .st-hero-mock { display: block; } }

/* ---- کارت محصول: سایه نرم، لبه گرد بزرگ‌تر، برچسب‌های رنگی و افکت هاور ---- */
.st-modern .product-card, .st-modern .st-cat-block { border: 1px solid #ececef; border-radius: 20px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; overflow: hidden; }
.st-modern .product-card { box-shadow: 0 10px 26px -18px rgba(15,23,42,.16); }
.st-modern .product-card:hover { transform: translateY(-8px); box-shadow: 0 26px 46px -20px rgba(15,23,42,.26); border-color: color-mix(in srgb, var(--st-accent) 45%, white); }
.st-modern .product-card .pc-title { font-weight: 700; transition: color .15s; }
.st-modern .product-card:hover .pc-title { color: var(--st-accent); }
.st-modern .product-card .pc-price { color: var(--st-accent); font-weight: 800; }
.st-modern .st-cat-block { box-shadow: 0 10px 26px -16px rgba(0,0,0,.14); }

/* وقتی محصول تصویر واقعی ندارد (تصویر placeholder پیش‌فرض)، به‌جای عکس خاکستری
   یک پس‌زمینه گرادیانی رنگی (چرخشی بین چند رنگ) مثل قالب مرجع نمایش داده می‌شود */
.st-modern .st-thumb img[src*="placeholder"] { opacity: 0; }
.st-modern .st-thumb:has(img[src*="placeholder"]) {
    background: linear-gradient(135deg, color-mix(in srgb, var(--st-accent) 75%, #6366f1), color-mix(in srgb, var(--st-accent) 35%, #a855f7));
}
.st-modern .product-grid > a:nth-of-type(4n+2) .st-thumb:has(img[src*="placeholder"]) { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.st-modern .product-grid > a:nth-of-type(4n+3) .st-thumb:has(img[src*="placeholder"]) { background: linear-gradient(135deg, #f59e0b, #f97316); }
.st-modern .product-grid > a:nth-of-type(4n+4) .st-thumb:has(img[src*="placeholder"]) { background: linear-gradient(135deg, #10b981, #14b8a6); }

/* ------------------------------------------------------------------- */
/* ۳) تیره - مینیمال و شیک، مناسب فروشگاه‌های تخصصی/فنی                */
/* ------------------------------------------------------------------- */
.st-dark {
    border-radius: 28px; padding-bottom: 36px; margin-top: 20px; position: relative; overflow: hidden;
    background:
        radial-gradient(700px 320px at 50% -10%, color-mix(in srgb, var(--st-accent) 22%, transparent), transparent 65%),
        linear-gradient(180deg, #111a2e, #0f172a 55%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.st-dark .st-header { text-align: center; padding: 46px 16px 28px; position: relative; }
.st-dark .st-avatar-ring {
    width: 112px; height: 112px; border-radius: 50%; padding: 4px;
    background: conic-gradient(from 180deg, var(--st-accent), transparent 65%);
    margin: 0 auto 18px; box-shadow: 0 0 34px -6px color-mix(in srgb, var(--st-accent) 55%, transparent);
}
.st-dark .st-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #0f172a; background: #1e293b; display: block; }
.st-dark .st-name { font-size: 23px; font-weight: 800; color: #f8fafc; margin: 0 0 8px; letter-spacing: -.2px; }
.st-dark .st-bio { color: #94a3b8; font-size: 14px; max-width: 560px; margin: 0 auto 18px; line-height: 1.9; }
.st-dark .st-stat-pill { background: rgba(30,41,59,.7); color: #cbd5e1; border: 1px solid #334155; backdrop-filter: blur(4px); }
.st-dark .st-stat-pill.st-accent-pill { background: var(--st-accent); color: #0f172a; border-color: transparent; }
.st-dark .st-body-grid, .st-dark .st-body-main-full { padding: 0 20px; }
.st-dark .st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.st-dark .st-card { background: #1a2740; border: 1px solid #2d3d59; border-radius: 16px; overflow: hidden; transition: .2s; display: block; text-decoration: none; }
.st-dark .st-card:hover { border-color: var(--st-accent); transform: translateY(-5px); box-shadow: 0 20px 36px -18px rgba(0,0,0,.55), 0 0 0 1px color-mix(in srgb, var(--st-accent) 40%, transparent); }
.st-dark .st-card img { width: 100%; height: 150px; object-fit: cover; background: #334155; }
.st-dark .st-card-body { padding: 14px; }
.st-dark .st-card-title { color: #f1f5f9; font-weight: 700; font-size: 14.5px; margin: 0 0 8px; line-height: 1.6; }
.st-dark .st-card-meta { color: #64748b; }
.st-dark .st-meta-rating { color: #fbbf24; }
.st-dark .st-card-price { color: var(--st-accent); font-weight: 800; font-size: 14px; }
.st-dark .st-card-price del { color: #64748b; }
.st-dark .st-empty { color: #64748b; }
.st-dark .st-section-title { color: #f8fafc; }
.st-dark .st-section-count { background: #1e293b; color: #94a3b8; }
.st-dark .st-cat-sidebar .st-cat-block { background: #1a2740; border: 1px solid #2d3d59; box-shadow: none; }
.st-dark .st-cat-title { color: #f1f5f9; }
.st-dark .st-cat-link { color: #94a3b8; }
.st-dark .st-cat-link b { background: #2d3d59; color: #94a3b8; }
.st-dark .st-cat-link:hover { background: #24334d; color: #f1f5f9; }
.st-dark .st-cat-link.is-active { background: color-mix(in srgb, var(--st-accent) 18%, #1a2740); color: var(--st-accent); }
.st-dark .st-cat-link.is-active b { background: var(--st-accent); color: #0f172a; }
.st-dark .st-cat-parent > summary { color: #94a3b8; }
.st-dark .st-cat-parent > summary b { background: #2d3d59; color: #94a3b8; }
.st-dark .st-cat-parent > summary:hover { background: #24334d; color: #f1f5f9; }
.st-dark .st-cat-parent.is-active > summary,
.st-dark .st-cat-parent.has-active-child > summary { background: color-mix(in srgb, var(--st-accent) 18%, #1a2740); color: var(--st-accent); }
.st-dark .st-cat-parent.is-active > summary b,
.st-dark .st-cat-parent.has-active-child > summary b { background: var(--st-accent); color: #0f172a; }
.st-dark .st-filter-bar { background: #1a2740; border-color: #2d3d59; color: #cbd5e1; margin: 0 20px 18px; max-width: none; }

/* ------------------------------------------------------------------- */
/* ۴) مجله‌ای - ساید‌بار چسبان + لیست فشرده، مناسب فروشگاه‌های پرمحصول */
/* ------------------------------------------------------------------- */
.st-magazine-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; margin-top: 26px; }
.st-magazine-wrap .st-sidebar {
    position: sticky; top: 90px; background: #fff; border: 1px solid #ececef; border-radius: 20px;
    padding: 28px 20px 22px; text-align: center; position: relative; overflow: hidden;
    box-shadow: 0 10px 28px -18px rgba(15,23,42,.18);
}
.st-magazine-wrap .st-sidebar::before {
    content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px;
    background: linear-gradient(90deg, var(--st-accent), color-mix(in srgb, var(--st-accent) 35%, white));
}
.st-magazine-wrap .st-avatar {
    width: 86px; height: 86px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; background: #f4f4f5;
    border: 3px solid #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-accent) 45%, white);
}
.st-magazine-wrap .st-name { font-size: 17px; font-weight: 800; color: #18181b; margin: 0 0 8px; }
.st-magazine-wrap .st-bio { font-size: 13px; color: #6b7280; line-height: 1.9; margin-bottom: 16px; }
.st-magazine-wrap .st-stat-row { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.st-magazine-wrap .st-stat-line { display: flex; justify-content: space-between; font-size: 12.5px; color: #52525b; border-top: 1px dashed #e4e4e7; padding-top: 8px; }
.st-magazine-wrap .st-stat-line b { color: #18181b; }
/* بلوک دسته‌بندی‌ها وقتی داخل ساید‌بار مجله‌ای تزریق می‌شود، خودش را با ظاهر ساید‌بار هماهنگ می‌کند */
.st-magazine-wrap .st-sidebar .st-cat-block { background: none; border: none; box-shadow: none; padding: 18px 0 0; margin-top: 18px; border-top: 1px dashed #e4e4e7; text-align: right; }
.st-magazine-wrap .st-sidebar .st-cat-block::before { display: none; }
.st-magazine-wrap .st-sidebar .st-cat-title { text-align: right; }
.st-magazine-wrap .st-body-main { padding: 0 2px; }
.st-magazine-wrap .st-list { display: flex; flex-direction: column; gap: 12px; }
.st-magazine-wrap .st-list-item {
    display: flex; gap: 14px; background: #fff; border: 1px solid #ececef; border-radius: 16px;
    padding: 12px; align-items: center; transition: .2s; text-decoration: none;
}
.st-magazine-wrap .st-list-item:hover { border-color: var(--st-accent); box-shadow: 0 14px 26px -14px rgba(0,0,0,.18); transform: translateY(-2px); }
.st-magazine-wrap .st-list-item .st-thumb { width: 92px; height: 68px; border-radius: 10px; flex-shrink: 0; background: #f4f4f5; }
.st-magazine-wrap .st-list-item .st-thumb img { width: 100%; height: 100%; object-fit: cover; }
.st-magazine-wrap .st-list-body { flex: 1; min-width: 0; }
.st-magazine-wrap .st-list-title { font-weight: 700; font-size: 14px; color: #18181b; margin-bottom: 5px; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-magazine-wrap .st-list-price { color: var(--st-accent); font-weight: 800; font-size: 13.5px; }
.st-magazine-wrap .st-list-item .st-card-meta { margin: 0 0 6px; }
.st-magazine-wrap .st-thumb-tag, .st-magazine-wrap .st-thumb-off, .st-magazine-wrap .st-thumb-featured { font-size: 9px; padding: 2px 7px; top: 4px; }
.st-magazine-wrap .st-thumb-featured { bottom: 4px; top: auto; }

@media (max-width: 980px) {
    .st-body-grid { grid-template-columns: 1fr; }
    .st-cat-sidebar { position: static; }
    .st-cat-block { padding: 14px 16px; }
    .st-cat-list { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 2px; scrollbar-width: thin; }
    .st-cat-link { flex-shrink: 0; }
}

@media (max-width: 820px) {
    .st-magazine-wrap { grid-template-columns: 1fr; }
    .st-magazine-wrap .st-sidebar { position: static; }
    .st-hero { border-radius: 20px; margin: 4px 0 22px; padding: 34px 0; }
    .st-hero-inner { padding: 0 18px; }
    .st-hero-title { font-size: 25px; }
    .st-hero-desc { font-size: 13.5px; }
    .st-hero-search { max-width: none; }
    .st-dark .st-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .st-dark .st-body-grid, .st-dark .st-body-main-full { padding: 0 14px; }
    .st-dark .st-filter-bar { margin: 0 14px 16px; }
}
