/* Browse pages (stores, products, ...): shared tokens, hero, search, control bar, chips, price tag, logo tile, pager. Scoped to .bs-page; shares the marketing site's Manrope, orange and slate. */

.bs-page {
	--bs-ink: #191e3a;
	--bs-slate: #343f52;
	--bs-body: #555b6e;
	--bs-muted: #5f6577;
	--bs-orange: #ed8134;
	--bs-orange-text: #9a4f1c;
	--bs-wash: #fdf3eb;
	--bs-wash-2: #fbe6d6;
	--bs-mist: #f1f2f3;
	--bs-line: #e0e6ed;
	--bs-line-firm: #c9cfd8;
	--bs-white: #ffffff;
	--bs-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--bs-nav-h: 64px;
	--bs-gutter: 16px;

	font-family: "Manrope", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--bs-body);
	background: var(--bs-white);
}
@media (min-width: 768px) { .bs-page { --bs-gutter: max(12px, calc((100% - 720px) / 2 + 12px)); } }
@media (min-width: 992px) { .bs-page { --bs-nav-h: 76px; --bs-gutter: max(12px, calc((100% - 960px) / 2 + 12px)); } }
@media (min-width: 1200px) { .bs-page { --bs-gutter: max(12px, calc((100% - 1140px) / 2 + 12px)); } }
@media (min-width: 1400px) { .bs-page { --bs-gutter: max(12px, calc((100% - 1320px) / 2 + 12px)); } }

.bs-page *,
.bs-page *::before,
.bs-page *::after { box-sizing: border-box; }
.bs-page :where(h1, h2, p, ul, ol, li) { margin: 0; padding: 0; }
.bs-page :where(ul, ol) { list-style: none; }
.bs-page ::selection { background: var(--bs-wash-2); color: var(--bs-ink); }

.bs-page a:focus-visible,
.bs-page button:focus-visible,
.bs-page select:focus-visible { outline: 2px solid var(--bs-orange); outline-offset: 3px; }

.bs-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bs-ico { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Same widths as the navbar's container so edges line up */
.bs-wrap { width: 100%; max-width: 540px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .bs-wrap { max-width: 720px; padding: 0 12px; } }
@media (min-width: 992px) { .bs-wrap { max-width: 960px; } }
@media (min-width: 1200px) { .bs-wrap { max-width: 1140px; } }
@media (min-width: 1400px) { .bs-wrap { max-width: 1320px; } }

/* Type */
.bs-display { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; color: var(--bs-slate); text-wrap: balance; }
.bs-h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; color: var(--bs-slate); }
.bs-lede { font-size: 17px; line-height: 1.6; margin-top: 18px; max-width: 52ch; text-wrap: pretty; }

