
/* ==========================================================
   DCE Shop Add-on — filter sidebar, product cards, dropdown
   ========================================================== */

/* ---------- Call-the-store dropdown ---------- */
.dce-call-dd { position: relative; display: inline-block; }
.dce-call-dd.is-block { display: block; width: 100%; }
.dce-call-dd__btn {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 22px;
  border: 2px solid var(--barn-red-deep);
  background: var(--barn-red);
  color: var(--cream);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-red);
  transition: transform .12s ease, box-shadow .12s ease;
}
.dce-call-dd.is-block .dce-call-dd__btn { width: 100%; justify-content: center; padding: 18px 22px; font-size: 17px; }
.dce-call-dd__btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--barn-red-deep); }
.dce-call-dd__btn--outline { background: transparent; color: var(--nh-blue); border-color: var(--nh-blue); box-shadow: var(--shadow-hard); }
.dce-call-dd__btn--outline:hover { box-shadow: 6px 6px 0 var(--nh-blue-deep); }
.dce-call-dd__btn--ghost { background: transparent; color: var(--cream); border-color: rgba(244,239,228,0.35); box-shadow: none; }
.dce-call-dd__chev { transition: transform .15s ease; }
.dce-call-dd[aria-expanded="true"] .dce-call-dd__chev,
.dce-call-dd.is-open .dce-call-dd__chev { transform: rotate(180deg); }

.dce-call-dd__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 320px;
  background: var(--cream);
  border: 2px solid var(--nh-blue-deep);
  box-shadow: var(--shadow-hard);
  z-index: 500;
  padding: 0;
}
.dce-call-dd.is-block .dce-call-dd__menu { right: auto; left: 0; min-width: 100%; }
.dce-call-dd__head { padding: 14px 18px 8px; border-bottom: 1px dashed rgba(26,24,20,0.25); }
.dce-call-dd__eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--barn-red); text-transform: uppercase; }
.dce-call-dd__hint { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }
.dce-call-dd__list { list-style: none; padding: 6px 0; margin: 0; }
.dce-call-dd__item a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 18px; color: var(--ink);
  border-left: 3px solid transparent;
  transition: background .12s ease, border-color .12s ease;
}
.dce-call-dd__item a:hover { background: var(--hay); border-left-color: var(--barn-red); color: var(--nh-blue-deep); }
.dce-call-dd__info { display: flex; flex-direction: column; gap: 2px; }
.dce-call-dd__name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; font-size: 15px; }
.dce-call-dd__city { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-soft); text-transform: uppercase; }
.dce-call-dd__phone { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--barn-red); white-space: nowrap; }
.dce-call-dd__foot { padding: 10px 18px; border-top: 1px dashed rgba(26,24,20,0.25); background: var(--paper); font-size: 12px; color: var(--ink-soft); }

/* ---------- Archive layout ---------- */
.archive-shop { padding: 40px 32px 80px; }
.archive-shop__hero { padding: 24px 0 32px; border-bottom: 2px solid var(--nh-blue-deep); margin-bottom: 40px; }
.archive-shop__title { font-size: clamp(40px, 6vw, 72px) !important; color: var(--nh-blue-deep); margin: 8px 0 !important; }
.archive-shop__desc { font-size: 17px; color: var(--ink-soft); max-width: 720px; margin-bottom: 18px; }
.archive-shop__body { gap: 40px; align-items: flex-start !important; }
.archive-shop__grid-wrap { flex: 1 1 auto; min-width: 0; }
.archive-shop__grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin: 0 !important; padding: 0 !important; list-style: none; }
.archive-shop__pagination { margin-top: 40px; display: flex; gap: 8px; justify-content: center; }
.archive-shop__pagination .btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink-soft); padding: 10px 18px; text-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.archive-shop__pagination .btn-ghost:hover { background: var(--paper); color: var(--barn-red); }

/* ---------- Sort bar ---------- */
.dce-sort-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 10px 14px; background: var(--paper); border: 2px solid var(--nh-blue-deep); }
.dce-sort-bar__label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.dce-sort-bar select { font-family: var(--font-display); font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 10px; border: 1px solid var(--nh-blue-deep); background: var(--cream); color: var(--ink); cursor: pointer; }

