/*
 * Bloom theme: compatibility layer.
 * Storefront pages that aren't individually restyled still use the app's own
 * utility classes (.card, .stack, .row-between, .btn, ...). Bootstrap defines
 * several of the same names differently, so everything here is scoped under
 * .sf-compat to keep those pages readable without touching Bloom's own pages.
 */
.sf-compat h1 { font-size: 1.9rem; margin: 0 0 1rem; }
.sf-compat h2 { font-size: 1.3rem; margin: 0 0 .75rem; }
.sf-compat .muted, .sf-compat .help-text { color: #6c757d; }
.sf-compat .help-text { font-size: .85rem; }
.sf-compat .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: #6c757d; margin: 0 0 .25rem; }
.sf-compat .stack { display: flex; flex-direction: column; gap: 1rem; }
.sf-compat .row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.sf-compat .row:not([class*="g-"]) { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; --bs-gutter-x: 0; }
.sf-compat .row:not([class*="g-"]) > * { width: auto; max-width: none; flex-shrink: 1; padding: 0; margin: 0; }
.sf-compat .card { border: 1px solid #f0e4d6; border-radius: 1.1rem; padding: 1.25rem; margin-bottom: 1.25rem; background: #fff; }
.sf-compat .card-flush { padding: 0; overflow: hidden; }
.sf-compat .card-narrow { max-width: 560px; }
.sf-compat .grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-bottom: 1.25rem; }
.sf-compat .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.sf-compat .product-card { border: 1px solid #f0e4d6; border-radius: 1.1rem; padding: 1rem; display: flex; flex-direction: column; gap: .25rem; background: #fff; }
.sf-compat .product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .35rem; }
.sf-compat .product-price { font-weight: 700; color: var(--bs-primary); margin: .25rem 0; }
.sf-compat a.plain { text-decoration: none; color: inherit; }
.sf-compat label { display: block; font-weight: 600; margin: .75rem 0 .25rem; }
.sf-compat input[type=text], .sf-compat input[type=email], .sf-compat input[type=password], .sf-compat input[type=number],
.sf-compat input[type=tel], .sf-compat input[type=date], .sf-compat input[type=time], .sf-compat select, .sf-compat textarea {
    display: block; width: 100%; padding: .55rem .75rem; border: 1px solid #ced4da; border-radius: .4rem; background: #fff;
}
.sf-compat input[type=number] { width: auto; }
.sf-compat input[type=checkbox]:not(.form-check-input), .sf-compat input[type=radio]:not(.form-check-input) { width: auto; display: inline-block; }
.sf-compat textarea { min-height: 110px; }
.sf-compat .btn { background: var(--bs-primary); border: 1px solid var(--bs-primary); color: var(--sf-on-primary, #fff); border-radius: 50rem; padding: .5rem 1.25rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.sf-compat .btn:hover { filter: brightness(.92); color: var(--sf-on-primary, #fff); }
.sf-compat .btn-secondary { background: #fff; color: #212529; border-color: #ced4da; }
.sf-compat .btn-secondary:hover { color: #212529; background: #f8f9fa; }
.sf-compat .btn-small { padding: .3rem .85rem; font-size: .85rem; }
.sf-compat .btn-lg { padding: .7rem 1.6rem; font-size: 1.05rem; }
.sf-compat .btn-block { display: flex; width: 100%; justify-content: center; }
.sf-compat .btn-danger { background: #dc3545; border-color: #dc3545; }
.sf-compat table { width: 100%; border-collapse: collapse; }
.sf-compat th, .sf-compat td { padding: .65rem .85rem; border-bottom: 1px solid #eee; text-align: left; vertical-align: middle; }
.sf-compat th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #6c757d; }
.sf-compat .badge { display: inline-block; padding: .25em .6em; border-radius: 50rem; font-size: .75rem; background: #e9ecef; color: #212529; }
.sf-compat .badge-published, .sf-compat .badge-success { background: #d1e7dd; color: #0f5132; }
.sf-compat .flash-success { background: #d1e7dd; color: #0f5132; padding: .75rem 1rem; border-radius: .4rem; margin-bottom: 1rem; }
.sf-compat .flash-error { background: #f8d7da; color: #842029; padding: .75rem 1rem; border-radius: .4rem; margin-bottom: 1rem; }
.sf-compat .rating { display: flex; align-items: center; gap: .4rem; margin: .5rem 0; }
.sf-compat .rating .stars { color: var(--bs-primary); display: inline-flex; }
.sf-compat .container, .sf-compat .container-wide { max-width: none; padding: 0; }
.sf-compat .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sf-cookie { position: fixed; left: 0; right: 0; bottom: 0; background: #212529; color: #fff; padding: 1rem 1.25rem; display: flex; flex-wrap: wrap;
    gap: 1rem; align-items: center; justify-content: space-between; z-index: 1000; }
.sf-cookie[hidden] { display: none; }

/* Form rhythm: the app's forms assume the default theme's vertical spacing. Give submit buttons room
   whenever they directly follow a field, hint text or other control (login, register, reset, review, address…). */
.sf-compat input + .btn, .sf-compat select + .btn, .sf-compat textarea + .btn,
.sf-compat .help-text + .btn, .sf-compat label + .btn, .sf-compat form > .btn-block, .sf-compat form > button.btn { margin-top: 1.25rem; }
.sf-compat .help-text { margin: .35rem 0 0; }
.sf-compat .btn-outline { background: #fff; border-color: #ced4da; color: #212529; }
.sf-compat .btn-outline:hover { background: #f8f9fa; color: #212529; filter: none; }
.sf-compat .card-narrow > h1 { margin-bottom: 1.25rem; }
