/*
 * LionGolf Core – style tối thiểu cho shortcode.
 * Dùng biến CSS của child theme (--lg-*); có giá trị dự phòng nếu đổi theme.
 */

.lg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Nút ---------- */
.lg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 44px; padding: .75em 1.5em;
	font: inherit; font-weight: 600; letter-spacing: .02em; text-decoration: none; cursor: pointer;
	border: 1px solid transparent; border-radius: var(--lg-radius-sm, 2px);
	transition: background-color .2s, color .2s, border-color .2s;
}
/* Nhân đôi class để thắng style mặc định của theme cho button/[type=submit]. */
.lg-btn.lg-btn--primary { background: var(--lg-color-ink, #0e1116); color: var(--lg-color-white, #fff); border-color: var(--lg-color-ink, #0e1116); }
.lg-btn.lg-btn--primary:hover, .lg-btn.lg-btn--primary:focus { background: var(--lg-color-charcoal, #2b2f36); border-color: var(--lg-color-charcoal, #2b2f36); color: #fff; }
.lg-btn.lg-btn--ghost { background: transparent; color: var(--lg-color-ink, #0e1116); border-color: currentColor; }
.lg-btn.lg-btn--ghost:hover, .lg-btn.lg-btn--ghost:focus, .lg-btn.lg-btn--ghost[aria-pressed="true"] { background: var(--lg-color-ink, #0e1116); border-color: var(--lg-color-ink, #0e1116); color: #fff; }
.lg-btn:focus-visible, .lg-faq summary:focus-visible, .lg-form :focus-visible { outline: 3px solid var(--lg-color-focus, #1a5fb4); outline-offset: 2px; }

/* ---------- Badge / nhãn ---------- */
.lg-badge, .lg-label {
	display: inline-block; padding: .25em .7em; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
	border-radius: var(--lg-radius-sm, 2px); background: var(--lg-color-mist, #f5f6f7); color: var(--lg-color-ink, #0e1116);
}
.lg-badge--exclusive { background: var(--lg-color-ink, #0e1116); color: var(--lg-color-gold-light, #e9d8b4); }
.lg-badge--new { background: var(--lg-color-success, #1e7d4f); color: #fff; }
.lg-badge--limited { background: var(--lg-color-accent-dark, #7a5c2e); color: #fff; }
.lg-label--video { background: var(--lg-color-error, #b3261e); color: #fff; }

/* ---------- Bảng ---------- */
.lg-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.lg-table th, .lg-table td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--lg-color-line, #e3e5e8); }
.lg-table thead th { font-weight: 600; background: var(--lg-color-mist, #f5f6f7); }
.lg-spec__table th { width: 45%; font-weight: 500; color: var(--lg-color-graphite, #5a616b); }
.lg-spec__table .lg-is-empty td { color: var(--lg-color-graphite, #5a616b); font-style: italic; }
.lg-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lg-spec__title, .lg-variants__title { font-size: var(--lg-fs-h3, 1.5rem); margin: 0 0 1rem; }
.lg-empty { color: var(--lg-color-graphite, #5a616b); }

@media (max-width: 767px) {
	/* Bảng biến thể → dạng thẻ trên mobile */
	.lg-table--stack thead { position: absolute; left: -9999px; }
	.lg-table--stack tr { display: block; border: 1px solid var(--lg-color-line, #e3e5e8); margin-bottom: .75rem; }
	.lg-table--stack td { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--lg-color-line, #e3e5e8); }
	.lg-table--stack td::before { content: attr(data-label); font-weight: 600; }
	.lg-spec__table th { width: 50%; }
}

/* ---------- Giá ---------- */
.lg-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5em; }
.lg-price__label { font-size: .875rem; color: var(--lg-color-graphite, #5a616b); }
.lg-price__value { font-size: 1.375rem; font-weight: 600; }
.lg-price__note { flex-basis: 100%; color: var(--lg-color-graphite, #5a616b); }

/* ---------- Dải thương hiệu ---------- */
.lg-brand-strip__heading { text-align: center; font-size: .875rem; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 1.5rem; }
.lg-brand-strip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--lg-color-line, #e3e5e8); border-left: 1px solid var(--lg-color-line, #e3e5e8); }
.lg-brand-strip__item { border-right: 1px solid var(--lg-color-line, #e3e5e8); border-bottom: 1px solid var(--lg-color-line, #e3e5e8); }
.lg-brand-strip__item a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; min-height: 120px; padding: 1.5rem; background: #fff; color: var(--lg-color-ink, #0e1116); text-decoration: none; transition: background .2s; }
.lg-brand-strip__item a:hover { background: var(--lg-color-mist, #f5f6f7); }
.lg-brand-strip__logo { max-height: 48px; width: auto; filter: grayscale(1); transition: filter .2s; }
.lg-brand-strip__item a:hover .lg-brand-strip__logo { filter: none; }
.lg-brand-strip__text { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 1024px) { .lg-brand-strip__list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .lg-brand-strip__list { grid-template-columns: repeat(2, 1fr); } .lg-brand-strip__item a { min-height: 88px; } .lg-brand-strip__item:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---------- Bộ lọc ---------- */
.lg-filter { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; align-items: end; margin-bottom: 2rem; }
.lg-filter__field label { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: .25rem; }
.lg-filter select { width: 100%; min-height: 44px; }
.lg-filter__actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- Công nghệ ---------- */
.lg-tech__item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin-bottom: clamp(2rem, 6vw, 5rem); }
.lg-tech__item:nth-child(even) .lg-tech__media { order: 2; }
.lg-tech__media img { width: 100%; height: auto; display: block; }
@media (max-width: 767px) { .lg-tech__item { grid-template-columns: 1fr; } .lg-tech__item:nth-child(even) .lg-tech__media { order: 0; } }

/* ---------- Gallery ---------- */
.lg-gallery__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.lg-gallery__item:first-child { grid-column: 1 / -1; }
.lg-gallery__item img { width: 100%; height: auto; display: block; background: var(--lg-color-mist, #f5f6f7); }
.lg-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }

/* ---------- So sánh ---------- */
.lg-compare__table th[scope="row"] { position: sticky; left: 0; background: #fff; min-width: 140px; z-index: 1; }
.lg-compare__table td, .lg-compare__table thead th { min-width: 200px; }
.lg-compare__product { display: flex; flex-direction: column; gap: .5rem; color: inherit; text-decoration: none; font-weight: 600; }
.lg-compare__product img { width: 100%; height: auto; }
.lg-compare-bar { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 999; display: flex; align-items: center; gap: .75rem; padding: .5rem .5rem .5rem 1rem; background: var(--lg-color-ink, #0e1116); color: #fff; border-radius: var(--lg-radius-md, 4px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.lg-compare-bar[hidden] { display: none; }
.lg-compare-bar .lg-btn.lg-btn--primary { background: #fff; color: var(--lg-color-ink, #0e1116); }
.lg-compare-bar .lg-btn.lg-btn--ghost { color: #fff; }

/* ---------- Timeline / đội ngũ / quy trình / FAQ ---------- */
.lg-timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--lg-color-line, #e3e5e8); }
.lg-timeline__item { position: relative; padding: 0 0 2rem 2rem; }
.lg-timeline__dot { position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--lg-color-accent, #b08d57); }
.lg-timeline__year { font-weight: 700; letter-spacing: .08em; color: var(--lg-color-accent-dark, #7a5c2e); }
.lg-timeline__body h3 { margin: .25rem 0 .5rem; }
.lg-timeline__img { display: block; max-width: 100%; height: auto; margin-top: .75rem; }
.lg-timeline__link { display: inline-block; margin-top: .5rem; font-weight: 600; }
.lg-team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; }
.lg-team__item img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.lg-team__name { margin: .75rem 0 .25rem; font-size: 1.125rem; }
.lg-team__role { margin: 0; color: var(--lg-color-graphite, #5a616b); }
.lg-steps { counter-reset: lg-step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.lg-steps__item { counter-increment: lg-step; border-top: 2px solid var(--lg-color-ink, #0e1116); padding-top: 1rem; }
.lg-steps__item::before { content: counter(lg-step, decimal-leading-zero); font-size: 2rem; font-weight: 700; color: var(--lg-color-accent-dark, #7a5c2e); }
.lg-faq__item { border-bottom: 1px solid var(--lg-color-line, #e3e5e8); }
.lg-faq__item summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; list-style: none; position: relative; min-height: 44px; }
.lg-faq__item summary::-webkit-details-marker { display: none; }
.lg-faq__item summary::after { content: "+"; position: absolute; right: 0; top: .9rem; font-size: 1.25rem; }
.lg-faq__item[open] summary::after { content: "–"; }
.lg-faq__answer { padding: 0 0 1rem; }
.lg-map iframe { display: block; width: 100%; }
.lg-related__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.lg-related__list a { display: flex; flex-direction: column; gap: .5rem; color: inherit; text-decoration: none; font-weight: 600; }
.lg-related__list img { width: 100%; height: auto; }
.lg-target { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.lg-target li { padding: .35em .8em; border: 1px solid var(--lg-color-line, #e3e5e8); border-radius: 999px; font-size: .875rem; }
.lg-social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.lg-business { font-style: normal; line-height: 1.7; }

/* ---------- Form ---------- */
.lg-form { display: grid; gap: 1rem; }
.lg-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lg-form__row--single { grid-template-columns: 1fr; }
@media (max-width: 767px) { .lg-form__row { grid-template-columns: 1fr; } }
.lg-form__time { min-width: 0; margin: 0; padding: 0; border: 0; }
.lg-form__time legend { display: block; float: left; width: 100%; padding: 0; margin-bottom: .35rem; font-weight: 600; font-size: .875rem; } /* float: legend thẳng hàng với label bên cạnh */
.lg-form__timepair { clear: both; }
.lg-form__storenote { margin: .35rem 0 0; font-size: .75rem; line-height: 1.4; opacity: .8; }
.lg-form__timepair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.lg-form__field label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.lg-form input[type="text"], .lg-form input[type="tel"], .lg-form input[type="email"], .lg-form select, .lg-form textarea {
	width: 100%; min-height: 44px; padding: .65rem .8rem; font: inherit; color: var(--lg-color-ink, #0e1116);
	background: #fff; border: 1px solid var(--lg-color-border-strong, #8a9099); border-radius: var(--lg-radius-sm, 2px);
}
.lg-form__consent { display: flex; gap: .6rem; align-items: flex-start; }
.lg-form__consent input { width: 20px; height: 20px; margin-top: .15rem; flex: none; }
.lg-form__consent label { font-weight: 400; margin: 0; }
.lg-form__notice { padding: .75rem 1rem; border-left: 4px solid; margin: 0; }
.lg-form__notice--ok { border-color: var(--lg-color-success, #1e7d4f); background: #eef7f2; }
.lg-form__notice--error { border-color: var(--lg-color-error, #b3261e); background: #fcefee; }
.lg-form__hint { font-size: .8125rem; color: var(--lg-color-graphite, #5a616b); margin: 0; }

/* ---------- Nút nổi mobile ---------- */
.lg-float { display: none; }
@media (max-width: 767px) {
	.lg-float { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 998; box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
	.lg-float__btn { display: flex; align-items: center; justify-content: center; min-height: 52px; font-weight: 600; text-decoration: none; color: #fff; }
	.lg-float__btn--zalo { background: #0068ff; }
	.lg-float__btn--call { background: var(--lg-color-ink, #0e1116); }
	body { padding-bottom: 52px; }
	.lg-compare-bar { bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
	.lg-btn, .lg-brand-strip__item a, .lg-brand-strip__logo { transition: none; }
}
