/**
 * Theme Name: Freshio Child
 * Description: This is a child theme of Freshio, generated by Merlin WP.
 * Author: <a href="https://pavothemes.com/">Pavotheme</a>
 * Template: freshio
 * Version: 2.4.2
 */

a:hover,
a:focus,
a:active {
    text-decoration: none!important;
    color: #FF9800;
}
.single-product .woocommerce-tabs ul.tabs li.active a:before,
.single-product .woocommerce-tabs ul.tabs li a:hover:before {
    width: 100%;
    display: none;
}
 .woocommerce-products-header h2,
 .elementor-section h2,
 .woocommerce-tabs h2{
    margin-top: 0.5em;
    font-size: 1.5em;
    color: #FF9800;
}
 .woocommerce-products-header h3,
 .elementor-section h3,
 .woocommerce-tabs h3{
    margin-top: 0.5em;
    font-size: 1.2em;
    color: #FF9800;
}
.elementor-section ul,
.elementor-section ol,
.woocommerce-tabs ul,
.woocommerce-tabs ol{
  margin-left: 30px;
  margin-top: 1em;
}
.elementor-widget-text-editor p{
  margin-bottom: 10px;
}
.elementor-section ul li,
.elementor-section ol li,
.woocommerce-tabs ul li,
.woocommerce-tabs ol li{
    margin-bottom: 10px;
}
.header-2 .header-bottom .left {
    width: 300px;
}
.related, .upsells {
    margin-top: 70px;
    margin-bottom: 50px;
    border: 1px solid #EBEBED;
    padding: 20px;
    border-radius: 10px;
    padding-bottom: 0px;
    background: #fcfcfc;
}
.elementor-tabs-h-align-right .elementor-tab-title:last-child {
    padding-right: 10px !important;
}
button, input[type='button'], input[type='reset'], input[type='submit'], .button {
    border-radius: 3px;
    border: none;
    background: none;
    background-color: #FF9800;
    border-color: #FF9800!important;
}
.widget_shopping_cart .buttons a {
    display: block;
    margin-bottom: 0.6180469716em;
    font-weight: 700;
    font-size: 18px;
    padding: 0.7em;
}
/* === GG Before Shop Section === */
.gg-before-shop {
    background-color: #fff8f0; /* màu nền nhẹ nhàng, có thể đổi theo theme */
    border-radius: 12px;
    padding: 30px 25px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
}

.gg-before-shop h2 {
    font-size: 1.6rem;
    color: #2c2c2c;
    margin-bottom: 15px;
    font-weight: 600;
}

.gg-before-shop p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.gg-before-shop ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.gg-before-shop ul li {
    font-size: 1rem;
    margin-bottom: 10px;
    border-bottom: 1px dashed #ccc;
    position: relative;
    color: #333;
}

.gg-before-shop ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
}

.gg-quick-select {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.gg-quick-select a {
    background-color: #ffd699;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gg-quick-select a:hover {
    background-color: #ffb347;
    color: #fff;
}

.gg-before-shop a[href^="tel:"] {
    color: #d35400;
    font-weight: 600;
    text-decoration: none;
}

.gg-before-shop a[href^="tel:"]:hover {
    text-decoration: underline;
}

/* === GG After Shop Section (Thực tế, hướng dẫn) === */
.gg-after-shop {
    background-color: #f9f9f9; /* nền nhẹ, trung tính để nhấn vào hướng dẫn */
    border-radius: 12px;
    padding: 30px 25px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
}

.gg-after-shop h2 {
    font-size: 1.85rem;
    color: #2c2c2c;
    margin-bottom: 15px;
    font-weight: 600;
}

.gg-after-shop p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.gg-after-shop ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.gg-after-shop ul li {
    font-size: 1rem;
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    color: #333;
}

.gg-after-shop ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #27ae60; /* tick màu xanh nổi bật */
    font-weight: bold;
}

.gg-after-shop a[href^="tel:"] {
    color: #d35400;
    font-weight: 600;
    text-decoration: none;
}

.gg-after-shop a[href^="tel:"]:hover {
    text-decoration: underline;
}

.gg-after-shop strong {
    display: block;
    margin-bottom: 10px;
    color: #2c2c2c;
}


