/* Subly Multivendor – storefront */
:root { --subly-primary: #0f766e; --subly-border: #e3e6ea; --subly-muted: #6b7680; --subly-bg: #f6f7f9; --subly-radius: 10px; }

.subly-store, .subly-store * { box-sizing: border-box; }
.subly-store { margin: 0 auto 40px; }
.subly-store-header { position: relative; border-radius: var(--subly-radius); overflow: hidden; background: #fff; border: 1px solid var(--subly-border); margin-bottom: 16px; }
.subly-store-header__banner { height: 260px; background: linear-gradient(135deg, var(--subly-primary), #134e4a) center / cover no-repeat; }
.subly-store-header__info { display: flex; gap: 18px; align-items: flex-end; padding: 18px 22px; flex-wrap: wrap; }
.subly-store-header--banner .subly-store-header__info { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); }
.subly-store-header--banner .subly-store-header__info a { color: #fff; }
.subly-store-header--split .subly-store-header__info { margin-top: -54px; position: relative; }
.subly-store-header__logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; background: #fff; flex: 0 0 auto; }
.subly-store-header__text { flex: 1 1 280px; min-width: 0; }
.subly-store-header__name { margin: 0 0 4px; font-size: 26px; line-height: 1.2; color: inherit; }
.subly-store-header__meta { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.subly-store-header__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.subly-social { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; padding: 0; font-size: 13px; }
.subly-social__link { padding: 2px 10px; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; opacity: .9; }

.subly-store__tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--subly-border); margin: 0 0 18px; }
.subly-store__tab { padding: 10px 14px; text-decoration: none; color: var(--subly-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subly-store__tab.is-active { color: var(--subly-primary); border-color: var(--subly-primary); font-weight: 600; }
.subly-store__body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 26px; }
.subly-store__search { display: flex; gap: 8px; margin: 0 0 14px; }
.subly-store__search input { flex: 1; }
.subly-widget { border: 1px solid var(--subly-border); border-radius: var(--subly-radius); padding: 14px 16px; margin: 0 0 16px; background: #fff; }
.subly-widget__title { font-size: 16px; margin: 0 0 10px; }
.subly-widget__list { margin: 0; padding-left: 18px; }
.subly-contact input, .subly-contact textarea { width: 100%; }
.subly-hp { position: absolute !important; left: -9999px !important; }
.subly-coupon { border: 2px dashed var(--subly-primary); border-radius: 8px; padding: 8px 10px; margin: 0 0 8px; }
.subly-coupon__code { font-family: monospace; font-size: 15px; letter-spacing: .5px; }
.subly-coupon__amount { float: right; font-weight: 700; color: var(--subly-primary); }
.subly-store-time { width: 100%; font-size: 13px; }
.subly-store-time th { text-align: left; font-weight: 500; }

.subly-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef0f2; color: #333; }
.subly-badge--success { background: #dff3e8; color: #17694a; }
.subly-badge--muted { background: #eceff2; color: #46505a; }
.subly-badge--accent { background: var(--subly-primary); color: #fff; }
.subly-notice { padding: 12px 14px; border-radius: 8px; margin: 0 0 16px; border-left: 4px solid #2f6fb6; background: #eef5fc; }
.subly-notice--error { border-color: #c0392b; background: #fdf1ef; }
.subly-sold-by { display: block; font-size: 13px; color: var(--subly-muted); margin: 2px 0 6px; }
.subly-qty-discount { color: var(--subly-primary); font-weight: 600; }

.subly-stars { --subly-rating: 0; display: inline-block; width: 80px; height: 15px; vertical-align: middle; background: linear-gradient(90deg, #f2a516 calc(var(--subly-rating) / 5 * 100%), #d9dee3 0); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 15'><path d='m7.5 0 2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4L3 13.8l.9-5L.3 5.3l5-.7zm16 0 2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5-3.6-3.5 5-.7zm16 0 2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5-3.6-3.5 5-.7zm16 0 2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5-3.6-3.5 5-.7zm16 0 2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5-3.6-3.5 5-.7z'/></svg>") left / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 15'><path d='m7.5 0 2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4L3 13.8l.9-5L.3 5.3l5-.7zm16 0 2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5-3.6-3.5 5-.7zm16 0 2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5-3.6-3.5 5-.7zm16 0 2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5-3.6-3.5 5-.7zm16 0 2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5-3.6-3.5 5-.7z'/></svg>") left / contain no-repeat; }
.subly-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; }

/* Store list */
.subly-store-list__filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.subly-store-list__filters input[type=search] { flex: 1 1 200px; }
.subly-store-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.subly-store-card { border: 1px solid var(--subly-border); border-radius: var(--subly-radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.subly-store-card.is-featured { border-color: var(--subly-primary); }
.subly-store-card__banner { display: flex; gap: 6px; padding: 8px; align-items: flex-start; height: 110px; background: linear-gradient(135deg, var(--subly-primary), #134e4a) center / cover no-repeat; text-decoration: none; }
.subly-store-card__body { padding: 0 14px 14px; position: relative; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.subly-store-card__logo { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; margin-top: -32px; object-fit: cover; background: #fff; }
.subly-store-card__name { margin: 4px 0 0; font-size: 17px; }
.subly-store-card__meta { margin: 0; font-size: 13px; color: var(--subly-muted); }
.subly-store-card__visit { margin-top: auto; align-self: flex-start; }
.subly-pagination { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.subly-pagination .page-numbers { padding: 5px 10px; border: 1px solid var(--subly-border); border-radius: 6px; text-decoration: none; }
.subly-pagination .current { background: var(--subly-primary); color: #fff; }

/* Registration */
.subly-register__role label { margin-right: 18px; display: inline-flex; gap: 6px; align-items: center; }
.subly-register__url { display: block; color: var(--subly-muted); margin-top: 4px; word-break: break-all; }
.subly-become-vendor { border: 1px solid var(--subly-border); border-radius: var(--subly-radius); padding: 12px 16px; margin: 18px 0; }
.subly-become-vendor summary { cursor: pointer; }

.subly-vendor-tab { display: flex; gap: 16px; align-items: flex-start; }
.subly-vendor-tab img { border-radius: 50%; }
.subly-vendor-tab ul { list-style: none; margin: 0; padding: 0; }

@media (max-width: 900px) {
	.subly-store__body { grid-template-columns: 1fr; }
	.subly-store-header__banner { height: 170px; }
	.subly-store-header--banner .subly-store-header__info { position: static; color: inherit; background: #fff; }
	.subly-store-header--banner .subly-store-header__info a { color: var(--subly-primary); }
	.subly-store-header__name { font-size: 21px; }
}
.is-layout-constrained > .subly-store-list { max-width: var(--wp--style--global--wide-size, 1240px) !important; }

/* Store page product grid & form controls (independent of theme/WooCommerce styles) */
.subly-store ul.products { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.subly-store ul.products li.product { margin: 0; width: auto; float: none; }
.subly-store ul.products li.product img { width: 100%; height: auto; border-radius: 8px; }
.subly-store input[type=text], .subly-store input[type=email], .subly-store input[type=search], .subly-store textarea, .subly-store select,
.subly-store-list input[type=search], .subly-store-list select { padding: 8px 10px; border: 1px solid #cdd3d9; border-radius: 8px; font: inherit; font-size: 14px; max-width: 100%; }
.subly-store .button, .subly-store-list .button { display: inline-block; background: var(--subly-primary); color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; font-size: 14px; cursor: pointer; text-decoration: none; }
.subly-store .woocommerce-result-count { float: left; margin: 0 0 12px; font-size: 13px; color: var(--subly-muted); }
.subly-store .woocommerce-ordering { float: right; margin: 0 0 12px; }
.subly-store ul.products { clear: both; }
.subly-privacy { font-size: 12px; color: var(--subly-muted); line-height: 1.4; }
