/* Homestead Shop styles: shop page + product page. Loaded last so it wins over Pro and WooCommerce. */

:root {
  --hb-espresso: #260b01;  /* headings, active states, buttons */
  --hb-olive:    #64563C;  /* body text, prices */
  --hb-saddle:   #8D5b2f;  /* hover accent */
  --hb-sage:     #939789;  /* muted labels */
  --hb-tan:      #cbb89c;  /* borders */
  --hb-bone:     #dbd5ca;  /* hairlines, fills */
  --hb-well:     #efebe5;  /* image background (light tint of bone) */
}

/* Keeps the full-width banner from causing a sideways scroll */
body.woocommerce-shop,
body.tax-product_cat { overflow-x: hidden; }

/* ---------- Shipping bar ---------- */
.hb-hero {
  width: 100vw;
  margin: 0 0 36px calc(50% - 50vw) !important;
  padding: 0 !important;
  max-width: none !important;
}
.hb-shipping-bar {
  margin: 0 !important;
  background: var(--hb-espresso);
  color: var(--hb-bone);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 10px 16px;
}

/* ---------- Collection banner ---------- */
.hb-banner {
  position: relative;
  margin: 0 !important;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background-color: var(--hb-espresso);
  background-size: cover;
  background-position: center 60%;
}
.hb-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 11, 1, .05) 20%, rgba(38, 11, 1, .72) 100%);
}
.hb-banner__inner {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 36px;
}
.hb-banner__title {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: .02em;
}
.hb-banner__desc {
  margin: 12px 0 0;
  max-width: 56ch;
  color: var(--hb-bone);
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- Toolbar: Items (12) ......... Sort ---------- */
.hb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 0 14px;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--hb-bone);
}
.hb-count {
  margin: 0;
  color: var(--hb-espresso);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hb-count span { color: var(--hb-sage); font-weight: 400; }
.hb-toolbar .woocommerce-ordering {
  float: none;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hb-toolbar .woocommerce-ordering::before {
  content: "Sort";
  color: var(--hb-espresso);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hb-toolbar .woocommerce-ordering select {
  border: 0;
  border-bottom: 1px solid var(--hb-tan);
  border-radius: 0;
  background-color: transparent;
  color: var(--hb-olive);
  font-size: 14px;
  padding: 4px 22px 4px 2px;
}

/* ---------- Sidebar + grid layout ---------- */
.hb-shop-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.hb-shop-main { min-width: 0; }

.hb-filters { position: sticky; top: 24px; }
.hb-filters__toggle { display: none; }
.hb-filters__heading {
  margin: 0 0 6px;
  color: var(--hb-espresso);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hb-filter-group {
  border-top: 1px solid var(--hb-bone);
  padding: 16px 0 18px;
}
.hb-filter-group__title {
  margin: 0 0 10px;
  color: var(--hb-espresso);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hb-filter-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.hb-filter-group a {
  color: var(--hb-olive);
  font-size: 14px;
  text-decoration: none;
}
.hb-filter-group a span { color: var(--hb-sage); }
.hb-filter-group a:hover { color: var(--hb-saddle); }
.hb-filter-group a.is-active {
  color: var(--hb-espresso);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--hb-saddle);
}
.hb-filters__clear {
  display: inline-block;
  margin-top: 6px;
  color: var(--hb-saddle);
  font-size: 13px;
  letter-spacing: .06em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Product grid ---------- */
html .woocommerce ul.products,
html .woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
  margin: 0 0 56px !important;
  padding: 0 !important;
  list-style: none;
  clear: both;
}
.hb-shop-main--full ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html .woocommerce ul.products::before,
html .woocommerce ul.products::after,
html .woocommerce-page ul.products::before,
html .woocommerce-page ul.products::after { display: none !important; }

html .woocommerce ul.products li.product,
html .woocommerce-page ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left;
  background: transparent;
  border: 0;
  box-shadow: none;
}
/* Pro/X wrappers: strip boxes and padding */
html .woocommerce ul.products li.product .entry-product,
html .woocommerce ul.products li.product .entry-wrap,
html .woocommerce ul.products li.product .entry-header {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
html .woocommerce ul.products li.product .entry-wrap { padding-top: 16px; }

/* Image well */
html .woocommerce ul.products li.product .hb-thumb,
html .woocommerce ul.products li.product .entry-featured {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  background: var(--hb-well);
}
html .woocommerce ul.products li.product .hb-thumb img,
html .woocommerce ul.products li.product .entry-featured img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  margin: 0 !important;
  transition: opacity .45s ease;
}
html .woocommerce ul.products li.product .hb-thumb .hb-hover-img {
  position: absolute;
  inset: 0;
  opacity: 0;
}
html .woocommerce ul.products li.product:hover .hb-thumb .hb-hover-img { opacity: 1; }

/* Title */
html .woocommerce ul.products li.product .woocommerce-loop-product__title,
html .woocommerce ul.products li.product .entry-header h3,
html .woocommerce ul.products li.product h3 {
  margin: 16px 0 4px !important;
  padding: 0 !important;
  color: var(--hb-espresso);
  font-size: 16px !important;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .01em;
}
html .woocommerce ul.products li.product h3 a { color: inherit; text-decoration: none; }
html .woocommerce ul.products li.product:hover .woocommerce-loop-product__title,
html .woocommerce ul.products li.product:hover h3,
html .woocommerce ul.products li.product:hover h3 a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--hb-tan);
}

/* Color line (snippet 4) */
html .woocommerce ul.products li.product .hb-card-colors {
  margin: 0 0 6px;
  color: var(--hb-sage);
  font-size: 13px;
  line-height: 1.4;
}

/* Price */
html .woocommerce ul.products li.product .price {
  display: block;
  margin: 0 !important;
  color: var(--hb-olive) !important;
  font-size: 15px !important;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
html .woocommerce ul.products li.product .price .hb-from { color: var(--hb-sage); }
html .woocommerce ul.products li.product .price del { color: var(--hb-sage); opacity: 1; }
html .woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--hb-saddle); }

