/* Shop and product-category pages, in the homepage's storefront style. */
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) {
  --s-ink: #111827;
  --s-text: #4b5563;
  --s-muted: #6b7280;
  --s-line: #e7e9ee;
  --s-grey: #f4f5f7;
  --s-blue: #2148b0;
  --s-price: #e5391f;
}

/* Keep the catalog on the same 1140px column as the homepage */
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #content .product-container {
  width: min(1164px, calc(100% - 24px));
  margin: 0 auto 57.5px;
}

/* Categories moved to the header dropdown (inc/fixes-header.php): the product
   column fills the centred 1140px page. Zadora's full-width layout otherwise
   keeps it at 84% and leaves an empty strip on the right. */
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat) #content .shop-content { float: none; width: 100%; margin: 0 auto; }

/* Sidebar: category list as large rows, like the homepage storefront */
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .catalog-sidebar .widget-title {
  margin: 0 0 12px;
  color: var(--s-ink);
  font-size: 16px;
  font-weight: 700;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .catalog-sidebar .product-categories { margin: 0; padding: 0; list-style: none; }
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .catalog-sidebar .cat-item {
  position: relative;
  margin: 0 0 8px;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .catalog-sidebar .cat-item a {
  display: block;
  padding: 12px 35px 12px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--s-text);
  background: #f7f8fa;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color .2s, color .2s;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .catalog-sidebar .cat-item a:hover { color: var(--s-ink); background: #eef0f4; }
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .catalog-sidebar .cat-item.current-cat a { color: #fff; background: var(--s-blue); }
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .catalog-sidebar .cat-item .counts {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--s-muted);
  font-size: 13px;
  transform: translateY(-50%);
  pointer-events: none;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .catalog-sidebar .cat-item.current-cat .counts { color: rgba(255, 255, 255, .85); }

/* Toolbar: count + filter + sort only (all products fit on one page). */
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) :is(.zadora--products-per-page, .products-shop-view) { display: none; }
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .action-filter-swaper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  row-gap: 0;
  min-height: 44px;
  margin-bottom: 16px !important;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .action-filter-swaper :is(.top-left, .top-right) {
  width: auto !important;
  float: none !important;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .action-filter-swaper .top-left {
  flex: 1 1 auto;
  min-width: 0;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .action-filter-swaper .top-right {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .action-filter-swaper > .catalog-sidebar {
  flex: 0 0 100%;
  width: 100%;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .woocommerce-result-count {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--s-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #zadora-shop-toolbar {
  margin: 0 !important;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) :is(.zadora-filter, .woocommerce-ordering > .current > a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--s-line);
  border-radius: 10px;
  color: var(--s-ink) !important;
  background: #fff;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0 !important;
  text-decoration: none;
  transition: color .18s, border-color .18s, background-color .18s;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) :is(.zadora-filter, .woocommerce-ordering > .current > a):hover,
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .zadora-filter.active,
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .woocommerce-ordering.is-open > .current > a {
  color: var(--s-blue) !important;
  border-color: #b9c8ed;
  background: #f4f7ff;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) :is(.zadora-filter, .woocommerce-ordering > .current > a) .fas {
  margin: 0;
  font-size: 10px;
  transition: transform .18s;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .zadora-filter.active .fas,
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .woocommerce-ordering.is-open > .current .fas {
  transform: rotate(180deg);
}

/* Sorting dropdown */
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .woocommerce-ordering:not(form) {
  position: relative;
  margin: 0;
  padding: 0;
  text-align: left;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .woocommerce-ordering:not(form) > ul {
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 250px;
  margin: 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--s-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(17, 24, 39, .14);
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .woocommerce-ordering:not(form) > ul li {
  margin: 0;
  padding: 0;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .woocommerce-ordering:not(form) > ul a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--s-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .woocommerce-ordering:not(form) > ul a:hover {
  color: var(--s-ink);
  background: var(--s-grey);
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .woocommerce-ordering:not(form) > ul a.active {
  color: var(--s-blue);
  background: #eef3ff;
  font-weight: 600;
}

/* Price filter: compact card, no repeated product count and no empty 2/3 row. */
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #zadora-shop-topbar {
  margin: 12px 0 20px !important;
  padding: 18px 20px !important;
  border: 1px solid var(--s-line) !important;
  border-radius: 14px;
  background: #f8f9fc;
  box-shadow: 0 10px 30px rgba(17, 24, 39, .06);
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #zadora-shop-topbar .shop-filter-actived {
  display: block;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #zadora-shop-topbar .shop-filter-actived > p {
  display: none;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #zadora-shop-topbar .widget_price_filter {
  display: grid;
  grid-template-columns: 130px minmax(320px, 1fr);
  align-items: center;
  gap: 20px;
  width: min(720px, 100%) !important;
  float: none !important;
  margin: 0;
  padding: 0 !important;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #zadora-shop-topbar .widget_price_filter .widget-title {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: var(--s-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #zadora-shop-topbar .widget_price_filter form {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  margin: 0;
  padding: 0;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #zadora-shop-topbar .price_slider {
  height: 4px;
  margin: 7px 8px 13px !important;
  border: 0;
  border-radius: 999px;
  background: #d9deea;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #zadora-shop-topbar .price_slider .ui-slider-range {
  border-radius: 999px;
  background: var(--s-blue);
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #zadora-shop-topbar .price_slider .ui-slider-handle {
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  margin-left: -8px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--s-blue);
  box-shadow: 0 1px 5px rgba(33, 72, 176, .35);
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #zadora-shop-topbar .price_slider_amount {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #zadora-shop-topbar .price_label {
  grid-column: 1;
  grid-row: 1;
  float: none;
  color: var(--s-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #zadora-shop-topbar .price_slider_amount .button {
  grid-column: 2;
  grid-row: 1;
  float: none !important;
  width: auto;
  min-width: 92px;
  min-height: 40px;
  margin: 0;
  padding: 8px 18px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--s-blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #zadora-shop-topbar .price_slider_amount > .clear {
  display: none;
}

/* Product cards */
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid { margin-bottom: 24px; }
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid > article {
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--s-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  transition: box-shadow .25s, transform .25s;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid > article:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(17, 24, 39, .10); }
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid .product-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 6 / 7;
  margin: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: #fff;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid .product-thumb > a,
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid .product-thumb > a img {
  display: block;
  width: 100%;
  height: 100%;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid .product-thumb > a img { object-fit: contain; object-position: center; }
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid .product-thumb > a img:nth-of-type(n+2),
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid .product-thumb > a::before,
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid .product-thumb > .inner {
  display: none !important;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid .product-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  text-align: left;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid .product-title {
  display: -webkit-box;
  min-height: calc(1.45em * 3);
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid .product-title a { color: var(--s-ink); }
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid article:hover .product-title a { color: var(--s-blue); }
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid .item-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; }
.fp26s-min {
  padding: 1px 8px;
  border-radius: 6px;
  color: #4b5563;
  background: #f1f3f6;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
}
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin: 0; }
body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid .price .amount { color: var(--s-price); font-size: 19.5px; font-weight: 700; line-height: 1.2; }
.fp26s-unit { color: #6b7280; font-size: 13px; font-weight: 400; }

@media (max-width: 991px) {
  body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .catalog-sidebar .cat-item { margin: 0; }
  body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .catalog-sidebar .cat-item a { padding: 8px 14px; }
  body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .catalog-sidebar .cat-item .counts { display: none; }
}
@media (max-width: 767px) {
  body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .action-filter-swaper {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .action-filter-swaper .top-right {
    justify-content: stretch;
  }
  body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .action-filter-swaper .top-left {
    display: block !important;
    width: 100% !important;
  }
  body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .action-filter-swaper .top-right > :is(#zadora-shop-toolbar, .woocommerce-ordering:not(form)) {
    flex: 1 1 0;
  }
  body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #zadora-shop-toolbar .product-fillter {
    width: 100%;
  }
  body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) :is(.zadora-filter, .woocommerce-ordering > .current > a) {
    width: 100%;
  }
  body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .woocommerce-ordering:not(form) > ul {
    right: 0;
    left: auto;
    width: min(280px, calc(100vw - 32px));
  }
  body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #zadora-shop-topbar {
    padding: 16px !important;
  }
  body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #zadora-shop-topbar .widget_price_filter {
    display: block;
    width: 100% !important;
  }
  body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #zadora-shop-topbar .widget_price_filter :is(.widget-title, form) {
    grid-column: auto;
    grid-row: auto;
  }
  body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) #zadora-shop-topbar .widget_price_filter .widget-title {
    margin-bottom: 18px;
  }
  body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .catalog-sidebar .widget-title { display: none; }
  body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid { margin-bottom: 12px; padding-left: 6px; padding-right: 6px; }
  body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid .product-content { padding: 10px 12px 12px; }
  body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid .product-title { font-size: 14px; }
  body.fp-refreshed:is(.woocommerce-shop, .tax-product_cat, .fp26-landing) .tb-products-grid .price .amount { font-size: 16.5px; }
}

/* Product cards: every image sits in the same square frame, fitted, so cards line up. */
body.fp-refreshed .tb-products-grid .product-thumb > a { display: block; height: 100%; }
body.fp-refreshed .tb-products-grid .product-thumb img { width: 100% !important; height: 100% !important; object-fit: contain; }
body.fp-refreshed .tb-products-grid article { display: flex; flex-direction: column; height: 100%; }
body.fp-refreshed .tb-products-grid .product-content { display: flex; flex: 1; flex-direction: column; }
body.fp-refreshed .tb-products-grid .item-bottom { margin-top: auto !important; }
body.fp-refreshed .tb-products-grid .product-thumb img { object-fit: contain !important; max-height: none !important; }
body.fp-refreshed .tb-products-grid :is(.item-label, .new, .newpt) { display: none !important; }
