/* SMB Product Grid & Filters. Brand: red #F8002F, navy #000C14.
   Buttons are styled firmly (!important) because the theme's button styles otherwise take over. */
.smbg-grid, .smbg-filters, .smbg-head, .smbg-gppop {
	--smbg-red: #F8002F;
	--smbg-red-dk: #d00027;
	--smbg-navy: #000C14;
	--smbg-navy-2: #0d1b26;
	--smbg-ink: #000C14;
	--smbg-muted: #5f6b76;
	--smbg-line: #e4e7eb;
	--smbg-soft: #f5f6f8;
	--smbg-cask: #b4530a; /* container colour on Cask titles */
	--smbg-keg: #0b63c4;  /* container colour on Keg titles */
	--smbg-r: 12px;
	font-family: inherit;
	box-sizing: border-box;
}
.smbg-grid *, .smbg-filters *, .smbg-gppop * { box-sizing: border-box; }
.smbg-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.smbg-filters button, .smbg-gppop button { font: inherit; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; min-height: 0 !important; line-height: 1.2 !important; }

/* ---------- filter bar ---------- */
.smbg-filters { margin: 0 0 12px; border-radius: var(--smbg-r); overflow: hidden; border: 1px solid var(--smbg-line); background: #fff; }
.smbg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 7px 10px; background: var(--smbg-navy); color: #fff; }
.smbg-filters .smbg-ftoggle { display: inline-flex !important; align-items: center; gap: 6px; height: 30px !important; padding: 0 12px !important; border: 0 !important; border-radius: 999px !important; background: var(--smbg-red) !important; color: #fff !important; font-weight: 700 !important; font-size: 13px !important; }
.smbg-filters .smbg-ftoggle:hover { background: var(--smbg-red-dk) !important; color: #fff !important; }
.smbg-ftoggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.smbg-fn { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #fff; color: var(--smbg-red); font-size: 11px; line-height: 18px; text-align: center; }

.smbg-sw { display: inline-flex; align-items: center; gap: 7px; margin: 0; cursor: pointer; font-size: 13px; color: #fff; user-select: none; }
.smbg-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.smbg-track { position: relative; flex: none; width: 32px; height: 18px; border-radius: 999px; background: rgba(255,255,255,.25); transition: background .15s; }
.smbg-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s; }
.smbg-sw input:checked + .smbg-track { background: var(--smbg-red); }
.smbg-sw input:checked + .smbg-track::after { transform: translateX(14px); }
.smbg-sw input:focus-visible + .smbg-track { outline: 2px solid #fff; outline-offset: 2px; }
.smbg-swl { font-weight: 600; white-space: nowrap; }
.smbg-swl small { margin-left: 4px; font-weight: 400; opacity: .7; }
.smbg-gpwrap { display: inline-flex; align-items: center; gap: 2px; }
.smbg-filters .smbg-gpedit { display: inline-flex !important; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: transparent !important; color: rgba(255,255,255,.75) !important; }
.smbg-filters .smbg-gpedit:hover { background: rgba(255,255,255,.12) !important; color: #fff !important; }
.smbg-gpedit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.smbg-spacer { flex: 1 1 0; }
.smbg-q { position: relative; display: inline-flex; align-items: center; margin: 0; }
.smbg-q svg { position: absolute; left: 10px; width: 13px; height: 13px; fill: none; stroke: rgba(255,255,255,.6); stroke-width: 2; pointer-events: none; }
.smbg-filters .smbg-q input, .smbg-filters .smbg-sort {
	height: 30px !important; min-height: 0 !important; margin: 0; border: 1px solid rgba(255,255,255,.18) !important; border-radius: 999px !important; background-color: var(--smbg-navy-2) !important; color: #fff !important; font: inherit; font-size: 13px !important; box-shadow: none !important;
}
.smbg-filters .smbg-q input { width: 170px; padding: 0 12px 0 28px !important; }
.smbg-filters .smbg-sort { width: auto !important; max-width: 200px; padding: 0 28px 0 12px !important; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%) !important; background-position: calc(100% - 15px) 13px, calc(100% - 10px) 13px !important; background-size: 5px 5px !important; background-repeat: no-repeat !important; }
.smbg-filters .smbg-sort option { color: var(--smbg-ink); background: #fff; }
.smbg-filters input::placeholder { color: rgba(255,255,255,.55); }
.smbg-filters input:focus, .smbg-filters select:focus { outline: none; border-color: var(--smbg-red) !important; }

/* ---------- filter panel (light, compact) ---------- */
.smbg-panel { padding: 4px 12px 8px; background: #fff; color: var(--smbg-ink); }
.smbg-panel[hidden] { display: none; }
.smbg-group { display: grid; grid-template-columns: 92px 1fr; gap: 4px 10px; align-items: start; padding: 7px 0; border-bottom: 1px solid var(--smbg-line); }
.smbg-group:last-of-type { border-bottom: 0; }
.smbg-gh { padding-top: 4px; }
.smbg-gt { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--smbg-muted); }
.smbg-group.is-active .smbg-gt { color: var(--smbg-ink); }
.smbg-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; align-content: flex-start; }
.smbg-group.is-brewery .smbg-chips { max-height: 86px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.smbg-filters .smbg-chip { display: inline-flex !important; align-items: center; gap: 4px; height: 24px !important; padding: 0 9px !important; margin: 0 !important; border: 1px solid var(--smbg-line) !important; border-radius: 999px !important; background: var(--smbg-soft) !important; color: var(--smbg-ink) !important; font-size: 12px !important; font-weight: 600 !important; transition: background .12s, border-color .12s, color .12s; }
/* Hover and selected look the same: navy with white text. Several can be selected in a group. */
.smbg-filters .smbg-chip:hover:not(:disabled), .smbg-filters .smbg-chip:focus-visible, .smbg-filters .smbg-chip[aria-pressed="true"] { background: var(--smbg-navy) !important; border-color: var(--smbg-navy) !important; color: #fff !important; }
.smbg-filters .smbg-chip:focus:not(:focus-visible):not([aria-pressed="true"]):not(:hover) { background: var(--smbg-soft) !important; color: var(--smbg-ink) !important; border-color: var(--smbg-line) !important; }
.smbg-chip small { font-size: 10.5px; opacity: .6; }
.smbg-chip small:empty { display: none; }
.smbg-chip.is-zero { opacity: .35; cursor: default; }
.smbg-group[data-empty="hide"] .smbg-chip.is-zero { display: none !important; }
.smbg-filters .smbg-gclear { display: inline-flex !important; align-items: center; height: 24px !important; padding: 0 10px !important; margin: 0 0 0 2px !important; border: 0 !important; border-radius: 999px !important; background: #ffe1e7 !important; color: #b0001f !important; font-size: 12px !important; font-weight: 700 !important; }
.smbg-filters .smbg-gclear:hover { background: var(--smbg-red) !important; color: #fff !important; }
.smbg-filters .smbg-gclear[hidden] { display: none !important; }
.smbg-pfoot { display: flex; justify-content: flex-end; padding-top: 6px; }
.smbg-filters .smbg-clearall { padding: 0 !important; border: 0 !important; background: none !important; color: var(--smbg-red) !important; font-size: 12px !important; font-weight: 600 !important; text-decoration: underline; }
.smbg-filters:not(.has-active) .smbg-pfoot { display: none; }

/* ---------- GP pop-up ---------- */
.smbg-gppop { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,12,20,.55); }
.smbg-gppop[hidden] { display: none; }
.smbg-gpbox { width: min(460px, 100%); padding: 16px 18px; border-radius: 16px; background: #fff; color: var(--smbg-ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.smbg-gphead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.smbg-gphead b { font-size: 17px; font-weight: 800; }
.smbg-gppop .smbg-gpx { width: 30px; height: 30px; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: var(--smbg-soft) !important; color: var(--smbg-ink) !important; font-size: 18px !important; }
.smbg-gpbox p { margin: 6px 0 10px; color: var(--smbg-muted); font-size: 13px; }
.smbg-gpgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.smbg-gpgrid label { display: grid; gap: 3px; margin: 0; font-size: 12px; font-weight: 700; }
.smbg-gpin { position: relative; display: block; }
.smbg-gppop .smbg-gpin input { width: 100%; height: 36px; margin: 0; padding: 0 26px 0 10px !important; border: 1px solid var(--smbg-line) !important; border-radius: 10px !important; background: #fff !important; color: var(--smbg-ink) !important; font: inherit; font-size: 15px; box-shadow: none !important; }
.smbg-gppop .smbg-gpin input:focus { outline: 2px solid rgba(248,0,47,.25); border-color: var(--smbg-red) !important; }
.smbg-gpin i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--smbg-muted); font-style: normal; }
.smbg-gpsaved { min-height: 18px; margin: 10px 0 0 !important; color: #11683b !important; font-weight: 600; }

/* ---------- heading strip ---------- */
.smbg-head { margin: 0 0 12px; }
.smbg-head a, .smbg-head a:hover, .smbg-head a:focus { display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px; border-radius: 999px; background: var(--smbg-navy); color: #fff !important; font-weight: 900; letter-spacing: .1em; font-size: 18px; line-height: 1; text-decoration: none !important; }
.smbg-head a:hover { background: var(--smbg-red); }
.smbg-head .smbg-van { width: 26px; height: 26px; }

/* ---------- grid ---------- */
.smbg-grid { --smbg-cols: 5; display: grid; grid-template-columns: repeat(var(--smbg-cols), minmax(0, 1fr)); gap: 12px; }
.smbg-item { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--smbg-line); border-radius: var(--smbg-r); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.smbg-item:hover { border-color: #cfd5db; box-shadow: 0 6px 18px rgba(0,12,20,.08); }
.smbg-item.is-out, .smbg-item.is-limit, .smbg-grid[data-fmt="mine"]:not(.fmt-override) .smbg-item.smbg-other { display: none; }
.smbg-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--smbg-soft); }
.smbg-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.smbg-badges { position: absolute; top: 7px; right: 7px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.smbg-badge { display: inline-flex; align-items: center; justify-content: center; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.2; box-shadow: 0 1px 4px rgba(0,12,20,.18); }
.smbg-badge.is-round { width: 30px; height: 30px; padding: 0; border-radius: 50%; font-size: 11px; }
.smbg-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 8px 10px 10px; text-align: center; }
.smbg-brew { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 20px; flex-wrap: wrap; }
.smbg-brew a { overflow: hidden; color: var(--smbg-muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.smbg-brew a:hover { color: var(--smbg-red); }
.smbg-follow { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border: 1px solid var(--smbg-line); border-radius: 999px; background: #fff; color: var(--smbg-muted); font: inherit; font-size: 11px; cursor: pointer; }
.smbg-follow svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; }
.smbg-follow:hover { border-color: var(--smbg-red); color: var(--smbg-red); }
.smbg-follow.is-on { background: var(--smbg-navy); border-color: var(--smbg-navy); color: #fff; }
.smbg-follow.is-on svg { fill: currentColor; }
.smbg-title { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.smbg-title a { color: var(--smbg-ink); text-decoration: none; }
.smbg-title a:hover { color: var(--smbg-red); }
.smbg-meta { margin: 0; color: var(--smbg-muted); font-size: 12px; line-height: 1.5; }
.smbg-cont { display: inline-block; padding: 0 7px; border-radius: 6px; color: #fff; font-weight: 700; }
.smbg-cont.is-cask { background: var(--smbg-cask); }
.smbg-cont.is-keg { background: var(--smbg-keg); }
.smbg-desc { margin: 0; color: var(--smbg-muted); font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.smbg-row { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.smbg-price { color: var(--smbg-ink); font-size: 16px; font-weight: 800; }
.smbg-price del { margin-right: 4px; color: var(--smbg-muted); font-size: 12px; font-weight: 400; }
.smbg-stock { color: var(--smbg-muted); font-size: 11px; white-space: nowrap; }
.smbg-gp { display: none; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; padding: 5px 8px; border-radius: 8px; background: #fff0f3; color: var(--smbg-ink); font-size: 12px; line-height: 1.3; }
.smbg-grid.gp-on .smbg-gp { display: flex; }
.smbg-gp b { color: var(--smbg-red); }
.smbg-gp-pct { color: var(--smbg-muted); font-size: 11px; }
.smbg-gp-fr { flex-basis: 100%; color: var(--smbg-muted); font-size: 11px; }
.smbg-buy { display: flex; gap: 6px; margin-top: 4px; }
.smbg-qty { display: inline-flex; flex: none; height: 32px; border: 1px solid var(--smbg-line); border-radius: 8px; overflow: hidden; }
.smbg-qty button { width: 24px; padding: 0; border: 0; background: var(--smbg-soft); color: var(--smbg-ink); font: inherit; font-size: 15px; cursor: pointer; }
.smbg-qty button:hover { background: #e9ecef; }
.smbg-grid .smbg-qty input { width: 34px; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; color: var(--smbg-ink); font: inherit; font-size: 13px; text-align: center; -moz-appearance: textfield; box-shadow: none; }
.smbg-qty input::-webkit-inner-spin-button, .smbg-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.smbg-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--smbg-red); color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none !important; white-space: nowrap; transition: background .12s; }
.smbg-btn:hover { background: var(--smbg-red-dk); color: #fff !important; }
.smbg-btn.is-ghost { background: #fff; color: var(--smbg-ink) !important; border: 1px solid var(--smbg-line); }
.smbg-btn.is-ghost:hover { border-color: var(--smbg-ink); }
.smbg-btn.loading { opacity: .6; pointer-events: none; }
.smbg-btn.is-added { background: #138a4b; }
/* Pre-order / early-bird van: big and bold. */
.smbg-van { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.smbg-grid .added_to_cart { display: none; }
.smbg-none { grid-column: 1 / -1; margin: 0; padding: 30px 10px; text-align: center; color: var(--smbg-muted); }
.smbg-link { padding: 0; border: 0; background: none; color: var(--smbg-red); font: inherit; text-decoration: underline; cursor: pointer; }
.smbg-grid.is-images .smbg-item { border: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.smbg-grid { gap: 10px; }
	.smbg-filters .smbg-q input { width: 140px; }
}
@media (max-width: 767px) {
	.smbg-bar { gap: 6px; }
	.smbg-spacer { display: none; }
	.smbg-q { order: 10; flex: 1 1 100%; }
	.smbg-filters .smbg-q input { width: 100%; }
	.smbg-filters .smbg-sort { order: 11; flex: 1; max-width: none; }
	.smbg-swl small { display: none; }
	.smbg-group { grid-template-columns: 1fr; }
	.smbg-gh { padding-top: 0; }
	.smbg-grid { gap: 8px; }
	.smbg-body { padding: 7px 8px 8px; }
	.smbg-title { font-size: 13px; }
	.smbg-price { font-size: 15px; }
	.smbg-follow span { display: none; }
	.smbg-buy { flex-wrap: wrap; }
	.smbg-qty { flex: 1 1 100%; justify-content: space-between; }
	.smbg-qty button { width: 34px; }
	.smbg-grid .smbg-qty input { flex: 1; }
	.smbg-gpgrid { grid-template-columns: 1fr 1fr; }
}

/* ---------- v1.2: arrows icon, plain heading strips, brewery dropdown, pre-order cards, bolder details ---------- */
.smbg-arrows { fill: currentColor; stroke: none; }
.smbg-head .smbg-head-txt { display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px; border-radius: 999px; background: var(--smbg-navy); color: #fff; font-weight: 900; letter-spacing: .1em; font-size: 18px; line-height: 1; cursor: default; }
.smbg-filters .smbg-gsel { display: none; flex: 1 1 240px; max-width: 420px; height: 34px !important; min-height: 0 !important; margin: 0 0 2px; padding: 0 32px 0 12px !important; border: 1px solid var(--smbg-line) !important; border-radius: 999px !important; background-color: #fff !important; background-image: linear-gradient(45deg, transparent 50%, var(--smbg-ink) 50%), linear-gradient(135deg, var(--smbg-ink) 50%, transparent 50%) !important; background-position: calc(100% - 17px) 14px, calc(100% - 12px) 14px !important; background-size: 5px 5px !important; background-repeat: no-repeat !important; color: var(--smbg-ink) !important; font: inherit; font-size: 13px !important; font-weight: 600; appearance: none; -webkit-appearance: none; box-shadow: none !important; }
.smbg-group.is-select .smbg-gsel { display: block; }
.smbg-group.is-select .smbg-chips { max-height: none; overflow: visible; }
.smbg-group.is-select .smbg-chip { display: none !important; }
@media (max-width: 1024px) {
	.smbg-group.has-mdrop .smbg-gsel { display: block; }
	.smbg-group.has-mdrop .smbg-chips { max-height: none; overflow: visible; }
	.smbg-group.has-mdrop .smbg-chip { display: none !important; }
}
/* ABV / container and style: bolder than before, lighter than the name; the style in brand red. */
.smbg-meta { color: #36414b; font-weight: 600; }
.smbg-desc { color: var(--smbg-red); font-weight: 600; }
/* Pre-order (Incoming) and Early Bird cards: a ribbon, a framed smaller image and a tinted card. */
.smbg-item.is-pre { border: 1.5px solid var(--smbg-navy); background: linear-gradient(180deg, #eef1f5 0, #fff 55%); }
.smbg-item.is-pre-early { border-color: var(--smbg-red); background: linear-gradient(180deg, #fff0f3 0, #fff 55%); }
.smbg-item.is-pre:hover { box-shadow: 0 8px 22px rgba(0,12,20,.14); }
.smbg-ribbon { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 30px; padding: 5px 8px; background: var(--smbg-navy); color: #fff; font-size: 11px; line-height: 1.15; }
.smbg-item.is-pre-early .smbg-ribbon { background: var(--smbg-red); }
.smbg-ribbon-ic { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--smbg-red); color: #fff; }
.smbg-item.is-pre-early .smbg-ribbon-ic { background: #fff; color: var(--smbg-red); }
.smbg-ribbon .smbg-van { width: 13px; height: 13px; }
.smbg-ribbon b { flex: none; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.smbg-ribbon em { min-width: 0; margin-left: auto; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.16); font-style: normal; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smbg-item.is-pre .smbg-media { margin: 8px 8px 0; padding: 11%; aspect-ratio: auto; border-radius: 10px; overflow: hidden; background: repeating-linear-gradient(135deg, #e9edf1 0 8px, #f5f7f9 8px 16px); }
.smbg-item.is-pre-early .smbg-media { background: repeating-linear-gradient(135deg, #ffe3e9 0 8px, #fff4f6 8px 16px); }
.smbg-item.is-pre .smbg-media img { height: auto; aspect-ratio: 1 / 1; border-radius: 8px; box-shadow: 0 6px 16px rgba(0,12,20,.2); }
.smbg-item.is-pre .smbg-badges { top: 5px; right: 5px; }
@media (max-width: 767px) {
	.smbg-ribbon { flex-wrap: wrap; row-gap: 3px; }
	.smbg-ribbon em { margin-left: 0; flex: 1 1 100%; text-align: center; }
}