/* No buttons or stars on the grid — the card links to the product */
html .woocommerce ul.products li.product .button,
html .woocommerce ul.products li.product .added_to_cart,
html .woocommerce ul.products li.product .star-rating { display: none !important; }

/* Sale badge */
html .woocommerce ul.products li.product .onsale,
html .woocommerce span.onsale {
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  min-width: 0;
  min-height: 0;
  margin: 0 !important;
  padding: 4px 9px;
  background: var(--hb-espresso);
  color: var(--hb-bone);
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  z-index: 2;
}

html .woocommerce ul.products li.product a:focus-visible,
.hb-filters a:focus-visible,
.hb-filters__toggle:focus-visible {
  outline: 2px solid var(--hb-saddle);
  outline-offset: 3px;
}

/* ---------- Numbered pagination ---------- */
html .woocommerce nav.woocommerce-pagination { text-align: center; margin: 0 0 64px; }
html .woocommerce nav.woocommerce-pagination ul { border: 0; display: inline-flex; gap: 6px; }
html .woocommerce nav.woocommerce-pagination ul li { border: 0; }
html .woocommerce nav.woocommerce-pagination ul li a,
html .woocommerce nav.woocommerce-pagination ul li span {
  min-width: 36px;
  padding: 8px 10px;
  color: var(--hb-olive);
  font-size: 14px;
  border-bottom: 1px solid transparent;
}
html .woocommerce nav.woocommerce-pagination ul li a:hover {
  background: transparent;
  color: var(--hb-saddle);
  border-bottom-color: var(--hb-tan);
}
html .woocommerce nav.woocommerce-pagination ul li span.current {
  background: transparent;
  color: var(--hb-espresso);
  font-weight: 600;
  border-bottom-color: var(--hb-espresso);
}

/* ---------- Buttons sitewide (product page, cart, checkout) ---------- */
html .woocommerce a.button,
html .woocommerce button.button,
html .woocommerce input.button,
html .woocommerce #respond input#submit {
  background: transparent;
  color: var(--hb-espresso);
  border: 1px solid var(--hb-espresso);
  border-radius: 0;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
