/* Richmond Bash storefront: tabs, banners, cards, cart drawer, checkout. */
:root{--rb-v:#000;--rb-vd:#000;--rb-g:#000;--rb-line:#E2E2E2;--rb-soft:#F2F2F2;--rb-mut:#555;--rb-cy:#000}
.rb-store{max-width:1200px;margin:0 auto;padding:0 0 10rem}
.rb-lock{overflow:hidden}

/* Category tabs */
.rb-tabs{display:flex;gap:.25rem;overflow-x:auto;padding:.9rem 0 .4rem;scrollbar-width:none}
.rb-tabs::-webkit-scrollbar{display:none}
.rb-tab{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:.35rem;min-width:84px;padding:.35rem .4rem;background:none;border:0;border-bottom:3px solid transparent;font:500 .78rem/1.2 var(--wp--preset--font-family--body,sans-serif);color:var(--rb-g);cursor:pointer;text-align:center}
.rb-tab__ic{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--rb-soft)}
.rb-tab.is-on{border-bottom-color:var(--rb-v)}
.rb-tab.is-on .rb-tab__ic{background:var(--rb-cy)}

/* Banners */
.rb-banners{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:.75rem 0 1.25rem}
.rb-banner{border-radius:18px;padding:1.25rem 1.5rem}
.rb-banner h2{font-size:1.35rem;margin:0 0 .3rem}
.rb-banner p{margin:0 0 .9rem;font-size:.92rem}
.rb-banner--a{background:#F2F2F2;color:var(--rb-g)}
.rb-banner--b{background:var(--rb-g);color:#fff}
.rb-banner--b h2{color:#fff}
@media (max-width:700px){.rb-banners{grid-template-columns:1fr}}

/* Sections and rows */
.rb-sec{margin-top:1.75rem}
.rb-sec[hidden]{display:none}
.rb-sec__head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:.75rem}
.rb-sec__head h2{font-size:1.3rem;margin:0}
.rb-sec__head p{margin:.15rem 0 0;font-size:.85rem;color:var(--rb-mut)}
.rb-sec__nav{display:flex;align-items:center;gap:.4rem}
.rb-seeall{font-weight:600;font-size:.85rem;margin-right:.4rem}
.rb-arrow{width:36px;height:36px;border-radius:50%;border:1px solid var(--rb-line);background:#fff;font-size:1.2rem;line-height:1;cursor:pointer}
@media (max-width:700px){.rb-arrow{display:none}}
.rb-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(190px,210px);gap:.85rem;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:.6rem}
.rb-row>.rb-card{scroll-snap-align:start}
.rb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:1rem}

/* Cards */
.rb-card{display:flex;flex-direction:column;gap:.35rem;background:#fff;border:1px solid var(--rb-line);border-radius:16px;padding:.7rem}
.rb-card[hidden]{display:none}
.rb-card__img{display:grid;place-items:center;aspect-ratio:1/1;background:var(--rb-soft);border-radius:12px;overflow:hidden}
.rb-card__img img{width:100%;height:100%;object-fit:contain}
.rb-card__ph{font-size:.75rem;color:var(--rb-mut);padding:.5rem;text-align:center}
.rb-card .rb-badge{align-self:flex-start;margin-top:.15rem}
.rb-card__title{font-size:.98rem;margin:0;line-height:1.25}
.rb-card__title a{color:inherit;text-decoration:none}
.rb-card__sub{margin:0;font-size:.8rem;color:var(--rb-mut);min-height:1.1em}
.rb-card__foot{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-top:auto;padding-top:.3rem}
.rb-price,.rb-price-note{font-weight:600}
.rb-price-note{font-weight:400;font-size:.85rem}
.rb-price-big{font-size:1.75rem;margin:.25rem 0}

/* Add button and stepper */
.rb-add{min-height:38px;padding:.35rem .85rem;border-radius:10px;border:1.5px solid var(--rb-vd);background:#fff;color:var(--rb-vd);font:600 .85rem/1 var(--wp--preset--font-family--body,sans-serif);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}
.rb-add:hover{background:var(--rb-vd);color:#fff}
.rb-stepper{display:inline-flex;align-items:center;background:var(--rb-v);color:#fff;border-radius:10px;overflow:hidden}
.rb-stepper button{width:34px;min-height:38px;border:0;background:transparent;color:#fff;font-size:1.1rem;cursor:pointer}
.rb-stepper button:disabled{opacity:.4;cursor:default}
.rb-stepper span{min-width:1.4rem;text-align:center;font-weight:600;font-size:.9rem}
.rb-buy .rb-add,.rb-cta .rb-add{min-height:44px;padding:.5rem 1.4rem}
.rb-cta .rb-stepper button{min-height:44px;width:42px}

/* Header cart pill and floating bag */
.rb-cartpill{display:inline-flex;align-items:center;gap:.45rem;min-height:44px;padding:.4rem .9rem;border-radius:12px;border:0;background:#fff;color:var(--rb-g);font:600 .9rem/1 var(--wp--preset--font-family--body,sans-serif);cursor:pointer}
.rb-cartpill__n{background:var(--rb-g);color:#fff;border-radius:999px;font-size:.72rem;min-width:1.35rem;height:1.35rem;display:grid;place-items:center;padding:0 .3rem}

/* Drawer */
.rb-overlay{position:fixed;inset:0;background:rgba(23,25,35,.5);z-index:90}
.rb-overlay[hidden],.rb-drawer[hidden]{display:none}
.rb-drawer{position:fixed;top:0;right:0;bottom:0;width:min(420px,100%);z-index:100;background:#fff;display:flex;flex-direction:column;box-shadow:-8px 0 30px rgba(23,25,35,.25)}
.rb-drawer header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.1rem;border-bottom:1px solid var(--rb-line)}
.rb-drawer h2{font-size:1.15rem;margin:0}
.rb-x{width:44px;height:44px;border:0;background:none;font-size:1.8rem;cursor:pointer}
.rb-drawer__body{flex:1;overflow-y:auto;padding:.5rem 1.1rem}
.rb-drawer footer{padding:.9rem 1.1rem calc(.9rem + env(safe-area-inset-bottom,0));border-top:1px solid var(--rb-line)}
.rb-lines{list-style:none;margin:0;padding:0}
.rb-line{display:grid;grid-template-columns:52px 1fr auto;gap:.2rem .7rem;align-items:center;padding:.7rem 0;border-bottom:1px solid var(--rb-line)}
.rb-line__img{width:52px;height:52px;border-radius:10px;background:var(--rb-soft);overflow:hidden;grid-row:span 2}
.rb-line__img img{width:100%;height:100%;object-fit:contain}
.rb-line__main{display:flex;flex-direction:column;font-size:.88rem}
.rb-line__main a{font-weight:600;color:inherit;text-decoration:none}
.rb-line__main span{color:var(--rb-mut);font-size:.8rem}
.rb-line .rb-stepper{grid-column:2}
.rb-line__t{grid-column:3;grid-row:1/span 2;font-size:.9rem}
.rb-free{margin:0 0 .35rem;font-size:.85rem;font-weight:600}
.rb-bar{height:6px;border-radius:99px;background:var(--rb-soft);overflow:hidden;margin-bottom:.7rem}
.rb-bar i{display:block;height:100%;background:var(--rb-v)}
.rb-bill{margin:0 0 .8rem;font-size:.9rem}
.rb-bill div{display:flex;justify-content:space-between;padding:.15rem 0}
.rb-bill dt,.rb-bill dd{margin:0}
.rb-bill__t{font-weight:700;font-size:1.05rem;border-top:1px solid var(--rb-line);margin-top:.3rem;padding-top:.4rem!important}
.rb-go{width:100%;box-sizing:border-box}
.rb-empty{color:var(--rb-mut);padding:1rem 0}

/* Info strip */
.rb-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.85rem;margin-top:2.25rem}
.rb-info a{display:flex;flex-direction:column;gap:.2rem;border:1px solid var(--rb-line);border-radius:16px;padding:1rem 1.2rem;text-decoration:none;color:var(--rb-g)}
.rb-info span{font-size:.85rem;color:var(--rb-mut)}

/* Buttons used by the storefront */
.rbc-btn--dark{background:var(--rb-g);color:#fff;border-color:var(--rb-g)}
.rbc-btn--light{background:#fff;color:var(--rb-g);border-color:#fff;cursor:pointer}

/* Checkout */
.rb-checkout{display:grid;grid-template-columns:1.3fr 1fr;gap:2rem;max-width:1100px;margin:0 auto}
.rb-checkout__sum{align-self:start;background:var(--rb-soft);border-radius:16px;padding:1.2rem}
.rb-checkout h2{font-size:1.25rem;margin:0 0 .8rem}
.rb-receipt{background:var(--rb-soft);border-radius:12px;padding:1rem;white-space:pre-wrap;font:.88rem/1.6 var(--wp--preset--font-family--mono,monospace)}
@media (max-width:800px){.rb-checkout{grid-template-columns:1fr}}

/* Product page */
.rb-specs{width:100%;border-collapse:collapse;font-size:.92rem;margin:1.25rem 0}
.rb-specs caption{text-align:left;font:700 1.1rem var(--wp--preset--font-family--heading,sans-serif);padding-bottom:.4rem}
.rb-specs th{text-align:left;font-weight:500;color:var(--rb-mut);width:38%}
.rb-specs th,.rb-specs td{padding:.55rem 0;border-bottom:1px solid var(--rb-line)}
.rb-note{width:100%;margin:0;font-size:.9rem;color:var(--rb-mut)}

@media (prefers-reduced-motion:no-preference){.rb-row{scroll-behavior:smooth}}

/* Monochrome overrides */
.rb-tab.is-on .rb-tab__ic{background:#000;color:#fff}
.rb-banner--a{background:#F2F2F2}
.rb-cartpill{background:#000;color:#fff}
.rb-cartpill__n{background:#fff;color:#000}
.rb-stepper{background:#000}
.rb-add{border-color:#000;color:#000}
.rb-add:hover{background:#000;color:#fff}
.rb-banner--b .rbc-btn--light{background:#fff;color:#000}
:where(.rb-tab,.rb-add,.rb-arrow,.rb-x,.rb-stepper button,.rb-cartpill,.rb-bag):focus-visible{outline:3px solid #000;outline-offset:2px;box-shadow:0 0 0 2px #fff}

/* Paper-bag cart: bottom centre on phone and desktop */
.rb-bag{position:fixed;left:50%;bottom:calc(8px + env(safe-area-inset-bottom,0));transform:translateX(-50%);z-index:60;width:156px;height:126px;padding:0;border:0;background:none;cursor:pointer;transition:opacity .25s ease,transform .25s ease;-webkit-tap-highlight-color:transparent}
.rb-bag[hidden]{display:none}
.rb-bag__in{position:absolute;inset:0;display:block;transition:transform .35s ease;transform-origin:50% 100%}
.rb-bag__svg{position:absolute;left:3px;bottom:0;display:block;filter:drop-shadow(0 6px 10px rgba(0,0,0,.22))}
.rb-bag__items{position:absolute;left:0;right:0;bottom:62px;height:58px;display:flex;justify-content:center;align-items:flex-end;gap:2px;pointer-events:none}
.rb-bag__items i{display:block;width:44px;height:52px;border:2px solid #6B4A28;border-radius:8px;background:#fff;overflow:hidden;margin:0 -3px}
.rb-bag__items img{width:100%;height:100%;object-fit:contain;display:block}
.rb-bag__pill{position:absolute;left:50%;bottom:44px;transform:translateX(-50%);background:#000;color:#fff;border-radius:999px;padding:.4rem 1rem;font:600 .85rem/1 var(--wp--preset--font-family--body,sans-serif);white-space:nowrap}
.rb-bag__sub{position:absolute;left:0;right:0;bottom:22px;text-align:center;font:600 .72rem/1 var(--wp--preset--font-family--body,sans-serif);color:#2b1c0c;white-space:nowrap}
.rb-bag__n{position:absolute;right:-2px;top:20px;min-width:1.55rem;height:1.55rem;border-radius:999px;background:#000;color:#fff;border:2px solid #fff;display:grid;place-items:center;font:700 .75rem/1 var(--wp--preset--font-family--body,sans-serif);padding:0 .3rem}
.rb-bag__n[hidden]{display:none}
.rb-bag__in.is-bump{animation:rbBounce .5s ease}
@keyframes rbBounce{0%{transform:scale(1)}30%{transform:translateY(-10px) scale(1.07,.93)}60%{transform:translateY(0) scale(.95,1.05)}100%{transform:scale(1)}}
.rb-bag:focus-visible{outline:3px solid #000;outline-offset:2px;box-shadow:0 0 0 2px #fff;border-radius:16px}

/* Product flying into the bag */
.rb-fly{position:fixed;z-index:120;width:56px;height:56px;pointer-events:none}
.rb-fly__in{width:56px;height:56px;border:2px solid #000;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 6px 16px rgba(0,0,0,.25);display:block}
.rb-fly__in img{width:100%;height:100%;object-fit:contain;display:block}
@media (max-width:600px){.rb-bag{width:140px;height:114px}.rb-bag__svg{width:134px;height:100px}.rb-bag__items{bottom:56px}.rb-bag__pill{bottom:38px;font-size:.8rem}.rb-bag__sub{bottom:17px}}
@media (prefers-reduced-motion:reduce){.rb-bag__in{transition:none}.rb-bag__in.is-bump{animation:none}}

/* Mobile header pieces from the plugin */
.rb-searchbtn{display:none;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:12px;background:transparent;color:#000;cursor:pointer}
@media (max-width:599px){
 .rb-cartpill{padding:.4rem .7rem;min-width:44px;justify-content:center;gap:.35rem}
 .rb-cartpill__t{display:none}
 .rb-searchbtn{display:inline-flex}
}

/* Bag steps aside while scrolling */
.rb-bag.is-scrolling{opacity:0;pointer-events:none;transform:translateX(-50%) translateY(28px)}

/* Phone fit: tighter, balanced */
@media (max-width:599px){
 .rb-tabs{padding:.55rem 0 .2rem}
 .rb-tab{min-width:70px;font-size:.74rem}
 .rb-tab__ic{width:44px;height:44px;border-radius:12px}
 .rb-banners{gap:.6rem;margin:.5rem 0 .9rem}
 .rb-banner{padding:1rem 1.05rem;border-radius:16px}
 .rb-banner h2{font-size:1.1rem}
 .rb-banner p{font-size:.85rem;margin-bottom:.7rem}
 .rb-sec{margin-top:1.25rem}
 .rb-sec__head h2{font-size:1.15rem}
 .rb-row{grid-auto-columns:minmax(150px,44vw);gap:.6rem;margin-inline:calc(var(--rb-gutter,1rem) * -1);padding-inline:var(--rb-gutter,1rem);scroll-padding-inline:var(--rb-gutter,1rem)}
 .rb-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
 .rb-card{padding:.5rem;border-radius:14px}
 .rb-card__title{font-size:.9rem}
 .rb-card__sub{font-size:.75rem}
 .rb-card__foot{flex-direction:column;align-items:stretch;gap:.4rem}
 .rb-card__foot .rb-buy,.rb-card__foot .rb-addwrap,.rb-card__foot .rb-add,.rb-card__foot .rb-stepper{width:100%;box-sizing:border-box}
 .rb-card__foot .rb-add{justify-content:center}
 .rb-card__foot .rb-stepper{justify-content:space-between}
 .rb-info{margin-top:1.5rem}
 .rb-drawer{width:100%}
}
