/* PBA Shop by Brand 1.2.2 — scoped so the theme header, cart, and checkout stay intact. */
:root{
  --pba-sbb-red:#E6192E;
}
.pba-sbb-dim{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(10,10,10,.18);
  z-index:45;
  border:0;
  padding:0;
  margin:0;
}
.pba-sbb-dim.is-on{display:block}
header{z-index:50}
.pba-sbb-mega{
  display:none;
  position:absolute;
  left:24px;
  right:24px;
  top:100%;
  background:#fff;
  border-top:3px solid var(--pba-sbb-red);
  border-radius:0 0 12px 12px;
  box-shadow:0 22px 44px rgba(0,0,0,.16);
  z-index:60;
  overflow:hidden;
}
header.pba-sbb-open .pba-sbb-mega,
.pba-sbb-mega.is-on{display:block}

.pba-sbb-dd > a{cursor:pointer}
.pba-sbb-dd .car{
  display:inline-block;
  width:7px;
  height:7px;
  margin:0 0 3px 7px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg);
  transition:transform .2s;
}
.pba-sbb-dd:hover .car,
.pba-sbb-dd.open .car,
header.pba-sbb-open .pba-sbb-dd .car{
  transform:rotate(-135deg);
  margin-bottom:-1px;
}

.pba-sbb-mega-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 22px 12px;
  border-bottom:1px solid #f0f0f0;
}
.pba-sbb-kicker{
  font:800 13px/1 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--pba-sbb-red);
  margin:0 0 5px;
}
.pba-sbb-line{
  margin:0;
  font:500 14px/1.4 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  color:#444;
}
.pba-sbb-all{
  flex:0 0 auto;
  font:700 13px/1 Inter,system-ui,sans-serif;
  color:#111;
  border-bottom:2px solid var(--pba-sbb-red);
  padding-bottom:3px;
  white-space:nowrap;
  text-decoration:none;
}
.pba-sbb-all:hover,
.pba-sbb-all:focus-visible{color:var(--pba-sbb-red)}

.pba-sbb-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:10px;
  padding:16px 22px 18px;
}
.pba-sbb-tile{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:96px;
  padding:12px 8px 10px;
  border:1px solid #ececec;
  border-radius:8px;
  background:#fff;
  text-align:center;
  text-decoration:none;
  color:inherit;
}
.pba-sbb-tile img{
  max-width:82%;
  max-height:48px;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}
.pba-sbb-tile .nm{
  font:600 11px/1 Inter,system-ui,sans-serif;
  color:#555;
  letter-spacing:.01em;
}
.pba-sbb-tile .word{
  font:800 22px/.9 "Barlow Condensed",Inter,sans-serif;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#111;
}
.pba-sbb-tile.word-only{gap:0}
.pba-sbb-tile:hover,
.pba-sbb-tile:focus-visible{
  border-color:#d0d0d0;
  box-shadow:0 6px 16px rgba(0,0,0,.08);
}

/* Make room for the extra Shop By item: hide Home on desktop (the logo already goes home). */
@media (min-width:901px){
  body.pts nav.main.pba-nav:has(.pba-sbb-dd) > .pba-sbb-home{display:none}
  body.pts nav.main.pba-nav:has(.pba-sbb-dd) > div > a{padding-left:8px;padding-right:8px}
}
@media (min-width:901px) and (max-width:1100px){
  body.pts nav.main.pba-nav:has(.pba-sbb-dd) > div > a{padding-left:6px;padding-right:6px;font-size:14px}
}
@media (min-width:901px) and (max-width:1000px){
  body.pts nav.main.pba-nav:has(.pba-sbb-dd) > div > a{padding-left:4px;padding-right:4px;font-size:13px}
}

/* Mobile: the mega-menu is replaced by a section inside the existing theme drawer. */
@media (max-width:900px){
  .pba-sbb-mega,
  .pba-sbb-dim{display:none !important}
  /* Theme sets .pba-drawer .sub to a 2-column grid (for category links). Stack our brand block. */
  .pba-drawer .sub.pba-sbb-mobile{
    display:block !important;
    grid-template-columns:none !important;
    padding-bottom:72px; /* clear the floating Share button */
  }
  .pba-sbb-m-head{padding:4px 0 10px}
  .pba-sbb-m-head .pba-sbb-kicker{margin-bottom:4px}
  .pba-sbb-m-head p{
    margin:0;
    font:500 14px/1.4 Inter,system-ui,sans-serif;
    color:#444;
  }
  .pba-sbb-m-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:6px;
    padding:4px 0 12px;
  }
  .pba-sbb-m-grid .pba-sbb-tile{min-height:74px;padding:8px 5px;gap:5px}
  .pba-sbb-m-grid .pba-sbb-tile img{max-height:34px;max-width:88%}
  .pba-sbb-m-grid .pba-sbb-tile .nm{font-size:10px}
  .pba-sbb-m-grid .pba-sbb-tile .word{font-size:18px}
  .pba-sbb-m-all{
    display:inline-block;
    font:700 15px Inter,system-ui,sans-serif !important;
    color:#111 !important;
    border-bottom:2px solid var(--pba-sbb-red);
    padding:0 0 3px !important;
    margin:4px 0 10px;
    width:max-content;
    text-decoration:none;
  }
  .pba-sbb-acc > summary.big{
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;
    list-style:none;
  }
  .pba-sbb-acc > summary.big::-webkit-details-marker{display:none}
}
@media (min-width:901px){
  .pba-sbb-acc{display:none !important}
}


/* Slim homepage gold strip (between Shop by and The Collection).
   Class is pba-sbb-home-section so it does not collide with the Home nav item (.pba-sbb-home).
   Override the theme's section padding (64px / 44px) or this would stay tall. */
