/**
 * Reseller Hat — Shop page visual redesign.
 * Scope is intentionally limited to the WooCommerce Shop archive only.
 * Product-category archives, homepage, single-product pages and global header remain untouched.
 */
body.woocommerce-shop #main {
  background: #f5f7fb;
}
body.woocommerce-shop #main > .row,
body.woocommerce-shop #main .shop-container {
  max-width: 1440px;
}
body.woocommerce-shop #main > .row {
  padding-top: 22px;
  padding-bottom: 44px;
}
body.woocommerce-shop .rhat-page-heading {
  margin-bottom: 0;
  border-bottom-width: 4px;
}
body.woocommerce-shop .shop-container {
  min-width: 0;
}
body.woocommerce-shop .woocommerce-notices-wrapper:empty {
  display: none;
}
body.woocommerce-shop .woocommerce-result-count {
  margin: 0;
  color: #65748b;
  font-size: 13px;
  line-height: 1.6;
}
body.woocommerce-shop .woocommerce-ordering {
  margin: 0 0 18px;
}
body.woocommerce-shop .woocommerce-ordering select {
  min-height: 44px;
  max-width: 100%;
  padding: 0 38px 0 14px;
  border: 1px solid #dce4ee;
  border-radius: 12px;
  background-color: #fff;
  color: #203047;
  font-size: 13px;
  box-shadow: 0 3px 12px rgba(23, 42, 69, .04);
}
body.woocommerce-shop .shop-container .products.row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin: 0 -4px !important;
  width: calc(100% + 8px);
  box-sizing: border-box;
}
body.woocommerce-shop .shop-container .products.row > .product-small {
  display: block;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  align-self: start;
  margin: 0 !important;
  padding: 0 !important;
}
body.woocommerce-shop .shop-container .product-small > .col-inner {
  height: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e5eaf1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(25, 45, 74, .045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.woocommerce-shop .shop-container .product-small:hover > .col-inner {
  transform: translateY(-3px);
  border-color: #d1dfeb;
  box-shadow: 0 12px 28px rgba(25, 45, 74, .10);
}
body.woocommerce-shop .shop-container .product-small .product-small.box {
  display: flex;
  height: auto;
  flex-direction: column;
}
body.woocommerce-shop .shop-container .product-small .box-image {
  margin: 0;
  overflow: hidden;
  background: #f0f3f7;
}
body.woocommerce-shop .shop-container .product-small .box-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: contain;
  background: #f0f3f7;
  transition: transform .28s ease;
}
body.woocommerce-shop .shop-container .product-small:hover .box-image img {
  transform: scale(1.025);
}
body.woocommerce-shop .shop-container .product-small .box-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 12px;
  text-align: left;
  min-width: 0;
}
body.woocommerce-shop .shop-container .product-small .title-wrapper {
  flex: 0 0 auto;
  min-width: 0;
  margin-bottom: 0;
}
body.woocommerce-shop .shop-container .product-small .box-text .price-wrapper {
  flex: 0 0 auto;
  margin-top: 0 !important;
  padding-top: 2px;
}
body.woocommerce-shop .shop-container .product-small .box-text .price-wrapper,
body.woocommerce-shop .shop-container .product-small .box-text .price {
  line-height: 1.4;
}
body.woocommerce-shop .shop-container .product-small .box-text > * {
  margin-bottom: 0;
}
body.woocommerce-shop .shop-container .product-small .product-cat {
  margin: 0 0 5px;
  color: #718198;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.5;
}
body.woocommerce-shop .shop-container .product-small .product-title {
  display: block;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
  margin: 0;
  color: #1b2b42;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
body.woocommerce-shop .shop-container .product-small .product-title a {
  color: inherit;
  text-decoration: none;
}
body.woocommerce-shop .shop-container .product-small .product-title a:hover {
  color: #087f78;
}
body.woocommerce-shop .shop-container .product-small .price-wrapper {
  margin-top: 0;
  padding-top: 2px;
}
body.woocommerce-shop .shop-container .product-small .price {
  color: #087f78;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}
body.woocommerce-shop .shop-container .product-small .rhat-login-price-gate {
  color: #087f78;
  font-size: 11px;
  line-height: 1.5;
}
body.woocommerce-shop .shop-container .product-small .badge-container {
  z-index: 2;
}
body.woocommerce-shop .woocommerce-pagination {
  margin-top: 28px;
}
body.woocommerce-shop .woocommerce-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  gap: 7px;
  border: 0;
}
body.woocommerce-shop .woocommerce-pagination .page-numbers li {
  border: 0;
}
body.woocommerce-shop .woocommerce-pagination .page-numbers a,
body.woocommerce-shop .woocommerce-pagination .page-numbers span {
  display: grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  background: #fff;
  color: #34465e;
  font-size: 13px;
}
body.woocommerce-shop .woocommerce-pagination .page-numbers .current {
  border-color: #087f78;
  background: #087f78;
  color: #fff;
}
body.woocommerce-shop .shop-sidebar {
  padding: 16px;
  border: 1px solid #e5eaf1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(25, 45, 74, .04);
}
body.woocommerce-shop .shop-sidebar .widget {
  margin-bottom: 22px;
}
body.woocommerce-shop .shop-sidebar .widget:last-child {
  margin-bottom: 0;
}
body.woocommerce-shop .shop-sidebar .widget-title {
  color: #203047;
  font-size: 14px;
  font-weight: 800;
}
@media (min-width: 600px) {
  body.woocommerce-shop .shop-container .products.row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  body.woocommerce-shop .shop-container .product-small .box-text {
    padding: 10px 10px 12px;
  }
  body.woocommerce-shop .shop-container .product-small .product-title {
    font-size: 13px;
  }
}
@media (min-width: 768px) {
  body.woocommerce-shop #main > .row {
    padding-top: 28px;
    padding-bottom: 52px;
  }
  body.woocommerce-shop .shop-container .products.row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  body.woocommerce-shop .shop-container .product-small .box-text {
    padding: 12px 12px 14px;
  }
  body.woocommerce-shop .shop-container .product-small .product-title {
    font-size: 14px;
  }
}
@media (min-width: 1024px) {
  body.woocommerce-shop .shop-container .products.row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (min-width: 1280px) {
  body.woocommerce-shop .shop-container .products.row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (max-width: 599px) {
  body.woocommerce-shop #main > .row {
    padding-top: 14px;
    padding-bottom: 30px;
  }
  body.woocommerce-shop .woocommerce-result-count {
    margin-bottom: 8px;
    font-size: 11px;
  }
  body.woocommerce-shop .woocommerce-ordering {
    float: none;
    width: 100%;
    margin-bottom: 14px;
  }
  body.woocommerce-shop .woocommerce-ordering select {
    width: 100%;
    min-height: 42px;
    font-size: 12px;
  }
  body.woocommerce-shop .shop-container .products.row {
    gap: 8px;
  }
  body.woocommerce-shop .shop-container .product-small > .col-inner {
    border-radius: 12px;
  }
  body.woocommerce-shop .shop-container .product-small .box-text {
    gap: 5px;
    padding: 7px 8px 10px;
  }
  body.woocommerce-shop .shop-container .product-small .product-cat {
    font-size: 9px;
  }
  body.woocommerce-shop .shop-container .product-small .product-title {
    font-size: 11.5px;
    line-height: 1.5;
  }
  body.woocommerce-shop .shop-container .product-small .price,
  body.woocommerce-shop .shop-container .product-small .rhat-login-price-gate {
    font-size: 10.5px;
  }
  body.woocommerce-shop .shop-sidebar {
    padding: 12px;
    border-radius: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.woocommerce-shop .shop-container .product-small > .col-inner,
  body.woocommerce-shop .shop-container .product-small .box-image img {
    transition: none;
  }
}

/* Refined multi-filter panel for the Shop archive. */
body.woocommerce-shop .rhat-shop-toolbar {
  display: block; margin: 0 0 22px; padding: 18px;
  border: 1px solid #e2e9f1; border-radius: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: 0 8px 26px rgba(25, 45, 74, .07);
}
body.woocommerce-shop .rhat-shop-filter-heading {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin-bottom: 14px;
}
body.woocommerce-shop .rhat-shop-filter-heading strong { color: #203047; font-size: 17px; font-weight: 800; }
body.woocommerce-shop .rhat-shop-filter-heading span { color: #748198; font-size: 12px; }
body.woocommerce-shop .rhat-shop-filter-row {
  display: grid; grid-template-columns: minmax(200px, 1.7fr) repeat(4, minmax(120px, 1fr)); gap: 12px; align-items: end;
}
body.woocommerce-shop .rhat-shop-field {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0;
  color: #53647b; font-size: 12px; font-weight: 700;
}
body.woocommerce-shop .rhat-shop-toolbar input[type="search"],
body.woocommerce-shop .rhat-shop-toolbar input[type="number"],
body.woocommerce-shop .rhat-shop-toolbar select {
  width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 0 12px;
  border: 1px solid #dce4ee; border-radius: 11px; background: #fff; color: #203047;
  font-size: 13px; box-shadow: none;
}
body.woocommerce-shop .rhat-shop-toolbar input:focus,
body.woocommerce-shop .rhat-shop-toolbar select:focus { border-color: #087f78; outline: 2px solid rgba(8, 127, 120, .13); }
body.woocommerce-shop .rhat-shop-stock {
  display: flex; align-items: center; gap: 8px; grid-column: 1 / 3; margin: 2px 0 0;
  color: #40536b; font-size: 12px; font-weight: 700;
}
body.woocommerce-shop .rhat-shop-stock input { width: 17px; height: 17px; margin: 0; accent-color: #087f78; }
body.woocommerce-shop .rhat-shop-toolbar button {
  min-height: 44px; margin: 0; padding: 0 18px; border: 0; border-radius: 11px;
  background: #087f78; color: #fff; font-size: 13px; font-weight: 800; text-transform: none;
  cursor: pointer; box-shadow: 0 5px 12px rgba(8, 127, 120, .16);
}
body.woocommerce-shop .rhat-shop-toolbar button:hover { background: #066a64; transform: translateY(-1px); }
body.woocommerce-shop .rhat-shop-toolbar .rhat-shop-clear { align-self: center; color: #087f78; font-size: 12px; font-weight: 800; }
@media (max-width: 1023px) {
  body.woocommerce-shop .rhat-shop-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.woocommerce-shop .rhat-shop-search, body.woocommerce-shop .rhat-shop-stock { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  body.woocommerce-shop .rhat-shop-toolbar { margin-bottom: 16px; padding: 13px; border-radius: 15px; }
  body.woocommerce-shop .rhat-shop-filter-heading { gap: 4px; margin-bottom: 12px; }
  body.woocommerce-shop .rhat-shop-filter-heading strong { font-size: 15px; }
  body.woocommerce-shop .rhat-shop-filter-heading span { width: 100%; font-size: 11px; }
  body.woocommerce-shop .rhat-shop-filter-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  body.woocommerce-shop .rhat-shop-search, body.woocommerce-shop .rhat-shop-stock { grid-column: auto; }
  body.woocommerce-shop .rhat-shop-toolbar button { width: 100%; }
}

/* Compact single-line shop filters: keep every existing filter and GET field working. */
body.woocommerce-shop .rhat-shop-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 13px;
}
body.woocommerce-shop .rhat-shop-filter-heading {
  flex: 0 0 150px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  line-height: 1.25;
}
body.woocommerce-shop .rhat-shop-filter-heading strong { font-size: 14px; }
body.woocommerce-shop .rhat-shop-filter-heading span { font-size: 10px; line-height: 1.3; }
body.woocommerce-shop .rhat-shop-filter-row {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  padding: 1px 1px 4px;
  scrollbar-width: thin;
}
body.woocommerce-shop .rhat-shop-field {
  flex: 0 0 auto;
  width: 125px;
  gap: 3px;
  font-size: 10px;
}
body.woocommerce-shop .rhat-shop-field.rhat-shop-search { width: 170px; }
body.woocommerce-shop .rhat-shop-toolbar input[type="search"],
body.woocommerce-shop .rhat-shop-toolbar input[type="number"],
body.woocommerce-shop .rhat-shop-toolbar select {
  min-height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 11px;
}
body.woocommerce-shop .rhat-shop-stock {
  flex: 0 0 auto;
  grid-column: auto;
  white-space: nowrap;
  gap: 5px;
  margin: 0;
  font-size: 10px;
}
body.woocommerce-shop .rhat-shop-stock input { width: 14px; height: 14px; }
body.woocommerce-shop .rhat-shop-toolbar button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
}
body.woocommerce-shop .rhat-shop-toolbar .rhat-shop-clear { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 1023px) {
  body.woocommerce-shop .rhat-shop-toolbar { align-items: flex-start; flex-direction: column; gap: 7px; }
  body.woocommerce-shop .rhat-shop-filter-heading { flex: 0 0 auto; }
  body.woocommerce-shop .rhat-shop-filter-heading span { width: auto; }
  body.woocommerce-shop .rhat-shop-filter-row { width: 100%; flex: 0 0 auto; }
}
@media (max-width: 599px) {
  body.woocommerce-shop .rhat-shop-toolbar { margin-bottom: 12px; padding: 10px; gap: 6px; }
  body.woocommerce-shop .rhat-shop-filter-heading { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 5px 8px; }
  body.woocommerce-shop .rhat-shop-filter-heading strong { font-size: 13px; }
  body.woocommerce-shop .rhat-shop-filter-heading span { width: auto; font-size: 10px; }
  body.woocommerce-shop .rhat-shop-filter-row { display: flex; flex-wrap: nowrap; gap: 7px; }
  body.woocommerce-shop .rhat-shop-field { width: 115px; }
  body.woocommerce-shop .rhat-shop-field.rhat-shop-search { width: 150px; }
  body.woocommerce-shop .rhat-shop-toolbar button { width: auto; }
}
