/* FBS Product Cleanup 1.1 — clean, minimal WooCommerce catalog + product design. */
body.fbs-product-cleanup {
  font-family: 'Bricolage Grotesque', sans-serif !important;
  --wp--style--global--content-size: var(--fbs-pc-max);
  --wp--style--global--wide-size: var(--fbs-pc-max);
  color: #111827;
  --fbs-blue: var(--fbs-pc-accent);
  --fbs-red: #ff1717;
}

body.fbs-product-cleanup .wp-site-blocks > main,
body.fbs-product-cleanup .wp-site-blocks > .wp-block-group,
body.fbs-product-cleanup main.wp-block-group {
  max-width: var(--fbs-pc-max);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- SHOP / PRODUCT ARCHIVE HEADER ---------- */
body.fbs-product-cleanup .woocommerce-products-header,
body.fbs-product-cleanup .wp-block-woocommerce-product-results-count,
body.fbs-product-cleanup .wc-block-product-results-count,
body.fbs-product-cleanup .wp-block-woocommerce-catalog-sorting,
body.fbs-product-cleanup .wc-block-catalog-sorting {
  font-family: 'Bricolage Grotesque', sans-serif !important;
}

body.fbs-product-cleanup .woocommerce-breadcrumb,
body.fbs-product-cleanup .wp-block-woocommerce-breadcrumbs,
body.fbs-product-cleanup .wc-block-breadcrumbs {
  margin: 0 0 14px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #6b7280 !important;
}

body.fbs-product-cleanup .woocommerce-breadcrumb a,
body.fbs-product-cleanup .wp-block-woocommerce-breadcrumbs a,
body.fbs-product-cleanup .wc-block-breadcrumbs a {
  color: #111827 !important;
  text-decoration: none !important;
}

body.fbs-product-cleanup .woocommerce-products-header__title,
body.fbs-product-cleanup .wp-block-query-title,
body.fbs-product-cleanup h1.wp-block-post-title {
  margin: 0 0 8px !important;
  font-size: clamp(38px, 4vw, 56px) !important;
  line-height: 1 !important;
  letter-spacing: -.045em !important;
  font-weight: 750 !important;
  color: #111827 !important;
}

/* Results count: JS turns the verbose WooCommerce sentence into "57 products". */
body.fbs-product-cleanup .wc-block-product-results-count,
body.fbs-product-cleanup .wp-block-woocommerce-product-results-count,
body.fbs-product-cleanup .woocommerce-result-count {
  margin: 0 !important;
  color: #6b7280 !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  font-weight: 450 !important;
}

/* Put count + sort into one quiet toolbar on block/classic shops. */
body.fbs-product-cleanup .wc-block-catalog-sorting,
body.fbs-product-cleanup .wp-block-woocommerce-catalog-sorting {
  margin: 18px 0 26px !important;
}

body.fbs-product-cleanup .woocommerce-ordering {
  margin: 18px 0 26px !important;
  float: none !important;
}

body.fbs-product-cleanup .wc-block-catalog-sorting select,
body.fbs-product-cleanup .wp-block-woocommerce-catalog-sorting select,
body.fbs-product-cleanup .woocommerce-ordering select {
  min-height: 48px !important;
  min-width: 280px;
  padding: 0 42px 0 16px !important;
  border: 1px solid rgba(17,24,39,.12) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #111827 !important;
  box-shadow: 0 2px 10px rgba(15,23,42,.035) !important;
  font-family: 'Bricolage Grotesque', sans-serif !important;
  font-size: 15px !important;
  font-weight: 550 !important;
  outline: none !important;
}

body.fbs-product-cleanup .wc-block-catalog-sorting select:focus,
body.fbs-product-cleanup .wp-block-woocommerce-catalog-sorting select:focus,
body.fbs-product-cleanup .woocommerce-ordering select:focus {
  border-color: rgba(6,147,227,.45) !important;
  box-shadow: 0 0 0 3px rgba(6,147,227,.10) !important;
}

/* Remove unnecessary sorting helper labels/text in block markup. */
body.fbs-product-cleanup .wc-block-catalog-sorting .wc-block-catalog-sorting__label,
body.fbs-product-cleanup .wp-block-woocommerce-catalog-sorting .wc-block-catalog-sorting__label {
  color: #6b7280 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* ---------- PRODUCT GRID ---------- */
body.fbs-product-cleanup ul.wc-block-grid__products,
body.fbs-product-cleanup .wc-block-product-template,
body.fbs-product-cleanup ul.products {
  gap: 22px !important;
}

body.fbs-product-cleanup .wc-block-product-template,
body.fbs-product-cleanup ul.products {
  margin-top: 0 !important;
}

body.fbs-product-cleanup .wc-block-product,
body.fbs-product-cleanup ul.products li.product {
  position: relative;
  margin: 0 !important;
  padding: 0 0 14px !important;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(15,23,42,.07);
  border-radius: var(--fbs-pc-radius);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(15,23,42,.045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.fbs-product-cleanup .wc-block-product:hover,
body.fbs-product-cleanup ul.products li.product:hover {
  transform: translateY(-2px);
  border-color: rgba(6,147,227,.22);
  box-shadow: 0 10px 28px rgba(15,23,42,.075);
}

/* Rounded product photos — not square. */
body.fbs-product-cleanup .wc-block-product img,
body.fbs-product-cleanup ul.products li.product img {
  display: block;
  width: calc(100% - 18px) !important;
  max-width: none !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 9px !important;
  padding: 0 !important;
  background: #f5f6f8;
  border-radius: var(--fbs-pc-image-radius) !important;
  box-sizing: border-box;
}

body.fbs-product-cleanup .wc-block-product .wc-block-components-product-image,
body.fbs-product-cleanup .wc-block-product .wc-block-components-product-image a,
body.fbs-product-cleanup ul.products li.product > a.woocommerce-LoopProduct-link {
  display: block;
  border-radius: var(--fbs-pc-image-radius) !important;
}

body.fbs-product-cleanup .wc-block-product .wp-block-post-title,
body.fbs-product-cleanup .wc-block-components-product-name,
body.fbs-product-cleanup ul.products li.product .woocommerce-loop-product__title {
  display: block;
  padding: 9px 14px 2px !important;
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  letter-spacing: -.018em !important;
  color: #111827 !important;
}

body.fbs-product-cleanup .wc-block-product .wc-block-components-product-price,
body.fbs-product-cleanup .wc-block-product .price,
body.fbs-product-cleanup ul.products li.product .price {
  display: block;
  padding: 0 14px 11px !important;
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  color: #111827 !important;
}

body.fbs-product-cleanup .price del,
body.fbs-product-cleanup ul.products li.product .price del {
  color: #8b919a !important;
  opacity: 1 !important;
  font-weight: 500 !important;
  margin-left: 5px !important;
}

body.fbs-product-cleanup .price ins {
  text-decoration: none !important;
}

/* Bright red sale badge. */
body.fbs-product-cleanup .wc-block-components-product-sale-badge,
body.fbs-product-cleanup .wc-block-product .wc-block-components-sale-badge,
body.fbs-product-cleanup ul.products li.product .onsale {
  top: 18px !important;
  left: 18px !important;
  right: auto !important;
  margin: 0 !important;
  padding: 8px 15px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #ff1717 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(255,23,23,.16);
}

/* Bright blue buttons. */
body.fbs-product-cleanup .wc-block-product .wp-block-button,
body.fbs-product-cleanup ul.products li.product .button {
  margin: 0 14px !important;
}

body.fbs-product-cleanup .wc-block-product .wp-block-button__link,
body.fbs-product-cleanup ul.products li.product .button {
  width: 100%;
  box-sizing: border-box;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 12px 14px !important;
  background: #0693E3 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  text-align: center;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.fbs-product-cleanup .wc-block-product .wp-block-button__link:hover,
body.fbs-product-cleanup ul.products li.product .button:hover {
  background: #057fc4 !important;
  color: #fff !important;
}

/* ---------- PAGINATION ---------- */
body.fbs-product-cleanup .woocommerce-pagination,
body.fbs-product-cleanup .wc-block-pagination,
body.fbs-product-cleanup .wp-block-query-pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 38px 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: center !important;
}

body.fbs-product-cleanup .woocommerce-pagination ul,
body.fbs-product-cleanup .wc-block-pagination .wc-block-pagination__list,
body.fbs-product-cleanup .wp-block-query-pagination .wp-block-query-pagination-numbers {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  list-style: none !important;
}

body.fbs-product-cleanup .woocommerce-pagination li,
body.fbs-product-cleanup .wc-block-pagination a,
body.fbs-product-cleanup .wc-block-pagination span,
body.fbs-product-cleanup .wp-block-query-pagination a,
body.fbs-product-cleanup .wp-block-query-pagination span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 13px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(15,23,42,.10) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  text-decoration: none !important;
  line-height: 1 !important;
  box-shadow: 0 2px 8px rgba(15,23,42,.035) !important;
}

body.fbs-product-cleanup .woocommerce-pagination .current,
body.fbs-product-cleanup .wc-block-pagination .current,
body.fbs-product-cleanup .wc-block-pagination .page-numbers.current,
body.fbs-product-cleanup .wp-block-query-pagination .current {
  background: #0693E3 !important;
  border-color: #0693E3 !important;
  color: #fff !important;
}

body.fbs-product-cleanup .woocommerce-pagination a:hover,
body.fbs-product-cleanup .wc-block-pagination a:hover,
body.fbs-product-cleanup .wp-block-query-pagination a:hover {
  border-color: rgba(6,147,227,.35) !important;
  color: #0693E3 !important;
}

body.fbs-product-cleanup .woocommerce-pagination .prev,
body.fbs-product-cleanup .woocommerce-pagination .next,
body.fbs-product-cleanup .wc-block-pagination__page-numbers .prev,
body.fbs-product-cleanup .wc-block-pagination__page-numbers .next,
body.fbs-product-cleanup .wp-block-query-pagination-previous,
body.fbs-product-cleanup .wp-block-query-pagination-next {
  min-width: auto !important;
  padding: 0 18px !important;
}

/* ---------- SINGLE PRODUCT ---------- */
body.single-product.fbs-product-cleanup .wp-block-woocommerce-single-product,
body.single-product.fbs-product-cleanup .woocommerce div.product {
  max-width: var(--fbs-pc-max);
  margin-left: auto;
  margin-right: auto;
}

body.single-product.fbs-product-cleanup .woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
  gap: 54px;
  align-items: start;
}

body.single-product.fbs-product-cleanup .woocommerce div.product > .woocommerce-product-gallery,
body.single-product.fbs-product-cleanup .woocommerce div.product > .summary {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}

body.single-product.fbs-product-cleanup .woocommerce div.product .woocommerce-product-gallery {
  position: sticky;
  top: 28px;
}

body.single-product.fbs-product-cleanup .woocommerce div.product .woocommerce-product-gallery__wrapper,
body.single-product.fbs-product-cleanup .woocommerce div.product .woocommerce-product-gallery__image {
  margin: 0 !important;
}

body.single-product.fbs-product-cleanup .woocommerce div.product .woocommerce-product-gallery__image img {
  width: 100%;
  border-radius: var(--fbs-pc-image-radius) !important;
  background: #f5f6f8;
}

body.single-product.fbs-product-cleanup .woocommerce div.product .summary {
  padding: 8px 0 0;
}

body.single-product.fbs-product-cleanup .product_title {
  margin: 0 0 10px !important;
  color: #111827 !important;
  font-size: clamp(30px, 3vw, 48px) !important;
  line-height: 1.05 !important;
  letter-spacing: -.035em !important;
  font-weight: 750 !important;
}

body.single-product.fbs-product-cleanup .woocommerce-product-rating {
  margin: 0 0 14px !important;
  font-size: 13px;
}

body.single-product.fbs-product-cleanup .summary > .price {
  margin: 0 0 18px !important;
  color: #111827 !important;
  font-size: 24px !important;
  line-height: 1.25;
  font-weight: 750 !important;
}

body.single-product.fbs-product-cleanup .summary > .price del {
  opacity: .5;
  font-size: .72em;
  font-weight: 500;
  margin-right: 6px;
}

body.single-product.fbs-product-cleanup .summary > .price ins {
  text-decoration: none;
}

body.single-product.fbs-product-cleanup .woocommerce-product-details__short-description,
body.single-product.fbs-product-cleanup .woocommerce div.product .summary > .woocommerce-product-details__short-description {
  margin: 0 0 24px !important;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.75;
}

body.single-product.fbs-product-cleanup .summary form.cart {
  margin: 22px 0 !important;
  padding: 20px 0 0;
  border-top: 1px solid rgba(15,23,42,.09);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Clean circular quantity control */
body.single-product.fbs-product-cleanup .summary form.cart .quantity {
  margin: 0 !important;
}

body.single-product.fbs-product-cleanup .summary form.cart .quantity .qty {
  width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(15,23,42,.16) !important;
  background: #fff !important;
  color: #111827 !important;
  text-align: center !important;
  font-family: inherit !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(15,23,42,.06) !important;
  outline: none !important;
}

body.single-product.fbs-product-cleanup .summary form.cart .quantity .qty:focus {
  border-color: #0693E3 !important;
  box-shadow: 0 0 0 3px rgba(6,147,227,.14) !important;
}

/* Simple, slightly rounded blue Add to cart button */
body.single-product.fbs-product-cleanup .summary form.cart .single_add_to_cart_button {
  min-height: 50px;
  border-radius: 14px !important;
  background: #0693E3 !important;
  color: #fff !important;
  font-weight: 750 !important;
  padding: 12px 26px !important;
  border: 0 !important;
  box-shadow: 0 5px 16px rgba(6,147,227,.18) !important;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

body.single-product.fbs-product-cleanup .summary form.cart .single_add_to_cart_button:hover {
  background: #057fc4 !important;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(6,147,227,.22) !important;
}

/* Hide the category line completely on single product pages. */
body.single-product.fbs-product-cleanup .product_meta .posted_in,
body.single-product.fbs-product-cleanup .product_meta .posted_in a,
body.single-product.fbs-product-cleanup .wp-block-woocommerce-product-meta .posted_in {
  display: none !important;
}

body.single-product.fbs-product-cleanup .product_meta {
  margin-top: 18px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(15,23,42,.08);
  color: #6b7280;
  font-size: 12px;
  line-height: 1.8;
}

body.single-product.fbs-product-cleanup .woocommerce-tabs {
  grid-column: 1 / -1;
  margin-top: 20px !important;
  padding-top: 28px;
  border-top: 1px solid rgba(15,23,42,.08);
}

body.single-product.fbs-product-cleanup .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 8px;
  padding: 0 !important;
  margin: 0 0 20px !important;
  border: 0 !important;
}

body.single-product.fbs-product-cleanup .woocommerce-tabs ul.tabs::before,
body.single-product.fbs-product-cleanup .woocommerce-tabs ul.tabs::after {
  display: none !important;
}

body.single-product.fbs-product-cleanup .woocommerce-tabs ul.tabs li {
  border: 0 !important;
  border-radius: 999px !important;
  background: #f4f6f8 !important;
  padding: 8px 14px !important;
  margin: 0 !important;
}

body.single-product.fbs-product-cleanup .woocommerce-tabs ul.tabs li.active {
  background: #111827 !important;
  color: #fff !important;
}

body.single-product.fbs-product-cleanup .woocommerce-tabs ul.tabs li a {
  color: inherit !important;
  font-size: 13px;
  font-weight: 650;
  padding: 0 !important;
}

body.single-product.fbs-product-cleanup .woocommerce-Tabs-panel {
  max-width: 820px;
  color: #374151;
  font-size: 15px;
  line-height: 1.8;
}

body.single-product.fbs-product-cleanup .woocommerce-Tabs-panel h2 {
  margin: 0 0 12px !important;
  color: #111827;
  font-size: 20px !important;
  letter-spacing: -.02em;
}

body.single-product.fbs-product-cleanup .related.products,
body.single-product.fbs-product-cleanup .upsells.products {
  grid-column: 1 / -1;
  margin-top: 50px !important;
  padding-top: 36px;
  border-top: 1px solid rgba(15,23,42,.08);
}

body.single-product.fbs-product-cleanup .related.products > h2,
body.single-product.fbs-product-cleanup .upsells.products > h2 {
  margin: 0 0 22px !important;
  font-size: 24px !important;
  letter-spacing: -.025em;
  color: #111827;
}

body.single-product.fbs-product-cleanup .wp-block-woocommerce-product-details,
body.single-product.fbs-product-cleanup .wp-block-woocommerce-product-meta {
  border-color: rgba(15,23,42,.08) !important;
}

@media (max-width: 900px) {
  body.single-product.fbs-product-cleanup .woocommerce div.product {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  body.single-product.fbs-product-cleanup .woocommerce div.product .woocommerce-product-gallery {
    position: static;
  }
  body.single-product.fbs-product-cleanup .woocommerce-tabs,
  body.single-product.fbs-product-cleanup .related.products,
  body.single-product.fbs-product-cleanup .upsells.products {
    grid-column: auto;
  }
  body.single-product.fbs-product-cleanup .product_title {
    font-size: 32px !important;
  }
}

@media (max-width: 600px) {
  body.fbs-product-cleanup .woocommerce-products-header__title,
  body.fbs-product-cleanup .wp-block-query-title,
  body.fbs-product-cleanup h1.wp-block-post-title {
    font-size: 38px !important;
  }

  body.fbs-product-cleanup .wc-block-catalog-sorting,
  body.fbs-product-cleanup .wp-block-woocommerce-catalog-sorting,
  body.fbs-product-cleanup .woocommerce-ordering {
    margin: 14px 0 20px !important;
  }

  body.fbs-product-cleanup .wc-block-catalog-sorting select,
  body.fbs-product-cleanup .wp-block-woocommerce-catalog-sorting select,
  body.fbs-product-cleanup .woocommerce-ordering select {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.fbs-product-cleanup ul.wc-block-grid__products,
  body.fbs-product-cleanup .wc-block-product-template,
  body.fbs-product-cleanup ul.products {
    gap: 12px !important;
  }

  body.fbs-product-cleanup .wc-block-product,
  body.fbs-product-cleanup ul.products li.product {
    border-radius: 13px;
    padding-bottom: 11px !important;
  }

  body.fbs-product-cleanup .wc-block-product img,
  body.fbs-product-cleanup ul.products li.product img {
    width: calc(100% - 12px) !important;
    margin: 6px !important;
    border-radius: 11px !important;
  }

  body.fbs-product-cleanup .wc-block-product .wp-block-post-title,
  body.fbs-product-cleanup .wc-block-components-product-name,
  body.fbs-product-cleanup ul.products li.product .woocommerce-loop-product__title {
    padding: 8px 9px 2px !important;
    font-size: 13px !important;
  }

  body.fbs-product-cleanup .wc-block-product .wc-block-components-product-price,
  body.fbs-product-cleanup .wc-block-product .price,
  body.fbs-product-cleanup ul.products li.product .price {
    padding: 0 9px 8px !important;
    font-size: 12px !important;
  }

  body.fbs-product-cleanup .wc-block-product .wp-block-button,
  body.fbs-product-cleanup ul.products li.product .button {
    margin: 0 9px !important;
  }

  body.fbs-product-cleanup .wc-block-product .wp-block-button__link,
  body.fbs-product-cleanup ul.products li.product .button {
    padding: 10px 8px !important;
    font-size: 12px !important;
  }

  body.fbs-product-cleanup .wc-block-components-product-sale-badge,
  body.fbs-product-cleanup .wc-block-product .wc-block-components-sale-badge,
  body.fbs-product-cleanup ul.products li.product .onsale {
    top: 12px !important;
    left: 12px !important;
    padding: 6px 10px !important;
    font-size: 10px !important;
  }

  body.fbs-product-cleanup .woocommerce-pagination,
  body.fbs-product-cleanup .wc-block-pagination,
  body.fbs-product-cleanup .wp-block-query-pagination {
    gap: 5px !important;
    margin-top: 28px !important;
    overflow-x: auto;
    justify-content: flex-start !important;
    scrollbar-width: none;
  }

  body.fbs-product-cleanup .woocommerce-pagination::-webkit-scrollbar,
  body.fbs-product-cleanup .wc-block-pagination::-webkit-scrollbar,
  body.fbs-product-cleanup .wp-block-query-pagination::-webkit-scrollbar {
    display: none;
  }

  body.fbs-product-cleanup .woocommerce-pagination li,
  body.fbs-product-cleanup .wc-block-pagination a,
  body.fbs-product-cleanup .wc-block-pagination span,
  body.fbs-product-cleanup .wp-block-query-pagination a,
  body.fbs-product-cleanup .wp-block-query-pagination span {
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }

  body.fbs-product-cleanup .woocommerce-pagination .prev,
  body.fbs-product-cleanup .woocommerce-pagination .next,
  body.fbs-product-cleanup .wp-block-query-pagination-previous,
  body.fbs-product-cleanup .wp-block-query-pagination-next {
    padding: 0 13px !important;
  }

  body.single-product.fbs-product-cleanup .woocommerce div.product .summary {
    padding: 0 2px;
  }
  body.single-product.fbs-product-cleanup .product_title {
    font-size: 29px !important;
  }
  body.single-product.fbs-product-cleanup .summary > .price {
    font-size: 21px !important;
  }
  body.single-product.fbs-product-cleanup .woocommerce-tabs ul.tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }
  body.single-product.fbs-product-cleanup .woocommerce-tabs ul.tabs li {
    white-space: nowrap;
  }
}

/* v1.4 compatibility layer for WooCommerce block templates / WordPress.com block themes. */
body.woocommerce.fbs-product-cleanup,
body.woocommerce-page.fbs-product-cleanup,
body.fbs-product-cleanup {
  font-family: 'Bricolage Grotesque', sans-serif !important;
}

/* Hide verbose archive result text visually; JS below replaces it when possible. */
body.fbs-product-cleanup .wc-block-product-results-count,
body.fbs-product-cleanup .wp-block-woocommerce-product-results-count,
body.fbs-product-cleanup .woocommerce-result-count {
  font-family: 'Bricolage Grotesque', sans-serif !important;
}

/* Block-theme product cards: rounded images, clean card surface and blue CTA. */
body.fbs-product-cleanup .wc-block-grid__product,
body.fbs-product-cleanup .wc-block-components-product-card,
body.fbs-product-cleanup .wc-block-product-template > li,
body.fbs-product-cleanup .wp-block-post-template > li {
  border-radius: 16px !important;
  overflow: hidden !important;
}

body.fbs-product-cleanup .wc-block-grid__product-image,
body.fbs-product-cleanup .wc-block-components-product-image,
body.fbs-product-cleanup .wc-block-components-product-image img,
body.fbs-product-cleanup .wc-block-grid__product-image img {
  border-radius: 14px !important;
  overflow: hidden !important;
}

body.fbs-product-cleanup .wc-block-components-product-button__button,
body.fbs-product-cleanup .wc-block-components-product-button .wp-block-button__link,
body.fbs-product-cleanup .wc-block-grid__product-add-to-cart .wp-block-button__link,
body.fbs-product-cleanup .wc-block-grid__product-add-to-cart a,
body.fbs-product-cleanup .wc-block-components-product-add-to-cart a,
body.fbs-product-cleanup .wc-block-components-product-add-to-cart button {
  background: #0693E3 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  font-family: 'Bricolage Grotesque', sans-serif !important;
}

/* Block sale badges. */
body.fbs-product-cleanup .wc-block-components-product-sale-badge,
body.fbs-product-cleanup .wc-block-components-sale-badge,
body.fbs-product-cleanup .wc-block-grid__product-onsale,
body.fbs-product-cleanup .wc-block-grid__product .onsale {
  background: #ff1717 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
}

/* SINGLE PRODUCT: stronger selectors for block-based single-product templates. */
body.fbs-product-cleanup.single-product .wc-block-components-product-add-to-cart__button,
body.fbs-product-cleanup.single-product .wc-block-components-product-add-to-cart button,
body.fbs-product-cleanup.single-product .single_add_to_cart_button,
body.fbs-product-cleanup.single-product .wp-block-button__link.add_to_cart_button {
  background: #0693E3 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 14px !important;
  min-height: 50px !important;
  padding: 12px 24px !important;
  font-family: 'Bricolage Grotesque', sans-serif !important;
  font-weight: 700 !important;
  box-shadow: 0 5px 16px rgba(6,147,227,.16) !important;
}

/* Quantity controls: circular when WooCommerce renders a native quantity input. */
body.fbs-product-cleanup.single-product .quantity .qty,
body.fbs-product-cleanup.single-product .wc-block-components-quantity-selector,
body.fbs-product-cleanup.single-product .wc-block-components-quantity-selector input {
  border-radius: 999px !important;
}
body.fbs-product-cleanup.single-product .quantity .qty {
  width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 !important;
  text-align: center !important;
  border: 1px solid rgba(15,23,42,.16) !important;
  background: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(15,23,42,.06) !important;
}
body.fbs-product-cleanup.single-product .wc-block-components-quantity-selector {
  min-height: 52px !important;
  border: 1px solid rgba(15,23,42,.14) !important;
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(15,23,42,.05) !important;
}

/* Remove category/meta from single-product pages, including block-template variants. */
body.fbs-product-cleanup.single-product .product_meta .posted_in,
body.fbs-product-cleanup.single-product .product_meta .tagged_as,
body.fbs-product-cleanup.single-product .wp-block-woocommerce-product-meta .posted_in,
body.fbs-product-cleanup.single-product .wp-block-woocommerce-product-meta .tagged_as,
body.fbs-product-cleanup.single-product .wc-block-components-product-meta__item--category,
body.fbs-product-cleanup.single-product [class*="product-meta"] .posted_in,
body.fbs-product-cleanup.single-product [class*="product-meta"] .category {
  display: none !important;
}

body.fbs-product-cleanup.single-product .wp-block-woocommerce-product-meta:has(.posted_in),
body.fbs-product-cleanup.single-product .wp-block-woocommerce-product-meta:has(.wc-block-components-product-meta__item--category) {
  margin-top: 0 !important;
}

/* Keep single-product content clean if the theme uses a generic WooCommerce product wrapper. */
body.fbs-product-cleanup.single-product .wp-block-woocommerce-product-details,
body.fbs-product-cleanup.single-product .wp-block-woocommerce-product-description,
body.fbs-product-cleanup.single-product .woocommerce-product-details__short-description {
  font-family: 'Bricolage Grotesque', sans-serif !important;
}

@media (max-width: 600px) {
  body.fbs-product-cleanup.single-product .wc-block-components-product-add-to-cart__button,
  body.fbs-product-cleanup.single-product .wc-block-components-product-add-to-cart button,
  body.fbs-product-cleanup.single-product .single_add_to_cart_button {
    width: 100% !important;
    border-radius: 13px !important;
  }
}
