/* v6.3.7 targeted WoodMart/WooCommerce listing repair.
   A class is placed on ONLY the main product collection, never related products,
   Best Sellers, Recently Viewed, carousels, checkout, cart, or product pages. */
.vss-main-product-grid {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  grid-auto-flow: row !important;
  column-gap: 20px !important;
  row-gap: 24px !important;
  width: 100% !important;
}
.vss-main-product-grid > :is(.product, .wd-product, .product-grid-item) {
  box-sizing: border-box !important;
  float: none !important;
  flex: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}
.vss-main-product-grid .vss-product-message--compact { margin: 6px 0 8px; }
.vss-main-product-grid .vss-dispatch-subline { display: none !important; }
@media (max-width: 1099px) {
  .vss-main-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 17px !important; }
}
@media (max-width: 767px) {
  .vss-main-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .vss-main-product-grid .vss-product-message--compact { font-size: 10px; }
}

/* Separate merchandising rows: do NOT style WooCommerce product containers. */
.vss-catalog-section {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 22px 0 30px;
  padding: 0;
  clear: both;
  color: #202020;
}
.vss-catalog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.vss-catalog-section-header h2 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: clamp(20px, 2.3vw, 28px) !important;
  font-weight: 750;
  line-height: 1.25;
  color: inherit;
}
.vss-catalog-section-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.vss-catalog-nav {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  background: #fff;
  color: #44200d;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}
.vss-catalog-nav:hover { background: #f6f1ed; }
.vss-catalog-scroll {
  box-sizing: border-box;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 42px) / 4);
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 0 0 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.vss-catalog-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: 100%;
  padding: 10px;
  border: 1px solid #e9e4de;
  border-radius: 12px;
  background: #fff;
  color: #2b2927;
  text-decoration: none !important;
  scroll-snap-align: start;
}
.vss-catalog-card:hover { border-color: #ba8a55; box-shadow: 0 2px 12px rgba(75, 36, 12, 0.07); }
.vss-catalog-card-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #f7f7f7;
  overflow: hidden;
}
.vss-catalog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.vss-catalog-card-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 2.8em;
  max-height: 2.8em;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
}
.vss-catalog-card-price { display: block; font-size: 13px; font-weight: 750; color: #a5491b; }
.vss-catalog-card-price del { color: #999; font-size: 11px; font-weight: 400; }
.vss-catalog-card-price ins { text-decoration: none; }
.vss-catalog-empty { margin: 6px 0; color: #777; font-size: 13px; }
.vss-catalog-empty[hidden] { display: none !important; }
.vss-catalog-recent:not(.vss-catalog-has-items) .vss-catalog-section-actions { display: none; }
@media (max-width: 1099px) {
  .vss-catalog-scroll { grid-auto-columns: calc((100% - 28px) / 3); }
}
@media (max-width: 767px) {
  .vss-catalog-section { margin: 20px 0 24px; }
  .vss-catalog-scroll { grid-auto-columns: calc((100% - 14px) / 2); }
  .vss-catalog-card { padding: 8px; }
  .vss-catalog-card-name { font-size: 12px; }
}
