953 lines
23 KiB
CSS
953 lines
23 KiB
CSS
/**
|
||
* شبکه تأمین — یکپارچه با hesabix2 (برند، layout، Tailwind).
|
||
*/
|
||
|
||
:root {
|
||
--st-brand: var(--brand-500, #0ea5e9);
|
||
--st-brand-dark: var(--brand-600, #0284c7);
|
||
--st-brand-deep: #0369a1;
|
||
--hesabix-font: "Yekan Bakh FaNum", "Tahoma", "Segoe UI", system-ui, -apple-system, sans-serif;
|
||
}
|
||
|
||
body.hesabix2-st-catalog {
|
||
background-color: var(--light-50, #f0f9ff);
|
||
--st-accent: var(--st-brand);
|
||
--st-accent-hover: var(--st-brand-dark);
|
||
--st-accent-soft: var(--light-100, #e0f2fe);
|
||
}
|
||
|
||
body.hesabix2-st-catalog,
|
||
body.hesabix2-st-catalog .st-public-page-wrap,
|
||
body.hesabix2-st-catalog .st-public-page-wrap *,
|
||
body.hesabix2-st-catalog .st-modal-overlay,
|
||
body.hesabix2-st-catalog .st-modal-overlay *,
|
||
body.hesabix2-st-catalog .st-product-seo-page,
|
||
body.hesabix2-st-catalog .st-product-seo-page * {
|
||
font-family: var(--hesabix-font) !important;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-page-wrap {
|
||
width: 100%;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-page-wrap .layout-wrap {
|
||
max-width: 1320px;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat {
|
||
--st-font: var(--hesabix-font);
|
||
--st-accent: var(--st-brand);
|
||
--st-accent-hover: var(--st-brand-dark);
|
||
--st-accent-soft: var(--light-100, #e0f2fe);
|
||
--st-bg: var(--slate-50, #f8fafc);
|
||
--st-surface: #ffffff;
|
||
--st-border: var(--slate-200, #e2e8f0);
|
||
--st-text: var(--slate-800, #1e293b);
|
||
--st-muted: var(--slate-500, #64748b);
|
||
border: 1px solid var(--st-border);
|
||
box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-page-wrap .page-outer--st-catalog {
|
||
padding-top: 0.5rem;
|
||
padding-bottom: 1rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-catalog-main {
|
||
padding: 0 0.5rem 1rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-page__body {
|
||
min-height: 0;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero,
|
||
body.hesabix2-st-catalog .st-public-hero--theme {
|
||
background: linear-gradient(135deg, var(--st-brand) 0%, var(--st-brand-dark) 38%, var(--st-brand-deep) 62%, var(--slate-900, #0f172a) 100%);
|
||
box-shadow: 0 8px 32px rgba(2, 132, 199, 0.22);
|
||
margin-bottom: 0.75rem;
|
||
}
|
||
|
||
/* نانراه در صفحهٔ کاتالوگ نمایش داده نمیشود (عنوان در هیرو است) */
|
||
body.hesabix2-st-catalog.st-public-catalog-body .st-public-page-wrap .hesabix2-breadcrumb {
|
||
display: none !important;
|
||
}
|
||
|
||
/* مودال باید بالاتر از هدر (۱۰۰)، منوی موبایل (۹۹۹۸) و دیالوگهای دیگر باشد */
|
||
body.hesabix2-st-catalog .st-modal-overlay,
|
||
body.hesabix2-st-catalog .st-detail-overlay {
|
||
z-index: 100100;
|
||
}
|
||
|
||
html.st-modal-open body.hesabix2-st-catalog .st-modal-overlay,
|
||
html.st-modal-open body.hesabix2-st-catalog .st-detail-overlay {
|
||
z-index: 100100;
|
||
}
|
||
|
||
/* جلوگیری از تداخل Tailwind با گرید و دکمهها */
|
||
.st-catalog-root.st-hesabix2-compat .st-btn {
|
||
border-style: solid;
|
||
}
|
||
|
||
.st-catalog-root.st-hesabix2-compat .st-card-title {
|
||
font-family: inherit;
|
||
}
|
||
|
||
.page-card .st-catalog-root.st-hesabix2-compat,
|
||
.hesabix-wc__card .st-catalog-root.st-hesabix2-compat {
|
||
border: none;
|
||
box-shadow: none;
|
||
padding: 0;
|
||
background: transparent;
|
||
}
|
||
|
||
.st-product-seo-page {
|
||
padding-bottom: 2rem;
|
||
}
|
||
|
||
.st-product-seo-page .st-product-seo-back {
|
||
margin-bottom: 1rem;
|
||
}
|
||
|
||
.st-product-seo-page .st-product-seo-title {
|
||
font-size: clamp(1.35rem, 3vw, 1.85rem);
|
||
font-weight: 800;
|
||
color: var(--slate-800);
|
||
margin: 0 0 0.75rem;
|
||
}
|
||
|
||
.st-product-seo-page .st-product-seo-price {
|
||
font-size: 1.25rem;
|
||
font-weight: 800;
|
||
color: var(--st-brand);
|
||
margin-bottom: 0.75rem;
|
||
}
|
||
|
||
.st-product-seo-page .st-product-seo-img {
|
||
max-width: 320px;
|
||
margin: 0 auto 1rem;
|
||
display: block;
|
||
border-radius: 12px;
|
||
}
|
||
|
||
/* مرحله اول بازطراحی شبکه تأمین: تجربه marketplace با تاکید روی جستجو، اعتماد و CTA */
|
||
body.hesabix2-st-catalog .st-public-hero--theme {
|
||
position: relative;
|
||
overflow: hidden;
|
||
padding: clamp(1.1rem, 2.5vw, 1.75rem) clamp(0.75rem, 2vw, 1.25rem);
|
||
border: 1px solid rgba(255, 255, 255, 0.16);
|
||
box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
|
||
border-radius: var(--radius-lg, 1rem);
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero--theme::before,
|
||
body.hesabix2-st-catalog .st-public-hero--theme::after {
|
||
content: "";
|
||
position: absolute;
|
||
pointer-events: none;
|
||
border-radius: 999px;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero--theme::before {
|
||
width: 22rem;
|
||
height: 22rem;
|
||
inset-block-start: -8rem;
|
||
inset-inline-start: -5rem;
|
||
background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 62%);
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero--theme::after {
|
||
width: 18rem;
|
||
height: 18rem;
|
||
inset-block-end: -7rem;
|
||
inset-inline-end: 8%;
|
||
background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 64%);
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero__inner {
|
||
max-width: 980px;
|
||
margin-inline: auto;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero__eyebrow {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 0.45rem;
|
||
margin: 0 0 0.5rem;
|
||
padding: 0.25rem 0.6rem;
|
||
border: 1px solid rgba(255, 255, 255, 0.28);
|
||
border-radius: 999px;
|
||
background: rgba(255, 255, 255, 0.12);
|
||
color: rgba(255, 255, 255, 0.9);
|
||
font-size: 0.75rem;
|
||
font-weight: 700;
|
||
backdrop-filter: blur(10px);
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero__eyebrow::before {
|
||
content: "";
|
||
width: 0.5rem;
|
||
height: 0.5rem;
|
||
border-radius: 999px;
|
||
background: var(--success-400, #10b981);
|
||
box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero__title {
|
||
max-width: none;
|
||
margin: 0 0 0.35rem;
|
||
font-size: clamp(1.35rem, 4vw, 1.85rem);
|
||
line-height: 1.25;
|
||
letter-spacing: -0.02em;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero__tagline {
|
||
max-width: 42rem;
|
||
margin: 0;
|
||
font-size: clamp(0.82rem, 2vw, 0.95rem);
|
||
line-height: 1.55;
|
||
opacity: 0.92;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero__actions,
|
||
body.hesabix2-st-catalog .st-public-hero__trust {
|
||
position: relative;
|
||
z-index: 1;
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 0.5rem;
|
||
margin-top: 0.85rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero__cta {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
min-height: 2.5rem;
|
||
padding: 0.55rem 0.9rem;
|
||
border-radius: 0.75rem;
|
||
font-size: 0.875rem;
|
||
font-weight: 800;
|
||
text-decoration: none;
|
||
transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero__cta:hover {
|
||
transform: translateY(-1px);
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero__cta--primary {
|
||
background: #fff;
|
||
color: var(--st-brand-dark);
|
||
box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero__cta--ghost {
|
||
border: 1px solid rgba(255, 255, 255, 0.32);
|
||
background: rgba(255, 255, 255, 0.1);
|
||
color: #fff;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero__trust {
|
||
gap: 0.35rem;
|
||
margin-top: 0.65rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero__trust span {
|
||
padding: 0.28rem 0.55rem;
|
||
border: 1px solid rgba(255, 255, 255, 0.24);
|
||
border-radius: 999px;
|
||
background: rgba(255, 255, 255, 0.1);
|
||
color: rgba(255, 255, 255, 0.88);
|
||
font-size: 0.72rem;
|
||
font-weight: 700;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat.st-page-layout {
|
||
border: 1px solid rgba(203, 213, 225, 0.72);
|
||
border-radius: 1rem;
|
||
background:
|
||
linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
|
||
radial-gradient(circle at 10% 0%, rgba(14, 165, 233, 0.08), transparent 26%);
|
||
padding: clamp(0.65rem, 2vw, 0.85rem);
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat {
|
||
padding: 0;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-page-layout .st-toolbar-stack {
|
||
margin-bottom: 0.65rem;
|
||
gap: 0.5rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-toolbar-stack {
|
||
margin-bottom: 0.65rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-pub-meta {
|
||
margin-bottom: 0.5rem;
|
||
padding: 0.45rem 0.65rem;
|
||
font-size: 0.8rem;
|
||
}
|
||
|
||
@media (min-width: 900px) {
|
||
body.hesabix2-st-catalog .st-page-layout .st-toolbar-stack {
|
||
position: sticky;
|
||
top: 5.25rem;
|
||
z-index: 20;
|
||
}
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-toolbar--search {
|
||
border-color: rgba(14, 165, 233, 0.2);
|
||
border-radius: 1.15rem;
|
||
padding: 0.5rem;
|
||
box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-search-input {
|
||
min-height: 2.5rem;
|
||
font-size: 0.9rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-toolbar--search {
|
||
padding: 0.3rem;
|
||
}
|
||
|
||
/* ستونهای بیشتر در دسکتاپ برای کارتهای جمعوجورتر */
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat {
|
||
--st-columns-effective: min(var(--st-columns-config, 4), 4);
|
||
}
|
||
|
||
@media (min-width: 900px) {
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat {
|
||
--st-columns-effective: min(var(--st-columns-config, 5), 6);
|
||
}
|
||
}
|
||
|
||
@media (min-width: 1200px) {
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat {
|
||
--st-columns-effective: min(var(--st-columns-config, 5), 6);
|
||
}
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-grid {
|
||
gap: 0.55rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card {
|
||
border-color: rgba(203, 213, 225, 0.78);
|
||
border-radius: 0.75rem;
|
||
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
|
||
min-height: 0;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card:hover {
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-img-wrap {
|
||
aspect-ratio: 5 / 4;
|
||
max-height: 7.5rem;
|
||
background:
|
||
linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.82)),
|
||
radial-gradient(circle at 50% 20%, rgba(14, 165, 233, 0.08), transparent 45%);
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-img {
|
||
object-fit: cover;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-img--ph {
|
||
width: 36%;
|
||
height: 36%;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-body {
|
||
padding: 0.5rem 0.6rem 0.55rem;
|
||
gap: 0.2rem;
|
||
flex: 1 1 auto;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-title {
|
||
font-size: 0.8125rem;
|
||
line-height: 1.35;
|
||
-webkit-line-clamp: 2;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-meta {
|
||
font-size: 0.7rem;
|
||
line-height: 1.3;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-price {
|
||
margin-top: 0.1rem;
|
||
font-size: 0.9rem;
|
||
font-weight: 800;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-supplier {
|
||
font-size: 0.7rem;
|
||
gap: 0.3rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-supplier__avatar {
|
||
width: 1.15rem;
|
||
height: 1.15rem;
|
||
font-size: 0.62rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-actions {
|
||
margin-top: 0.35rem;
|
||
padding-top: 0.35rem;
|
||
gap: 0.3rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-actions .st-btn {
|
||
min-height: 2rem;
|
||
padding: 0.35rem 0.45rem;
|
||
border-radius: 0.5rem;
|
||
font-size: 0.72rem;
|
||
line-height: 1.25;
|
||
}
|
||
|
||
|
||
.st-product-seo-page .st-product-seo-card {
|
||
display: grid;
|
||
grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
|
||
gap: clamp(1.25rem, 3vw, 2rem);
|
||
align-items: start;
|
||
border-radius: 1.5rem;
|
||
box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
|
||
}
|
||
|
||
.st-product-seo-page .st-product-seo-img {
|
||
grid-row: 1 / span 9;
|
||
width: 100%;
|
||
max-width: none;
|
||
padding: 1rem;
|
||
background: var(--slate-50, #f8fafc);
|
||
border: 1px solid var(--slate-100, #f1f5f9);
|
||
}
|
||
|
||
.st-product-seo-page .st-product-seo-title,
|
||
.st-product-seo-page .st-product-seo-meta,
|
||
.st-product-seo-page .st-product-seo-price,
|
||
.st-product-seo-page .st-product-seo-supplier-card,
|
||
.st-product-seo-page .st-product-seo-desc,
|
||
.st-product-seo-page .st-product-seo-actions,
|
||
.st-product-seo-page .st-product-seo-card > p {
|
||
grid-column: 2;
|
||
}
|
||
|
||
.st-product-seo-page .st-product-seo-price {
|
||
display: inline-flex;
|
||
width: fit-content;
|
||
padding: 0.45rem 0.75rem;
|
||
border-radius: 999px;
|
||
background: var(--light-100, #e0f2fe);
|
||
}
|
||
|
||
.st-product-seo-page .st-product-seo-supplier-card {
|
||
display: grid;
|
||
gap: 0.35rem;
|
||
padding: 1rem;
|
||
border: 1px solid var(--slate-200, #e2e8f0);
|
||
border-radius: 1rem;
|
||
background: linear-gradient(135deg, #fff, var(--slate-50, #f8fafc));
|
||
}
|
||
|
||
.st-product-seo-page .st-product-seo-supplier-kicker {
|
||
color: var(--slate-500, #64748b);
|
||
font-size: 0.8rem;
|
||
font-weight: 800;
|
||
}
|
||
|
||
.st-product-seo-page .st-product-seo-supplier-name {
|
||
color: var(--slate-800, #1e293b);
|
||
font-size: 1.02rem;
|
||
}
|
||
|
||
.st-product-seo-page .st-product-seo-supplier-location,
|
||
.st-product-seo-page .st-product-seo-supplier-address {
|
||
color: var(--slate-500, #64748b);
|
||
font-size: 0.9rem;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.st-product-seo-page .st-product-seo-actions {
|
||
margin-top: 0.25rem;
|
||
}
|
||
|
||
.st-product-seo-page .st-product-contact-trigger {
|
||
min-height: 3rem;
|
||
border-radius: 1rem;
|
||
padding-inline: 1.2rem;
|
||
}
|
||
|
||
/* ——— کالاهای مرتبط (صفحهٔ جزئیات محصول) ——— */
|
||
.st-product-seo-page .st-product-related {
|
||
grid-column: 1 / -1;
|
||
margin-top: clamp(1.5rem, 4vw, 2.5rem);
|
||
padding-top: clamp(1.25rem, 3vw, 1.75rem);
|
||
border-top: 1px solid var(--slate-200, #e2e8f0);
|
||
}
|
||
|
||
.st-product-related__head {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 0.65rem 1rem;
|
||
margin-bottom: 1rem;
|
||
}
|
||
|
||
.st-product-related__title {
|
||
margin: 0;
|
||
font-size: clamp(1rem, 2.5vw, 1.15rem);
|
||
font-weight: 800;
|
||
color: var(--slate-800, #1e293b);
|
||
}
|
||
|
||
.st-product-related__more {
|
||
font-size: 0.8rem;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.st-product-related__grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
gap: 0.75rem;
|
||
}
|
||
|
||
@media (min-width: 640px) {
|
||
.st-product-related__grid {
|
||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||
gap: 1rem;
|
||
}
|
||
}
|
||
|
||
@media (min-width: 1024px) {
|
||
.st-product-related__grid {
|
||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||
}
|
||
}
|
||
|
||
.st-related-card {
|
||
height: 100%;
|
||
border: 1px solid var(--slate-200, #e2e8f0);
|
||
border-radius: 1rem;
|
||
background: #fff;
|
||
overflow: hidden;
|
||
transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
|
||
}
|
||
|
||
.st-related-card:hover {
|
||
border-color: var(--brand-300, #7dd3fc);
|
||
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
|
||
transform: translateY(-2px);
|
||
}
|
||
|
||
.st-related-card__link {
|
||
display: flex;
|
||
flex-direction: column;
|
||
height: 100%;
|
||
color: inherit;
|
||
text-decoration: none;
|
||
}
|
||
|
||
.st-related-card__img-wrap {
|
||
aspect-ratio: 4 / 3;
|
||
background: var(--slate-50, #f8fafc);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.st-related-card__img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
}
|
||
|
||
.st-related-card__img--ph {
|
||
min-height: 100%;
|
||
background: linear-gradient(135deg, #e2e8f0, #f8fafc);
|
||
}
|
||
|
||
.st-related-card__body {
|
||
display: flex;
|
||
flex-direction: column;
|
||
flex: 1 1 auto;
|
||
gap: 0.2rem;
|
||
padding: 0.65rem 0.75rem 0.75rem;
|
||
}
|
||
|
||
.st-related-card__title {
|
||
margin: 0;
|
||
font-size: 0.875rem;
|
||
font-weight: 800;
|
||
line-height: 1.4;
|
||
color: var(--slate-800, #1e293b);
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 2;
|
||
-webkit-box-orient: vertical;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.st-related-card__meta {
|
||
margin: 0;
|
||
font-size: 0.72rem;
|
||
color: var(--slate-500, #64748b);
|
||
}
|
||
|
||
.st-related-card__price {
|
||
margin: 0.15rem 0 0;
|
||
font-size: 0.8rem;
|
||
font-weight: 800;
|
||
color: var(--brand-700, #0369a1);
|
||
}
|
||
|
||
.st-related-card__supplier {
|
||
margin: auto 0 0;
|
||
padding-top: 0.35rem;
|
||
font-size: 0.72rem;
|
||
color: var(--slate-500, #64748b);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
@media (prefers-color-scheme: dark) {
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat.st-theme-auto {
|
||
--st-accent-soft: rgba(14, 165, 233, 0.18);
|
||
}
|
||
}
|
||
|
||
/* ——— موبایل و تبلت ——— */
|
||
@media (max-width: 767px) {
|
||
body.hesabix2-st-catalog .st-public-page-wrap .page-outer--st-catalog {
|
||
padding-top: 0.35rem;
|
||
padding-left: 0.65rem;
|
||
padding-right: 0.65rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-catalog-main {
|
||
padding: 0 0 0.75rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero--theme {
|
||
padding: 1rem 0.85rem;
|
||
margin-bottom: 0.5rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero__eyebrow {
|
||
display: none;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero__title {
|
||
font-size: 1.2rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero__tagline {
|
||
font-size: 0.8rem;
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 2;
|
||
-webkit-box-orient: vertical;
|
||
overflow: hidden;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero__actions {
|
||
flex-direction: column;
|
||
margin-top: 0.65rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero__cta {
|
||
width: 100%;
|
||
min-height: 2.5rem;
|
||
font-size: 0.85rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-public-hero__trust {
|
||
display: none;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat.st-page-layout {
|
||
padding: 0.55rem;
|
||
border-radius: 0.75rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-page-layout .st-toolbar-stack {
|
||
position: static;
|
||
margin-bottom: 0.5rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat {
|
||
--st-columns-effective: 1;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-grid {
|
||
gap: 0.5rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card {
|
||
flex-direction: row;
|
||
align-items: center;
|
||
border-radius: 0.65rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-img-wrap {
|
||
flex: 0 0 4.75rem;
|
||
width: 4.75rem;
|
||
min-height: 4.75rem;
|
||
max-height: 4.75rem;
|
||
aspect-ratio: 1;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-body {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
padding: 0.45rem 0.5rem 0.45rem 0.4rem;
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: center;
|
||
gap: 0.12rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-title {
|
||
font-size: 0.8125rem;
|
||
-webkit-line-clamp: 2;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-meta {
|
||
font-size: 0.68rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-price {
|
||
margin: 0;
|
||
font-size: 0.85rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-supplier {
|
||
font-size: 0.68rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-supplier__avatar {
|
||
width: 1rem;
|
||
height: 1rem;
|
||
font-size: 0.58rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-actions {
|
||
margin-top: 0.25rem;
|
||
padding-top: 0;
|
||
display: flex;
|
||
flex-direction: row;
|
||
gap: 0.35rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-actions .st-btn--ghost {
|
||
display: none;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-actions .st-btn-contact {
|
||
flex: 1 1 auto;
|
||
min-height: 2.1rem;
|
||
font-size: 0.78rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-toolbar--search {
|
||
padding: 0.25rem;
|
||
box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-search-input {
|
||
min-height: 2.35rem;
|
||
font-size: 0.875rem;
|
||
}
|
||
|
||
.st-product-seo-page .st-product-seo-card {
|
||
display: block;
|
||
}
|
||
}
|
||
|
||
@media (min-width: 768px) and (max-width: 1023px) {
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat {
|
||
--st-columns-effective: min(var(--st-columns-config, 4), 2);
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-catalog-root.st-hesabix2-compat .st-card-img-wrap {
|
||
max-height: 6.25rem;
|
||
}
|
||
}
|
||
|
||
/* ——— دیالوگ تماس (bottom sheet موبایل) ——— */
|
||
body.hesabix2-st-catalog .st-modal-overlay {
|
||
align-items: flex-end;
|
||
justify-content: center;
|
||
padding: 0;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-modal {
|
||
display: flex;
|
||
flex-direction: column;
|
||
width: 100%;
|
||
max-width: 28rem;
|
||
max-height: min(88dvh, calc(100% - env(safe-area-inset-top, 0px) - 0.5rem));
|
||
margin: 0 auto;
|
||
padding: 0;
|
||
overflow: hidden;
|
||
border-radius: 1rem 1rem 0 0;
|
||
box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.2);
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-contact-modal {
|
||
max-width: 26rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-detail-modal {
|
||
max-width: 28rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-modal-close {
|
||
top: 0.5rem;
|
||
left: 0.5rem;
|
||
width: 1.75rem;
|
||
height: 1.75rem;
|
||
font-size: 1.2rem;
|
||
z-index: 2;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-modal-title {
|
||
flex-shrink: 0;
|
||
margin: 0;
|
||
padding: 0.65rem 2.25rem 0.5rem 1rem;
|
||
font-size: 1rem;
|
||
font-weight: 800;
|
||
border-bottom: 1px solid var(--st-border, #e2e8f0);
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-contact-modal__header {
|
||
padding-left: 2.5rem;
|
||
padding-right: 1rem;
|
||
background: linear-gradient(180deg, var(--light-100, #e0f2fe) 0%, #fff 100%);
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-contact-modal__header .st-modal-title {
|
||
padding: 0;
|
||
border-bottom: none;
|
||
font-size: 1.05rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-contact-form__fields {
|
||
padding: 0.85rem 1rem 0.35rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-contact-form__footer {
|
||
padding: 0.65rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
|
||
background: #fff;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-contact-form input,
|
||
body.hesabix2-st-catalog .st-contact-form textarea {
|
||
padding: 0.5rem 0.65rem;
|
||
font-size: 0.9rem;
|
||
border-radius: 0.65rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-contact-form textarea {
|
||
min-height: 4.5rem;
|
||
max-height: 7rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-captcha-block {
|
||
border-radius: 0.75rem;
|
||
background: var(--slate-50, #f8fafc);
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-captcha-media {
|
||
min-height: 2.75rem;
|
||
border-radius: 0.65rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-captcha-img {
|
||
max-height: 2.75rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-captcha-row .st-btn {
|
||
padding: 0.4rem 0.65rem;
|
||
font-size: 0.78rem;
|
||
border-radius: 0.65rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-form-status {
|
||
font-size: 0.82rem;
|
||
border-radius: 0.65rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-submit {
|
||
min-height: 2.65rem;
|
||
border-radius: 0.75rem;
|
||
background: linear-gradient(135deg, var(--st-brand-dark), var(--st-brand)) !important;
|
||
color: #fff !important;
|
||
border: none !important;
|
||
box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-submit:hover:not(:disabled) {
|
||
background: linear-gradient(135deg, var(--st-brand-deep), var(--st-brand-dark)) !important;
|
||
color: #fff !important;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-detail-modal .st-modal-title,
|
||
body.hesabix2-st-catalog .st-detail-modal .st-detail-title {
|
||
padding: 0.65rem 2.25rem 0.5rem 1rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-detail-modal {
|
||
display: block;
|
||
max-height: min(88dvh, calc(100% - env(safe-area-inset-top, 0px) - 0.5rem));
|
||
overflow-x: hidden;
|
||
overflow-y: auto;
|
||
overscroll-behavior: contain;
|
||
-webkit-overflow-scrolling: touch;
|
||
padding: 0 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-detail-modal .st-detail-title {
|
||
padding-left: 0;
|
||
padding-right: 2rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-detail-modal .st-detail-img {
|
||
max-height: 140px;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-detail-modal .st-detail-desc {
|
||
max-height: 6.5rem;
|
||
font-size: 0.85rem;
|
||
}
|
||
|
||
@media (min-width: 768px) {
|
||
body.hesabix2-st-catalog .st-modal-overlay {
|
||
align-items: center;
|
||
padding: 1rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-modal,
|
||
body.hesabix2-st-catalog .st-detail-modal {
|
||
max-height: min(85vh, 32rem);
|
||
border-radius: 1rem;
|
||
}
|
||
|
||
body.hesabix2-st-catalog .st-contact-form textarea {
|
||
max-height: 5.5rem;
|
||
resize: vertical;
|
||
}
|
||
}
|
||
|
||
@media (min-width: 900px) {
|
||
body.hesabix2-st-catalog .st-page-layout .st-toolbar-stack {
|
||
top: 4.5rem;
|
||
}
|
||
}
|