/* Song Hương – 14 mẫu trang con (danh sách, chi tiết, cửa hàng, tìm kiếm, trang tĩnh). Dùng token ở style.css */

/* Page head + breadcrumb */
.sh-phead { background: var(--sh-subtle); padding: 32px 0 40px; }
.sh-phead h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.15; letter-spacing: -.01em; margin: 8px 0 0; color: var(--sh-brand-deep); }
.sh-phead__desc { max-width: 760px; margin: 12px 0 0; font-size: 18px; color: var(--sh-body); }
.sh-bc { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--sh-secondary); margin-bottom: 20px; }
.sh-bc a:hover { color: var(--sh-brand); }
.sh-bc span[aria-hidden] { opacity: .5; }
.sh-phead .sh-jump, .sh-phead .sh-az { margin-top: 24px; }

/* Chips, A–Z, filters */
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-chip { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: var(--sh-radius-full); border: 1px solid var(--sh-border); background: #fff; font-size: 14px; font-weight: 500; color: var(--sh-text); }
.sh-chip small { color: var(--sh-secondary); font-size: 12px; }
.sh-chip:hover { border-color: var(--sh-brand); color: var(--sh-brand); }
.sh-chip.is-on { background: var(--sh-brand-soft); border-color: var(--sh-brand); color: var(--sh-brand); }
.sh-az { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-az a { flex: none; white-space: nowrap; min-width: 38px; height: 38px; padding: 0 10px; display: grid; place-items: center; border-radius: 8px; background: #fff; font-weight: 700; color: var(--sh-brand); }
.sh-az a.is-on { background: var(--sh-brand); color: #fff; }
.sh-list { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; padding-top: 40px; }
.sh-list:not(:has(.sh-filters)) { grid-template-columns: minmax(0, 1fr); }
.sh-filters { display: flex; flex-direction: column; gap: 28px; align-self: start; position: sticky; top: 128px; }
.sh-filter > b { display: block; font-size: 15px; color: var(--sh-text); margin-bottom: 12px; }
.sh-filter .sh-chip { height: 34px; padding: 0 12px; }
.sh-list__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; color: var(--sh-secondary); font-size: 14px; }
.sh-list__bar .woocommerce-result-count, .sh-list__bar .woocommerce-ordering { margin: 0; float: none; }
.sh-list__bar select { height: 40px; border-radius: var(--sh-radius-full); border: 1px solid var(--sh-border); padding: 0 16px; font: inherit; }

/* List card */
.sh-lgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sh-lgrid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sh-lgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sh-lc { display: flex; flex-direction: column; border: 1px solid var(--sh-border); border-radius: 12px; overflow: hidden; background: #fff; transition: border-color .15s, transform .2s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) { .sh-lc:hover { border-color: var(--sh-brand); transform: translateY(-2px); } }
.sh-lc__ph { aspect-ratio: 16/10; background: var(--sh-brand-soft); display: grid; place-items: center; color: #8DB59D; overflow: hidden; }
.sh-lc__ph img { width: 100%; height: 100%; object-fit: cover; }
.sh-lc__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.sh-lc__t { font-size: 18px; line-height: 26px; color: var(--sh-text); }
.sh-lc__p { font-size: 14px; line-height: 22px; color: var(--sh-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sh-pager { margin-top: 40px; }
.sh-pager .nav-links, .sh-pager ul.page-numbers { display: flex; gap: 6px; justify-content: center; list-style: none; padding: 0; border: 0; }
.sh-pager .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--sh-border); font-weight: 600; }
.sh-pager .page-numbers.current { background: var(--sh-brand); color: #fff; border-color: var(--sh-brand); }
.sh-noresult { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 56px 24px; border: 1px dashed var(--sh-border); border-radius: 14px; color: var(--sh-secondary); }
.sh-noresult b { font-size: 20px; color: var(--sh-text); }
.sh-noresult .sh-btn--line { width: auto; }
.sh-noresult__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Detail layout */
.sh-byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--sh-border); }
.sh-byline__who { display: flex; align-items: center; gap: 12px; }
.sh-byline__av { width: 44px; height: 44px; border-radius: 50%; background: var(--sh-brand-soft); display: grid; place-items: center; overflow: hidden; color: var(--sh-brand); }
.sh-byline__av img { width: 100%; height: 100%; object-fit: cover; }
.sh-byline__who small { display: block; font-size: 12px; color: #27703F; font-weight: 600; }
.sh-byline__who b { color: var(--sh-text); }
.sh-byline__meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--sh-secondary); }
.sh-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 32px; align-items: start; }
.sh-detail__main { min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.sh-detail__side { position: sticky; top: 128px; display: flex; flex-direction: column; gap: 20px; }
.sh-narrow { max-width: 960px; display: flex; flex-direction: column; gap: 32px; padding-top: 40px; }
.sh-toc { border: 1px solid var(--sh-border); border-radius: 12px; padding: 20px; }
.sh-toc > b { display: block; margin-bottom: 12px; color: var(--sh-text); }
.sh-toc ol, .sh-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow: auto; }
.sh-toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--sh-border); font-size: 14px; color: var(--sh-body); }
.sh-toc a:hover, .sh-toc a.is-on { border-color: var(--sh-brand); color: var(--sh-brand); background: var(--sh-brand-soft); }
.sh-sidecta { background: var(--sh-brand); color: rgba(255,255,255,.85); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.sh-sidecta b { color: #fff; font-size: 18px; }
.sh-sidecta p { margin: 0 0 6px; font-size: 14px; }
.sh-sidecta .sh-btn--brand { background: var(--sh-accent); color: var(--sh-brand-deep); }
.sh-sidecta .sh-btn--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }

.sh-herocard { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; padding: 20px; border: 1px solid var(--sh-border); border-radius: 16px; background: #fff; }
.sh-herocard__ph { aspect-ratio: 1; border-radius: 12px; background: var(--sh-brand-soft); display: grid; place-items: center; overflow: hidden; color: #8DB59D; }
.sh-herocard__ph img { width: 100%; height: 100%; object-fit: cover; }
.sh-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--sh-border); }
.sh-herocard .sh-facts { border-top: 0; align-content: start; }
.sh-facts > div { padding: 12px 0; border-bottom: 1px solid var(--sh-border); padding-right: 16px; }
.sh-facts dt { font-size: 13px; color: var(--sh-secondary); }
.sh-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--sh-text); }
.sh-facts dd a { color: var(--sh-brand); }
.sh-code-badge { font-size: 64px; font-weight: 800; color: var(--sh-brand); letter-spacing: -.02em; }
.sh-code-pill { display: inline-block; background: var(--sh-brand); color: #fff; padding: 2px 10px; border-radius: 6px; }
.sh-cover { margin: 0; border-radius: 14px; overflow: hidden; }
.sh-cover img { width: 100%; height: auto; display: block; }

.sh-sec h2, .sh-related h2, .sh-refs h2, .sh-sgroup h2 { font-size: 26px; line-height: 34px; margin: 0 0 14px; color: var(--sh-text); display: flex; align-items: center; gap: 10px; }
.sh-sgroup h2 small { font-size: 15px; color: var(--sh-secondary); font-weight: 500; }
.sh-prose { font-size: 17px; line-height: 1.75; color: var(--sh-body); }
.sh-prose h2 { font-size: 26px; line-height: 1.3; margin: 1.6em 0 .6em; color: var(--sh-text); }
.sh-prose h3 { font-size: 21px; margin: 1.4em 0 .5em; color: var(--sh-text); }
.sh-prose a { color: var(--sh-brand); text-decoration: underline; text-underline-offset: 3px; }
.sh-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.sh-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.sh-prose td, .sh-prose th { border: 1px solid var(--sh-border); padding: 8px 12px; }
.sh-content > *:first-child { margin-top: 0; }
.sh-note { font-size: 14px; color: var(--sh-secondary); }

.sh-safety { display: flex; gap: 14px; padding: 18px 20px; border-radius: 12px; border-left: 4px solid; }
.sh-safety b { display: block; margin-bottom: 4px; }
.sh-safety p { margin: 0 0 6px; font-size: 15px; line-height: 1.6; color: var(--sh-body); }
.sh-safety p:last-child { margin: 0; }
.sh-safety--warning { background: #FFF6E5; border-color: #E0981B; color: #9A6410; }
.sh-safety--danger { background: #FCEDEC; border-color: var(--sh-danger); color: #A62E2E; }
.sh-safety--info { background: var(--sh-brand-soft); border-color: var(--sh-brand); color: var(--sh-brand); }
.sh-safety--safe { background: #EAF4EE; border-color: #27703F; color: #27703F; }

.sh-table-wrap { overflow-x: auto; border: 1px solid var(--sh-border); border-radius: 12px; }
.sh-table { width: 100%; border-collapse: collapse; margin: 0; }
.sh-table th { background: var(--sh-subtle); text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--sh-secondary); }
.sh-table th, .sh-table td { padding: 12px 16px; border-bottom: 1px solid var(--sh-border); }
.sh-table td a { font-weight: 600; color: var(--sh-brand); }
.sh-table td i { color: var(--sh-secondary); font-size: 13px; }
.sh-role { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.sh-role--quan { background: var(--sh-brand); color: #fff; } .sh-role--than { background: var(--sh-brand-soft); color: var(--sh-brand); }
.sh-role--ta { background: var(--sh-accent-soft); color: var(--sh-accent-text); } .sh-role--su { background: var(--sh-subtle); color: var(--sh-body); }

.sh-refs { background: var(--sh-subtle); border-radius: 12px; padding: 24px; }
.sh-refs ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.sh-refs a { color: var(--sh-brand); }
.sh-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sh-mini { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--sh-border); border-radius: 12px; }
.sh-mini:hover { border-color: var(--sh-brand); }
.sh-mini__ph { width: 64px; height: 64px; flex: none; border-radius: 10px; background: var(--sh-brand-soft); display: grid; place-items: center; overflow: hidden; color: #8DB59D; }
.sh-mini__ph img { width: 100%; height: 100%; object-fit: cover; }
.sh-mini b { display: block; color: var(--sh-text); line-height: 1.35; }
.sh-mini small { color: var(--sh-secondary); }
.sh-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sh-gallery img { width: 100%; height: auto; border-radius: 10px; }
.sh-authorbox { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--sh-border); border-radius: 14px; }
.sh-authorbox__av { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--sh-brand-soft); display: grid; place-items: center; flex: none; color: var(--sh-brand); }
.sh-authorbox__av img { width: 100%; height: 100%; object-fit: cover; }
.sh-authorbox small { display: block; color: #27703F; font-weight: 600; font-size: 12px; }
.sh-authorbox b { display: block; font-size: 18px; color: var(--sh-text); }
.sh-authorbox span span { color: var(--sh-secondary); font-size: 14px; }

/* Profile */
.sh-profile { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: center; }
.sh-profile__ph { aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--sh-brand-soft); display: grid; place-items: center; color: var(--sh-brand); }
.sh-profile__ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sh-stats { display: flex; gap: 28px; margin-top: 16px; color: var(--sh-secondary); }
.sh-stats b { font-size: 24px; color: var(--sh-brand); margin-right: 4px; }

/* Search */
.sh-searchhead { margin-top: 24px; } .sh-searchhead .sh-search { max-width: 720px; }
.sh-sgroup { margin-top: 48px; }
.sh-noresult--big { margin-top: 40px; }

/* Shop + product */
.sh-advice { background: var(--sh-accent-soft); border-radius: 14px; padding: 28px; margin-top: 48px; }
.sh-faq { display: flex; flex-direction: column; gap: 10px; }
.sh-faq details { border: 1px solid var(--sh-border); border-radius: 12px; padding: 16px 20px; }
.sh-faq summary { font-weight: 600; color: var(--sh-text); cursor: pointer; }
.sh-faq p { margin: 10px 0 0; }
.sh-ptop { padding-top: 24px; }
.sh-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 8px 0 24px; }
.sh-product__gallery .woocommerce-product-gallery { margin: 0 !important; width: 100% !important; float: none !important; }
.sh-product__gallery img { border-radius: 14px; width: 100%; height: auto; }
.sh-product__gallery .woocommerce-product-gallery__image, .sh-product__gallery .woocommerce-product-gallery__wrapper { width: 100%; margin: 0; }
.sh-product__gallery .woocommerce-product-gallery__trigger { display: none; }
.sh-product__gallery .flex-control-thumbs { display: flex; gap: 10px; margin-top: 10px !important; } .sh-product__gallery .flex-control-thumbs li { width: 80px !important; }
.sh-product__summary { display: flex; flex-direction: column; gap: 16px; }
.sh-product__summary h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; margin: 0; color: var(--sh-brand-deep); }
.sh-product__price .price { font-size: 30px; font-weight: 700; color: var(--sh-text); margin: 0; }
.sh-product__price ins { color: var(--sh-danger); text-decoration: none; }
.sh-product__buy form.cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0; }
.sh-product__buy .quantity input { width: 80px; height: 52px; border-radius: 999px; border: 1px solid var(--sh-border); text-align: center; font: inherit; }
.sh-product__buy .single_add_to_cart_button { height: 52px; padding: 0 40px !important; border-radius: 999px !important; background: var(--sh-brand) !important; color: #fff !important; font-weight: 600 !important; flex: 1; }
.sh-product__buy .stock { margin: 0; font-size: 14px; color: #27703F; }
.sh-product__buy .stock.out-of-stock { color: var(--sh-danger); }
.sh-product__assure { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 12px; background: var(--sh-subtle); font-size: 14px; }
.sh-product__assure span { display: flex; gap: 10px; align-items: center; color: var(--sh-body); }
.sh-product__assure svg { color: var(--sh-brand); } .sh-product__assure a { color: var(--sh-brand); font-weight: 700; }
.sh-stock--low { font-size: 12px; color: var(--sh-accent-text); }
.sh-stickybuy { display: none; }

/* Tablet / mobile */
@media (max-width: 1100px) {
	.sh-detail { grid-template-columns: minmax(0, 1fr); }
	.sh-detail__side { position: static; }
	.sh-toc { display: none; }
	.sh-lgrid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sh-list { grid-template-columns: minmax(0, 1fr); }
	.sh-filters { position: static; flex-direction: row; flex-wrap: wrap; } .sh-filters .sh-sidecta { display: none; }
}
@media (max-width: 767px) {
	.sh-phead { padding: 20px 0 28px; } .sh-phead__desc { font-size: 16px; }
	.sh-az { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
	.sh-filters { flex-direction: column; gap: 18px; }
	.sh-filter { min-width: 0; width: 100%; }
	.sh-filters .sh-chips, .sh-jump { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
	.sh-lgrid, .sh-lgrid--wide, .sh-lgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.sh-lc__body { padding: 12px; } .sh-lc__t { font-size: 15px; line-height: 21px; } .sh-lc__p { display: none; }
	.sh-herocard { grid-template-columns: minmax(0, 1fr); padding: 14px; }
	.sh-herocard__ph { aspect-ratio: 16/10; }
	.sh-facts { grid-template-columns: minmax(0, 1fr); }
	.sh-mini-grid, .sh-gallery { grid-template-columns: minmax(0, 1fr); }
	.sh-sec h2, .sh-related h2, .sh-refs h2, .sh-sgroup h2 { font-size: 22px; line-height: 30px; }
	.sh-prose { font-size: 16px; }
	.sh-profile { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
	.sh-product { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.sh-stickybuy { display: flex; position: fixed; left: 0; right: 0; bottom: 72px; z-index: 65; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--sh-border); transform: translateY(150%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
	.sh-stickybuy.is-show { transform: none; }
	.sh-stickybuy span { display: flex; flex-direction: column; font-size: 14px; min-width: 0; } .sh-stickybuy b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.sh-stickybuy .sh-btn { height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .sh-lc, .sh-stickybuy { transition: none; } }

/* Fluent Forms theo token */
.fluentform .ff-el-input--label label { font-weight: 600; color: var(--sh-text); }
.fluentform .ff-el-form-control { border-radius: 10px; border-color: var(--sh-border); min-height: 46px; font: inherit; }
.fluentform .ff-el-form-control:focus { border-color: var(--sh-brand); box-shadow: 0 0 0 3px var(--sh-brand-soft); }
.fluentform .ff-btn-submit { background: var(--sh-brand) !important; border-radius: 999px !important; height: 50px; padding: 0 32px !important; font-weight: 600; }
.sh-shopflow { padding: 40px 0 72px; } .sh-shopflow .wp-block-woocommerce-cart, .sh-shopflow .wp-block-woocommerce-checkout { margin: 0; max-width: none; }
