body.singlebuck-shop-ui-active .site-main,
body.singlebuck-shop-ui-active .ct-container,
body.singlebuck-shop-ui-active .woocommerce {
  --sb-ink: #111827;
  --sb-muted: #667085;
  --sb-line: rgba(17, 24, 39, .10);
  --sb-soft: #f6f7f9;
  --sb-card: #ffffff;
  --sb-yellow: #ffcc00;
  --sb-yellow-dark: #e6b800;
  --sb-yellow-soft: rgba(255, 204, 0, .18);
  --sb-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  --sb-shadow-small: 0 10px 26px rgba(15, 23, 42, .06);
}

body.singlebuck-shop-ui-active .woocommerce .woocommerce-result-count {
  color: var(--sb-muted);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
}

.sb-shop-marketplace-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr);
  gap: 24px;
  align-items: center;
  margin: 0 0 22px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--sb-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 204, 0, .28), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 46%, #eef2f7 100%);
  box-shadow: var(--sb-shadow);
  overflow: hidden;
  position: relative;
}

.sb-shop-marketplace-hero::after {
  content: '';
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(255, 204, 0, .16);
  pointer-events: none;
}

.sb-shop-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #475467;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sb-shop-eyebrow::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--sb-yellow);
  box-shadow: 0 0 0 5px rgba(255, 204, 0, .20);
}

.sb-shop-hero-copy h2 {
  margin: 0 0 12px;
  max-width: 780px;
  color: var(--sb-ink);
  font-size: clamp(30px, 4vw, 54px);
  line-height: .98;
  letter-spacing: -.05em;
}

.sb-shop-hero-copy p {
  margin: 0;
  max-width: 680px;
  color: var(--sb-muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
}

.sb-shop-hero-panel {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.sb-shop-search-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(17,24,39,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  box-shadow: var(--sb-shadow-small);
}

.sb-shop-search-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--sb-yellow);
  color: #111827;
  font-size: 19px;
  font-weight: 900;
}

.sb-shop-search-form input[type="search"] {
  width: 100%;
  min-width: 0;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--sb-ink);
  font-size: 14px;
  font-weight: 700;
}

.sb-shop-search-form button {
  border: 0 !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  background: var(--sb-yellow) !important;
  color: #111827 !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 204, 0, .25);
}

.sb-shop-search-form button:hover,
.sb-shop-search-form button:focus-visible {
  background: var(--sb-yellow-dark) !important;
  color: #111827 !important;
  transform: translateY(-1px);
}

.sb-shop-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sb-shop-trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.66);
  color: #475467;
  font-size: 12px;
  font-weight: 900;
}

.sb-shop-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 8px;
  border: 1px solid var(--sb-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15,23,42,.045);
  overflow-x: auto;
  scrollbar-width: thin;
}

.sb-shop-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none !important;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.sb-shop-filter-pill:hover,
.sb-shop-filter-pill:focus-visible,
.sb-shop-filter-pill.is-active {
  background: var(--sb-yellow);
  color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 204, 0, .24);
}

.sb-shop-filter-pill span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255,204,0,.22);
  color: inherit;
  font-size: 11px;
}

.sb-shop-filter-pill.is-active span,
.sb-shop-filter-pill:hover span,
.sb-shop-filter-pill:focus-visible span {
  background: rgba(17,24,39,.10);
}

.sb-shop-category-section {
  margin: 0 0 30px;
}

.sb-shop-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 14px;
}

.sb-shop-section-head h3 {
  margin: 0;
  max-width: 640px;
  color: var(--sb-ink);
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.sb-shop-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sb-shop-category-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--sb-line);
  border-radius: 22px;
  background: var(--sb-card);
  color: inherit;
  text-decoration: none !important;
  box-shadow: var(--sb-shadow-small);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.sb-shop-category-card:hover,
.sb-shop-category-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255,204,0,.72);
  box-shadow: var(--sb-shadow);
}

.sb-shop-category-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: var(--sb-yellow);
  color: #111827;
  font-size: 19px;
  font-weight: 900;
}

.sb-shop-category-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sb-shop-category-name {
  color: var(--sb-ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.1;
}

.sb-shop-category-desc {
  color: var(--sb-muted);
  font-size: 12px;
  line-height: 1.35;
}

.sb-shop-category-count {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--sb-yellow-soft);
  color: #111827;
  font-size: 12px;
  font-weight: 950;
}

body.singlebuck-shop-ui-active ul.products {
  gap: 24px !important;
}

