/* opsBlock — CSS WooCommerce (tách khỏi opsblock.css ở site Flatsome đưa vào @layer woo cùng woocommerce.css để CSS child thắng) */
/* Kiểu Woo riêng của opsBlock — chỉ khi không ở chế độ Flatsome (site Flatsome dùng kiểu như Flatsome trong fs-woo.css) */
:where(html:not(:has(>body.fs-compat))) .woocommerce .woo-main{width:100%}

:where(html:not(:has(>body.fs-compat))) .woocommerce ul.products::before,:where(html:not(:has(>body.fs-compat))) .woocommerce ul.products::after,:where(html:not(:has(>body.fs-compat))) .woocommerce-page ul.products::before,:where(html:not(:has(>body.fs-compat))) .woocommerce-page ul.products::after{content:none;display:none}

:where(html:not(:has(>body.fs-compat))) .woocommerce ul.products,:where(html:not(:has(>body.fs-compat))) .woocommerce-page ul.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0;padding:0;list-style:none}

:where(html:not(:has(>body.fs-compat))) .woocommerce ul.products li.product,:where(html:not(:has(>body.fs-compat))) .woocommerce-page ul.products li.product{width:auto!important;min-width:0;margin:0!important;float:none!important;
  background:#fff;border:1px solid #eef2ef;border-radius:var(--radius);padding:14px;text-align:center;
  display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}

:where(html:not(:has(>body.fs-compat))) .woocommerce ul.products li.product:hover{box-shadow:0 12px 26px rgba(0,0,0,.08);transform:translateY(-2px)}

:where(html:not(:has(>body.fs-compat))) .woocommerce ul.products li.product a img{border-radius:calc(var(--radius) - 2px);margin:0 0 12px;width:100%;max-width:100%;height:auto}

:where(html:not(:has(>body.fs-compat))) .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1rem;font-weight:600;color:var(--c-text);padding:0;margin:0 0 8px;min-height:2.6em}

:where(html:not(:has(>body.fs-compat))) .woocommerce ul.products li.product .price{color:var(--c-primary);font-weight:700;margin-bottom:12px;font-size:1rem}

:where(html:not(:has(>body.fs-compat))) .woocommerce ul.products li.product .price del{color:var(--c-muted);font-weight:400;margin-right:6px}

:where(html:not(:has(>body.fs-compat))) .woocommerce ul.products li.product .price ins{text-decoration:none}

:where(html:not(:has(>body.fs-compat))) .woocommerce ul.products li.product .button{margin-top:auto}

:where(html:not(:has(>body.fs-compat))) .woocommerce span.onsale{background:var(--c-primary);border-radius:999px;min-height:auto;min-width:auto;padding:4px 10px;top:10px;left:10px;margin:0;line-height:1.2}

:where(html:not(:has(>body.fs-compat))) .woocommerce a.button,:where(html:not(:has(>body.fs-compat))) .woocommerce button.button,:where(html:not(:has(>body.fs-compat))) .woocommerce input.button,:where(html:not(:has(>body.fs-compat))) .woocommerce #respond input#submit,:where(html:not(:has(>body.fs-compat))) .woocommerce a.button.alt,:where(html:not(:has(>body.fs-compat))) .woocommerce button.button.alt{
  background:var(--c-primary);color:#fff;border-radius:var(--radius);font-weight:600;padding:10px 18px;
  border:0;transition:filter .15s}

:where(html:not(:has(>body.fs-compat))) .woocommerce a.button:hover,:where(html:not(:has(>body.fs-compat))) .woocommerce button.button:hover,:where(html:not(:has(>body.fs-compat))) .woocommerce a.button.alt:hover{filter:brightness(.93);background:var(--c-primary)}

:where(html:not(:has(>body.fs-compat))) .woocommerce .button.add_to_cart_button,:where(html:not(:has(>body.fs-compat))) .woocommerce .button.product_type_variable{width:100%}

:where(html:not(:has(>body.fs-compat))) .woocommerce div.product .product_title{color:var(--c-text)}

:where(html:not(:has(>body.fs-compat))) .woocommerce div.product p.price,:where(html:not(:has(>body.fs-compat))) .woocommerce div.product span.price{color:var(--c-primary);font-weight:700}

:where(html:not(:has(>body.fs-compat))) .woocommerce div.product .woocommerce-tabs ul.tabs li.active{border-bottom-color:var(--c-primary)}

:where(html:not(:has(>body.fs-compat))) .woocommerce .woocommerce-message,:where(html:not(:has(>body.fs-compat))) .woocommerce .woocommerce-info{border-top-color:var(--c-primary)}

:where(html:not(:has(>body.fs-compat))) .woocommerce .woocommerce-message::before,:where(html:not(:has(>body.fs-compat))) .woocommerce .woocommerce-info::before{color:var(--c-primary)}

:where(html:not(:has(>body.fs-compat))) .woocommerce .star-rating span{color:var(--c-primary)}

@media (max-width:850px){:where(html:not(:has(>body.fs-compat))) .woocommerce ul.products,:where(html:not(:has(>body.fs-compat))) .woocommerce-page ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
}

@media (max-width:550px){:where(html:not(:has(>body.fs-compat))) .woocommerce ul.products,:where(html:not(:has(>body.fs-compat))) .woocommerce-page ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
:where(html:not(:has(>body.fs-compat))) .woocommerce ul.products li.product{padding:8px}
}

:where(html:not(:has(>body.fs-compat))) .woocommerce div.product form.cart{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0}

:where(html:not(:has(>body.fs-compat))) .woocommerce .quantity .qty{width:68px;height:42px;padding:0 8px;border:1px solid #dcdfdc;border-radius:var(--radius);text-align:center;font-size:1rem}

:where(html:not(:has(>body.fs-compat))) .woocommerce div.product form.cart .button{height:42px;width:auto}

:where(html:not(:has(>body.fs-compat))) .woocommerce div.product .product_meta{color:var(--c-muted);font-size:.9rem}

:where(html:not(:has(>body.fs-compat))) .woocommerce ul.products li.product .loop-cat{display:block;font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--c-accent);margin:4px 0 6px}

:where(html:not(:has(>body.fs-compat))) .woocommerce a.button.style-link,:where(html:not(:has(>body.fs-compat))) .woocommerce .button.style-link{background:transparent;border:0;box-shadow:none;padding-left:0;padding-right:0;color:inherit}

:where(html:not(:has(>body.fs-compat))) .woocommerce a.button.style-link.is-white{color:#fff}

/* Gallery: lúc flexslider vừa bọc .flex-viewport, track đã rộng nhiều lần nhưng slide chưa được gán độ rộng → giữ mỗi slide đúng bằng khung xem để trang không giãn rồi co (CLS) */
.woocommerce-product-gallery .flex-viewport{container-type:inline-size}
.product .woocommerce-product-gallery.images .flex-viewport .woocommerce-product-gallery__image.woocommerce-product-gallery__image:nth-child(n){float:left;width:100cqw} /* đặc hơn rule 25% của Woo cho ảnh thứ 2 trở đi */