/* ---------- Active filter chips ---------- */
.dce-active-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; padding: 12px 14px; background: var(--paper); border: 2px solid var(--nh-blue-deep); }
.dce-active-chips__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--barn-red); margin-right: 4px; }
.dce-active-chips__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dce-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--cream); border: 1.5px solid var(--nh-blue-deep); color: var(--nh-blue-deep); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-decoration: none; transition: background .12s ease, color .12s ease, transform .12s ease; }
.dce-chip:hover { background: var(--barn-red); border-color: var(--barn-red-deep); color: var(--cream); transform: translate(-1px, -1px); }
.dce-chip__x { font-size: 14px; line-height: 1; opacity: 0.7; font-family: var(--font-mono); }
.dce-chip:hover .dce-chip__x { opacity: 1; }
.dce-chip--clear { background: transparent; border-style: dashed; font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.12em; }
.dce-chip--clear:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* ---------- Primary attachment filters ("What do you have?" / "What kind of work?") ---------- */
.dce-filter--primary { background: var(--paper); border: 1.5px solid var(--nh-blue-deep); padding: 12px 14px; margin: 12px 0 !important; }
.dce-filter--primary > .dce-filter__summary { color: var(--nh-blue-deep); font-size: 14px; }
.dce-filter--primary > .dce-filter__summary::after { color: var(--barn-red); }
.dce-filter__hint { margin: 4px 0 8px; font-family: var(--font-body); font-size: 12px; line-height: 1.4; color: var(--ink-soft); font-style: italic; text-transform: none; letter-spacing: normal; }
.dce-filter__optional { font-style: italic; font-weight: 400; color: var(--ink-soft); font-size: 11px; text-transform: lowercase; letter-spacing: normal; }
.dce-filter__list--tall { max-height: 320px !important; }

