/*
 Theme Name:   Azlux
 Theme URI:    https://azlux.id/
 Description:  Azlux Theme
 Author:       Azlux
 Author URI:   https://azlux.id/
 Template:     hello-elementor
 Version:      1.0.0
*/

/* Tambahkan CSS kustom di bawah ini */
/* REMOVE EXTRA WHITE */
html, body {
    width: infinite;
    height: infinite;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

/* PENGATURAN FLOATING FOOTER MOBILE */

.menu-icon-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px; /* Jarak antara icon dan teks */
}

.menu-icon-vertical i {
    font-size: 22px; /* Sesuaikan ukuran icon */
}

.menu-icon-vertical span {
    display: block;
}

.elementor-menu-cart__main {
    z-index: 999;
}

.azlux-coupons {
    margin-left: 0;
    margin-right: 0;
}

.azlux-coupon {
    padding: 5px;
}

.azlux-coupon-content {
    font-family: "Roboto", Sans-serif;
    position: relative;
    border-radius: 5px 5px 10px 10px;
    border: 1px solid #BBBBBB;
    border-bottom: 0;
    padding: 10px;
}

.azlux-coupon-content:after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    border-top: 1px dashed #000;
    width: calc(100% - 40px);
    bottom: 0;
}

.azlux-coupon-content__header {
    margin-bottom: 8px;
}

.azlux-coupon .azlux-coupon-content,
.azlux-coupon .azlux-coupon-footer {
    background-color: #fff;
}

.azlux-coupon-content__header__title {
    font-size: 0.7rem;
    font-weight: 700;
    background: #7B0000;
    color: #fff;
    border-radius: 7px;
    padding: 8px 16px 5px 12px;
    margin-right: 20px;
}

.azlux-coupon-content__header__subtitle,
.azlux-coupon-content__description,
.azlux-coupon-footer {
    font-size: 0.8rem;
    font-weight: 500;
}

.azlux-coupon-content__coupon_code {
    display: flex;
    gap: 20px;
    align-items: center;
}

.azlux-coupon-content__coupon_code__text {
    font-size: 0.9rem;
    font-weight: 700;
}

.azlux-coupon-content__coupon_code__copy {
    position: relative;
    color: #7B0000;
    cursor: pointer;
}

.azlux-coupon-content__coupon_code__copy::after {
    content: "Kode tersalin";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #7B0000;
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.azlux-coupon-content__coupon_code__copy.is-copied::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.azlux-coupon-content__coupon_code__copy svg {
    width: 16px;
    height: 16px;
}

.azlux-coupon-content__description,
.azlux-coupon-footer {
    font-weight: 400;
}

.azlux-coupon-footer {
    border-radius: 10px 10px 5px 5px;
    border: 1px solid #BBBBBB;
    border-top: 0;
    padding: 10px;
    line-height: 1em;
}

.azlux-coupons .slick-dots {
    position: relative;
    bottom: 8px;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
}

.azlux-coupons .slick-dots li {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 5px;
    padding: 0;
    cursor: pointer;
}

.azlux-coupons .slick-dots li button {
    font-size: 0;
    line-height: 0;
    display: block;
    width: 20px;
    height: 20px;
    padding: 5px;
    cursor: pointer;
    color: transparent;
    border: 0;
    outline: none;
    background: transparent;
}

.azlux-coupons .slick-dots li button:before {
    font-family: 'slick';
    font-size: 20px;
    line-height: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    content: '•';
    text-align: center;
    opacity: .25;
    color: black;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.azlux-coupons .slick-dots li.slick-active button:before {
    opacity: .75;
    color: black;
}

.form-search-product-brand-wrapper {
    position: relative;
}

.form-search-product-brand-wrapper  .clear-search {
  position: absolute;
  right: 20px;
    top: 45%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #999;
  cursor: pointer;
  display: none; /* default hidden */
}
.form-search-product-brand-wrapper .clear-search:hover {
  color: #333;
}

.form-search-product-brand-wrapper #product-search {
    padding-left: 40px;
    border-radius: 30px;
}

.ajax-product-suggestions.show {
    background: #fff;
    border-top: 1px solid #ddd;
}

.ajax-suggestions {
    padding: .5rem 1rem;
    max-width: 1140px;
    margin: auto;
}

.ajax-suggestions .suggest-section {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 700;
}

.ajax-suggestions .suggest-brands {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 20px;
}

.ajax-suggestions .suggest-brands .brand-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.ajax-suggestions .suggest-brands .brand-logo {
    max-width: 160px;
    height: auto;
    border: 2px solid #000;
    border-radius: 12px;
}

.ajax-suggestions .suggest-brands .brand-name {
    display: block;
    font-family: "Roboto", Sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--e-global-color-74dfeb8);
}