.pba-sbb-home-section{
  padding:16px 36px 10px !important;
}
.pba-sbb-home-frame{
  position:relative;
  border-radius:10px;
  padding:2px;
  background:
    linear-gradient(180deg, rgba(255,248,220,.5), transparent 42%),
    linear-gradient(135deg, #8C6D1F 0%, #E8C547 18%, #F6E7B2 36%, #C9A227 52%, #A67C1A 70%, #F3E2A0 86%, #8C6D1F 100%);
  box-shadow:
    0 1px 0 rgba(255, 236, 180, .7) inset,
    0 8px 18px rgba(139, 105, 20, .10);
}
.pba-sbb-home-band{
  background: linear-gradient(180deg, #F8E7B0 0%, #E8C547 32%, #D4AF37 58%, #C9A227 100%);
  border-radius:8px 8px 0 0;
  padding:5px 14px;
  text-align:center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(92,64,14,.18);
}
.pba-sbb-home-proceeds{
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.pba-sbb-home-proceeds-text{
  font:800 13px/1.25 "Barlow Condensed", Inter, sans-serif;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:#2A1F08;
  text-wrap:balance;
  text-shadow:0 1px 0 rgba(255,248,220,.45);
}
.pba-sbb-home-rule{
  flex:0 0 36px;
  height:1px;
  background:linear-gradient(90deg, transparent, #5C400E 20%, #5C400E 80%, transparent);
  opacity:.55;
}
.pba-sbb-home-body{
  background:linear-gradient(180deg, #fffdf6 0%, #fff 50%);
  border-radius:0 0 8px 8px;
  padding:8px 12px 8px;
}
.pba-sbb-home-row{
  display:flex;
  align-items:baseline;
  gap:8px 14px;
  flex-wrap:wrap;
  margin:0 0 6px;
}
.pba-sbb-home-section h2.pba-sbb-home-label,
.pba-sbb-home-label{
  font:800 16px/1.1 "Barlow Condensed", Inter, sans-serif !important;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin:0 !important;
  color:#111;
}
.pba-sbb-home-tag{
  margin:0;
  font:500 13px/1.2 Inter, system-ui, sans-serif;
  color:#444;
  text-transform:none;
  letter-spacing:0;
}
.pba-sbb-home-all{
  margin-left:auto;
  font:700 12px/1 Inter, system-ui, sans-serif;
  white-space:nowrap;
}
.pba-sbb-home-railwrap{
  position:relative;
  display:flex;
  align-items:center;
  gap:6px;
}
.pba-sbb-home-rail{
  display:flex;
  flex-wrap:nowrap;
  gap:8px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  flex:1 1 auto;
  min-width:0;
  padding:1px 2px 2px;
}
.pba-sbb-home-rail::-webkit-scrollbar{display:none}
.pba-sbb-home-rail .pba-sbb-tile{
  flex:0 0 86px;
  width:86px;
  min-height:58px;
  padding:6px 4px 4px;
  gap:3px;
  scroll-snap-align:start;
  background:#fff;
}
.pba-sbb-home-rail .pba-sbb-tile img{
  max-height:30px;
  max-width:78%;
}
.pba-sbb-home-rail .pba-sbb-tile .nm{font-size:9px;line-height:1.1}
.pba-sbb-home-rail .pba-sbb-tile .word{font-size:13px}
.pba-sbb-home-prev,
.pba-sbb-home-next{
  flex:0 0 28px;
  width:28px;
  height:28px;
  border-radius:50%;
  border:1px solid #d9c27a;
  background:#fff;
  color:#2A1F08;
  cursor:pointer;
  font:700 18px/1 Georgia, serif;
  padding:0;
  box-shadow:0 1px 3px rgba(139,105,20,.12);
}
.pba-sbb-home-prev:hover,
.pba-sbb-home-next:hover{
  background:#fff8e0;
  border-color:#c9a227;
}
.pba-sbb-home-cue{
  margin:8px 0 0;
  text-align:center;
}
.pba-sbb-home-cue a{
  display:inline-block;
  font:800 17px/1.2 "Barlow Condensed", Inter, sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#111;
  border-bottom:2px solid var(--pba-sbb-red);
  padding-bottom:1px;
  text-decoration:none;
}
.pba-sbb-home-cue a:hover,
.pba-sbb-home-cue a:focus-visible{color:var(--pba-sbb-red)}

@media (max-width:900px){
  .pba-sbb-home-section{padding:8px 16px 6px !important}
  .pba-sbb-home-band{padding:4px 10px}
  .pba-sbb-home-proceeds{gap:6px}
  .pba-sbb-home-proceeds-text{font-size:11px;letter-spacing:.05em}
  .pba-sbb-home-rule{display:none}
  .pba-sbb-home-body{padding:6px 8px 6px}
  .pba-sbb-home-row{margin:0 0 4px;gap:4px 10px}
  .pba-sbb-home-section h2.pba-sbb-home-label,
  .pba-sbb-home-label{font-size:14px !important}
  .pba-sbb-home-tag{font-size:12px}
  .pba-sbb-home-all{font-size:11px}
  .pba-sbb-home-prev,
  .pba-sbb-home-next{display:none}
  .pba-sbb-home-rail{gap:6px}
  .pba-sbb-home-rail .pba-sbb-tile{
    flex-basis:72px;
    width:72px;
    min-height:52px;
    padding:5px 3px 3px;
  }
  .pba-sbb-home-rail .pba-sbb-tile img{max-height:26px}
  .pba-sbb-home-cue{margin:6px 0 0}
  .pba-sbb-home-cue a{font-size:15px}
}
