/* OneStopBasket core components. Colours come from the theme's custom properties, with fallbacks. */
:root {
	--osb-bg: #fff;
	--osb-ink: #16131a;
	--osb-soft: #5d5862;
	--osb-line: #e6e1e4;
	--osb-panel: #f6f3f1;
	--osb-red: #d0140f;
	--osb-mustard: #f58200;
	--osb-pave: #d9d4cf;
	--osb-road: #6e6a70;
}

.osb-meta { color: var(--osb-soft); font-size: 14px; }
.osb-note { color: var(--osb-soft); font-size: 13px; }
.osb-lead { font-size: 18px; max-width: 60ch; }
.osb-empty { padding: 40px 20px; text-align: center; border: 1px dashed var(--osb-line); border-radius: 14px; color: var(--osb-soft); }
.osb-at { display: block; margin: 2px 0 8px; }

.osb-btn { min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 2px solid var(--osb-ink); background: transparent; color: var(--osb-ink); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1.2; }
.osb-btn:hover { filter: brightness(1.07); }
.osb-btn:focus-visible { outline: 3px solid var(--osb-mustard); outline-offset: 2px; }
.osb-btn.osb-main { background: var(--osb-red); border-color: var(--osb-red); color: #fff; }
.osb-btn.osb-light { border-color: #fff; color: #fff; }
.osb-heart[aria-pressed="true"] { background: var(--osb-ink); color: var(--osb-bg); }
.osb-btn[disabled] { opacity: .6; cursor: wait; }
.osb-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.osb-chip { display: inline-block; margin-top: 4px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--osb-line); background: var(--osb-panel); font-size: 13px; text-decoration: none; }

/* Street */
.osb-street { overflow-x: auto; color: var(--osb-ink); }
.osb-street svg { display: block; width: 1180px; max-width: none; height: 376px; margin: 0 auto; }
.osb-street text { font-family: Archivo, Inter, sans-serif; }
.osb-shop:hover .osb-front, .osb-shop:focus .osb-front { filter: brightness(1.08); }
.osb-shop:focus { outline: none; }
.osb-shop:focus .osb-sign { stroke: var(--osb-ink); stroke-width: 3; }

/* Departments and shops */
.osb-depts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.osb-dept { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; text-decoration: none; font-weight: 600; border: 1px solid var(--osb-line); background: var(--osb-bg); color: var(--osb-ink); }
.osb-ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.osb-ic svg { width: 26px; height: 26px; }
.osb-stores { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.osb-store { --c: #c8102e; border-radius: 14px; padding: 18px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--osb-line); min-height: 150px; color: var(--osb-ink); background: color-mix(in srgb, var(--c) 12%, var(--osb-bg)); }
.osb-nm { font: 800 22px/1.1 Archivo, Inter, sans-serif; letter-spacing: -.02em; }
.osb-foot { margin-top: auto; }
.osb-storehero { border-radius: 18px; padding: clamp(20px, 4vw, 40px); color: #fff; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.osb-storehero h1 { color: #fff; margin: 4px 0 0; }
.osb-storehero p { margin: 6px 0 0; max-width: 60ch; opacity: .92; }

/* Basket */
.osb-basket-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.osb-total { text-align: right; }
.osb-total strong { display: block; font: 800 28px/1 Archivo, Inter, sans-serif; }
.osb-group { border: 1px solid var(--osb-line); border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.osb-group header { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--osb-panel); }
.osb-group h3 { margin: 0; font-size: 18px; }
.osb-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--osb-line); }
.osb-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.osb-qty { display: flex; align-items: center; gap: 4px; }
.osb-qty button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--osb-line); background: var(--osb-bg); cursor: pointer; }
.osb-line { font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) {
	.osb-row { grid-template-columns: 48px minmax(0, 1fr); }
	.osb-row .osb-qty, .osb-row .osb-line, .osb-row .osb-btn { grid-column: 2; justify-self: start; }
}

/* Compare */
.osb-compare { margin: 32px 0; }
.osb-scroll { overflow-x: auto; }
.osb-compare table { width: 100%; border-collapse: collapse; }
.osb-compare th, .osb-compare td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--osb-line); vertical-align: middle; }
.osb-compare .n { text-align: right; white-space: nowrap; }
.osb-compare .osb-acts { justify-content: flex-end; margin: 0; }
.osb-best { color: #fff; background: #1d7a46; border-radius: 6px; padding: 1px 6px; font-size: 12px; font-weight: 700; margin-left: 6px; }

/* Forms */
.osb-form { max-width: 520px; }
.osb-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.osb-form input { width: 100%; min-height: 44px; padding: 8px 10px; font-size: 16px; border: 1px solid var(--osb-line); border-radius: 8px; }
.osb-hp { position: absolute; left: -9999px; }
.osb-ok { padding: 12px; border-radius: 8px; background: #e3f4ea; color: #11502c; }
.osb-err { padding: 12px; border-radius: 8px; background: #fde7ea; color: #8a0f22; }

/* Toast and disclosure */
.osb-toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); background: var(--osb-ink); color: var(--osb-bg); padding: 12px 18px; border-radius: 12px; z-index: 9999; transition: transform .25s; max-width: min(92vw, 520px); }
.osb-toast.on { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .osb-toast { transition: none; } }
.osb-disclosure { text-align: center; font-size: 13px; color: var(--osb-soft); padding: 12px 16px; margin: 0; }
.osb-count { display: inline-block; min-width: 22px; padding: 1px 6px; margin-left: 4px; border-radius: 999px; background: var(--osb-red); color: #fff; font-size: 13px; text-align: center; }

/* Shopping trip */
.osb-trip { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: none; }
.osb-trip li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--osb-line); border-radius: 999px; font-weight: 600; }
.osb-trip li span, .osb-stepno { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--osb-red, #d0140f); color: #fff; font-size: 13px; }
.osb-tripnote { margin: 0 0 18px; color: var(--osb-soft, #555); }
.osb-group.osb-next { outline: 3px solid var(--osb-red, #d0140f); outline-offset: 2px; }
.osb-btn.osb-ghost { background: transparent; border: 1px solid currentColor; }
.osb-return { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 10000; width: min(94vw, 560px); background: var(--osb-ink, #16131a); color: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.25); display: grid; gap: 10px; }
.osb-return p { margin: 0; font-weight: 600; }
.osb-return .osb-ghost { color: #fff; }