html .woocommerce a.button:hover,
html .woocommerce button.button:hover,
html .woocommerce input.button:hover {
  background: var(--hb-espresso);
  color: var(--hb-bone);
}
html .woocommerce a.button.alt,
html .woocommerce button.button.alt,
html .woocommerce input.button.alt,
html .woocommerce .single_add_to_cart_button,
html .woocommerce-checkout #place_order {
  background: var(--hb-espresso) !important;
  color: var(--hb-bone) !important;
  border-color: var(--hb-espresso) !important;
}
html .woocommerce a.button.alt:hover,
html .woocommerce button.button.alt:hover,
html .woocommerce .single_add_to_cart_button:hover,
html .woocommerce-checkout #place_order:hover {
  background: var(--hb-saddle) !important;
  border-color: var(--hb-saddle) !important;
}
html .woocommerce div.product p.price,
html .woocommerce div.product span.price { color: var(--hb-olive); }
html .woocommerce-message,
html .woocommerce-info { border-top-color: var(--hb-saddle); }
html .woocommerce-message::before,
html .woocommerce-info::before { color: var(--hb-saddle); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hb-shop-body { grid-template-columns: 180px minmax(0, 1fr); gap: 32px; }
  html .woocommerce ul.products,
  html .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .hb-banner { min-height: 220px; }
  .hb-shop-body { grid-template-columns: 1fr; gap: 0; }
  .hb-filters { position: static; margin-bottom: 20px; }
  .hb-filters__toggle {
    display: block;
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: 1px solid var(--hb-tan);
    color: var(--hb-espresso);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
  }
  .hb-filters__panel { display: none; padding-top: 12px; }
  .hb-filters.is-open .hb-filters__panel { display: block; }
  .hb-filters__heading { display: none; }
  html .woocommerce ul.products,
  html .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html .woocommerce ul.products li.product img { transition: none; }
}



/* =====================================================================
   PRODUCT PAGE (modeled on Stetson's product page)
   Thumbnail strip | stacked photos | sticky details column
   ===================================================================== */
:root {
  --hb-serif: "Libre Caslon Text", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --hb-line: #d9d3c8;
}

/* Breadcrumb: Home > Tees > Product */
html .single-product .hb-breadcrumb,
html .single-product .woocommerce-breadcrumb {
  max-width: 1320px;
  margin: 8px auto 28px !important;
  color: var(--hb-sage);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
html .single-product .hb-breadcrumb a { color: var(--hb-espresso); text-decoration: none; }
html .single-product .hb-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hb-crumb-sep { margin: 0 7px; color: var(--hb-olive); }

/* Overall layout: gallery (strip + photos) left, details right */
html .single-product div.product {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 0 64px;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
}
html .single-product div.product > * { grid-column: 1 / -1; }
html .single-product div.product > .woocommerce-product-gallery,
html .single-product div.product > .images {
  grid-column: 1;
  width: auto !important;
  float: none !important;
  margin: 0 0 64px !important;
}
html .single-product div.product > .summary {
  grid-column: 2;
  width: auto !important;
  float: none !important;
  margin: 0 0 64px !important;
  padding: 0 !important;
  position: sticky;
  top: var(--hb-sticky-top, 24px);
  align-self: start;
}
html .single-product div.product > span.onsale { display: none; }

/* Gallery: thin thumbnail strip + full-size photos stacked */
html .single-product .woocommerce-product-gallery.hb-stacked {
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0 40px;
  align-items: start;
  opacity: 1 !important;
}
html .single-product .woocommerce-product-gallery.hb-single { grid-template-columns: minmax(0, 1fr); }
.hb-gallery-strip {
  position: sticky;
  top: var(--hb-sticky-top, 24px);
  display: grid;
  gap: 2px;
}
.hb-gallery-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  overflow: hidden;
  background: var(--hb-well);
  opacity: .62;
  transition: opacity .2s;
}
.hb-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hb-gallery-thumb:hover,
.hb-gallery-thumb.is-active { opacity: 1; }
.hb-gallery-thumb.is-active { box-shadow: inset 0 0 0 1px var(--hb-espresso); }
.hb-gallery-thumb:focus-visible { outline: 2px solid var(--hb-saddle); outline-offset: 2px; }

html .single-product .woocommerce-product-gallery__wrapper {
  display: grid !important;
  gap: 40px;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  width: auto !important;
}
html .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image,
html .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2) {
  display: block !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--hb-well);
  scroll-margin-top: var(--hb-sticky-top, 24px);
}
html .single-product .woocommerce-product-gallery__image a { display: block; cursor: default; }
html .single-product .woocommerce-product-gallery__image img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
}
html .single-product .woocommerce-product-gallery .flex-control-thumbs,
html .single-product .woocommerce-product-gallery__trigger { display: none !important; }

