/* Desktop keeps the captured content and layout. */
.xtr-mh-image,
.xtr-mh-mobile,
.xtr-mh-actions {
  display: none;
}

@media (max-width: 767px) {
  @font-face {
    font-family: "XIMU Mobile Playfair";
    src: url("../assets/xtfurn.com/wp-content/themes/woodmart-child/assets/fonts/playfair-display-4.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
  }

  /* Retain the existing fixed header and its matching in-flow spacer. */
  body.home.xt-rebuild .whb-general-header-inner {
    height: 68px !important;
    min-height: 68px !important;
  }

  body.home.xt-rebuild #xtm-drawer:not(.xtm-open) {
    visibility: hidden;
    box-shadow: none !important;
  }

  body.home.xt-rebuild #xtm-prod-mobile {
    height: 68px !important;
  }

  body.home.xt-rebuild #xtm-prod-mobile .xtm-header-shell {
    background: #f8f6f1 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.home.xt-rebuild #xtm-prod-mobile .xtm-header-main {
    height: 68px !important;
    min-height: 68px !important;
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    gap: 0 !important;
  }

  body.home.xt-rebuild #xtm-prod-mobile .xtm-logo {
    width: 124px !important;
    max-width: 124px !important;
    height: 53px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.home.xt-rebuild #xtm-prod-mobile .xtm-logo img {
    width: 124px !important;
    height: 53px !important;
    max-height: 53px !important;
    object-fit: contain !important;
  }

  body.home.xt-rebuild #xtm-prod-mobile .xtm-menu-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #26342c !important;
  }

  body.home.xt-rebuild #xtm-prod-mobile .xtm-header-actions,
  body.home.xt-rebuild #xtm-prod-mobile .xtm-cart-shortcode,
  body.home.xt-rebuild #xtm-prod-mobile .xtm-cart-shortcode .xt-header-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.home.xt-rebuild #xtm-prod-mobile .xtm-cart-shortcode .elementor,
  body.home.xt-rebuild #xtm-prod-mobile .xtm-cart-shortcode .e-con,
  body.home.xt-rebuild #xtm-prod-mobile .xtm-cart-shortcode .e-con-inner,
  body.home.xt-rebuild #xtm-prod-mobile .xtm-cart-shortcode .elementor-widget,
  body.home.xt-rebuild #xtm-prod-mobile .xtm-cart-shortcode .elementor-widget-container,
  body.home.xt-rebuild #xtm-prod-mobile .xtm-cart-shortcode .elementor-shortcode {
    width: 100% !important;
    max-width: 44px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
  }

  body.home.xt-rebuild #xtm-prod-mobile .xtm-cart-shortcode .xt-header-btn {
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
  }

  body.home.xt-rebuild #xtm-prod-mobile .xt-header-icon-wrapper i {
    font-size: 24px !important;
    color: #26342c !important;
  }

  /* Keep the quote link's accessible name and its live count badge. */
  body.home.xt-rebuild #xtm-prod-mobile .xt-header-btn .xt-btn-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready {
    min-height: 0 !important;
    padding: 0 !important;
    background: #f8f6f1 !important;
    color: #26342c !important;
    font-family: "Plus Jakarta Sans", sans-serif;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready,
  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready * {
    box-sizing: border-box;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready > .xtr-mh-image {
    display: block;
    width: 100% !important;
    height: 250px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #d9ded1;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready > .xtr-mh-image > img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: 75% bottom !important;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready .xt-home-hero__container {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready .xt-home-hero__content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px 24px 26px !important;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready .xtr-mh-desktop,
  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready .xt-home-hero__actions,
  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready .xt-home-hero__stats,
  body.home.xt-rebuild #collections .xt-home-section-title > .xtr-mh-desktop {
    display: none !important;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready .xtr-mh-mobile,
  body.home.xt-rebuild #collections .xt-home-section-title > .xtr-mh-mobile {
    display: inline;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready .xt-home-hero__eyebrow {
    display: block;
    margin: 0 0 12px !important;
    color: #60685e !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.11em !important;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready .xt-home-hero__eyebrow::before {
    display: none;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready .xt-home-hero__title {
    max-width: 365px;
    margin: 0 !important;
    color: #26342c !important;
    font-family: "XIMU Mobile Playfair", Georgia, serif !important;
    font-size: clamp(34px, 9.2vw, 36px) !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.025em !important;
    text-transform: none;
    text-shadow: none !important;
    text-wrap: balance;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready .xt-home-hero__text {
    max-width: none;
    margin: 13px 0 0 !important;
    color: #60685e !important;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready .xtr-mh-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 21px 0 0;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready .xtr-mh-actions > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #28684f;
    border-radius: 3px;
    box-shadow: none;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(13px, 3.5vw, 14px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.015em;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    transition: none;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready .xtr-mh-primary {
    color: #fff !important;
    background: #28684f;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready .xtr-mh-secondary {
    color: #28684f !important;
    background: transparent;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready .xtr-mh-actions svg {
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
  }

  body.home.xt-rebuild #collections {
    padding: 25px 24px 38px !important;
    border-top: 1px solid #e3e4da;
    background: #fff;
    scroll-margin-top: 84px;
  }

  body.home.xt-rebuild #collections > .xt-home-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.home.xt-rebuild #collections .xt-home-section-head {
    display: block;
    margin: 0 0 20px;
    padding: 0;
    border: 0;
  }

  body.home.xt-rebuild #collections .xt-home-section-head .xt-home-kicker,
  body.home.xt-rebuild #collections .xt-home-section-head .xt-home-section-desc {
    display: none;
  }

  body.home.xt-rebuild #collections .xt-home-section-title {
    margin: 0;
    color: #26342c !important;
    font-family: "XIMU Mobile Playfair", Georgia, serif;
    font-size: 25px !important;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  body.home.xt-rebuild #collections .xt-home-collection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px;
  }

  body.home.xt-rebuild #collections .xt-home-collection-grid > .xt-home-product-card {
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #26342c;
    box-shadow: none;
    transform: none;
    transition: none;
  }

  body.home.xt-rebuild #collections .xt-home-product-card > .xt-home-product-media {
    width: 100%;
    height: auto;
    aspect-ratio: 1.08;
    border: 0;
    border-radius: 0;
    background: #efeee7;
  }

  body.home.xt-rebuild #collections .xt-home-product-card > .xt-home-product-media::after {
    display: none;
  }

  body.home.xt-rebuild #collections .xt-home-product-card .xt-home-product-media img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: none !important;
    transition: none !important;
  }

  body.home.xt-rebuild #collections .xt-home-product-card > .xt-home-product-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    flex: none;
    min-height: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    font-family: "Plus Jakarta Sans", sans-serif;
  }

  body.home.xt-rebuild #collections .xt-home-product-body > .xt-home-product-meta,
  body.home.xt-rebuild #collections .xt-home-product-body > .xt-home-card-text {
    display: none;
  }

  body.home.xt-rebuild #collections .xt-home-product-body > .xt-home-card-title {
    grid-column: 1;
    margin: 0;
    color: #26342c !important;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
  }

  body.home.xt-rebuild #collections .xt-home-product-body > .xt-home-text-link {
    display: block;
    grid-column: 2;
    width: 18px;
    height: 18px;
    max-width: none;
    padding: 0;
    margin: 0;
    color: #26342c;
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
  }

  body.home.xt-rebuild #collections .xt-home-product-body > .xt-home-text-link::after {
    display: none;
  }

  body.home.xt-rebuild #collections .xt-home-product-body > .xt-home-text-link svg {
    display: block;
    width: 18px;
    height: 18px;
    transform: none;
    transition: none;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready .xtr-mh-actions > a:focus-visible,
  body.home.xt-rebuild #collections .xt-home-product-card:focus-visible,
  body.home.xt-rebuild #xtm-prod-mobile .xtm-menu-toggle:focus-visible,
  body.home.xt-rebuild #xtm-prod-mobile .xt-header-btn:focus-visible {
    outline: 2px solid #28684f !important;
    outline-offset: 4px;
  }
}

@media (max-width: 359px) {
  body.home.xt-rebuild .whb-general-header-inner,
  body.home.xt-rebuild #xtm-prod-mobile,
  body.home.xt-rebuild #xtm-prod-mobile .xtm-header-main {
    height: 64px !important;
    min-height: 64px !important;
  }

  body.home.xt-rebuild #xtm-prod-mobile .xtm-header-main {
    padding-left: max(12px, env(safe-area-inset-left)) !important;
    padding-right: max(12px, env(safe-area-inset-right)) !important;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready > .xtr-mh-image {
    height: 220px !important;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready .xt-home-hero__content {
    padding-top: 22px !important;
    padding-bottom: 22px !important;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready .xt-home-hero__eyebrow {
    font-size: 9px !important;
    letter-spacing: 0.09em !important;
  }

  body.home.xt-rebuild .xt-home-hero.xtr-mh-ready .xtr-mh-actions {
    gap: 8px;
    margin-top: 19px;
  }
}
