/* Defaults remain usable outside the BANDORA theme; theme tokens take precedence. */
:root{--bd-ink:var(--ink,var(--color-ink,#231f20));--bd-paper:var(--paper,var(--color-paper,#f8f7f4));--bd-line:var(--line,var(--color-border,#d5d3ce));--bd-accent:var(--orange,var(--color-accent,#ea6632))}
.bd-dialog-open{overflow:hidden}
.bd-dialog{box-sizing:border-box;border:0;background:var(--bd-paper);color:var(--bd-ink);padding:clamp(1rem,3vw,2rem);max-width:min(100vw - 2rem,58rem);max-height:calc(100dvh - 2rem);width:100%;box-shadow:0 12px 80px #231f2033}
.bd-dialog::backdrop{background:#231f20a8;backdrop-filter:blur(5px)}
.bd-dialog[open]{animation:bd-enter .24s ease-out}
.bd-dialog--cart{margin:0 0 0 auto;max-width:min(100vw,30rem);height:100dvh;max-height:100dvh;overflow-y:auto;overscroll-behavior:contain;border-radius:0}
.bd-dialog--filters{margin:0 0 0 auto;max-width:min(100vw,30rem);height:100dvh;max-height:100dvh;overflow-y:auto;overscroll-behavior:contain;border-radius:0}
.bd-filter-open[hidden]{display:none}
.bd-dialog__header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-bottom:1.5rem;border-bottom:1px solid var(--bd-line);margin-bottom:1.5rem}
.bd-dialog__header h2{font-size:clamp(1.5rem,3vw,2.1rem);letter-spacing:-.045em;line-height:1.05;margin:0}
.bd-dialog__close{display:grid;place-items:center;min-width:44px;min-height:44px;font:inherit;font-size:1.8rem;background:transparent;border:1px solid var(--bd-line);border-radius:50%;cursor:pointer}
.bd-dialog :is(input,select,button,a):focus-visible,.bd-filter-form :is(input,select,button,a):focus-visible{outline:3px solid var(--bd-ink);outline-offset:4px}
.bd-dialog .button,.bd-filter-form .button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:.75rem 1.1rem;color:white;background:var(--bd-ink);border:1px solid var(--bd-ink);font:inherit;font-weight:600;text-decoration:none;cursor:pointer;line-height:1.2}
.bd-dialog input,.bd-filter-form :is(input:not([type=checkbox]),select){box-sizing:border-box;background:white;border:1px solid var(--bd-line);border-radius:0;color:var(--bd-ink);font:inherit;padding:.75rem;min-height:46px;min-width:0}
.bd-dialog [aria-busy=true]{opacity:.65;pointer-events:none}
.bd-status{font-size:.875rem;line-height:1.5;min-height:1.3em;margin-block:1rem}
.bd-search__form{display:grid;grid-template-columns:1fr auto;gap:.75rem}
.bd-search__label{grid-column:1/-1;font-size:.875rem}
.bd-search__form input{width:100%;font-size:1.05rem}
.bd-search__results{padding:0;list-style:none;margin:1rem 0;max-height:55dvh;overflow:auto}
.bd-search__results li+li{border-top:1px solid var(--bd-line)}
.bd-search__results [role=option]{display:flex;align-items:center;gap:1rem;padding:.8rem;text-decoration:none;color:inherit;transition:background .15s}
.bd-search__results [aria-selected=true],.bd-search__results [role=option]:hover{background:#d5d3ce77}
.bd-search__results img{width:80px;height:80px;object-fit:contain;background:white;flex:none}
.bd-search__detail{display:grid;gap:.25rem;min-width:0}
.bd-search__detail strong{font-size:1rem;line-height:1.3}
.bd-search__detail small{font-size:.75rem;line-height:1.35;color:#595554;overflow-wrap:anywhere}
.bd-search__price{font-size:.9rem;font-weight:600}
.bd-search__categories{display:flex;flex-wrap:wrap;gap:.5rem;margin-block:1rem}
.bd-search__categories a{padding:.6rem .9rem;border:1px solid var(--bd-line);color:inherit;font-size:.9rem}
.bd-search__all{display:block;text-underline-offset:3px;color:inherit;padding:.75rem 0}
.bd-search__all[hidden]{display:none}
.bd-cart__items{padding:0;margin:0;list-style:none}
.bd-cart__item{display:grid;grid-template-columns:5rem 1fr;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--bd-line)}
.bd-cart__image img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:white}
.bd-cart__detail a{color:inherit;text-decoration:none}
.bd-cart__detail strong{font-size:.95rem;line-height:1.35}
.bd-cart__detail p{margin:.6rem 0;font-size:.9rem}
.bd-cart__detail .variation{font-size:.75rem;margin:.4rem 0;display:grid;grid-template-columns:max-content 1fr;gap:.25rem .5rem}
.bd-cart__detail .variation :is(dt,dd,p){margin:0}
.bd-cart__quantity{display:inline-flex;align-items:center;gap:.6rem;font-size:.8rem}
.bd-cart__quantity input{width:5rem;padding:.45rem;min-height:40px}
.bd-cart__remove{background:none;border:0;color:inherit;text-decoration:underline;text-underline-offset:3px;padding:.75rem .5rem;font:inherit;font-size:.8rem;cursor:pointer}
.bd-cart__summary{padding-top:1.5rem}
.bd-cart__summary dl{margin:0;display:grid;gap:.7rem}
.bd-cart__summary dl>div{display:flex;justify-content:space-between;gap:1rem;font-size:.9rem}
.bd-cart__summary dd{margin:0;text-align:right;white-space:nowrap}
.bd-cart__summary [data-bandora-remove-coupon]{border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;min-width:30px;min-height:30px}
.bd-cart__summary .bd-cart__total{font-weight:700;padding-top:1rem;margin-top:.25rem;border-top:1px solid var(--bd-line);font-size:1rem}
.bd-cart__summary>p{font-size:.8rem;line-height:1.5}
.bd-cart__coupon{margin-block:1.25rem}
.bd-cart__coupon label{font-size:.875rem;display:block;margin-bottom:.4rem}
.bd-cart__coupon>div{display:flex;gap:.5rem}
.bd-cart__coupon input{width:100%}
.bd-cart__buttons{display:grid;gap:.6rem;margin-top:1.25rem}
.bd-cart__buttons .checkout{background:var(--bd-accent);border-color:var(--bd-accent);color:#231f20}
.bd-cart__empty{padding:3rem 0;text-align:center}
.bd-cart__notices :is(.woocommerce-error,.woocommerce-message,.woocommerce-info){padding:1rem;margin:0 0 1rem;font-size:.85rem;list-style:none;border:1px solid var(--bd-line)}
.bd-filter-form{margin-block:1.5rem}
.bd-filter-form fieldset{border:1px solid var(--bd-line);padding:1.25rem;margin:0;min-width:0}
.bd-filter-form legend{font-weight:600;padding-inline:.5rem;font-size:.95rem}
.bd-filter-form__fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:1rem}
.bd-filter-form__fields>label{display:grid;gap:.4rem;font-size:.8rem}
.bd-filter-form__fields select{width:100%}
.bd-filter-form__fields .bd-filter-form__check{display:flex;gap:.6rem;align-items:center;align-self:end;min-height:46px}
.bd-filter-form__check input{width:20px;height:20px;accent-color:var(--bd-ink)}
.bd-filter-form__actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin-top:1.25rem}
.bd-filter-form__actions a{color:inherit;font-size:.875rem;text-underline-offset:4px;padding:.65rem}
.bd-finder{background:var(--bd-paper);color:var(--bd-ink);padding:clamp(1.25rem,4vw,3rem)}
.bd-finder__intro>p:first-child{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em}
.bd-finder__intro h2{font-size:clamp(2rem,4vw,3.4rem);letter-spacing:-.045em;line-height:1.03;margin-block:.75rem}
.bd-finder__intro>p{max-width:42rem;line-height:1.6}
.bd-admin-note{border:1px dashed #8c6200;padding:1rem;font-size:.9rem}
@keyframes bd-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.bd-dialog--search{margin:0;max-width:100vw;height:100dvh;max-height:100dvh;padding:1.25rem}.bd-search__form{grid-template-columns:1fr}.bd-search__results{max-height:60dvh}.bd-search__results img{width:64px;height:64px}.bd-filter-form__fields{grid-template-columns:repeat(2,minmax(0,1fr))}.bd-filter-form fieldset{padding:1rem}}
@media(prefers-reduced-motion:reduce){.bd-dialog[open]{animation:none}.bd-search__results [role=option]{transition:none}}