/* Title, stars, price */
html .single-product .summary .product_title {
  margin: 0 0 12px !important;
  color: var(--hb-espresso);
  font-family: var(--hb-serif) !important;
  font-size: clamp(30px, 3.2vw, 44px) !important;
  font-weight: 400 !important;
  line-height: 1.06 !important;
  letter-spacing: .01em !important;
  text-transform: uppercase;
  text-wrap: balance;
}
.hb-stars,
html .single-product .summary .woocommerce-product-rating {
  display: inline-block;
  margin: 0 0 18px;
  color: var(--hb-tan);
  font-size: 22px;
  letter-spacing: 3px;
  line-height: 1;
  text-decoration: none;
}
html .single-product .summary .star-rating { color: var(--hb-espresso); }
html .single-product .summary p.price,
html .single-product .summary > .price {
  display: block;
  margin: 0 0 28px !important;
  color: var(--hb-espresso) !important;
  font-family: var(--hb-serif);
  font-size: 28px !important;
  font-weight: 400;
  font-variant-numeric: lining-nums;
}
html .single-product .summary .woocommerce-product-details__short-description {
  margin: 0 0 24px;
  color: var(--hb-olive);
}

/* Variation rows */
html .single-product table.variations,
html .single-product table.variations tbody,
html .single-product table.variations tr,
html .single-product table.variations th,
html .single-product table.variations td {
  display: block !important;
  width: 100% !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  text-align: left !important;
}
html .single-product table.variations { margin: 0 0 4px !important; }
html .single-product table.variations tr { margin: 0 0 26px; }
html .single-product table.variations tr.hb-row-color {
  padding-bottom: 24px !important;
  border-bottom: 1px solid var(--hb-line) !important;
}
html .single-product table.variations th.label,
html .single-product table.variations td.label {
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 14px;
  line-height: 1.4;
}
html .single-product table.variations label {
  display: inline;
  margin: 0;
  color: var(--hb-espresso);
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html .single-product .hb-chosen { font-weight: 400; color: var(--hb-espresso); }
html .single-product .hb-size-chart {
  color: var(--hb-olive);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html .single-product .hb-size-chart:hover { color: var(--hb-saddle); }
.hb-hidden-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.hb-swatches { display: flex; flex-wrap: wrap; gap: 10px; }

/* Size boxes */
.hb-swatch {
  min-width: 56px;
  height: 56px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #b9b2a6;
  border-radius: 0;
  color: var(--hb-espresso);
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.hb-swatch:hover { border-color: var(--hb-espresso); }
.hb-swatch.is-selected {
  background: var(--hb-espresso);
  border-color: var(--hb-espresso);
  color: #fff;
}
.hb-swatch.is-disabled {
  position: relative;
  color: #b9b2a6;
  border-color: var(--hb-line);
  cursor: not-allowed;
  background: #fff linear-gradient(to top right, transparent calc(50% - .5px), var(--hb-line) 50%, transparent calc(50% + .5px));
}

/* Color circles */
.hb-swatch.hb-swatch--circle {
  width: 44px;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px var(--hb-line);
}
.hb-swatch--circle .hb-dot {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(38, 11, 1, .14);
}
.hb-swatch.hb-swatch--circle:hover { box-shadow: 0 0 0 1px var(--hb-olive); }
.hb-swatch.hb-swatch--circle.is-selected {
  background: transparent;
  box-shadow: 0 0 0 2px var(--hb-espresso);
}
.hb-swatch.hb-swatch--circle.is-disabled { opacity: .35; background: transparent; }
.hb-swatch:focus-visible { outline: 2px solid var(--hb-saddle); outline-offset: 3px; }

html .single-product .reset_variations {
  display: inline-block;
  margin: -12px 0 12px;
  color: var(--hb-sage);
  font-size: 13px;
}
html .single-product .woocommerce-variation-price .price {
  font-family: var(--hb-serif);
  font-size: 20px !important;
  color: var(--hb-espresso) !important;
}
html .single-product .woocommerce-variation-availability { color: var(--hb-sage); font-size: 13px; }

/* Quantity row, then a full-width button */
html .single-product form.cart:not(.variations_form),
html .single-product .woocommerce-variation-add-to-cart {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
  margin: 0 0 28px;
}
.hb-qty-label { color: var(--hb-espresso); font-size: 14px; }
html .single-product form.cart .quantity {
  display: inline-flex !important;
  align-items: stretch;
  margin: 0 !important;
  float: none !important;
}
html .single-product form.cart .quantity input.qty {
  width: 48px !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #b9b2a6 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
  background: #fff;
  color: var(--hb-espresso);
  font-size: 16px;
  text-align: center;
  -moz-appearance: textfield;
}
html .single-product form.cart .quantity input.qty::-webkit-outer-spin-button,
html .single-product form.cart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hb-qty-btn {
  width: 46px;
  height: 46px;
  padding: 0;
  background: #fff;
  border: 1px solid #b9b2a6;
  border-radius: 0;
  color: var(--hb-espresso);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.hb-qty-btn:hover { background: var(--hb-well); }
.hb-qty-btn:focus-visible { outline: 2px solid var(--hb-saddle); outline-offset: 2px; }
html .single-product form.cart .single_add_to_cart_button {
  flex: 1 0 100%;
  width: 100%;
  height: 62px;
  margin: 34px 0 0 !important;
  padding: 0 24px !important;
  float: none !important;
  background: var(--hb-espresso) !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html .single-product form.cart .single_add_to_cart_button:hover { background: var(--hb-saddle) !important; }
html .single-product form.cart .single_add_to_cart_button.disabled { opacity: 1 !important; cursor: pointer; }

/* Description under the button */
.hb-pdp-details { margin: 0 0 24px; }
.hb-pdp-desc {
  color: var(--hb-espresso);
  font-size: 17px;
  line-height: 1.85;
}
.hb-pdp-desc p { margin: 0 0 16px; }
.hb-pdp-desc ul { margin: 0 0 16px; padding-left: 1.1em; }
.hb-pdp-desc li { margin: 2px 0; }
.hb-pdp-desc h2,
.hb-pdp-desc h3,
.hb-pdp-desc h4 {
  margin: 20px 0 8px;
  color: var(--hb-espresso);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
}
.hb-pdp-desc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.hb-pdp-desc th,
.hb-pdp-desc td { border-bottom: 1px solid var(--hb-line); padding: 6px 8px; text-align: left; }
.hb-pdp-desc.is-clamped {
  max-height: 16.5em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent);
          mask-image: linear-gradient(180deg, #000 65%, transparent);
}
.hb-readmore {
  margin-top: 6px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--hb-espresso);
  font: inherit;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.hb-readmore:hover { color: var(--hb-saddle); }
html .single-product .summary .product_meta { display: none; }

/* Below the fold */
.hb-section-title,
html .single-product .related > h2,
html .single-product .upsells > h2 {
  margin: 0 0 28px !important;
  color: var(--hb-espresso);
  font-family: var(--hb-serif);
  font-size: 26px !important;
  font-weight: 400 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase;
}
.hb-pdp-reviews {
  border-top: 1px solid var(--hb-line);
  padding: 48px 0;
}
.hb-pdp-reviews .woocommerce-Reviews-title { display: none !important; }
.hb-pdp-reviews .woocommerce-noreviews { color: var(--hb-olive); }
.hb-pdp-reviews #reply-title {
  display: block;
  margin: 24px 0 12px;
  color: var(--hb-espresso);
  font-size: 15px;
  font-weight: 600;
}
.hb-pdp-reviews #reply-title small { display: none !important; }
html .single-product .related,
html .single-product .upsells {
  border-top: 1px solid var(--hb-line);
  padding-top: 48px;
}
html .single-product .related ul.products,
html .single-product .upsells ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Tablet: drop the strip, keep two columns */
@media (max-width: 1100px) {
  html .single-product div.product { gap: 0 40px; }
  html .single-product .woocommerce-product-gallery.hb-stacked { grid-template-columns: minmax(0, 1fr); }
  .hb-gallery-strip { display: none; }
}
/* Phone: one column; photos become a swipeable row */
@media (max-width: 800px) {
  html .single-product div.product { grid-template-columns: minmax(0, 1fr); }
  html .single-product div.product > .woocommerce-product-gallery,
  html .single-product div.product > .images,
  html .single-product div.product > .summary { grid-column: 1; }
  html .single-product div.product > .woocommerce-product-gallery,
  html .single-product div.product > .images { margin-bottom: 28px !important; }
  html .single-product div.product > .summary { position: static; }
  html .single-product .woocommerce-product-gallery__wrapper {
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  html .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image,
  html .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2) {
    flex: 0 0 88%;
    scroll-snap-align: start;
  }
  html .single-product .related ul.products,
  html .single-product .upsells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .hb-gallery-thumb, .hb-swatch { transition: none; }
}

/* WooCommerce's hidden "quantity" label stays hidden even if Woo's own CSS is off */
html .single-product form.cart .quantity .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
html .single-product .single_variation_wrap .single_variation:empty { display: none; }

/* Theme-proofing: themes (Pro included) style every <button>; keep ours as designed */
.hb-swatch {
  background: #fff !important;
  border: 1px solid #b9b2a6 !important;
  border-radius: 0 !important;
  color: var(--hb-espresso) !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  min-width: 56px !important;
  height: 56px !important;
  padding: 0 12px !important;
  margin: 0 !important;
}
.hb-swatch:hover { border-color: var(--hb-espresso) !important; }
.hb-swatch.is-selected { background: var(--hb-espresso) !important; border-color: var(--hb-espresso) !important; color: #fff !important; }
.hb-swatch.is-disabled {
  color: #b9b2a6 !important;
  border-color: var(--hb-line) !important;
  background: #fff linear-gradient(to top right, transparent calc(50% - .5px), var(--hb-line) 50%, transparent calc(50% + .5px)) !important;
}
.hb-swatch.hb-swatch--circle {
  width: 44px !important;
  min-width: 0 !important;
  height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: 0 0 0 1px var(--hb-line) !important;
}
.hb-swatch.hb-swatch--circle:hover { box-shadow: 0 0 0 1px var(--hb-olive) !important; }
.hb-swatch.hb-swatch--circle.is-selected { background: transparent !important; box-shadow: 0 0 0 2px var(--hb-espresso) !important; }
.hb-qty-btn {
  width: 46px !important;
  height: 46px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid #b9b2a6 !important;
  border-radius: 0 !important;
  color: var(--hb-espresso) !important;
  font-size: 20px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}
.hb-qty-btn:hover { background: var(--hb-well) !important; }
.hb-readmore {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  color: var(--hb-espresso) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}
.hb-filters__toggle { box-shadow: none !important; }

/* Specificity boost: themes (Pro included) ship "columns-3/4" rules with !important
   that would otherwise shrink our cards. Repeated classes outrank them. */
html .woocommerce ul.products.products.products,
html .woocommerce-page ul.products.products.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px !important;
  margin: 0 0 56px !important;
  padding: 0 !important;
}
html .woocommerce ul.products.products.products li.product.product.product,
html .woocommerce-page ul.products.products.products li.product.product.product {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
}
html .woocommerce ul.products.products.products li.product.product.product > a,
html .woocommerce ul.products.products.products li.product.product.product .hb-thumb,
html .woocommerce ul.products.products.products li.product.product.product img {
  max-width: none !important;
}
html .woocommerce ul.products.products.products li.product.product.product > a { display: block !important; }
html .hb-shop-main--full ul.products.products.products,
html .single-product .related ul.products.products.products,
html .single-product .upsells ul.products.products.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  html .woocommerce ul.products.products.products,
  html .woocommerce-page ul.products.products.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  html .woocommerce ul.products.products.products,
  html .woocommerce-page ul.products.products.products,
  html .single-product .related ul.products.products.products,
  html .single-product .upsells ul.products.products.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px !important; }
}


/* =====================================================================
   v1.1 — Stetson shop layout + script-driven fixed column
   ===================================================================== */

/* Toolbar: FILTER  SORT ................................ ITEMS (12) */
.hb-toolbar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px 0 32px !important;
  padding: 0 !important;
  border: 0 !important;
}
.hb-toolbar__left { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hb-filter-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--hb-espresso) !important;
  font: inherit;
  font-size: 17px !important;
  font-weight: 400 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
  cursor: pointer;
}
.hb-filter-btn:hover { color: var(--hb-saddle) !important; }
.hb-filter-btn:focus-visible { outline: 2px solid var(--hb-saddle); outline-offset: 4px; }
.hb-toolbar .woocommerce-ordering { margin: 0 !important; float: none !important; display: flex; align-items: center; gap: 8px; }
.hb-toolbar .woocommerce-ordering::before {
  content: "Sort";
  color: var(--hb-espresso);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hb-toolbar .woocommerce-ordering select {
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: var(--hb-olive) !important;
  font-size: 15px !important;
  padding: 2px 22px 2px 2px !important;
  height: auto !important;
  min-height: 0 !important;
  cursor: pointer;
}
.hb-count {
  margin: 0 !important;
  color: var(--hb-espresso) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
}

/* Slide-out filter panel */
.hb-drawer { position: fixed; inset: 0; z-index: 100000; visibility: hidden; pointer-events: none; }
.hb-drawer.is-open { visibility: visible; pointer-events: auto; }
.hb-drawer__scrim { position: absolute; inset: 0; background: rgba(38, 11, 1, .35); opacity: 0; transition: opacity .25s ease; }
.hb-drawer.is-open .hb-drawer__scrim { opacity: 1; }
.hb-drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(360px, 88vw);
  padding: 28px 28px 40px;
  overflow-y: auto;
  background: #fff;
  box-shadow: 8px 0 32px rgba(38, 11, 1, .12);
  transform: translateX(-100%);
  transition: transform .3s ease;
}
.hb-drawer.is-open .hb-drawer__panel { transform: none; }
.hb-drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hb-drawer__title {
  margin: 0;
  color: var(--hb-espresso);
  font-size: 17px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hb-drawer__close {
  margin: 0 !important;
  padding: 0 4px !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--hb-espresso) !important;
  font-size: 30px !important;
  line-height: 1 !important;
  cursor: pointer;
}
.hb-drawer .hb-filter-group { border-top: 1px solid var(--hb-bone); padding: 18px 0 20px; }
.hb-drawer .hb-filter-group a { font-size: 15px; }
html.hb-drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .hb-drawer__panel, .hb-drawer__scrim { transition: none; } }

