/* BM Compras 1.6 · persistent shopping controls and accessible movement. */
:root{--bm-header-height:180px}
html{scroll-padding-top:calc(var(--bm-header-height) + 18px)}
.site-header{position:sticky;top:0;z-index:80;flex-shrink:0;transition:box-shadow .22s}
.site-header.is-scrolled{box-shadow:0 7px 25px #0826532b}
.site-header .header{grid-template-columns:145px minmax(0,1fr) auto;gap:25px;min-height:108px}
.site-header .header-actions{gap:25px;height:auto;align-items:center;justify-content:flex-end}
.site-header .header-actions a{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:9px;min-height:49px;height:auto;text-align:left}
.site-header .header-actions span{display:block;line-height:1.3}
.site-header .header-actions .header-account>span{font-size:.875rem;white-space:nowrap}
.site-header .header-actions .header-account .icon{width:25px;height:25px}
.site-header .header-actions .header-cart-icon{position:relative;display:flex;align-items:center;justify-content:center;width:35px;min-width:35px;height:40px}
.site-header .header-actions .header-cart-icon>b{top:0;right:-3px;min-width:20px;height:20px;line-height:1;font-size:.75rem;display:grid;place-items:center}
.site-header .header-actions .header-cart-copy{display:flex;flex-direction:column;gap:3px;min-width:0;max-width:165px}
.site-header .header-actions .header-cart-copy>span:first-child{font-size:.875rem;white-space:nowrap}
.site-header .header-actions .header-cart-money{display:flex;flex-direction:column;gap:2px;line-height:1.15}
.site-header .header-actions .header-cart-money>small{font-size:.6875rem;color:#e0eaff;font-weight:450;line-height:1.2}
.site-header .header-actions .header-cart-money .price-display{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin:0}
.site-header .header-actions .header-cart-money .price-primary{font-size:1.06rem;line-height:1.12;letter-spacing:-.035em;color:#fff;overflow-wrap:anywhere;white-space:normal;max-width:165px}
.site-header .header-actions .header-cart-money .price-secondary{font-size:.75rem;line-height:1.2;color:#dfeaff;font-weight:500}
.site-header .header-actions .header-cart-money .price-pending{font-size:.8125rem;line-height:1.3;color:#fff;white-space:normal}
.site-header .header-actions .header-cart-money .compact .price-primary{font-size:.9rem}
.site-header .brand{width:145px;height:80px}
.store-picker-trigger{position:relative}
.site-header .search .store-picker-trigger{padding:0 24px}
.store-picker-trigger>[data-store-label]{justify-content:center;text-align:center;min-width:0}
.store-picker-trigger [data-store-label]>span:not(.store-logo){max-width:none;text-align:center;line-height:1.25}
.store-picker-trigger>.icon{position:absolute;right:9px;top:50%;transform:translateY(-50%) rotate(90deg)}
.store-picker-trigger[aria-expanded=true]>.icon{transform:translateY(-50%) rotate(-90deg)}
.store-picker-trigger [data-store-label]>.icon{display:none}
.store-logo-on-light,.store-picker .store-logo{background:#fff;color:#173452;isolation:isolate;opacity:1}
.store-logo-on-light img,.store-picker .store-logo img{filter:none!important;opacity:1!important;mix-blend-mode:normal!important;background:transparent!important}
.store-logo-on-dark{background:#fff;border-color:#ffffff55;isolation:isolate}
.store-logo-on-dark img{filter:none!important;mix-blend-mode:normal!important;opacity:1!important}
.department-picture>.icon{color:#174ba7;stroke-width:1.7}
.shop-switch{flex-wrap:nowrap;overflow-x:auto;max-width:100%;scrollbar-width:thin;align-items:center;gap:8px}
.shop-switch>button{flex-shrink:0;min-height:43px;padding:7px 10px}
.discovery-toolbar{min-width:0}.discovery-toolbar .shop-switch{min-width:0}.discovery-toolbar>p{white-space:nowrap}
/* Retailer cards remain large and circulate as one continuous row. */
.market-carousel-section{padding:38px 25px 24px;margin-top:38px;background:#fff;border-radius:18px}
.market-window{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;margin:0;border-radius:14px;scroll-behavior:auto;overscroll-behavior-x:contain}
.market-window::-webkit-scrollbar{display:none}.market-window:focus-visible{outline:3px solid #ffbd00;outline-offset:5px}
.market-track{display:flex;align-items:stretch;gap:16px;position:relative;width:100%;padding:2px 0 8px}
.market-card{display:block;position:relative;isolation:isolate;overflow:hidden;flex:0 0 calc((100% - 16px)/2);min-width:0;min-height:285px;border-radius:14px;background:var(--market-color);text-decoration:none;color:#fff;transition:transform .2s,box-shadow .2s;transform:translateZ(0)}
.market-card:hover{text-decoration:none;box-shadow:0 8px 22px #092b5d26;transform:translateY(-2px)}
.market-card-amazon{background:#193d88}.market-card-walmart{background:#0071ce}.market-card-target{background:#c90018}.market-card-bestbuy{background:#073db1}.market-card-homedepot{background:#dd4e00}.market-card-lowes{background:#063b80}
.market-card:before{content:'';position:absolute;width:260px;height:260px;border:1px solid #ffffff21;border-radius:50%;right:-77px;top:-100px;box-shadow:0 0 0 40px #ffffff06,0 0 0 80px #ffffff04;pointer-events:none;z-index:-1}
.market-card-copy{position:relative;z-index:2;padding:29px 30px;display:flex;flex-direction:column;align-items:flex-start;min-height:285px;max-width:85%}
.market-card-kicker{color:#ffffffd4;display:block;font-size:.6875rem;font-weight:700;letter-spacing:.12em;line-height:1.4;margin-bottom:18px}
.market-card .store-logo{min-height:58px;max-width:195px;padding:8px 11px;border-radius:8px;margin:0;justify-content:flex-start;overflow:visible}
.market-card .store-logo img{width:165px!important;height:43px!important;object-position:left center}
.market-card .store-logo-target img{width:62px!important;height:62px!important}.market-card .store-logo-target{padding:0;min-height:62px}
.market-card .store-logo-homedepot img{width:62px!important;height:62px!important}.market-card .store-logo-lowes img{width:105px!important;height:62px!important}
.market-card .store-logo-bestbuy img{width:128px!important;height:45px!important}
.market-card-copy>p{font-size:1rem;line-height:1.6;margin:16px 0 21px;color:#fff;max-width:300px;flex:1}
.market-card-cta{display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#16468e;border-radius:8px;padding:10px 14px;font-size:.875rem;font-weight:750;line-height:1.4;box-shadow:0 3px 0 #0001}
.market-card-art{position:absolute;right:-13px;bottom:-28px;transform:rotate(-18deg);color:#fff;opacity:.18;z-index:0;pointer-events:none}
.market-card-art>.icon{width:178px;height:178px;stroke-width:1.2}
.market-card-target .market-card-art,.market-card-homedepot .market-card-art{opacity:.14}
.market-navigation{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:15px}
.market-navigation>span{color:#647990;font-size:.8125rem;line-height:1.5}
.market-navigation>div{display:flex;align-items:center;gap:7px}
.market-navigation button{display:inline-flex;align-items:center;justify-content:center;min-width:37px;height:35px;padding:6px 10px;border:1px solid #cddbed;border-radius:8px;background:#fff;color:#164ca2;font-size:.8125rem;line-height:1;cursor:pointer;transition:background .15s}
.market-navigation button:hover{background:#edf4ff}.market-navigation button>.icon{height:17px;width:17px}
.market-carousel-section[data-market-single] .market-card{flex-basis:100%}
/* Compact status card; no focus trap or blocking backdrop. */
.bm-toast{position:fixed;top:calc(var(--bm-header-height) + 22px);left:50%;transform:translate(-50%,-12px) scale(.96);z-index:180;display:flex;align-items:center;gap:16px;width:max-content;max-width:min(440px,calc(100vw - 32px));padding:20px 24px;border:1px solid #c4e5d3;border-radius:16px;background:#fff;box-shadow:0 14px 55px #09273c38;color:#183d36;pointer-events:none;opacity:0}
.bm-toast.is-visible{animation:bmToast 2s ease both}.bm-toast-copy{display:flex;flex-direction:column;gap:6px;min-width:0}.bm-toast-copy>strong{font-size:1.05rem;line-height:1.3;letter-spacing:-.02em}.bm-toast-copy>span{font-size:.8125rem;line-height:1.6;color:#617c73;max-width:290px}.bm-toast-icon{height:51px;width:51px;min-width:51px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#e7f8ed;color:#138650}.bm-toast-icon svg{height:47px;width:47px;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.bm-toast-icon circle{stroke-dasharray:148;stroke-dashoffset:148;animation:bmCheckCircle .45s ease forwards}.bm-toast-icon path{stroke-dasharray:43;stroke-dashoffset:43;animation:bmCheckDraw .35s .25s ease forwards}
.cart-add-error{font-size:.8125rem;line-height:1.6;margin-top:12px;flex-basis:100%;grid-column:1/-1}.card-actions form:has(.cart-add-error){display:flex;flex-direction:column;align-items:flex-end}.card-actions .cart-add-error{position:absolute;z-index:5;left:8px;right:8px;bottom:7px;margin:0;background:#fff1f1;padding:10px;text-align:left}.product-card{position:relative}
.quick-add.is-adding .icon,.btn.is-adding>.icon:first-child{animation:bmCartWait .7s ease-in-out infinite}.header-cart.is-bumping .header-cart-icon{animation:bmCartBump .6s ease}.air-minimum-applied{display:flex;align-items:flex-start;gap:8px;background:#e7f6ed;border:1px solid #bfe4ce;padding:11px 13px;border-radius:9px;color:#1b6546;font-size:.8125rem;line-height:1.65;margin:17px 0;grid-column:1/-1}.air-minimum-applied .icon{width:19px;height:19px;flex-shrink:0;margin-top:2px}
/* Interaction polish keeps keyboard focus and reduced-motion behavior intact. */
.btn,.quick-add,.department-pill{position:relative;isolation:isolate;overflow:hidden}.bm-ripple{position:absolute;border-radius:50%;background:#fff5;pointer-events:none;transform:scale(0);animation:bmRipple .6s ease-out forwards;z-index:0}
.product-card{transition:transform .22s,box-shadow .22s,border-color .22s}.product-card:hover{transform:translateY(-5px);box-shadow:0 10px 28px #10396d1c;border-color:#b7cef2}.product-image>img{transition:transform .35s}.product-card:hover .product-image>img{transform:scale(1.045)}
.department-tile{transition:transform .24s,box-shadow .24s}.department-tile:hover{transform:translateY(-4px);box-shadow:0 10px 22px #0d326e25}.department-picture{transition:transform .3s}.department-tile:hover .department-picture{transform:rotate(-7deg) translateY(-3px)}
.js-reveal.is-visible .product-card,.js-reveal.is-visible .commerce-trust>div{animation:bmProductEnter .5s both;animation-delay:var(--bm-stagger,0ms)}
.field-status{transition:transform .2s,opacity .2s}.is-valid>.field-status{animation:bmFieldCheck .3s ease}
@keyframes bmToast{0%{opacity:0;transform:translate(-50%,-12px) scale(.96)}12%,85%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-8px) scale(.98)}}
@keyframes bmCheckCircle{to{stroke-dashoffset:0}}@keyframes bmCheckDraw{to{stroke-dashoffset:0}}@keyframes bmCartBump{0%,100%{transform:scale(1)}35%{transform:scale(1.18) rotate(-8deg)}65%{transform:scale(.96) rotate(4deg)}}@keyframes bmCartWait{50%{transform:translateY(-3px)}}@keyframes bmProductEnter{from{opacity:.35;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes bmFieldCheck{from{transform:scale(.6)}to{transform:scale(1)}}@keyframes bmRipple{to{transform:scale(1);opacity:0}}
@media(max-width:1150px){.site-header .header{grid-template-columns:124px minmax(0,1fr) auto;gap:20px}.site-header .brand{width:124px;height:70px}.site-header .header-actions{gap:18px}.site-header .header-actions .header-account>span{font-size:.8125rem}.site-header .header-actions .header-cart-copy>span:first-child{font-size:.8125rem}.site-header .header-actions .header-cart-money .price-primary{font-size:.95rem;max-width:140px}.site-header .header-actions .header-cart-copy{max-width:140px}.market-card-copy{padding:25px;max-width:90%}.market-card-copy>p{font-size:.9375rem}.market-card-art>.icon{width:150px;height:150px}}
@media(max-width:850px){.site-header .header{grid-template-columns:1fr auto;grid-template-rows:minmax(72px,auto) 56px;gap:8px 18px;min-height:0;padding-top:6px;padding-bottom:12px}.site-header .brand{width:122px;height:67px}.site-header .header-actions{height:auto;align-items:center;gap:24px;padding-right:0}.site-header .header-actions a{height:auto;min-height:53px;gap:8px}.site-header .header-actions .header-account>span{display:block;font-size:.8125rem}.site-header .header-actions .header-cart-copy>span:first-child{display:block}.site-header .header-actions .header-cart-money .price-primary{font-size:1rem;max-width:160px}.site-header .header-actions .header-cart-copy{max-width:160px}.site-header .header-actions .header-cart-money .price-secondary{font-size:.75rem}.site-header .header-actions .header-cart-icon{height:38px}.site-header .search{grid-column:1/-1;grid-row:2}.market-card{min-height:265px}.market-card-copy{min-height:265px;padding:24px 20px}.market-card .store-logo img{width:140px!important;height:38px!important}.market-card .store-logo-target img,.market-card .store-logo-homedepot img{width:54px!important;height:54px!important}.market-card .store-logo-lowes img{width:95px!important;height:54px!important}.market-card .store-logo-bestbuy img{width:112px!important;height:39px!important}.market-card-art{right:-34px;bottom:-24px}.market-card-copy>p{font-size:.875rem}}
@media(max-width:600px){.site-header .header{grid-template-rows:minmax(69px,auto) 52px;gap:8px 13px;padding-top:6px;padding-bottom:11px}.site-header .brand{width:108px;height:59px}.site-header .header-actions{gap:18px;max-width:100%}.site-header .header-actions .header-account{flex-direction:column;gap:5px;min-width:56px}.site-header .header-actions .header-account>span{font-size:.75rem;line-height:1.2}.site-header .header-actions .header-account .icon{width:24px;height:24px}.site-header .header-actions .header-cart{gap:6px;min-height:54px}.site-header .header-actions .header-cart-copy>span:first-child{font-size:.75rem;line-height:1.3}.site-header .header-actions .header-cart-copy{max-width:145px;gap:3px}.site-header .header-actions .header-cart-money>small{font-size:.625rem;line-height:1.2}.site-header .header-actions .header-cart-money .price-primary{font-size:.9375rem;max-width:145px;line-height:1.15}.site-header .header-actions .header-cart-money .price-secondary{font-size:.6875rem;line-height:1.2}.site-header .header-actions .header-cart-money .price-pending{font-size:.6875rem;max-width:140px;line-height:1.3}.site-header .header-actions .header-cart-money .compact .price-primary{font-size:.8125rem}.site-header .header-actions .header-cart-icon{width:30px;min-width:30px;height:36px}.site-header .header-actions .header-cart-icon>.icon{width:25px;height:25px}.site-header .header-actions .header-cart-icon>b{right:-3px;top:-3px;font-size:.6875rem;min-width:19px;height:19px}.site-header .search .store-picker-trigger{padding:0 24px}.store-picker-trigger>[data-store-label]{justify-content:center;text-align:center;width:100%;height:100%}.store-picker-trigger [data-store-label]>span:not(.store-logo){max-width:none;line-height:1.25;text-align:center}.shop-switch{width:100%;max-width:100%;gap:8px;flex-wrap:nowrap;padding:5px;min-height:48px}.shop-switch>button{font-size:.8125rem;min-height:38px;padding:6px 9px}.discovery-toolbar{display:block}.discovery-toolbar>p{margin-top:10px;line-height:1.5}.market-carousel-section{padding:29px 17px 22px;margin-top:29px;border-radius:13px}.market-track{gap:12px}.market-card{flex-basis:calc((100% - 12px)/2);min-height:242px;border-radius:11px}.market-card-copy{max-width:100%;min-height:242px;padding:21px 15px;justify-content:flex-start}.market-card-kicker{font-size:.625rem;line-height:1.5;letter-spacing:.06em;margin-bottom:15px}.market-card .store-logo{min-height:48px;padding:7px 9px;max-width:145px}.market-card .store-logo img{width:113px!important;height:31px!important}.market-card .store-logo-target img{width:48px!important;height:48px!important}.market-card .store-logo-homedepot img{width:48px!important;height:48px!important}.market-card .store-logo-lowes img{width:78px!important;height:47px!important}.market-card .store-logo-bestbuy img{width:92px!important;height:34px!important}.market-card-copy>p{font-size:.8125rem;line-height:1.65;margin:14px 0 19px;max-width:220px}.market-card-cta{font-size:.75rem;padding:9px 10px;line-height:1.4}.market-card-art{right:-28px;bottom:21px}.market-card-art>.icon{width:104px;height:104px;opacity:.6}.market-navigation{margin-top:13px;gap:10px}.market-navigation>span{font-size:.75rem;line-height:1.5}.market-navigation button{height:33px;min-width:31px;font-size:.75rem;padding:6px 8px}.market-navigation>div{gap:5px}.bm-toast{top:calc(var(--bm-header-height) + 12px);max-width:calc(100vw - 30px);gap:12px;padding:17px 18px;border-radius:13px}.bm-toast-copy>strong{font-size:.9375rem}.bm-toast-copy>span{font-size:.75rem;line-height:1.6}.bm-toast-icon{height:43px;width:43px;min-width:43px}.bm-toast-icon svg{height:40px;width:40px}.air-minimum-applied{font-size:.75rem;padding:10px;line-height:1.7}}
@media(max-width:420px){.site-header .brand{width:91px;height:51px}.site-header .header{gap:8px 11px;grid-template-rows:minmax(67px,auto) 52px}.site-header .header-actions{gap:12px}.site-header .header-actions .header-account{min-width:50px}.site-header .header-actions .header-account>span{font-size:.6875rem}.site-header .header-actions .header-cart-copy{max-width:120px}.site-header .header-actions .header-cart-money .price-primary{font-size:.85rem;max-width:120px}.site-header .header-actions .header-cart-money .price-secondary{font-size:.625rem}.market-card{flex-basis:85%;min-height:245px}.market-card-copy{padding:24px;min-height:245px;max-width:86%}.market-card-copy>p{font-size:.875rem}.market-card .store-logo img{width:140px!important;height:36px!important}.market-card .store-logo-target img,.market-card .store-logo-homedepot img{height:54px!important;width:54px!important}.market-card .store-logo-lowes img{width:88px!important;height:50px!important}.market-card .store-logo-bestbuy img{width:111px!important;height:39px!important}.market-card-art>.icon{width:140px;height:140px}.market-card-art{bottom:0;right:-20px}.market-card-kicker{font-size:.6875rem}.market-card-cta{font-size:.8125rem}}
@media(max-width:340px){.site-header .brand{width:82px;height:46px}.site-header .header-actions{gap:9px}.site-header .header-actions .header-account{min-width:45px}.site-header .header-actions .header-account>span{font-size:.625rem}.site-header .header-actions .header-cart-copy{max-width:104px}.site-header .header-actions .header-cart-money .price-primary{font-size:.8rem;max-width:104px}.site-header .header-actions .header-cart-copy>span:first-child{font-size:.6875rem}.site-header .header-actions .header-cart-icon{width:26px;min-width:26px}.site-header .header-actions .header-cart-icon>.icon{width:23px;height:23px}}
@media(prefers-reduced-motion:reduce){.bm-toast.is-visible{animation:none;opacity:1;transform:translate(-50%,0)}.bm-toast-icon circle,.bm-toast-icon path{animation:none;stroke-dashoffset:0}.header-cart.is-bumping .header-cart-icon,.quick-add.is-adding .icon,.btn.is-adding>.icon:first-child,.js-reveal.is-visible .product-card,.js-reveal.is-visible .commerce-trust>div,.is-valid>.field-status{animation:none}.product-card,.product-image>img,.department-tile,.department-picture,.site-header,.market-card{transition:none}.product-card:hover,.department-tile:hover,.market-card:hover{transform:none}.product-card:hover .product-image>img{transform:none}.bm-ripple{display:none}}

.store-picker-trigger .store-logo{max-width:100%;min-width:0;flex-shrink:1}
.site-header .header-actions .header-cart-money .price-primary>span{display:inline;font-size:inherit;line-height:inherit}
.site-header .header-actions .header-cart-money .price-awaiting{font-size:.75rem;line-height:1.35;color:#fff}
/* Keep two stores in view on phones; narrow devices get a generous swipe card. */
@media(min-width:360px) and (max-width:420px){.market-card{flex-basis:calc((100% - 12px)/2);min-height:245px}.market-card-copy{padding:20px 12px;min-height:245px;max-width:100%}.market-card .store-logo{padding:6px;max-width:100%}.market-card .store-logo img{width:106px!important;height:29px!important}.market-card .store-logo-target img,.market-card .store-logo-homedepot img{width:45px!important;height:45px!important}.market-card .store-logo-lowes img{width:75px!important;height:45px!important}.market-card .store-logo-bestbuy img{width:89px!important;height:32px!important}.market-card-copy>p{font-size:.8125rem;line-height:1.6}.market-card-kicker{font-size:.5625rem;letter-spacing:.04em}.market-card-cta{font-size:.6875rem;padding:9px 8px}.market-card-art>.icon{width:100px;height:100px}.market-card-art{right:-22px;bottom:15px}}
