/* Shared only by the storefront and custom footer; no global palette override. */
.bd-storefront {
	--bd-background: #07111d;
	--bd-surface: #101d2a;
	--bd-deep: #081522;
	--bd-border: #2b3c4b;
	--bd-muted: #bec9d4;
	--bd-white: var(--boxdeal-surface);
	--bd-orange: var(--boxdeal-accent);
	--bd-container: 1440px;
	background: var(--bd-background);
	color: var(--bd-white);
	font-family: var(--boxdeal-font-family);
	font-size: 16px;
	line-height: 1.5;
}
.bd-storefront *, .bd-storefront *::before, .bd-storefront *::after { box-sizing: border-box; }
.bd-storefront .bd-container { width: min(calc(100% - 2 * var(--boxdeal-container-padding)), var(--bd-container)); margin-inline: auto; }
.bd-storefront :is(h1, h2, h3, p, ul) { margin: 0; }
.bd-storefront :is(h1, h2, h3) { color: var(--bd-white); line-height: 1.15; font-weight: 750; letter-spacing: -.035em; }
.bd-storefront a { color: inherit; text-decoration: none; }
.bd-storefront a:hover { color: var(--bd-orange); }
.bd-storefront svg { flex-shrink: 0; }
.bd-storefront :is(a, button, input):focus-visible { outline: 3px solid var(--bd-orange); outline-offset: 4px; box-shadow: 0 0 0 2px var(--bd-background); }
.bd-storefront .bd-action { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; padding: 12px 20px; border: 1px solid transparent; border-radius: var(--boxdeal-radius-small); color: var(--boxdeal-primary); background: var(--bd-orange); font-size: 14px; font-weight: 750; line-height: 1.25; text-align: center; transition: filter var(--boxdeal-transition-fast); }
.bd-storefront .bd-action:hover { color: var(--boxdeal-primary); filter: brightness(1.08); }
.bd-storefront .bd-action svg { width: 20px; height: 20px; }
.bd-storefront [hidden] { display: none !important; }
.bd-storefront .bd-media-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 100%; padding: 16px; text-align: center; color: var(--boxdeal-primary); }
.bd-storefront .bd-media-fallback > span { font-size: clamp(20px, 2.3vw, 36px); font-weight: 850; letter-spacing: -.065em; }
.bd-storefront .bd-media-fallback b { color: var(--boxdeal-accent-strong); }
.bd-storefront .bd-media-fallback small { max-width: 20ch; font-size: 12px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .bd-storefront *, .bd-storefront *::before, .bd-storefront *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Shared product cards: home and single-product recommendations. */
.bd-storefront .bd-product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.bd-storefront .bd-product { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--bd-border); border-radius: var(--boxdeal-radius); background: var(--bd-surface); }
.bd-storefront .bd-product-top { min-height: 30px; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bd-storefront .bd-condition { display: inline-block; border-radius: 5px; padding: 5px 8px; background: var(--bd-border); color: var(--bd-white); font-size: 11px; font-weight: 650; line-height: 1.35; }
.bd-storefront .bd-condition--sale, .bd-storefront .bd-condition--new { background: var(--bd-orange); color: var(--boxdeal-primary); }
.bd-storefront .bd-condition--open_box { background: #164c82; }
.bd-storefront .bd-product-media { display: block; width: 100%; aspect-ratio: 1; padding: 16px; border-radius: var(--boxdeal-radius-small); background: var(--bd-white); overflow: hidden; }
.bd-storefront .bd-product-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bd-storefront .bd-product-content { display: flex; flex: 1; flex-direction: column; padding: 16px 2px 14px; }
.bd-storefront .bd-product h3 { font-size: 16px; line-height: 1.3; letter-spacing: -.015em; overflow-wrap: anywhere; margin-bottom: 6px; }
.bd-storefront .bd-product-category { color: var(--bd-muted); font-size: 13px; margin-bottom: 8px; }
.bd-storefront .bd-product-rating { display: flex; align-items: center; gap: 6px; font-size: 11px; margin-bottom: 12px; color: var(--bd-muted); }
.bd-storefront .bd-product-rating .star-rating { margin: 0; font-size: 12px; color: var(--bd-orange); }
.bd-storefront .bd-product-price { margin-top: auto; padding-top: 10px; font-weight: 750; font-size: clamp(20px, 1.75vw, 25px); line-height: 1.3; }
.bd-storefront .bd-product-price ins { text-decoration: none; background: transparent; }
.bd-storefront .bd-product-price del { display: inline-block; color: var(--bd-muted); font-size: 13px; font-weight: 400; margin-inline-end: 5px; }
.bd-storefront .bd-product-buy { width: 100%; margin-top: auto; padding-inline: 8px; font-size: 13px; }
.bd-storefront .bd-product .added_to_cart { text-align: center; padding-top: 10px; min-height: 44px; font-size: 13px; }
@media (max-width: 1279.98px) { .bd-storefront .bd-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 999.98px) { .bd-storefront .bd-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 689.98px) { .bd-storefront .bd-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .bd-storefront .bd-product { padding: 10px; } .bd-storefront .bd-product-buy { flex-wrap: wrap; } }
@media (max-width: 479.98px) { .bd-storefront .bd-product-grid { grid-template-columns: 1fr; } .bd-storefront .bd-product-media { aspect-ratio: 1.3; } }