/* Product cards (drawn by the plugin): photo, title, price */
html .woocommerce ul.products.products.products li.hb-card .hb-card__link,
html ul.products li.hb-card .hb-card__link {
  display: block !important;
  color: inherit !important;
  text-decoration: none !important;
}
html ul.products li.hb-card .hb-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  overflow: hidden;
  background: var(--hb-well);
}
html ul.products li.hb-card .hb-thumb img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover;
  transition: opacity .45s ease;
}
html ul.products li.hb-card .hb-thumb .hb-hover-img { opacity: 0; }
html ul.products li.hb-card:hover .hb-thumb .hb-hover-img { opacity: 1; }
html .woocommerce ul.products.products.products li.hb-card .hb-card__title,
html ul.products.products li.hb-card .hb-card__title {
  margin: 22px 0 6px !important;
  padding: 0 !important;
  color: var(--hb-espresso) !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html ul.products li.hb-card:hover .hb-card__title {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--hb-tan);
}
html .woocommerce ul.products.products.products li.hb-card .hb-card__price,
html ul.products.products li.hb-card .hb-card__price {
  display: block !important;
  margin: 0 !important;
  color: var(--hb-espresso) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  font-variant-numeric: tabular-nums;
}
html ul.products li.hb-card .hb-card__price .hb-from { color: var(--hb-sage); }
html ul.products li.hb-card .hb-card__price del { color: var(--hb-sage); }
html ul.products li.hb-card .hb-card__price ins { color: var(--hb-saddle); text-decoration: none; }
html ul.products li.hb-card .hb-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 9px;
  background: var(--hb-espresso);
  color: var(--hb-bone);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
