/*
Theme Name:           Flatsome
Theme URI:            http://flatsome.uxthemes.com
Author:               UX-Themes
Author URI:           https://uxthemes.com
Description:          Multi-Purpose Responsive WooCommerce Theme
Version:              3.19.15
Requires at least:    6.4
Requires PHP:         7.4
WC requires at least: 8.3
Text Domain:          flatsome
License:              https://themeforest.net/licenses
License URI:          https://themeforest.net/licenses
*/


/***************
All custom CSS should be added to Flatsome > Advanced > Custom CSS,
or in the style.css of a Child Theme.
***************/

/* Style cho ảnh sản phẩm trong gallery slider */
.product-gallery-slider .slide {
  position: relative;
  overflow: hidden;
  border: 4px solid #39b54a;
  padding: 25px 10px 10px;
}

/* Logo ở góc trên bên trái */
.product-gallery-slider .slide::before {
  content: "";
  width: 80px;
  height: 80px;
  margin: auto;
  position: absolute;
  top: 5px;
  left: 10;
  z-index: 9;
	background: url('https://nhathuocbinhdan.com/wp-content/uploads/2025/09/z7048661403050_9f1c538af0fc5e55339cda4f4de74b72-removebg-preview.png') no-repeat;
	background-position: top center;
	background-size: 80px;
}

/* Đảm bảo ảnh không bị méo */
.product-gallery-slider .slide img {
  width: 100%;
  height: auto;
  display: block;
}

.lightbox-content {
	padding: 20px;
}
  .badge-container.is-larger.absolute.left.top.z-1 {
    position: absolute !important;
    top: 2% !important;
    left: 80% !important;
    /* Giữ nguyên các style khác nếu cần, chỉ override vị trí cho khối ngoài cùng */
  }
@media (max-width: 768px) {
	
	a.plain h1 {
  color: black !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  width: auto !important;
  max-width: none !important;
  display: block !important;
}
}
/* 
.primary.is-link, .primary.is-outline, .primary.is-underline {
    color: #017c02 !important;
}

.is-outline:hover, .primary.is-outline:hover {
    background-color: #017c02 !important;
    border-color: #017c02 !important;
    color: #fff !important;
} */

/* Trạng thái bình thường (giống hover cũ) */
.primary.is-link,
.primary.is-outline,
.primary.is-underline {
    background-color: #017c02 !important;
    border-color: #017c02 !important;
    color: #fff !important;
}

/* Trạng thái hover (trở về bình thường cũ) */
.primary.is-outline:hover,
.is-outline:hover {
    background-color: transparent !important;
    border-color: #017c02 !important;
    color: #017c02 !important;
}


a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    font-weight: 600;
    color: #000;
}

.product_meta {
	display: none;
}

.grid-tools a {
    background-color: #017c02 !important;
    color: #f1f1f1;
    display: block;
    font-size: .85em;
    font-weight: 700;
    opacity: .95;
    padding: .4em 0 .5em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    transition: opacity .3s;
    width: 100%;
}

.price-wrapper del {
	 font-size: 13px !important;
}

.price-wrapper ins,
.price-wrapper span.price {
    font-size: 16px !important;
}

.badge-circle, .badge-outline {
    margin-left: 0.5em !important;
    margin-top: -20px !important;
    font-size: 16px !important;
}


/* Default cho big screen (màn hình lớn) */
button.mfp-close {
    top: 30% !important;
    right: 22% !important;
}

/* Laptop (màn hình trung bình) */
@media screen and (max-width: 1024px) and (min-width: 850px) {
    button.mfp-close {
        top: 35% !important;
        right: 25% !important;
    }
}

/* Mobile (màn hình nhỏ) */
@media screen and (max-width: 768px) {
    button.mfp-close {
        top: 20% !important;
        right: 5% !important;
    }
}

/* Làm tất cả button sản phẩm full-width, text thuần, không icon */
.add_to_cart_button, .single_add_to_cart_button, .ux-buy-now-button, .product_type_external,
.single_add_to_cart_button,
.buy_now_button,
.woocommerce-Price-amount + .button,  /* Nếu button sau giá */
.button.alt {  /* Button chính (như Mua ngay) */
       text-transform: math-auto !important;
    cursor: pointer;
}

.footer-image {
	padding-bottom: 0 !important;
}

@media (max-width: 768px) {
    .footer-image .col-inner {
        text-align: center;
    }

    .footer-image #image_80575228 {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .footer-image .col-inner {
        text-align: center !important;
    }

    .footer-image .img {
        margin-left: auto;
        margin-right: auto;
    }
}


.footer1 .license-title,
.footer1 .certificate-title {
    margin-bottom: 0 !important;
}

.text-footer2 p {
	margin-bottom : 10px !important;
}

.tooltipstered {
	padding: 20px 0 0 0 !important;
}

.footer-image .img {
	margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .footer2,
    .footer3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
	
	.footer1 span,
	.footer2 span,
	.footer3 span {
		font-size: 14px !important;
	}

}
