/* StonerBase sitewide chrome — unified menu, no broken logo */

:root {
  --sb-violet: #8224e3;
  --sb-violet-deep: #5c14a8;
  --sb-ink: #0c0b10;
  --sb-muted: #6e6878;
  --sb-display: "Syne", sans-serif;
  --sb-sans: "Figtree", sans-serif;
}

/* Kill default Shoptimizer header everywhere */
.sb-chrome #masthead.site-header,
.sb-chrome .col-full-nav,
.sb-chrome .top-bar,
.sb-chrome .header-widget-region,
.sb-chrome .menu-overlay,
.sb-chrome .mobile-overlay {
  display: none !important;
}

/* Kill blog/shop sidebar */
.sb-chrome #secondary,
.sb-chrome .widget-area,
.sb-chrome aside.sidebar {
  display: none !important;
}

.sb-chrome.woocommerce .content-area,
.sb-chrome.woocommerce-page .content-area,
.sb-chrome.archive .content-area,
.sb-chrome .site-content .col-full {
  width: 100% !important;
  max-width: min(1180px, calc(100% - 2.5rem)) !important;
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.sb-chrome.archive .site-content > .col-full,
.sb-chrome.woocommerce-page .site-content > .col-full {
  display: block !important;
}

/* ——— Unified topnav ——— */
.sb-topnav {
  position: relative;
  z-index: 100;
  width: 100%;
  font-family: var(--sb-sans);
  background: var(--sb-ink);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sb-topnav--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(12, 11, 16, 0.82) 0%, rgba(12, 11, 16, 0.35) 70%, transparent 100%);
  border-bottom: 0;
}

.sb-topnav--solid {
  position: sticky;
  top: 0;
  width: 100%;
}

.sb-topnav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0.95rem 0;
}

.sb-topnav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff !important;
  text-decoration: none !important;
  min-width: 0;
}

.sb-topnav__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  flex: 0 0 auto;
}

.sb-topnav__mark {
  display: none !important;
}

.sb-topnav__name {
  font-family: var(--sb-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.sb-topnav__nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}

.sb-topnav__nav a {
  color: rgba(255, 255, 255, 0.78) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.sb-topnav__nav a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

.sb-topnav__nav a[aria-current="page"] {
  color: #fff !important;
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--sb-violet);
}

.sb-topnav__cart {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  transition: border-color 0.2s ease, background 0.2s ease;
  flex: 0 0 auto;
}

.sb-topnav__cart:hover {
  border-color: var(--sb-violet);
  background: rgba(130, 36, 227, 0.22);
}

.sb-topnav__cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: 3px;
  background: var(--sb-violet);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Shop archive polish */
.sb-chrome.archive .woocommerce-products-header__title,
.sb-chrome.tax-product_cat .woocommerce-products-header__title {
  font-family: var(--sb-display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: var(--sb-ink);
}

.sb-chrome .term-description,
.sb-chrome .taxonomy-description,
.sb-chrome .shoptimizer-category-banner,
.sb-chrome .woocommerce-products-header {
  font-family: var(--sb-sans);
}

.sb-chrome .term-description,
.sb-chrome .taxonomy-description {
  background: #f4f2f7 !important;
  border: 0 !important;
  border-radius: 6px;
  padding: 1rem 1.15rem !important;
  color: var(--sb-muted);
}

.sb-chrome ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 1.25rem !important;
}

.sb-chrome ul.products::before,
.sb-chrome ul.products::after {
  display: none !important;
  content: none !important;
}

.sb-chrome ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}

.sb-chrome ul.products li.product img {
  background: #0c0b10;
  border-radius: 2px;
}

.sb-chrome .woocommerce-breadcrumb {
  font-family: var(--sb-sans);
  font-size: 0.88rem;
  color: var(--sb-muted);
}

@media (max-width: 980px) {
  .sb-chrome ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .sb-topnav__inner {
    width: calc(100% - 1.5rem);
    gap: 0.5rem;
    padding: 0.8rem 0;
  }

  .sb-topnav__name {
    font-size: 1.05rem;
  }

  .sb-topnav__nav a {
    padding: 0.4rem 0.55rem;
    font-size: 0.88rem;
  }

  .sb-topnav__cart-label {
    display: none;
  }

  .sb-chrome ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.1rem 0.8rem !important;
  }
}

body.sb-chrome #page {
  max-width: none !important;
  width: 100% !important;
}