html ul.products li.hb-card .hb-card__link:focus-visible { outline: 2px solid var(--hb-saddle); outline-offset: 4px; }

/* Four across, like Stetson */
html .woocommerce ul.products.products.products,
html .woocommerce-page ul.products.products.products,
html ul.products.products.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px 36px !important;
}
@media (max-width: 1024px) {
  html .woocommerce ul.products.products.products,
  html .woocommerce-page ul.products.products.products,
  html ul.products.products.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px !important; }
}
@media (max-width: 767px) {
  html .woocommerce ul.products.products.products,
  html .woocommerce-page ul.products.products.products,
  html ul.products.products.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px !important; }
  .hb-toolbar__left { gap: 24px; }
  .hb-filter-btn, .hb-toolbar .woocommerce-ordering::before, .hb-count { font-size: 15px !important; }
}

/* Fixed details column + thumbnail strip: positioned by script, not CSS sticky */
html .single-product div.product .summary.hb-follow,
html .single-product .hb-gallery-strip.hb-follow {
  position: relative;
  top: auto;
}

/* Tighter spacing in the details column so it fits on laptop screens */
html .single-product table.variations tr { margin-bottom: 20px !important; }
html .single-product table.variations tr.hb-row-color { padding-bottom: 18px !important; }
html .single-product .reset_variations { margin: -6px 0 0 !important; }
html .single-product .single_variation_wrap .woocommerce-variation:empty { display: none !important; }
html .single-product form.cart .single_add_to_cart_button { margin-top: 22px !important; }
html .single-product .summary .product_title { margin-bottom: 8px !important; }
html .single-product .summary p.price { margin-bottom: 22px !important; }
html .single-product .hb-stars { margin-bottom: 12px; }


