/* Buy now (product page) */
.bx-buy{margin-top:10px}
.bx-buy-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:48px;padding:0 16px;border:1.5px solid var(--ink);border-radius:4px;background:#fff;color:var(--ink);font:700 16px/1 var(--body);cursor:pointer;transition:background 150ms ease,transform 100ms ease-out}
.bx-buy-btn svg{width:18px;height:18px;fill:var(--yellow);stroke:var(--ink);stroke-width:1.4;stroke-linejoin:round}
.bx-buy-btn:hover,.bx-buy-btn:focus-visible{background:var(--sand)}
.bx-buy-btn:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.bx-buy-btn:active{transform:scale(.98)}
.bx-buy-btn[disabled]{opacity:.45;cursor:not-allowed}
.bx-buy-btn.is-busy{pointer-events:none;background:var(--sand)}
.bx-buy-btn.is-busy svg{animation:bx-pulse 900ms ease-in-out infinite}
@keyframes bx-pulse{50%{opacity:.35}}
.bx-buy-note{margin:6px 0 0;color:var(--muted);font:400 13px/1.4 var(--body);text-align:center}

/* Ways to pay: plain marks, not buttons */
.bx-ways{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:8px 0 0;padding:0;list-style:none}
.bx-ways li{display:inline-flex;align-items:center;height:26px;padding:0 9px;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--ink);font:600 12px/1 var(--body);white-space:nowrap}

/* Cart drawer footer */
.be-checkout.bx-checkout{display:flex;align-items:center;justify-content:center;gap:8px}
.be-checkout.bx-checkout svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.bx-drawer{margin:10px 0 2px;padding:10px 12px 12px;border-radius:4px;background:var(--sand);text-align:center}
.bx-drawer-line{margin:0;color:var(--ink);font:400 13px/1.4 var(--body)}
.bx-drawer-line strong{font-weight:700}
.bx-links{display:flex;justify-content:space-between;gap:12px;margin-top:4px}
.bx-links .be-view-cart,.bx-links .be-keep{width:auto;flex:1;margin:0}

/* Upsell step: sticky bar on phones */
.bx-upsell-bar{display:none}
@media (max-width:767px){
  .bx-upsell-bar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;align-items:center;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff;box-shadow:0 -6px 18px rgba(14,19,17,.06)}
  .bx-upsell-skip{flex:0 1 auto;color:var(--muted);font:400 13px/1.3 var(--body)}
  .bx-upsell-go{display:flex;align-items:center;justify-content:center;flex:1;height:50px;border:1px solid #e0a900;border-radius:4px;background:var(--yellow);color:var(--ink);font:700 16px/1 var(--body);text-decoration:none}
  .bx-upsell-go:active{transform:scale(.98)}
  body.bx-has-bar{padding-bottom:84px}
  .be-upsell-page .be-upsell-actions{display:none}
}

/* Fast path: hide the upsell step while it hands over to checkout */
html.bx-leaving .be-upsell-page{visibility:hidden}
html.bx-leaving body::after{content:"Opening secure checkout\2026";position:fixed;inset:0;display:grid;place-items:center;background:#fff;color:var(--ink);font:600 16px/1 var(--body);z-index:99}

/* Google's "Top Quality Store" badge sat on top of the sticky Add to cart bar on phones (found 2 Dec 2026),
   half covering the button. Its margin options did not move it and lifting the iframe hid it unpredictably,
   so on phone pages with a bottom bar it is hidden outright; it still shows on every other page. */
@media (max-width:767px){
  body:has(#pdpRoot) #merchantwidgetiframe,
  body.bx-has-bar #merchantwidgetiframe{display:none!important}
}

/* Product page order (found 2 Dec 2026): be-pdp.css orders ".buy-inner>.addons" after delivery and stock, but the
   add-ons are now wrapped in #pdpAddonsTarget, which the rule misses, so on phones they jumped above delivery,
   store stock and the summary line. Restores the approved order: buttons, delivery, stock, add-ons, summary. */
.be-pdp .buy-inner>#pdpAddonsTarget{order:2}
.be-pdp .buy-inner>p.answer.answer{order:3}

/* Category hero image beside the heading and intro (desktop only; phones keep products near the top).
   Women's Designer Sunglasses (content 2047), the version Reza approved 2 Dec 2026: the photo fills the space
   to the right of the text, 48-88px after it, and is exactly as tall as heading + intro (top level with the
   heading, bottom level with the last line). The square variant was for the men's page, which was dropped. */
.cat-hero .cat-hero-img{display:none}
@media (min-width:900px){
  .be-listing .cat-hero:has(.cat-hero-img){grid-template-columns:min(640px,55%) minmax(0,1fr);column-gap:48px;align-items:stretch}
  .be-listing .cat-hero:has(.cat-hero-img) .cat-intro{align-self:start}
  .be-listing .cat-hero:has(.cat-hero-img) h1{margin-top:0}
  .cat-hero .cat-hero-img{display:block;position:relative;margin:0;width:100%;min-height:200px}
  .cat-hero-img picture{display:contents}
  .cat-hero-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:58% 38%;border-radius:4px}
}