.bs-underline { position: relative; white-space: nowrap; }
.bs-underline svg { position: absolute; left: 0; bottom: -0.18em; width: 100%; height: 0.24em; overflow: visible; }
.bs-underline path { fill: none; stroke: var(--bs-orange); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* Hero */
.bs-hero { background: var(--bs-wash); padding: 32px 0 40px; text-align: center; }
.bs-hero .bs-lede { margin-left: auto; margin-right: auto; }
@media (min-width: 992px) { .bs-hero { padding: 56px 0 56px; } }

.bs-crumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; font-size: 14px; color: var(--bs-muted); }
.bs-crumb a { color: var(--bs-orange-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bs-crumb a:hover { color: var(--bs-ink); }

.bs-search { position: relative; display: flex; gap: 8px; max-width: 560px; margin: 28px auto 0; text-align: left; }
.bs-search__ico { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; fill: none; stroke: var(--bs-muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.bs-input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 12px 14px 12px 42px; font: inherit; font-size: 15px; color: var(--bs-ink); background: var(--bs-white); border: 1px solid var(--bs-line-firm); border-radius: 6px; -webkit-appearance: none; appearance: none; }
.bs-input::placeholder { color: var(--bs-muted); opacity: 1; }
.bs-input:focus-visible { border-color: var(--bs-orange); outline: 3px solid rgba(237, 129, 52, 0.25); outline-offset: 0; }
.bs-input::-webkit-search-cancel-button { cursor: pointer; }
.bs-btn { flex-shrink: 0; min-height: 48px; padding: 12px 20px; font: inherit; font-size: 15px; font-weight: 700; color: var(--bs-white); background: var(--bs-ink); border: 0; border-radius: 6px; cursor: pointer; transition: background-color 150ms var(--bs-ease); }
.bs-btn:hover { background: #2b3156; }

/* Aisle index: sticks under the site nav and tracks the aisle in view */
.bs-index { position: sticky; top: var(--bs-nav-h); z-index: 20; background: var(--bs-white); border-bottom: 1px solid var(--bs-line); }
.bs-index__list { display: flex; gap: 6px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 16px; }
.bs-index__list::-webkit-scrollbar { display: none; }
.bs-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; color: var(--bs-slate); background: var(--bs-mist); border-radius: 100px; text-decoration: none; transition: background-color 150ms var(--bs-ease), color 150ms var(--bs-ease); }
.bs-chip:hover { color: var(--bs-ink); background: #e4e6ea; }
.bs-chip__n { font-size: 12px; font-weight: 600; color: var(--bs-muted); font-variant-numeric: tabular-nums; transition: color 150ms var(--bs-ease); }
.bs-chip[aria-current],
.bs-chip.is-here { color: var(--bs-white); background: var(--bs-ink); }
.bs-chip[aria-current] .bs-chip__n,
.bs-chip.is-here .bs-chip__n { color: #c3c8d6; }

/* Price tag: top corner of a photo, clear of the logo tile */
.bs-tag { position: absolute; top: 10px; right: 10px; z-index: 1; display: flex; align-items: baseline; gap: 6px; max-width: calc(100% - 20px); padding: 4px 9px; font-size: 13px; line-height: 1.4; color: var(--bs-ink); background: var(--bs-white); border-radius: 3px; box-shadow: 0 1px 2px rgba(25, 30, 58, 0.12); }
.bs-tag__price { flex-shrink: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.bs-tag__price:empty { display: none; }

/* Logo tile hangs off the photo's lower-left corner */
.bs-mark { position: absolute; left: 12px; bottom: -18px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; font-size: 14px; font-weight: 700; color: var(--store-accent-ink); background: var(--store-accent); border: 3px solid var(--bs-white); border-radius: 10px; }
img.bs-mark { object-fit: cover; background: var(--bs-white); box-shadow: 0 0 0 1px var(--bs-line); }

/* Toolbar, empty state, pager */
.bs-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.bs-toolbar__count { font-size: 22px; font-weight: 700; color: var(--bs-slate); font-variant-numeric: tabular-nums; }
.bs-sort { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--bs-muted); }
.bs-sort select { min-height: 40px; padding: 8px 36px 8px 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--bs-ink); background: var(--bs-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23191e3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; border: 1px solid var(--bs-line-firm); border-radius: 6px; cursor: pointer; -webkit-appearance: none; appearance: none; }

.bs-empty { max-width: 52ch; padding: 24px 0 8px; font-size: 16px; }
.bs-empty a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--bs-orange-text); text-decoration: underline; text-underline-offset: 3px; }
.bs-empty a:hover { color: var(--bs-ink); }
.bs-empty__title { margin-bottom: 6px !important; font-size: 18px; font-weight: 700; color: var(--bs-slate); }

.bs-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 56px; }
.bs-pager ol { display: flex; gap: 6px; }
.bs-pager__n,
.bs-pager__gap { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; font-size: 14px; font-weight: 600; color: var(--bs-ink); font-variant-numeric: tabular-nums; border-radius: 6px; text-decoration: none; }
a.bs-pager__n { border: 1px solid var(--bs-line); transition: background-color 150ms var(--bs-ease); }
a.bs-pager__n:hover { color: var(--bs-ink); background: var(--bs-mist); }
.bs-pager__n[aria-current] { color: var(--bs-white); background: var(--bs-ink); }
.bs-pager__gap { color: var(--bs-muted); }
.bs-pager__step { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 14px; font-size: 14px; font-weight: 700; color: var(--bs-ink); border: 1px solid var(--bs-line-firm); border-radius: 6px; text-decoration: none; }
.bs-pager__step:hover { color: var(--bs-ink); background: var(--bs-mist); }
@media (max-width: 575.98px) {
	.bs-pager { flex-wrap: nowrap; gap: 4px; margin-top: 40px; }
	.bs-pager ol { gap: 4px; }
	.bs-pager__n,
	.bs-pager__gap { min-width: 34px; height: 36px; padding: 0 4px; font-size: 13px; }
	.bs-pager__gap { min-width: 16px; }
	.bs-pager__step { justify-content: center; min-width: 36px; min-height: 36px; padding: 0; }
	.bs-pager__label { display: none; }
}

/* Cross-links to the other browse pages */
.bs-more { padding: 48px 0; background: var(--bs-mist); }
.bs-more__inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 48px; }
.bs-more__links { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.bs-more__links a { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 700; color: var(--bs-ink); text-decoration: none; }
.bs-more__links a .bs-ico { color: var(--bs-orange-text); transition: transform 150ms var(--bs-ease); }
.bs-more__links a:hover { color: var(--bs-orange-text); }
.bs-more__links a:hover .bs-ico { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
	.bs-page *,
	.bs-page *::before,
	.bs-page *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 767.98px) {
	.bs-tag { padding: 3px 7px; font-size: 12px; }
}
