/* Dining Room category only. Visual rules; no product/filter behavior is changed. */
body.term-dining-room {
  --ydr-ink: #171714;
  --ydr-muted: #6e6d67;
  --ydr-line: #d9d8d2;
  --ydr-paper: #f4f2ed;
  --ydr-accent: #8a5b3d;
}

body.term-dining-room .elementor-element-1f406da > .e-con-inner,
body.term-dining-room .elementor-element-3a2de16 > .e-con-inner {
  width: min(100% - 48px, 1360px);
  max-width: 1360px;
  margin-inline: auto;
}

body.term-dining-room .elementor-element-1f406da {
  padding-top: 22px;
  padding-bottom: 30px;
}

body.term-dining-room .elementor-element-258132c {
  margin-bottom: 21px;
}

body.term-dining-room .elementor-element-258132c .woocommerce-breadcrumb {
  color: var(--ydr-muted);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .02em;
}

body.term-dining-room .elementor-element-258132c .woocommerce-breadcrumb a {
  color: var(--ydr-muted);
  text-decoration: none;
}

body.term-dining-room .elementor-element-9e63034 .elementor-heading-title {
  margin: 0;
  color: var(--ydr-ink);
  font-family: Cormorant, Georgia, "Times New Roman", serif !important;
  font-size: clamp(46px, 4.1vw, 60px) !important;
  font-weight: 500 !important;
  line-height: 1.04 !important;
  letter-spacing: -.035em !important;
}

/* Convert the existing two-column archive structure into a single editorial flow. */
body.term-dining-room .elementor-element-3a2de16 {
  padding-bottom: 76px;
}

body.term-dining-room .elementor-element-3a2de16 > .e-con-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.term-dining-room .elementor-element-efe6f98,
body.term-dining-room .elementor-element-0e94b8d {
  width: 100%;
  max-width: none;
  min-height: 0;
}

/* Existing filter widget, styled as a restrained horizontal filter bar. */
body.term-dining-room .elementor-element-efe6f98 {
  position: relative;
  z-index: 4;
  border-top: 1px solid var(--ydr-line);
  border-bottom: 1px solid var(--ydr-line);
}

body.term-dining-room .elementor-element-8b090ab,
body.term-dining-room .elementor-element-8b090ab > .elementor-widget-container {
  width: 100%;
}

body.term-dining-room .elementor-element-8b090ab > .elementor-widget-container {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
}

body.term-dining-room .elementor-element-8b090ab .berocket_single_filter_widget {
  margin: 0;
}

body.term-dining-room .elementor-element-8b090ab .bapf_mt_none {
  display: none !important;
}

body.term-dining-room .elementor-element-8b090ab .bapf_reset,
body.term-dining-room .elementor-element-8b090ab .bapf_head h3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 0 19px;
  border: 1px solid var(--ydr-line);
  border-radius: 0;
  background: #fff;
  color: var(--ydr-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .01em;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

body.term-dining-room .elementor-element-8b090ab .bapf_head h3 {
  justify-content: flex-start;
  width: 140px;
  padding-right: 25px;
  padding-left: 15px;
}

body.term-dining-room .elementor-element-8b090ab button.bapf_reset {
  min-height: 44px !important;
  padding: 0 19px !important;
  border: 1px solid var(--ydr-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--ydr-ink) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

body.term-dining-room .elementor-element-8b090ab .bapf_reset:hover,
body.term-dining-room .elementor-element-8b090ab .bapf_head h3:hover {
  border-color: var(--ydr-ink);
  background: #faf9f6;
}

body.term-dining-room .elementor-element-8b090ab .bapf_head h3 i {
  right: 24px !important;
  left: auto !important;
  margin-left: auto;
  font-size: 10px;
}

body.term-dining-room .elementor-element-8b090ab .bapf_sfilter {
  margin: 0;
}

body.term-dining-room .elementor-element-8b090ab .bapf_sfilter .bapf_body {
  margin: 0;
}

body.term-dining-room .elementor-element-8b090ab .bapf_ckbox {
  position: relative;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

body.term-dining-room .elementor-element-8b090ab .bapf_ckbox > .bapf_body {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  min-width: 240px;
  padding: 18px 20px;
  border: 1px solid var(--ydr-line);
  background: #fff;
  box-shadow: 0 12px 32px rgba(30, 29, 25, .09);
}

body.term-dining-room .elementor-element-8b090ab .bapf_ckbox ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.term-dining-room .elementor-element-8b090ab .bapf_ckbox li {
  margin: 9px 0;
}

body.term-dining-room .elementor-element-8b090ab .bapf_ckbox li ul {
  padding-left: 20px;
}

body.term-dining-room .elementor-element-8b090ab .bapf_ckbox label {
  color: var(--ydr-ink);
  font-size: 13px;
}

/* Results and sort retain their original markup and links. */
body.term-dining-room .elementor-element-0e94b8d > .e-con-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 54px;
  padding: 0;
}

body.term-dining-room .elementor-element-57ca2b5 {
  position: static !important;
  grid-column: 1;
  grid-row: 1;
  width: auto !important;
  margin: 0;
  transform: none !important;
}

body.term-dining-room .elementor-element-57ca2b5 .woocommerce-result-count {
  margin: 0;
  color: var(--ydr-muted);
  font-size: 13px;
  line-height: 1.4;
}

body.term-dining-room .elementor-element-428e0f8 {
  position: absolute;
  top: -66px;
  right: 0;
  z-index: 6;
  grid-column: 2;
  grid-row: 1;
  width: 190px !important;
  max-width: none !important;
  margin: 0;
}

body.term-dining-room .elementor-element-428e0f8 .woocommerce-ordering {
  position: relative;
}

body.term-dining-room .elementor-element-428e0f8 .woocommerce-ordering__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 190px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ydr-line);
  background: #fff;
  color: var(--ydr-ink);
  font-size: 13px;
  line-height: 1;
}