/* ---------- Tree-style filter (Mount > Type) ---------- */
.dce-filter__tree { list-style: none; margin: 0; padding: 0; }
.dce-tree__item { margin: 0; padding: 0; border-top: 1px solid var(--rule-soft, #e7e2d6); }
.dce-tree__item:first-child { border-top: 0; }

.dce-tree__group > summary { list-style: none; cursor: pointer; }
.dce-tree__group > summary::-webkit-details-marker { display: none; }

.dce-tree__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--nh-blue-deep, #0f2c4d);
  user-select: none;
}
.dce-tree__head:hover { background: rgba(168, 50, 50, 0.06); color: var(--barn-red, #a83232); }
.dce-tree__group[open] > .dce-tree__head { color: var(--barn-red, #a83232); }

.dce-tree__name { flex: 1 1 auto; }
.dce-tree__empty { margin: 4px 0 8px 16px; font-size: 12px; color: var(--ink-soft, #6b6b6b); font-style: italic; }

.dce-tree__caret {
  flex: 0 0 auto;
  width: 14px; height: 14px;
  position: relative;
  margin-left: 2px;
  opacity: 0.55;
  transition: transform 0.15s ease;
}
.dce-tree__caret::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translate(-65%, -50%) rotate(-45deg);
}
.dce-tree__group[open] > .dce-tree__head .dce-tree__caret {
  transform: rotate(90deg);
}

.dce-tree__sub {
  list-style: none;
  margin: 0 0 6px 0;
  padding: 2px 0 4px 28px;
  border-left: 2px solid var(--barn-red, #a83232);
  margin-left: 10px;
}
.dce-tree__sub li { margin: 0; }
.dce-tree__sub label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  font-size: 13px;
  color: var(--ink, #2a2a2a);
  cursor: pointer;
  border-radius: 3px;
}
.dce-tree__sub label:hover { background: rgba(0,0,0,0.03); }
.dce-tree__sub label > span:first-of-type { flex: 1 1 auto; }

/* ---------- Filter sidebar ---------- */
.dce-filters { flex: 0 0 280px; width: 280px; position: sticky; top: 20px; }
.dce-filters__form { background: var(--cream); border: 2px solid var(--nh-blue-deep); box-shadow: var(--shadow-hard); padding: 16px 14px; }
.dce-filters__head { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--nh-blue-deep); }
.dce-filters__head .eyebrow { font-size: 10px; letter-spacing: 0.16em; color: var(--barn-red); }
.dce-filters__title { font-size: 28px; color: var(--nh-blue-deep); margin: 2px 0 0; }

.dce-cat-tree { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed rgba(26,24,20,0.3); }
.dce-cat-tree__head { display: block; font-size: 10px; letter-spacing: 0.14em; color: var(--ink-soft); margin-bottom: 6px; text-transform: uppercase; }
.dce-cat-tree ul { list-style: none; padding: 0; margin: 0; }
.dce-cat-tree__item { margin: 2px 0; }
.dce-cat-tree__link { display: block; padding: 5px 8px; font-family: var(--font-display); font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); border-left: 3px solid transparent; }
.dce-cat-tree__link:hover { color: var(--nh-blue-deep); background: var(--hay); }
.dce-cat-tree__link.is-current { color: var(--cream); background: var(--nh-blue-deep); border-left-color: var(--barn-red); }
.dce-cat-tree__sub { padding-left: 14px !important; margin-top: 4px; border-left: 1px dashed rgba(26,24,20,0.3); }
.dce-cat-tree__sub li a { display: block; padding: 3px 8px; font-size: 13px; color: var(--ink-soft); font-family: var(--font-body); }
.dce-cat-tree__sub li a:hover { color: var(--barn-red); }
.dce-cat-tree__sub li a.is-current { color: var(--barn-red); font-weight: 600; }

.dce-filter { margin: 10px 0; border-top: 1px dashed rgba(26,24,20,0.25); padding-top: 10px; }
.dce-filter:first-of-type { border-top: 0; padding-top: 0; }
.dce-filter__summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 14px; padding: 4px 0; }
.dce-filter__summary::-webkit-details-marker { display: none; }
.dce-filter__summary::after { content: '+'; font-family: var(--font-mono); color: var(--barn-red); font-size: 18px; }
.dce-filter[open] .dce-filter__summary::after { content: '−'; }
.dce-filter__count { background: var(--barn-red); color: var(--cream); border-radius: 999px; padding: 1px 8px; font-size: 11px; margin-left: 8px; }
.dce-filter__list { list-style: none; padding: 6px 0 0; margin: 0; max-height: 240px; overflow-y: auto; }
.dce-filter__list li { margin: 2px 0; }
.dce-filter__list label { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-size: 13px; cursor: pointer; }
.dce-filter__list label:hover { background: var(--hay); }
.dce-filter__list label input { accent-color: var(--barn-red); }
.dce-filter__list label > span:nth-child(2) { flex: 1; }
.dce-filter__n { font-family: var(--font-mono); color: var(--ink-soft); font-size: 11px; }

.dce-filter__price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 0; }
.dce-filter__price label { display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.dce-filter__price input { font-family: var(--font-body); font-size: 14px; padding: 6px 8px; border: 1px solid var(--nh-blue-deep); margin-top: 2px; background: var(--bone); }

.dce-filter--toggle { padding: 8px 10px; background: var(--hay); border: 2px dashed var(--barn-red); border-radius: 0; }
.dce-filter__toggle { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; }
.dce-filter__toggle input { margin-top: 3px; accent-color: var(--barn-red); }
.dce-filter__toggle strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; color: var(--barn-red-deep); }
.dce-filter__toggle em { font-style: normal; font-size: 12px; color: var(--ink-soft); }

.dce-filters__foot { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--nh-blue-deep); }
.dce-filters__foot .btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink-soft); padding: 10px 18px; text-align: center; text-transform: uppercase; font-family: var(--font-display); letter-spacing: 0.06em; font-size: 13px; text-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.dce-filters__foot .btn-ghost:hover { background: var(--paper); color: var(--barn-red); }

/* ---------- Product cards on archive ---------- */
.dce-product-card { background: var(--cream); border: 2px solid var(--nh-blue-deep); box-shadow: var(--shadow-hard); padding: 0 !important; transition: transform .15s ease, box-shadow .15s ease; overflow: hidden; }
.dce-product-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--nh-blue-deep); }
.dce-product-card__img { margin: 0 !important; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); display: block; }
.dce-product-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dce-product-card__title { font-size: 20px !important; color: var(--nh-blue-deep); padding: 14px 16px 4px; margin: 0 !important; }
.dce-product-card .woocommerce-Price-amount, .dce-product-card .price { display: block; font-family: var(--font-mono); font-size: 18px; color: var(--barn-red); padding: 0 16px 8px; font-weight: 700; }
.dce-product-card__excerpt { padding: 0 16px 10px; font-size: 13px; color: var(--ink-soft); }
.dce-product-card__cat { padding: 0 16px 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

/* Badges on cards */
.dce-card-badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.dce-product-card .dce-product-card__img { position: relative; }
.dce-badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 8px; font-weight: 700; background: var(--nh-blue-deep); color: var(--cream); border: 1px solid var(--nh-blue-deep); }
.dce-badge--lot { background: var(--cream); color: var(--nh-blue-deep); border-color: var(--nh-blue-deep); }
.dce-badge--bargain { background: var(--barn-red); color: var(--cream); border-color: var(--barn-red-deep); }
.dce-badge--cond { background: var(--hay); color: var(--ink); border-color: var(--khaki); }

