/* warehousechild — product page extras (PS-native, no WP dependencies) */

#header {
    transition: all 0.3s ease;
}
#header.sticky-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15) !important;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

/* Fix sticky header display */
#header.header-sticky,
#header .header-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

/* === Trust badges row === */
.wp-trust-badges-wrap { margin: 18px 0; }
.wp-trust-badges {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 14px;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  padding: 14px 0;
}
.wp-trust-badges .trust-badge { flex: 1 1 33%; min-width: 130px; }
.wp-trust-badges .trust-badge a {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit; padding: 6px 4px;
}
.wp-trust-badges .trust-badge a:hover { opacity: .75; }
.wp-trust-badges .tb-icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--wd-primary-color, #347a5a);
  color: #fff; font-size: 18px;
}
.wp-trust-badges .tb-text { display: block; font-size: 13px; line-height: 1.25; }
.wp-trust-badges .tb-text strong { font-size: 14px; font-weight: 600; display: block; }
.wp-trust-badges .tb-text small { color: #666; font-size: 12px; }
body .wp-recent-price {color: #477c58;}
body .wp-recent-item:hover, body .wp-subcat-card:hover {border-color: #356f54;} 
/* === Product tabs === */
.woodmart-product-tabs { display: block; clear: both; padding: 30px 0; }
.woodmart-product-tabs .wd-nav-wrapper { margin-bottom: 24px; }
.woodmart-product-tabs .wd-nav-tabs {
  display: flex !important; flex-wrap: wrap; gap: 28px;
  list-style: none; padding: 0; margin: 0;
  border-bottom: 1px solid #e8e8e8;
}
.woodmart-product-tabs .wd-nav-tabs > li { display: block; margin: 0; padding: 0; }
.woodmart-product-tabs .wd-nav-tabs > li > a {
  display: inline-block; padding: 12px 4px;
  color: #242424; text-decoration: none;
  font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 2px solid transparent;
}
.woodmart-product-tabs .wd-nav-tabs > li > a:hover { color: var(--wd-primary-color, #347a5a); }
.woodmart-product-tabs .wd-nav-tabs > li.active > a,
.woodmart-product-tabs .wd-nav-tabs > li > a.active {
  color: var(--wd-primary-color, #347a5a);
  border-bottom-color: var(--wd-primary-color, #347a5a);
}
.woodmart-product-tabs .tab-content > .tab-pane { display: none; padding: 18px 0; }
.woodmart-product-tabs .tab-content > .tab-pane.active,
.woodmart-product-tabs .tab-content > .tab-pane.show { display: block; }
.woodmart-product-tabs .product-manufacturer-tab .manufacturer-logo {
  max-width: 220px; height: auto; margin-bottom: 12px;
}
.woodmart-product-tabs .wd-versand-lieferung-tab h4 {
  margin-top: 18px; margin-bottom: 8px;
  font-size: 16px; font-weight: 600;
}

/* === Prev/Next product nav === */
.wd-products-nav {
  display: flex; align-items: center; gap: 10px;
  justify-content: flex-end;
  margin: 0 0 12px; padding: 6px 0;
  position: relative;
}
.wd-products-nav .wd-event-hover { position: relative; }
.wd-products-nav .wd-product-nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid #e8e8e8; border-radius: 50%;
  text-decoration: none; color: #242424;
  background: #fff; transition: all .15s ease;
}
.wd-products-nav .wd-product-nav-btn:hover small {
    color: #fff !important;
}
.wd-products-nav .wd-product-nav-btn:hover { background: #3f7b59; color: #fff !important; border-color: #3f7b59; }
.wd-products-nav .wd-btn-prev::before { content: "‹"; font-size: 22px; line-height: 1; }
.wd-products-nav .wd-btn-next::before { content: "›"; font-size: 22px; line-height: 1; }
.wd-products-nav .wd-btn-back { padding: 0 14px; width: auto; border-radius: 16px; font-size: 12px; }
.wd-products-nav .wd-dropdown {
  position: absolute; top: 100%; right: 0;
  display: none; padding: 10px;
  background: #fff; border: 1px solid #e8e8e8; border-radius: 4px;
  width: 240px; z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.wd-products-nav .wd-event-hover:hover .wd-dropdown { display: block; }
.wd-products-nav .wd-product-nav-thumb { display: block; margin-bottom: 8px; }
.wd-products-nav .wd-product-nav-thumb img { max-width: 100%; height: auto; }
.wd-products-nav .wd-entities-title { display: block; font-size: 12px; font-weight: 600; color: #242424; text-decoration: none; margin-bottom: 4px; line-height: 1.3; }
.wd-products-nav .wd-product-nav-desc .price { font-size: 13px; color: var(--wd-primary-color, #347a5a); font-weight: 600; }

/* === "Das könnte dir auch gefallen" upsells === */
.wp-product-upsells-section { padding: 30px 0; border-top: 1px solid #e8e8e8; margin-top: 24px; }
.wp-product-upsells-section .wp-section-title {
  font-size: 22px; font-weight: 600; margin-bottom: 24px;
  text-transform: uppercase; letter-spacing: 0.5px; text-align: center;
}
.wp-upsell-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.wp-upsell-item {
  border: 1px solid #eaeaea; border-radius: 4px;
  background: #fff; padding: 12px;
  transition: border-color .15s ease;
}
.wp-upsell-item:hover { border-color: var(--wd-primary-color, #347a5a); }
.wp-upsell-thumb { display: block; margin-bottom: 10px; text-align: center; }
.wp-upsell-thumb img { max-width: 100%; height: auto; }
.wp-upsell-info { display: block; }
.wp-upsell-name { display: block; font-size: 13px; font-weight: 600; color: #242424; text-decoration: none; line-height: 1.3; margin-bottom: 4px; }
.wp-upsell-name:hover { color: var(--wd-primary-color, #347a5a); }
.wp-upsell-price { display: block; font-size: 14px; font-weight: 700; color: var(--wd-primary-color, #347a5a); }

/* === Brand carousel === */
.wp-brand-carousel { padding: 36px 0; border-top: 1px solid #e8e8e8; margin-top: 24px; }
.wp-brand-carousel .wp-section-title {
  font-size: 22px; font-weight: 600; margin-bottom: 24px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.wp-brands-track {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 2px 14px;
}
.wp-brand-item {
  flex: 0 0 180px;
  scroll-snap-align: start;
  border: 1px solid #eaeaea;
  background: #fff;
  border-radius: 4px;
  padding: 12px;
  text-align: center;
}
.wp-brand-item:hover { border-color: var(--wd-primary-color, #347a5a); }
.wp-brand-item a {
  display: flex; align-items: center; justify-content: center;
  height: 80px; text-decoration: none; color: inherit;
}
.wp-brand-item img { max-width: 100%; max-height: 70px; height: auto; width: auto; object-fit: contain; }
.wp-brand-item .wp-brand-name { font-size: 13px; font-weight: 600; }

/* === Hide right product sidebar (placeholder iqithtmlandbanners block) === */
.product-sidebar { display: none !important; }
.col-product-info { flex: 0 0 66.6666% !important; max-width: 66.6666% !important; }

/* === Über {Manufacturer} tab — matches WP brand panel layout === */
.product-manufacturer-tab { max-width: 1100px; margin: 0 auto; }
.product-manufacturer-tab .wp-brand-header {
  display: flex; align-items: center; gap: 18px;
  border-bottom: 1px solid #eee; padding-bottom: 16px; margin-bottom: 18px;
}
.product-manufacturer-tab .wp-brand-header h3 { font-size: 24px; font-weight: 600; margin: 0; }
.product-manufacturer-tab .wp-brand-intro { line-height: 1.65; margin-bottom: 24px; font-size: 15px; }
.product-manufacturer-tab .wp-brand-intro p { line-height: 1.65; margin-bottom: 12px; }
.product-manufacturer-tab .wp-brand-grid-title {
  font-size: 18px; font-weight: 600; margin: 24px 0 14px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.product-manufacturer-tab .wp-brand-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 24px;
}
.product-manufacturer-tab .wp-brand-grid-item {
  border: 1px solid #eaeaea; border-radius: 4px; background: #fff;
  padding: 12px; text-align: center;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.product-manufacturer-tab .wp-brand-grid-item:hover {
  border-color: var(--wd-primary-color, #347a5a);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.product-manufacturer-tab .wp-brand-grid-thumb { display: block; margin-bottom: 10px; }
.product-manufacturer-tab .wp-brand-grid-thumb img { max-width: 100%; height: auto; }
.product-manufacturer-tab .wp-brand-grid-name {
  display: block; font-size: 13px; font-weight: 600; color: #242424;
  text-decoration: none; line-height: 1.3; margin-bottom: 6px; min-height: 34px;
}
.product-manufacturer-tab .wp-brand-grid-name:hover { color: var(--wd-primary-color, #347a5a); }
.product-manufacturer-tab .wp-brand-grid-price {
  display: block; font-size: 14px; font-weight: 700;
  color: var(--wd-primary-color, #347a5a);
}
.product-manufacturer-tab .wp-brand-cta { margin-top: 18px; }
.product-manufacturer-tab h3 { font-size: 22px; font-weight: 600; margin: 14px 0 10px; }
.product-manufacturer-tab p { line-height: 1.65; margin-bottom: 12px; }
/* Hide oversized embedded WP gallery images & wrapper anchors that survived migration */
.product-manufacturer-tab a[href*="craftmax.com/produkt/"] { pointer-events: none; }
.product-manufacturer-tab a[href*="craftmax.com/produkt/"] img[srcset],
.product-manufacturer-tab img[srcset*="craftmax.com/wp-content/uploads/2022"],
.product-manufacturer-tab img[src*="-800x800"],
.product-manufacturer-tab img[src*="-768x768"],
.product-manufacturer-tab img[src*="-1024x"] { display: none !important; }
/* Constrain remaining images so they don't dominate the tab */
.product-manufacturer-tab img { max-width: 220px; height: auto; }
.product-manufacturer-tab img.manufacturer-logo { max-width: 220px; margin-bottom: 12px; }

@media (max-width: 991px) {
  .col-product-info { flex: 0 0 100% !important; max-width: 100% !important; }
}
@media (max-width: 767px) {
  .wp-trust-badges { flex-direction: column; gap: 8px; padding: 10px 0; }
  .wp-trust-badges .trust-badge { flex: 1 1 100%; }
  .woodmart-product-tabs .wd-nav-tabs { gap: 16px; }
  .woodmart-product-tabs .wd-nav-tabs > li > a { font-size: 12px; padding: 10px 2px; }
  .wp-brand-item { flex-basis: 130px; }
  .wd-products-nav .wd-dropdown { right: -50px; }
}

.page-category div#left-column ul li label {
        width: 100%;
    margin-bottom: 0 !important;
    display: flex;
    padding: 6px 0;
}
.page-category div#left-column ul li label > a {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-left: 7px;
    font-size: 14px !important;
}
.page-category div#left-column ul li span.magnitude {
    padding-inline: 5px;
    min-width: 30px;
    height: 20px;
    border: 1px solid rgba(0, 0, 0, 0.105);
    border-radius: 35px;
    color: #767676;
    text-align: center;
    font-size: 12px;
    line-height: 18px;
    transition: color .25s ease, background-color .25s ease, border-color .25s ease;
    margin-inline-start: 5px;
}
.page-category div#left-column h4 span{
  font-size: 16px;
  text-transform: uppercase;
  color: #333;
}
.page-category div#left-column .block {
    border: 0;
    padding: 0;
}
.page-category div#left-column .block aside {
    border-bottom: 1px solid rgba(0, 0, 0, 0.105);
    padding-bottom: 21px;
    margin-bottom: 15px;
}

@media (min-width: 992px) {
  .page-category div#left-column {
      width: 25%;
      padding: 0 15px;
  }
  .page-category div#content-wrapper {
      width: 75%;
      padding: 0 15px;
  }
}


/* ═══════════════════════════════════════════════════
   GLOBAL SECTION SPACING
   ═══════════════════════════════════════════════════ */
#craftmax-category-page .craftmax-section {
  padding: 40px 0;
}

#craftmax-category-page .section-elementor-top {
  padding: 0; /* Elementor manages its own padding */
}

/* ═══════════════════════════════════════════════════
   SECTION TITLE (used by subcategories + recently viewed)
   ═══════════════════════════════════════════════════ */
.craftmax-subcategories .section-title,
.section-recently-viewed .section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

/* ═══════════════════════════════════════════════════
   SECTION 2 — SUBCATEGORY GRID
   ═══════════════════════════════════════════════════
   Matches the screenshot: 7 columns on desktop,
   4 on tablet, 2 on mobile — auto-flowing grid.
*/
.craftmax-subcategories {
  padding: 40px 0;
}

.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

@media (max-width: 1199px) {
  .subcategories-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 767px) {
  .subcategories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .subcategories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Individual Subcategory Card */
.subcategory-card {
  text-align: center;
}

.subcategory-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease;
}

.subcategory-link:hover {
  transform: translateY(-4px);
  text-decoration: none;
  color: #e2001a; /* CRAFTMAX red */
}

.subcategory-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.subcategory-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.subcategory-link:hover .subcategory-img {
  transform: scale(1.05);
}

.subcategory-img-placeholder {
  color: #bbb;
  font-size: 40px;
}

.subcategory-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: #333;
}

.subcategory-count {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════
   SECTION 6 — RECENTLY VIEWED (ps_viewedproduct)
   ═══════════════════════════════════════════════════
   The module renders using warehouse theme's product-list.tpl
   These rules fix spacing and heading for the category page context.
*/
.section-recently-viewed {
  background: #f8f8f8;
  padding: 40px 0;
}

.section-recently-viewed .block-title,
.section-recently-viewed h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 24px;
}

/* Force 3-column layout for recently viewed on desktop (matching screenshot) */
.section-recently-viewed .products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px;
}

@media (max-width: 767px) {
  .section-recently-viewed .products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .section-recently-viewed .products {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════
   SECTION SPACING SEPARATORS
   ═══════════════════════════════════════════════════ */
.section-service-brands,
.section-promo-banner,
.section-description-bottom {
  padding: 0; /* Elementor sections manage their own spacing */
}




