/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/


/* D.E.C. global header and custom-page spacing fixes. */

/* WoodMart shows an empty Categories tab when no category menu is assigned. */
@media (max-width: 1024px) {
  .mobile-nav .wd-nav-mob-tab .mobile-categories-title,
  .mobile-nav > .create-nav-msg {
    display: none !important;
  }

  .mobile-nav .wd-nav-mob-tab .mobile-pages-title {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }
}

/* Custom D.E.C. pages provide their own section spacing and hero boundaries. */
body.page .wd-content-layout:has(.site-content [class^="dec-"]) {
  padding-block: 0 !important;
}

/* D.E.C. WooCommerce product-card organization and accessible orange labels. */
html body .wd-products {
  align-items: stretch;
}

html body .wd-products .product-grid-item {
  display: flex;
}

html body .wd-products .product-grid-item .wd-product-wrapper {
  width: 100%;
}

html body .wd-products .product-grid-item .wd-product-thumb {
  flex-basis: 230px;
  height: 230px;
  padding: 18px;
}

html body .wd-products .product-grid-item .product-element-bottom {
  padding: 20px !important;
}

html body .wd-products .product-grid-item .wd-product-brands-links {
  min-height: 14px;
  font-size: 10px;
  line-height: 1.35;
}

html body .wd-products .product-grid-item .wd-entities-title {
  min-height: 50px;
  margin: 8px 0 6px;
  font-size: 19px;
  line-height: 1.26;
}

html body .wd-products .product-grid-item .wd-product-sku {
  min-height: 14px;
  font-size: 10px;
}

html body .wd-products .product-grid-item .hover-content.wd-more-desc {
  margin: 15px 0;
}

html body .wd-products .product-grid-item .hover-content-inner li {
  min-height: 56px;
  padding-top: 10px;
  padding-bottom: 10px;
}

html body .wd-products .product-grid-item .price {
  font-size: 26px;
}

html body .wd-products .product-grid-item .dec-loop-commercial {
  margin: 13px 0 14px;
}

html body .wd-products .product-grid-item .wd-bottom-actions,
html body .wd-products .product-grid-item.outofstock .wd-bottom-actions,
html body .wd-products .product-grid-item:not(.purchasable) .wd-bottom-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

html body .wd-products .product-grid-item.outofstock .wrap-quickview-button,
html body .wd-products .product-grid-item:not(.purchasable) .wrap-quickview-button {
  display: block !important;
}

html body .wd-products .product-grid-item .wd-add-btn > a {
  min-height: 46px;
  border-color: #C2410C !important;
  background: #C2410C !important;
  color: #FFFFFF !important;
}

html body .wd-products .product-grid-item .wd-quick-view-btn > a {
  min-height: 46px;
  border-color: #AEBBC7 !important;
  background: #FFFFFF !important;
  color: #123B5D !important;
}

html body .wd-products .product-grid-item.outofstock .wd-add-btn .wd-action-text::after,
html body .wd-products .product-grid-item:not(.purchasable) .wd-add-btn .wd-action-text::after {
  content: "Check availability" !important;
}

html body .wd-products .product-grid-item .dec-loop-type-badge,
html body .wd-products .product-grid-item .onsale.product-label,
html body .wd .product-label.onsale {
  background: #C2410C !important;
  color: #FFFFFF !important;
}

/* Orange interactive surfaces use white text on the darker brand orange. */
html body .single_add_to_cart_button,
html body .checkout-button,
html body .dec-single-request,
html body .dec-product-decision-cta,
html body .dec-product-support-cta,
html body .dec-product-fit-card a,
html body .dec-shipping-primary,
html body .dec-related-card-primary,
html body .dec-mfg-btn,
html body .woocommerce-pagination .current,
html body .wd-pagination .current {
  border-color: #C2410C !important;
  background: #C2410C !important;
  color: #FFFFFF !important;
}

html body.wp-theme-woodmart .whb-general-header .wd-header-search > a::after,
html body.wp-theme-woodmart .whb-header-bottom .wd-nav-main > li:hover > a,
html body.wp-theme-woodmart .whb-header-bottom .wd-nav-main > li#menu-item-6612 > a,
html body.wp-theme-woodmart .whb-general-header .wd-header-cart .wd-tools-count {
  background: #C2410C !important;
  color: #FFFFFF !important;
}