body.term-dining-room .elementor-element-428e0f8 .woocommerce-ordering__button-label > span {
  margin-left: 4px;
}

body.term-dining-room .elementor-element-428e0f8 .woocommerce-ordering__submenu {
  right: 0;
  left: auto;
  min-width: 220px;
  border: 1px solid var(--ydr-line);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 12px 32px rgba(30, 29, 25, .09);
}

/* Four-column, image-led product grid inspired by the references. */
body.term-dining-room .elementor-element-b8e747e {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  margin: 0;
}

body.term-dining-room .elementor-element-b8e747e .elementor-loop-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px 16px;
}

body.term-dining-room .elementor-element-b8e747e .e-loop-item {
  min-width: 0;
}

body.term-dining-room .elementor-element-b8e747e .elementor-element-2bd18a6 {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0;
  background: transparent;
}

body.term-dining-room .elementor-element-b8e747e .elementor-element-5255065 {
  order: 1 !important;
}

body.term-dining-room .elementor-element-b8e747e .elementor-element-d1ceccb {
  order: 2 !important;
}

body.term-dining-room .elementor-element-b8e747e .elementor-element-3f6bd83 {
  order: 3 !important;
}

body.term-dining-room .elementor-element-b8e747e .elementor-element-5255065 {
  width: 100%;
  aspect-ratio: 1 / 1.03;
  min-height: 0;
  overflow: hidden;
  background: var(--ydr-paper);
}

body.term-dining-room .elementor-element-b8e747e .elementor-element-5255065 a,
body.term-dining-room .elementor-element-b8e747e .elementor-element-5255065 .elementor-widget-container {
  display: block;
  width: 100%;
  height: 100%;
}

body.term-dining-room .elementor-element-b8e747e .elementor-element-5255065 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}

body.term-dining-room .elementor-element-b8e747e .e-loop-item:hover .elementor-element-5255065 img {
  transform: scale(1.025);
}

body.term-dining-room .elementor-element-b8e747e .elementor-element-3f6bd83 {
  min-height: 0;
  margin: 14px 0 0;
}

body.term-dining-room .elementor-element-b8e747e .elementor-element-3f6bd83 .elementor-widget-container {
  min-height: 46px;
}

body.term-dining-room .elementor-element-b8e747e .e-loop-add-to-cart-form {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 0;
  min-height: 44px;
  margin: 0 !important;
}

