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;
}

/* Full-bleed marketplace hero */
.sb-shop-marketplace-hero {
  width: 100vw;
  max-width: none;
  margin: -52px 0 28px calc(50% - 50vw);
  padding: 0;
  border-top: 1px solid var(--sb-line);
  border-bottom: 1px solid var(--sb-line);
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 204, 0, .34), transparent 26%),
    radial-gradient(circle at 72% 100%, rgba(255, 204, 0, .15), transparent 26%),
    linear-gradient(120deg, #ffffff 0%, #f8fafc 54%, #eef2f7 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .055);
  overflow: hidden;
  position: relative;
}

.sb-shop-marketplace-hero::after {
  content: '';
  position: absolute;
  right: -110px;
  bottom: -185px;
  width: 410px;
  height: 410px;
  border-radius: 999px;
  background: rgba(255, 204, 0, .15);
  pointer-events: none;
}

.sb-shop-hero-inner {
  width: min(1480px, calc(100% - 56px));
  margin: 0 auto;
  padding: clamp(22px, 3vw, 46px) 0 clamp(30px, 3.8vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(480px, .95fr);
  gap: clamp(34px, 5vw, 84px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.sb-shop-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  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 15px;
  max-width: 760px;
  color: var(--sb-ink);
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: .98;
  letter-spacing: -.055em;
}

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

.sb-shop-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

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

.sb-shop-hero-points span::before {
  content: '✓';
  color: #111827;
  font-weight: 950;
}

.sb-shop-hero-panel {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid rgba(17,24,39,.09);
  border-radius: 28px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 54px rgba(15,23,42,.10);
}

.sb-shop-search-heading {
  display: grid;
  gap: 3px;
}

.sb-shop-search-heading span {
  color: var(--sb-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.sb-shop-search-heading strong {
  color: var(--sb-ink);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.sb-shop-search-form {
  display: grid;
  grid-template-columns: minmax(145px, .72fr) minmax(210px, 1.5fr) auto;
  align-items: stretch;
  gap: 10px;
}

.sb-shop-search-form select,
.sb-shop-search-input-wrap {
  min-width: 0;
  border: 1px solid rgba(17,24,39,.11) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.sb-shop-search-form select {
  width: 100%;
  min-height: 52px;
  padding: 0 38px 0 14px !important;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.sb-shop-search-input-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
}

.sb-shop-search-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 100%;
  color: #344054;
  font-size: 20px;
  font-weight: 900;
}

.sb-shop-search-form input[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 14px 0 0 !important;
  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 {
  min-height: 52px;
  border: 0 !important;
  border-radius: 16px !important;
  padding: 0 20px !important;
  background: var(--sb-yellow) !important;
  color: #111827 !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 204, 0, .25);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.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);
  box-shadow: 0 14px 26px rgba(255,204,0,.30);
}

.sb-shop-quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sb-shop-quick-label {
  color: var(--sb-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-right: 2px;
}

.sb-shop-quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 999px;
  background: #fff;
  color: #344054 !important;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
}

.sb-shop-quick-links a:hover,
.sb-shop-quick-links a:focus-visible {
  border-color: rgba(255,204,0,.8);
  background: var(--sb-yellow-soft);
  color: #111827 !important;
}

/* Desktop category rail */
.sb-shop-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 7px;
  border: 1px solid var(--sb-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15,23,42,.045);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(17,24,39,.18) transparent;
}

.sb-shop-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  color: #344054;
  font-size: 12px;
  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: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,204,0,.22);
  color: inherit;
  font-size: 10px;
}

.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);
}

/* Category cards */
.sb-shop-category-section {
  margin: 0 0 34px;
}

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

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

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

.sb-shop-category-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 11px;
  min-height: 96px;
  padding: 15px;
  border: 1px solid var(--sb-line);
  border-radius: 20px;
  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;
  position: relative;
}

.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 {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--sb-yellow);
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

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

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

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

.sb-shop-category-count {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--sb-yellow-soft);
  color: #111827;
  font-size: 11px;
  font-weight: 950;
}

/* WooCommerce product cards */
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;
}

/* 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;
}

body.sb-shop-category-modal-open { overflow: hidden; }

@media (max-width: 1280px) {
  .sb-shop-hero-inner {
    width: min(1180px, calc(100% - 44px));
    grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr);
    gap: 38px;
  }

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

@media (max-width: 1024px) {
  .sb-shop-marketplace-hero { margin-top: -40px; }

  .sb-shop-hero-inner {
    width: min(920px, calc(100% - 36px));
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .sb-shop-hero-copy h2 { max-width: 860px; }
  .sb-shop-hero-panel { max-width: none; }

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

@media (max-width: 780px) {
  .sb-shop-search-form {
    grid-template-columns: 1fr 1.65fr;
  }

  .sb-shop-search-form button {
    grid-column: 1 / -1;
    min-height: 48px;
  }

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

@media (max-width: 640px) {
  .sb-shop-marketplace-hero {
    margin-top: -28px;
    margin-bottom: 18px;
  }

  .sb-shop-hero-inner {
    width: calc(100% - 28px);
    padding: 28px 0;
    gap: 22px;
  }

  .sb-shop-hero-copy h2 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .sb-shop-hero-copy p {
    font-size: 15px;
    line-height: 1.55;
  }

  .sb-shop-hero-points {
    margin-top: 16px;
    gap: 7px;
  }

  .sb-shop-hero-points span {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .sb-shop-hero-panel {
    padding: 17px;
    border-radius: 22px;
  }

  .sb-shop-search-form {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .sb-shop-search-form select,
  .sb-shop-search-input-wrap,
  .sb-shop-search-form button {
    width: 100%;
    min-height: 50px;
    border-radius: 14px !important;
  }

  .sb-shop-search-form button { grid-column: auto; }

  .sb-shop-quick-links {
    gap: 6px;
  }

  .sb-shop-quick-label {
    width: 100%;
    margin-bottom: 2px;
  }

  .sb-shop-mobile-category-control { display: block; }
  .sb-shop-filter-bar { display: none !important; }

  .sb-shop-section-head { display: block; }
  .sb-shop-section-head .sb-shop-eyebrow { margin-bottom: 9px; }

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

  .sb-shop-category-card {
    min-height: 82px;
    border-radius: 18px;
  }

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

@media (max-width: 380px) {
  .sb-shop-hero-inner { width: calc(100% - 20px); }
  .sb-shop-hero-panel { padding: 14px; }
  .sb-shop-hero-points span { width: 100%; justify-content: center; }
}