/* ---------- Single product page ---------- */
.single-product-page { padding: 24px 32px 80px; }
.single-product-page__breadcrumbs { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 14px; border-bottom: 1px solid var(--khaki); margin-bottom: 30px; }
.single-product-page__cols { gap: 48px !important; align-items: flex-start !important; }
.dce-call-for-price { font-family: var(--font-mono); font-size: 0.95em; color: var(--ink-soft); font-style: italic; }
.dce-breadcrumbs a { color: var(--nh-blue-deep); text-decoration: none; }
.dce-breadcrumbs a:hover { color: var(--barn-red); text-decoration: underline; }
.dce-breadcrumbs span { opacity: 0.55; margin: 0 6px; }
.single-product-page__gallery { border: 2px solid var(--nh-blue-deep); box-shadow: var(--shadow-hard); background: var(--cream); padding: 12px; }
.single-product-page__summary { background: var(--cream); border: 2px solid var(--nh-blue-deep); box-shadow: var(--shadow-red); padding: 28px !important; }
.single-product-page__title { font-size: clamp(32px, 4vw, 52px) !important; color: var(--nh-blue-deep); margin: 8px 0 14px !important; }
.dce-product-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 18px; }
.single-product-page__price { font-family: var(--font-mono) !important; font-size: 32px !important; color: var(--barn-red) !important; font-weight: 700; margin: 12px 0 !important; }
.single-product-page__excerpt { color: var(--ink-soft); font-size: 16px; line-height: 1.6; margin: 12px 0 20px; }
.single-product-page__stockline { margin-top: 14px !important; font-size: 12px; color: var(--barn-red); letter-spacing: 0.1em; text-align: center; }

.dce-specs { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 14px; border: 2px solid var(--nh-blue-deep); }
.dce-specs caption { text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--barn-red); text-transform: uppercase; padding: 8px 12px; background: var(--paper); border-bottom: 2px solid var(--nh-blue-deep); caption-side: top; }
.dce-specs th, .dce-specs td { padding: 8px 12px; text-align: left; border-bottom: 1px dashed rgba(26,24,20,0.2); }
.dce-specs th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px; color: var(--ink-soft); width: 40%; background: var(--paper); }
.dce-specs td { font-family: var(--font-mono); color: var(--ink); }
.dce-specs tr:last-child th, .dce-specs tr:last-child td { border-bottom: 0; }

/* ---------- Variation dropdown (no-checkout showcase mode) ---------- */
.dce-add-to-cart { margin: 18px 0 14px; }
.dce-add-to-cart .variations_form { font-family: var(--font-body); }
.dce-add-to-cart table.variations {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
}
.dce-add-to-cart table.variations th,
.dce-add-to-cart table.variations td {
  padding: 10px 0;
  vertical-align: middle;
}
.dce-add-to-cart table.variations th {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
  color: var(--ink-soft);
  width: 40%;
  text-align: left;
}
.dce-add-to-cart table.variations select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--nh-blue-deep);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M6 8L0 0h12z' fill='%230F2647'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.dce-add-to-cart .reset_variations {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--barn-red);
  text-decoration: none;
}
.dce-add-to-cart .reset_variations:hover { text-decoration: underline; }
.dce-add-to-cart .single_variation_wrap {
  display: none !important;
}
.dce-add-to-cart .woocommerce-variation-price { font-family: var(--font-display); font-size: 24px; color: var(--barn-red); font-weight: 700; margin-bottom: 8px; }
.dce-add-to-cart .woocommerce-variation-availability { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nh-blue-deep); }
/* Hide description in the right column — it gets relocated under the gallery via JS */
.dce-add-to-cart .woocommerce-variation-description { display: none !important; }