body.singlebuck-shop-ui-active ul.products li.product {
  padding: 16px 16px 18px !important;
  border: 1px solid var(--sb-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--sb-shadow-small);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.singlebuck-shop-ui-active ul.products li.product:hover {
  transform: translateY(-4px);
  border-color: rgba(255,204,0,.72);
  box-shadow: var(--sb-shadow);
}

body.singlebuck-shop-ui-active ul.products li.product img {
  border-radius: 18px;
  background: #f7f7f7;
}

body.singlebuck-shop-ui-active ul.products li.product .woocommerce-loop-product__title {
  padding-top: 14px !important;
  color: var(--sb-ink);
  font-size: 17px !important;
  font-weight: 900;
  line-height: 1.2;
}

body.singlebuck-shop-ui-active ul.products li.product .price {
  color: var(--sb-ink) !important;
  font-weight: 900 !important;
}

body.singlebuck-shop-ui-active ul.products li.product .button,
body.singlebuck-shop-ui-active .woocommerce a.button,
body.singlebuck-shop-ui-active .woocommerce button.button {
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--sb-yellow) !important;
  color: #111827 !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 22px rgba(255, 204, 0, .22);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

body.singlebuck-shop-ui-active ul.products li.product .button:hover,
body.singlebuck-shop-ui-active .woocommerce a.button:hover,
body.singlebuck-shop-ui-active .woocommerce button.button:hover {
  background: var(--sb-yellow-dark) !important;
  color: #111827 !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255, 204, 0, .30);
}

body.singlebuck-shop-ui-active .woocommerce-ordering select {
  border-radius: 999px !important;
  border-color: var(--sb-line) !important;
  background-color: #fff !important;
}


body.singlebuck-shop-ui-active .woocommerce span.onsale {
  background: var(--sb-yellow) !important;
  color: #111827 !important;
  font-weight: 950 !important;
}

body.singlebuck-shop-ui-active .woocommerce nav.woocommerce-pagination ul {
  border: 0 !important;
}

body.singlebuck-shop-ui-active .woocommerce nav.woocommerce-pagination ul li {
  border: 0 !important;
  margin: 0 4px !important;
}

body.singlebuck-shop-ui-active .woocommerce nav.woocommerce-pagination ul li a,
body.singlebuck-shop-ui-active .woocommerce nav.woocommerce-pagination ul li span {
  border-radius: 999px !important;
  background: #fff !important;
  color: #111827 !important;
  border: 1px solid var(--sb-line) !important;
  font-weight: 900 !important;
}

body.singlebuck-shop-ui-active .woocommerce nav.woocommerce-pagination ul li span.current,
body.singlebuck-shop-ui-active .woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--sb-yellow) !important;
  border-color: var(--sb-yellow) !important;
  color: #111827 !important;
}

@media (max-width: 1024px) {
  .sb-shop-marketplace-hero {
    grid-template-columns: 1fr;
  }

  .sb-shop-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sb-shop-marketplace-hero {
    padding: 22px;
    border-radius: 24px;
  }

  .sb-shop-search-form {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 24px;
  }

  .sb-shop-search-form button {
    grid-column: 1 / -1;
    width: 100%;
    padding: 12px 16px !important;
  }

  .sb-shop-section-head {
    display: block;
  }

  .sb-shop-category-grid {
    grid-template-columns: 1fr;
  }

  .sb-shop-category-card {
    min-height: auto;
  }

  body.singlebuck-shop-ui-active ul.products li.product {
    border-radius: 20px;
  }
}

/* Mobile category picker */
.sb-shop-mobile-category-control {
  display: none;
  margin: 0 0 16px;
}

.sb-shop-category-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--sb-line) !important;
  border-radius: 18px !important;
  padding: 13px 14px !important;
  background: #fff !important;
  color: var(--sb-ink) !important;
  box-shadow: var(--sb-shadow-small);
  text-align: left;
}

.sb-shop-category-toggle span {
  color: var(--sb-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sb-shop-category-toggle strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--sb-yellow);
  color: #111827;
  font-size: 13px;
  font-weight: 950;
}

.sb-shop-category-toggle strong::after {
  content: '▾';
  font-size: 12px;
  line-height: 1;
}

.sb-shop-category-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.sb-shop-category-modal.is-open {
  display: block;
}

.sb-shop-category-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,24,39,.48);
  backdrop-filter: blur(3px);
}

.sb-shop-category-sheet {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  max-height: min(78vh, 680px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
  padding: 18px;
}

.sb-shop-category-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.sb-shop-category-sheet-head h3 {
  margin: 0;
  color: var(--sb-ink);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.04em;
}

.sb-shop-category-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--sb-yellow) !important;
  color: #111827 !important;
  font-size: 26px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

.sb-shop-category-list {
  display: grid;
  gap: 10px;
}

.sb-shop-category-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--sb-line);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none !important;
}

.sb-shop-category-option.is-active,
.sb-shop-category-option:hover,
.sb-shop-category-option:focus-visible {
  border-color: rgba(255,204,0,.82);
  background: linear-gradient(135deg, #fff 0%, rgba(255,204,0,.16) 100%);
}

.sb-shop-category-option-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--sb-yellow);
  color: #111827;
  font-weight: 950;
}

.sb-shop-category-option-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sb-shop-category-option-copy strong {
  color: var(--sb-ink);
  font-size: 15px;
  line-height: 1.1;
  font-weight: 950;
}

.sb-shop-category-option-copy em {
  color: var(--sb-muted);
  font-size: 12px;
  line-height: 1.25;
  font-style: normal;
}

.sb-shop-category-option-count {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--sb-yellow-soft);
  color: #111827;
  font-size: 12px;
  font-weight: 950;
}

@media (max-width: 640px) {
  .sb-shop-mobile-category-control {
    display: block;
  }

  .sb-shop-filter-bar {
    display: none !important;
  }

  .sb-shop-marketplace-hero {
    margin-bottom: 16px;
  }

  .sb-shop-category-section {
    margin-top: 2px;
  }
}
