/*
Theme Name: Thế Giới Gà Ngon
Theme URI: https://thegioigangon.com
Author: Thế Giới Gà Ngon
Description: Custom theme mobile-first cho Thế Giới Gà Ngon (WooCommerce). Chỉ lo phần giao diện; nghiệp vụ nằm trong plugin TGG Core.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: thegioigangon
*/

:root {
	--tgg-green: #14532d;
	--tgg-green-dark: #0d3b20;
	--tgg-green-soft: #e7f2e6;
	--tgg-cream: #fff8ee;
	--tgg-cream-2: #fdecd2;
	--tgg-red: #e5391d;
	--tgg-red-dark: #c42d14;
	--tgg-orange: #f08a1c;
	--tgg-text: #26302a;
	--tgg-muted: #6b7a70;
	--tgg-line: #eadfcb;
	--tgg-white: #fff;
	--tgg-radius: 14px;
	--tgg-shadow: 0 2px 10px rgba(20, 83, 45, .12);
	--tgg-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--tgg-script: "Dancing Script", "Be Vietnam Pro", cursive;
	--tgg-gutter: 16px;
	--tgg-header-h: 56px;
	--tgg-nav-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; font-family: var(--tgg-font); color: var(--tgg-text); background: var(--tgg-cream);
	font-size: 15px; line-height: 1.5; padding-bottom: calc(var(--tgg-nav-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tgg-green); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--tgg-green-dark); }
p { margin: 0 0 .8em; }
button { font: inherit; cursor: pointer; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--tgg-orange); outline-offset: 2px; }

/* ---------- Layout ---------- */
.tgg-container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--tgg-gutter); }
.tgg-main { min-height: 60vh; padding: 14px 0 28px; }
.tgg-page-title { font-size: 1.35rem; margin: 6px 0 12px; }

/* ---------- Header ---------- */
.tgg-header { position: sticky; top: 0; z-index: 50; background: var(--tgg-green); color: #fff; height: var(--tgg-header-h); }
.tgg-header .tgg-container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 8px; }
.tgg-icon-btn { background: none; border: 0; color: #fff; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; position: relative; border-radius: 10px; text-decoration: none; }
.tgg-icon-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tgg-logo { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; min-width: 0; }
.tgg-logo svg { width: 34px; height: 34px; flex: none; }
.tgg-logo b { display: block; font-size: 1rem; letter-spacing: .02em; line-height: 1.1; white-space: nowrap; }
.tgg-logo small { display: block; font-size: .7rem; color: #ffd27a; white-space: nowrap; }
.tgg-cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--tgg-red); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tgg-cart-count:empty, .tgg-cart-count[data-count="0"] { display: none; }
.tgg-primary-nav { display: none; }

.tgg-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.tgg-drawer.open { visibility: visible; }
.tgg-drawer-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .2s; }
.tgg-drawer.open .tgg-drawer-bg { opacity: 1; }
.tgg-drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(82vw, 320px); background: #fff; transform: translateX(-100%); transition: transform .25s; display: flex; flex-direction: column; overflow-y: auto; }
.tgg-drawer.open .tgg-drawer-panel { transform: none; }
.tgg-drawer-head { background: var(--tgg-green); color: #fff; padding: 14px var(--tgg-gutter); display: flex; justify-content: space-between; align-items: center; }
.tgg-drawer ul { list-style: none; margin: 0; padding: 8px 0; }
.tgg-drawer li a { display: block; padding: 14px var(--tgg-gutter); color: var(--tgg-text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--tgg-line); }
.tgg-drawer li a:hover { background: var(--tgg-cream); }

/* ---------- Bottom nav ---------- */
.tgg-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--tgg-line); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 10px rgba(0, 0, 0, .06); }
.tgg-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--tgg-nav-h); font-size: 11.5px; color: var(--tgg-muted); text-decoration: none; font-weight: 600; }
.tgg-bottom-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tgg-bottom-nav a.active { color: var(--tgg-red); }

