/*
Theme Name:   Hello Elementor Child
Theme URI:    https://example.com/
Description:  Child theme for Hello Elementor
Author:       Your Name
Author URI:   https://example.com/
Template:     hello-elementor
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  hello-elementor-child
*/

/* âœ… Custom CSS goes below */


/* === Brand Gallery Filters Modern Style === */
.brand-gallery-filters {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  font-family: 'Inter', sans-serif;
}

.brand-gallery-filters select,
.brand-gallery-filters input[type="text"] {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  outline: none;
  transition: all 0.2s ease;
  min-width: 180px;
}

.brand-gallery-filters select:focus,
.brand-gallery-filters input[type="text"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.brand-gallery-filters input[type="text"] {
  flex: 1;
}

.brand-gallery-filters option {
  padding: 8px;
}

.brand-gallery-filters select:hover,
.brand-gallery-filters input[type="text"]:hover {
  border-color: #bbb;
}

/* === Search Filters === */
.simple-search-filter {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  font-family: 'Inter', sans-serif;
}

.simple-search-filter input[type="text"] {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  outline: none;
  transition: all 0.2s ease;
  min-width: 220px;
  flex: 1;
}

.simple-search-filter input[type="text"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.simple-search-filter input[type="text"]:hover {
  border-color: #bbb;
}

/* === Gallery Grid === */
#simple-search-results,
#brand-gallery-results,
#brand-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  min-height: 500px; /* reserve enough space */
  padding: 0;
}

/* Reset lists */
.simple-search-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: contents;
}

.simple-search-list li {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.simple-search-list li:hover {
  border-color: #2563eb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.simple-search-list a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 16px;
}

/* === Brand Gallery Item === */
li.brand-gallery-item {
  list-style: none !important;
}

.brand-gallery-item,
.brand-item {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 160px;          /* Reserve vertical space */
  aspect-ratio: 4 / 3;        /* ðŸ”¥ Prevents CLS */
  overflow: hidden;
}

/* Images inside */
.brand-gallery-item img,
.brand-item img {
  width: 100%;
  height: 100%;
  max-height: max-content;
  object-fit: contain;
  display: block;
}

/* Hover effect */
@media (hover:hover) {
  .brand-item:hover,
  .brand-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  }
}

/* === Load More Button === */
#brand-load-more {
  display: block;
  margin: 25px auto 10px auto;
  padding: 12px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  background: #0a0a0a;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

#brand-load-more:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

#brand-load-more:active {
  background: #1e40af;
  transform: translateY(1px);
}

#brand-load-more:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

/* Counter style */
span.counter {
  color: red;
  font-weight: bold;
  font-size: 30px;
}

/* === Responsive Tweaks === */
@media (max-width: 640px) {
  .brand-gallery-filters select,
  .brand-gallery-filters input[type="text"] {
    width: 100%;
  }

  #simple-search-results,
  #brand-gallery-results,
  #brand-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .brand-gallery-item,
  .brand-item {
    min-height: 120px;
    aspect-ratio: 1 / 1; /* ðŸ”¥ Square items for mobile */
  }

  .brand-gallery-item img,
  .brand-item img {
    max-height: 120px;
  }

  #brand-load-more {
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  #simple-search-results,
  #brand-gallery-results,
  #brand-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.shop-counter {
  text-align: center;
}

.alignleft {
    float: left;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-top: 10px;
}

.alignright img, .alignleft img {
    border-radius: 10px;
}

.alignright {
    float: right;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-top: 10px;
}

.brand-logos-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, 255px); /* up to 4 columns of 255px */
  gap: 40px;
  justify-content: center; /* ✅ center items if fewer than 4 */
  margin: 20px 0;
}


.brand-product-feed .brand-logo {
    display: block;
    width: 255px;
    height: 180px;
    background: #fff;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer !important;
    pointer-events: auto !important;
    text-align: center;
}

.brand-product-feed .brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
    display: block;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.brand-product-feed .brand-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.brand-product-feed .brand-logo:hover img {
    transform: scale(1.05);
}

.brand-logos-title {
    text-align: center;
    margin: auto;
}

/* ===== MOBILE GRID ===== */
    @media (max-width: 768px) {
  .brand-logos-wrap {
    grid-template-columns: repeat(2, 220px); /* 2 columns on tablets */
    gap: 20px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .brand-logos-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .brand-product-feed .brand-logo {
      width: 100% !important;
      aspect-ratio: 1 / 1 !important;
  }
}

.brand-post-content .woocommerce ul.products li.product a img {
    pointer-events: auto !important;
    cursor: pointer !important;
}



/* WOOCOMMERCE STYLE */
.woocommerce span.onsale {
    border-radius: 10px !important;
    background: rgb(246 145 19) !important;
    padding: 0;
    width: 110px;
    clip-path: polygon(20% 10%, 100% 10%, 100% 90%, 20% 90%, 0 50%);
}

h2.woocommerce-loop-product__title a, span.price a {
    color: black;
} {
    color: black;
}
h2.woocommerce-loop-product__title {
    flex-grow: 1;
		align-content: center;
}
a.button.product_type_external {
    width: 100%;
    text-align: center;
}

.woocommerce ul.products li.product .button {
    display: inline-block;
    margin-top: 1em;
    background: #009688;
    color: white;
}

ul.products.columns-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    justify-items: center;
    gap: 20px;
}

.woocommerce ul.products li.product .price { display:flex; flex-direction: column; flex-grow: 1; }

.woocommerce.columns-4  li.product { 
	display:flex !important;
	flex-direction: column;
	height:100%
}


.woocommerce ul.products li.product {
    float: none !important;
    margin: auto !important;
    padding: 10px !important;
    position: unset !important;
    width: 100% !important;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    transition: transform 0.2s 
ease, box-shadow 0.2s 
ease;
}

.woocommerce ul.products li.product .onsale {
    top: 60px;
    right: unset !important;
    left: unset !important;
    margin: 0;
    place-self: end !important;
	  position: unset !important;
}

/* Disable WooCommerce products clearfix pseudo-elements */
.woocommerce .products ul::before,
.woocommerce .products ul::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    content: none !important;
    display: unset !important;
}

.woocommerce ul.products li.product a img {
    height: 150px;
    object-fit: contain;
}

.woocommerce-loop-product__title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;       /* number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.woocommerce ul.products li.product:hover {
	transform: translateY(-4px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}

@media (max-width: 480px) {
	ul.products.columns-4 {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

span.price a {
    color: red;
}