/* ========== CORE LAYOUT + WIDGETS ========== */
.widget .widget-title, 
.widget .widgettitle,
.related h2 {
    margin-bottom: 18px;
    text-transform: capitalize;
}
.widget {
    margin: 0 0 20px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ebebeb;
    padding: 10px;
    background: #fcfcfc;
}
#qrcode img { height: auto; max-width: 100%; display: block; margin: auto; }

.freshio-breadcrumb {
  padding: 30px 0;
  margin: 0 0 2em;
  min-height: 100px;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
}
.freshio-breadcrumb .breadcrumb-heading {
  font-size: 36px;
  margin-bottom: 20px;
  text-transform: capitalize;
}

.brand-thumbnails li img {
    border: 1px solid #e4e4e4;
    border-radius: 10px;
}

/* Woo hooks & widgets */
.woo-product-hook{
  background: #f7f7f8;
  margin: 10px 0!important;
  padding: 15px 15px 5px 0;
  border-radius: 12px;
  font-size: 14px;
  width: 100%;
  list-style-type: none!important;
  padding-left: 0!important;
}
.woo-product-hook li {
  display: flex;
  align-items: flex-start;
  line-height: 1.6;
  margin-left: -20px;
  border-bottom: 1px solid #CCB;
  text-align: left;
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.widget { margin: 0 0 20px 0; border-radius: 12px; overflow: hidden; }
.widget_recently_viewed_products{
  border: 1px solid #b4d4df;
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 20px;
  background: #f3f9ff;
}
.widget ul { margin-bottom: 20px; }
.widget .widget-title, .widget .widgettitle { margin-bottom: 20px; text-align: center; }
.widget-content .woocommerce-Price-amount.amount { font-size: 16px!important; }
.product_list_widget .product-title { margin: 5px 0; line-height: 1.41575em; }

/* ===== Single product form / quantity / voucher / gallery ===== */
.single-product div.product form.cart .quantity .qty {
  width: 125px!important;
  border-radius: 12px!important;
  padding: .75em 40px .75em 1em;
  text-align: left;
  font-size: 16px!important;
  color: #0a472e;
  border: 1px solid #ebebeb;
  -moz-appearance: textfield;
}
.voucher-product .voucher-thumb .voucher span { font-size: 16px!important; color: #1B5E20!important; }

.woocommerce-product-details__short-description ul,
.woocommerce-product-details__short-description ol { margin: 0 0 1em 2em; padding: 0; }
.woocommerce-product-details__short-description p { margin: 0 0 1em; }

.voucher-product { position: relative; margin-bottom: 10px!important; }

.wpcpo-total ul li.wpcpo-subtotal {
  border-top: 1px solid #eee;
  padding: 10px 0;
  margin-top: 10px!important;
  justify-content: flex-end;
}

/* Gallery block */
.single-product div.product.single-product-type-gallery .woocommerce-product-gallery__wrapper {
  background: #f7f7f8;
  padding: 10px!important;
}
.single-product div.product.single-product-type-gallery .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
  flex-basis: 46%;
  width: 52%;
  padding: 0 !important;
  margin: 10px 0 20px;
  background: #f7f7f8 !important;
  border-radius: 12px;
}
.single-product div.product.single-product-type-gallery .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image a {
  display: block;
  border: 1px solid #ebebeb;
  overflow: hidden;
  height: 100%;
  border-radius: 5px;
}

/* Entry summary action buttons */
.single-product div.product .entry-summary .woosc-btn,
.single-product div.product .entry-summary .wooscp-btn,
.single-product div.product .entry-summary .woosw-btn {
  margin-right: 10px;
  margin-top: 10px;
  font-size: 14px!important;
  border: 1px solid #ccc!important;
  padding: 2px 10px!important;
}

/* images / summary spacing */
.single-product div.product .images,
.single-product div.product .summary,
.single-product div.product .woocommerce-product-gallery { margin-bottom: 0!important; }

/* inventory status */
.single-product div.product .inventory_status {
  font-size: 14px!important;
  text-transform: uppercase;
  display: inline-block;
  padding: 5px 10px;
  color: #000;
  background: #defaf2;
  margin-bottom: 15px;
  line-height: 1;
}

/* wpcpo options */
.wpcpo-options{
  border: 3px dashed #c8cbc4!important;
  padding: 10px!important;
  padding-bottom: 0!important;
  border-radius: 12px!important;
  background: #fafafa!important;
}

/* site content messages top margin */
.site-content > .col-full > .woocommerce > .woocommerce-message:first-child,
.site-content > .col-full > .woocommerce > .woocommerce-info:first-child,
.site-content > .col-full > .woocommerce > .woocommerce-error:first-child {
  margin-top: 5px;
}

/* product meta badges */
.single-product div.product .product_meta .sku_wrapper > *,
.single-product div.product .product_meta .posted_in > *,
.single-product div.product .product_meta .tagged_as > * {
  color: #7e7e7e;
  margin-right: 10px;
  background: #ebebeb;
  padding: 5px 10px;
  border-radius: 5px;
}

/* breadcrumbs override */
.single-post .freshio-breadcrumb, .single-product .freshio-breadcrumb { margin-bottom: 2em!important; }

/* --- Single add to cart --- */
.single-product div.product .single_add_to_cart_button {
  font-weight: 700;
  font-size: 20px;
  padding: 10px 24px;
  max-width: 100%;
  border-radius: 2px;
  background-color: #ff8c00;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color .2s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.single-product div.product .single_add_to_cart_button:hover { background-color: #e07b00; }

/* product meta box */
.single-product div.product .product_meta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ebebeb;
  border: 1px solid #eaeaea;
  padding: 20px;
  overflow: hidden;
  border-radius: 10px;
  background: #f7f7f8;
}

/* summary container */
.summary.entry-summary {
  position: relative;
  padding: 12px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #222;
}

/* inventory (alt) */
.inventory_status {
  display: inline-block;
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* product title */
.product_title.entry-title {
  font-size: 1.75rem;
  margin: 6px 0 10px;
  line-height: 1.2;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.2px;
}

/* price area */
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-weight: 700;
}
.price ins,
.price .amount ins,
.price .woocommerce-Price-amount.amount ins { text-decoration: none; }
.price ins .woocommerce-Price-amount.amount,
.price ins .woocommerce-Price-amount,
.price ins {
  color: #d32f2f;
  font-size: 1.5rem;
  font-weight: 800;
  display: inline-block;
  line-height: 1;
}
.price del,
.price del .woocommerce-Price-amount,
.price del .woocommerce-Price-amount.amount {
  color: #777;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.85;
  text-decoration: line-through;
}
.woocommerce-Price-amount bdi,
.woocommerce-Price-currencySymbol { white-space: nowrap; }
.price:not(:has(del)) { color: #111; font-size: 1.5rem; }

/* sale percent label */
.product_title.entry-title + .price .sale-percent,
.price .sale-percent {
  background: #ffe9e9;
  color: #c62828;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-left: 6px;
}

/* short desc */
.woocommerce-product-details__short-description { margin-top: 12px; color: #333; font-size: 14px; }

/* responsive small */
@media (max-width: 680px) {
  .product_title.entry-title { font-size: 1.4rem; }
  .price ins { font-size: 1.25rem; }
  .inventory_status { margin-bottom: 6px; }
}

/* ===== CATEGORIES / META ===== */
.product_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin-top: 10px;
}
.product_meta > span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; white-space: nowrap; }
.product_meta span > span { display: none; }
.product_meta a { color: #00796b; text-decoration: none; font-weight: 500; }
.product_meta a:hover { text-decoration: underline; }
.product_meta .posted_in::before { content: "📦 "; color: #888; }
.product_meta .tagged_as::before { content: "🏷️ "; color: #888; }
.product_meta .posted_in:last-of-type::before { content: "🏭 "; color: #888; }

/* ===== HEADER / NAV / BLOCK STYLES ===== */
.header-2 .header-main { padding: 20px 0; background: #faf7f3; }

ul.products a[class*="product_type_"],
.wc-block-grid__products a[class*="product_type_"],
.product-list a[class*="product_type_"] {
  font-weight: 700;
  font-size: 16px!important;
  align-items: center;
}

.freshio-contact .contact_icon + .contact_content .sub-title + .title,
.freshio-contact .contact_icon + .contact_content .sub-title + .contact_link {
  margin-top: 10px;
  font-weight: 700;
}

.product-block .woocommerce-loop-product__title {
  font-size: 18px!important;
  font-weight: 700!important;
  line-height: 1.42;
  margin-bottom: 5px;
  padding: 0 15px;
}
.main-navigation ul.menu li.menu-item > a { padding: 1em 1em!important; }
.vertical-navigation .vertical-navigation-header .vertical-navigation-title { font-weight: 700; font-size: 18px; margin-top: -3px; }
.vertical-navigation ul.menu > li > a {
    color: #000;
    font-size: 16px;
    padding: 0.5em 20px;
    display: block;
    text-transform: capitalize;
}
.main-navigation ul ul.sub-menu li { display: block; min-width: 300px; }
.sub-menu .menu-item a{
    padding: 10px 10px 10px 20px !important;
    line-height: 1!important;
}
.entry-content p,
.elementor-section p,
.term-description p{
	line-height:30px;
}
.content-single-wrapper { border: 1px solid #ededed; padding: 10px; border-radius: 12px; }
.wc-tabs-wrapper { border: 1px solid #ededed; padding: 10px!important; border-radius: 12px; margin-top: 20px; }

.wpcpo-total { margin: 20px 0 10px 0; padding: 10px 0 0 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; overflow: hidden; }

/* product gallery split */
.freshio-full-width-content.single-product div.product .woocommerce-product-gallery { width: 50%; margin-right: 0; float: left; margin-bottom: 1em; }

.single-product div.product .product_title { font-size: 20px!important; line-height: 1.2; margin-bottom: 0.4em; }

.single-product div.product .images,
.single-product div.product .summary,
.single-product div.product .woocommerce-product-gallery { margin-bottom: 1em!important; margin-top: 0; }

.single-product div.product .woocommerce-product-gallery { width: 50%; margin-right: 0; float: left; margin-bottom: 1em!important; }

.single-product .woocommerce-tabs ul.tabs { padding-bottom: 10px!important; text-align: left !important; justify-content: left!important; }

.single-product div.product .images { width: 48%; float: left; margin-right: 10px!important; margin-bottom: 20px!important; }

#woocommerce_before_single_product_summary {
  background: #F1F8E9;
  border: 1px solid #2E7D32;
  font-size: 22px;
  color: #0C4A11;
  padding-top: 16px;
  padding-left: 10px;
}
#woocommerce_before_single_product_summary p { margin-left: 170px; margin-bottom: 8px; }

.content-single-wrapper .onsale {
  width: 144px;
  height: 40px;
  margin-top: 16px;
  font-size: 20px;
  background-color: #2E7D32;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(46,125,50,0.15);
  padding: 10px 12px;
  text-align: center;
  margin-left: 5px;
}

/* Nhãn Giảm giá trong trang chi tiết */
.content-single-wrapper .onsale {
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
  animation: heartbeat 2s infinite;
  display: inline-block;
  transform-origin: center;
}

/* Hiệu ứng nhịp tim */
@keyframes heartbeat {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.15); }
  40%  { transform: scale(1); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}


/* a3dg small tweaks */
.a3dg-navbar-control { border: 0!important; margin-bottom: 3px!important; }
.a3dg-nav { margin-bottom: 3px!important; }
.a3dg-thumbs-static { margin-top: 5px!important; }

/* ===== Mobile <=768px ===== */
@media (max-width: 768px) {
  .freshio-breadcrumb { margin-bottom: 2em!important; }
  .single-product div.product .woocommerce-product-gallery { width: 100% !important; margin-right: 0 !important; float: left !important; margin-bottom: 1em !important; }
  .single-product div.product .inventory_status {
    font-size: 14px;
    text-transform: uppercase;
    display: inline-block;
    padding: 5px 10px;
    color: #000;
    background: #defaf2;
    margin-bottom: 15px;
    line-height: 1;
    margin-top: 20px;
    width: 100%;
    text-align: center;
  }
  .entry-summary button { width: 46%; }
  .content-single-wrapper .onsale { display: inline-block; margin: 0; font-size: 18px; margin-left: 80px; }
  .single-product div.product .images { width: 100%!important; float: left; margin-right: 10px!important; margin-bottom: 20px!important; font-size: 18px; }
  #woocommerce_before_single_product_summary p { margin-left: 12px!important; margin-top: 30px!important; margin-bottom: 14px!important; text-align: center!important; }
}


/* ---------- Product block / grid ---------- */
ul.products li.product .product-block,
ul.products .wc-block-grid__product .product-block,
.wc-block-grid__products li.product .product-block,
.wc-block-grid__products .wc-block-grid__product .product-block {
  position: relative;
  transition: all 0.36s ease-in-out;
  height: 100%;
  background-color: #fff;
  padding: 14px 14px 28px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(10,10,10,0.05);
  overflow: hidden;
  border: 1px solid #f3f3f3;
}

/* images + hover second image */
.product-block .product-transition { display: block; }
.product-block .product-img-wrap { position: relative; padding-bottom: 8px; }
.product-block .product-img-wrap .inner { position: relative; overflow: hidden; border-radius: 10px; }

.product-block .product-image,
.product-block .product-image.second-image {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .5s ease, opacity .4s ease, filter .4s ease;
  backface-visibility: hidden;
}

.product-block .product-image.second-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
}

/* swap-to-second on hover, subtle zoom on primary */
ul.products li.product .product-block:hover .product-image.second-image {
  opacity: 1;
  transform: scale(1.03);
}
ul.products li.product .product-block:hover .product-image {
  transform: scale(1.05);
  filter: brightness(1.04);
}

/* onsale badge */
.product-block .onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(180deg,#e6c77c,#d9b455);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  padding: 6px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: .6px;
  box-shadow: 0 6px 14px rgba(181,139,0,0.12);
  z-index: 6;
}

/* ========== GROUP ACTION (wishlist / compare / quickview) ==========
   - hover reveal overlay, center-aligned; icons / glyphs are NOT modified here.
*/
.slick-track{
    padding-bottom: 17px!important;
    padding-top: 15px!important;
}
ul.products li.product .group-action,
.wc-block-grid__products li.product .group-action {
  position: absolute !important;
  top: 90% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  z-index: 60 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
}

/* show on hover */
ul.products li.product:hover .group-action,
.wc-block-grid__products li.product:hover .group-action {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1) !important;
}

/* ensure overlay can be visible outside image wrappers */
ul.products li.product,
ul.products li.product .product-block { position: relative !important; z-index: 1; }
ul.products li.product .product-img-wrap,
ul.products li.product .product-img-wrap .inner { position: relative !important; overflow: visible !important; }

/* layout for action buttons (do not alter icon glyphs) */
.product-block .group-action .shop-action {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* main action button styling — keeps labels hidden but does NOT touch icon pseudo */
ul.products li.product .group-action .shop-action button,
.wc-block-grid__products li.product .group-action .shop-action button {
  width: 38px !important;
  height: 38px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  font-size: 0 !important;      /* hides textual label only */
  line-height: 0 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
  border: 0px solid #e6e6e6 !important;
  background: #fffef9 !important;
  transition: transform .18s ease, background .18s ease, border-color .18s ease !important;
  cursor: pointer;
  overflow: hidden;
}

/* hover for buttons (visual only) */
.product-block .group-action .shop-action button:hover {
  transform: scale(1.08) !important;
  background: #fff8e1 !important;
  border-color: #f5d97a !important;
}

/* don't override ::before glyphs here — only tweak their hover color if present */
.product-block .group-action .shop-action button:hover::before {
  color: #c29200 !important;
}

/* responsive adjustments */
@media (max-width: 768px) {
  ul.products li.product .group-action {
    opacity: 1 !important;
    pointer-events: auto !important;
    bottom: 8px !important;
    right: 8px !important;
    transform: none !important;
  }
  ul.products li.product .group-action .shop-action button { width: 34px !important; height: 34px !important; }
}
@media (max-width: 600px) {
  ul.products li.product .group-action {
    top: auto !important;
    left: auto !important;
    right: 10px !important;
    bottom: 10px !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .product-block .group-action .shop-action button { width: 32px !important; height: 32px !important; }
}

/* ---------- Product small tweaks (secondary buttons) ---------- */
.product-block .shop-action button {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: .85rem;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.product-block .shop-action button:hover { transform: translateY(-4px); background: rgba(245,245,245,0.9); }

/* ---------- Titles, rating, reviews ---------- */
.product-block .star-rating { margin-top: 8px; text-align: center; font-size: .9rem; color: #f5a623; line-height: 1; }
.product-block h3.woocommerce-loop-product__title {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 8px 0 6px;
  text-align: center;
  color: #2f2f2f;
  transition: color .24s;
}
.product-block:hover h3.woocommerce-loop-product__title { color: #b58b00; }

/* gcrs-detailed-review collapsed on grid */
.product-block .gcrs-detailed-review {
  margin: 6px 0 10px;
  font-size: .86rem;
  color: #606060;
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease, opacity .32s ease;
  opacity: 0;
  padding: 0 6px;
}
ul.products li.product .product-block:hover .gcrs-detailed-review {
  max-height: 420px;
  opacity: 1;
}
.gcrs-detailed-review .gcrs-crit-line { margin: 6px 0; }
.gcrs-detailed-review .gcrs-stars { color: #f5a623; }

/* price & add-to-cart button on grid */
.product-block .price {
  display: block;
  text-align: center;
  margin: 8px 0 10px;
  font-weight: 700;
  color: #b58b00;
}
.product-block .price del { color: #9b9b9b; font-weight: 500; margin-right: 6px; }
.product-block .price ins { color: #b58b00; text-decoration: none; }
.product-block .button.product_type_simple,
.product-block .button.add_to_cart_button,
.product-block a.button.product_type_simple {
  display: inline-block;
  margin: 6px auto 0;
  background-color: #d89a00;
  color: #fff !important;
  border-radius: 50px;
  padding: 9px 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  box-shadow: 0 8px 18px rgba(181,139,0,0.18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: none;
  text-align: center;
}
.product-block .button.product_type_simple:hover,
.product-block .button.add_to_cart_button:hover { transform: translateY(-3px); background-color: #ffb300; }

/* subtle light overlay */
.product-block::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent 0%, rgba(230,199,124,0.08) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
}
ul.products li.product .product-block:hover::after { opacity: 1; }

/* mobile compact */
@media (max-width: 600px) {
  .product-block { padding: 12px; border-radius: 8px; }
  .product-block .group-action { display: none; }
  .product-block .gcrs-detailed-review { max-height: 220px; }
  .product-block .onsale { top: 10px; left: 10px; padding: 5px 8px; font-size: .72rem; }
  .product-block h3.woocommerce-loop-product__title { font-size: .98rem; }
}

/* tooltip placeholder for JS */
.product-block .mini-preview { position: absolute; z-index: 20; display: none; }

/* debug helpers (commented) */
/*
ul.products li.product .group-action { outline: 1px dashed rgba(200,0,0,0.35); }
.product-block .group-action .shop-action button { outline: 1px solid rgba(0,100,200,0.15); }
*/


/* 1) Đảm bảo container sản phẩm cao đều nhau */
.woocommerce ul.products li.product,
.slick-slide .product {
  box-sizing: border-box;
  height: 100%;
}

/* 2) Dùng flex để nội dung sắp xếp gọn và phần dưới (ví dụ nút, rating) không làm bung layout */
.product-block {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 3) Giữ phần chứa ảnh + title + excerpt chiếm không gian chính (co dãn) */
.product-transition {
  flex: 1 1 auto; /* chiếm phần còn lại */
  margin-bottom: 0px !important;
}
.product-block .star-rating{
  margin-bottom: 0px !important;
}
/* 4) Dành chỗ cố định cho rating/summary để tất cả sản phẩm đồng chiều cao */
.star-rating,
.gcrs-detailed-review,
.product .product-bottom-placeholder {
  min-height: 8px; /* điều chỉnh theo chiều cao thực tế cần giữ chỗ */
  line-height: 1;
  display: block;
}

/* 5) Nếu muốn phần rating không lộ khi rỗng */
.product .product-bottom-placeholder[aria-hidden="true"] {
  visibility: hidden;
}

/* 6) Ổn định hình ảnh để slide không thay đổi chiều cao do ảnh */
.product-image img,
.product-image.second-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px; /* điều chỉnh cho slider của bạn */
  object-fit: cover;
}

.gcrs-crit-stars{
  color: #FFCC2F !important;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(216,154,0, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(216,154,0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216,154,0, 0); }
}

.add_to_cart_button {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(216,154,0, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(216,154,0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216,154,0, 0); }
}

.single_add_to_cart_button {
  background-color: #d89a00;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 12px 24px;
  transition: all 0.3s ease;
  animation: pulseGlow 2s infinite;
  cursor: pointer;
}

.single_add_to_cart_button:hover {
  background-color: #ffb300;
  transform: scale(1.03);
}