/* ---------- Buttons / chips ---------- */
.tgg-btn, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #place_order {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border: 2px solid transparent; border-radius: 12px; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.2; transition: background .15s, transform .05s;
}
.tgg-btn:active { transform: scale(.98); }
.tgg-btn-primary, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #place_order, .woocommerce a.checkout-button { background: var(--tgg-red) !important; color: #fff !important; }
.tgg-btn-primary:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce #place_order:hover { background: var(--tgg-red-dark) !important; }
.tgg-btn-light { background: #fff; color: var(--tgg-green); border-color: var(--tgg-line); }
.tgg-btn-outline { background: #fff; color: var(--tgg-green); border-color: var(--tgg-green); }
.tgg-btn-block { display: flex; width: 100%; }
.tgg-btn[disabled] { opacity: .55; cursor: not-allowed; }
.tgg-chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #eee; color: #555; }
.tgg-chip-green { background: var(--tgg-green-soft); color: var(--tgg-green); }
.tgg-chip-orange { background: #ffe9cf; color: #a35400; }
.tgg-chip-gray { background: #eee; color: #666; }
.tgg-center { text-align: center; }
.tgg-accent { color: var(--tgg-red); font-weight: 700; font-size: 1.05rem; }
.tgg-hint { color: var(--tgg-muted); font-size: 13px; }
.tgg-empty { color: var(--tgg-muted); text-align: center; padding: 18px 0; }
.tgg-loading { color: var(--tgg-muted); text-align: center; padding: 18px 0; }
.tgg-break { word-break: break-all; }
.tgg-pre { white-space: pre-wrap; }
.req { color: var(--tgg-red); }

.tgg-card-box { background: #fff; border-radius: var(--tgg-radius); box-shadow: var(--tgg-shadow); padding: 14px; margin: 0 0 14px; }
.tgg-note { background: #fff3d6; border-radius: 12px; padding: 12px; margin: 12px 0; font-size: 14px; }
.tgg-alert { border-radius: 12px; padding: 12px 14px; margin: 10px 0; font-weight: 600; }
.tgg-alert-error { background: #fde5e1; color: #8a1d0e; }
.tgg-alert-warn { background: #fff0d1; color: #7a4a00; }
.tgg-alert-ok { background: var(--tgg-green-soft); color: var(--tgg-green); }
.tgg-actions { display: flex; gap: 10px; margin: 12px 0; }
.tgg-actions > * { flex: 1; }

/* ---------- Strips ---------- */
.tgg-strip { background: var(--tgg-cream-2); border-bottom: 1px solid var(--tgg-line); font-size: 13px; padding: 8px 0; }
.tgg-strip b { color: var(--tgg-red); }
.tgg-strip a { font-weight: 700; }

/* ---------- Home: hero ---------- */
.tgg-hero-wrap { margin: 0 calc(var(--tgg-gutter) * -1); }
.tgg-hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; }
.tgg-hero-track::-webkit-scrollbar { display: none; }
.tgg-hero { position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: 190px; background: linear-gradient(120deg, var(--tgg-green-dark), var(--tgg-green) 55%, #1d6b3b); color: #fff; overflow: hidden; display: flex; align-items: center; text-decoration: none; }
.tgg-hero img { position: absolute; right: 0; top: 0; height: 100%; width: 60%; object-fit: cover; mask-image: linear-gradient(to right, transparent, #000 40%); -webkit-mask-image: linear-gradient(to right, transparent, #000 40%); }
.tgg-hero-body { position: relative; padding: 18px var(--tgg-gutter); max-width: 62%; }
.tgg-hero h2 { font-family: var(--tgg-script); font-size: 2rem; line-height: 1; color: #ffb347; margin: 0 0 6px; }
.tgg-hero p { margin: 0 0 10px; font-size: .9rem; color: #f2ead6; }
.tgg-hero .tgg-btn { min-height: 38px; padding: 6px 14px; font-size: 13px; }
.tgg-dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0 0; }
.tgg-dots i { width: 7px; height: 7px; border-radius: 50%; background: #c9d6c9; }
.tgg-dots i.on { background: var(--tgg-red); }

.tgg-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.tgg-quick a { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--tgg-radius); padding: 12px; box-shadow: var(--tgg-shadow); text-decoration: none; color: var(--tgg-text); border: 2px solid transparent; }
.tgg-quick a:hover { border-color: var(--tgg-red); }
.tgg-quick .ic { width: 44px; height: 44px; border-radius: 50%; background: #ffe3dc; display: grid; place-items: center; flex: none; }
.tgg-quick .ic svg { width: 24px; height: 24px; fill: none; stroke: var(--tgg-red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tgg-quick b { display: block; font-size: .98rem; }
.tgg-quick small { color: var(--tgg-muted); font-size: 12px; }

.tgg-sec-head { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 8px; }
.tgg-sec-head h2 { margin: 0; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.tgg-sec-head a { font-size: 13px; font-weight: 700; color: var(--tgg-red); text-decoration: none; }

.tgg-slider { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px var(--tgg-gutter) 10px; margin: 0 calc(var(--tgg-gutter) * -1); scrollbar-width: none; }
.tgg-slider::-webkit-scrollbar { display: none; }
.tgg-slider .tgg-card { flex: 0 0 calc(50% - 18px); scroll-snap-align: start; }

/* ---------- Product cards ---------- */
.tgg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.tgg-card { position: relative; background: #fff; border-radius: var(--tgg-radius); box-shadow: var(--tgg-shadow); overflow: hidden; display: flex; flex-direction: column; }
.tgg-card-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--tgg-cream-2); }
.tgg-card-img img { width: 100%; height: 100%; object-fit: cover; }
.tgg-badge { position: absolute; left: 8px; top: 8px; background: var(--tgg-red); color: #fff; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 6px; letter-spacing: .02em; z-index: 1; }
.tgg-badge-group { background: var(--tgg-green); left: auto; right: 8px; }
.tgg-card-body { padding: 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.tgg-card h3 { font-size: .95rem; margin: 0; color: var(--tgg-text); }
.tgg-card h3 a { color: inherit; text-decoration: none; }
.tgg-card .tgg-serves { font-size: 12px; color: var(--tgg-muted); }
.tgg-card .tgg-short { font-size: 12px; color: var(--tgg-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tgg-price { color: var(--tgg-red); font-weight: 800; font-size: 1.05rem; margin-top: auto; padding-top: 4px; }
.tgg-price del { color: var(--tgg-muted); font-weight: 500; font-size: .8em; margin-right: 4px; }
.tgg-price ins { text-decoration: none; }
.tgg-card .tgg-btn { margin-top: 6px; min-height: 40px; padding: 6px 10px; font-size: 14px; }

.tgg-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.tgg-chips::-webkit-scrollbar { display: none; }
.tgg-pill { flex: none; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--tgg-line); background: #fff; color: var(--tgg-text); font-weight: 600; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.tgg-pill.active { background: var(--tgg-green); color: #fff; border-color: var(--tgg-green); }

/* ---------- Single product ---------- */
.tgg-single { margin: -14px calc(var(--tgg-gutter) * -1) 0; padding-bottom: 90px; }
.tgg-single-img { aspect-ratio: 4 / 3; background: var(--tgg-cream-2); }
.tgg-single-img img { width: 100%; height: 100%; object-fit: cover; }
.tgg-single-body { background: var(--tgg-cream); border-radius: 18px 18px 0 0; margin-top: -16px; position: relative; padding: 16px var(--tgg-gutter); }
.tgg-single h1 { font-size: 1.35rem; margin-bottom: 4px; }
.tgg-single .tgg-price { font-size: 1.5rem; }
.tgg-single-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tgg-info-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; margin: 12px 0; }
.tgg-info-row div { background: #fff; border-radius: 12px; padding: 10px 6px; text-align: center; font-size: 12px; box-shadow: var(--tgg-shadow); }
.tgg-info-row div b { display: block; font-size: 13px; }
.tgg-desc { background: #fde9e3; border-radius: 12px; padding: 12px; font-size: 14px; }
.tgg-addons h2 { font-size: 1.1rem; margin-top: 18px; }
.tgg-addons h2 span { color: var(--tgg-red); }
.tgg-addon-row { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 8px; margin-bottom: 8px; box-shadow: var(--tgg-shadow); }
.tgg-addon-row img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.tgg-addon-row .info { flex: 1; min-width: 0; }
.tgg-addon-row .info b { display: block; font-size: 14px; }
.tgg-addon-row .tgg-price { padding: 0; font-size: .95rem; }
.tgg-stepper { display: inline-flex; align-items: center; border: 1px solid var(--tgg-line); border-radius: 10px; background: #fff; }
.tgg-stepper button { width: 38px; height: 38px; border: 0; background: none; font-size: 20px; color: var(--tgg-red); font-weight: 700; }
.tgg-stepper input { width: 36px; text-align: center; border: 0; background: none; font-weight: 700; font-size: 15px; -moz-appearance: textfield; }
.tgg-stepper input::-webkit-outer-spin-button, .tgg-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tgg-buybar { position: fixed; left: 0; right: 0; bottom: calc(var(--tgg-nav-h) + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--tgg-line); padding: 10px var(--tgg-gutter); display: flex; align-items: center; gap: 12px; z-index: 55; box-shadow: 0 -2px 10px rgba(0, 0, 0, .08); }
.tgg-buybar .total { flex: none; }
.tgg-buybar .total b { display: block; font-size: 1.15rem; color: var(--tgg-red); }
.tgg-buybar .total small { color: var(--tgg-muted); }
.tgg-buybar .tgg-btn { flex: 1; }

/* ---------- Cart / checkout (WooCommerce) ---------- */
.woocommerce table.shop_table { border: 0; border-collapse: separate; border-spacing: 0 10px; background: none; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border: 0; background: #fff; padding: 10px; }
.woocommerce-cart table.cart img { width: 64px; border-radius: 10px; }
.woocommerce a.remove { color: var(--tgg-red) !important; }
.woocommerce .quantity .qty { width: 64px; min-height: 40px; border-radius: 10px; border: 1px solid var(--tgg-line); text-align: center; }
.woocommerce .cart_totals, .woocommerce-checkout-review-order { background: #fff; border-radius: var(--tgg-radius); padding: 14px; box-shadow: var(--tgg-shadow); }
.woocommerce .cart_totals .order-total td, .woocommerce .cart_totals .order-total th, .woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { color: var(--tgg-red); font-weight: 800; font-size: 1.1rem; }
.woocommerce .cart_totals table.shop_table td, .woocommerce .cart_totals table.shop_table th { padding: 6px 0; }
.woocommerce a.checkout-button { display: flex !important; width: 100%; min-height: 50px; font-size: 1.05rem !important; border-radius: 14px !important; }
.woocommerce form .form-row { padding: 0; margin: 0 0 12px; }
.woocommerce form .form-row label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .tgg-form input[type=text], .tgg-form input[type=tel], .tgg-form input[type=email], .tgg-form input[type=password], .tgg-form input[type=number], .tgg-form select, .tgg-form textarea, .tgg-select, .tgg-map-tools input {
	width: 100%; min-height: 46px; border: 1px solid var(--tgg-line); border-radius: 12px; padding: 10px 12px; background: #fff; font: inherit; color: var(--tgg-text);
}
.woocommerce form .form-row .required { color: var(--tgg-red); }
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: var(--tgg-red); }
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-radius: 12px; border-top-color: var(--tgg-green) !important; }
.woocommerce-error { border-top-color: var(--tgg-red) !important; background: #fde5e1; }
.woocommerce-checkout h3 { font-size: 1.05rem; }
#payment { background: #fff; border-radius: var(--tgg-radius); }
#payment ul.payment_methods { border-bottom-color: var(--tgg-line); }
.woocommerce-checkout #payment div.payment_box { background: var(--tgg-green-soft); color: var(--tgg-text); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--tgg-green-soft); }

.tgg-form label { display: block; font-weight: 600; margin: 10px 0 4px; font-size: 14px; }
.tgg-form .tgg-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 12px 0; }
.tgg-form .tgg-check input { width: 20px; min-height: 20px; margin-top: 2px; }
.tgg-form button.tgg-btn { margin-top: 10px; }
.tgg-form textarea { min-height: 80px; }

/* Checkout location box */
.tgg-checkout-box { background: #fff; border-radius: var(--tgg-radius); padding: 14px; box-shadow: var(--tgg-shadow); margin: 14px 0; }
.tgg-map { width: 100%; height: 280px; border-radius: 12px; border: 1px solid var(--tgg-line); z-index: 1; }
.tgg-map-sm { height: 220px; }
.tgg-map-tools { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.tgg-map-tools input { flex: 1 1 160px; }
.tgg-zone-status { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #f2f2f2; font-size: 14px; font-weight: 600; }
.tgg-zone-status.ok { background: var(--tgg-green-soft); color: var(--tgg-green); }
.tgg-zone-status.bad { background: #fde5e1; color: #8a1d0e; }
.tgg-zone-status.loading { color: var(--tgg-muted); }

/* QR payment box */
.tgg-qr-box { background: #fff; border-radius: var(--tgg-radius); padding: 16px; box-shadow: var(--tgg-shadow); margin: 14px 0; text-align: center; }
.tgg-qr-img img { margin: 0 auto 10px; border-radius: 12px; max-width: 280px; width: 100%; }
.tgg-qr-info { list-style: none; padding: 0; text-align: left; background: var(--tgg-cream); border-radius: 12px; padding: 12px; }
.tgg-ok { color: var(--tgg-green); font-weight: 700; }
.tgg-err { color: #8a1d0e; font-weight: 700; }
.tgg-warn { color: #7a4a00; background: #fff0d1; padding: 10px; border-radius: 10px; }
.tgg-file { display: block; border: 2px dashed var(--tgg-green); border-radius: 12px; padding: 14px; margin: 10px 0; text-align: left; }
.tgg-file input { display: block; margin-top: 8px; width: 100%; }
.tgg-order-info ul { list-style: none; padding: 0; }

/* ---------- Mua chung ---------- */
.tgg-subhead { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tgg-subhead h2 { margin: 0; font-size: 1.15rem; }
.tgg-back { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--tgg-shadow); font-size: 20px; color: var(--tgg-green); flex: none; }
.tgg-feature-list { list-style: none; padding: 0; margin: 14px 0; }
.tgg-feature-list li { background: #fff; border-radius: 12px; padding: 12px 12px 12px 14px; margin-bottom: 8px; box-shadow: var(--tgg-shadow); border-left: 4px solid var(--tgg-green); }
.tgg-feature-list b { display: block; }
.tgg-feature-list span { color: var(--tgg-muted); font-size: 13px; }
.tgg-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--tgg-line); margin: 12px 0; }
.tgg-tabs-scroll { overflow-x: auto; scrollbar-width: none; }
.tgg-tab { flex: 1; padding: 10px 8px; border: 0; background: none; font-weight: 700; color: var(--tgg-muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tgg-tab.active { color: var(--tgg-green); border-bottom-color: var(--tgg-green); }
.tgg-group-card { background: #fff; border-radius: var(--tgg-radius); box-shadow: var(--tgg-shadow); padding: 12px; margin-bottom: 12px; }
.tgg-group-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.tgg-group-head h3 { font-size: 1rem; margin: 0; }
.tgg-meta { margin: 4px 0; font-size: 13.5px; color: var(--tgg-text); }
.tgg-steps { display: flex; list-style: none; padding: 0; margin: 8px 0 14px; justify-content: space-between; }
.tgg-steps li { flex: 1; text-align: center; font-size: 11.5px; color: var(--tgg-muted); }
.tgg-steps li span { display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 2px; border-radius: 50%; background: #d8d8d8; color: #fff; font-weight: 700; }
.tgg-steps li.active span, .tgg-steps li.done span { background: var(--tgg-green); }
.tgg-steps li.active { color: var(--tgg-green); font-weight: 700; }
.tgg-combo-opt { display: flex; gap: 10px; align-items: center; background: #fff; border: 2px solid var(--tgg-line); border-radius: 12px; padding: 8px; margin-bottom: 8px; cursor: pointer; }
.tgg-combo-opt:has(input:checked) { border-color: var(--tgg-red); }
.tgg-combo-opt img { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; }
.tgg-combo-opt span { flex: 1; }
.tgg-combo-opt b, .tgg-combo-opt small, .tgg-combo-opt em { display: block; }
.tgg-combo-opt small { color: var(--tgg-muted); }
.tgg-combo-opt em { color: var(--tgg-red); font-style: normal; font-weight: 800; }
.tgg-dropdown-btn { width: 100%; text-align: left; min-height: 48px; border: 1px solid var(--tgg-green); border-radius: 12px; background: #fff; padding: 10px 14px; font-weight: 600; position: relative; }
.tgg-dropdown-btn::after { content: "\25BE"; position: absolute; right: 14px; }
.tgg-dropdown { list-style: none; margin: 6px 0; padding: 0; border: 1px solid var(--tgg-line); border-radius: 12px; background: #fff; overflow: hidden; }
.tgg-dropdown[hidden] { display: none; }
.tgg-dropdown button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 12px 14px; border-bottom: 1px solid var(--tgg-line); }
.tgg-dropdown button small { display: block; color: var(--tgg-muted); }
.tgg-dropdown button.sel { background: var(--tgg-green-soft); }
.tgg-countdown { font-size: 2rem; font-weight: 800; color: var(--tgg-green); font-variant-numeric: tabular-nums; }
.tgg-progress { height: 10px; border-radius: 6px; background: #e5e5e5; overflow: hidden; }
.tgg-progress i { display: block; height: 100%; background: var(--tgg-green); }
.tgg-tier { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: center; }
.tgg-tier div { background: var(--tgg-cream); border-radius: 12px; padding: 10px; }
.tgg-tier b { font-size: 1.6rem; color: var(--tgg-red); display: block; }
.tgg-members { list-style: none; padding: 0; }
.tgg-members li { background: #fff; border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; }

/* ---------- CTV ---------- */
.tgg-check-list { list-style: none; padding: 0; margin: 14px 0; }
.tgg-check-list li { position: relative; padding: 10px 10px 10px 40px; background: #fff; border-radius: 12px; margin-bottom: 8px; box-shadow: var(--tgg-shadow); }
.tgg-check-list li::before { content: "\2713"; position: absolute; left: 12px; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: var(--tgg-green); color: #fff; display: grid; place-items: center; font-size: 13px; }
.tgg-hero-card { background: linear-gradient(120deg, var(--tgg-green-dark), var(--tgg-green)); color: #fff; border-radius: var(--tgg-radius); padding: 20px; text-align: center; }
.tgg-hero-card h2 { color: #fff; font-size: 1.6rem; }
.tgg-hero-card .tgg-accent { color: #ffb347; }
.tgg-success-box .tgg-big-icon { font-size: 4rem; color: var(--tgg-green); }
.tgg-ctv-head { display: flex; align-items: center; gap: 8px; background: var(--tgg-green); color: #fff; padding: 12px var(--tgg-gutter); margin: -14px calc(var(--tgg-gutter) * -1) 14px; }
.tgg-ctv-head h2 { color: #fff; margin: 0; font-size: 1.1rem; }
.tgg-ctv-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--tgg-line); padding-bottom: env(safe-area-inset-bottom); }
.tgg-ctv-nav button { border: 0; background: none; min-height: var(--tgg-nav-h); font-weight: 700; color: var(--tgg-muted); font-size: 12px; }
.tgg-ctv-nav button.active { color: var(--tgg-red); }
.tgg-ctv-body { padding-bottom: 20px; }
.tgg-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.tgg-stat { background: #fff; border-radius: 12px; padding: 12px; box-shadow: var(--tgg-shadow); }
.tgg-stat small { display: block; color: var(--tgg-muted); font-size: 12px; }
.tgg-stat b { font-size: 1.15rem; color: var(--tgg-green-dark); }
.tgg-stat.good b { color: var(--tgg-green); }
.tgg-stat.warn b { color: var(--tgg-red); }
.tgg-tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.tgg-tile { background: #fff; border: 0; border-radius: 12px; padding: 14px 12px; text-align: left; box-shadow: var(--tgg-shadow); }
.tgg-tile b { display: block; color: var(--tgg-green-dark); }
.tgg-tile small { color: var(--tgg-muted); }
.tgg-link-card { display: flex; gap: 12px; align-items: center; }
.tgg-link-card .tgg-qr { border-radius: 10px; border: 1px solid var(--tgg-line); }
.tgg-bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 8px; }
.tgg-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.tgg-bar i { display: block; width: 100%; max-width: 28px; background: var(--tgg-green); border-radius: 4px 4px 0 0; min-height: 2px; }
.tgg-bar small { font-size: 10px; color: var(--tgg-muted); }
.tgg-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tgg-order-row { background: #fff; border-radius: 12px; padding: 12px; box-shadow: var(--tgg-shadow); margin-bottom: 10px; }
.tgg-comm { color: var(--tgg-red); }
.tgg-post { background: #fff; border-radius: var(--tgg-radius); overflow: hidden; box-shadow: var(--tgg-shadow); margin-bottom: 12px; padding-bottom: 10px; }
.tgg-post > *:not(img) { margin-left: 12px; margin-right: 12px; }
.tgg-post img { width: 100%; max-height: 220px; object-fit: cover; margin-bottom: 8px; }
.tgg-info { background: #e7f2fb; }
body.tgg-has-ctvnav { padding-bottom: calc(var(--tgg-nav-h) * 2); }

/* Giỏ hàng trên điện thoại: hiện ảnh và dạng thẻ gọn */
@media (max-width: 768px) {
	.woocommerce-page table.cart .product-thumbnail { display: block !important; }
	.woocommerce table.shop_table_responsive tr td.product-thumbnail::before, .woocommerce-page table.shop_table_responsive tr td.product-thumbnail::before { display: none; }
	.woocommerce table.shop_table_responsive tr td.product-thumbnail { text-align: center !important; }
	.woocommerce table.shop_table_responsive tr { display: block; background: #fff; border-radius: var(--tgg-radius); margin-bottom: 12px; box-shadow: var(--tgg-shadow); }
	.woocommerce table.shop_table_responsive tr td { display: block; border-top: 0; }
}
.tgg-app input[type=text], .tgg-app input[type=search], .tgg-app input[type=tel], .tgg-app input[type=number], .tgg-app select { width: 100%; min-height: 46px; border: 1px solid var(--tgg-line); border-radius: 12px; padding: 10px 12px; background: #fff; font: inherit; color: var(--tgg-text); }
.tgg-app > .tgg-group-intro > h2 { display: none; }
.tgg-app label { display: block; font-weight: 600; margin: 10px 0 4px; font-size: 14px; }
.tgg-app .tgg-form label.tgg-check { display: flex; }
body:has(.tgg-ctv-nav) .tgg-bottom-nav { display: none; }
.tgg-quick b { font-size: .92rem; }
.tgg-quick small { font-size: 11.5px; }

/* ---------- Footer ---------- */
.tgg-footer { background: var(--tgg-green-dark); color: #cfe3d3; padding: 22px 0; font-size: 13.5px; }
.tgg-footer a { color: #ffd27a; }
.tgg-footer h4 { color: #fff; }
.tgg-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tgg-cat-card { background: #fff; border-radius: var(--tgg-radius); box-shadow: var(--tgg-shadow); overflow: hidden; text-decoration: none; color: var(--tgg-text); display: block; text-align: center; padding-bottom: 10px; }
.tgg-cat-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.tgg-cat-card span { display: block; font-weight: 800; padding: 10px 6px 0; }
.tgg-cat-card small { color: var(--tgg-muted); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; gap: 6px; overflow-x: auto; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 8px 14px; background: #fff; border-radius: 99px; text-decoration: none; white-space: nowrap; font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--tgg-green); color: #fff; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
	body { padding-bottom: 0; font-size: 16px; }
	.tgg-bottom-nav { display: none; }
	.tgg-header .tgg-menu-btn { display: none; }
	.tgg-primary-nav { display: block; }
	.tgg-primary-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
	.tgg-primary-nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
	.tgg-primary-nav a:hover { background: rgba(255, 255, 255, .15); }
	.tgg-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
	.tgg-slider .tgg-card { flex-basis: 240px; }
	.tgg-hero { min-height: 320px; }
	.tgg-hero h2 { font-size: 3.2rem; }
	.tgg-hero-wrap { margin: 0; border-radius: var(--tgg-radius); overflow: hidden; }
	.tgg-slider { margin: 0; padding-left: 0; padding-right: 0; }
	.tgg-quick { grid-template-columns: repeat(2, minmax(0, 360px)); }
	.tgg-single { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 20px; align-items: start; }
	.tgg-single-img { border-radius: var(--tgg-radius); overflow: hidden; }
	.tgg-single-body { margin-top: 0; border-radius: 0; padding: 0; background: none; }
	.tgg-buybar { position: static; box-shadow: none; border: 0; background: none; padding: 14px 0; }
	.tgg-ctv-nav { position: static; margin-top: 16px; border-radius: 12px; }
	.tgg-ctv-head { margin-left: 0; margin-right: 0; border-radius: 12px; }
	.tgg-app { max-width: 640px; margin: 0 auto; }
	.tgg-cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 600px) and (max-width: 899px) { .tgg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* =====================================================================
   v2 - Giao diện theo bản thiết kế (thanh tiêu đề, danh mục, chi tiết, giỏ hàng)
   ===================================================================== */
.tgg-i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tgg-header .tgg-container { display: grid; grid-template-columns: 44px 1fr auto; gap: 4px; }
.tgg-header--home .tgg-container { grid-template-columns: 44px 1fr 44px; }
.tgg-header .tgg-logo { justify-self: center; }
.tgg-title { text-align: center; font-weight: 700; font-size: 1.05rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tgg-icon-btn .tgg-i { width: 26px; height: 26px; }
.tgg-icon-spacer { visibility: hidden; }
.tgg-head-link { display: inline-flex; align-items: center; gap: 4px; color: #ff9b73; font-weight: 700; font-size: 13px; text-decoration: none; padding: 8px 4px; white-space: nowrap; }
.tgg-head-link .tgg-i { width: 17px; height: 17px; }
.tgg-bottom-nav a .tgg-i { width: 24px; height: 24px; }
.tgg-bottom-nav a span { font-size: 11.5px; }
.tgg-toast { position: fixed; left: 50%; bottom: calc(var(--tgg-nav-h) + 76px); transform: translateX(-50%); background: #1f2a24; color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; z-index: 200; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); max-width: 90vw; }
.tgg-toast.bad { background: #8a1d0e; }
.tgg-toast[hidden] { display: none; }

/* Trang chủ: banner gọn, chữ viết tay */
.tgg-home .tgg-main, .tgg-main.tgg-home { padding-top: 10px; }
.tgg-hero { min-height: 150px; background: linear-gradient(110deg, #0d3b20 0%, #14532d 55%, #1c6b3d 100%); }
.tgg-hero img { width: 62%; mask-image: linear-gradient(to right, transparent, #000 45%); -webkit-mask-image: linear-gradient(to right, transparent, #000 45%); }
.tgg-hero-body { max-width: 58%; padding: 14px var(--tgg-gutter) 26px; }
.tgg-hero h2 { font-family: var(--tgg-script); font-size: 2.1rem; line-height: 1.02; color: #ffb347; margin: 0 0 6px; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.tgg-hero p { font-size: .8rem; color: #f2ead6; font-style: italic; margin: 0; line-height: 1.35; }
.tgg-hero-wrap { position: relative; border-radius: 0; }
.tgg-dots { position: absolute; left: 0; right: 0; bottom: 8px; padding: 0; }
.tgg-dots i { background: rgba(255, 255, 255, .55); }
.tgg-dots i.on { background: var(--tgg-red); }
.tgg-quick { margin: 12px 0 6px; }
.tgg-quick a { padding: 10px 12px; border-radius: 14px; }
.tgg-quick .ic { background: #fde7e1; width: 46px; height: 46px; }
.tgg-quick .ic .tgg-i { stroke: var(--tgg-red); }
.tgg-quick .tx b { display: block; font-size: .95rem; color: var(--tgg-green-dark); }
.tgg-quick a:nth-child(2) { border: 2px solid transparent; }
.tgg-sec-head h2 { display: flex; align-items: center; gap: 6px; }
.tgg-sec-head .tgg-flame { stroke: var(--tgg-red); fill: #ffd2c4; width: 26px; height: 26px; }
.tgg-sec-head a { display: inline-flex; align-items: center; }
.tgg-sec-head a .tgg-i { width: 16px; height: 16px; }
.tgg-slider .tgg-card { flex-basis: calc(50% - 14px); }

/* Thẻ sản phẩm */
.tgg-card { border-radius: 14px; }
.tgg-card-img { aspect-ratio: 16 / 11; }
.tgg-badge { background: var(--tgg-red); border-radius: 4px; font-size: 10px; letter-spacing: .03em; padding: 3px 7px; }
.tgg-card .tgg-btn { width: 100%; }
.tgg-card h3 { font-weight: 700; line-height: 1.25; }

/* Tab Combo / Món ăn thêm / Đồ uống */
.tgg-tabbar { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px; margin: 2px 0 10px; overflow-x: auto; }
.tgg-tabbtn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--tgg-line); background: #fff; color: var(--tgg-text); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.tgg-tabbtn .tgg-i { width: 18px; height: 18px; }
.tgg-tabbtn.active { background: var(--tgg-red); border-color: var(--tgg-red); color: #fff; }
.tgg-tabbtn.active .tgg-i { fill: #fff; stroke: #fff; }
.tgg-pill.active { background: var(--tgg-green); border-color: var(--tgg-green); }
.tgg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tgg-card--list .tgg-card-img { aspect-ratio: 16 / 7.5; }
.tgg-card--list .tgg-card-body { padding: 10px 12px 12px; gap: 2px; }
.tgg-card--list h3 { font-size: 1.02rem; }
.tgg-card--list .tgg-short { font-size: 12.5px; }
.tgg-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 8px; }
.tgg-card-foot .tgg-price { padding-top: 0; font-size: 1.15rem; }
.tgg-cart-sq { width: 48px; height: 44px; border-radius: 12px; background: var(--tgg-red); color: #fff; display: grid; place-items: center; }
.tgg-cart-sq .tgg-i { width: 24px; height: 24px; }

/* Món ăn thêm (Add on) */
.tgg-searchbox { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--tgg-line); border-radius: 12px; padding: 0 12px; margin-bottom: 10px; }
.tgg-searchbox .tgg-i { stroke: var(--tgg-muted); }
.tgg-searchbox input { flex: 1; border: 0; min-height: 44px; background: none; font: inherit; outline: none; }
.tgg-grid--addon .tgg-card-img { aspect-ratio: 1 / 0.86; }
.tgg-grid--addon .tgg-card-body { padding: 8px 10px 10px; }
.tgg-grid--addon h3 { font-size: .92rem; }
.tgg-plus { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--tgg-green); color: #fff; display: grid; place-items: center; flex: none; }
.tgg-plus .tgg-i { width: 18px; height: 18px; stroke-width: 2.6; }
.tgg-plus[disabled] { opacity: .5; }
.tgg-flavor { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tgg-muted); margin-top: 4px; }
.tgg-flavor select { flex: 1; min-width: 0; border: 1px solid var(--tgg-line); border-radius: 8px; padding: 4px 6px; background: #fff; font: inherit; font-size: 12px; }
.tgg-flavor--block { margin: 12px 0; font-size: 14px; }
.tgg-flavor--block select { padding: 10px; font-size: 14px; border-radius: 10px; }
.tgg-promo { margin: 16px 0; border-radius: 14px; background: linear-gradient(110deg, #c24a12, #e8731f); color: #fff; display: flex; align-items: center; justify-content: space-between; overflow: hidden; min-height: 110px; }
.tgg-promo > div { padding: 14px; flex: 1; }
.tgg-promo h3 { color: #fff; font-size: 1.15rem; margin: 0 0 4px; }
.tgg-promo p { margin: 0; font-size: 12.5px; opacity: .95; }
.tgg-promo img { width: 40%; align-self: stretch; object-fit: cover; mask-image: linear-gradient(to right, transparent, #000 35%); -webkit-mask-image: linear-gradient(to right, transparent, #000 35%); }

/* Chi tiết sản phẩm */
.tgg-single { margin: -10px calc(var(--tgg-gutter) * -1) 0; display: block; }
.tgg-gallery { position: relative; background: var(--tgg-cream-2); }
.tgg-gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tgg-gallery-track::-webkit-scrollbar { display: none; }
.tgg-gallery-item { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; }
.tgg-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.tgg-gallery-count { position: absolute; right: 12px; bottom: 28px; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 99px; padding: 2px 10px; font-size: 12px; }
.tgg-single-body { margin-top: -16px; padding: 14px var(--tgg-gutter) 120px; }
.tgg-single h1 { font-size: 1.3rem; margin: 0 0 2px; color: var(--tgg-green-dark); }
.tgg-single-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tgg-single .tgg-price { font-size: 1.55rem; padding: 0; }
.tgg-chip-flame { display: inline-flex; align-items: center; gap: 4px; background: #fff; color: var(--tgg-red); border: 1.5px solid var(--tgg-red); padding: 4px 10px; font-size: 12.5px; }
.tgg-chip-flame .tgg-i { width: 15px; height: 15px; stroke: var(--tgg-red); fill: #ffd2c4; }
.tgg-rating { display: flex; align-items: center; gap: 4px; margin: 4px 0 0; font-size: 13px; }
.tgg-rating .tgg-i { width: 16px; height: 16px; stroke: #f4a300; fill: #f4a300; }
.tgg-info-icons { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; padding: 14px 0 6px; margin: 8px 0 4px; border-top: 1px solid var(--tgg-line); }
.tgg-info-icons li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 11.5px; color: #5a4a3a; line-height: 1.2; }
.tgg-info-icons .tgg-i { width: 30px; height: 30px; stroke: #5a3b2a; stroke-width: 1.6; }
.tgg-info-cards li { background: #fff; border-radius: 12px; padding: 10px 4px; box-shadow: var(--tgg-shadow); }
.tgg-h2 { font-size: 1.05rem; margin: 14px 0 6px; }
.tgg-desc { background: #fdebe5; border-radius: 12px; padding: 12px; font-size: 14px; color: #5a3a30; }
.tgg-desc--plain { background: #fff; margin-top: 12px; }
.tgg-qty-row { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 4px; font-weight: 700; }
.tgg-stepper { display: inline-flex; align-items: center; border: 1px solid var(--tgg-line); border-radius: 10px; background: #fff; overflow: hidden; }
.tgg-stepper button { width: 36px; height: 36px; border: 0; background: none; color: var(--tgg-text); display: grid; place-items: center; padding: 0; }
.tgg-stepper button .tgg-i { width: 16px; height: 16px; stroke-width: 2.6; }
.tgg-stepper button.plus { background: var(--tgg-red); color: #fff; }
.tgg-stepper input { width: 34px; text-align: center; border: 0; background: none; font-weight: 700; font-size: 15px; -moz-appearance: textfield; padding: 0; }
.tgg-stepper--sm button { width: 30px; height: 30px; }
.tgg-stepper--sm input { width: 26px; font-size: 14px; }
.tgg-addons h2 { font-size: 1.1rem; margin: 18px 0 8px; color: var(--tgg-green-dark); }
.tgg-addons h2 span { color: var(--tgg-red); }
.tgg-addons h2 small { font-size: .8rem; color: var(--tgg-muted); font-weight: 500; }
.tgg-addon-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.tgg-addon-scroll::-webkit-scrollbar { display: none; }
.tgg-addon-card { flex: 0 0 31%; min-width: 108px; scroll-snap-align: start; background: #fff; border-radius: 12px; box-shadow: var(--tgg-shadow); padding: 0 0 8px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.tgg-addon-card img { width: 100%; aspect-ratio: 1.15; object-fit: cover; }
.tgg-addon-card b { font-size: 12.5px; padding: 4px 8px 0; line-height: 1.2; }
.tgg-addon-card .tgg-price { font-size: .95rem; padding: 0 8px; }
.tgg-addon-card .tgg-stepper { margin: 4px 8px 0; align-self: flex-start; }
.tgg-buybar { background: #fff; padding: 10px var(--tgg-gutter); }
.tgg-buybar .total { flex: none; }
.tgg-buybar .total b { font-size: 1.35rem; }
.tgg-buybar .tgg-btn { flex: 1; min-height: 50px; font-size: 1rem; border-radius: 14px; }

/* Giỏ hàng */
.tgg-cart-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.tgg-cart-item { display: flex; gap: 10px; background: #fff; border-radius: 14px; padding: 10px; box-shadow: var(--tgg-shadow); }
.tgg-cart-item .thumb img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; }
.tgg-cart-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tgg-cart-item .row1, .tgg-cart-item .row2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tgg-cart-item h3 { font-size: .95rem; margin: 0; }
.tgg-cart-item h3 a { color: var(--tgg-green-dark); text-decoration: none; }
.tgg-cart-item .tgg-price { padding: 0; font-size: 1rem; }
.tgg-remove { color: #8a8f8c !important; width: 28px; height: 28px; display: grid; place-items: center; font-size: 0; border-radius: 0; text-decoration: none; }
.tgg-remove .tgg-i { width: 20px; height: 20px; }
.tgg-cart-item dl.variation { margin: 0; font-size: 12px; color: var(--tgg-muted); display: flex; gap: 4px; }
.tgg-cart-item dl.variation dt, .tgg-cart-item dl.variation dd, .tgg-cart-item dl.variation p { margin: 0; display: inline; }
.tgg-coupon h3 { font-size: .98rem; margin: 14px 0 6px; }
.tgg-coupon-row { display: flex; gap: 8px; }
.tgg-coupon-row input { flex: 1; min-height: 46px; border: 1px solid var(--tgg-line); border-radius: 12px; padding: 0 12px; background: #fff; font: inherit; }
.tgg-btn-green { background: var(--tgg-green) !important; color: #fff !important; min-width: 96px; }
.tgg-totals { margin-top: 14px; background: none !important; box-shadow: none !important; padding: 0 !important; }
.tgg-sum { margin: 0; }
.tgg-sum > div { display: flex; justify-content: space-between; padding: 7px 4px; font-size: .98rem; }
.tgg-sum dt, .tgg-sum dd { margin: 0; }
.tgg-sum dd { font-weight: 700; }
.tgg-sum .tgg-grand { background: #fdebd2; border-radius: 12px; padding: 12px; margin-top: 6px; }
.tgg-sum .tgg-grand dt { font-weight: 800; color: var(--tgg-orange); font-size: 1.1rem; }
.tgg-sum .tgg-grand dd { color: var(--tgg-red); font-size: 1.3rem; font-weight: 800; }
.tgg-checkout-btn { margin-top: 12px; }
.woocommerce a.checkout-button.tgg-checkout-btn { min-height: 54px; font-size: 1.1rem !important; justify-content: center; gap: 8px; }
.tgg-checkout-btn .tgg-i { width: 22px; height: 22px; stroke-width: 2.6; }
.tgg-assure { list-style: none; margin: 14px 0 0; padding: 12px; background: #fdf1e0; border-radius: 12px; display: grid; gap: 10px; font-size: 13.5px; }
.tgg-assure li { display: flex; align-items: center; gap: 10px; }
.tgg-assure .tgg-i { stroke: var(--tgg-red); width: 26px; height: 26px; }
.tgg-assure small { color: var(--tgg-muted); }
.tgg-legend { display: grid; gap: 6px; font-size: 12.5px; margin: 10px 0; }
.tgg-legend p { margin: 0; display: flex; align-items: center; gap: 8px; }
.tgg-empty-cart { text-align: center; padding: 40px 16px; }
.tgg-empty-cart .ic { width: 84px; height: 84px; border-radius: 50%; background: var(--tgg-green-soft); display: grid; place-items: center; margin: 0 auto 12px; }
.tgg-empty-cart .ic .tgg-i { width: 42px; height: 42px; stroke: var(--tgg-green); }

/* Thông báo WooCommerce gọn theo phong cách app */
.woocommerce-message, .woocommerce-info { background: var(--tgg-green-soft) !important; color: var(--tgg-green-dark); border-top: 0 !important; border-left: 4px solid var(--tgg-green); padding: 12px 14px !important; }
.woocommerce-message::before, .woocommerce-info::before { display: none; }
.woocommerce-message a.button, .woocommerce-message .button { float: none !important; margin: 8px 0 0 !important; display: inline-flex; }
.woocommerce-error { border-left: 4px solid var(--tgg-red); }
.woocommerce-error::before { display: none; }
.woocommerce-error li { margin-left: 0 !important; list-style: none; }

@media (max-width: 899px) {
	.tgg-footer { display: none; }
	.woocommerce table.shop_table_responsive tr { margin-bottom: 0; }
}
@media (min-width: 900px) {
	.tgg-single { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; margin: 0; align-items: start; }
	.tgg-single-body { margin-top: 0; padding-bottom: 20px; }
	.tgg-buybar { position: static; box-shadow: none; border: 0; padding: 14px 0; background: none; }
	.tgg-list { grid-template-columns: repeat(2, 1fr); }
	.tgg-header .tgg-container { grid-template-columns: auto auto 1fr auto; }
	.tgg-header--home .tgg-container { grid-template-columns: auto 1fr auto; }
	.tgg-title { text-align: left; }
	.tgg-grid--addon { grid-template-columns: repeat(4, 1fr); }
}
/* ---------- Mua chung (theo bản thiết kế) ---------- */
.tgg-app .tgg-i.sm, .tgg-i.sm { width: 16px; height: 16px; }
.tgg-group-intro h2 { font-size: 1.5rem; margin: 6px 0 0; }
.tgg-illus { display: block; width: 100%; max-width: 320px; margin: 6px auto 10px; }
.tgg-feature-list { list-style: none; padding: 0; margin: 0 0 8px; }
.tgg-feature-list li { display: flex; gap: 12px; align-items: center; background: transparent; box-shadow: none; border: 0; border-bottom: 1px solid var(--tgg-line); border-radius: 0; padding: 10px 2px; margin: 0; }
.tgg-feature-list .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--tgg-green); display: grid; place-items: center; flex: none; }
.tgg-feature-list .ico .tgg-i { stroke: #fff; width: 22px; height: 22px; }
.tgg-feature-list b { display: block; font-size: .98rem; }
.tgg-feature-list small { color: var(--tgg-muted); font-size: 12.5px; }
.tgg-link-red { color: var(--tgg-red); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }
.tgg-group-intro .tgg-btn-block { margin-top: 10px; gap: 8px; }
.tgg-group-intro .tgg-btn .tgg-i { width: 20px; height: 20px; }
.tgg-btn-outline { border-color: var(--tgg-green); color: var(--tgg-green); }
.tgg-h3 { font-size: 1.1rem; margin: 6px 0 2px; }
.tgg-tabs { border-bottom: 1px solid var(--tgg-line); }
.tgg-tab { font-size: 14px; }
.tgg-locline { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tgg-muted); margin: 6px 0 10px; }
.tgg-locline .tgg-i { stroke: var(--tgg-green); }
.tgg-locline a { margin-left: auto; color: var(--tgg-green); font-weight: 700; text-decoration: none; }
.tgg-gcard { display: flex; gap: 10px; background: #fff; border-radius: 14px; box-shadow: var(--tgg-shadow); padding: 10px; margin-bottom: 12px; }
.tgg-gcard .thumb { width: 74px; height: 74px; border-radius: 10px; object-fit: cover; flex: none; background: var(--tgg-cream-2); display: grid; place-items: center; }
.tgg-gcard .thumb.ph .tgg-i { stroke: var(--tgg-green); width: 32px; height: 32px; }
.tgg-gcard .main { flex: 1; min-width: 0; }
.tgg-gcard .head { display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; }
.tgg-gcard h3 { font-size: .95rem; margin: 0; line-height: 1.25; }
.tgg-gcard .meta { margin: 4px 0 0; font-size: 12.5px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tgg-gcard .meta .sp { width: 8px; }
.tgg-gcard .meta .tgg-i { stroke: var(--tgg-green); }
.tgg-gcard .tgg-progress { margin: 6px 0 2px; height: 6px; }
.tgg-gcard b.green { color: var(--tgg-green); font-size: 1.02rem; }
.tgg-gcard b.red, .tgg-note b.red { color: var(--tgg-red); }
.tgg-gcard .bar { color: var(--tgg-line); }
.tgg-gcard .tgg-btn { margin-top: 8px; min-height: 42px; }
.tgg-chip i.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tgg-green); margin-right: 5px; }
.tgg-steps li span .tgg-i { width: 14px; height: 14px; stroke-width: 3; stroke: #fff; }
.tgg-steps li { position: relative; }
.tgg-combo-opt { border-width: 2px; }
.tgg-combo-opt .tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--tgg-line); display: grid; place-items: center; flex: none; }
.tgg-combo-opt .tick .tgg-i { width: 16px; height: 16px; stroke: #fff; stroke-width: 3; }
.tgg-combo-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tgg-combo-opt { position: relative; }
.tgg-combo-opt:has(input:checked) .tick { background: var(--tgg-red); border-color: var(--tgg-red); }
.tgg-combo-opt:has(input:focus-visible) { outline: 3px solid var(--tgg-orange); }
.tgg-combo-opt .tx { flex: 1; }
.tgg-actions .tgg-btn { gap: 4px; }
.tgg-dropdown-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.tgg-dropdown-btn::after { content: none; }
.tgg-dropdown button { display: flex; align-items: center; gap: 12px; }
.tgg-dropdown button .tgg-i { stroke: var(--tgg-muted); }
.tgg-dropdown button span:not(.tick) { flex: 1; }
.tgg-dropdown button.sel { background: #fff2ef; border: 2px solid var(--tgg-red); border-radius: 10px; }
.tgg-dropdown .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--tgg-red); display: grid; place-items: center; flex: none !important; }
.tgg-dropdown .tick .tgg-i { stroke: #fff; width: 15px; height: 15px; stroke-width: 3; }
.tgg-confirm .gh { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.tgg-confirm .gh img, .tgg-confirm .gh .ph { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; background: var(--tgg-cream-2); display: grid; place-items: center; }
.tgg-confirm h3 { margin: 0; font-size: 1.05rem; }
.tgg-confirm p { margin: 0; color: var(--tgg-muted); font-size: 13px; }
.tgg-iconlink { background: none; border: 0; padding: 0 4px; vertical-align: middle; color: var(--tgg-muted); }
.tgg-confirm .row, .tgg-rows .row { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--tgg-line); align-items: flex-start; }
.tgg-rows .row:first-child { border-top: 0; }
.tgg-confirm .row .tgg-i, .tgg-rows .row .tgg-i { stroke: var(--tgg-green); margin-top: 2px; }
.tgg-confirm small, .tgg-rows small { display: block; color: var(--tgg-muted); font-size: 12px; }
.tgg-confirm em { color: var(--tgg-red); font-style: normal; font-size: 12.5px; }
.tgg-note { display: flex; gap: 10px; align-items: flex-start; }
.tgg-note .tgg-i { stroke: #b87400; flex: none; }
.tgg-note-blue { background: #e5f1fb; }
.tgg-note-blue .tgg-i { stroke: #1f6fb0; }
.tgg-note-warm { background: #fff1de; margin-top: 10px; }
.tgg-dupwarn { display: flex; gap: 10px; background: #fdeadb; color: #7a3a00; font-weight: 500; }
.tgg-dupwarn .ico .tgg-i { stroke: var(--tgg-red); width: 30px; height: 30px; }
.tgg-mapbox { position: relative; }
.tgg-maptext { position: absolute; left: 0; right: 0; top: 8px; text-align: center; margin: 0; z-index: 500; color: var(--tgg-red); font-weight: 700; font-size: 13px; text-shadow: 0 0 4px #fff, 0 0 4px #fff; }
.tgg-gstat { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tgg-gstat .tgg-btn { flex: none; min-height: 40px; padding: 8px 12px; }
.tgg-countdown { font-size: 2rem; margin: 4px 0 0; line-height: 1.1; }
.tgg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.tgg-two .tgg-btn { gap: 6px; }
.tgg-tier b { color: var(--tgg-green); }
.tgg-tier div { background: #eef6ee; }
.tgg-rules { padding-left: 18px; font-size: 14px; }
.tgg-rules li { margin-bottom: 6px; }
.tgg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tgg-table th, .tgg-table td { border-bottom: 1px solid var(--tgg-line); padding: 8px 4px; text-align: left; }
.tgg-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 300; display: grid; place-items: center; padding: 16px; }
.tgg-modal-box { background: #fff; border-radius: 16px; padding: 18px; width: 100%; max-width: 380px; max-height: 92vh; overflow: auto; }
.tgg-modal-box h3 { margin: 0 0 4px; }
.tgg-app .tgg-map-tools input { flex: 1 1 140px; }
/* ---------- CTV (theo bản thiết kế) ---------- */
.tgg-btn-lg { min-height: 52px; font-size: 1.05rem; border-radius: 14px; gap: 8px; }
.tgg-btn-lg .tgg-i { width: 22px; height: 22px; stroke-width: 2.6; }
.tgg-ctv-landing > h2 { font-size: 1.6rem; margin: 4px 0 2px; }
.tgg-check-list--ic li { padding: 10px 12px 10px 12px; display: flex; gap: 12px; align-items: center; background: transparent; box-shadow: none; border-bottom: 1px solid var(--tgg-line); border-radius: 0; margin: 0; }
.tgg-check-list--ic li::before { display: none; }
.tgg-check-list--ic .ico { width: 34px; height: 34px; border-radius: 50%; background: var(--tgg-green); display: grid; place-items: center; flex: none; }
.tgg-check-list--ic .ico .tgg-i { stroke: #fff; width: 19px; height: 19px; }
.tgg-field { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--tgg-line); border-radius: 12px; padding: 0 12px; position: relative; }
.tgg-field > .tgg-i { stroke: var(--tgg-muted); }
.tgg-field input, .tgg-field select, .tgg-field textarea { flex: 1; border: 0 !important; background: none !important; min-height: 48px; padding: 8px 0 !important; outline: none; font: inherit; width: 100%; box-shadow: none !important; }
.tgg-field--area { align-items: flex-start; padding-top: 8px; }
.tgg-field--area > .tgg-i { margin-top: 10px; }
.tgg-field:focus-within { border-color: var(--tgg-green); box-shadow: 0 0 0 3px rgba(20, 83, 45, .12); }
.tgg-field .tgg-eye { border: 0; background: none; color: var(--tgg-muted); padding: 4px; }
.tgg-counter { text-align: right; font-size: 12px; color: var(--tgg-muted); margin-top: 2px; }
.tgg-form label small { font-weight: 400; color: var(--tgg-muted); }
.tgg-sent { text-align: center; padding-top: 8px; }
.tgg-bigclock { width: 120px; height: 120px; border-radius: 50%; background: var(--tgg-green-soft); display: grid; place-items: center; margin: 10px auto 14px; }
.tgg-bigclock .tgg-i { width: 64px; height: 64px; stroke: var(--tgg-green); stroke-width: 1.6; }
.tgg-wait { text-align: left; }
.tgg-wait a { display: flex; align-items: center; gap: 10px; padding: 12px 2px; border-top: 1px solid var(--tgg-line); color: var(--tgg-text); text-decoration: none; margin-top: 4px; }
.tgg-wait a span { flex: 1; }
.tgg-wait a .tgg-i { width: 20px; height: 20px; stroke: var(--tgg-green); }
.tgg-ctv-login > h2 { text-align: center; font-size: 1.35rem; }
.tgg-login-logo { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 4px; }
.tgg-login-logo svg { width: 44px; height: 44px; }
.tgg-login-logo b { display: block; color: var(--tgg-green-dark); }
.tgg-login-logo small { color: var(--tgg-orange); font-weight: 700; }
.tgg-login-opts { align-items: center; margin: 8px 0; }
.tgg-login-opts .tgg-check { margin: 0; }
.tgg-login-opts a { font-size: 13px; color: var(--tgg-green); font-weight: 700; }

.tgg-ctv-body { padding-bottom: 12px; }
.tgg-bigrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.tgg-bigstat { display: flex; align-items: center; gap: 10px; border-radius: 14px; padding: 12px; background: #fff; box-shadow: var(--tgg-shadow); }
.tgg-bigstat .ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.tgg-bigstat.green .ico { background: var(--tgg-green-soft); }
.tgg-bigstat.green .ico .tgg-i { stroke: var(--tgg-green); }
.tgg-bigstat.green b { color: var(--tgg-green); }
.tgg-bigstat.orange .ico { background: #ffe9cf; }
.tgg-bigstat.orange .ico .tgg-i { stroke: #d97706; }
.tgg-bigstat.orange b { color: #d97706; }
.tgg-bigstat small { display: block; font-size: 12px; color: var(--tgg-muted); }
.tgg-bigstat b { font-size: 1.15rem; }
.tgg-stat-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tgg-stat-grid--3 .tgg-stat b { font-size: 1.02rem; }
.tgg-stat.red b { color: var(--tgg-red); }
.tgg-tile { display: flex; align-items: center; gap: 10px; }
.tgg-tile .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #e7eefb; }
.tgg-tile .ico .tgg-i { width: 22px; height: 22px; stroke: #2f5fc4; }
.tgg-tile.orange .ico { background: #ffe9cf; } .tgg-tile.orange .ico .tgg-i { stroke: #d97706; }
.tgg-tile.purple .ico { background: #efe6fb; } .tgg-tile.purple .ico .tgg-i { stroke: #7c3aed; }
.tgg-tile.green .ico { background: var(--tgg-green-soft); } .tgg-tile.green .ico .tgg-i { stroke: var(--tgg-green); }
.tgg-tile b { font-size: .92rem; }
.tgg-tile small { display: block; font-size: 11.5px; }
.tgg-ctv-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.tgg-ctv-nav .tgg-i { width: 23px; height: 23px; }
.tgg-ctv-nav span { font-size: 11.5px; }
.tgg-ticks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.tgg-ticks li { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.tgg-ticks .tgg-i { stroke: var(--tgg-green); width: 20px; height: 20px; }
.tgg-linkurl { font-size: 13px; color: var(--tgg-green); font-weight: 600; margin: 2px 0 0; }
.tgg-bars { height: 160px; padding-top: 22px; }
.tgg-bar { position: relative; }
.tgg-bar em { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); background: var(--tgg-green-dark); color: #fff; font-style: normal; font-size: 10px; padding: 2px 6px; border-radius: 6px; white-space: nowrap; z-index: 2; }
.tgg-toprow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--tgg-line); }
.tgg-toprow img, .tgg-toprow .ph, .tgg-orow img, .tgg-orow .ph { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--tgg-cream-2); flex: none; }
.tgg-toprow .nm { flex: 1; font-size: 14px; }
.tgg-toprow .nm small { display: block; color: var(--tgg-muted); }
.tgg-toprow b { color: var(--tgg-red); }
.tgg-orow { display: flex; gap: 10px; background: #fff; border-radius: 12px; padding: 10px; box-shadow: var(--tgg-shadow); margin-bottom: 10px; }
.tgg-orow .m { flex: 1; min-width: 0; }
.tgg-orow p { margin: 2px 0; font-size: 13px; color: var(--tgg-muted); }
.tgg-orow .tgg-comm { font-size: 13px; }
.tgg-greenbox { display: flex; gap: 12px; align-items: center; background: var(--tgg-green-soft); }
.tgg-greenbox .ico { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.tgg-greenbox .ico .tgg-i { stroke: var(--tgg-green); }
.tgg-greenbox p { margin: 2px 0 0; font-size: 13px; }
.tgg-payrow { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 12px; box-shadow: var(--tgg-shadow); margin-bottom: 8px; }
.tgg-payrow > div { flex: 1; }
.tgg-payrow small { display: block; color: var(--tgg-muted); font-size: 12px; }
.tgg-payrow .amt { color: var(--tgg-red); }
.tgg-ctv-nav { padding-bottom: env(safe-area-inset-bottom); }
.tgg-post .tgg-actions { margin: 8px 12px 0; }
.tgg-post .tgg-btn { min-height: 40px; font-size: 13.5px; gap: 6px; }
.tgg-post .tgg-btn .tgg-i { width: 17px; height: 17px; }
.tgg-quick a { padding: 8px 10px; gap: 8px; }
.tgg-quick .ic { width: 40px; height: 40px; }
.tgg-quick .ic .tgg-i { width: 22px; height: 22px; }
.tgg-quick .tx b { font-size: .88rem; line-height: 1.2; white-space: nowrap; }
.tgg-quick .tx small { font-size: 11px; line-height: 1.25; display: block; }.tgg-tabbar { scrollbar-width: none; }
.tgg-tabbar::-webkit-scrollbar { display: none; }
.tgg-flavor select { text-overflow: ellipsis; }
.tgg-grid--addon .tgg-card-body { gap: 4px; }.tgg-app > .tgg-group-intro > h2 { display: block; }
.tgg-feature-list b { color: var(--tgg-green-dark); }
.tgg-feature-list span:last-child { color: var(--tgg-text); }.tgg-gcard .head .tgg-chip { white-space: nowrap; }
.tgg-gcard .meta .it { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
/* ---------- Chân trang (4 cột trên desktop, accordion trên điện thoại) ---------- */
.tgg-footer { display: block !important; background: #0d3b20; color: #f4efe1; padding: 28px 0 8px; margin-top: 24px; font-size: 14px; }
.tgg-footer a { color: #f4efe1; text-decoration: none; }
.tgg-footer a:hover, .tgg-footer a:focus-visible { color: #ffd27a; text-decoration: underline; }
.tgg-foot-grid { display: grid; gap: 22px; }
.tgg-foot-logo { display: inline-flex; align-items: center; gap: 8px; }
.tgg-foot-logo svg { width: 40px; height: 40px; }
.tgg-foot-logo b { color: #fff; letter-spacing: .02em; font-size: 1.05rem; }
.tgg-foot-logo img { max-height: 56px; width: auto; }
.tgg-foot-tagline { color: #ffd27a; font-weight: 700; margin: 6px 0; }
.tgg-foot-desc { color: #dfe9dc; line-height: 1.6; margin: 0 0 12px; }
.tgg-social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.tgg-social a { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(244, 239, 225, .5); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.tgg-social a:hover { background: #ffd27a; border-color: #ffd27a; color: #0d3b20; text-decoration: none; }
.tgg-foot-col h3 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
.tgg-foot-contact h3 { padding-bottom: 8px; border-bottom: 2px solid var(--tgg-orange); display: inline-block; }
.tgg-contact-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.tgg-contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.tgg-contact-list .tgg-i { stroke: #ffd27a; width: 20px; height: 20px; margin-top: 2px; }
.tgg-contact-list small { display: block; color: #b9cdb9; font-size: 12px; }
.tgg-foot-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.tgg-foot-actions .tgg-btn { min-height: 44px; gap: 8px; flex: 1 1 140px; }
.tgg-btn-ghost { background: transparent; border-color: rgba(244, 239, 225, .7); color: #f4efe1 !important; }
.tgg-btn-ghost:hover { background: rgba(255, 255, 255, .12); text-decoration: none !important; }
.tgg-foot-store { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.tgg-foot-store .tgg-i { width: 18px; height: 18px; stroke: #ffd27a; }
.tgg-acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 12px 0; border-top: 1px solid rgba(244, 239, 225, .18); min-height: 48px; }
.tgg-acc summary::-webkit-details-marker { display: none; }
.tgg-acc summary h3 { margin: 0; }
.tgg-acc summary .tgg-i { transition: transform .2s; stroke: #ffd27a; }
.tgg-acc[open] summary .tgg-i { transform: rotate(180deg); }
.tgg-foot-links { list-style: none; margin: 0; padding: 0 0 10px; display: grid; gap: 8px; }
.tgg-foot-links a { display: inline-block; padding: 4px 0; }
.tgg-foot-bottom { margin-top: 22px; padding: 14px 0 6px; border-top: 1px solid rgba(244, 239, 225, .25); text-align: center; color: #cfdccc; font-size: 13px; }
.tgg-foot-bottom p { margin: 2px 0; }
.tgg-foot-bottom a { color: #ffd27a; }
@media (min-width: 900px) {
	.tgg-foot-grid { grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 32px; }
	.tgg-acc summary { cursor: default; pointer-events: none; border-top: 0; padding: 0 0 10px; }
	.tgg-acc summary .tgg-i { display: none; }
	.tgg-foot-bottom { text-align: left; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
}
@media (max-width: 899px) {
	.tgg-footer { padding-bottom: 16px; }
	.tgg-foot-brand { text-align: left; }
}
.tgg-bottom-nav { grid-template-columns: repeat(3, 1fr); }

/* =====================================================================
   v3 - Danh mục trên trang chủ, chi tiết sản phẩm mới, giỏ hàng cố định, 2 bước đặt hàng
   ===================================================================== */
[hidden] { display: none !important; }
.tgg-home .tgg-list { margin-bottom: 6px; }
.tgg-catalog { scroll-margin-top: calc(var(--tgg-header-h) + 8px); }
.tgg-tabbar--fit { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: visible; margin: 2px 0 10px; }
.tgg-tabbar--fit .tgg-tabbtn { justify-content: center; padding: 10px 4px; font-size: 13.5px; gap: 5px; min-width: 0; font-family: inherit; cursor: pointer; }
.tgg-tabbar--fit .tgg-tabbtn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tgg-tabbar--fit .tgg-tabbtn .tgg-i { width: 17px; height: 17px; }
.tgg-chips--fit { display: flex; flex-wrap: nowrap; gap: 6px; overflow: visible; padding: 0 0 10px; }
.tgg-chips--fit[hidden] { display: none !important; }
.tgg-chips--fit .tgg-pill { flex: 1 1 0; min-width: 0; padding: 8px 4px; font-size: 12.5px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: inherit; cursor: pointer; }

/* Chi tiết sản phẩm: banner → dải thành phần → tên → giá + số lượng → ăn cùng → mô tả */
.tgg-single-body { margin-top: 0; border-radius: 0; padding: 14px var(--tgg-gutter) 120px; background: var(--tgg-cream); }
.tgg-comp-strip { background: #f1e6cc; padding: 10px 8px; border-top: 1px solid #e6d7b2; border-bottom: 1px solid #e6d7b2; }
.tgg-comp-strip ul { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.tgg-comp-strip li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.tgg-comp-strip .im { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.tgg-comp-strip .im img { width: 100%; height: 100%; object-fit: cover; }
.tgg-comp-strip .im .tgg-i { width: 26px; height: 26px; stroke: var(--tgg-green); stroke-width: 1.6; }
.tgg-comp-strip .nm { font-size: 11px; line-height: 1.2; color: #4a3b2a; word-break: break-word; }
.tgg-comp-strip ul:has(li:nth-child(6)) .im { width: 36px; height: 36px; }
.tgg-comp-strip ul:has(li:nth-child(6)) .im .tgg-i { width: 20px; height: 20px; }
.tgg-comp-strip ul:has(li:nth-child(6)) .nm { font-size: 10px; }
.tgg-single h1 { font-size: 1.3rem; margin: 0 0 4px; }
.tgg-single-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; }
.tgg-serves-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--tgg-muted); }
.tgg-serves-chip .tgg-i { width: 16px; height: 16px; }
.tgg-price-qty { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 4px; }
.tgg-price-qty .tgg-price { font-size: 1.55rem; padding: 0; margin: 0; }
.tgg-addons h2 { margin-top: 14px; }
.tgg-ing-text { padding-left: 18px; }

/* Giỏ hàng: Tổng cộng + nút cố định ở trên cùng khi cuộn */
.tgg-cart-top { position: sticky; top: var(--tgg-header-h); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; margin: -10px calc(var(--tgg-gutter) * -1) 12px; padding: 10px var(--tgg-gutter); box-shadow: 0 3px 10px rgba(0, 0, 0, .1); }
.tgg-cart-top .sum small { display: block; color: var(--tgg-muted); font-size: 12px; }
.tgg-cart-top .sum b { color: var(--tgg-red); font-size: 1.35rem; font-weight: 800; }
.tgg-cart-top .tgg-checkout-btn { flex: 1; max-width: 240px; min-height: 48px; gap: 6px; margin: 0; font-size: 1rem; }
.tgg-cart-wrap.is-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }
.tgg-continue { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; padding: 12px 14px; border: 1.5px dashed var(--tgg-green); border-radius: 12px; color: var(--tgg-green); font-weight: 700; text-decoration: none; background: #fff; }
.tgg-continue .tgg-i { stroke: var(--tgg-green); }
.tgg-continue span { margin-left: auto; font-weight: 500; font-size: 12.5px; color: var(--tgg-muted); }
.tgg-breakdown { margin-top: 4px; }

/* Thông báo nhỏ ở cuối trang */
.tgg-toast { bottom: calc(var(--tgg-nav-h) + 18px); }

/* Xác nhận thông tin / Thanh toán */
.tgg-info .tgg-card-box h3 { font-size: 1.02rem; margin: 0 0 6px; }
.tgg-info .tgg-select { min-height: 48px; }
.tgg-block-chip { display: block; border-radius: 10px; padding: 8px 12px; margin: 0 0 12px; }
.tgg-info textarea { width: 100%; border: 1px solid var(--tgg-line); border-radius: 12px; padding: 10px 12px; font: inherit; background: #fff; }
.tgg-pay .tgg-pay-info ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.tgg-pay .tgg-pay-info li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.tgg-pay .tgg-pay-info .tgg-i { stroke: var(--tgg-green); width: 20px; height: 20px; margin-top: 1px; }
.tgg-pay #order_review_heading { margin: 14px 0 8px; }
.woocommerce-checkout #payment #place_order { width: 100%; min-height: 52px; font-size: 1.05rem; }

@media (min-width: 900px) {
	.tgg-single { grid-template-columns: 1.1fr 1fr; grid-template-areas: "gallery body" "strip body"; align-items: start; }
	.tgg-gallery { grid-area: gallery; }
	.tgg-comp-strip { grid-area: strip; }
	.tgg-single-body { grid-area: body; padding-bottom: 20px; }
	.tgg-cart-top { margin-left: 0; margin-right: 0; border-radius: 12px; }
	.tgg-chips--fit .tgg-pill { font-size: 14px; }
}.tgg-toast { min-width: 240px; max-width: min(92vw, 420px); text-align: center; border-radius: 14px; line-height: 1.35; }
@media (min-width: 900px) { .tgg-home .tgg-list { max-width: 680px; margin-left: auto; margin-right: auto; grid-template-columns: 1fr; } }
/* Khung hỏi cập nhật tài khoản / thẻ tài khoản */
.tgg-offer, .tgg-acct { border-left: 4px solid var(--tgg-orange); }
.tgg-offer h3, .tgg-acct h3 { margin: 0 0 6px; font-size: 1.02rem; }
.tgg-offer p, .tgg-acct p { margin: 0 0 8px; font-size: 14px; }
.tgg-acct { border-left-color: var(--tgg-green); }
/* Nút lọc trang chủ: kiểu bề rộng (cấu hình ở TGG Gà Ngon → Trang chủ) và số cột lưới món ăn thêm / đồ uống. */
.tgg-chips--scroll { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; }
.tgg-chips--scroll::-webkit-scrollbar { display: none; }
.tgg-chips--scroll[hidden], .tgg-chips--wrap[hidden] { display: none !important; }
.tgg-chips--scroll .tgg-pill { flex: none; font-family: inherit; cursor: pointer; }
.tgg-chips--wrap { display: flex; flex-wrap: wrap; gap: 6px; overflow: visible; padding: 0 0 10px; }
.tgg-chips--wrap .tgg-pill { flex: none; font-family: inherit; cursor: pointer; }
.tgg-home .tgg-grid--addon { grid-template-columns: repeat(var(--tgg-cols-m, 2), minmax(0, 1fr)); }
@media (min-width: 600px) { .tgg-home .tgg-grid--addon { grid-template-columns: repeat(var(--tgg-cols-d, 4), minmax(0, 1fr)); } }
/* Thanh trạng thái đơn Mua chung (luôn trên đầu mọi trang cho tới khi giao xong) */
.tgg-orderbar { position: sticky; top: var(--tgg-header-h); z-index: 49; background: #fff3cd; border-bottom: 1px solid #f0d98a; font-size: 13px; }
.tgg-orderbar .tgg-container { display: block; padding-top: 4px; padding-bottom: 5px; }
.tgg-orderbar-item { display: flex; align-items: flex-start; gap: 8px; color: var(--tgg-text); text-decoration: none; line-height: 1.35; font-size: 12.5px; }
.tgg-orderbar-item .dot { flex: none; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--tgg-red); animation: tgg-pulse 1.6s infinite; }
.tgg-orderbar-item b { color: var(--tgg-red-dark); }
@keyframes tgg-pulse { 0% { opacity: 1; } 50% { opacity: .35; } 100% { opacity: 1; } }

/* Trang Tài khoản */
.tgg-myacc { display: flex; flex-direction: column; gap: 12px; }
.tgg-acc-orders { list-style: none; margin: 0; padding: 0; }
.tgg-acc-orders li + li { border-top: 1px solid var(--tgg-line); }
.tgg-acc-orders a { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 0; text-decoration: none; color: var(--tgg-text); }
.tgg-acc-orders .n { font-weight: 700; }
.tgg-acc-orders .d { color: var(--tgg-muted); font-size: 12.5px; }
.tgg-acc-orders .t { font-weight: 700; text-align: right; }
.tgg-acc-orders .s { grid-column: 1 / -1; font-size: 12.5px; font-weight: 600; color: var(--tgg-green); }
.tgg-acc-orders .s-cancelled, .tgg-acc-orders .s-refunded, .tgg-acc-orders .s-failed { color: var(--tgg-muted); }
.tgg-myacc .tgg-form input { display: block; width: 100%; margin: 4px 0 10px; }

.tgg-orderbar-row { display: block; }
.tgg-orderbar-row + .tgg-orderbar-row { border-top: 1px dashed #e6cf7c; margin-top: 4px; padding-top: 4px; }
.tgg-orderbar .tgg-share-mini { display: inline-block; width: auto; min-height: 0; height: auto; margin: 3px 0 0 17px; padding: 2px 12px; font-size: 12px; line-height: 1.5; border-radius: 99px; }
.tgg-acc-share { padding: 0 0 10px; }
.tgg-acc-link input { width: 100%; }
.tgg-acc-stats { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tgg-acc-stats li { background: var(--tgg-green-soft); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; font-size: 12.5px; color: var(--tgg-muted); }
.tgg-acc-stats b { color: var(--tgg-text); font-size: 15px; }
button.tgg-cart-sq { border: 0; cursor: pointer; padding: 0; }
button.tgg-cart-sq:disabled { opacity: .6; }

/* =====================================================================
   v15 - Tối ưu cho máy tính (>= 1000px): bố cục 2 cột, tận dụng bề ngang. Điện thoại giữ nguyên.
   ===================================================================== */
@media (min-width: 1000px) {
	/* Trang chủ: danh sách món 2 cột thay vì cột hẹp */
	.tgg-home .tgg-list { max-width: none; margin-left: 0; margin-right: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

	/* Giỏ hàng: danh sách món bên trái, tổng tiền + nút đặt hàng bên phải */
	.tgg-cart-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 28px; align-items: start; }
	.tgg-cart-wrap > .tgg-cart-list { grid-column: 1; grid-row: 1 / span 8; margin-top: 0; }
	.tgg-cart-wrap > :not(.tgg-cart-list) { grid-column: 2; }
	.tgg-cart-top { position: static; margin: 0 0 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); flex-wrap: wrap; }
	.tgg-cart-top .tgg-checkout-btn { max-width: none; }

	/* Xác nhận thông tin: người nhận + giờ nhận bên trái, bản đồ vị trí bên phải */
	.tgg-info { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto auto 1fr auto auto; gap: 16px 28px; align-items: start; }
	.tgg-info > * { grid-column: 1 / -1; }
	.tgg-info > div { grid-row: 1; }
	.tgg-info > section.tgg-card-box:nth-of-type(1) { grid-column: 1; grid-row: 2; margin: 0; }
	.tgg-info > section.tgg-card-box:nth-of-type(2) { grid-column: 2; grid-row: 2 / span 2; margin: 0; }
	.tgg-info > section.tgg-card-box:nth-of-type(3) { grid-column: 1; grid-row: 3; margin: 0; }
	.tgg-info > section.tgg-goffer { grid-row: 4; margin: 0; }
	.tgg-info > .tgg-btn-block { grid-row: 5; max-width: 480px; justify-self: center; width: 100%; }

	/* Thanh toán: thông tin nhận hàng bên trái, đơn hàng + phương thức thanh toán bên phải */
	.tgg-pay { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto auto 1fr; gap: 0 28px; align-items: start; }
	.tgg-pay > * { grid-column: 1 / -1; }
	.tgg-pay > .tgg-pay-info { grid-column: 1; grid-row: 1 / span 3; margin-top: 0; }
	.tgg-pay > #order_review_heading { grid-column: 2; grid-row: 1; margin-top: 0; }
	.tgg-pay > #order_review { grid-column: 2; grid-row: 2; }

	/* Mua chung: bên trái chọn vị trí/bản đồ (cố định khi cuộn), bên phải danh sách nhóm */
	#tgg-group-app { max-width: 1100px; }
	#tgg-group-app .mc:not(:has(.mc-cols)) { max-width: 720px; margin-left: auto; margin-right: auto; }
	.mc-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; margin-top: 14px; }
	.mc-left { position: sticky; top: calc(var(--tgg-header-h, 56px) + 14px); }
	.mc-right > .mc-listhead:first-child, .mc-right > #mc-active + .mc-listhead { margin-top: 0; }
}@media (min-width: 1000px) {
	/* Tài khoản: bỏ cột trống bên trái của WooCommerce, các thẻ xếp 2 cột */
	.woocommerce-account .woocommerce-MyAccount-content { float: none; width: 100%; }
	.tgg-myacc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; align-items: start; }
	.tgg-myacc > * { margin: 0; }
	.tgg-myacc > .tgg-acc-ctv { grid-column: 1 / -1; }
	.tgg-acc-orders { max-width: none; }
}