body.term-dining-room .elementor-element-b8e747e .e-loop-add-to-cart-form .quantity,
body.term-dining-room .elementor-element-b8e747e .e-loop-add-to-cart-form .qty,
body.term-dining-room .elementor-element-b8e747e .e-loop-add-to-cart-form .button {
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

body.term-dining-room .elementor-element-b8e747e .e-loop-add-to-cart-form .quantity {
  grid-column: 1 !important;
  grid-row: 1 !important;
  order: 0 !important;
}

body.term-dining-room .elementor-element-b8e747e .e-loop-add-to-cart-form .button {
  grid-column: 2 !important;
  grid-row: 1 !important;
  order: 0 !important;
  writing-mode: horizontal-tb !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

body.term-dining-room .elementor-element-b8e747e .e-loop-add-to-cart-form .qty {
  border: 1px solid var(--ydr-line) !important;
  background: #fff !important;
  color: var(--ydr-ink) !important;
  text-align: center;
}

body.term-dining-room .elementor-element-b8e747e .e-loop-add-to-cart-form .button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ydr-line) !important;
  border-left: 0 !important;
  background: #fff !important;
  color: var(--ydr-ink) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

body.term-dining-room .elementor-element-b8e747e .e-loop-add-to-cart-form .button:hover {
  border-color: var(--ydr-ink) !important;
  background: var(--ydr-ink) !important;
  color: #fff !important;
}

body.term-dining-room .elementor-element-b8e747e .elementor-element-d1ceccb {
  min-height: 0;
  padding: 15px 2px 0;
  background: #fff;
}

body.term-dining-room .elementor-element-b8e747e .elementor-element-f48f7ee {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  padding: 0;
}

body.term-dining-room .elementor-element-b8e747e .elementor-element-7a6834b,
body.term-dining-room .elementor-element-b8e747e .elementor-element-32a3a57,
body.term-dining-room .elementor-element-b8e747e .elementor-element-4bfee6f,
body.term-dining-room .elementor-element-b8e747e .elementor-element-c0bf9e4 {
  width: 100%;
  min-height: 0;
  padding: 0;
}

body.term-dining-room .elementor-element-b8e747e .elementor-element-32a3a57 .elementor-heading-title {
  display: -webkit-box;
  min-height: calc(1.42em * 3);
  overflow: hidden;
  color: var(--ydr-ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -.006em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.term-dining-room .elementor-element-b8e747e .elementor-element-32a3a57 a {
  color: inherit;
  text-decoration: none;
}

body.term-dining-room .elementor-element-b8e747e .elementor-element-c0bf9e4 {
  margin-top: 7px;
}

body.term-dining-room .elementor-element-b8e747e .elementor-element-c0bf9e4 .price,
body.term-dining-room .elementor-element-b8e747e .elementor-element-c0bf9e4 .woocommerce-Price-amount {
  color: var(--ydr-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

body.term-dining-room .elementor-element-b8e747e .elementor-element-8a9ae40 {
  right: 12px;
  top: 12px;
}

@media (max-width: 1024px) {
  body.term-dining-room .elementor-element-1f406da > .e-con-inner,
  body.term-dining-room .elementor-element-3a2de16 > .e-con-inner {
    width: min(100% - 32px, 1360px);
  }

  body.term-dining-room .elementor-element-b8e747e .elementor-loop-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.term-dining-room .elementor-element-1f406da {
    padding-top: 14px;
    padding-bottom: 22px;
  }

  body.term-dining-room .elementor-element-9e63034 .elementor-heading-title {
    font-size: 40px !important;
  }

  body.term-dining-room .elementor-element-8b090ab > .elementor-widget-container {
    min-height: 66px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.term-dining-room .elementor-element-8b090ab > .elementor-widget-container::-webkit-scrollbar {
    display: none;
  }

  body.term-dining-room .elementor-element-8b090ab .berocket_single_filter_widget {
    flex: 0 0 auto;
  }

  body.term-dining-room .elementor-element-0e94b8d > .e-con-inner {
    min-height: 60px;
  }

  body.term-dining-room .elementor-element-428e0f8 {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: 155px !important;
  }

  body.term-dining-room .elementor-element-428e0f8 .woocommerce-ordering__button {
    min-width: 155px;
  }

  body.term-dining-room .elementor-element-b8e747e .elementor-loop-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 12px;
  }

  body.term-dining-room .elementor-element-b8e747e .elementor-element-d1ceccb {
    padding-top: 11px;
  }

  body.term-dining-room .elementor-element-b8e747e .elementor-element-32a3a57 .elementor-heading-title {
    font-size: 13px;
    line-height: 1.35;
    min-height: calc(1.35em * 3);
  }
}

@media (max-width: 479px) {
  body.term-dining-room .elementor-element-1f406da > .e-con-inner,
  body.term-dining-room .elementor-element-3a2de16 > .e-con-inner {
    width: calc(100% - 24px);
  }

  body.term-dining-room .elementor-element-57ca2b5 .woocommerce-result-count {
    font-size: 12px;
  }

  body.term-dining-room .elementor-element-428e0f8 .woocommerce-ordering__button {
    min-width: 142px;
    padding-inline: 12px;
    font-size: 12px;
  }
}