/* =====================================================================
   v1.2
   ===================================================================== */

/* Top shipping bar (shopping pages only), like Stetson's */
.hb-topbar {
  position: relative;
  z-index: 1000;
  width: 100%;
  margin: 0;
  padding: 10px 16px;
  background: var(--hb-well);
  color: var(--hb-espresso);
  text-align: center;
}
.hb-topbar p {
  margin: 0 !important;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: .01em;
}

/* Split banner: color panel with title + text | photo */
.hb-split-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 41.5fr) minmax(0, 58.5fr);
  width: 100vw;
  max-width: none !important;
  margin: 0 0 40px calc(50% - 50vw) !important;
  padding: 0 !important;
  min-height: clamp(320px, 24.5vw, 560px);
  background: var(--hb-espresso);
}
.hb-split-banner--noimg { grid-template-columns: 1fr; }
.hb-split-banner__text {
  display: grid;
  place-items: center;
  padding: 48px clamp(24px, 5vw, 96px);
  text-align: center;
}
.hb-split-banner__title {
  margin: 0 0 22px !important;
  color: #fff !important;
  font-family: var(--hb-serif) !important;
  font-size: clamp(30px, 2.6vw, 48px) !important;
  font-weight: 400 !important;
  line-height: 1.08 !important;
  letter-spacing: .01em !important;
  text-transform: uppercase;
  text-wrap: balance;
}
.hb-split-banner__desc {
  max-width: 34em;
  margin: 0 auto !important;
  color: rgba(255, 255, 255, .9) !important;
  font-size: 18px !important;
  line-height: 1.75 !important;
}
.hb-split-banner__img { position: relative; min-height: 100%; overflow: hidden; }
.hb-split-banner__img img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover;
}
@media (max-width: 800px) {
  .hb-split-banner { grid-template-columns: 1fr; min-height: 0; }
  .hb-split-banner__img { order: -1; aspect-ratio: 16 / 9; }
  .hb-split-banner__text { padding: 36px 24px; }
  .hb-split-banner__desc { font-size: 16px !important; }
}

