forked from hesabix/arc
627 lines
9.9 KiB
CSS
627 lines
9.9 KiB
CSS
/**
|
|
* تم پیشفرض شبیه ترب — RTL، بدون فونت خارجی.
|
|
*/
|
|
|
|
.st-catalog-root {
|
|
--st-bg: #f5f5f5;
|
|
--st-card-bg: #fff;
|
|
--st-border: #e8e8e8;
|
|
--st-text: #212121;
|
|
--st-muted: #757575;
|
|
--st-accent: #e6123d;
|
|
--st-radius: 12px;
|
|
--st-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
direction: rtl;
|
|
text-align: right;
|
|
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
color: var(--st-text);
|
|
background: var(--st-bg);
|
|
padding: 1rem;
|
|
border-radius: var(--st-radius);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.st-catalog-root *,
|
|
.st-catalog-root *::before,
|
|
.st-catalog-root *::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.st-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;
|
|
}
|
|
|
|
.st-toolbar {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.st-toolbar-stack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.st-toolbar-stack .st-toolbar {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.st-toolbar--filters {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 0.65rem;
|
|
padding: 0.75rem;
|
|
background: #fafafa;
|
|
border: 1px solid var(--st-border);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.st-filter-fields {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.65rem;
|
|
}
|
|
|
|
.st-filter-label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
flex: 1 1 140px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.st-filter-province,
|
|
.st-filter-city,
|
|
.st-filter-brand {
|
|
padding: 0.5rem 0.65rem;
|
|
border: 1px solid var(--st-border);
|
|
border-radius: 8px;
|
|
font-size: 0.95rem;
|
|
background: #fff;
|
|
}
|
|
|
|
.st-filter-apply.button {
|
|
background: #424242;
|
|
}
|
|
|
|
.st-catalog-root.st-is-loading .st-grid {
|
|
opacity: 0.55;
|
|
pointer-events: none;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.st-search-input {
|
|
flex: 1 1 200px;
|
|
min-width: 0;
|
|
padding: 0.65rem 0.85rem;
|
|
border: 1px solid var(--st-border);
|
|
border-radius: 8px;
|
|
font-size: 0.95rem;
|
|
background: #fff;
|
|
}
|
|
|
|
.st-search-btn.button,
|
|
.st-loadmore.button {
|
|
background: var(--st-accent);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
padding: 0.65rem 1.1rem;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.st-search-btn.button:hover,
|
|
.st-loadmore.button:hover {
|
|
filter: brightness(0.95);
|
|
}
|
|
|
|
.st-catalog-status {
|
|
margin-bottom: 0.75rem;
|
|
font-size: 0.9rem;
|
|
color: var(--st-muted);
|
|
}
|
|
|
|
.st-catalog-status.st-is-error {
|
|
color: #b00020;
|
|
}
|
|
|
|
.st-catalog-status.st-is-info {
|
|
color: #1565c0;
|
|
}
|
|
|
|
.st-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(var(--st-columns, 4), minmax(0, 1fr));
|
|
gap: 1rem;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.st-catalog-root {
|
|
--st-columns: 3;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.st-catalog-root {
|
|
--st-columns: 2;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 420px) {
|
|
.st-catalog-root {
|
|
--st-columns: 1;
|
|
}
|
|
}
|
|
|
|
.st-card {
|
|
background: var(--st-card-bg);
|
|
border: 1px solid var(--st-border);
|
|
border-radius: var(--st-radius);
|
|
box-shadow: var(--st-shadow);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100%;
|
|
}
|
|
|
|
.st-card-img-wrap {
|
|
aspect-ratio: 1;
|
|
background: #fafafa;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.st-card-img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.st-card-img--fallback,
|
|
.st-detail-img--fallback {
|
|
object-fit: contain;
|
|
padding: 12%;
|
|
opacity: 0.92;
|
|
}
|
|
|
|
.st-card-body {
|
|
padding: 0.85rem 1rem 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
flex: 1;
|
|
}
|
|
|
|
.st-card-title {
|
|
margin: 0;
|
|
font-size: 0.95rem;
|
|
font-weight: 700;
|
|
line-height: 1.35;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.st-card-meta {
|
|
font-size: 0.8rem;
|
|
color: var(--st-muted);
|
|
}
|
|
|
|
.st-card-brand {
|
|
font-size: 0.8rem;
|
|
color: var(--st-muted);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.st-card-price {
|
|
font-size: 1rem;
|
|
font-weight: 800;
|
|
color: var(--st-text);
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.st-card-supplier {
|
|
font-size: 0.8rem;
|
|
color: var(--st-muted);
|
|
}
|
|
|
|
.st-supplier-contact {
|
|
margin-top: 0.45rem;
|
|
padding: 0.65rem 0.75rem;
|
|
border: 1px solid var(--st-border);
|
|
border-radius: 10px;
|
|
background: linear-gradient(180deg, #fafcff 0%, #f5f7fa 100%);
|
|
}
|
|
|
|
.st-supplier-contact--compact {
|
|
padding: 0.5rem 0.6rem;
|
|
margin-top: 0.35rem;
|
|
}
|
|
|
|
.st-supplier-contact-title {
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
color: var(--st-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.02em;
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.st-supplier-contact-name {
|
|
font-size: 0.9rem;
|
|
font-weight: 800;
|
|
color: var(--st-text);
|
|
margin-bottom: 0.35rem;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.st-supplier-contact--compact .st-supplier-contact-name {
|
|
font-size: 0.82rem;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.st-supplier-contact-rows {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.3rem;
|
|
}
|
|
|
|
.st-supplier-contact-row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0.45rem;
|
|
font-size: 0.82rem;
|
|
line-height: 1.45;
|
|
color: var(--st-text);
|
|
}
|
|
|
|
.st-supplier-contact--compact .st-supplier-contact-row {
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
.st-supplier-contact-icon {
|
|
flex: 0 0 auto;
|
|
line-height: 1.35;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.st-supplier-contact-text {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.st-supplier-contact-link {
|
|
color: #1565c0;
|
|
font-weight: 700;
|
|
text-decoration: none;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.st-supplier-contact-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.st-card-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.45rem;
|
|
margin-top: auto;
|
|
padding-top: 0.55rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.st-card-actions .button {
|
|
font-size: 0.82rem;
|
|
padding: 0.4rem 0.75rem;
|
|
font-weight: 600;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.st-btn-details {
|
|
background: #fafafa;
|
|
color: var(--st-text);
|
|
border: 1px solid var(--st-border);
|
|
}
|
|
|
|
.st-btn-details:hover {
|
|
background: #f0f0f0;
|
|
}
|
|
|
|
.st-btn-contact {
|
|
border: 1px solid var(--st-border);
|
|
background: #fff;
|
|
color: var(--st-accent);
|
|
}
|
|
|
|
.st-btn-contact:hover {
|
|
background: #fff5f7;
|
|
}
|
|
|
|
.st-loadmore-wrap {
|
|
margin-top: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
/* مودال تماس */
|
|
.st-modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.45);
|
|
z-index: 100000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1rem;
|
|
direction: rtl;
|
|
}
|
|
|
|
.st-modal {
|
|
background: #fff;
|
|
border-radius: var(--st-radius);
|
|
max-width: 420px;
|
|
width: 100%;
|
|
max-height: 90vh;
|
|
overflow: auto;
|
|
padding: 1.25rem;
|
|
position: relative;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.st-detail-modal {
|
|
max-width: 520px;
|
|
}
|
|
|
|
.st-detail-title {
|
|
padding-left: 2rem;
|
|
}
|
|
|
|
.st-detail-loading {
|
|
text-align: center;
|
|
padding: 1.5rem 0;
|
|
color: var(--st-muted);
|
|
}
|
|
|
|
.st-detail-img-wrap {
|
|
text-align: center;
|
|
margin: 0 0 0.75rem;
|
|
}
|
|
|
|
.st-detail-img {
|
|
max-width: 100%;
|
|
max-height: 220px;
|
|
object-fit: contain;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.st-detail-meta,
|
|
.st-detail-price,
|
|
.st-detail-unit,
|
|
.st-detail-updated,
|
|
.st-detail-brand,
|
|
.st-detail-origin,
|
|
.st-detail-lead-time {
|
|
font-size: 0.88rem;
|
|
margin-bottom: 0.4rem;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.st-detail-modal .st-supplier-contact {
|
|
margin: 0.75rem 0 0.5rem;
|
|
}
|
|
|
|
.st-detail-price {
|
|
font-weight: 800;
|
|
font-size: 1.05rem;
|
|
}
|
|
|
|
.st-detail-desc-wrap {
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.st-detail-desc-label {
|
|
display: block;
|
|
margin-bottom: 0.25rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.st-detail-desc {
|
|
max-height: 220px;
|
|
overflow: auto;
|
|
font-size: 0.88rem;
|
|
line-height: 1.55;
|
|
border: 1px solid var(--st-border);
|
|
border-radius: 8px;
|
|
padding: 0.6rem 0.75rem;
|
|
background: #fafafa;
|
|
}
|
|
|
|
.st-card-short {
|
|
font-size: 0.85rem;
|
|
color: var(--st-muted);
|
|
margin: 0.2rem 0 0.35rem;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.st-detail-short-wrap,
|
|
.st-detail-expert-wrap,
|
|
.st-detail-specs-wrap {
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.st-detail-short-label,
|
|
.st-detail-expert-label,
|
|
.st-detail-specs-label {
|
|
display: block;
|
|
margin-bottom: 0.25rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.st-detail-short,
|
|
.st-detail-expert {
|
|
max-height: 220px;
|
|
overflow: auto;
|
|
font-size: 0.88rem;
|
|
line-height: 1.55;
|
|
border: 1px solid var(--st-border);
|
|
border-radius: 8px;
|
|
padding: 0.6rem 0.75rem;
|
|
background: #fafafa;
|
|
}
|
|
|
|
.st-detail-specs {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
.st-detail-specs th,
|
|
.st-detail-specs td {
|
|
border: 1px solid var(--st-border);
|
|
padding: 0.45rem 0.6rem;
|
|
text-align: right;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.st-detail-specs th {
|
|
width: 38%;
|
|
background: #f8fafc;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.st-detail-gallery-wrap {
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.st-detail-gallery-label {
|
|
display: block;
|
|
margin-bottom: 0.35rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.st-detail-gallery {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.45rem;
|
|
}
|
|
|
|
.st-gallery-thumb {
|
|
border: 1px solid var(--st-border);
|
|
border-radius: 8px;
|
|
padding: 0;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.st-gallery-thumb img {
|
|
display: block;
|
|
width: 64px;
|
|
height: 64px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.st-detail-error {
|
|
color: #b00020;
|
|
margin: 0;
|
|
padding: 0.5rem 0;
|
|
}
|
|
|
|
.st-detail-actions {
|
|
margin-top: 1rem;
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.st-detail-overlay {
|
|
z-index: 100001;
|
|
}
|
|
|
|
.st-modal-close {
|
|
position: absolute;
|
|
left: 0.75rem;
|
|
top: 0.65rem;
|
|
border: none;
|
|
background: transparent;
|
|
font-size: 1.5rem;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
color: var(--st-muted);
|
|
}
|
|
|
|
.st-modal-title {
|
|
margin: 0 0 1rem;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.st-contact-form label {
|
|
display: block;
|
|
margin-bottom: 0.75rem;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.st-contact-form input,
|
|
.st-contact-form textarea {
|
|
display: block;
|
|
width: 100%;
|
|
margin-top: 0.35rem;
|
|
padding: 0.5rem 0.65rem;
|
|
border: 1px solid var(--st-border);
|
|
border-radius: 8px;
|
|
font: inherit;
|
|
}
|
|
|
|
.st-captcha-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.75rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.st-captcha-img {
|
|
height: 48px;
|
|
border: 1px solid var(--st-border);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.st-captcha-refresh {
|
|
font-size: 0.8rem;
|
|
cursor: pointer;
|
|
border: 1px solid var(--st-border);
|
|
background: #fff;
|
|
border-radius: 6px;
|
|
padding: 0.35rem 0.6rem;
|
|
}
|
|
|
|
.st-form-status {
|
|
margin: 0.5rem 0;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.st-form-status.st-is-error {
|
|
color: #b00020;
|
|
}
|
|
|
|
.st-submit {
|
|
width: 100%;
|
|
margin-top: 0.5rem;
|
|
}
|