.ajax-suggestions .suggest-products {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ajax-suggestions .suggest-products a {
    text-decoration: none;
}

/*.ajax-suggestions .suggest-products .product-item {*/
/*    width: 100%;*/
/*    box-sizing: border-box;*/
/*    border: 1px solid #eee;*/
/*    padding: 10px;*/
/*}*/

.ajax-suggestions .suggest-products {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)); /* penting! */
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.ajax-suggestions .suggest-products .product-item {
    width: 100%;
    min-width: 0; /* kunci lebar agar seragam */
    box-sizing: border-box;
    border: 1px solid #eee;
    padding: 10px;
    overflow: hidden; 
}

.ajax-suggestions .suggest-products .product-thumbnail {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.ajax-suggestions .suggest-products .product-title {
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0;
     display: -webkit-box;
  -webkit-line-clamp: 2;     /* batas 2 baris */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ajax-suggestions .suggest-products .product-short-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.ajax-suggestions .suggest-products .product-price {
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.ajax-suggestions .suggest-products .product-brand {
    font-family: "Roboto", Sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--e-global-color-74dfeb8);

}

.ajax-suggestions .suggest-products .product-title {
    font-family: "Roboto", Sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3em;
    color: var(--e-global-color-secondary);
    text-decoration: none;
}

.ajax-suggestions .suggest-products del {
    color: var(--e-global-color-text);
    font-family: "Roboto", Sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.ajax-suggestions .suggest-products ins {
    color: var(--e-global-color-ac08223);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
}

.ajax-suggestions .readmore {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.ajax-suggestions .readmore .see-all-results {
    display: inline-block;
    border: 1px solid #ddd;
    padding: 7px 30px;
    cursor: pointer;
}


/* Responsive */
@media (max-width: 1200px) {
    .ajax-suggestions .suggest-products {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .ajax-suggestions .suggest-brands {
        grid-template-columns: repeat(2, 1fr);
    }

    .ajax-suggestions .suggest-products {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* mode mobile */
@media (max-width: 768px) {
  .ajax-suggestions {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 1rem;
    padding-bottom: calc(160px + 16px);
    box-sizing: border-box;
  }

  .ajax-suggestions .suggest-brands {
    grid-template-columns: repeat(3, 1fr);
  }

  .ajax-suggestions .suggest-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .ajax-suggestions .suggest-products .product-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #eee;
    padding: 10px;
    background: #fff;
    min-height: 110px;
    box-sizing: border-box;
  }

  .ajax-suggestions .suggest-products .product-thumbnail {
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    object-fit: cover;
    display: block;
    margin: 0;
  }

  .ajax-suggestions .suggest-products .product-title {
    font-size: 15px;
    line-height: 1.3;
    margin: 4px 0;
    color: var(--e-global-color-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .ajax-suggestions .suggest-products .product-brand {
    font-size: 14px;
    font-weight: 600;
    color: var(--e-global-color-74dfeb8);
  }

  .ajax-suggestions .suggest-products .product-price {
    font-size: 15px;
    font-weight: 700;
    margin-top: 4px;
  }

  /* pastikan tombol tidak tertutup */
  .ajax-suggestions .readmore {
    text-align: center;
    margin: 20px 0 0 0;
    padding-bottom: 12px;
    position: relative;
    z-index: 2;
  }

  .ajax-suggestions .readmore .see-all-results {
    display: inline-block;
    border: 1px solid #ddd;
    padding: 7px 30px;
    position: relative;
    z-index: 3;
    background: #fff;
  }
}