/* Shop grid at 98% of the screen width */
html .hb-toolbar,
html .hb-shop-main {
  width: 98vw !important;
  max-width: none !important;
  margin-left: calc(50% - 49vw) !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}
html .hb-toolbar { padding: 0 6px !important; }
html .hb-shop-main nav.woocommerce-pagination { width: auto; }

/* Product page: 34px title, price closer to the color swatches */
html .single-product .summary .product_title {
  font-size: 34px !important;
  line-height: 1.12 !important;
  margin-bottom: 10px !important;
}
html .single-product .summary p.price,
html .single-product .summary > .price { margin-bottom: 10px !important; }
html .single-product .summary form.cart,
html .single-product .summary form.variations_form,
html .single-product table.variations { margin-top: 0 !important; }
html .single-product table.variations tr.hb-row-color th.label,
html .single-product table.variations tr.hb-row-color td.label { margin-bottom: 10px !important; }
@media (max-width: 800px) {
  html .single-product .summary .product_title { font-size: 28px !important; }
}

/* Keep grid placement fixed while the column / strip are pinned (out of flow) */
html .single-product div.product > .woocommerce-product-gallery { grid-row: 1; }
html .single-product div.product > .summary { grid-row: 1; }
html .single-product .woocommerce-product-gallery.hb-stacked > .hb-gallery-strip { grid-column: 1; grid-row: 1; }
html .single-product .woocommerce-product-gallery.hb-stacked > .woocommerce-product-gallery__wrapper { grid-column: 2; grid-row: 1; }
html .single-product .woocommerce-product-gallery.hb-single > .woocommerce-product-gallery__wrapper { grid-column: 1; }
@media (max-width: 1100px) {
  html .single-product .woocommerce-product-gallery.hb-stacked > .woocommerce-product-gallery__wrapper { grid-column: 1; }
}
html .single-product div.product .summary.hb-follow,
html .single-product .hb-gallery-strip.hb-follow { will-change: auto; z-index: 5; }
html .single-product div.product .summary.hb-follow { background: transparent; }
@media (max-width: 767px) {
  html .hb-toolbar,
  html .hb-shop-main {
    width: calc(100vw - 32px) !important;
    margin-left: calc(50% - 50vw + 16px) !important;
  }
  html .hb-toolbar { padding: 0 !important; }
}
