/* Trang sản phẩm FUGA — viết mới, đo theo bản tĩnh (1440 / 1280 / 390). */
.fg-pd { padding-top: calc(37.5 * var(--u)); background: #fff; color: #1c1c1c; font-size: 14px; line-height: 1.4; letter-spacing: .04em; -webkit-font-smoothing: antialiased; }
.fg-pd__container { padding: 0 calc(141 * var(--u)); }
.fg-pd a { color: inherit; }

/* Đường dẫn */
.fg-pd__crumbs { margin: 16px 0; padding: 12px 0 12px 28.8px; }
.fg-pd__crumbs ol { display: flex; flex-wrap: nowrap; margin: 0; padding: 0; list-style: none; min-width: 0; }
.fg-pd__crumbs li { white-space: nowrap; }
.fg-pd__crumbs li:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fg-pd__crumbs a { text-decoration: none; }
.fg-pd__sep { margin: 0 8px; color: rgba(28, 28, 28, .7); }
.fg-pd__crumb-now { font-weight: 500; color: rgba(28, 28, 28, .7); }

.fg-pd__main { display: grid; grid-template-columns: 58% minmax(0, 1fr); gap: 22px; align-items: start; padding: 28px 0 56px; }

/* Gallery */
.fg-gal { position: sticky; top: 66.5px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fg-gal__stage { position: relative; }
.fg-gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fg-gal__track::-webkit-scrollbar { display: none; }
.fg-gal__slide { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: center; }
.fg-gal__slide[hidden] { display: none; }
.fg-gal__img { display: block; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.fg-gal__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: #000; cursor: pointer; }
.fg-gal__arrow .fg-icon { width: 24px; height: 24px; }
.fg-gal__arrow--prev { left: 16px; }
.fg-gal__arrow--next { right: 16px; }
.fg-gal__zoom { position: absolute; right: 28px; bottom: 28px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: #1c1c1c; cursor: pointer; }
.fg-gal__thumbs { display: flex; gap: 8px; padding: 0 17px; overflow-x: auto; scrollbar-width: none; }
.fg-gal__thumbs::-webkit-scrollbar { display: none; }
.fg-gal__thumb { position: relative; flex: 0 0 96px; height: 96px; padding: 0; margin: 2px 0; border: 1px solid transparent; background: none; cursor: pointer; }
.fg-gal__thumb[hidden] { display: none; }
.fg-gal__thumb.is-active { border-color: #1c1c1c; }
.fg-gal__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fg-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: #fff; }
.fg-lightbox[hidden] { display: none; }
.fg-lightbox__img { max-width: 100%; max-height: 100vh; object-fit: contain; }
.fg-lightbox__close, .fg-lightbox__nav { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #e8e8e8; border-radius: 50%; background: #fff; color: #1c1c1c; cursor: pointer; }
.fg-lightbox__close { top: 24px; right: 24px; }
.fg-lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.fg-lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }

/* Cột thông tin */
.fg-pi { position: sticky; top: 0; min-width: 0; }
.fg-pi__title { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: .01em; }
.fg-pi__price-row { display: flex; flex-wrap: wrap; align-items: baseline; margin: 12px 0 20px; }
.fg-pi__price { font-size: 20px; line-height: 1.1; letter-spacing: .01em; }
.fg-pi__compare { margin-left: 10px; font-size: 16px; color: rgba(28, 28, 28, .6); }
.fg-pi__vat { margin-left: 10px; color: #666; text-transform: uppercase; }
.fg-pi__rating { display: inline-flex; align-items: center; gap: 2px; margin: 8px 0 0; text-decoration: none; }
.fg-stars { display: inline-flex; }
.fg-stars .fg-icon { width: 14.6px; height: 13px; margin-right: 4px; color: #000; }
.fg-stars .is-off { color: #d6d6d6; }
.fg-pi__sku { margin: 28px 0 0; font-size: 12px; letter-spacing: .04em; color: rgba(28, 28, 28, .6); }
.fg-pi__gender { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; }
.fg-pi__gtab { display: inline-flex; align-items: center; justify-content: center; padding: 8px 20px; border: 1px solid #000; background: #fff; color: #000 !important; font-weight: 500; text-decoration: none; white-space: nowrap; }
.fg-pi__gtab.is-active { background: #000; color: #fff !important; }
.fg-pi__gtab:not(.is-active):hover { background: rgba(0, 0, 0, .08); }

.fg-pi__form { margin: 28px 0 0; }
.fg-opt { margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.fg-opt__head { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 8px; }
.fg-opt__legend { float: left; padding: 0; color: #1c1c1c; }
.fg-opt__label { color: rgba(28, 28, 28, .65); }
.fg-opt__value { margin-left: 4px; }
.fg-opt__chart { padding: 0; border: 0; background: none; color: #1c1c1c; font: inherit; font-weight: 700; letter-spacing: normal; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fg-opt__values { display: flex; flex-wrap: wrap; gap: 4px; clear: both; }
.fg-opt--block .fg-opt__values { gap: 12px 12px; }
.fg-swatch { position: relative; width: 72px; height: 72px; border: 1px solid #d6d6d6; cursor: pointer; background: #fff; }
.fg-swatch img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fg-swatch:has(input:checked) { border-color: #1c1c1c; box-shadow: inset 0 0 0 1px #1c1c1c; }
.fg-swatch.is-disabled { opacity: .5; }
.fg-swatch.is-disabled::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - .5px), #d6d6d6 calc(50% - .5px), #d6d6d6 calc(50% + .5px), transparent calc(50% + .5px)); }
.fg-block { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 118px; padding: 9px 18px; border: 1px solid #e8e8e8; color: rgba(28, 28, 28, .65); cursor: pointer; white-space: nowrap; }
.fg-block:has(input:checked) { background: #1c1c1c; border-color: #1c1c1c; color: #fff; }
.fg-block.is-disabled { color: rgba(28, 28, 28, .25); background: rgba(28, 28, 28, .024); border-color: rgba(232, 232, 232, .55); text-decoration: line-through; }
.fg-block.is-disabled:has(input:checked) { background: #1c1c1c; color: rgba(255, 255, 255, .6); }
.fg-swatch input:focus-visible + *, .fg-block input:focus-visible + span { outline: 2px solid #1c1c1c; outline-offset: 2px; }

.fg-stock { display: grid; gap: 11px; justify-items: start; margin: 0 0 28px; color: rgb(22, 131, 66); }
.fg-stock__text { display: inline-flex; align-items: center; gap: 8px; }
.fg-stock__text::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fg-stock__bar { position: relative; display: block; width: 62%; height: 3px; background: rgba(22, 131, 66, .2); overflow: hidden; }
.fg-stock__bar i { position: absolute; inset: 0 auto 0 0; width: 100%; transition: width .3s; }
.fg-stock.is-low { color: #c98a00; }
.fg-stock.is-low .fg-stock__bar, .fg-stock.is-low .fg-stock__bar i { background-color: rgba(201, 138, 0, .25); }
.fg-stock.is-low .fg-stock__bar i { background: #c98a00; }
.fg-stock.is-out { color: #b42318; }
.fg-stock.is-out .fg-stock__bar { background: rgba(180, 35, 24, .2); }

.fg-pi__buy { display: flex; gap: 8px; }
.fg-qty { display: flex; align-items: stretch; flex: 0 0 120.5px; height: 46px; border: 1px solid #1c1c1c; }
.fg-qty__btn { flex: 1; display: grid; place-items: center; padding: 0; border: 0; background: none; color: #1c1c1c; cursor: pointer; }
.fg-qty__btn:first-child { color: rgba(28, 28, 28, .5); }
.fg-qty__input { width: 22px; padding: 0; border: 0; background: none; font: inherit; font-size: 12px; text-align: center; color: #1c1c1c; -moz-appearance: textfield; appearance: textfield; }
.fg-qty__input::-webkit-outer-spin-button, .fg-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fg-pi__add { flex: 1; height: 46px; padding: 0 16px; text-align: center; border: 1px solid transparent; background: #1c1c1c; color: #fff; font: inherit; letter-spacing: normal; cursor: pointer; }
.fg-pi__add:disabled { background: #e8e8e8; color: rgba(28, 28, 28, .5); cursor: not-allowed; }
.fg-pi__msg { margin: 8px 0 0; color: #b42318; }

/* Quà tặng */
.fg-gift { margin: 40px 0 0; }
.fg-gift__heading { margin: 0; padding: 16px 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.fg-gift__box { display: flex; gap: 16px; margin-bottom: 16px; padding: 16px; border: 1px solid #d0d0d0; background: #f5f5f5; color: #000; }
.fg-gift__img { flex: 0 0 100px; width: 100px; height: 100px; background: #fff; }
.fg-gift__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fg-gift__info { min-width: 0; }
.fg-gift__title { margin: 0 0 8px; font-size: 15px; font-weight: 500; line-height: 1.3; }
.fg-gift__price { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.fg-gift__add { display: inline-block; padding: 6px 16px; border: 1px solid #0c0c0c; background: #fff; color: #0c0c0c !important; font: inherit; font-size: 12px; line-height: 1.3; letter-spacing: normal; text-decoration: none; cursor: pointer; }

/* Có thể bạn cũng thích */
.fg-also { margin: 44px 0 0; }
.fg-also__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.fg-also__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; }
.fg-also__nav { display: flex; gap: 8px; }
.fg-also__btn { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid #e8e8e8; border-radius: 50%; background: #fff; color: #1c1c1c; cursor: pointer; }
.fg-also__btn:disabled { opacity: .4; cursor: default; }
.fg-also__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fg-also__track::-webkit-scrollbar { display: none; }
.fg-also__item { position: relative; flex: 0 0 150px; scroll-snap-align: start; border-radius: 8px; background: #f5f5f5; overflow: hidden; }
.fg-also__link { display: block; padding-bottom: 12px; text-decoration: none; }
.fg-also__img { display: block; width: 150px; height: 150px; }
.fg-also__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fg-also__name { display: block; margin: 12px 12px 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.3; }
.fg-also__price { display: block; margin: 0 12px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.fg-also__cart { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid #e8e8e8; border-radius: 50%; background: #fff; color: inherit; cursor: pointer; }
.fg-also__cart:disabled { opacity: .5; cursor: wait; }
.fg-also__cart .fg-icon { width: 18px; height: 18px; }

/* Cam kết */
.fg-trust { display: grid; gap: 12px; margin: 44px 0 0; padding: 0; list-style: none; }
.fg-trust li { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .01em; }
.fg-trust .fg-icon { flex: 0 0 24px; }

/* Mục mở rộng + tính năng */
.fg-acc { box-shadow: 0 1px #e8e8e8; }
.fg-acc__item { box-shadow: inset 0 1px #e8e8e8; }
.fg-acc__sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; list-style: none; cursor: pointer; font-weight: 700; line-height: 20px; letter-spacing: normal; }
.fg-acc__sum::-webkit-details-marker { display: none; }
.fg-acc__who { margin-left: 4px; }
.fg-acc__who a { text-decoration: none; }
.fg-acc__chev { flex: 0 0 auto; transition: transform .2s; }
.fg-acc__item[open] .fg-acc__chev { transform: rotate(180deg); }
.fg-acc__body { padding: 0 0 20px; line-height: 20px; letter-spacing: normal; }
.fg-acc__body > :first-child { margin-top: 0; }
.fg-acc__body > :last-child { margin-bottom: 0; }
.fg-acc__body p { margin: 0 0 14px; }
.fg-acc__body ol, .fg-acc__body ul { margin: 0 0 14px; padding-left: 20px; }
.fg-feat { margin: 50px 0 calc(100 * var(--u)); }
.fg-feat__title { margin: 0 0 34px; font-size: 40px; font-weight: 500; line-height: normal; letter-spacing: normal; text-transform: capitalize; }
.fg-feat__text { line-height: 20px; letter-spacing: normal; }
.fg-feat__text p { margin: 0; }

/* Gợi ý cho bạn */
.fg-rel { margin-top: 80px; padding: 0 0 56px; }
.fg-rel__title { margin: 0 96px 48px; font-size: 32px; font-weight: 400; line-height: 1.1; letter-spacing: .01em; }
.fg-rel__track { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fg-rel__track::-webkit-scrollbar { display: none; }
.fg-rel__item { flex: 0 0 calc((100vw - 16px) / 5); scroll-snap-align: start; min-width: 0; }
.fg-rel__bar { display: flex; justify-content: center; margin-top: 48px; }
.fg-rel__bar .fg-scrollbar__bar { width: 180px; height: 2px; background: rgba(28, 28, 28, .2); }
.fg-rel__bar .fg-scrollbar__bar i { background: #1c1c1c; }

/* Thanh dính */
.fg-sticky { position: fixed; right: 28px; bottom: 28px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 640px; padding: 16px 32px 16px 16px; border: 1px solid #e8e8e8; background: #fff; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .25s, transform .25s, visibility .25s; }
.fg-sticky.is-visible { opacity: 1; visibility: visible; transform: none; }
.fg-sticky__info { display: grid; gap: 2px; min-width: 0; }
.fg-sticky__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.fg-sticky__var, .fg-sticky__price { font-size: 12px; color: rgba(28, 28, 28, .6); }
.fg-sticky__add { flex: 0 0 auto; height: 46px; padding: 0 32px; border: 1px solid #1c1c1c; background: none; color: #1c1c1c; font: inherit; letter-spacing: normal; cursor: pointer; }
.fg-sticky__add:disabled { opacity: .5; cursor: not-allowed; }

/* Popup bảng size */
.fg-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, .5); }
.fg-modal[hidden] { display: none; }
.fg-modal__panel { position: relative; width: min(1000px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: #fff; padding: 40px 32px 32px; }
.fg-modal__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: #1c1c1c; cursor: pointer; }

/* Khối giới thiệu (template Elementor) */
.fg-product-marketing { background: #fff; }

@media (max-width: 999px) {
	.fg-pd__main { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 0; }
	.fg-gal, .fg-pi { position: static; }
	.fg-sticky { left: 0; right: 0; bottom: 0; width: auto; padding: 12px 17px; }
	.fg-sticky__info { display: none; }
	.fg-sticky__add { flex: 1; background: #1c1c1c; color: #fff; }
}

@media (max-width: 768px) {
	.fg-pd__container { padding: 0 17px; }
	.fg-pd__crumbs { margin: 12px -17px; padding: 8px 17px; }
	.fg-pd__main { padding: 20px 0 32px; gap: 36px; }
	.fg-pi { padding-top: 18px; }
	.fg-gal__stage { margin: 0 -17px; }
	.fg-gal__arrow--prev { left: 17px; }
	.fg-gal__arrow--next { right: 17px; }
	.fg-gal__zoom { right: 12px; bottom: 12px; }
	.fg-gal__thumbs { padding: 0; }
	.fg-gal__thumb { flex-basis: 64px; height: 64px; }
	.fg-pi__title { font-size: 21px; line-height: 30px; }
	.fg-pi__price { font-size: 18px; }
	.fg-swatch { width: calc((100vw - 34px - 20px) / 6); height: calc((100vw - 34px - 20px) / 6); }
	.fg-opt--block .fg-opt__values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
	.fg-gal__track { gap: 4px; }
	.fg-block { min-width: 0; padding: 9px 8px; }
	.fg-acc__sum { padding: 14px 0; font-size: 12px; line-height: 17px; }
	.fg-acc__body { font-size: 12px; line-height: 17px; padding-bottom: 14px; }
	.fg-acc { margin: 0 -17px; box-shadow: none; }
	.fg-acc__item { margin: 0 17px; }
	.fg-acc__item:last-child { box-shadow: inset 0 1px #e8e8e8, inset 0 -1px #e8e8e8; }
	.fg-feat { margin: 40px -17px 64px; padding: 0 17px; }
	.fg-feat__title { margin-bottom: 27px; font-size: 24px; }
	.fg-feat__text { font-size: 12px; line-height: 17px; }
	.fg-rel { margin-top: 48px; padding-bottom: 32px; }
	.fg-rel__title { margin: 0 20px 24px; font-size: 18px; line-height: 19.8px; letter-spacing: .01em; }
	.fg-rel__track { gap: 2px; }
	.fg-rel__bar { margin-top: 37px; }
	.fg-rel__bar .fg-scrollbar__bar { width: 97.5px; }
	.fg-rel__item { flex-basis: 65%; }
	.fg-modal { padding: 0; align-items: flex-end; }
	.fg-modal__panel { max-height: 90vh; padding: 40px 17px 24px; }
}