/* Variation pills — append price to each button */
.dce-pill-price {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--barn-red);
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin-left: 6px;
  font-weight: 400;
}
/* Variation Swatches for WooCommerce (cfvsw) — make room for the price chip */
.cfvsw-swatches-option {
  min-width: auto !important;
  padding: 6px 12px !important;
  height: auto !important;
}
.cfvsw-swatches-option .cfvsw-swatch-inner {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  min-width: auto !important;
  min-height: auto !important;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cfvsw-swatches-container { gap: 8px !important; flex-wrap: wrap !important; }
.dce-add-to-cart table.variations select {
  /* widen so "CTRAC60 · $12.00" fits */
  min-width: 220px;
}

/* Relocated variation description — injected under the product gallery */
.dce-variation-info-slot { margin-top: 18px; }
.dce-variation-injected {
  background: var(--cream);
  border: 2px solid var(--nh-blue-deep);
  box-shadow: var(--shadow-hard);
  padding: 20px 24px;
}
.dce-variation-injected__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--barn-red);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(15, 38, 71, 0.25);
}
.dce-variation-injected__body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.dce-variation-injected__body p { margin: 0 0 10px; }
.dce-variation-injected__body p:last-child { margin-bottom: 0; }
.dce-variation-injected__body ul, .dce-variation-injected__body ol { margin: 0 0 10px 18px; }
.dce-variation-injected__body h3, .dce-variation-injected__body h4 {
  font-family: var(--font-display);
  color: var(--nh-blue-deep);
  margin: 0 0 8px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dce-variation-injected__body table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.dce-variation-injected__body th, .dce-variation-injected__body td {
  padding: 8px 12px; border-bottom: 1px solid rgba(15, 38, 71, 0.12); text-align: left;
  font-size: 14px;
}
.dce-variation-injected__body th { font-family: var(--font-display); color: var(--nh-blue-deep); }
/* Hide checkout-only bits on showcase site */
.dce-add-to-cart .quantity,
.dce-add-to-cart .woocommerce-variation-add-to-cart,
.dce-add-to-cart button.single_add_to_cart_button {
  display: none !important;
}
/* Single_variation box is hidden entirely — price + desc are relocated. */
.dce-add-to-cart .single_variation { display: none !important; }

.single-product-page__tabs { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--nh-blue-deep); }
.single-product-page__related { margin-top: 64px; padding-top: 32px; border-top: 2px solid var(--nh-blue-deep); }
.single-product-page__related-title { font-size: clamp(28px, 3.5vw, 44px) !important; color: var(--nh-blue-deep); }
.single-product-page__related-title .eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--barn-red); text-transform: none; font-weight: 400; }

/* ---------- Mobile filters toggle (hidden on desktop) ---------- */
.dce-filters-toggle { display: none; }
.dce-filters__close { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .archive-shop__body { flex-direction: column !important; }
  .single-product-page__cols { flex-direction: column !important; }

  /* Mobile filter toggle button — sits above the grid */
  .dce-filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--nh-blue-deep);
    color: #fff;
    border: 2px solid var(--nh-blue-deep);
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 16px;
    align-self: flex-start;
  }
  .dce-filters-toggle__icon { display: inline-flex; }
  .dce-filters-toggle__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background: var(--barn-red);
    color: #fff;
    border-radius: 11px;
    padding: 0 8px;
    font-size: 12px;
  }

  /* Sidebar becomes an off-canvas drawer */
  .dce-filters {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(92vw, 380px);
    z-index: 9999;
    overflow-y: auto;
    flex: none;
    transform: translateX(-100%);
    transition: transform .25s ease;
    background: var(--cream, #f5f1e8);
    box-shadow: 6px 0 24px rgba(0,0,0,.25);
  }
  .dce-filters.is-open { transform: translateX(0); }
  .dce-filters__form {
    border: 0 !important;
    box-shadow: none !important;
    padding: 18px !important;
    min-height: 100%;
  }
  .dce-filters__close {
    display: inline-flex;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--nh-blue-deep);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--nh-blue-deep);
  }

  /* Scrim */
  body.dce-filters-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 38, 71, 0.55);
    z-index: 9998;
  }
  body.dce-filters-open { overflow: hidden; }

  /* Call dropdown on mobile: teleported to <body> by JS and shown as a
     bottom sheet over a dim backdrop. Always on top, always visible. */
  body.dce-call-dd-open { overflow: hidden; }
  body.dce-call-dd-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99998;
    animation: dceCallDdFade 0.18s ease;
  }
  @keyframes dceCallDdFade { from { opacity: 0; } to { opacity: 1; } }

  .dce-call-dd { position: static; }
  .dce-call-dd__menu {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-width: 0;
    width: auto;
    max-height: 75vh;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4), var(--shadow-hard);
    animation: dceCallDdSlide 0.22s cubic-bezier(.2,.8,.2,1);
  }
  @keyframes dceCallDdSlide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

  /* When teleported to <body>, the menu uses these same fixed-position
     rules — the .dce-call-dd__menu--ported class guarantees they apply
     regardless of where the menu currently lives in the DOM. */
  .dce-call-dd__menu--ported {
    position: fixed !important;
    top: auto !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    min-width: 0 !important;
    width: auto !important;
    max-height: 75vh !important;
    overflow-y: auto !important;
    z-index: 99999 !important;
  }
}

