:root {
  --color-primary: #ecb400;
}

.heading-linear-gradient {
  background: linear-gradient(271deg, #ecb400 0.28%, #ffe286 99.76%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.has-icon-bottom {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.has-icon-bottom::after {
  content: "";
  width: 95px;
  height: 23px;
  background-image: url("https://ngoctaman.vn/wp-content/uploads/2025/10/icon-heading-bottom.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* menu dialog css custom */
#tm-dialog-mobile .uk-offcanvas-bar {
  padding: 36px 16px;
}
#tm-dialog-mobile .uk-nav li a {
  padding: 8px 5px;
  border-bottom: 1px solid #e5e5e580;
  color: #fff;
}
#tm-dialog-mobile .uk-nav li a:hover {
  color: var(--color-primary);
}
#tm-dialog-mobile .uk-nav li.uk-parent {
  position: relative;
}
#tm-dialog-mobile .uk-nav li.uk-parent > span.uk-nav-parent-icon {
  position: absolute;
  right: 0px;
  top: 0px;
  padding: 10px;
  width: 20px;
  height: 20px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-element-woo-products ul.products{
    margin-left: -10px;
    margin-bottom: -10px;
}

ul.products>*.product {
    padding-bottom: 10px;
    padding-left: 10px;
}

ul.products>* .woocommerce-loop-product__link, 
ul.products>.product-category>a{
    height: 100%;
    border-radius: 16px;
    border: 1px solid var(--color-primary);
	box-sizing: border-box;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
}

ul.products>* .woocommerce-loop-product__link .product-image-wrapper{
    overflow: hidden;
}

ul.products>* .woocommerce-loop-product__link img{
    transition: transform 0.3s ease;
}
ul.products>* .woocommerce-loop-product__link:hover img{
    transform: scale(1.05);
}

/* Product Image Wrapper */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

/* Product Content Wrapper */
.product-content-wrapper {
    padding: 12px 10px;
    background: #fff;
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

ul.products>* .product-content-wrapper .woocommerce-loop-category__title, 
ul.products>* .product-content-wrapper .woocommerce-loop-product__title {
    color: #070707 !important;
    font-family: Inter;

    flex-grow: 1;
}

ul.products>* .woocommerce-loop-product__link:hover  .woocommerce-loop-product__title {
    color: var(--color-primary) !important;
}

ul.products>* .product-content-wrapper .price{
    color: var(--color-primary) !important;
    line-height: 1.2;

    display: flex;
    flex-direction: column;
    gap: 6px;
}
ul.products>* .product-content-wrapper .price del{
    color: #7A7A7A;
    font-size: 12px;
}
ul.products>* .product-content-wrapper .price ins{
    color: var(--color-primary);
}

/* Ẩn nút Add to Cart */
.woocommerce ul.products li.product .button {
    display: none;
}

/* Custom Sale Badge */
.onsale-custom-box {
    display: flex;
    flex-direction: column;
}
.onsale-custom-box.onsale{
    font-size: 12px;
    font-weight: bold;
    text-transform: inherit;

    left: unset;
    right: 0;

    height: auto;
    padding: 0;
    border-radius: 4px 0 0 4px;
    overflow: hidden;
}
.badge-hot,
.badge-discount {
    flex: 1;
    width: 100%;
    background: #e74c3c;
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 1.4;
}

.badge-hot {
    background: #E02020;
    color: #fff;
}

.badge-discount {
    color: #E02020;
    background: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .onsale-custom-box {
        top: 5px;
        right: 5px;
    }

    .badge-hot,
    .badge-discount {
        font-size: 11px;
        padding: 4px 10px;
    }

    .product-category-label {
        font-size: 11px;
    }
}

@media only screen and (max-width: 639px) and (min-width: 375px) {
    ul.products.columns-2>*,
    ul.products.columns-3>*,
    ul.products.columns-4>*,
    ul.products.columns-5>*,
    ul.products.columns-6>* {
        width: 50%;
    }
}

@keyframes loop {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media only screen and (max-width: 959px) {
  .uk-navbar-item,
  .uk-navbar-nav > li > a,
  .uk-navbar-toggle {
    min-height: 66px;
  }
}
@media only screen and (max-width: 479px) {
  h1,
  .uk-h1 {
    font-size: 2.25rem;
  }
  h2,
  .uk-h2 {
    font-size: 1.5rem;
  }
  .tm-header-mobile .uk-logo.uk-navbar-item img {
    width: 200px;
  }
}
