/* ==================================================================
   SW HEADER
   ------------------------------------------------------------------
   Scoped under .swh throughout. This loads on EVERY page including
   the Elementor landing pages, so it must not style bare elements or
   borrow generic class names - .wrap, .btn and .logo all already mean
   something else on this site.
   ================================================================== */

.swh{
  --h-ink:#0E0E0E;
  --h-cream:#FBF7F0;
  --h-red:#E42127;
  --h-red-deep:#B6181E;
  --h-line:rgba(14,14,14,.12);
  --h-mute:#6B6B6B;
  --h-display:'Archivo Black',Archivo,system-ui,sans-serif;
  --h-sans:'Inter',system-ui,sans-serif;
  --h-mono:'JetBrains Mono',ui-monospace,monospace;

  position:relative;z-index:200;
  font-family:var(--h-sans);color:var(--h-ink);
  background:var(--h-cream);
}
.swh.is-sticky{position:sticky;top:0}
.swh *{box-sizing:border-box}
.swh a{color:inherit;text-decoration:none}

/* FOCUS RING ON KEYBOARD ONLY.
   Clicking a link leaves :focus on it, and the theme draws a dotted
   outline for that - hence the box left behind after every click. This
   suppresses the mouse case and states a proper ring for :focus-visible,
   which fires for tab and not for a pointer. Removing the outline
   outright would leave keyboard users with nothing. */
.swh a:focus,
.swh button:focus,
.swh input:focus{outline:none!important;box-shadow:none}
.swh a:focus-visible,
.swh button:focus-visible{outline:2px solid var(--h-red)!important;outline-offset:2px;border-radius:3px}
.swh-search input[type="search"]:focus-visible{outline:none!important;box-shadow:0 0 0 4px rgba(228,33,39,.18)!important}
.swh button{font-family:inherit;cursor:pointer;border:0;background:none;color:inherit;padding:0}
.swh img{max-width:100%;display:block}

.swh-wrap{max-width:1440px;margin:0 auto;padding:0 32px;display:flex;align-items:center;gap:24px}

