/* =========================================================================
   Vendor storefront + store directory — Singair Mart  (.st-* namespace)
   ========================================================================= */

:root {
	--st-primary: var(--singair-primary, #ff6a21);
	--st-ink:     #111827;
	--st-muted:   #6b7280;
	--st-line:    #eef0f3;
	--st-border:  1px solid #e5e7eb;
	--st-radius:  14px;
	--st-shadow:  0 1px 3px rgba(17,24,39,.06), 0 1px 2px rgba(17,24,39,.04);
}

.st-page, .st-directory { padding: 1.5rem 0 3rem; color: var(--st-ink); }
.st-muted { color: var(--st-muted); }
.st-verified { color: #3b82f6; font-size: .8em; }

.st-card {
	background: #fff; border: var(--st-border); border-radius: var(--st-radius);
	box-shadow: var(--st-shadow); padding: 1.5rem; margin-bottom: 1rem;
}
.st-card h2 { margin: 0 0 .6rem; font-size: 1.05rem; font-weight: 800; }
.st-card p { margin: 0 0 .5rem; line-height: 1.65; color: #374151; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.st-hero {
	background: #fff; border: var(--st-border); border-radius: var(--st-radius);
	box-shadow: var(--st-shadow); overflow: hidden; margin-bottom: 1.25rem;
}
.st-hero__banner {
	height: 180px;
	background: linear-gradient(120deg, #ff8a4c, var(--st-primary) 55%, #b33f05);
	background-size: cover; background-position: center;
}
.st-hero__bar {
	display: flex; align-items: flex-start; gap: 1.25rem;
	padding: 0 1.5rem 1.4rem; position: relative;
}
.st-hero__logo {
	width: 96px; height: 96px; flex-shrink: 0; margin-top: -40px;
	border-radius: 20px; background: #111827; color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 2rem; font-weight: 800;
	border: 4px solid #fff; box-shadow: var(--st-shadow); overflow: hidden;
}
.st-hero__logo img { width: 100%; height: 100%; object-fit: cover; }
.st-hero__id { flex: 1; min-width: 0; padding-top: .9rem; }
.st-hero__name { margin: 0 0 .15rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.st-hero__tagline { margin: 0 0 .5rem; color: var(--st-muted); font-size: .9rem; }
.st-hero__meta { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .84rem; font-weight: 600; }
.st-meta i { color: var(--st-primary); margin-right: .25rem; }
.st-meta .fa-star { color: #f5b400; }
.st-meta small { color: var(--st-muted); font-weight: 500; }
.st-hero__actions { padding-top: 1rem; }

.st-follow {
	display: inline-flex; align-items: center; gap: .45rem;
	height: 42px; padding: 0 1.4rem; border-radius: 999px; cursor: pointer;
	background: var(--st-primary); color: #fff; border: 2px solid var(--st-primary);
	font-weight: 700; font-size: .85rem; transition: all .15s ease; text-decoration: none;
}
.st-follow:hover { background: #e85d13; border-color: #e85d13; color: #fff; }
.st-follow.is-following { background: #fff; color: var(--st-primary); }

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.st-tabs {
	display: flex; gap: .4rem; flex-wrap: wrap;
	border-bottom: 2px solid var(--st-line); margin-bottom: 1.25rem;
}
.st-tab {
	padding: .7rem 1.1rem; border: 0; background: none; cursor: pointer;
	font-weight: 700; font-size: .9rem; color: var(--st-muted);
	border-bottom: 2px solid transparent; margin-bottom: -2px;
	transition: color .15s ease;
}
.st-tab:hover { color: var(--st-ink); }
.st-tab.is-active { color: var(--st-primary); border-bottom-color: var(--st-primary); }

.st-panel { display: none; }
.st-panel.is-active { display: block; }

/* ── Products panel ──────────────────────────────────────────────────────── */
.st-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.st-count { margin: 0; font-size: .84rem; color: var(--st-muted); }
.st-sort {
	height: 38px; padding: 0 .7rem; border: var(--st-border); border-radius: 9px;
	background: #fff; font-size: .82rem; font-weight: 600; cursor: pointer;
}
#st-grid-wrap.is-loading { opacity: .45; pointer-events: none; }
#st-grid-wrap { transition: opacity .15s ease; }
#st-grid-wrap .sh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* Pagination reuses .sh-page-btn styles */
.sh-pagination { display: flex; align-items: center; gap: .35rem; justify-content: center; margin-top: 1.25rem; }
.sh-page-btn {
	min-width: 38px; height: 38px; padding: 0 .5rem;
	border: var(--st-border); border-radius: 9px; background: #fff;
	font-weight: 600; font-size: .84rem; cursor: pointer; color: var(--st-ink);
}
.sh-page-btn:hover:not(:disabled) { border-color: var(--st-primary); color: var(--st-primary); }
.sh-page-btn.is-active { background: var(--st-primary); border-color: var(--st-primary); color: #fff; }
.sh-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.sh-page-dots { color: var(--st-muted); padding: 0 .2rem; }
.sh-empty { text-align: center; padding: 3rem 1rem; background: #fff; border: var(--st-border); border-radius: var(--st-radius); }
.sh-empty i { font-size: 2rem; color: #d1d5db; margin-bottom: .6rem; display: block; }
.sh-empty__cats, .sh-empty__cap { display: none; } /* not relevant inside a store */

/* ── About facts ─────────────────────────────────────────────────────────── */
.st-facts { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; font-size: .88rem; }
.st-facts i { color: var(--st-primary); width: 18px; }

/* ── Reviews ─────────────────────────────────────────────────────────────── */
.st-review__top { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.st-review__avatar { border-radius: 50%; }
.st-review__stars { display: block; color: #f5b400; font-size: .76rem; margin-top: .15rem; }
.st-review__stars .fa-regular { color: #d1d5db; }
.st-review__date { margin-left: auto; font-size: .76rem; color: var(--st-muted); }
.st-review__title { margin: 0 0 .25rem; font-size: .95rem; }
.st-review__body { margin: 0; }
.st-review__reply {
	margin-top: .75rem; padding: .7rem .9rem; background: #f8fafc;
	border-radius: 10px; font-size: .85rem;
}

.st-review-form .st-input {
	width: 100%; border: var(--st-border); border-radius: 10px;
	padding: .6rem .85rem; font-size: .88rem; margin-bottom: .75rem;
}
.st-review-form .st-input:focus { outline: none; border-color: var(--st-primary); }
.st-rate { display: flex; gap: .25rem; margin-bottom: .9rem; }
.st-rate__star { border: 0; background: none; cursor: pointer; font-size: 1.3rem; color: #d1d5db; padding: .1rem; }
.st-rate__star.is-on { color: #f5b400; }
.st-rate__star.is-on i { font-weight: 900; }
.st-submit {
	height: 42px; padding: 0 1.4rem; border: 0; border-radius: 10px; cursor: pointer;
	background: var(--st-primary); color: #fff; font-weight: 700; font-size: .85rem;
}
.st-submit:hover { background: #e85d13; }
.st-submit:disabled { opacity: .5; }

/* ── Directory ───────────────────────────────────────────────────────────── */
.st-directory__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.st-directory__head h1 { margin: 0 0 .2rem; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.st-directory__head p { margin: 0; }
.st-directory__search {
	display: flex; align-items: center; gap: .5rem;
	border: var(--st-border); border-radius: 999px; background: #fff; padding: 0 .35rem 0 1rem;
	height: 46px; min-width: 300px;
}
.st-directory__search i { color: #9ca3af; }
.st-directory__search input { border: 0; outline: none; flex: 1; font-size: .88rem; height: 100%; background: none; }
.st-directory__search button {
	height: 36px; padding: 0 1.1rem; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--st-primary); color: #fff; font-weight: 700; font-size: .8rem;
}

.st-directory__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.st-store-card {
	display: flex; align-items: center; gap: 1rem;
	background: #fff; border: var(--st-border); border-radius: var(--st-radius);
	box-shadow: var(--st-shadow); padding: 1.25rem; text-decoration: none; color: inherit;
	transition: transform .16s ease, box-shadow .16s ease;
}
.st-store-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(17,24,39,.1); }
.st-store-card__logo {
	width: 64px; height: 64px; flex-shrink: 0; border-radius: 16px;
	background: #111827; color: #fff; font-weight: 800; font-size: 1.3rem;
	display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.st-store-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.st-store-card__body { flex: 1; min-width: 0; }
.st-store-card__body strong { display: block; font-size: .95rem; margin-bottom: .25rem; }
.st-store-card__meta { display: flex; gap: .9rem; font-size: .78rem; color: var(--st-muted); }
.st-store-card__meta .fa-star { color: #f5b400; }
.st-store-card__meta .fa-box { color: var(--st-primary); }
.st-store-card__go { color: #d1d5db; transition: color .15s ease, transform .15s ease; }
.st-store-card:hover .st-store-card__go { color: var(--st-primary); transform: translateX(3px); }
.st-directory__empty { text-align: center; padding: 3rem 1rem; }
.st-directory__empty i { font-size: 2rem; color: #d1d5db; display: block; margin-bottom: .6rem; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.st-breadcrumb { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--st-muted); margin-bottom: 1.1rem; }
.st-breadcrumb a { color: inherit; }
.st-breadcrumb a:hover { color: var(--st-primary); }
.st-breadcrumb [aria-current] { color: var(--st-ink); font-weight: 600; }

/* ── Share button ────────────────────────────────────────────────────────── */
.st-hero__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.st-share {
	display: inline-flex; align-items: center; gap: .45rem;
	height: 42px; padding: 0 1.2rem; border-radius: 999px; cursor: pointer;
	background: #fff; color: var(--st-primary); border: 2px solid var(--st-primary);
	font-weight: 700; font-size: .85rem; transition: all .15s ease;
}
.st-share:hover { background: #fff1e9; }

/* ── Stats bar ───────────────────────────────────────────────────────────── */
.st-stats {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	background: #fff; border: var(--st-border); border-radius: var(--st-radius);
	box-shadow: var(--st-shadow); margin-bottom: 1.25rem; overflow: hidden;
}
.st-stat {
	display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.25rem;
	border-right: 1px solid var(--st-line);
}
.st-stat:last-child { border-right: 0; }
.st-stat > i {
	width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px;
	background: #fff1e9; color: var(--st-primary);
	display: inline-flex; align-items: center; justify-content: center; font-size: .95rem;
}
.st-stat span { display: block; font-size: .72rem; color: var(--st-muted); }
.st-stat strong { font-size: .95rem; }

/* ── Tab bar + in-store search ───────────────────────────────────────────── */
.st-tabs { align-items: center; }
.st-tab i { margin-right: .3rem; }
.st-search {
	margin-left: auto; display: flex; align-items: center;
	border: var(--st-border); border-radius: 999px; background: #fff;
	height: 38px; padding: 0 .3rem 0 .9rem; margin-bottom: .4rem; min-width: 220px;
}
.st-search input { border: 0; outline: none; background: none; font-size: .82rem; flex: 1; height: 100%; }
.st-search button { border: 0; background: none; cursor: pointer; color: var(--st-muted); padding: .4rem .6rem; }
.st-search button:hover { color: var(--st-primary); }

/* ── Store Home two-column ───────────────────────────────────────────────── */
.st-home { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.st-side { display: flex; flex-direction: column; min-width: 0; }
.st-mainstack { min-width: 0; }

.st-catlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.st-catlist a {
	display: flex; align-items: center; justify-content: space-between;
	padding: .45rem .2rem; font-size: .85rem; color: #374151; border-radius: 8px;
}
.st-catlist a:hover { color: var(--st-primary); }
.st-catlist small { color: #9ca3af; }

.st-minilist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.st-minilist a { display: flex; gap: .7rem; align-items: center; color: inherit; }
.st-minilist img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #f3f4f6; }
.st-minilist__body { min-width: 0; }
.st-minilist__body strong { display: block; font-size: .82rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-minilist__stars { display: block; color: #f5b400; font-size: .66rem; }
.st-minilist__stars .fa-regular { color: #d1d5db; }
.st-minilist__stars small { color: var(--st-muted); }
.st-minilist__body em { font-style: normal; font-weight: 700; font-size: .82rem; color: var(--st-primary); }

.st-viewall {
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
	width: 100%; height: 38px; margin-top: .9rem; border-radius: 10px; cursor: pointer;
	border: var(--st-border); background: #fff; color: var(--st-ink);
	font-weight: 700; font-size: .8rem; text-decoration: none; transition: all .15s ease;
}
.st-viewall:hover { border-color: var(--st-primary); color: var(--st-primary); }
.st-viewall--primary { background: var(--st-primary); border-color: var(--st-primary); color: #fff; }
.st-viewall--primary:hover { background: #e85d13; color: #fff; }
.st-viewall.is-following { border-color: var(--st-primary); color: var(--st-primary); }

.st-followers { display: flex; align-items: center; gap: .7rem; }
.st-followers__stack { display: inline-flex; }
.st-followers__stack img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px; object-fit: cover; }
.st-followers__stack img:first-child { margin-left: 0; }
.st-followers strong { font-size: .85rem; }

/* About card with award badge */
.st-aboutcard { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 1.25rem; align-items: start; }
.st-aboutcard__body h2 { margin-top: 0; }
.st-topbadge {
	background: #fff8f0; border: 1px solid #fde4c8; border-radius: 12px;
	padding: 1.25rem; text-align: center;
}
.st-topbadge i { font-size: 1.5rem; color: #d97706; display: block; margin-bottom: .4rem; }
.st-topbadge strong { display: block; color: #b45309; margin-bottom: .2rem; }
.st-topbadge span { font-size: .76rem; color: #92400e; line-height: 1.4; display: block; }

/* Products head card */
.st-productshead .st-toolbar { margin-bottom: 1.1rem; }
.st-productshead h2 { margin: 0 0 .1rem; font-size: 1.05rem; font-weight: 800; }
.st-toolbar__tools { display: flex; align-items: center; gap: .7rem; }
.st-view { display: inline-flex; border: var(--st-border); border-radius: 9px; overflow: hidden; }
.st-view__btn { width: 36px; height: 36px; border: 0; background: #fff; cursor: pointer; color: var(--st-muted); }
.st-view__btn.is-active { background: var(--st-primary); color: #fff; }
.st-sortwrap { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--st-muted); }

/* List view inside the store grid */
#st-grid-wrap.is-list .sh-grid { grid-template-columns: 1fr !important; }
#st-grid-wrap.is-list .sm-product-card { display: grid; grid-template-columns: 180px 1fr; align-items: center; }

/* Contact form */
#st-contact-form .st-input { width: 100%; border: var(--st-border); border-radius: 10px; padding: .6rem .85rem; font-size: .88rem; margin: .5rem 0 .9rem; }
#st-contact-form .st-input:focus { outline: none; border-color: var(--st-primary); }

/* Trust strip (reuses the cart trust component markup) */
.st-trust { margin-top: 1.5rem; }
.st-trust .sc-trust-badges {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem;
	background: #fff; border: var(--st-border); border-radius: var(--st-radius);
	box-shadow: var(--st-shadow); padding: 1.1rem 1.25rem;
}
.st-trust .sc-trust-badge { display: flex; align-items: center; gap: .75rem; }
.st-trust .sc-trust-badge__icon {
	width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px;
	background: #fff1e9; color: var(--st-primary);
	display: inline-flex; align-items: center; justify-content: center;
}
.st-trust .sc-trust-badge__label { font-size: .84rem; font-weight: 700; margin: 0; }
.st-trust .sc-trust-badge__sub { font-size: .72rem; color: var(--st-muted); margin: 0; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.st-home { grid-template-columns: 1fr; }
	.st-aboutcard { grid-template-columns: 1fr; }
	.st-search { margin-left: 0; width: 100%; }
}
/* ── Responsive (base) ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	#st-grid-wrap .sh-grid { grid-template-columns: repeat(3, 1fr); }
	.st-directory__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.st-hero__bar { flex-wrap: wrap; }
	.st-hero__actions { padding-top: 0; width: 100%; }
	#st-grid-wrap .sh-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
	.st-directory__grid { grid-template-columns: 1fr; }
	.st-directory__search { min-width: 0; width: 100%; }
	.st-hero__banner { height: 120px; }
}