/* Belt-and-braces: teleported menu always uses these rules (even outside
   the @media block — the class is only added when teleported, which only
   happens on narrow screens). Force with !important so the desktop
   .dce-call-dd__menu base rule (with min-width 320px, right:0) can't win. */
.dce-call-dd__menu--ported {
  position: fixed !important;
  top: auto !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  max-height: 75vh !important;
  overflow-y: auto !important;
  z-index: 99999 !important;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4), var(--shadow-hard) !important;
  animation: dceCallDdSlide 0.22s cubic-bezier(.2,.8,.2,1);
}
@keyframes dceCallDdSlide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Backdrop always (outside media query too — body class only added on mobile). */
body.dce-call-dd-open { overflow: hidden; }
body.dce-call-dd-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99998;
  animation: dceCallDdFade 0.18s ease;
}
@keyframes dceCallDdFade { from { opacity: 0; } to { opacity: 1; } }


/* ==========================================================
   DCE Lawn & Garden filter — segmented toggle + chip selectors
   ========================================================== */

/* Residential / Commercial segmented toggle */
.dce-filter--segmented {
  background: var(--nh-blue-deep);
  border: 1.5px solid var(--nh-blue-deep);
  padding: 14px 14px 12px;
  margin: 0 0 14px !important;
  color: var(--cream);
}
.dce-filter--segmented .dce-filter__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hay);
  margin-bottom: 4px;
}
.dce-filter--segmented .dce-filter__q {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--cream);
  margin-bottom: 10px;
  line-height: 1.1;
}
.dce-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1.5px solid var(--cream);
  background: var(--nh-blue-deep);
  position: relative;
}
.dce-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.dce-segmented label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 6px 10px;
  cursor: pointer;
  background: transparent;
  color: var(--cream);
  text-align: center;
  transition: background .12s ease, color .12s ease;
  border-right: 1.5px solid var(--cream);
}
.dce-segmented label:last-of-type { border-right: 0; }
.dce-segmented label strong {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1;
}
.dce-segmented label em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.7;
}
.dce-segmented input:checked + label {
  background: var(--barn-red);
  color: var(--cream);
}
.dce-segmented input:checked + label em { opacity: 0.9; }
.dce-segmented label:hover { background: rgba(244,239,228,0.08); }
.dce-segmented input:checked + label:hover { background: var(--barn-red); }

/* Two-column list variant for compact checkbox groups (deck size, HP) */
.dce-filter__list--cols2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 4px;
  max-height: none !important;
}
.dce-filter__list--cols2 li { margin: 0; }
.dce-filter__list--cols2 label {
  padding: 3px 2px;
  font-size: 13px;
  gap: 4px;
  white-space: nowrap;
}
.dce-filter__list--cols2 label > span:nth-child(2) {
  flex: 1;
  white-space: nowrap;
}

