/* ==========================================================================
   FUGA — trang giỏ hàng, thanh toán, tài khoản (WooCommerce)
   ========================================================================== */
.fg-woo-page { background: #f6f7f9; color: #1c1c1c; border-bottom: 1px solid #000; }
.fg-woo-page__inner { max-width: 1248px; margin: 0 auto; padding: 99px 20px 120px; }
.fg-woo-page__title { margin-bottom: 48px; text-align: center; font-size: 40px; line-height: normal; font-weight: 500; letter-spacing: normal; }
.fg-woo-page--cart { background: #fff; border-bottom: 0; }

/* Đăng nhập / đăng ký */
.fg-auth { max-width: 490px; margin: 0 auto 580px; }
.fg-auth__title { margin-bottom: 78px; text-align: center; font-size: 40px; line-height: normal; font-weight: 500; letter-spacing: normal; }
.fg-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 61px; border-bottom: 3px solid #d2d2d2; }
.fg-auth__tab { display: flex; align-items: center; justify-content: center; min-height: 53px; margin-bottom: -3px; border-bottom: 3px solid transparent; font-size: 22px; line-height: 25px; font-weight: 600; letter-spacing: normal; color: #858585; }
.fg-auth__tab.is-active { color: #000; border-bottom-color: #000; }
.fg-auth__form { display: flex; flex-direction: column; }
.fg-auth__field { position: relative; display: block; }
.fg-auth__field + .fg-auth__field { margin-top: 14px; }
.fg-auth__input { width: 100%; padding: 19px 0 17px; border: 0; border-bottom: 1px solid #000; border-radius: 0; background: transparent; font-size: 14px; line-height: 20px; letter-spacing: normal; outline: 0; }
.fg-auth__field--password .fg-auth__input { padding-right: 42px; }
.fg-auth__input::placeholder { color: #000; }
.fg-auth__eye { position: absolute; right: 0; top: 50%; display: grid; place-items: center; width: 32px; height: 32px; transform: translateY(-50%); color: #858585; }
.fg-auth__forgot { align-self: center; margin-top: 25px; font-size: 14px; line-height: 20px; letter-spacing: normal; text-decoration: underline; }
.fg-auth__check { display: flex; align-items: flex-start; gap: 10px; margin-top: 36px; font-size: 14px; line-height: 20px; letter-spacing: normal; cursor: pointer; }
.fg-auth__check input { width: 20px; height: 20px; margin: 0; accent-color: #000; }
.fg-auth__submit { display: flex; align-items: center; justify-content: center; margin-top: 18px; min-height: 57px; background: #000; color: #fff; font-size: 22px; line-height: 25px; font-weight: 600; letter-spacing: normal; transition: opacity .2s; }
.fg-auth__submit:hover { opacity: .85; }
.fg-auth__note { margin-top: 20px; font-size: 14px; line-height: 20px; color: rgba(28, 28, 28, .6); }

/* Giỏ trống */
.fg-cart-empty { display: grid; justify-items: center; gap: 20px; padding: 0 0 200px; text-align: center; }
.fg-cart-empty__text { font-size: 14px; }

/* Thông báo WooCommerce */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-error, .woocommerce-message, .woocommerce-info { list-style: none; margin: 0 auto 24px; max-width: 1248px; padding: 14px 20px; background: #fff; border-left: 3px solid #1c1c1c; font-size: 14px; }
.woocommerce-error { border-color: #c4302b; }
.woocommerce-message .button, .woocommerce-info .button { float: right; text-decoration: underline; }

/* Bảng giỏ hàng */
.fg-woo-page table.shop_table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fg-woo-page table.shop_table th { padding: 12px 8px; text-align: left; font-size: 12px; font-weight: 400; letter-spacing: .48px; color: rgba(28, 28, 28, .6); border-bottom: 1px solid #e8e8e8; }
.fg-woo-page table.shop_table td { padding: 16px 8px; border-bottom: 1px solid #e8e8e8; vertical-align: middle; }
.fg-woo-page .product-thumbnail img { width: 96px; height: 96px; object-fit: contain; background: #fafbfd; }
.fg-woo-page .product-remove a { font-size: 20px; text-decoration: none; }
.fg-woo-page .quantity .qty { width: 64px; height: 40px; border: 1px solid rgba(28, 28, 28, .2); text-align: center; }
.fg-woo-page .actions .coupon { display: inline-flex; gap: 8px; }
.fg-woo-page input.input-text, .fg-woo-page select, .fg-woo-page textarea { min-height: 46px; padding: 10px 14px; border: 1px solid rgba(28, 28, 28, .2); background: #fff; font-size: 14px; border-radius: 0; }
.fg-woo-page .button, .fg-woo-page button[type="submit"]:not(.fg-auth__submit), .fg-woo-page a.checkout-button, .fg-woo-page #place_order {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 28px;
	background: #1c1c1c; color: #fff; border: 0; font-size: 14px; font-weight: 500; letter-spacing: .56px; cursor: pointer;
}
.fg-woo-page .button:disabled, .fg-woo-page .button[disabled] { opacity: .5; }
.fg-woo-page .cart-collaterals { display: flex; justify-content: flex-end; margin-top: 40px; }
.fg-woo-page .cart_totals { width: min(420px, 100%); }
.fg-woo-page .cart_totals h2 { margin-bottom: 16px; font-size: 20px; }
.fg-woo-page .wc-proceed-to-checkout { margin-top: 20px; }
.fg-woo-page a.checkout-button { width: 100%; }

/* Thanh toán: 2 cột */
.fg-woo-page--checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0 64px; align-items: start; }
.fg-woo-page--checkout #customer_details { grid-column: 1; }
.fg-woo-page--checkout #order_review_heading, .fg-woo-page--checkout #order_review { grid-column: 2; }
.fg-woo-page--checkout #order_review_heading { margin-bottom: 16px; font-size: 20px; }
.fg-woo-page--checkout #order_review { padding: 24px; background: #fff; }
.fg-woo-page h3 { margin: 24px 0 16px; font-size: 20px; font-weight: 500; }
.fg-woo-page .form-row { display: grid; gap: 6px; margin-bottom: 16px; }
.fg-woo-page .form-row label { font-size: 13px; color: rgba(28, 28, 28, .7); }
.fg-woo-page .form-row-first, .fg-woo-page .form-row-last { display: inline-grid; width: calc(50% - 8px); }
.fg-woo-page .form-row-first { margin-right: 12px; }
.fg-woo-page .woocommerce-input-wrapper input, .fg-woo-page .woocommerce-input-wrapper select, .fg-woo-page .woocommerce-input-wrapper textarea { width: 100%; }
.fg-woo-page .required { color: #c4302b; text-decoration: none; }
.fg-woo-page ul.wc_payment_methods { display: grid; gap: 12px; margin: 16px 0; }
.fg-woo-page .wc_payment_method label { font-weight: 500; }
.fg-woo-page .payment_box { margin-top: 8px; padding: 12px; background: #f6f7f9; font-size: 13px; }
.fg-woo-page #place_order { width: 100%; margin-top: 16px; }
.fg-woo-page .woocommerce-privacy-policy-text { font-size: 12px; color: rgba(28, 28, 28, .6); }

/* Tài khoản (đã đăng nhập) */
.fg-woo-page--account .woocommerce { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
.fg-woo-page--account .woocommerce-MyAccount-navigation ul { display: grid; gap: 4px; }
.fg-woo-page--account .woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; font-size: 14px; }
.fg-woo-page--account .woocommerce-MyAccount-navigation .is-active a { background: #1c1c1c; color: #fff; }
.fg-woo-page--account .woocommerce-MyAccount-content { font-size: 14px; line-height: 1.6; }
.fg-woo-page--account:has(.fg-auth) .woocommerce { display: block; }

/* Theo dõi đơn hàng */
.fg-woo-page--tracking form.track_order { max-width: 560px; margin: 0 auto; }
.fg-woo-page--tracking form.track_order > p:first-child { margin-bottom: 32px; font-size: 14px; line-height: 1.6; text-align: center; color: rgba(28, 28, 28, .7); }
.fg-woo-page--tracking .form-row-first, .fg-woo-page--tracking .form-row-last { display: grid; width: 100%; margin-right: 0; }
.fg-woo-page--tracking .form-row input.input-text { width: 100%; }
.fg-woo-page--tracking form.track_order .button { width: 100%; margin-top: 8px; }
.fg-woo-page--tracking .clear { display: none; }
.fg-woo-page--tracking .woocommerce-order-details, .fg-woo-page--tracking .woocommerce-customer-details { max-width: 860px; margin: 40px auto 0; }

@media (max-width: 999px) {
	.fg-woo-page--checkout form.checkout { grid-template-columns: 1fr; }
	.fg-woo-page--checkout #order_review_heading, .fg-woo-page--checkout #order_review { grid-column: 1; }
}
@media (max-width: 768px) {
	.fg-woo-page__inner { padding: 48px 17px 80px; }
	.fg-woo-page--account .fg-woo-page__inner { padding: 50px 20px 120px; }
	.fg-woo-page__title { font-size: 28px; margin-bottom: 32px; }
	.fg-auth__title { font-size: 24px; margin-bottom: 50px; }
	.fg-auth { margin-bottom: 0; }
	.fg-auth__tabs { margin-bottom: 30px; }
	.fg-auth__tab { min-height: 33px; font-size: 14px; line-height: 16px; }
	.fg-auth__field + .fg-auth__field { margin-top: 10px; }
	.fg-auth__input { padding: 15px 0; font-size: 12px; line-height: 17px; }
	.fg-auth__forgot { margin-top: 18px; font-size: 12px; line-height: 17px; }
	.fg-auth__check { margin-top: 28px; font-size: 12px; line-height: 17px; }
	.fg-auth__check input { width: 16px; height: 16px; }
	.fg-auth__submit { margin-top: 20px; min-height: 47px; font-size: 14px; line-height: 16px; }
	.fg-woo-page--account .woocommerce { grid-template-columns: 1fr; gap: 24px; }
	.fg-woo-page .form-row-first, .fg-woo-page .form-row-last { display: grid; width: 100%; margin-right: 0; }
	.fg-woo-page table.shop_table_responsive thead { display: none; }
	.fg-woo-page table.shop_table_responsive tr { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid #e8e8e8; }
	.fg-woo-page table.shop_table_responsive td { border: 0; padding: 4px 0; }
}