/* ---- announcement ---- */
.swh-announce{background:var(--h-ink);color:#fff;text-align:center;padding:8px 16px;
  font-family:var(--h-mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.swh-announce a{border-bottom:1px solid rgba(255,255,255,.4)}

/* ---- top row ---- */
.swh-top{border-bottom:1px solid var(--h-line)}
.swh-top .swh-wrap{min-height:82px;padding-top:10px;padding-bottom:10px}

.swh-logo{display:flex;align-items:center;font-family:var(--h-display);font-size:17px;letter-spacing:-.01em;flex-shrink:0}
.swh-logo .smooth{background:var(--h-ink);color:#fff;padding:7px 30px 7px 12px;border-radius:5px;position:relative;z-index:1}
.swh-logo .wholesales{background:var(--h-red);color:#fff;padding:7px 12px;border-radius:5px;margin-left:-16px;transform:skewX(-8deg);position:relative;z-index:2}
.swh-logo .wholesales span{display:inline-block;transform:skewX(8deg)}
/* 300px wide, matching the Logo Width set in Site Identity. Astra
   applies that number to its own header markup, not to ours, so it has
   to be stated here. height:auto keeps the aspect ratio; max-width
   lets it shrink on a phone rather than forcing a sideways scroll. */
.swh-logo img,.swh-logo-img{width:300px;max-width:100%;height:auto;display:block}

.swh-search{flex:1;max-width:620px;position:relative;display:flex;min-width:0}
.swh-search input[type="search"]{
  width:100%;height:48px;border:1.5px solid var(--h-ink)!important;border-radius:10px;
  padding:0 54px 0 18px!important;font-size:15px;background:#fff!important;color:var(--h-ink);
  outline:none!important;box-shadow:none!important;font-family:var(--h-sans);
}
.swh-search input::placeholder{color:#8a8a8a}
.swh-search button{position:absolute;right:5px;top:5px;width:38px;height:38px;border-radius:7px;
  background:var(--h-red);color:#fff;display:flex;align-items:center;justify-content:center}

.swh-staff{display:flex;align-items:center;gap:26px;flex-shrink:0;margin-left:auto}
.swh-staff a{font-size:15px;font-weight:600;color:var(--h-red);white-space:nowrap}

.swh-burger{display:none;align-items:center;justify-content:center;width:46px;height:46px;
  border:1.5px solid var(--h-ink);border-radius:10px;background:var(--h-ink);color:#fff;flex-shrink:0}

/* ---- nav row ---- */
.swh-nav{background:var(--h-ink)}
.swh-nav .swh-wrap{height:52px;gap:0}
.swh-spacer{flex:1}

.swh-menu{display:flex;align-items:center;gap:30px;list-style:none;margin:0;padding:0;height:100%}
.swh-menu li{margin:0;position:relative}
.swh-menu > li > a{display:flex;align-items:center;height:52px;font-family:var(--h-display);
  font-size:18px;letter-spacing:.01em;color:rgba(255,255,255,.86)}
.swh-menu > li.current-menu-item > a,
.swh-menu > li.current_page_item > a{color:var(--h-red)}

/* Sub-menus: opened on hover at desktop, and on tap through the drawer
   at mobile - a hover-only sub-menu is unreachable on a phone. */
.swh-menu .sub-menu{position:absolute;top:100%;left:0;min-width:220px;background:#fff;
  border:1px solid var(--h-line);border-radius:10px;box-shadow:0 20px 40px -20px rgba(0,0,0,.4);
  list-style:none;margin:0;padding:6px 0;display:none;z-index:10}
.swh-menu li:hover > .sub-menu{display:block}
.swh-menu .sub-menu a{display:block;padding:9px 16px;font-size:14px;color:var(--h-ink)}

.swh-cart{display:flex;align-items:center;gap:12px;color:#fff!important;flex-shrink:0;padding:6px 0 6px 14px}
.swh-cart .amt{font-family:var(--h-display);font-size:18px;letter-spacing:-.01em;white-space:nowrap}
.swh-cart .ico{position:relative;display:flex;flex-shrink:0}
/* Astra and several plugins set svg{fill:currentColor} globally, which
   fills a stroke-only icon solid and makes it read as a black square on
   a black bar - or vanish entirely. State both, and the size, here. */
.swh-cart .ico svg{width:20px;height:20px;display:block;fill:none!important;stroke:currentColor!important}
.swh-cart .count{position:absolute;top:-8px;right:-11px;background:var(--h-red);color:#fff;
  font-family:var(--h-mono);font-size:10px;font-weight:700;min-width:19px;height:19px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;padding:0 4px;border:2px solid var(--h-ink)}

/* ---- category strip ---- */
.swh-strip{background:var(--h-red)}
.swh-strip .swh-wrap{gap:0;flex-wrap:wrap;justify-content:center;align-items:stretch}
.swh-strip a,
.swh-strip-menu > li > a{display:inline-flex;align-items:center;justify-content:center;text-align:center;
  color:#fff;font-size:13.5px;font-weight:600;line-height:1.15;padding:13px 18px;position:relative}
.swh-strip-menu{display:flex;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.swh-strip a + a::before,
.swh-strip-menu > li + li > a::before{content:'';position:absolute;left:0;top:11px;bottom:11px;width:1px;background:rgba(255,255,255,.2)}

/* ---- mobile drawer ---- */
.swh-drawer{position:fixed;top:0;right:0;bottom:0;width:min(86vw,340px);background:#171717;color:#fff;
  z-index:400;transform:translateX(100%);transition:transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y:auto;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column}
.swh-drawer[hidden]{display:flex}          /* animate rather than vanish */
.swh-drawer.is-open{transform:translateX(0)}
.swh-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:18px;
  border-bottom:1px solid rgba(255,255,255,.1);font-family:var(--h-mono);font-size:11px;
  letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.55)}
.swh-close{font-size:26px;line-height:1;color:#fff;width:40px;height:40px}
.swh-drawer-body{padding:8px}
.swh-dmenu{list-style:none;margin:0;padding:0}
.swh-dmenu li{margin:0}
.swh-dmenu a{display:block;padding:14px 16px;font-family:var(--h-display);font-size:16px;color:#fff;
  border-bottom:1px solid rgba(255,255,255,.07)}
.swh-dmenu .sub-menu{list-style:none;margin:0;padding:0 0 0 14px}
.swh-dmenu .sub-menu a{font-family:var(--h-sans);font-size:14px;font-weight:500;color:rgba(255,255,255,.75)}

.swh-dtools{display:flex;flex-direction:column;margin-top:14px;padding-top:10px;border-top:1px solid rgba(255,255,255,.1)}
.swh-dtools a{padding:12px 16px;font-weight:600;color:#FF6B6B}
.swh-dcats{margin-top:14px;padding:12px 16px 20px;border-top:1px solid rgba(255,255,255,.1)}
.swh-dcats .k{display:block;font-family:var(--h-mono);font-size:10px;letter-spacing:.14em;
  text-transform:uppercase;color:rgba(255,255,255,.45);margin-bottom:8px}
.swh-dcats a{display:block;padding:9px 0;font-size:14.5px;color:rgba(255,255,255,.85)}

.swh-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:390;opacity:0;
  transition:opacity .24s;pointer-events:none}
.swh-backdrop[hidden]{display:block}
.swh-backdrop.is-open{opacity:1;pointer-events:auto}
body.swh-locked{overflow:hidden}

/* ---- responsive ---- */
@media (max-width:1180px){
  .swh-wrap{padding:0 20px;gap:16px}
  .swh-staff{gap:16px}
  .swh-staff a{font-size:14px}
  .swh-menu{gap:22px}
  .swh-menu > li > a{font-size:16px}
}
@media (max-width:1024px){
  .swh-nav,.swh-strip{display:none}
  .swh-burger{display:flex}
  .swh-staff{display:none}
  /* The cart moves into the top row once the nav row is gone - it is
     the one control that must never be more than a tap away. */
  .swh-top .swh-cart{display:flex;color:var(--h-ink)}
  .swh-top .swh-cart .count{border-color:var(--h-cream)}
}
@media (max-width:1180px){
  /* 300px of logo plus a search field does not fit once the viewport
     tightens - let it scale down rather than squeezing the search. */
  .swh-logo img,.swh-logo-img{width:240px}
}
@media (max-width:860px){
  .swh-top .swh-wrap{flex-wrap:wrap;padding-top:14px;padding-bottom:14px;gap:12px}
  .swh-search{order:3;flex-basis:100%;max-width:none}
  .swh-logo{font-size:15px}
  .swh-logo img,.swh-logo-img{width:200px}
}

@media (hover:hover) and (pointer:fine){
  .swh-staff a:hover{color:var(--h-red-deep)}
  .swh-menu > li > a:hover{color:#fff}
  .swh-strip a:hover,.swh-strip-menu > li > a:hover{background:rgba(0,0,0,.14)}
  .swh-search button:hover{background:var(--h-red-deep)}
  .swh-cart:hover .amt{color:var(--h-red)}
}
@media (prefers-reduced-motion:reduce){
  .swh-drawer,.swh-backdrop{transition:none}
}