/* Legacy chip styles kept for any other consumer; deck/HP no longer use them. */
.dce-deck-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
  gap: 5px;
  padding: 4px 0 2px;
}
.dce-deck-chips input { position: absolute; opacity: 0; pointer-events: none; }
.dce-deck-chips label {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  padding: 5px 6px 4px;
  border: 1.5px solid var(--nh-blue-deep);
  background: var(--bone);
  color: var(--nh-blue-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background .12s ease, color .12s ease, transform .1s ease;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}
.dce-deck-chips label .unit { font-size: 9px; opacity: 0.6; margin-left: 1px; }
.dce-deck-chips label:hover { background: var(--hay); }
.dce-deck-chips input:checked + label {
  background: var(--barn-red);
  color: var(--cream);
  border-color: var(--barn-red-deep);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--nh-blue-deep);
}
.dce-deck-chips label.is-na {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* Series / Engine tags */
.dce-series-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid rgba(26,24,20,0.18);
  font-style: normal;
  vertical-align: 2px;
}
.dce-cat-n {
  display: inline-block;
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 400;
}

/* Lawn-mode explainer note */
.dce-lg-note {
  margin-top: 18px;
  padding: 12px;
  background: var(--paper);
  border: 1.5px dashed var(--khaki);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.dce-lg-note strong {
  color: var(--barn-red);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  display: block;
  margin-bottom: 4px;
}

/* Tier visibility — when the form has a tier active, rows/chips tagged for
   the opposite tier are removed from view. Driven by JS adding
   .is-tier-residential or .is-tier-commercial to .dce-filters__form. */
.dce-filters__form.is-tier-residential [data-tier="commercial"] { display: none !important; }
.dce-filters__form.is-tier-commercial  [data-tier="residential"] { display: none !important; }


/* Zero-count filter option — visible but disabled/grayed.
   Triggered by .dce-filter__list li.is-empty (renderer adds this when the
   contextual count is 0 AND the option isn't currently selected). */
.dce-filter__list li.is-empty label,
.dce-tree__sub li.is-empty label {
  opacity: 0.42;
  cursor: not-allowed;
}
.dce-filter__list li.is-empty label input,
.dce-tree__sub li.is-empty label input {
  pointer-events: none;
}
.dce-filter__list li.is-empty .dce-filter__n,
.dce-tree__sub li.is-empty .dce-filter__n {
  font-weight: 600;
}


/* ---------- Tractor mode: category picker (replaces HP filter) ---------- */
.dce-filter--tractor-cats .dce-filter__list--cats {
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
  max-height: none;
  display: grid;
  gap: 4px;
}
.dce-filter--tractor-cats .dce-filter__list--cats li { margin: 0; }
.dce-cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nh-blue-deep);
  text-decoration: none;
  border: 1.5px solid rgba(27,58,107,0.18);
  background: #fff;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.dce-cat-link:hover {
  background: var(--hay, #f4efe4);
  border-color: var(--nh-blue-deep);
}
.dce-cat-link__mark {
  width: 14px;
  height: 14px;
  border: 2px solid var(--nh-blue-deep);
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
}
.dce-cat-link.is-current {
  background: var(--nh-blue-deep);
  color: #fff;
  border-color: var(--nh-blue-deep);
}
.dce-cat-link.is-current .dce-cat-link__mark {
  background: var(--barn-red);
  border-color: #fff;
  box-shadow: inset 0 0 0 2px var(--nh-blue-deep);
}
.dce-cat-link.is-current .dce-filter__n {
  color: rgba(255,255,255,0.75);
}
.dce-cat-link__label { flex: 1; }


/* Close X button — only visible on the teleported mobile sheet */
.dce-call-dd__close {
  display: none;
  position: absolute;
  top: 6px;
  right: 8px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--ink, #29261b);
  cursor: pointer;
  padding: 0;
  z-index: 1;
}
.dce-call-dd__close:hover { color: var(--barn-red, #A8321F); }
.dce-call-dd__menu--ported .dce-call-dd__close { display: block; }
.dce-call-dd__menu--ported .dce-call-dd__head { padding-right: 48px; }


/* Hide per-option quantity counts in all filter modes (attachment tree,
   category pickers, standard pa_* checkboxes). The product data has many
   size-variant SKUs entered as separate products, so the raw counts read
   higher than the number of distinct models a shopper expects — cleaner to
   omit them than to show confusing numbers. */
.dce-filter__n { display: none !important; }
