/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/
/* Kleinere, vaste inline aantal selector met paarse kleuren */
.woocommerce .quantity {
    display: inline-flex;
    border-radius: 4px;
    overflow: hidden;
}

/* Inputveld (aantal) */
.woocommerce .quantity input.qty {
    background-color: #582583 !important;
    color: #ffffff !important;
    width: 40px;
    height: 34px;
    font-size: 14px;
    text-align: center;
    border: none;
    padding: 0;
    margin: 0;
}

/* Plus en min knoppen */
.woocommerce .quantity .plus,
.woocommerce .quantity .minus {
    background-color: #582583 !important;
    color: #ffffff !important;
    width: 34px;
    height: 34px;
    font-size: 16px;
    text-align: center;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

/* Hover effect */
.woocommerce .quantity .plus:hover,
.woocommerce .quantity .minus:hover {
    background-color: #2b1c41 !important;
}
/* Winkelwagenpagina: aantal invoer knoppen gestyled */
.woocommerce-cart .quantity {
    display: inline-flex;
    border-radius: 4px;
    overflow: hidden;
}

/* Inputveld met aantal */
.woocommerce-cart .quantity input.qty {
    background-color: #582583 !important;
    color: #ffffff !important;
    width: 40px;
    height: 36px;
    font-size: 14px;
    text-align: center;
    border: none !important;
    padding: 0;
    margin: 0;
}

/* Min en plus knoppen */
.woocommerce-cart .quantity .minus,
.woocommerce-cart .quantity .plus {
    background-color: #582583 !important;
    color: #ffffff !important;
    width: 36px;
    height: 36px;
    font-size: 16px;
    text-align: center;
    border: none !important;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

/* Hoverkleur */
.woocommerce-cart .quantity .minus:hover,
.woocommerce-cart .quantity .plus:hover {
    background-color: #2b1c41 !important;
}
/* Verberg de blauwe achtergrond van beschikbaarheidsmelding */
.single-product .woocommerce-variation-availability .stock {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline !important;
    font-size: 14px !important;
    color: #2b1c41 !important; /* Donkerpaars zoals je gebruikt */
    font-weight: 600;
}

/* Verwijder extra spacing van container */
.single-product .woocommerce-variation-availability {
    padding: 0 !important;
    margin: 0 !important;
    display: inline !important;
}
a.btn.wd-switch-to-register {
    color: #ffffff !important;
}
/* FIX: Zorg dat tekst wit blijft bij hover op "Nieuw Binnen"-knop */
a.btn:hover,
a.btn-style-default:hover {
    color: #ffffff !important;
}
@media (max-width: 767px) {
  .wd-products-element .woocommerce-variation-availability {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
@media (max-width: 767px) {
  .widget_product_categories .widget-title {
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0;
      color: #2b1c41;
      font-weight: 700;
      font-size: 16px;
      position: relative;
      padding-right: 26px;
  }

  .widget_product_categories .widget-title::after {
      content: "(klik hier)";
      font-weight: 300;
      font-size: 16px; /* match title font size */
      color: #2b1c41;
      margin-left: 4px;
      white-space: nowrap;
  }

  .widget_product_categories .widget-title::before {
      content: '';
      position: absolute;
      right: 6px;
      top: 50%;
      width: 10px;
      height: 10px;
      border: solid #2b1c41;
      border-width: 0 3px 3px 0;
      transform: translateY(-50%) rotate(45deg);
      transition: transform 0.3s ease;
      pointer-events: none;
  }

  .widget_product_categories.is-open .widget-title::before {
      transform: translateY(-50%) rotate(-135deg);
  }

  .widget_product_categories .product-categories {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
  }

  .widget_product_categories.is-open .product-categories {
      max-height: 1200px;
  }
}




}
/* Zoekbalk container */
.aws-container .aws-search-form {
    display: flex;
    align-items: center;
    border-radius: 6px !important;
    overflow: hidden;
    background-color: #f9f9f9;
    max-width: 100%;
    margin: 0 15px; /* tussenruimte links/rechts */
    border: none !important;
}

/* Inputveld */
.aws-container .aws-search-field {
    flex: 1;
    padding: 10px 15px !important;
    font-size: 15px !important;
    color: #2b1c41 !important;
    border: none !important;
    background-color: transparent !important;
    border-radius: 6px 0 0 6px !important;
}

/* Zoekknop */
.aws-container .aws-search-btn {
    background-color: #582583 !important;
    color: white !important;
    padding: 10px 15px !important;
    border: none !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 6px 6px 0 !important;
    transition: background-color 0.3s ease !important;
}

/* Hover effect */
.aws-container .aws-search-btn:hover {
    background-color: #2b1c41 !important;
}

/* Zoekicoon wit */
.aws-container .aws-search-btn svg {
    fill: white !important;
}
/* Zorg dat het zoekicoon wit blijft bij hover */
.aws-container .aws-search-btn:hover svg {
    fill: white !important;
}
/* Force single-row layout for AWS search dropdown */
.aws_result_item {
    display: flex !important;
    align-items: center;
    padding: 5px 10px;
    gap: 10px;
    line-height: 1.2;
}

.aws_result_item_img {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.aws_result_item_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
}

.aws_result_item_content .aws_title {
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aws_result_item_content .aws_price {
    font-size: 13px;
    color: #666;
}

/* Make suggestions scroll horizontally in 1 row */
.wd-suggestions-group.wd-type-product.grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden;
}

/* Make each product item not wrap and be aligned inline */
.wd-suggestions-group.wd-type-product.grid .wd-suggestion {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 180px; /* adjust based on your desired item size */
  margin-right: 16px;
}

/* ✅ Improve AWS search result readability */
.aws_result_item a,
.aws_result_item span {
  font-size: 17px !important;        /* Larger text */
  font-weight: 600 !important;       /* Thicker text */
  font-family: inherit !important;
  color: #2b1c41 !important;         /* Main text color */
  line-height: 1.4;
}

/* ✅ Hover effect */.aws_result_item a:hover,
.aws_result_item .aws_result_link_top:hover {
  color: #582583 !important;
}

/* ✅ Style the "Bekijk alle resultaten" link */
.aws_search_more {
  text-align: center !important;
  display: block !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  color: #2b1c41 !important;
  margin-top: 10px;
}

.aws_search_more:hover {
  color: #582583 !important;
}
/* Force hover color on AWS product title link */
.aws_result_item a.aws_result_link_top:hover {
  color: #582583 !important;
}
/* Only the dropdowns inside the Woodmart Product Filters widget in Elementor */
.elementor-widget-wd_product_filters select:not([multiple]) {
  /* hide native arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* custom chevron (thicker + #2b1c41) */
  background-image:
    linear-gradient(45deg, transparent 50%, #2b1c41 50%),
    linear-gradient(135deg, #2b1c41 50%, transparent 50%);

  /* position the two triangles to form the ▼ */
  background-position:
    right 18px center,
    right 12px center;

  /* thickness/size of the arrow — increase for thicker */
  background-size: 10px 10px;
  background-repeat: no-repeat;

  /* space so text doesn't hit the arrow */
  padding-right: 40px;
}

/* Optional: keep color on hover/focus */
.elementor-widget-wd_product_filters select:not([multiple]):hover,
.elementor-widget-wd_product_filters select:not([multiple]):focus {
  background-image:
    linear-gradient(45deg, transparent 50%, #2b1c41 50%),
    linear-gradient(135deg, #2b1c41 50%, transparent 50%);
}

/* Hide the old arrow in very old Edge/IE (harmless elsewhere) */
.elementor-widget-wd_product_filters select::-ms-expand { display: none; }

/* Woodmart filter/sort caret color */
.wd-pf-dropdown .wd-pf-title:after {
  color: #2b1c41 !important;   /* caret uses icon font → color controls it */
}

/* keep same color when opened/active */
.wd-pf-dropdown.wd-opened .wd-pf-title:after,
.wd-pf-dropdown.opened .wd-pf-title:after {
  color: #2b1c41 !important;
}

/* If any of those carets are SVGs, this will catch them too */
.wd-pf-dropdown .wd-pf-title svg {
  fill: #2b1c41 !important;
  stroke: #2b1c41 !important;
}

/* If your “Sort by” uses Select2 (triangle made with borders) */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #2b1c41 transparent transparent transparent !important;
}