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


/* Show the existing category paths before the portrait slideshow on phones. */
@media (max-width: 767px) {
  body.home .elementor-15 { display: flex; flex-direction: column; }
  body.home .elementor-15 > .elementor-element-7ddcdd5 { order: -1; padding: 12px 0 0; }
  body.home .elementor-element-7ddcdd5 .title-wrapper { margin-bottom: 8px; }
  body.home .elementor-element-7ddcdd5 .woodmart-title-container { font-size: 1.1rem; line-height: 1.3; }
  body.home .elementor-element-7ddcdd5 .title-after_title,
  body.home .elementor-element-7ddcdd5 .wd-cat-thumb,
  body.home .elementor-element-7ddcdd5 .wd-cat-content > .wd-fill { display: none; }
  body.home .elementor-element-7ddcdd5 .wd-cats {
    display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto;
    padding: 0 0 8px; scroll-snap-type: x proximity;
  }
  body.home .elementor-element-7ddcdd5 .wd-cat {
    width: auto !important; max-width: none; flex: 0 0 auto; scroll-snap-align: start;
  }
  body.home .elementor-element-7ddcdd5 .wd-cat-inner {
    height: auto !important; min-height: 0 !important; padding: 9px 13px;
    border: 1px solid #dce5db; border-radius: 999px; background: #fff;
  }
  body.home .elementor-element-7ddcdd5 .wd-cat-content {
    position: relative !important; inset: auto !important; height: auto !important; padding: 0 !important;
  }
  body.home .elementor-element-7ddcdd5 .wd-entities-title {
    margin: 0; font-size: 14px; line-height: 1.25;
  }
}

/* Contextual navigation on WooCommerce single product pages. */
.tc-product-nav {
  background: #fffdf9;
  border: 1px solid #e6dac9;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 6px 22px rgba(50, 32, 18, .07);
}
.tc-product-nav h2 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 12px;
}
.tc-product-nav ul { list-style: none; margin: 0; padding: 0; }
.tc-product-nav li + li { border-top: 1px solid #eee7de; }
.tc-product-nav a {
  color: #463428;
  display: block;
  padding: 10px 0;
  text-decoration: none;
}
.tc-product-nav a:hover, .tc-product-nav a:focus-visible { color: #9b5e2a; }
.tc-product-nav-mobile { display: none; }
@media (max-width: 1024px) {
  .tc-product-nav--sidebar { display: none; }
  .tc-product-nav-mobile {
    display: block;
    margin: 18px 0;
    border: 1px solid #e6dac9;
    border-radius: 14px;
    background: #fffdf9;
  }
  .tc-product-nav-mobile summary {
    cursor: pointer;
    font-weight: 700;
    padding: 14px 16px;
  }
  .tc-product-nav-mobile .tc-product-nav {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 16px 10px;
  }
}

/* Three-column Elementor product layout: categories, gallery, purchase panel. */
.tc-product-nav--desktop { display: none; }
@media (min-width: 1200px) {
  .single-product .tc-product-row-with-nav {
    display: grid;
    grid-template-columns: 190px minmax(0, 1.32fr) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
  }
  .tc-product-row-with-nav > .tc-product-nav--desktop {
    display: block;
    align-self: start;
    position: sticky;
    top: 22px;
    padding: 18px 15px;
  }
  .tc-product-row-with-nav > .e-con {
    width: 100% !important;
    min-width: 0;
    --width: 100%;
  }
}
@media (max-width: 1199px) {
  .tc-product-nav--desktop { display: none !important; }
  .tc-product-nav-mobile { display: block; }
}

/* Full product-category catalog beside single products. */
@media (min-width: 1200px) {
  .single-product .tc-product-category-widget {
    background: #fff;
    border: 1px solid #e9e6e1;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(40, 30, 20, .05);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .tc-product-category-widget .widget-title {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.3;
  }
  .tc-product-category-widget .product-categories,
  .tc-product-category-widget .product-categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .tc-product-category-widget .product-categories li {
    position: relative;
    margin: 0;
  }
  .tc-product-category-widget .product-categories > li > a {
    display: block;
    padding: 8px 25px 8px 0;
    color: #252525;
    font-weight: 600;
    line-height: 1.35;
  }
  .tc-product-category-widget .product-categories .children {
    display: none;
    padding: 2px 0 7px 12px;
  }
  .tc-product-category-widget .product-categories .children.list-shown {
    display: block;
  }
  .tc-product-category-widget .product-categories .children a {
    display: block;
    padding: 7px 22px 7px 0;
    color: #767676;
    font-size: 14px;
    line-height: 1.35;
  }
  .tc-product-category-widget .product-categories a:hover,
  .tc-product-category-widget .product-categories a:focus-visible,
  .tc-product-category-widget .product-categories .current-cat > a {
    color: #d17b42;
  }
  .tc-product-category-widget .wd-cats-toggle {
    position: absolute;
    top: 7px;
    right: 0;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    cursor: pointer;
    border-radius: 50%;
  }
  .tc-product-category-widget .wd-cats-toggle::before {
    content: '⌄';
    color: #999;
    font-size: 16px;
    line-height: 1;
    margin-top: -5px;
  }
  .tc-product-category-widget .wd-cats-toggle.toggle-active::before {
    transform: rotate(180deg);
    margin-top: 5px;
  }
}
