/* ==================================================
   1. PRODUCT IMAGE ALIGNMENT (WOODMART SAFE)
   ================================================== */

.woocommerce ul.products li.product .content-product-imagin {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.woocommerce ul.products li.product img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}


/* ==================================================
   2. HARD REMOVE STAR RATINGS (NO COMEBACK)
   ================================================== */

.wd-product-rating,
.star-rating,
.woocommerce .star-rating,
.product-rating,
div.star-rating {
  display: none !important;
}

/* Kill Woodmart pseudo stars */
.star-rating::before,
.star-rating span::before,
.wd-product-rating::before {
  content: none !important;
  display: none !important;
}


/* ==================================================
   3. NORMALIZE PRODUCT CARD HEIGHT (REAL FIX)
   ================================================== */

/* Do NOT flex li.product */
.woocommerce ul.products li.product {
  height: 100%;
}

/* Main wrapper */
.woocommerce ul.products li.product .product-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Bottom content block (THIS is the key) */
.woocommerce ul.products li.product .product-element-bottom {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 210px;
}


/* ==================================================
   4. PRODUCT TITLE – CLAMP + FULL VIEW ON HOVER
   ================================================== */

.woocommerce ul.products li.product .wd-entities-title {
  position: relative;
  overflow: hidden;
  line-height: 1.4em;
  height: 2.8em; /* exactly 2 lines */
}

/* Default clamp */
.woocommerce ul.products li.product .wd-entities-title a {
  display: block;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Expand title on hover */
@media (hover: hover) {
  .woocommerce ul.products li.product:hover .wd-entities-title {
    overflow: visible;
  }

  .woocommerce ul.products li.product:hover .wd-entities-title a {
    -webkit-line-clamp: unset;
    max-height: none;
  }
}


/* ==================================================
   5. ALIGN PRICE + CTA PERFECTLY
   ================================================== */

.woocommerce ul.products li.product .price {
  margin-top: auto;
}

.woocommerce ul.products li.product .wd-add-btn {
  margin-top: 10px;
}


/* ==================================================
   6. OPTIONAL: REMOVE SKU HEIGHT JITTER
   ================================================== */

.woocommerce ul.products li.product .sku {
  min-height: 18px;
  display: block;
}

/* === WOODMART COMPARE === */
.wd-compare,
.wd-compare-btn,
.wd-action-btn.wd-compare,
.wd-product-compare,
.wd-hover-icons .wd-compare,
a[data-action="compare"],
.product-compare-button,
.compare-btn,
.compare {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Remove compare space on single product */
.single-product .wd-product-actions {
  display: none !important;
}







/* Ensure "After Add to Cart" content is visible */
.single-product .wd-add-btn + * {
  display: block !important;
  margin-top: 10px;
}

.single-product .wd-add-btn {
  margin-bottom: 10px;
}
.product-trust-points {
  margin: 10px 0 0;
  padding-left: 0;
  list-style: none;
  font-size: 14px;
}

.product-trust-points li {
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
}

.product-trust-points li::before {
  content: "✔";
  color: #2e7d32;
  position: absolute;
  left: 0;
}






.wd-entities-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wd-entities-title a {
  position: relative;
}

.wd-entities-title a:hover::after {
  content: attr(title);
  position: absolute;
  background: #000;
  color: #fff;
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 4px;
  top: 100%;
  left: 0;
  z-index: 99;
  white-space: normal;
  width: 220px;
}

/* SHOP PAGE */

/* Hide category images completely */
.wd-cat-thumb,
.wd-cat-thumb img,
.wd-cat-inner img {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
}

/* Remove empty image container spacing */
.wd-cat-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hide category count */
.wd-cat-content span,
.wd-cat-content mark,
.wd-cat-content .count {
    display: none !important;
}
.wd-cat-inner {
    padding-top: 10px !important;
}


/* SHOP PAGE */
/* Hide category product count */
/* Remove category counts completely */
/* .wd-cat-content a.wd-fill.category-link {
    font-size: 0;
}

.wd-cat-content a.wd-fill.category-link::first-line {
    font-size: 16px;
} */

/* Hide category images */
/* .product-category img,
.wd-cat-thumb {
    display: none !important;
} */


/* =========================================
   FORCE LIST VIEW (KILL GRID COMPLETELY)
   ========================================= */

/* Container */
.wd-search-dropdown {
  width: 100% !important;
  max-width: 520px;
  max-height: 420px;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* 🔥 CRITICAL: Kill grid system */
.wd-search-dropdown .autocomplete-suggestions,
.wd-search-dropdown .autocomplete-suggestions.row,
.wd-search-dropdown .autocomplete-suggestions.grid,
.wd-search-dropdown .autocomplete-suggestions[class*="columns"] {
  display: block !important;
}

/* 🔥 FORCE EACH ITEM FULL WIDTH */
.wd-search-dropdown .autocomplete-suggestion {
  display: flex !important;
  width: 100% !important;
  flex: none !important;
  max-width: 100% !important;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  box-sizing: border-box;
}

/* 🔥 REMOVE COLUMN WIDTHS */
.wd-search-dropdown .autocomplete-suggestion[class*="col"],
.wd-search-dropdown .autocomplete-suggestion[class*="wd-col"] {
  width: 100% !important;
  flex: none !important;
  max-width: 100% !important;
}

/* IMAGE */
.wd-search-dropdown img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

/* TEXT */
.wd-search-dropdown .wd-entities-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #222;
  margin-bottom: 4px;
}

/* PRICE */
.wd-search-dropdown .price {
  font-size: 13px;
  font-weight: 600;
  color: #0a58ca;
}

/* OLD PRICE */
.wd-search-dropdown del {
  opacity: 0.5;
  font-size: 11px;
  margin-right: 4px;
}

/* FLEX FIX */
.wd-search-dropdown .autocomplete-suggestion > div {
  flex: 1;
  min-width: 0;
}

/* HOVER */
.wd-search-dropdown .autocomplete-suggestion:hover {
  background: #f8f9fb;
}

/* VIEW ALL */
.wd-search-dropdown .wd-view-all {
  text-align: center;
  padding: 12px;
  font-weight: 600;
  border-top: 1px solid #eee;
}

/* SCROLL */
.wd-search-dropdown::-webkit-scrollbar {
  width: 4px;
}
.wd-search-dropdown::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* 🔥 MOBILE FIX (CENTER + FULL WIDTH) */
@media (max-width: 768px) {
  .wd-search-dropdown {
    max-width: 95vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}