/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/
/* === RANCO Article Typography === */
/* === RANCO Article Typography === */
/* Clean magazine-style reading layout for guide/article pages.
   Scoped to body.ranco-article so it doesn't affect shop/homepage/forms. */

body.ranco-article .elementor-widget-text-editor {
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
}

body.ranco-article .elementor-widget-text-editor > .elementor-widget-container {
  padding: 0;
}

body.ranco-article .elementor-widget-text-editor p {
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  color: #2a2a2a;
  margin: 0 0 1.1em;
}

body.ranco-article .elementor-widget-text-editor p:first-of-type {
  font-size: 19px;
  line-height: 1.7;
  color: #1a1a1a;
  margin-bottom: 1.6em;
}

body.ranco-article .elementor-widget-text-editor h2 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  color: #111;
  margin: 2.2em 0 0.6em;
  letter-spacing: -0.01em;
}

body.ranco-article .elementor-widget-text-editor h3 {
  font-size: 21px;
  line-height: 1.4;
  font-weight: 600;
  color: #222;
  margin: 1.7em 0 0.5em;
}

body.ranco-article .elementor-widget-text-editor h2 + p,
body.ranco-article .elementor-widget-text-editor h3 + p {
  margin-top: 0;
}

body.ranco-article .elementor-widget-text-editor a {
  color: #111;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 500;
}

body.ranco-article .elementor-widget-text-editor a:hover {
  color: #555;
  text-decoration-thickness: 2px;
}

body.ranco-article .elementor-widget-text-editor strong {
  font-weight: 700;
  color: #111;
}

body.ranco-article .elementor-widget-text-editor ol,
body.ranco-article .elementor-widget-text-editor ul {
  padding-right: 1.6em;
  padding-left: 0;
  margin: 1.2em 0;
}

body.ranco-article .elementor-widget-text-editor li {
  font-size: 17px;
  line-height: 1.75;
  color: #2a2a2a;
  margin-bottom: 0.7em;
}

body.ranco-article .elementor-widget-text-editor li p {
  margin: 0;
}

body.ranco-article .elementor-widget-image {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

body.ranco-article .elementor-widget-image img {
  border-radius: 8px;
}

/* Tablet */
@media (max-width: 1024px) {
  body.ranco-article .elementor-widget-text-editor {
    max-width: 92%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body.ranco-article .elementor-widget-text-editor {
    max-width: 100%;
    padding-right: 4px;
    padding-left: 4px;
  }
  body.ranco-article .elementor-widget-text-editor p,
  body.ranco-article .elementor-widget-text-editor li {
    font-size: 16px;
    line-height: 1.7;
  }
  body.ranco-article .elementor-widget-text-editor p:first-of-type {
    font-size: 17px;
  }
  body.ranco-article .elementor-widget-text-editor h2 {
    font-size: 24px;
    margin-top: 1.8em;
  }
  body.ranco-article .elementor-widget-text-editor h3 {
    font-size: 19px;
    margin-top: 1.5em;
  }
  body.ranco-article .elementor-widget-image {
    max-width: 100%;
  }
}
/* === RANCO Category Page Intro === */
/* Clean intro block for shop category pages. Hides Woodmart's ugly title banner
   and turns the term description into a real intro section. */

/* 1. Hide the Woodmart page-title banner on category pages */
body.tax-product_cat .wd-page-title,
body.archive.tax-product_cat .page-title-default {
  display: none !important;
}

/* 2. Style the category description as a clean intro section */
body.tax-product_cat .term-description {
  max-width: 1200px;
  margin: 36px auto 32px;
  padding: 0 20px;
  text-align: right;
  direction: rtl;
}

body.tax-product_cat .term-description .cat-intro-title {
  font-size: 36px;
  font-weight: 700;
  color: #111;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.tax-product_cat .term-description .cat-intro-lead {
  font-size: 18px;
  line-height: 1.7;
  color: #444;
  margin: 0 0 32px;
  max-width: 760px;
  font-weight: 400;
}

/* Feature grid - 4 columns desktop, 2 on tablet, 1 on small mobile */
body.tax-product_cat .term-description .cat-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 0 0 36px;
  padding: 28px 0;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
  list-style: none;
}

body.tax-product_cat .term-description .cat-features > * {
  margin: 0;
  padding: 0;
}

body.tax-product_cat .term-description .cat-features h3,
body.tax-product_cat .term-description .cat-features .feat-title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
  text-transform: none;
}

body.tax-product_cat .term-description .cat-features p,
body.tax-product_cat .term-description .cat-features .feat-text {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* Browse-by-model strip */
body.tax-product_cat .term-description .cat-models {
  font-size: 15px;
  color: #444;
  margin: 0 0 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
}

body.tax-product_cat .term-description .cat-models strong {
  color: #111;
  font-weight: 700;
  margin: 0;
  display: inline-block;
}

body.tax-product_cat .term-description .cat-models a {
  color: #111;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  margin: 0;
  white-space: nowrap;
  font-weight: 500;
}

body.tax-product_cat .term-description .cat-models a:hover {
  text-decoration-thickness: 2px;
}

/* Read-more long-form content (SEO copy) */
body.tax-product_cat .term-description .cat-readmore {
  margin: 0 0 8px;
  padding: 20px 0 0;
  border-top: 1px solid #f2f2f2;
}

body.tax-product_cat .term-description .cat-readmore p {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  margin: 0 0 12px;
  max-width: 880px;
}

/* Tablet */
@media (max-width: 1024px) {
  body.tax-product_cat .term-description .cat-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  body.tax-product_cat .term-description {
    margin: 24px auto 24px;
    padding: 0 16px;
  }
  body.tax-product_cat .term-description .cat-intro-title {
    font-size: 28px;
  }
  body.tax-product_cat .term-description .cat-intro-lead {
    font-size: 16px;
  }
  body.tax-product_cat .term-description .cat-features {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 0;
  }
  body.tax-product_cat .term-description .cat-models {
    gap: 6px 14px;
    font-size: 14px;
  }
}
