/* Trang chi tiết theo mẫu; khung nội dung dùng .container 1400px như header. */
.single-product .product-cols { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; }
.single-product .product-gallery, .single-product .product-summary { min-width: 0; }
.single-product .product-gallery { position: relative; }
.single-product .woocommerce-product-gallery__image > a { display: block; aspect-ratio: 1.05; overflow: hidden; background: #f8faf9; border-radius: 12px; }
.single-product .woocommerce-product-gallery__image img:not(.zoomImg) { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.single-product .woocommerce-product-gallery__image img.wp-post-image { object-fit: cover; }
.single-product .woocommerce-product-gallery__trigger { top: 14px; right: 14px; width: auto; height: 34px; padding: 0 13px; gap: 9px; border-radius: 22px; box-shadow: none; background: rgba(255,255,255,.92); color: #16252a; }
.single-product .woocommerce-product-gallery__trigger img { display: none !important; }
/* Biểu tượng kính lúp có dấu cộng cho nút phóng to ảnh. */
.single-product .woocommerce-product-gallery__trigger::before { width: 17px; height: 17px; border: 0; border-radius: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.8v5.4M7.8 10.5h5.4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.8v5.4M7.8 10.5h5.4'/%3E%3C/svg%3E") center / contain no-repeat; }
.single-product .woocommerce-product-gallery__trigger::after { content: "Phóng to"; font-size: 12px; }
.pd-gallery-controls { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1.05; pointer-events: none; z-index: 4; }
.pd-gallery-controls[hidden], .pd-thumb-nav[hidden], .pd-gallery-controls button[hidden] { display: none; }
.pd-gallery-controls button, .pd-thumb-nav button { display: flex; align-items: center; justify-content: center; position: absolute; width: 36px; height: 36px; padding: 0; border: 1px solid #e8eceb; border-radius: 50%; color: #19282c; background: rgba(255,255,255,.96); box-shadow: 0 2px 5px rgba(20,40,30,.06); pointer-events: auto; }
.pd-gallery-controls button { top: 50%; transform: translateY(-50%); }
.pd-gallery-prev { left: 13px; }
.pd-gallery-next { right: 13px; }
.pd-gallery-count { position: absolute; bottom: 14px; right: 14px; padding: 5px 12px; border-radius: 24px; background: rgba(24,32,34,.65); color: #fff; font-size: 12px; line-height: 20px; }
.single-product .flex-control-thumbs { display: flex; gap: 10px; margin: 12px 24px 0; padding: 0; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.single-product .flex-control-thumbs::-webkit-scrollbar { display: none; }
.single-product .flex-control-thumbs li { flex: 0 0 calc((100% - 40px) / 5); min-width: 0; }
.single-product .flex-control-thumbs img { display: block; aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 7px; border: 2px solid transparent; opacity: .85; background: #f6f8f7; }
.single-product .flex-control-thumbs img.flex-active { border-color: #00a77a; opacity: 1; }
.pd-thumb-nav { position: absolute; bottom: 0; left: 0; width: 100%; height: calc((100vw - 120px) / 11); max-height: 110px; pointer-events: none; }
.pd-thumb-nav button { top: 50%; transform: translateY(-50%); width: 30px; height: 30px; }
.pd-thumb-nav [data-thumbs-prev] { left: -8px; }
.pd-thumb-nav [data-thumbs-next] { right: -8px; }
.pd-summary-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 14px; }
.pd-authentic { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 24px; background: #eaf5ed; color: #15271e; font-size: 10px; line-height: 18px; font-weight: 700; text-transform: uppercase; }
.pd-authentic:hover { color: #078249; }
.pd-favorite { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 10px; border: 1px solid #e5e9e9; border-radius: 24px; background: #fff; font-size: 11px; line-height: 18px; }
.pd-favorite[aria-pressed="true"] { color: #0c7046; border-color: #b6d7c5; background: #edf7f1; }
.pd-favorite[aria-pressed="true"] .vi { fill: currentColor; }
.single-product .product_title { margin: 0 0 16px; font-size: 26px; line-height: 1.2; font-weight: 700; color: #10242a; }
.single-product .woocommerce-product-details__short-description { margin: 0 0 14px; padding: 16px; border-radius: 12px; background: #f2f9f5; font-size: 14px; line-height: 1.55; color: #4b5152; }
.single-product .woocommerce-product-details__short-description > :last-child { margin-bottom: 0; }
.single-product .woocommerce-product-details__short-description ul { margin: 0; padding: 0; list-style: none; }
.single-product .woocommerce-product-details__short-description li { margin: 0 0 8px; }
.single-product .woocommerce-product-details__short-description li:last-child { margin-bottom: 0; }
.single-product .woocommerce-product-details__short-description strong { color: #126241; }
.single-product .product-summary > .price { padding-top: 12px; margin: 0 0 14px; font-size: 30px; line-height: 38px; color: #fa0808; }
.single-product .product-summary .price del { font-size: 18px; color: #89918c; }
.single-product .product-summary .price ins { text-decoration: none; }
.single-product .product-summary form.cart { gap: 12px; margin-bottom: 14px; }
.single-product .product-summary .quantity { height: 44px; border-color: #dce2e5; border-radius: 8px; flex-shrink: 0; }
.single-product .product-summary .quantity input.qty { width: 40px; border-color: #f0f2f3; }
.single-product .product-summary .quantity .minus, .single-product .product-summary .quantity .plus { width: 30px; font-size: 16px; }
.single-product .product-summary .single_add_to_cart_button { gap: 12px; min-height: 44px; border-radius: 8px; background: linear-gradient(105deg, #11794c, #0b603b); text-transform: none; font-size: 15px; box-shadow: 0 4px 8px rgba(16,118,71,.14); }
.single-product .product-summary .single_add_to_cart_button:hover { background: #085733; }
.single-product .quick-order { margin: 0 0 14px; padding: 13px; border: 1px solid #e5eeee; border-radius: 10px; background: #f5f9f9; }
.single-product .quick-order-title { margin: 0 0 2px; font-size: 14px; line-height: 21px; font-weight: 700; color: #0a5c3d; }
.single-product .quick-order-note { margin: 0 0 10px; font-size: 12px; line-height: 19px; color: #7d8c9b; }
.single-product .quick-order-btns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.single-product .qo-btn { justify-content: flex-start; gap: 8px; min-width: 0; height: 56px; padding: 7px 8px; border: 1px solid #dce5ec; border-radius: 9px; background: #fbfdff; font-size: 12px; white-space: normal; color: #16272d; }
.single-product .qo-call { background: #fff5f6; border-color: #efdfe2; }
.single-product .qo-call strong { color: #fc0808; }
.single-product .qo-ic { width: 32px; height: 32px; }
.single-product .qo-zalo-ic { background: #008ce9; font-size: 10px; }
.single-product .qo-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 18px; }
.single-product .qo-copy strong { font-size: 12px; white-space: nowrap; font-weight: 700; }
.single-product .qo-copy small { font-size: 10px; line-height: 16px; color: #7d8c9b; }
.single-product .share-links { flex-wrap: wrap; gap: 9px; padding-top: 12px; font-size: 12px; line-height: 20px; font-weight: 400; color: #4b5152; }
.single-product .share-links > span:first-child { margin-right: 3px; }
.single-product .share-links .pd-share { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 50%; padding: 0; color: #fff; }
.single-product .pd-share svg { width: 17px; height: 17px; }
.single-product .share-links .pd-share-facebook { background: #087bff; }
.single-product .share-links .pd-share-x { background: #1b1d1f; }
.single-product .share-links .pd-share-pinterest { background: #de0010; }
.single-product .share-links .pd-share-linkedin { background: #007caf; }
.single-product .share-links .pd-share-copy { background: #e5e5e5; color: #343b3d; }
.single-product .share-links .pd-share-copy.is-copied { background: #e5f4ec; color: #0c7046; }
.single-product .share-links .pd-share:hover { filter: brightness(.9); }
.single-product .product-top button:focus-visible, .single-product .product-top a:focus-visible, .single-product .flex-control-thumbs img:focus-visible { outline: 2px solid #0c7046; outline-offset: 3px; }
/* Chừa chỗ cho các nút liên hệ nổi hiện có ở mép phải màn hình. */
@media (min-width: 1024px) and (max-width: 1399px) {
	.single-product .product-top > .container { padding-right: 85px; }
}
@media (min-width: 1024px) and (max-width: 1099px) {
	.single-product .product-cols { gap: 22px; }
	.single-product .product_title { font-size: 23px; }
	.single-product .qo-btn { gap: 6px; padding: 7px 6px; }
}
@media (max-width: 1023px) {
	.single-product .product-cols { grid-template-columns: 1fr; gap: 24px; }
	.single-product .product-gallery { width: 100%; max-width: 560px; margin: 0 auto; }
	.pd-thumb-nav { height: calc((100vw - 118px) / 5); max-height: 95px; }
	.single-product .product_title { font-size: 23px; }
}
@media (max-width: 599px) {
	.single-product .product-top .breadcrumbs { font-size: 11px; line-height: 18px; margin: 14px 0; }
	.single-product .product-cols { gap: 20px; }
	.single-product .product_title { font-size: 22px; line-height: 1.3; margin-bottom: 14px; }
	.single-product .woocommerce-product-details__short-description { padding: 14px; }
	.single-product .product-summary > .price { font-size: 28px; }
	.single-product .quick-order-btns { grid-template-columns: 1fr; gap: 6px; }
	.single-product .qo-btn { height: 48px; }
	.single-product .qo-copy { flex-direction: row; align-items: center; gap: 12px; }
	.single-product .qo-copy strong { font-size: 13px; }
	.single-product .qo-copy small { font-size: 12px; }
	.pd-authentic { font-size: 9px; padding: 5px 9px; }
	.pd-favorite { font-size: 11px; padding: 4px 8px; }
}

/* Sản phẩm chưa có giá: nút nhận báo giá qua Zalo (cùng cỡ nút mua). */
.single-product .pd-quote-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin: 4px 0 18px; padding: 10px 16px; border-radius: 8px; background: linear-gradient(105deg, #11794c, #0b603b); color: #fff; font-size: 15px; font-weight: 700; }
.single-product .pd-quote-btn:hover { background: #085733; color: #fff; }

