/* Storefront theme "default": public store (seller) page — Store templates "default" (CSR) and "ssr" (SSR).
   The products block re-uses the product list styles (.ec-pl, theme.css). */
.ec-st { --ec-st-gap: 16px; padding: 8px 0 32px; }
.ec-st-crumbs { margin-bottom: 8px; }
.ec-st-loading { min-height: 240px; display: flex; align-items: center; justify-content: center; color: var(--ec-muted); }

/* ---------- header ---------- */
.ec-st-hero { position: relative; border: 1px solid var(--ec-border); border-radius: var(--ec-radius-lg); overflow: hidden; background: #fff; margin-bottom: var(--ec-st-gap); }
.ec-st-banner { height: 168px; background: linear-gradient(120deg, var(--ec-primary) 0%, #a1162b 100%); background-size: cover; background-position: center; }
.ec-st-banner.ec-st-banner-img { background-color: var(--ec-page); }
.ec-st-card { display: flex; align-items: flex-end; gap: 16px; padding: 0 24px 16px; margin-top: -48px; position: relative; }
.ec-st-logo { flex: 0 0 auto; width: 112px; height: 112px; border-radius: 50%; background: #fff; border: 4px solid #fff; box-shadow: var(--ec-shadow); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ec-st-logo img { width: 100%; height: 100%; object-fit: contain; }
.ec-st-initial { font-size: 44px; font-weight: 700; color: var(--ec-primary); line-height: 1; }
.ec-st-id { flex: 1 1 auto; min-width: 0; padding-bottom: 4px; }
.ec-st-name { font-size: 20px; font-weight: 700; margin: 0 0 6px; color: var(--ec-text); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; line-height: 1.6; }
.ec-st-latin { font-size: 12px; font-weight: 400; color: var(--ec-muted); direction: ltr; }
.ec-st-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; border-radius: 12px; padding: 2px 10px; background: var(--ec-primary-soft); color: var(--ec-primary); }
.ec-st-tag-off { background: #fff4e5; color: #b26a00; }
.ec-st-sub { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ec-muted); }
.ec-st-sub span { display: inline-flex; align-items: center; gap: 6px; }
.ec-st-actions { flex: 0 0 auto; display: flex; gap: 8px; padding-bottom: 4px; }
.ec-st-actions .ec-btn-outline { height: 36px; font-weight: 400; }
.ec-level { display: inline-flex; align-items: center; border-radius: 12px; padding: 1px 10px; font-size: 11px; font-weight: 700; color: #fff; background: var(--ec-muted); white-space: nowrap; }
.ec-level-excellent { background: var(--ec-success); }
.ec-level-good { background: #5bb85d; }
.ec-level-average { background: var(--ec-warning); }
.ec-level-weak { background: var(--ec-primary); }
.ec-st-stats { list-style: none; margin: 0; padding: 12px 24px 16px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--ec-line); }
.ec-st-stats li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 6px 4px; border-inline-start: 1px solid var(--ec-line); }
.ec-st-stats li:first-child { border-inline-start: 0; }
.ec-st-stats b { font-size: 16px; color: var(--ec-text); display: inline-flex; align-items: center; gap: 4px; }
.ec-st-stats b .fa-star { color: var(--ec-star); font-size: 13px; }
.ec-st-stats span { font-size: 11px; color: var(--ec-muted); }
.ec-st-stats .ec-st-none b { font-size: 12px; font-weight: 400; color: var(--ec-muted); }

/* ---------- tabs ---------- */
.ec-st-tabs { position: sticky; top: var(--ec-sticky-top, 0px); z-index: 20; display: flex; gap: 4px; background: #fff; border-bottom: 1px solid var(--ec-border); margin-bottom: var(--ec-st-gap); overflow-x: auto; scrollbar-width: none; }
.ec-st-tabs::-webkit-scrollbar { display: none; }
.ec-st-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px; border: 0; background: none; font-size: 13px; color: var(--ec-muted); border-bottom: 3px solid transparent; cursor: pointer; }
.ec-st-tab small { background: var(--ec-page); color: var(--ec-text-2); border-radius: 10px; padding: 0 7px; font-size: 11px; line-height: 18px; }
.ec-st-tab:hover { color: var(--ec-text); }
.ec-st-tab.ec-active { color: var(--ec-primary); border-bottom-color: var(--ec-primary); font-weight: 700; }
.ec-st-panel[hidden] { display: none !important; }

/* ---------- categories of the seller (filter links) ---------- */
.ec-st-cats { margin-bottom: 12px; }
.ec-st-cats .ec-rail { gap: 8px; padding: 2px; }
.ec-st-cat { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--ec-border); border-radius: 18px; font-size: 12px; color: var(--ec-text-2); background: #fff; white-space: nowrap; }
.ec-st-cat small { color: var(--ec-muted); }
.ec-st-cat:hover { border-color: var(--ec-text-2); }
.ec-st-cat.ec-active { border-color: var(--ec-primary); color: var(--ec-primary); background: var(--ec-primary-soft); font-weight: 700; }
.ec-st-catlist { list-style: none; margin: 0; padding: 0; }
.ec-st-catlist li a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; font-size: 13px; color: var(--ec-text-2); }
.ec-st-catlist li a small { color: var(--ec-muted); }
.ec-st-catlist li a:hover, .ec-st-catlist li.ec-active a { color: var(--ec-primary); }
.ec-st-catlist li.ec-active a { font-weight: 700; }

/* ---------- about ---------- */
.ec-st-about { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--ec-st-gap); align-items: start; }
.ec-st-box { border: 1px solid var(--ec-border); border-radius: var(--ec-radius-lg); padding: 20px; background: #fff; margin-bottom: var(--ec-st-gap); }
.ec-st-box h2, .ec-st-box h3 { font-size: 15px; font-weight: 700; margin: 0 0 14px; color: var(--ec-text); display: flex; align-items: center; gap: 8px; }
.ec-st-box h2::before, .ec-st-box h3::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--ec-primary); }
.ec-st-desc { font-size: 13px; line-height: 2.1; color: var(--ec-text-2); overflow: hidden; max-height: 270px; position: relative; }
.ec-st-desc.ec-expanded { max-height: none; }
.ec-st-desc.ec-collapsible:not(.ec-expanded)::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.ec-st-desc-toggle { margin-top: 8px; display: none; }
.ec-st-box.ec-collapsible .ec-st-desc-toggle { display: inline-flex; }
.ec-st-desc-toggle .ec-less, .ec-st-box .ec-expanded + .ec-st-desc-toggle .ec-more { display: none; }
.ec-st-box .ec-expanded + .ec-st-desc-toggle .ec-less { display: inline; }
.ec-st-empty-text { color: var(--ec-muted); font-size: 13px; }
.ec-st-contact { list-style: none; margin: 0; padding: 0; }
.ec-st-contact li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--ec-line); }
.ec-st-contact li:last-child { border-bottom: 0; }
.ec-st-contact i { width: 18px; text-align: center; color: var(--ec-muted); margin-top: 4px; }
.ec-st-contact a { color: #19bfd3; word-break: break-all; }
.ec-st-contact .ec-ltr { direction: ltr; unicode-bidi: embed; }
.ec-st-social { display: flex; gap: 8px; margin-top: 12px; }
.ec-st-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ec-border); display: inline-flex; align-items: center; justify-content: center; color: var(--ec-text-2); font-size: 16px; }
.ec-st-social a:hover { color: var(--ec-primary); border-color: var(--ec-primary); }
.ec-st-map { height: 240px; border-radius: var(--ec-radius); overflow: hidden; margin-top: 12px; background: var(--ec-page); z-index: 0; }
.ec-st-times { width: 100%; border-collapse: collapse; font-size: 12px; }
.ec-st-times th, .ec-st-times td { padding: 7px 6px; border-bottom: 1px solid var(--ec-line); text-align: start; }
.ec-st-times th { color: var(--ec-muted); font-weight: 400; width: 40%; }
.ec-st-times td { color: var(--ec-text); }
.ec-st-times tr.ec-today th, .ec-st-times tr.ec-today td { color: var(--ec-primary); font-weight: 700; }
.ec-st-shift { display: inline-block; white-space: nowrap; margin-inline-end: 14px; }
/* the owner is signed in now */
.ec-st-online { width: 10px; height: 10px; border-radius: 50%; background: #00a049; box-shadow: 0 0 0 3px rgba(0, 160, 73, .18); flex: 0 0 auto; }
.ec-st-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.ec-st-gallery a { display: block; aspect-ratio: 4 / 3; border-radius: var(--ec-radius); overflow: hidden; background: var(--ec-page); }
.ec-st-gallery img { width: 100%; height: 100%; object-fit: cover; }
.ec-st-videos video { width: 100%; border-radius: var(--ec-radius); margin-top: 8px; background: #000; }
.ec-st-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- performance + reviews ---------- */
.ec-st-perf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--ec-st-gap); align-items: start; }
.ec-st-score { text-align: center; }
.ec-st-score-num { font-size: 40px; font-weight: 700; color: var(--ec-text); line-height: 1.2; }
.ec-st-score-num small { font-size: 14px; color: var(--ec-muted); font-weight: 400; }
.ec-st-stars { display: inline-flex; gap: 2px; direction: ltr; font-size: 16px; color: #d6d6d6; margin: 6px 0; }
.ec-st-stars .ec-on { color: var(--ec-star); }
.ec-st-score p { font-size: 12px; color: var(--ec-muted); margin: 6px 0 0; line-height: 1.9; }
.ec-st-metrics { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ec-st-metric { display: grid; grid-template-columns: 120px minmax(0, 1fr) 56px; align-items: center; gap: 10px; font-size: 12px; color: var(--ec-text-2); }
.ec-st-metric b { text-align: end; color: var(--ec-text); }
.ec-st-bar { height: 6px; border-radius: 3px; background: var(--ec-line); overflow: hidden; }
.ec-st-bar span { display: block; height: 100%; border-radius: 3px; background: var(--ec-success); }
.ec-st-bar.ec-st-bar-bad span { background: var(--ec-primary); }
.ec-st-metric-note { font-size: 11px; color: var(--ec-muted); margin-top: 10px; line-height: 1.9; }
.ec-st-reviews { list-style: none; margin: 0; padding: 0; }
.ec-st-review { padding: 14px 0; border-bottom: 1px solid var(--ec-line); }
.ec-st-review:last-child { border-bottom: 0; }
.ec-st-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12px; color: var(--ec-muted); }
.ec-st-review-head .ec-st-stars { font-size: 13px; margin: 0; }
.ec-st-review-head b { color: var(--ec-text); font-weight: 400; }
.ec-st-review p { margin: 8px 0 0; font-size: 13px; line-height: 2; color: var(--ec-text-2); white-space: pre-line; }
.ec-st-more { margin-top: 12px; }

/* ---------- not found ---------- */
.ec-st-404 { text-align: center; padding: 64px 16px; border: 1px solid var(--ec-border); border-radius: var(--ec-radius-lg); background: #fff; }
.ec-st-404 i { font-size: 48px; color: var(--ec-muted); }
.ec-st-404 h1 { font-size: 18px; margin: 16px 0 8px; }
.ec-st-404 p { color: var(--ec-muted); font-size: 13px; margin: 0 0 16px; }

@media (max-width: 991.98px) {
    .ec-st-about, .ec-st-perf { grid-template-columns: minmax(0, 1fr); }
    .ec-st-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ec-st-stats li:nth-child(4) { border-inline-start: 0; }
}
@media (max-width: 575.98px) {
    .ec-st-banner { height: 112px; }
    .ec-st-card { flex-wrap: wrap; align-items: center; padding: 0 16px 12px; margin-top: -40px; gap: 12px; }
    .ec-st-logo { width: 84px; height: 84px; }
    .ec-st-initial { font-size: 34px; }
    .ec-st-id { flex: 1 1 calc(100% - 100px); padding-top: 40px; }
    .ec-st-name { font-size: 16px; }
    .ec-st-actions { flex: 1 1 100%; }
    .ec-st-actions > * { flex: 1 1 0; justify-content: center; }
    .ec-st-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 12px 12px; }
    .ec-st-stats li { border-inline-start: 0; border-top: 1px solid var(--ec-line); }
    .ec-st-stats li:nth-child(-n+2) { border-top: 0; }
    .ec-st-box { padding: 16px; }
    .ec-st-metric { grid-template-columns: 96px minmax(0, 1fr) 48px; }
}