@media (max-width: 767px) {
  html body .wd-products .product-grid-item .wd-product-thumb {
    flex-basis: 220px;
    height: 220px;
    padding: 15px;
  }

  html body .wd-products .product-grid-item .product-element-bottom {
    padding: 18px !important;
  }

  html body .wd-products .product-grid-item .wd-entities-title {
    min-height: 0;
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  html body .wd-products .product-grid-item .wd-bottom-actions,
  html body .wd-products .product-grid-item.outofstock .wd-bottom-actions,
  html body .wd-products .product-grid-item:not(.purchasable) .wd-bottom-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Product-page Buy Now action. */
html body.single-product.dec-v13-product-page .summary .dec-single-support.dec-buy-now {
  border-color: #C2410C !important;
  background: #C2410C !important;
  color: #FFFFFF !important;
}

html body.single-product.dec-v13-product-page .summary .dec-single-support.dec-buy-now::before {
  content: "⚡" !important;
  color: #FFFFFF !important;
}

html body.single-product.dec-v13-product-page .summary .dec-single-support.dec-buy-now:hover,
html body.single-product.dec-v13-product-page .summary .dec-single-support.dec-buy-now:focus-visible {
  border-color: #9A3412 !important;
  background: #9A3412 !important;
  color: #FFFFFF !important;
}

html body.single-product.dec-v13-product-page .summary .dec-single-support.dec-buy-now[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
}

/* Recommended Machinery carousel: paired, quiet navigation controls. */
html body.single-product .dec-v13-related .wd-carousel-inner {
  position: relative;
  overflow: visible;
}

html body.single-product .dec-v13-related .wd-nav-arrows.wd-pos-sep {
  pointer-events: none;
}

html body.single-product .dec-v13-related .wd-nav-arrows.wd-pos-sep .wd-btn-arrow {
  top: -78px !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border: 1px solid #D5DEE5 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 8px 20px rgba(11, 31, 51, .10) !important;
  color: #0B1F33 !important;
  opacity: 1 !important;
  pointer-events: auto;
  transform: none !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color .18s ease, border-color .18s ease,
    color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

html body.single-product .dec-v13-related .wd-nav-arrows.wd-pos-sep .wd-arrow-inner {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  color: inherit !important;
  opacity: 1 !important;
}

html body.single-product .dec-v13-related .wd-nav-arrows.wd-pos-sep .wd-arrow-inner::after {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  color: inherit !important;
  font-family: Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

html body.single-product .dec-v13-related .wd-nav-arrows.wd-pos-sep .wd-prev .wd-arrow-inner::after {
  content: "\2190" !important;
}

html body.single-product .dec-v13-related .wd-nav-arrows.wd-pos-sep .wd-next .wd-arrow-inner::after {
  content: "\2192" !important;
}

html body.single-product .dec-v13-related .wd-nav-arrows.wd-pos-sep .wd-prev {
  right: 50px !important;
  left: auto !important;
}

html body.single-product .dec-v13-related .wd-nav-arrows.wd-pos-sep .wd-next {
  right: 0 !important;
  left: auto !important;
}

html body.single-product .dec-v13-related .dec-v13-view-all {
  right: 112px !important;
}

html body.single-product .dec-v13-related .wd-nav-arrows.wd-pos-sep .wd-btn-arrow:hover,
html body.single-product .dec-v13-related .wd-nav-arrows.wd-pos-sep .wd-btn-arrow:focus-visible {
  border-color: #0B1F33 !important;
  background: #0B1F33 !important;
  box-shadow: 0 10px 24px rgba(11, 31, 51, .18) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
}

html body.single-product .dec-v13-related .wd-nav-arrows.wd-pos-sep .wd-btn-arrow:focus-visible {
  outline: 2px solid #F97316 !important;
  outline-offset: 2px !important;
}

html body.single-product .dec-v13-related .wd-nav-arrows.wd-pos-sep .wd-btn-arrow.wd-disabled,
html body.single-product .dec-v13-related .wd-nav-arrows.wd-pos-sep .wd-btn-arrow[aria-disabled="true"] {
  border-color: #D5DEE5 !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 8px 20px rgba(11, 31, 51, .10) !important;
  color: #0B1F33 !important;
  cursor: default !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Keep the second machinery set visible when the carousel advances. */
html body.single-product .dec-v13-related .wd-carousel-item > .dec-v13-related-extra {
  display: flex !important;
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  html body.single-product .dec-v13-related .wd-nav-arrows.wd-pos-sep .wd-btn-arrow {
    top: -30px !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 10px !important;
  }

  html body.single-product .dec-v13-related .wd-nav-arrows.wd-pos-sep .wd-arrow-inner::after {
    font-size: 17px !important;
  }

  html body.single-product .dec-v13-related .wd-nav-arrows.wd-pos-sep .wd-prev {
    right: 46px !important;
    left: auto !important;
  }

  html body.single-product .dec-v13-related .wd-nav-arrows.wd-pos-sep .wd-next {
    right: 0 !important;
    left: auto !important;
  }

  html body.single-product .dec-v13-related .dec-v13-view-all {
    right: auto !important;
  }
}

/* Homepage equipment journal placeholder carousel. */
#dec-home-blog[hidden] {
  display: none !important;
}

.dec-home-blog {
  overflow: hidden;
  border-top: 1px solid #D5E0E8;
  background: #EDF2F6;
  color: #20262E;
}

.dec-home-blog__container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 72px 78px;
}

.dec-home-blog__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 32px;
}

.dec-home-blog__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #C2410C;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.dec-home-blog__header h2 {
  margin: 0;
  color: #0B1F33;
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.dec-home-blog__header p {
  max-width: 650px;
  margin: 14px 0 0;
  color: #66727E;
  font-size: 16px;
  line-height: 1.6;
}

.dec-home-blog__controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.dec-home-blog__count {
  min-width: 64px;
  margin-right: 6px;
  color: #66727E;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.dec-home-blog__arrow {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid #123B5D;
  border-radius: 3px;
  background: #0B1F33;
  box-shadow: 0 6px 16px rgba(11, 31, 51, .16);
  color: #FFFFFF;
  font-size: 18px;
  line-height: 1;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.dec-home-blog__arrow:hover,
.dec-home-blog__arrow:focus-visible {
  border-color: #123B5D;
  background: #123B5D;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.dec-home-blog__arrow:focus-visible {
  outline: 2px solid rgba(18, 59, 93, .38);
  outline-offset: 2px;
}

.dec-home-blog__arrow:disabled {
  border-color: #AEBBC7;
  background: #DCE5EC;
  box-shadow: none;
  color: #66727E;
  cursor: default;
  transform: none;
}

.dec-home-blog__track {
  display: grid;
  grid-auto-columns: calc((100% - 48px) / 3);
  grid-auto-flow: column;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 14px;
  scroll-behavior: smooth;
  scroll-padding-inline: 2px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.dec-home-blog__track::-webkit-scrollbar {
  display: none;
}

.dec-home-blog__card {
  display: flex;
  min-width: 0;
  min-height: 470px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #CFDAE3;
  border-top: 4px solid #123B5D;
  border-radius: 3px;
  background: #FFFFFF;
  box-shadow: 0 12px 30px rgba(11, 31, 51, .07);
  scroll-snap-align: start;
}

.dec-home-blog__media {
  position: relative;
  display: grid;
  height: 220px;
  overflow: hidden;
  flex: 0 0 220px;
  place-items: center;
  border-bottom: 1px solid #D9E2E9;
  background: #F7F9FB;
}

.dec-home-blog__media::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  background: #F97316;
  content: "";
}

.dec-home-blog__media img {
  width: 100%;
  height: 100%;
  padding: 20px;
  object-fit: contain;
  transition: transform .25s ease;
}

.dec-home-blog__media--cover img {
  padding: 0;
  object-fit: cover;
}

.dec-home-blog__card:hover .dec-home-blog__media img {
  transform: scale(1.025);
}

.dec-home-blog__media > span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 10px;
  background: #C2410C;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
}

.dec-home-blog__content {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  padding: 24px;
  flex-direction: column;
}

.dec-home-blog__category {
  margin: 0 0 10px;
  color: #C2410C;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.dec-home-blog__content h3 {
  margin: 0;
  color: #0B1F33;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.22;
}

.dec-home-blog__content > p:not(.dec-home-blog__category) {
  margin: 13px 0 22px;
  color: #66727E;
  font-size: 14px;
  line-height: 1.65;
}

.dec-home-blog__coming {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #123B5D;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dec-home-blog__coming::before {
  width: 18px;
  height: 2px;
  background: #F97316;
  content: "";
}

@media (max-width: 900px) {
  .dec-home-blog__track {
    grid-auto-columns: calc((100% - 20px) / 2);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .dec-home-blog__container {
    width: min(100% - 32px, 1120px);
    padding-block: 56px 62px;
  }

  .dec-home-blog__header {
    display: block;
    margin-bottom: 24px;
  }

  .dec-home-blog__header h2 {
    font-size: 32px;
  }

  .dec-home-blog__header p {
    font-size: 15px;
  }

  .dec-home-blog__controls {
    justify-content: flex-end;
    margin-top: 20px;
  }

  .dec-home-blog__count {
    margin-right: auto;
  }

  .dec-home-blog__track {
    grid-auto-columns: calc(100% - 34px);
    gap: 14px;
  }

  .dec-home-blog__card {
    min-height: 458px;
  }

  .dec-home-blog__media {
    height: 210px;
    flex-basis: 210px;
  }

  .dec-home-blog__content {
    padding: 22px;
  }

  .dec-home-blog__content h3 {
    font-size: 21px;
  }
}

/* Homepage equipment journal V2: compact dealer knowledge center. */
html body .dec-home-blog {
  border-top: 4px solid #F97316;
  background: linear-gradient(to bottom, #0B1F33 0 230px, #EDF2F6 230px 100%);
}

html body .dec-home-blog__container {
  width: min(1180px, calc(100% - 48px));
  padding-block: 52px 62px;
}

html body .dec-home-blog__header {
  align-items: flex-end;
  margin-bottom: 28px;
}

html body .dec-home-blog__eyebrow {
  margin-bottom: 8px;
  color: #FF8A3D;
  font-size: 11px;
}

html body .dec-home-blog__header h2 {
  color: #FFFFFF;
  font-size: clamp(30px, 2.7vw, 40px);
  letter-spacing: -.03em;
}

html body .dec-home-blog__header p {
  max-width: 600px;
  margin-top: 10px;
  color: #B9C6D1;
  font-size: 15px;
}

html body .dec-home-blog__count {
  color: #B9C6D1;
}

html body .dec-home-blog .dec-home-blog__arrow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .44) !important;
  border-radius: 3px !important;
  background: rgba(255, 255, 255, .06) !important;
  box-shadow: none !important;
  color: #FFFFFF !important;
}

html body .dec-home-blog .dec-home-blog__arrow:hover,
html body .dec-home-blog .dec-home-blog__arrow:focus-visible {
  border-color: #F97316 !important;
  background: #F97316 !important;
  color: #0B1F33 !important;
}

html body .dec-home-blog .dec-home-blog__arrow:disabled {
  border-color: rgba(255, 255, 255, .18) !important;
  background: rgba(255, 255, 255, .035) !important;
  color: rgba(255, 255, 255, .36) !important;
}

html body .dec-home-blog__track {
  grid-auto-columns: calc((100% - 54px) / 4);
  gap: 18px;
  padding: 2px 2px 12px;
}

html body .dec-home-blog__card {
  min-height: 372px;
  border: 1px solid #CCD7E0;
  border-top: 3px solid #F97316;
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(11, 31, 51, .10);
}

html body .dec-home-blog__media {
  height: 150px;
  flex-basis: 150px;
  background: #F8FAFB;
}

html body .dec-home-blog__media::after {
  display: none;
}

html body .dec-home-blog__media img {
  padding: 14px;
}

html body .dec-home-blog__media--cover img {
  padding: 0;
}

html body .dec-home-blog__media > span {
  top: 11px;
  left: 11px;
  padding: 6px 8px;
  background: rgba(11, 31, 51, .94);
  font-size: 8px;
  letter-spacing: .12em;
}

html body .dec-home-blog__content {
  padding: 18px;
}

html body .dec-home-blog__category {
  margin-bottom: 8px;
  font-size: 9px;
}

html body .dec-home-blog__content h3 {
  font-size: 18px;
  letter-spacing: -.02em;
  line-height: 1.25;
}

html body .dec-home-blog__content > p:not(.dec-home-blog__category) {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 15px;
  font-size: 13px;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

html body .dec-home-blog__coming {
  gap: 6px;
  font-size: 9px;
  letter-spacing: .09em;
}

html body .dec-home-blog__coming::before {
  width: 14px;
}

@media (max-width: 1024px) {
  html body .dec-home-blog__track {
    grid-auto-columns: calc((100% - 36px) / 3);
  }
}

@media (max-width: 760px) {
  html body .dec-home-blog {
    background: linear-gradient(to bottom, #0B1F33 0 275px, #EDF2F6 275px 100%);
  }

  html body .dec-home-blog__container {
    width: min(100% - 32px, 1180px);
    padding-block: 42px 50px;
  }

  html body .dec-home-blog__header {
    margin-bottom: 22px;
  }

  html body .dec-home-blog__header h2 {
    font-size: 30px;
  }

  html body .dec-home-blog__header p {
    font-size: 14px;
    line-height: 1.5;
  }

  html body .dec-home-blog__controls {
    margin-top: 18px;
  }

  html body .dec-home-blog__track {
    grid-auto-columns: calc(100% - 38px);
    gap: 14px;
  }

  html body .dec-home-blog__card {
    min-height: 408px;
  }

  html body .dec-home-blog__media {
    height: 180px;
    flex-basis: 180px;
  }

  html body .dec-home-blog__content {
    padding: 20px;
  }

  html body .dec-home-blog__content h3 {
    font-size: 20px;
  }

  html body .dec-home-blog__content > p:not(.dec-home-blog__category) {
    font-size: 13.5px;
  }
}
