/* ==========================================================================
   Agridala – main stylesheet (mobile first)
   ========================================================================== */

:root {
	--g900: #08462C;
	--g800: #0B5D3B;
	--g600: #12804F;
	--g100: #E8F5EE;
	--g050: #F2F4F1;
	--ink: #18211C;
	--muted: #5A665F;
	--line: #E2E7E3;
	--line-2: #EEF1EE;
	--white: #FFFFFF;
	--orange: #C2410C;
	--orange-d: #A8380A;
	--yellow: #FFC83D;
	--yellow-ink: #3A2A00;
	--blue: #1E5FBF;
	--blue-d: #174C99;
	--blue-l: #D6E4FA;
	--red: #C0262D;
	--zalo: #0068FF;
	--tiktok: #FE2C55;
	--dark: #121417;
	--r-card: 20px;
	--r-sm: 14px;
	--shadow: 0 1px 2px rgba(16, 24, 20, .04), 0 4px 16px rgba(16, 24, 20, .05);
	--wrap: 1240px;
	--pad: 12px;
	--tabbar-h: 68px;
	--font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--g050); }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--g800); text-decoration: none; }
a:hover { color: var(--g900); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #4C9AFF; outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }
[hidden] { display: none !important; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.agd-skip { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--white); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.agd-skip:focus { top: 12px; }

.agd-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.agd-main { padding-bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); min-height: 50vh; }
.agd-sec { margin-top: 14px; }

.agd-h1 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.agd-h2 { font-size: 18px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 10px; }
.agd-h3 { font-size: 16px; font-weight: 800; margin: 0; }
.agd-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.agd-muted { color: var(--muted); }
.agd-small { font-size: 13px; }
.agd-xsmall { font-size: 11.5px; margin: 0; }
.agd-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; white-space: nowrap; }

.agd-card { background: var(--white); border-radius: var(--r-card); padding: 16px; box-shadow: var(--shadow); }

/* ---------- Buttons, pills, badges ---------- */
.agd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 99px; font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center; transition: filter .15s, transform .15s; }
.agd-btn:hover { filter: brightness(.95); }
.agd-btn:active { transform: scale(.98); }
.agd-btn--primary { background: var(--g800); color: var(--white); }
.agd-btn--primary:hover { color: var(--white); }
.agd-btn--accent { background: var(--orange); color: var(--white); }
.agd-btn--white { background: var(--white); color: var(--g800); }
.agd-btn--zalo { background: var(--zalo); color: var(--white); }
.agd-btn--zalo:hover { color: var(--white); }
.agd-btn--tiktok { background: var(--tiktok); color: var(--white); }
.agd-btn--tiktok:hover { color: var(--white); }
.agd-btn--outline { background: var(--white); color: var(--g800); box-shadow: inset 0 0 0 1.5px var(--g800); }
.agd-btn--block { display: flex; width: 100%; }

.agd-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 99px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.agd-pill--line { color: var(--ink); border: 1px solid var(--line); background: var(--white); font-size: 13px; min-height: 36px; }
.agd-pill--soft { background: var(--g600); color: var(--white); }
.agd-pill--soft:hover { color: var(--white); }

.agd-badge { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 99px; }
.agd-badge--yellow { background: var(--yellow); color: var(--yellow-ink); }
.agd-badge--white { background: var(--white); color: var(--orange); }
.agd-tag { display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--bg, var(--g100)); color: var(--fg, var(--g800)); }

.agd-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.agd-chips::-webkit-scrollbar { display: none; }
.agd-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; font-weight: 600; }
.agd-chip span { color: var(--muted); font-weight: 500; }
.agd-chip:hover { border-color: var(--g800); color: var(--g800); }

/* ---------- Top bar & header ---------- */
.agd-topbar { display: none; background: var(--g900); color: #CFE6D8; font-size: 13px; }
.agd-topbar__in { display: flex; justify-content: space-between; gap: 6px 24px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.agd-topbar__links { display: flex; gap: 18px; align-items: center; }
.agd-topbar__links .agd-icon { vertical-align: -2px; }
.agd-topbar__tiktok { color: var(--yellow); font-weight: 700; }
.agd-topbar__tiktok:hover { color: var(--white); }

.agd-header { position: sticky; top: 0; z-index: 60; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.admin-bar .agd-header { top: 46px; }
.agd-header__in { display: flex; align-items: center; gap: 8px; padding-top: 10px; padding-bottom: 8px; }
.agd-header__logo { display: none; }
.agd-header__hotline { display: none; }
.agd-header__chips { display: none; }

.agd-iconbtn { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); color: var(--ink); }

.agd-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 4px 0 12px; border-radius: 99px; background: var(--g050); }
.agd-search__ico { display: flex; color: var(--muted); }
.agd-search__input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 14.5px; outline: none; padding: 0 4px; }
.agd-search__input::-webkit-search-cancel-button { display: none; }
.agd-search__mic, .agd-search__cam { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--muted); border-radius: 50%; }
.agd-search__mic.is-listening { color: var(--white); background: var(--red); }
.agd-search__btn { display: none; }

.agd-cartbtn { position: relative; flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); background: var(--white); }
.agd-cartbtn__label { display: none; }
.agd-cart-count { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--orange); color: var(--white); font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }
.agd-cart-count[data-count="0"] { background: #9AA59E; }

.agd-catbar { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--pad) 10px; scrollbar-width: none; scroll-behavior: smooth; }
.agd-catbar::-webkit-scrollbar { display: none; }
.agd-catbar__chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 13.5px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.agd-catbar__chip.is-active { background: var(--g800); border-color: var(--g800); color: var(--white); }

.agd-nav { display: none; }

/* Logo */
.agd-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--g800); }
.agd-logo__mark { display: flex; color: var(--g800); --agd-logo-ink: #fff; }
.agd-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.agd-logo__name { font-size: 21px; font-weight: 800; letter-spacing: .02em; }
.agd-logo__tag { font-size: 12px; opacity: .8; font-weight: 500; }
.agd-logo--img img { max-height: 48px; width: auto; }

/* ---------- Tab bar (phones) ---------- */
.agd-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; background: var(--white); box-shadow: 0 -1px 0 var(--line), 0 -6px 20px rgba(0, 0, 0, .04); padding: 6px 4px calc(10px + env(safe-area-inset-bottom)); }
.agd-tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-height: 50px; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 600; padding: 0; }
.agd-tabbar__item.is-active { color: var(--g800); }
.agd-tabbar__item--main { color: var(--g800); font-weight: 700; }
.agd-tabbar__fab { width: 54px; height: 54px; margin-top: -26px; border-radius: 50%; background: var(--g600); color: var(--white); border: 4px solid var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(18, 128, 79, .35); }
.agd-tabbar__cart { position: relative; display: flex; }
.agd-tabbar__cart .agd-cart-count { top: -5px; right: -10px; }
.single-product .agd-tabbar { display: none; }

/* ---------- Drawer ---------- */
.agd-drawer { margin: 0; padding: 0; border: 0; width: min(88vw, 380px); max-width: none; height: 100%; max-height: none; background: var(--white); color: var(--ink); overflow-y: auto; }
.agd-drawer::backdrop { background: rgba(10, 20, 14, .45); }
.agd-drawer[open] { animation: agdSlide .22s ease-out; }
@keyframes agdSlide { from { transform: translateX(-100%); } to { transform: none; } }
.agd-drawer__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--white); border-bottom: 1px solid var(--line-2); }
.agd-drawer__body { padding: 8px 16px 32px; }
.agd-drawer__title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 8px; }
.agd-drawer__cats, .agd-drawer__menu { list-style: none; margin: 0; padding: 0; }
.agd-drawer__cats a { display: flex; align-items: center; gap: 12px; min-height: 52px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-2); }
.agd-drawer__ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--fg); }
.agd-drawer__count { margin-left: auto; font-size: 12px; color: var(--muted); background: var(--g050); border-radius: 99px; padding: 2px 8px; }
.agd-drawer__menu a { display: block; padding: 12px 0; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-2); }
.agd-drawer__menu .sub-menu { list-style: none; padding-left: 14px; margin: 0; }
.agd-drawer__menu .sub-menu a { font-weight: 500; }
.agd-drawer__contact { display: grid; gap: 10px; margin-top: 22px; }

/* ---------- Hero ---------- */
.agd-hero { display: grid; gap: 10px; }
.agd-hero__main { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 22px 20px; border-radius: 22px; background: var(--g800); color: var(--white); }
.agd-hero__leaf { position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; fill: #7FD3A2; opacity: .17; pointer-events: none; }
.agd-hero__text { position: relative; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.agd-hero__title { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.agd-hero__lead { margin: 0; font-size: 14px; color: #CFE6D8; }
.agd-hero__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.agd-hero__btns .agd-btn { min-height: 46px; font-size: 14px; padding: 0 16px; }
.agd-hero__media { display: none; position: relative; flex: 0 0 34%; }
.agd-hero__img { width: 100%; height: auto; object-fit: contain; }
.agd-hero__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.agd-promo { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 96px; padding: 14px; border-radius: 18px; overflow: hidden; }
.agd-promo--orange { background: var(--orange); color: var(--white); }
.agd-promo--orange:hover { color: var(--white); }
.agd-promo--yellow { background: var(--yellow); color: var(--yellow-ink); }
.agd-promo--yellow:hover { color: var(--yellow-ink); }
.agd-promo--image { padding: 0; }
.agd-promo__img { width: 100%; height: 100%; object-fit: cover; }
.agd-promo__label { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; opacity: .85; }
.agd-promo__title { font-size: 15px; line-height: 1.3; }
.agd-promo__sub { font-size: 12.5px; opacity: .9; }

/* ---------- Tools ---------- */
.agd-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 12px 6px; }
.agd-tool { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 2px; text-align: center; color: var(--ink); border-radius: var(--r-sm); }
.agd-tool:hover { background: var(--g050); color: var(--ink); }
.agd-tool__ico { width: 48px; height: 48px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--fg); }
.agd-tool__text { display: flex; flex-direction: column; line-height: 1.25; }
.agd-tool__text b { font-size: 12.5px; }
.agd-tool__text span { display: none; font-size: 12px; color: var(--muted); }

/* ---------- Weather & prices ---------- */
.agd-wxpr { display: grid; gap: 14px; }
.agd-weather { background: var(--blue); color: var(--white); display: flex; flex-direction: column; gap: 12px; }
.agd-weather a { color: var(--white); text-decoration: underline; }
.agd-weather__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.agd-weather__select { height: 36px; border: 0; border-radius: 99px; background: var(--blue-d); color: var(--white); font-size: 13px; font-weight: 600; padding: 0 30px 0 12px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.agd-weather__place { font-size: 13px; background: var(--blue-d); padding: 5px 12px; border-radius: 99px; }
.agd-weather__chips { display: none; flex-wrap: wrap; gap: 6px; }
.agd-weather__chip { min-height: 36px; padding: 0 13px; border: 0; border-radius: 99px; background: var(--blue-d); color: var(--white); font-size: 13px; font-weight: 600; }
.agd-weather__chip[aria-pressed="true"] { background: var(--white); color: var(--blue); }
.agd-weather__panel { display: flex; flex-direction: column; gap: 12px; }
.agd-weather__now { display: flex; align-items: center; gap: 12px; }
.agd-weather__icon { color: var(--yellow); display: flex; }
.agd-weather__temp { font-size: 42px; line-height: 1; font-weight: 800; }
.agd-weather__desc { font-size: 13px; color: var(--blue-l); line-height: 1.5; }
.agd-weather__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 12px; }
.agd-weather__stats span { background: var(--blue-d); border-radius: 12px; padding: 7px 8px; display: flex; flex-direction: column; gap: 2px; color: var(--blue-l); }
.agd-weather__stats .agd-icon { color: var(--white); }
.agd-weather__stats b { color: var(--white); font-size: 13px; }
.agd-weather__slots, .agd-weather__days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; text-align: center; font-size: 11.5px; }
.agd-weather__slots li { background: var(--blue-d); border-radius: 12px; padding: 7px 2px; display: flex; flex-direction: column; gap: 1px; }
.agd-weather__slots li.is-rain { background: #0F3C7C; box-shadow: inset 0 0 0 1.5px #8DB4F0; }
.agd-weather__slots b { font-size: 14px; }
.agd-weather__mm { color: var(--blue-l); font-size: 10.5px; }
.agd-weather__days { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.agd-weather__days li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.agd-weather__advice { margin: 0; display: flex; gap: 10px; align-items: flex-start; background: var(--white); color: var(--ink); border-radius: var(--r-sm); padding: 11px 12px; font-size: 13.5px; line-height: 1.5; }
.agd-weather__advice-ico { flex: none; width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.agd-weather__advice.is-ok .agd-weather__advice-ico { background: var(--g100); color: var(--g800); }
.agd-weather__advice.is-warn .agd-weather__advice-ico { background: #FDECE3; color: var(--orange); }
.agd-weather__credit { margin: 0; font-size: 11px; color: var(--blue-l); }

.agd-prices { display: flex; flex-direction: column; gap: 10px; }
.agd-prices__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.agd-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 99px; background: var(--g050); }
.agd-seg__btn { min-height: 38px; border: 0; border-radius: 99px; background: transparent; font-size: 13px; font-weight: 700; color: var(--ink); padding: 0 8px; }
.agd-seg__btn[aria-selected="true"] { background: var(--g800); color: var(--white); }

.agd-ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.agd-ptable thead th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; padding: 6px; }
.agd-ptable td, .agd-ptable tbody th { padding: 10px 6px; border-top: 1px solid var(--line-2); text-align: left; font-weight: 400; vertical-align: middle; }
.agd-ptable tbody th { font-weight: 700; }
.agd-ptable .num { text-align: right; white-space: nowrap; }
.agd-ptable__area { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.agd-ptable__areacol, .agd-prices thead th:nth-child(2) { display: none; }
.agd-chg { font-size: 12.5px; font-weight: 700; }
.agd-chg--up { color: var(--g600); }
.agd-chg--down { color: var(--red); }
.agd-chg--flat { color: var(--muted); }

/* ---------- Section heads ---------- */
.agd-sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 12px; }

/* ---------- Category tiles (desktop) ---------- */
.agd-cats { display: none; }
.agd-cats__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 12px; margin-top: 12px; }
.agd-cat { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px 16px; border-radius: var(--r-card); background: var(--bg); color: var(--ink); text-align: center; transition: transform .15s; }
.agd-cat:hover { transform: translateY(-2px); color: var(--ink); }
.agd-cat__ico { width: 62px; height: 62px; border-radius: 18px; background: var(--white); color: var(--fg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.agd-cat__ico img { width: 100%; height: 100%; object-fit: cover; }
.agd-cat b { font-size: 14px; line-height: 1.3; }

/* ---------- Bands ---------- */
.agd-band { border-radius: 24px; padding: 16px 12px; display: flex; flex-direction: column; gap: 14px; }
.agd-band__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.agd-band--sale { background: var(--orange); }
.agd-band--sale .agd-h2 { color: var(--white); }
.agd-band--sale .agd-h2 .agd-icon { color: var(--yellow); }
.agd-band--dark { background: var(--dark); color: var(--white); }
.agd-band--dark .agd-h2 { color: var(--white); }

.agd-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.agd-rail::-webkit-scrollbar { display: none; }
.agd-rail > * { scroll-snap-align: start; }

/* ---------- Grids ---------- */
.agd-grid { display: grid; gap: 10px; }
.agd-grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.agd-grid--pests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agd-grid--crops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agd-grid--why { grid-template-columns: 1fr; }
.agd-grid--posts { grid-template-columns: 1fr; gap: 12px; }

/* ---------- Product card ---------- */
.agd-pcard { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.agd-pcard__img { position: relative; display: block; aspect-ratio: 1 / 1; background: #F7F8F6; }
.agd-pcard__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.agd-pcard__off { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 11.5px; font-weight: 700; color: var(--red); background: #FDECEC; padding: 2px 8px; border-radius: 99px; }
.agd-pcard__stock { position: absolute; bottom: 8px; left: 8px; font-size: 11px; font-weight: 700; color: var(--white); background: rgba(24, 33, 28, .75); padding: 2px 8px; border-radius: 99px; }
.agd-pcard.is-out .agd-pcard__img img { opacity: .55; }
.agd-pcard__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.agd-pcard__name { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.4em * 2); }
.agd-pcard__name a { color: var(--ink); }
.agd-pcard__ai { display: none; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agd-pcard__drum { align-self: flex-start; font-size: 11px; font-weight: 600; color: var(--blue); background: #E8F0FC; padding: 2px 8px; border-radius: 99px; }
.agd-pcard__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.agd-pcard__price { min-width: 0; display: flex; flex-direction: column-reverse; line-height: 1.25; font-weight: 800; font-size: 15px; color: var(--g800); }
.agd-pcard__price del { font-size: 11.5px; font-weight: 500; color: var(--muted); opacity: 1; }
.agd-pcard__price ins { text-decoration: none; }
.agd-pcard__price .woocommerce-Price-currencySymbol { font-size: .9em; }
.agd-pcard__add { flex: none; position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--g600); color: var(--white); display: inline-flex; align-items: center; justify-content: center; transition: transform .15s, background .2s; }
.agd-pcard__add:hover { color: var(--white); background: var(--g800); }
.agd-pcard__add:active { transform: scale(.92); }
.agd-pcard__add.loading { opacity: .6; pointer-events: none; }
.agd-pcard__add.loading::after { content: ""; position: absolute; inset: 4px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: var(--white); border-radius: 50%; animation: agdSpin .7s linear infinite; }
.agd-pcard__add.added { background: var(--g800); }
@keyframes agdSpin { to { transform: rotate(360deg); } }
.agd-pcard .added_to_cart { display: none !important; }

/* ---------- Category rows ---------- */
.agd-catrow { scroll-margin-top: 4px; }
.agd-catrow__box { padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; }
.agd-catrow__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.agd-catrow__ico { width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); color: var(--fg); }
.agd-more { align-self: center; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 99px; background: var(--g050); font-size: 13.5px; font-weight: 600; }
.agd-catrow__all { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 48px; border-radius: var(--r-sm); background: var(--g050); color: var(--ink); font-size: 14px; font-weight: 700; }
.agd-catrow__all:hover { background: var(--g100); color: var(--g800); }

/* ---------- TikTok ---------- */
.agd-tt__brand { display: flex; align-items: center; gap: 12px; }
.agd-tt__logo { flex: none; width: 48px; height: 48px; border-radius: 15px; background: var(--white); color: var(--dark); display: flex; align-items: center; justify-content: center; }
.agd-tt__meta { font-size: 13px; color: #AEB4B9; }

.agd-video { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; }
.agd-video::backdrop { background: rgba(0, 0, 0, .85); }
.agd-video__box { position: relative; width: min(92vw, 380px); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.agd-video__frame { width: 100%; aspect-ratio: 9 / 16; max-height: 78vh; border-radius: 16px; overflow: hidden; background: #000; }
.agd-video__frame iframe { width: 100%; height: 100%; border: 0; }
.agd-video__close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--white); color: var(--dark); display: flex; align-items: center; justify-content: center; }
.agd-video__open { color: var(--white); font-weight: 600; font-size: 14px; }

/* ---------- Pests & crops ---------- */
.agd-pest { display: flex; flex-direction: column; gap: 6px; padding: 14px; color: var(--ink); transition: transform .15s; }
.agd-pest:hover { transform: translateY(-2px); color: var(--ink); }
.agd-pest__name { font-size: 15px; line-height: 1.35; }
.agd-pest__desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.agd-pest__go { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--g800); }
.agd-crop { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 108px; padding: 16px; border-radius: var(--r-card); background: var(--bg); color: var(--white); transition: transform .15s; }
.agd-crop:hover { transform: translateY(-2px); color: var(--white); }
.agd-crop b { font-size: 17px; }
.agd-crop span { font-size: 12.5px; opacity: .9; line-height: 1.45; }

/* ---------- Why ---------- */
.agd-why { display: flex; gap: 12px; align-items: flex-start; padding: 14px; }
.agd-why__ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--fg); }
.agd-why b { display: block; font-size: 14.5px; }
.agd-why span span { display: block; font-size: 13px; color: var(--muted); }

/* ---------- Posts ---------- */
.agd-post { padding: 0; overflow: hidden; display: flex; flex-direction: row; }
.agd-post__img { flex: 0 0 120px; background: var(--g100); }
.agd-post__img img { width: 100%; height: 100%; object-fit: cover; }
.agd-post__ph { width: 100%; height: 100%; min-height: 90px; display: flex; align-items: center; justify-content: center; color: var(--g800); }
.agd-post__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.agd-post__date { font-size: 12px; color: var(--muted); }
.agd-post__title { margin: 0; font-size: 15px; line-height: 1.4; }
.agd-post__title a { color: var(--ink); }

/* ---------- Generic pages ---------- */
.agd-page { padding-top: 12px; }
.agd-page__head { margin: 6px 0 14px; }
.agd-page__desc { color: var(--muted); margin: 0; }
.agd-crumbs { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.agd-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.agd-crumbs li + li::before { content: "/"; margin-right: 4px; color: #A6AFA9; }
.agd-crumbs--wc .sep { margin: 0 4px; color: #A6AFA9; }
.agd-layout { display: grid; gap: 14px; }
.agd-side { display: flex; flex-direction: column; gap: 14px; }
.agd-article { padding: 18px; }
.agd-article__meta { color: var(--muted); font-size: 13px; margin: -4px 0 14px; }
.agd-article__cover { margin: 0 -18px 16px; }
.agd-article__cover img { width: 100%; }
.agd-empty { text-align: center; padding: 28px 18px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.agd-empty .agd-search { width: 100%; max-width: 520px; }
.agd-widget { padding: 16px; }
.agd-widget__title { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.agd-linklist { list-style: none; margin: 0; padding: 0; }
.agd-linklist li { border-top: 1px solid var(--line-2); }
.agd-linklist li:first-child { border-top: 0; }
.agd-linklist a { display: block; padding: 10px 0; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.45; }
.agd-pagination, .woocommerce-pagination { margin: 20px 0; }
.agd-pagination .nav-links, .woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; list-style: none; padding: 0; margin: 0; border: 0 !important; }
.agd-pagination .page-numbers, .woocommerce-pagination .page-numbers { display: inline-flex !important; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px !important; border-radius: 99px; background: var(--white); border: 1px solid var(--line) !important; color: var(--ink); font-weight: 600; }
.woocommerce-pagination ul li { border: 0 !important; }
.agd-pagination .current, .woocommerce-pagination .current { background: var(--g800) !important; color: var(--white) !important; border-color: var(--g800) !important; }

.agd-prose { font-size: 15.5px; line-height: 1.75; overflow-wrap: anywhere; }
.agd-prose h2 { font-size: 20px; margin: 1.4em 0 .5em; }
.agd-prose h3 { font-size: 17px; margin: 1.2em 0 .4em; }
.agd-prose p, .agd-prose ul, .agd-prose ol { margin: 0 0 1em; }
.agd-prose img { border-radius: 12px; height: auto; }
.agd-prose a { text-decoration: underline; }
.agd-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.agd-prose th, .agd-prose td { border: 1px solid var(--line); padding: 8px 10px; }
.agd-prose blockquote { margin: 1em 0; padding: 10px 16px; border-radius: 12px; background: var(--g100); }
.agd-prose .wp-block-image, .agd-prose figure { margin: 1em 0; }

.agd-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 18px; padding: 18px; border-radius: var(--r-card); background: var(--g800); color: var(--white); }
.agd-cta span { color: #CFE6D8; font-size: 14px; }
.agd-cta--side { margin-top: 0; }
.agd-cta--wide { margin-top: 20px; }

/* Flatsome leftovers */
.fs-row { display: grid; gap: 16px; }
.fs-banner, .fs-slider { margin: 1em 0; }
.fs-image img { border-radius: 12px; }

/* ---------- Footer ---------- */
.agd-footer { background: var(--g900); color: #CFE6D8; font-size: 14px; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
.agd-footer a { color: #CFE6D8; }
.agd-footer a:hover { color: var(--white); }
.agd-footer__grid { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 20px; }
.agd-footer__brand { display: flex; flex-direction: column; gap: 6px; line-height: 1.55; }
.agd-footer__company { color: var(--white); font-size: 16px; }
.agd-footer__title { color: var(--white); font-size: 15px; margin: 0 0 10px; }
.agd-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.agd-footer__contact { display: flex; flex-direction: column; gap: 6px; }
.agd-footer__phone { font-size: 24px; font-weight: 800; color: var(--white) !important; }
.agd-footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.agd-footer__social a { padding: 8px 14px; border-radius: 99px; background: var(--g600); color: var(--white); font-size: 13px; }
.agd-footer__bottom { border-top: 1px solid #1E5E40; padding-top: 14px; padding-bottom: 18px; font-size: 13px; }

/* ---------- Toast ---------- */
.agd-toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 20px); opacity: 0; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--ink); color: var(--white); font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); transition: opacity .2s, transform .2s; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.agd-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.agd-toast a { color: var(--yellow); font-weight: 700; white-space: nowrap; }

/* ==========================================================================
   Shop & product pages
   ========================================================================== */
.agd-shop__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 12px; }
.agd-shop__bar .woocommerce-notices-wrapper { flex-basis: 100%; }
.agd-shop__bar .woocommerce-result-count { margin: 0 !important; font-size: 13px; color: var(--muted); float: none !important; }
.agd-shop__bar .woocommerce-ordering { margin: 0 !important; float: none !important; }
.agd-shop__bar select, .woocommerce .agd-shop__bar select { height: 40px; border: 1px solid var(--line); border-radius: 99px; padding: 0 12px; background: var(--white); font-size: 13px; }
.agd-shop__about { margin-top: 20px; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-radius: var(--r-sm); border-top-color: var(--g800) !important; }

.agd-buy { display: grid; gap: 18px; padding: 14px; }
.agd-buy__gallery { position: relative; min-width: 0; }
.agd-buy__off { z-index: 5; top: 12px; left: 12px; font-size: 13px; }
.woocommerce div.product .agd-buy__gallery div.images, .woocommerce-page div.product .agd-buy__gallery div.images { float: none; width: 100%; margin: 0; }
.agd-buy__gallery .woocommerce-product-gallery__image img { border-radius: 16px; background: #F7F8F6; }
.agd-buy__gallery .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0 !important; }
.agd-buy__gallery .flex-control-thumbs li { width: auto !important; float: none !important; }
.agd-buy__gallery .flex-control-thumbs img { border-radius: 10px; border: 2px solid transparent; opacity: .7; }
.agd-buy__gallery .flex-control-thumbs img.flex-active { border-color: var(--g800); opacity: 1; }
.woocommerce div.product .agd-buy__summary.summary { float: none; width: auto; margin: 0; }
.agd-buy__summary { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.agd-buy__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.agd-buy__title { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.35; }
.agd-buy__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 13.5px; color: var(--muted); }
.agd-buy__meta .star-rating { margin: 0 !important; color: #F0A500; }
.agd-buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 !important; font-size: 28px !important; font-weight: 800; color: var(--orange) !important; }
.agd-buy__price del { font-size: 16px; font-weight: 500; color: var(--muted); opacity: 1 !important; }
.agd-buy__price ins { text-decoration: none; }
.agd-buy__save { font-size: 13.5px; font-weight: 700; color: var(--g600); background: var(--g100); border-radius: 99px; padding: 2px 10px; }
.agd-buy__excerpt { color: var(--muted); font-size: 14.5px; }
.agd-buy__excerpt p { margin: 0; }
.agd-specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.agd-specs th { text-align: left; font-weight: 500; color: var(--muted); padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line-2); width: 38%; vertical-align: top; }
.agd-specs td { padding: 9px 0; border-bottom: 1px solid var(--line-2); font-weight: 600; }
.agd-buy__cart form.cart { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.agd-buy__cart form.cart::before, .agd-buy__cart form.cart::after { display: none !important; }
.agd-buy__cart .quantity { display: flex; align-items: center; border: 1px solid #CBD3C4; border-radius: 99px; height: 52px; float: none !important; margin: 0 !important; }
.agd-buy__cart .quantity .qty { width: 48px; height: 48px; border: 0; text-align: center; font-weight: 700; font-size: 16px; background: transparent; -moz-appearance: textfield; }
.agd-buy__cart .quantity .qty::-webkit-outer-spin-button, .agd-buy__cart .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.agd-qty-btn { width: 44px; height: 48px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ink); }
.woocommerce .agd-buy__cart button.single_add_to_cart_button, .agd-buy__cart .single_add_to_cart_button { flex: 1 1 180px; height: 52px; border-radius: 99px !important; background: var(--orange) !important; color: var(--white) !important; font-size: 16px !important; font-weight: 700 !important; float: none !important; }
.woocommerce .agd-buy__cart button.single_add_to_cart_button:hover { background: var(--orange-d) !important; }
.agd-buy__cart .variations { width: 100%; margin: 0 0 6px !important; border: 0; }
.agd-buy__cart .variations th, .agd-buy__cart .variations td { display: block; padding: 0 0 6px !important; text-align: left; line-height: 1.4 !important; }
.agd-buy__cart .variations select { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--white); }
.agd-buy__cart .single_variation_wrap { width: 100%; }
.agd-buy__cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; }
.agd-buy__cart .woocommerce-variation-price .price { font-size: 22px; font-weight: 800; color: var(--orange); }
.agd-buy__cart .stock { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.agd-buy__cart .reset_variations { font-size: 13px; }
.agd-trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 12.5px; }
.agd-trust li { display: flex; align-items: center; gap: 8px; background: var(--g050); border-radius: 12px; padding: 9px 10px; line-height: 1.35; }
.agd-trust .agd-icon { flex: none; color: var(--g800); }

.agd-single .agd-layout { margin-top: 14px; }
.agd-pcontent { padding: 16px; display: flex; flex-direction: column; gap: 24px; }
.agd-pcontent__nav { position: sticky; top: 64px; z-index: 5; background: var(--white); margin: -4px -16px 0; padding: 8px 16px; }
.agd-pcontent__sec { scroll-margin-top: 4px; display: flex; flex-direction: column; gap: 10px; }
.agd-pcontent__sec .agd-h2 { margin-bottom: 2px; }
.agd-pcontent__sec p { margin: 0; }
.agd-tablewrap { overflow-x: auto; }
.agd-safety { background: #FFF8E6; border-radius: 16px; padding: 16px; }
.agd-safety ul { margin: 0; padding-left: 20px; }
.agd-faq__item { border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; margin-bottom: 8px; }
.agd-faq__item summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside; }
.agd-faq__item > div { padding: 0 0 14px; color: #3F4A43; }
.agd-reviews #reviews h2 { font-size: 18px; }
.agd-reviews .commentlist { padding: 0; }
.woocommerce #reviews #comment { border-radius: 12px; border: 1px solid var(--line); }

.related.products, .upsells.products { margin-top: 24px; }
.related.products > h2, .upsells.products > h2 { font-size: 19px; font-weight: 800; margin-bottom: 12px; }

/* WooCommerce buttons everywhere (cart, checkout, account). */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { border-radius: 99px; background: var(--g800); color: var(--white); font-weight: 700; padding: 13px 22px; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--g900); color: var(--white); }
.woocommerce #payment #place_order, .woocommerce-page #payment #place_order, .woocommerce .checkout-button { background: var(--orange) !important; font-size: 17px !important; }
.woocommerce span.onsale { display: none; }
.agd-wc-content input.input-text, .agd-wc-content select, .agd-wc-content textarea { min-height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--white); }
.agd-wc-content textarea { min-height: 90px; }

/* Sticky buy bar on product pages (phones). */
.agd-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -1px 0 var(--line), 0 -6px 20px rgba(0, 0, 0, .06); }
.agd-buybar__price { flex: 1; min-width: 0; font-weight: 800; font-size: 17px; color: var(--orange); line-height: 1.2; display: flex; flex-direction: column-reverse; }
.agd-buybar__price del { font-size: 12px; color: var(--muted); font-weight: 500; }
.agd-buybar__price ins { text-decoration: none; }
.agd-buybar__zalo { width: 48px; padding: 0; flex: none; }
.agd-buybar__buy { flex: 0 0 auto; padding: 0 22px; }

/* ---------- Dose calculator ---------- */
.agd-calc__grid { display: grid; gap: 12px; margin: 14px 0; }
.agd-calc label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.agd-calc input, .agd-calc select { height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font-size: 16px; background: var(--white); width: 100%; }
.agd-calc__row { display: flex; gap: 8px; }
.agd-calc__row select { width: 90px; flex: none; }
.agd-calc__out { display: block; padding: 16px; border-radius: 16px; background: var(--g100); color: var(--g900); font-size: 17px; line-height: 1.5; margin-bottom: 14px; }
.agd-calc__out b { font-size: 26px; }

/* ==========================================================================
   Tablet ≥ 600px
   ========================================================================== */
@media (min-width: 600px) {
	:root { --pad: 16px; }
	.agd-tools { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.agd-grid--products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
	.agd-grid--pests, .agd-grid--crops { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.agd-grid--why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.agd-grid--posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.agd-post { flex-direction: column; }
	.agd-post__img { flex: none; aspect-ratio: 16 / 9; }
	.agd-rail { grid-auto-columns: 31%; }
	.agd-weather__select { display: none; }
	.agd-weather__chips { display: flex; }
	.agd-ptable__areacol, .agd-prices thead th:nth-child(2) { display: table-cell; }
	.agd-ptable__area { display: none; }
	.agd-calc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.agd-hero__media { display: block; }
}

/* ==========================================================================
   Desktop ≥ 1024px
   ========================================================================== */
@media (min-width: 1024px) {
	:root { --pad: 24px; }
	body { font-size: 16px; }
	html { scroll-padding-top: 24px; }
	.agd-main { padding-bottom: 56px; }
	.agd-sec { margin-top: 28px; }
	.agd-h1 { font-size: 32px; }
	.agd-h2 { font-size: 24px; }
	.agd-h3 { font-size: 20px; }
	.agd-card { padding: 24px; }

	.agd-topbar { display: block; }
	.agd-header { position: relative; top: 0 !important; background: var(--g800); color: var(--white); box-shadow: none; }
	.agd-header__in { gap: 28px; padding-top: 18px; padding-bottom: 14px; }
	.agd-header__menu { display: none; }
	.agd-header__logo { display: block; }
	.agd-header .agd-logo { color: var(--white); }
	.agd-header .agd-logo__mark { color: var(--white); --agd-logo-ink: var(--g800); }
	.agd-search { height: 54px; background: var(--white); padding: 5px 5px 5px 20px; }
	.agd-search__input { font-size: 15px; }
	.agd-search__btn { display: inline-flex; align-items: center; height: 44px; padding: 0 24px; border: 0; border-radius: 99px; background: var(--g800); color: var(--white); font-weight: 700; margin-left: 4px; }
	.agd-header__hotline { display: inline-flex; min-height: 44px; }
	.agd-cartbtn { width: auto; height: 44px; gap: 8px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--white); color: var(--g800); font-weight: 700; font-size: 14px; }
	.agd-cartbtn__label { display: inline; }
	.agd-header .agd-cartbtn .agd-cart-count { position: static; }
	.agd-header__chips { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 14px; font-size: 13px; color: #CFE6D8; }
	.agd-header__chips a { color: var(--white); }
	.agd-header__chips a:hover { text-decoration: underline; }
	.agd-catbar { display: none; }

	.agd-nav { display: block; position: sticky; top: 0; z-index: 60; background: var(--white); box-shadow: 0 1px 0 var(--line); }
	.admin-bar .agd-nav { top: 32px; }
	.agd-nav__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 30px; font-weight: 600; font-size: 15px; }
	.agd-nav__menu > li { position: relative; }
	.agd-nav__menu a { display: block; padding: 15px 0; color: var(--ink); }
	.agd-nav__menu a:hover, .agd-nav__menu .current-menu-item > a { color: var(--g800); }
	.agd-nav__menu .sub-menu { position: absolute; left: -16px; top: 100%; z-index: 10; min-width: 240px; list-style: none; margin: 0; padding: 8px; background: var(--white); border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
	.agd-nav__menu li:hover > .sub-menu, .agd-nav__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.agd-nav__menu .sub-menu a { padding: 10px 12px; border-radius: 10px; font-weight: 500; }
	.agd-nav__menu .sub-menu a:hover { background: var(--g050); }

	.agd-tabbar, .agd-buybar { display: none !important; }
	.agd-footer { padding-bottom: 0; }
	.agd-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; padding-top: 44px; }
	.agd-toast { bottom: 28px; }

	.agd-hero { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
	.agd-hero__main { padding: 44px 48px; border-radius: 26px; min-height: 340px; }
	.agd-hero__leaf { width: 420px; height: 420px; right: -90px; top: -80px; }
	.agd-hero__title { font-size: 38px; }
	.agd-hero__lead { font-size: 16px; max-width: 560px; }
	.agd-hero__btns .agd-btn { min-height: 50px; font-size: 15px; padding: 0 24px; }
	.agd-hero__side { grid-template-columns: 1fr; gap: 16px; }
	.agd-promo { padding: 26px; border-radius: 26px; gap: 6px; }
	.agd-promo__label { font-size: 12.5px; }
	.agd-promo__title { font-size: 23px; }
	.agd-promo__sub { font-size: 14px; }

	.agd-tools { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 16px; gap: 10px; border-radius: 24px; }
	.agd-tool { flex-direction: row; text-align: left; gap: 12px; padding: 10px; }
	.agd-tool__text b { font-size: 14px; }
	.agd-tool__text span { display: block; }

	.agd-wxpr--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
	.agd-weather, .agd-prices { border-radius: 24px; }

	.agd-cats { display: block; }

	.agd-band { padding: 24px; border-radius: 28px; gap: 18px; }
	.agd-rail { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; gap: 12px; }

	.agd-grid--products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
	.agd-grid--pests, .agd-grid--crops { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 12px; }
	.agd-grid--why { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
	.agd-grid--posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.agd-pcard { border-radius: 20px; }
	.agd-pcard__body { padding: 14px; }
	.agd-pcard__name { font-size: 15px; }
	.agd-pcard__ai { display: block; }
	.agd-pcard__price { font-size: 17px; }
	.agd-catrow { scroll-margin-top: 70px; }
	.agd-catrow__box { padding: 22px; border-radius: 24px; }
	.agd-catrow__all { display: none; }
	.agd-pest { padding: 18px; }
	.agd-crop { min-height: 130px; padding: 22px 18px; }
	.agd-crop b { font-size: 19px; }

	.agd-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
	.agd-side { position: sticky; top: 72px; }
	.agd-article { padding: 32px; }
	.agd-article__cover { margin: 0 -32px 20px; }

	.agd-buy { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; padding: 28px; }
	.agd-buy__title { font-size: 28px; }
	.agd-buy__price { font-size: 34px !important; }
	.agd-pcontent { padding: 32px; }
	.agd-pcontent__nav { top: 52px; margin: -8px -32px 0; padding: 10px 32px; }
	.agd-pcontent__sec { scroll-margin-top: 120px; }
}

@media (min-width: 1024px) and (max-width: 1180px) {
	.agd-header__hotline span { display: none; }
}
@media (max-width: 782px) {
	.admin-bar .agd-header { top: 0; }
}

/* Grid children must be allowed to shrink (long words, wide forms). */
.agd-layout > *, .agd-wxpr > *, .agd-hero > * { min-width: 0; }
.agd-prose a.agd-btn { text-decoration: none; color: var(--white); }
.agd-comments { margin-top: 24px; }
.agd-comments__list { padding-left: 18px; }
.agd-comments input[type="text"], .agd-comments input[type="email"], .agd-comments input[type="url"], .agd-comments textarea { width: 100%; max-width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--white); }
.agd-comments .comment-form p { margin: 0 0 12px; }
.agd-comments .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.agd-comments .comment-form-cookies-consent input { margin-top: 4px; }
.agd-comments .submit { min-height: 48px; padding: 0 24px; border: 0; border-radius: 99px; background: var(--g800); color: var(--white); font-weight: 700; }

/* Staff-only notice in place of a hidden block */
.agd-adminnote { border: 2px dashed #E0B84A; background: #FFFBEA; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.agd-adminnote p { margin: 0; font-size: 14px; }
.agd-adminnote__tag { font-size: 11.5px; font-weight: 700; color: #8A6100; background: #FFF0C2; padding: 3px 10px; border-radius: 99px; }
.agd-weather__loading { margin: 8px 0; color: var(--blue-l); font-size: 14px; }


/* ---------- TikTok shorts row ---------- */
.agd-shorts { padding: 16px 0 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.agd-shorts__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-right: 12px; }
.agd-shorts__titles { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.agd-shorts__logo { width: 30px; height: 30px; border-radius: 9px; background: var(--dark); color: var(--white); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.agd-shorts__tag { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--g050); border-radius: 99px; padding: 3px 10px; }
.agd-shorts__nav { display: flex; align-items: center; gap: 8px; flex: none; }
.agd-shorts__arrow { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); align-items: center; justify-content: center; }
.agd-shorts__arrow:disabled { opacity: .35; cursor: default; }
.agd-shorts__arrow .is-flip { transform: scaleX(-1); }
.agd-shorts__meta { margin: -4px 0 2px; font-size: 13px; color: var(--muted); padding-right: 12px; }
.agd-shorts__meta a { color: var(--ink); font-weight: 700; }
.agd-shorts__rail { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-right: 12px; scroll-padding-left: 0; }
.agd-shorts__rail::-webkit-scrollbar { display: none; }
.agd-short { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; color: var(--ink); min-width: 0; }
.agd-short:hover { color: var(--ink); }
.agd-short__img { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--c, #333); }
.agd-short__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.agd-short:hover .agd-short__img img { transform: scale(1.03); }
.agd-short__img::after { content: ""; position: absolute; inset: 65% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.agd-short__play { position: absolute; top: 50%; left: 50%; z-index: 1; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--dark); display: flex; align-items: center; justify-content: center; }
.agd-short__tag { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 11px; font-weight: 700; color: var(--white); background: rgba(18, 20, 23, .8); padding: 3px 8px; border-radius: 99px; }
.agd-short__views { position: absolute; left: 10px; bottom: 9px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--white); text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.agd-short__title { font-size: 13.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 600px) {
	.agd-shorts__rail { grid-auto-columns: 27%; }
}
@media (min-width: 1024px) {
	.agd-shorts { padding: 24px; border-radius: 24px; }
	.agd-shorts__head, .agd-shorts__meta, .agd-shorts__rail { padding-right: 0; }
	.agd-shorts__arrow { display: inline-flex; }
	.agd-shorts__rail { grid-auto-columns: calc((100% - 4 * 14px) / 5); gap: 14px; }
	.agd-short__title { font-size: 14.5px; }
}

/* Hover preview: the TikTok player fades in over the cover; clicks still go to the card (opens the full player). */
.agd-short__preview { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: #000; }
.agd-short.is-playing .agd-short__preview { opacity: 1; }
.agd-short.is-playing .agd-short__views { z-index: 3; }

/* Cover sits above the play icon; if the cover fails to load, the play icon shows through. */
.agd-short__img img { z-index: 1; }
.agd-short__img::after { z-index: 1; }
.agd-short__play { z-index: 0; }
.agd-short__tag, .agd-short__views { z-index: 2; }
.agd-short.is-playing .agd-short__views { z-index: 3; }

/* Title + views inside the video frame, bottom-left. */
.agd-short__img::after { inset: 42% 0 0; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .78)); }
.agd-short__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 10px 11px; text-align: left; color: var(--white); }
.agd-short__info .agd-short__views { position: static; }
.agd-short__info .agd-short__title { color: var(--white); font-size: 13px; font-weight: 700; line-height: 1.35; -webkit-line-clamp: 3; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.agd-short.is-playing .agd-short__info { z-index: 3; }
@media (min-width: 1024px) {
	.agd-short__info { padding: 12px 14px 14px; }
	.agd-short__info .agd-short__title { font-size: 14.5px; }
}

/* Weather + prices: same height on computers; price card footer sits at the bottom. */
.agd-prices__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.agd-ptable__pending { color: var(--muted); font-size: 12.5px; font-style: italic; white-space: nowrap; }
.agd-prices__cta { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--g100); }
.agd-prices__cta-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--white); color: var(--g800); display: flex; align-items: center; justify-content: center; }
.agd-prices__cta-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; font-size: 13px; color: var(--muted); }
.agd-prices__cta-text b { color: var(--ink); font-size: 14px; }
.agd-prices__cta-btn { flex: none; min-height: 42px; padding: 0 16px; font-size: 14px; }
@media (min-width: 1024px) {
	.agd-wxpr--two { align-items: stretch; }
	.agd-wxpr--two > .agd-prices { height: 100%; }
}


/* ==========================================================================
   Giao diện 1.2 – tươi sáng, nhiều màu, kiểu sàn bán hàng lớn
   (lớp này nằm cuối file và ghi đè các kiểu cũ ở trên)
   ========================================================================== */
:root {
	--grad: linear-gradient(90deg, #07472D 0%, #0C6A42 55%, #169659 100%);
	--grad-btn: linear-gradient(180deg, #19A05F 0%, #0C6C43 100%);
	--g050: #EEF3EF;
	--shadow: 0 1px 2px rgba(16, 40, 28, .05), 0 6px 18px -8px rgba(16, 40, 28, .12);
	--shadow-lg: 0 18px 36px -18px rgba(11, 93, 59, .38);
}
body { background: var(--g050); }
.home .agd-main { background: linear-gradient(180deg, #D9F0E2 0, var(--g050) 380px) no-repeat; }
.agd-main { padding-bottom: 8px; }
.is-flip { transform: scaleX(-1); }

/* Buttons */
.agd-btn--primary { background: var(--grad-btn); box-shadow: 0 8px 18px -10px rgba(12, 108, 67, .9); }
.agd-btn--yellow { background: linear-gradient(180deg, #FFDA6B 0%, #FFBE2E 100%); color: #3A2A00; box-shadow: 0 10px 20px -10px rgba(245, 163, 11, .9); }
.agd-btn--yellow:hover { color: #3A2A00; }
.agd-btn--glass { background: rgba(255, 255, 255, .14); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.agd-btn--glass:hover, .agd-btn--ghost:hover { color: var(--white); background: rgba(255, 255, 255, .22); }
.agd-btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.agd-btn--white:hover { color: var(--g900); }

/* ---------- Top bar (computers) ---------- */
.agd-topbar { background: #05351F; color: #CFE6D8; font-size: 12.5px; }
.agd-topbar__in { align-items: center; padding-top: 6px; padding-bottom: 6px; }
.agd-topbar__usps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.agd-topbar__usps li { display: inline-flex; align-items: center; gap: 6px; }
.agd-topbar__usps .agd-icon, .agd-topbar__links .agd-icon { color: #FFD866; }
.agd-topbar__tiktok { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px; background: rgba(255, 216, 102, .14); }

/* ---------- Brand row (phones; scrolls away) ---------- */
.agd-mhead { background: var(--grad); color: var(--white); position: relative; overflow: hidden; }
.agd-mhead::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .07); pointer-events: none; }
.agd-mhead__in { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; padding-bottom: 4px; }
.agd-mhead .agd-logo, .agd-mhead .agd-logo:hover { color: var(--white); }
.agd-mhead .agd-logo__mark { color: var(--white); --agd-logo-ink: var(--g800); }
.agd-mhead .agd-logo__mark svg { width: 34px; height: 34px; }
.agd-mhead .agd-logo__name { font-size: 18px; }
.agd-mhead .agd-logo__tag { font-size: 11px; }
.agd-logo--img { background: var(--white); border-radius: 12px; padding: 4px 10px; }
.agd-mhead .agd-logo--img img { max-height: 36px; }
.agd-mhead__call { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .15); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); color: var(--white); font-weight: 700; font-size: 13px; white-space: nowrap; }
.agd-mhead__call:hover { color: var(--white); }
.agd-mhead__call .agd-icon { color: #FFD866; }

/* ---------- Sticky header ---------- */
.agd-header { background: var(--white); box-shadow: none; transition: box-shadow .2s; }
.agd-header.is-scrolled { box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .35); }
.agd-header__bg { background: var(--grad); position: relative; }
.agd-header__in { padding-top: 6px; padding-bottom: 10px; }
.agd-header__menu, .agd-header .agd-cartbtn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); color: var(--white); border-radius: 50%; }
.agd-header .agd-cartbtn:hover { color: var(--white); }
.agd-header .agd-search { background: var(--white); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .3); }
.agd-header .agd-search__ico { color: var(--g600); }
.agd-hact { display: none; }
.agd-header .agd-cart-count { background: #FFC83D; color: #3A2A00; box-shadow: 0 0 0 2px #0C6A42; }
.agd-header .agd-cart-count[data-count="0"] { background: #D9E3DC; color: #3F4A43; }

.agd-catbar { background: var(--white); padding: 10px var(--pad); box-shadow: 0 1px 0 var(--line); }
.agd-catbar__chip { background: var(--g050); border-color: transparent; }
.agd-catbar__chip .agd-icon { color: var(--g600); }
.agd-catbar__chip.is-active { background: var(--grad-btn); border-color: transparent; box-shadow: 0 6px 14px -8px rgba(12, 108, 67, .9); }
.agd-catbar__chip.is-active .agd-icon { color: #FFD866; }

/* ---------- Hero slider ---------- */
.agd-hero { gap: 10px; }
.agd-slider { position: relative; min-width: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); background: #0B5D3B; }
.agd-slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; height: 100%; }
.agd-slider__track::-webkit-scrollbar { display: none; }
.agd-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.agd-slide--img { position: relative; display: block; min-height: 220px; background: #D9F0E2; }
.agd-slide--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.agd-hero__main { border-radius: 0; isolation: isolate; background: linear-gradient(125deg, #06432A 0%, #0B6B43 50%, #1B9C5F 100%); padding: 22px 20px 34px; }
.agd-hero__orb { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.agd-hero__orb--1 { right: -70px; top: -90px; width: 260px; height: 260px; background: rgba(255, 255, 255, .07); }
.agd-hero__orb--2 { left: -80px; bottom: -120px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(255, 216, 102, .30), transparent 65%); }
.agd-hero__leaf { z-index: -1; }
.agd-hero__badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 5px 12px; border-radius: 99px; background: rgba(255, 216, 102, .16); box-shadow: inset 0 0 0 1px rgba(255, 216, 102, .4); color: #FFE08A; font-size: 12px; font-weight: 700; }
.agd-hero__title { font-size: 23px; line-height: 1.25; }
.agd-hero__lead { color: #D7EFE0; }
.agd-hero__media { position: relative; }
.agd-hero__art { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .18)); }
.agd-hero__float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 14px; background: var(--white); color: var(--ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .45); animation: agdFloat 5s ease-in-out infinite; }
.agd-hero__float i { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--g100); color: var(--g800); }
.agd-hero__float--1 { top: 6%; left: -4%; }
.agd-hero__float--2 { top: 44%; right: -2%; animation-delay: -1.6s; }
.agd-hero__float--2 i { background: #FFF4D6; color: #8A6100; }
.agd-hero__float--3 { bottom: 6%; left: 8%; animation-delay: -3.2s; }
.agd-hero__float--3 i { background: #E8F0FC; color: var(--blue); }
@keyframes agdFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.agd-slider__dots { position: absolute; left: 0; right: 0; bottom: 6px; z-index: 3; display: flex; justify-content: center; gap: 2px; }
.agd-slider__dot { width: 22px; height: 22px; padding: 0; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; }
.agd-slider__dot::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); transition: width .25s, background .25s; }
.agd-slider__dot[aria-selected="true"]::before { width: 20px; background: var(--white); }
.agd-slider__arrow { display: none; position: absolute; top: 50%; z-index: 3; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--g800); align-items: center; justify-content: center; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .4); opacity: 0; transition: opacity .2s; }
.agd-slider__arrow--prev { left: 12px; }
.agd-slider__arrow--next { right: 12px; }
.agd-slider:hover .agd-slider__arrow, .agd-slider__arrow:focus-visible { opacity: 1; }

.agd-promo { position: relative; isolation: isolate; transition: transform .2s, box-shadow .2s; }
.agd-promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.agd-promo--orange { background: linear-gradient(135deg, #FF8A3D 0%, #E8521C 55%, #C2410C 100%); }
.agd-promo--yellow { background: linear-gradient(135deg, #FFE48A 0%, #FFC83D 55%, #F5A30B 100%); }
.agd-promo__deco { position: absolute; right: -26px; bottom: -34px; z-index: -1; opacity: .16; transform: rotate(-12deg); display: flex; }
.agd-promo__ico { display: none; width: 36px; height: 36px; border-radius: 12px; background: rgba(255, 255, 255, .22); align-items: center; justify-content: center; margin-bottom: 4px; }
.agd-promo--yellow .agd-promo__ico { background: rgba(255, 255, 255, .55); }

/* ---------- Quick tools ---------- */
.agd-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; background: none; box-shadow: none; }
.agd-tool { background: var(--white); border-radius: 16px; padding: 12px 6px 10px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.agd-tool:hover { background: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.agd-tool__ico { width: 46px; height: 46px; border-radius: 15px; color: var(--white); background: var(--v); background: linear-gradient(135deg, color-mix(in srgb, var(--v) 55%, #fff) 0%, var(--v) 100%); box-shadow: 0 8px 16px -8px var(--v), inset 0 1px 0 rgba(255, 255, 255, .35); }

/* ---------- Section heading ---------- */
.agd-shead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.agd-shead--in { margin-bottom: 0; }
.agd-shead__titles { display: flex; align-items: center; gap: 10px; min-width: 0; }
.agd-shead__ico { flex: none; width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--white); background: var(--v); background: linear-gradient(135deg, color-mix(in srgb, var(--v) 55%, #fff) 0%, var(--v) 100%); box-shadow: 0 6px 14px -6px var(--v); }
.agd-shead__eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--orange); line-height: 1.3; }
.agd-shead__t { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.agd-shead__more { flex: none; display: inline-flex; align-items: center; gap: 2px; min-height: 34px; padding: 0 6px 0 12px; border-radius: 99px; background: var(--g100); color: var(--g800); font-size: 13px; font-weight: 700; white-space: nowrap; }
.agd-shead__more:hover { background: var(--g800); color: var(--white); }

/* ---------- Categories ---------- */
.agd-cats { display: block; }
.agd-cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 0; }
.agd-cat { background: var(--white); box-shadow: var(--shadow); padding: 14px 6px 12px; gap: 6px; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, border-color .15s; }
.agd-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--bg); }
.agd-cat__ico { width: 54px; height: 54px; border-radius: 50%; background: var(--bg); color: var(--fg); box-shadow: 0 0 0 5px color-mix(in srgb, var(--bg) 45%, #fff); transition: transform .2s; }
.agd-cat:hover .agd-cat__ico { transform: scale(1.06) rotate(-4deg); }
.agd-cat b { font-size: 12.5px; }
.agd-cat small { font-size: 11.5px; color: var(--muted); margin-top: -4px; }

/* ---------- Product card ---------- */
.agd-pcard { border: 1px solid #E3EAE5; border-radius: 16px; box-shadow: 0 1px 2px rgba(16, 40, 28, .04); transition: transform .2s, box-shadow .2s, border-color .2s; }
.agd-pcard:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -16px rgba(11, 93, 59, .4); border-color: #BFE3CD; }
.agd-pcard__img { background: #F6F9F7; }
.agd-pcard__img img { transition: transform .3s; }
.agd-pcard:hover .agd-pcard__img img { transform: scale(1.04); }
.agd-pcard__off { top: 0; left: 0; display: inline-flex; align-items: center; gap: 2px; padding: 4px 10px 4px 8px; border-radius: 15px 0 12px 0; background: linear-gradient(135deg, #FF6A3D, #E11D48); color: var(--white); font-size: 12px; }
.agd-pcard__body { gap: 5px; padding: 10px 10px 12px; }
.agd-pcard__price { color: #0A7A46; font-size: 16px; margin-top: auto; }
.agd-pcard__price del { margin-top: 1px; }
.agd-pcard__pack { align-self: flex-start; font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 9px; }
.agd-pcard__foot { display: block; margin-top: 6px; }
.agd-pcard__add { width: 100%; height: 40px; gap: 6px; border-radius: 99px; background: var(--grad-btn); font-size: 14px; font-weight: 700; box-shadow: 0 6px 14px -8px rgba(12, 108, 67, .9); }
.agd-pcard__add:hover { background: var(--g900); }
.agd-pcard__add--line { background: var(--g100); color: var(--g800); box-shadow: none; }
.agd-pcard__add--line:hover { background: var(--g800); color: var(--white); }
.agd-pcard__add.loading > * { opacity: 0; }
.agd-pcard__add.loading::after { inset: auto; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; }
.agd-pcard__add.added { background: var(--g900); }
.agd-pcard.is-out .agd-pcard__add--line { background: var(--g050); }

/* ---------- Sale band ---------- */
.agd-band--sale { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, #FF7A2F 0%, #EF4B23 45%, #D6204E 100%); }
.agd-band--sale::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.4px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); mask-image: linear-gradient(180deg, #000, transparent 60%); }
.agd-band__glow { position: absolute; z-index: -1; right: -90px; top: -130px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 216, 102, .55), transparent 65%); pointer-events: none; }
.agd-sale__title { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--white); font-size: 20px; font-weight: 900; letter-spacing: -.01em; text-transform: uppercase; text-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.agd-sale__bolt { flex: none; width: 36px; height: 36px; border-radius: 12px; background: #FFD866; color: #D6204E; display: flex; align-items: center; justify-content: center; animation: agdPulse 2s ease-in-out infinite; }
@keyframes agdPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 216, 102, .6); } 60% { box-shadow: 0 0 0 10px rgba(255, 216, 102, 0); } }
.agd-sale__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.agd-sale__dates { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .18); color: var(--white); font-size: 12.5px; font-weight: 700; }
.agd-countdown { display: inline-flex; align-items: center; gap: 4px; color: var(--white); font-weight: 700; font-size: 13px; }
.agd-countdown__label { margin-right: 4px; }
.agd-countdown i { font-style: normal; font-weight: 800; }
.agd-countdown__box { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px; background: var(--white); color: #D6204E; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.agd-countdown__unit { margin-right: 4px; }
.agd-band--sale .agd-pcard { border-color: transparent; }

/* ---------- Category rows ---------- */
.agd-more { background: var(--white); border-color: #BFE3CD; color: var(--g800); font-weight: 700; }
.agd-more:hover { background: var(--g100); }
.agd-catrow__all { background: var(--g100); color: var(--g800); }

/* ---------- Weather & TikTok ---------- */
.agd-weather { background: linear-gradient(155deg, #3B86F8 0%, #1E5FBF 55%, #174C99 100%); position: relative; overflow: hidden; }
.agd-shorts__logo { background: linear-gradient(135deg, #25F4EE -20%, #121417 45%, #FE2C55 130%); width: 34px; height: 34px; border-radius: 11px; }

/* ---------- Pests & crops ---------- */
.agd-pest { border: 1px solid transparent; transition: transform .15s, box-shadow .15s, border-color .15s; }
.agd-pest:hover { box-shadow: var(--shadow-lg); border-color: var(--bg); }
.agd-pest__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.agd-pest__ico { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--bg); color: var(--fg); display: flex; align-items: center; justify-content: center; }
.agd-pest .agd-tag { background: var(--bg); color: var(--fg); }
.agd-pest__go { color: var(--fg); }
.agd-crop { position: relative; overflow: hidden; isolation: isolate; background: var(--bg); background: linear-gradient(140deg, color-mix(in srgb, var(--bg) 75%, #fff) 0%, var(--bg) 55%, color-mix(in srgb, var(--bg) 82%, #000) 100%); box-shadow: 0 12px 24px -16px var(--bg); }
.agd-crop b { padding-right: 34px; }
.agd-crop .agd-crop__deco { position: absolute; right: -18px; bottom: -26px; z-index: -1; opacity: .2; transform: rotate(-15deg); display: flex; }
.agd-crop .agd-crop__go { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; opacity: 1; transition: background .2s, transform .2s; }
.agd-crop:hover .agd-crop__go { background: rgba(255, 255, 255, .35); transform: translateX(2px); }

/* ---------- Commitments ---------- */
.agd-whyband { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.agd-why { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 16px 10px; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); }
.agd-why__ico { width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 0 0 6px color-mix(in srgb, var(--bg) 45%, #fff); }
.agd-why b { font-size: 13.5px; line-height: 1.35; }
.agd-why .agd-why__text > span { font-size: 12px; margin-top: 2px; }

/* ---------- Posts ---------- */
.agd-post { transition: transform .15s, box-shadow .15s; }
.agd-post:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.agd-post__img { overflow: hidden; }
.agd-post__img img { transition: transform .35s; }
.agd-post:hover .agd-post__img img { transform: scale(1.05); }
.agd-post__date { align-self: flex-start; color: var(--g800); background: var(--g100); border-radius: 99px; padding: 1px 9px; font-weight: 600; font-size: 11.5px; }

/* ---------- Drawer ---------- */
.agd-drawer__head { background: var(--grad); border-bottom: 0; color: var(--white); }
.agd-drawer__head .agd-logo { color: var(--white); }
.agd-drawer__head .agd-logo__mark { color: var(--white); --agd-logo-ink: var(--g800); }
.agd-drawer__head .agd-iconbtn { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .25); color: var(--white); border-radius: 50%; }

/* ---------- Tab bar ---------- */
.agd-tabbar { border-radius: 20px 20px 0 0; }
.agd-tabbar__item svg { width: 46px; height: 28px; padding: 2px 11px; border-radius: 99px; transition: background .2s; }
.agd-tabbar__item.is-active svg { background: var(--g100); }
.agd-tabbar__fab { background: var(--grad-btn); box-shadow: 0 8px 18px -6px rgba(12, 108, 67, .7); }
.agd-tabbar__fab svg, .agd-tabbar__cart svg { width: 24px; height: 24px; padding: 0; background: none !important; }
.agd-tabbar__item.is-active .agd-tabbar__cart svg { background: none; }

/* ---------- Footer call-to-action ---------- */
.agd-fcta { margin-top: 24px; }
.agd-fcta__box { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; border-radius: 22px; background: linear-gradient(120deg, #0B5D3B 0%, #12804F 55%, #1FA463 100%); color: var(--white); box-shadow: var(--shadow-lg); }
.agd-fcta__leaf { position: absolute; right: -40px; bottom: -80px; z-index: -1; width: 230px; height: 230px; fill: var(--white); opacity: .08; }
.agd-fcta__ico { flex: none; width: 50px; height: 50px; border-radius: 16px; background: rgba(255, 255, 255, .15); color: #FFD866; display: flex; align-items: center; justify-content: center; }
.agd-fcta__text { display: flex; flex-direction: column; gap: 4px; }
.agd-fcta__text b { font-size: 17px; line-height: 1.35; }
.agd-fcta__text span { color: #D7EFE0; font-size: 13.5px; }
.agd-fcta__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.agd-fcta__btns .agd-btn { min-height: 46px; font-size: 14px; }

/* ---------- Footer ---------- */
.agd-footer { margin-top: 24px; background: var(--white); color: var(--muted); padding-bottom: 0; border-top: 1px solid var(--line); }
.agd-footer a { color: var(--ink); }
.agd-footer a:hover { color: var(--g800); }
.agd-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding-top: 28px; padding-bottom: 24px; }
.agd-footer__brand, .agd-footer__contact { grid-column: 1 / -1; }
.agd-footer .agd-logo { color: var(--g800); }
.agd-footer .agd-logo--img { padding: 0; }
.agd-footer__company { color: var(--ink); font-size: 15px; margin-top: 8px; }
.agd-footer__info { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.agd-footer__info li { display: flex; gap: 8px; align-items: flex-start; }
.agd-footer__info .agd-icon { flex: none; margin-top: 3px; color: var(--g600); }
.agd-footer__title { color: var(--ink); font-size: 15px; font-weight: 800; margin: 0 0 12px; }
.agd-footer__title--sm { margin-top: 18px; font-size: 14px; }
.agd-footer__menu { gap: 10px; }
.agd-footer__menu a { color: var(--muted); font-size: 14px; }
.agd-footer__menu a:hover { color: var(--g800); }
.agd-fline { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; margin-bottom: 8px; border-radius: 16px; background: var(--g100); color: var(--ink); transition: transform .15s; }
.agd-fline:hover { transform: translateY(-1px); }
.agd-fline__ico { flex: none; width: 42px; height: 42px; border-radius: 13px; background: var(--grad-btn); color: var(--white); display: flex; align-items: center; justify-content: center; }
.agd-fline small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.agd-fline b { display: block; font-size: 18px; line-height: 1.3; color: var(--g800); }
.agd-fline--zalo { background: #E6F0FF; }
.agd-fline--zalo .agd-fline__ico { background: var(--zalo); }
.agd-fline--zalo b { color: var(--zalo); font-size: 16px; }
.agd-footer__social { gap: 10px; margin-top: 0; }
.agd-footer__social a { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--c); color: var(--white); display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.agd-footer__social a:hover { color: var(--white); transform: translateY(-2px) scale(1.05); }
.agd-footer__bottom { background: var(--grad); color: #D7EFE0; border-top: 0; padding: 12px 0 calc(12px + var(--tabbar-h) + env(safe-area-inset-bottom)); font-size: 12.5px; }
.agd-footer__bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; }
.agd-footer__bottom .agd-icon { vertical-align: -3px; color: #FFD866; }

/* ---------- Floating contact (computers) ---------- */
.agd-float { display: none; }

/* ---------- Tablet ≥ 600px ---------- */
@media (min-width: 600px) {
	.agd-tools { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.agd-cats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
	.agd-whyband { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.agd-promo__ico { display: flex; }
	.agd-hero__main { padding: 28px 28px 38px; }
	.agd-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.agd-footer__brand, .agd-footer__contact { grid-column: span 2; }
	.agd-fcta__box { flex-direction: row; flex-wrap: wrap; align-items: center; }
	.agd-fcta__text { flex: 1 1 280px; }
}

/* ---------- Computers ≥ 1024px ---------- */
@media (min-width: 1024px) {
	.home .agd-main { background: linear-gradient(180deg, #D9F0E2 0, var(--g050) 520px) no-repeat; }
	.agd-main { padding-bottom: 0; }
	.agd-mhead { display: none; }

	.agd-header { background: transparent; }
	.agd-header__bg { overflow: hidden; }
	.agd-header__bg::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 88% -40%, rgba(255, 255, 255, .12) 0 200px, transparent 201px), radial-gradient(circle at 62% 160%, rgba(255, 216, 102, .16) 0 160px, transparent 161px); }
	.agd-header__in { position: relative; gap: 18px; padding-top: 16px; padding-bottom: 12px; }
	.agd-header .agd-search { height: 52px; padding: 5px 5px 5px 18px; }
	.agd-search__btn { background: var(--grad-btn); box-shadow: 0 6px 14px -8px rgba(12, 108, 67, .9); }
	.agd-hact { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--white); }
	.agd-hact:hover { color: var(--white); }
	.agd-hact__ico { flex: none; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); transition: background .2s; }
	.agd-hact:hover .agd-hact__ico { background: rgba(255, 255, 255, .26); }
	.agd-hact--zalo .agd-hact__ico { background: var(--white); color: var(--zalo); }
	.agd-hact__txt { display: flex; flex-direction: column; line-height: 1.25; }
	.agd-hact__txt small { font-size: 12px; color: #CFE6D8; }
	.agd-hact__txt b { font-size: 14.5px; white-space: nowrap; }
	.agd-header .agd-cartbtn { height: 46px; border-radius: 99px; background: var(--white); color: var(--g800); border: 0; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .4); }
	.agd-header .agd-cartbtn:hover { color: var(--g900); }
	.agd-header .agd-cart-count { box-shadow: none; }
	.agd-header__chips { position: relative; gap: 6px; padding-bottom: 14px; }
	.agd-header__chips a { padding: 3px 11px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-size: 12.5px; }
	.agd-header__chips a:hover { background: rgba(255, 255, 255, .24); text-decoration: none; }

	.agd-nav { background: var(--white); box-shadow: 0 1px 0 var(--line), 0 10px 22px -18px rgba(0, 0, 0, .35); }
	.agd-nav__in { display: flex; align-items: center; gap: 26px; }
	.agd-nav__menu { flex: 1; gap: 0 26px; flex-wrap: nowrap; white-space: nowrap; }
	.agd-nav__menu > li > a { position: relative; padding: 17px 0; }
	.agd-nav__menu > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 3px; border-radius: 3px; background: var(--g600); transform: scaleX(0); transition: transform .2s; }
	.agd-nav__menu > li > a:hover::after, .agd-nav__menu > .current-menu-item > a::after { transform: scaleX(1); }
	.agd-nav__note { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: #FFF4D6; color: #8A6100; font-size: 13px; font-weight: 700; }
	.agd-mega { position: relative; flex: none; }
	.agd-mega__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; margin: 7px 0; padding: 0 16px; border: 0; border-radius: 99px; background: var(--g100); color: var(--g800); font-weight: 700; font-size: 14.5px; transition: background .2s, color .2s; }
	.agd-mega.is-open .agd-mega__btn, .agd-mega__btn:hover { background: var(--grad-btn); color: var(--white); }
	.agd-mega__panel { position: absolute; left: 0; top: 100%; z-index: 30; width: min(760px, 80vw); padding: 16px; border-radius: 20px; background: var(--white); box-shadow: 0 24px 50px -14px rgba(0, 0, 0, .3); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; }
	.agd-mega.is-open .agd-mega__panel { opacity: 1; visibility: visible; transform: none; }
	.agd-mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
	.agd-mega__item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; color: var(--ink); }
	.agd-mega__item:hover { background: var(--g050); color: var(--g800); }
	.agd-mega__item b { display: block; font-size: 14.5px; line-height: 1.3; }
	.agd-mega__item small { display: block; font-size: 12.5px; color: var(--muted); }
	.agd-mega__ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); color: var(--fg); display: flex; align-items: center; justify-content: center; }
	.agd-mega__all { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; min-height: 44px; border-radius: 12px; background: var(--g100); font-weight: 700; font-size: 14px; }

	.agd-hero { gap: 16px; }
	.agd-slider { border-radius: 26px; }
	.agd-slider__arrow { display: inline-flex; }
	.agd-hero__main { padding: 44px 48px 48px; min-height: 360px; border-radius: 0; }
	.agd-hero__title { font-size: 38px; }
	.agd-hero__media--art { flex: 0 0 38%; }
	.agd-hero__float { font-size: 13px; }
	.agd-slide--img { min-height: 360px; }
	.agd-promo__title { font-size: 22px; }

	.agd-tools { gap: 12px; padding: 0; border-radius: 0; }
	.agd-tool { padding: 14px; gap: 12px; border-radius: 18px; }
	.agd-tool__ico { width: 48px; height: 48px; }

	.agd-shead { margin-bottom: 16px; }
	.agd-shead--in { margin-bottom: 0; }
	.agd-shead__ico { width: 40px; height: 40px; border-radius: 13px; }
	.agd-shead__t { font-size: 22px; }
	.agd-shead__eyebrow { font-size: 12px; }
	.agd-shead__more { font-size: 14px; min-height: 38px; padding: 0 10px 0 16px; }

	.agd-cats__grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
	.agd-cat { padding: 22px 10px 18px; border-radius: 20px; }
	.agd-cat__ico { width: 68px; height: 68px; }
	.agd-cat b { font-size: 14.5px; }
	.agd-cat small { font-size: 12.5px; }

	.agd-pcard__body { padding: 14px; gap: 6px; }
	.agd-pcard__price { font-size: 18px; }
	.agd-pcard__add { height: 42px; }

	.agd-sale__title { font-size: 28px; }
	.agd-sale__bolt { width: 44px; height: 44px; border-radius: 14px; }
	.agd-countdown__box { min-width: 36px; height: 36px; font-size: 16px; }

	.agd-whyband { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 10px; background: var(--white); border-radius: 24px; box-shadow: var(--shadow); }
	.agd-why { flex-direction: row; align-items: center; text-align: left; gap: 14px; padding: 16px 18px; background: none; border-radius: 0; box-shadow: none; }
	.agd-why + .agd-why { border-left: 1px solid var(--line-2); }
	.agd-why b { font-size: 15px; }
	.agd-why .agd-why__text > span { font-size: 13px; }

	.agd-fcta { margin-top: 36px; }
	.agd-fcta__box { padding: 26px 32px; gap: 20px; border-radius: 26px; flex-wrap: nowrap; }
	.agd-fcta__text b { font-size: 20px; }
	.agd-fcta__text span { font-size: 14.5px; }

	.agd-footer { margin-top: 36px; }
	.agd-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 32px; padding-top: 44px; padding-bottom: 32px; }
	.agd-footer__brand, .agd-footer__contact { grid-column: auto; }
	.agd-footer__bottom { padding-bottom: 12px; }

	.agd-float { position: fixed; right: 20px; bottom: 24px; z-index: 65; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
	.agd-float__btn { position: relative; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--white); box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .45); transition: transform .15s; }
	.agd-float__btn:hover { color: var(--white); transform: translateY(-2px); }
	.agd-float__btn--zalo { width: auto; min-width: 52px; padding: 0 14px; border-radius: 99px; background: var(--zalo); font-weight: 700; font-size: 14px; }
	.agd-float__btn--zalo span { display: none; }
	.agd-float__btn--zalo:hover span, .agd-float__btn--zalo:focus-visible span { display: inline; }
	.agd-float__btn--zalo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: agdRing 2.4s ease-out infinite; pointer-events: none; }
	.agd-float__btn--call { background: var(--grad-btn); }
	.agd-float__btn--top { width: 44px; height: 44px; background: var(--white); color: var(--g800); }
	.agd-float__btn--top:hover { color: var(--g900); }
	@keyframes agdRing { 0% { box-shadow: 0 0 0 0 rgba(0, 104, 255, .5); } 70%, 100% { box-shadow: 0 0 0 14px rgba(0, 104, 255, 0); } }
	.agd-toast { bottom: 28px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
	.agd-hact__txt { display: none; }
	.agd-header__in { gap: 14px; }
	.agd-nav__note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.agd-hero__float, .agd-sale__bolt, .agd-float__btn--zalo::after { animation: none; }
}

/* ---------- Logo Agridala (vẽ từ file logo gốc) ---------- */
:root { --g600: #0F8C45; --brand: #0F8C45; }
.agd-logo--brand { --tile: var(--brand); --ico: #fff; --word: var(--brand); --slogan: #0B5D3B; gap: 10px; line-height: 0; }
.agd-logo--brand .agd-logo__mark { flex: none; display: block; width: 44px; height: 44px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .12)); }
.agd-logo__tile { fill: var(--tile); }
.agd-logo__icon { fill: var(--ico); }
.agd-logo__name { fill: var(--word); }
.agd-logo__slogan { fill: var(--slogan); }
.agd-logo--brand .agd-logo__word { display: block; width: 128px; height: auto; }
.agd-logo--brand .agd-logo__word--lockup { width: 150px; }
.agd-mhead .agd-logo--brand, .agd-header .agd-logo--brand, .agd-drawer__head .agd-logo--brand { --tile: #fff; --ico: var(--brand); --word: #fff; --slogan: rgba(255, 255, 255, .85); }
.agd-mhead .agd-logo--brand .agd-logo__mark, .agd-drawer__head .agd-logo--brand .agd-logo__mark { width: 38px; height: 38px; }
.agd-mhead .agd-logo--brand .agd-logo__word, .agd-drawer__head .agd-logo--brand .agd-logo__word { width: 118px; }
.agd-footer .agd-logo--brand .agd-logo__mark { width: 52px; height: 52px; }
.agd-footer .agd-logo--brand .agd-logo__word--lockup { width: 172px; }
@media (min-width: 1024px) {
	.agd-header .agd-logo--brand .agd-logo__mark { width: 50px; height: 50px; }
	.agd-header .agd-logo--brand .agd-logo__word--lockup { width: 168px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
	.agd-header .agd-logo--brand .agd-logo__word--lockup { width: 140px; }
}

/* ---------- Trang /khuyen-mai/ + nút Khuyến mãi ---------- */
.agd-salepage { padding-top: 12px; }
.agd-salepage__lead { margin: 6px 0 0; color: #FFE7DC; font-size: 14px; }
.agd-salepage .agd-band__head { align-items: flex-end; }
.agd-nav__sale { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: linear-gradient(135deg, #FF7A2F, #E11D48); color: var(--white) !important; font-size: 13.5px; font-weight: 700; box-shadow: 0 6px 14px -8px rgba(225, 29, 72, .8); }
.agd-nav__sale:hover { filter: brightness(1.05); }
.agd-drawer__sale { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #FF7A2F, #E11D48); color: var(--white) !important; font-weight: 700; }
.agd-ptable__unit { display: inline; margin-left: 4px; font-size: 11.5px; font-weight: 500; color: var(--muted); }

/* ---------- Thanh menu gọn (1.4) ---------- */
.agd-header__sub { display: none; }
.agd-nav__more > button { display: inline-flex; align-items: center; gap: 4px; padding: 17px 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.agd-nav__more > button:hover { color: var(--g800); }
@media (min-width: 1024px) {
	.agd-header__sub { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; }
	.agd-header__sub .agd-header__chips { padding-bottom: 0; min-width: 0; }
	.agd-header__store { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .14); color: var(--white); font-size: 13px; font-weight: 600; white-space: nowrap; }
	.agd-header__store:hover { color: var(--white); background: rgba(255, 255, 255, .26); }
	.agd-header__store .agd-icon { color: #FFD866; }
	.agd-nav__menu { min-width: 0; }
	.agd-nav__more .sub-menu { left: auto; right: -16px; }
}

/* ---------- Trang chính sách (1.5) ---------- */
.agd-policy-box { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--g100); border: 1px solid #CDE8D8; font-size: 14px; }
.agd-policy-box p { margin: 0 0 6px; }
.agd-policy-box p:last-child { margin: 0; }
.agd-prose table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 14px; }
.agd-prose th, .agd-prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.agd-prose thead th { background: var(--g050); font-weight: 700; }
.agd-prose mark.agd-missing { background: #FFE3E3; color: #B42318; padding: 0 4px; border-radius: 4px; }
.agd-policy-meta { margin-top: 24px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 13px; }
.agd-footer__bct { display: inline-block; margin: 4px 0 6px; }
.agd-footer__bct img { width: auto; max-height: 56px; }
.agd-policy-page .agd-prose h2 { font-size: 18px; margin-top: 22px; }
.agd-policy-page .agd-prose h3 { font-size: 16px; margin-top: 16px; }

@media print {
	@page { size: A4; margin: 14mm 12mm; }
	html, body, .agd-main, .home .agd-main { background: #fff !important; }
	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.agd-topbar, .agd-header, .agd-nav, .agd-catbar, .agd-tabbar, .agd-float, .agd-fcta, .agd-drawer, .agd-crumbs, .agd-buybar, .agd-toast, .agd-skip,
	.agd-footer__col, .agd-footer__social, .agd-footer__title--sm, .agd-footer__contact .agd-fline--zalo, #agd-video { display: none !important; }
	.agd-mhead { display: block !important; border-radius: 0; }
	.agd-mhead__in { padding: 10px 14px; }
	.agd-wrap { max-width: none; padding: 0; }
	.agd-card, .agd-article { box-shadow: none !important; border: 0; padding: 12px 0 0; }
	.agd-h1 { font-size: 22px; }
	.agd-prose { font-size: 12.5px; line-height: 1.55; }
	.agd-prose h2, .agd-prose h3 { break-after: avoid; }
	.agd-prose tr, .agd-policy-box, .agd-prose li { break-inside: avoid; }
	.agd-prose a { color: inherit; text-decoration: none; }
	.agd-footer { margin-top: 12px; border-top: 1px solid #ccc; }
	.agd-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 0; }
	.agd-footer__brand, .agd-footer__contact { grid-column: auto; }
	.agd-footer__bottom { padding: 8px 14px !important; }
}

/* ---------- Chân trang gọn (1.6) ---------- */
.agd-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-top: 32px; padding-bottom: 28px; }
.agd-footer__brand, .agd-footer__contact { grid-column: 1 / -1; }
.agd-footer__about { margin: 12px 0 14px; max-width: 36ch; color: var(--muted); font-size: 14px; line-height: 1.55; }
.agd-footer__social { display: flex; flex-wrap: wrap; gap: 8px; }
.agd-footer__social a { width: 38px; height: 38px; }
.agd-footer__bct { display: block; margin-top: 14px; }
.agd-footer__title { margin: 0 0 14px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.agd-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.agd-footer__menu a { display: inline-block; color: var(--muted); font-size: 14px; line-height: 1.4; transition: color .15s, transform .15s; }
.agd-footer__menu a:hover { color: var(--g800); transform: translateX(2px); }
.agd-footer__contact .agd-fline { margin-bottom: 8px; }
.agd-footer__mini { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--muted); }
.agd-footer__mini li { display: flex; align-items: flex-start; gap: 8px; }
.agd-footer__mini .agd-icon { flex: none; margin-top: 2px; color: var(--g600); }
.agd-footer__mini a { color: var(--ink); word-break: break-all; }
.agd-footer__legal { padding: 18px 0 20px; background: #F5F8F6; border-top: 1px solid var(--line); }
.agd-footer__legal .agd-footer__company { display: block; margin: 0 0 12px; font-size: 14px; color: var(--ink); }
.agd-footer__facts { margin: 0; display: grid; grid-template-columns: 1fr; gap: 10px 32px; }
.agd-footer__facts > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.agd-footer__facts dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #7A867F; }
.agd-footer__facts dd { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
@media (min-width: 600px) {
	.agd-footer__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.agd-footer__grid { grid-template-columns: 1.25fr 1fr .9fr 1.15fr; gap: 40px; padding-top: 48px; padding-bottom: 40px; }
	.agd-footer__brand, .agd-footer__contact { grid-column: auto; }
	.agd-footer__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media print {
	.agd-footer__about, .agd-footer__bct, .agd-footer__mini { display: none !important; }
	.agd-footer__legal { background: #fff; padding: 8px 0; }
	.agd-footer__facts { grid-template-columns: 1fr 1fr; }
}

.agd-footer__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.agd-footer__badges .agd-footer__bct { margin: 0; }
.agd-footer__dmca img { display: block; width: auto; height: 24px; }
@media print { .agd-footer__badges { display: none !important; } }

/* ---------- Hệ thống cửa hàng (1.7) ---------- */
.agd-stores { padding-top: 8px; }
.agd-stores__hero { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 18px; margin: 8px 0 18px; padding: 22px 20px; border-radius: 22px; background: linear-gradient(125deg, #06432A 0%, #0B6B43 50%, #1B9C5F 100%); color: var(--white); box-shadow: var(--shadow-lg); }
.agd-stores__orb { position: absolute; z-index: -1; right: -80px; top: -100px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.agd-stores__hero-text { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.agd-stores__title { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 800; }
.agd-stores__lead { margin: 0; color: #D7EFE0; max-width: 52ch; }
.agd-stores__stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.agd-stores__stats li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.agd-stores__stat-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #FFD866; color: #6B4A00; }
.agd-stores__stats b { display: block; font-size: 15px; line-height: 1.3; }
.agd-stores__stats small { display: block; font-size: 12.5px; color: #CFE6D8; }

.agd-stores__layout { display: grid; gap: 16px; }
.agd-stores__filter { position: sticky; top: 64px; z-index: 5; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1) 12px; padding: 8px var(--pad); background: var(--g050); }
.agd-stores__filter::-webkit-scrollbar { display: none; }
.agd-stores__chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.agd-stores__chip span { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--g100); color: var(--g800); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.agd-stores__chip.is-active { background: var(--grad-btn); border-color: transparent; color: var(--white); box-shadow: 0 6px 14px -8px rgba(12, 108, 67, .9); }
.agd-stores__chip.is-active span { background: rgba(255, 255, 255, .25); color: var(--white); }

.agd-stores__group + .agd-stores__group { margin-top: 20px; }
.agd-stores__region { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 18px; font-weight: 800; }
.agd-stores__region > span { flex: none; width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--white); background: linear-gradient(135deg, #3FC27E, #0C6C43); }
.agd-stores__region small { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.agd-stores__grid { display: grid; grid-template-columns: 1fr; gap: 10px; }

.agd-store { cursor: pointer; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--white); border: 1.5px solid transparent; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .15s; }
.agd-store:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.agd-store.is-active { border-color: #7FD1A4; }
.agd-store__head { display: flex; align-items: flex-start; gap: 12px; }
.agd-store__num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--g100); color: var(--g800); font-weight: 800; font-size: 14px; }
.agd-store__name { margin: 4px 0 0; font-size: 16px; line-height: 1.3; font-weight: 800; }
.agd-store__tag { display: inline-block; margin-top: 4px; padding: 1px 9px; border-radius: 99px; background: #FFF4D6; color: #8A6100; font-size: 11.5px; font-weight: 700; }
.agd-store__info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.agd-store__info li { display: flex; align-items: flex-start; gap: 8px; }
.agd-store__info .agd-icon { flex: none; margin-top: 2px; color: var(--g600); }
.agd-store__info a { color: var(--ink); font-weight: 600; }
.agd-store__btns { display: flex; gap: 8px; margin-top: auto; }
.agd-store__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid #BFE3CD; border-radius: 99px; background: var(--white); color: var(--g800); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.agd-store__btn:hover { background: var(--g100); color: var(--g800); }
.agd-store__btn--go { background: var(--grad-btn); border-color: transparent; color: var(--white); }
.agd-store__btn--go:hover { color: var(--white); background: var(--g900); }
.agd-store__btn--icon { flex: none; width: 40px; padding: 0; }

.agd-stores__mapbox { display: flex; flex-direction: column; gap: 12px; }
.agd-stores__map { overflow: hidden; border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.agd-stores__maphead { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 14px; color: var(--g800); }
.agd-stores__map iframe { display: block; width: 100%; height: 230px; border: 0; }
.agd-stores__agent { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, #FFF8E1, #FFEFC2); }
.agd-stores__agent-ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #FFD866; color: #6B4A00; }
.agd-stores__agent b { display: block; font-size: 16px; }
.agd-stores__agent div > span { display: block; font-size: 13.5px; color: #6B5A2A; }

@media (max-width: 1023px) {
	.agd-stores__layout { display: flex; flex-direction: column-reverse; }
	.agd-stores__mapbox { order: 0; }
	.agd-stores__agent { display: none; }
}
@media (min-width: 600px) {
	.agd-stores__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.agd-stores__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.agd-stores__map iframe { height: 340px; }
}
@media (min-width: 1024px) {
	.agd-stores__hero { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 36px 40px; border-radius: 26px; }
	.agd-stores__title { font-size: 34px; }
	.agd-stores__stats { grid-template-columns: 1fr; }
	.agd-stores__layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
	.agd-stores__filter { top: 64px; flex-wrap: wrap; overflow: visible; margin: 0 0 14px; padding: 8px 0; }
	.agd-stores__mapbox { position: sticky; top: 76px; }
	.agd-stores__map iframe { height: 420px; }
}

.agd-store:focus-visible { outline: 3px solid #7FD1A4; outline-offset: 2px; }
.agd-store.is-active { background: #F3FBF6; }
.agd-store.is-active .agd-store__num { background: var(--grad-btn); color: var(--white); }

/* =========================================================
   1.8 – Mini cart (Chọn mua stays on the page) + cart page
   ========================================================= */
.agd-minicart { position: relative; display: flex; flex: none; }
.agd-minicart__panel { position: fixed; z-index: 96; width: 400px; max-width: calc(100vw - 24px); background: var(--white); border-radius: 18px; box-shadow: 0 24px 48px -16px rgba(8, 40, 24, .35), 0 0 0 1px rgba(8, 40, 24, .06); opacity: 0; transform: translateY(-8px); transition: opacity .18s, transform .18s; }
.agd-minicart__panel.is-open { opacity: 1; transform: none; }
.agd-minicart__panel:not(.is-sheet):not(.no-arrow)::before { content: ""; position: absolute; top: -7px; right: calc(var(--agd-arrow, 40px) - 8px); width: 16px; height: 16px; background: var(--white); transform: rotate(45deg); border-radius: 3px 0 0 0; box-shadow: -1px -1px 0 rgba(8, 40, 24, .06); }
.agd-minicart__panel:not(.is-sheet)::after { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.agd-minicart__panel.is-sheet { left: 0; right: 0; bottom: 0; top: auto !important; width: auto; max-width: none; border-radius: 22px 22px 0 0; transform: translateY(100%); transition: transform .25s ease; opacity: 1; padding-bottom: env(safe-area-inset-bottom); }
.agd-minicart__panel.is-sheet.is-open { transform: none; }
.agd-minicart__backdrop { position: fixed; inset: 0; z-index: 95; background: rgba(10, 20, 14, .45); }
.agd-minicart__body { display: flex; flex-direction: column; max-height: min(78vh, 640px); }
.agd-minicart__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 12px 10px 18px; border-bottom: 1px solid var(--line-2); }
.agd-minicart__head b { font-size: 17px; }
.agd-minicart__head b span { color: var(--muted); font-weight: 600; }
.agd-minicart__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--g050); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.agd-minicart__added { display: flex; align-items: center; gap: 8px; margin: 10px 14px 0; padding: 9px 12px; border-radius: 12px; background: var(--g100); color: var(--g800); font-weight: 700; font-size: 14px; }
.agd-minicart__list { list-style: none; margin: 0; padding: 4px 14px; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }
.agd-minicart__item { display: grid; grid-template-columns: 60px minmax(0, 1fr) 36px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); transition: opacity .2s; }
.agd-minicart__item:last-child { border-bottom: 0; }
.agd-minicart__item.is-removing { opacity: .35; pointer-events: none; }
.agd-minicart__thumb { display: block; width: 60px; height: 60px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--white); }
.agd-minicart__thumb img { width: 100%; height: 100%; object-fit: contain; }
.agd-minicart__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.4; }
.agd-minicart__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 4px; }
.agd-minicart__price { color: var(--orange); font-weight: 800; font-size: 15px; }
.agd-minicart__price del { color: var(--muted); font-weight: 500; font-size: 12.5px; margin-left: 4px; }
.agd-minicart__qty { color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.agd-minicart__remove { width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.agd-minicart__remove:hover { background: #FDECEC; color: var(--red); }
.agd-minicart__foot { padding: 12px 14px 14px; border-top: 1px solid var(--line-2); background: #FAFCFA; border-radius: 0 0 18px 18px; }
.agd-minicart__sum { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 10px 2px 12px; font-size: 14px; color: var(--muted); }
.agd-minicart__sum b { color: var(--orange); font-size: 18px; }
.agd-minicart__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.agd-minicart__btns .agd-btn { min-height: 46px; padding: 0 12px; }
.agd-minicart__empty { padding: 28px 20px 26px; text-align: center; color: var(--muted); }
.agd-minicart__empty span { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: var(--g100); color: var(--g800); display: flex; align-items: center; justify-content: center; }
.agd-minicart__empty p { margin: 0 0 14px; font-weight: 600; }

/* Free delivery progress */
.agd-freeship { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #FFF6E3; color: #6B4A00; font-size: 13.5px; line-height: 1.4; }
.agd-freeship__ico { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--white); color: #C27C00; display: inline-flex; align-items: center; justify-content: center; }
.agd-freeship__main { flex: 1; min-width: 0; }
.agd-freeship__text { display: block; }
.agd-freeship__text .amount { color: var(--orange); }
.agd-freeship__track { display: block; height: 6px; margin-top: 6px; border-radius: 99px; background: rgba(194, 124, 0, .18); overflow: hidden; }
.agd-freeship__track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FFB020, #F07C00); transition: width .3s; }
.agd-freeship.is-done { background: var(--g100); color: var(--g800); }
.agd-freeship.is-done .agd-freeship__ico { color: var(--g600); }
.agd-freeship.is-done .agd-freeship__track span { background: var(--grad-btn); }

/* Product-card button states */
.agd-pcard__add.is-loading { opacity: .75; pointer-events: none; }
.agd-pcard__add.added::before { content: "✓"; font-weight: 800; }
.agd-pcard__add.added > svg { display: none; }
.single_add_to_cart_button.is-loading { opacity: .7; pointer-events: none; }

/* ---------- Cart page ---------- */
.agd-page--cart { padding-bottom: 8px; }
.agd-cartpage__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.agd-cartpage__top .agd-h1 { margin: 0; }
.agd-cartpage__back { font-weight: 700; font-size: 14px; white-space: nowrap; }
.agd-cartpage > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.agd-cartpage > .woocommerce > .woocommerce-notices-wrapper,
.agd-cartpage > .woocommerce > .cart-empty,
.agd-cartpage > .woocommerce > .cross-sells { grid-column: 1 / -1; }
.agd-cartpage > .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
.agd-cartpage .woocommerce-notices-wrapper > * { margin: 0 0 8px; }

.agd-cart { margin: 0; display: grid; gap: 12px; }
.agd-cart__box { background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }
.agd-cart__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.agd-cart__head h2 { margin: 0; font-size: 17px; }
.agd-cart__head h2 span { color: var(--muted); font-weight: 600; }
.agd-cart__more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 99px; background: var(--g100); }
.agd-cart__cols { display: none; }
.agd-cart__list { display: block; margin: 0 !important; border: 0 !important; }

.agd-citem { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "img name rm" "img price price" "img qty total"; column-gap: 12px; row-gap: 6px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.agd-citem__img { grid-area: img; align-self: start; }
.agd-citem__img a, .agd-citem__img > img { display: block; }
.agd-citem__img img { width: 76px; height: 76px; object-fit: contain; border: 1px solid var(--line-2); border-radius: 14px; background: var(--white); }
.agd-citem__name { grid-area: name; font-size: 14.5px; line-height: 1.45; font-weight: 600; }
.agd-citem__name > a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.agd-citem__name > a:hover { color: var(--g800); }
.agd-citem__name dl.variation { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.agd-citem__name dl.variation dt, .agd-citem__name dl.variation dd { display: inline; margin: 0; }
.agd-citem__name dl.variation dd p { display: inline; margin: 0; }
.agd-citem__name .backorder_notification { margin: 4px 0 0; font-size: 12.5px; color: var(--orange); }
.agd-citem__price { grid-area: price; font-size: 14px; color: var(--ink); font-weight: 700; }
.agd-citem__price del { margin-left: 6px; color: var(--muted); font-weight: 500; font-size: 13px; }
.agd-citem__qty { grid-area: qty; }
.agd-citem__total { grid-area: total; text-align: right; color: var(--orange); font-weight: 800; font-size: 16px; white-space: nowrap; }
.agd-citem__rm { grid-area: rm; align-self: start; justify-self: end; }
.woocommerce .agd-citem__rm a.remove { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--muted) !important; background: none; font-size: inherit; line-height: 1; }
.woocommerce .agd-citem__rm a.remove:hover { color: var(--red) !important; background: #FDECEC; }
.agd-citem__qty .quantity { display: inline-flex; align-items: center; height: 38px; border: 1px solid #CBD3C4; border-radius: 99px; background: var(--white); float: none !important; margin: 0 !important; }
.agd-citem__qty .quantity .qty { width: 42px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 0; text-align: center; font-weight: 700; font-size: 15px; background: transparent; -moz-appearance: textfield; }
.agd-citem__qty .quantity .qty::-webkit-outer-spin-button, .agd-citem__qty .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.agd-citem__qty .agd-qty-btn { width: 36px; height: 36px; font-size: 20px; color: var(--g800); }
.agd-cart.is-updating .agd-citem__total, .agd-cart.is-updating .agd-citem__qty { opacity: .5; }

.agd-cart__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px 14px; }
.agd-cart__coupon-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px dashed #9CC5AE; border-radius: 99px; background: var(--g050); color: var(--g800); font-weight: 700; font-size: 14px; padding: 8px 14px; }
.agd-cart__coupon { display: flex; gap: 8px; width: 100%; }
.agd-cart__coupon .input-text { flex: 1; min-width: 0; height: 46px; text-transform: uppercase; }
.woocommerce .agd-cart__coupon button.button { flex: none; min-height: 46px; padding: 0 18px; background: var(--white); color: var(--g800); box-shadow: inset 0 0 0 1.5px var(--g800); }
.woocommerce .agd-cart__coupon button.button:hover { background: var(--g100); color: var(--g900); }
.agd-cart__update { position: absolute !important; width: 1px; height: 1px; padding: 0 !important; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); border: 0; }

/* Summary card */
.agd-cart__side { width: auto !important; float: none !important; margin: 0; }
.agd-cart__side::before, .agd-cart__side::after { display: none !important; }
.woocommerce .agd-cart__side .cart_totals, .woocommerce-page .agd-cart__side .cart_totals { float: none; width: auto; }
.agd-sum { background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px; }
.agd-sum__title { font-size: 17px; margin: 0 0 6px; }
.woocommerce .agd-sum table.agd-sum__table { width: 100%; margin: 0; border: 0; border-collapse: collapse; border-radius: 0; font-size: 14.5px; }
.woocommerce .agd-sum table.agd-sum__table th, .woocommerce .agd-sum table.agd-sum__table td { padding: 7px 0; border: 0; background: none; vertical-align: top; line-height: 1.45; }
.woocommerce .agd-sum table.agd-sum__table th { text-align: left; font-weight: 500; color: var(--muted); padding-right: 10px; }
.woocommerce .agd-sum table.agd-sum__table td { text-align: right; font-weight: 700; color: var(--ink); }
.agd-sum__minus td { color: var(--g600) !important; }
.agd-sum__code { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 6px; background: var(--g100); color: var(--g800); font-size: 12px; font-weight: 700; }
.agd-sum__table .woocommerce-remove-coupon { display: block; font-size: 12px; font-weight: 600; color: var(--red); }
.agd-sum__muted td { color: var(--muted) !important; font-weight: 500 !important; }
.agd-sum__table #shipping_method { list-style: none; margin: 0; padding: 0; }
.agd-sum__table #shipping_method li { margin: 0 0 4px; }
.agd-sum__table .woocommerce-shipping-destination, .agd-sum__table .shipping-calculator-button { font-size: 12.5px; font-weight: 500; color: var(--muted); margin: 4px 0 0; }
.woocommerce .agd-sum table.agd-sum__table tr.agd-sum__total th, .woocommerce .agd-sum table.agd-sum__table tr.agd-sum__total td { border-top: 1px dashed var(--line); padding-top: 12px; }
.woocommerce .agd-sum table.agd-sum__table tr.agd-sum__total th { color: var(--ink); font-weight: 700; font-size: 16px; }
.woocommerce .agd-sum table.agd-sum__table tr.agd-sum__total td { color: var(--orange); font-size: 22px; font-weight: 800; }
.agd-sum__total td strong { font-weight: 800; }
.agd-sum__total td small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.woocommerce .agd-sum table.agd-sum__table tr.agd-sum__saved td { color: var(--g600); }
.agd-sum__saved th, .agd-sum__saved td { padding-top: 0 !important; }
.agd-sum__go { margin-top: 12px; padding: 0 !important; }
.agd-sum .wc-proceed-to-checkout a.checkout-button.agd-btn { display: flex; width: 100%; min-height: 54px; margin: 0 0 8px; padding: 0 20px; font-size: 17px; border-radius: 99px; background: var(--grad-btn) !important; color: var(--white); box-shadow: 0 10px 22px -12px rgba(12, 108, 67, .95); }
.agd-sum .wc-proceed-to-checkout a.checkout-button.agd-btn:hover { filter: brightness(1.06); color: var(--white); }
.agd-sum__trust { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.agd-sum__trust li { display: flex; align-items: center; gap: 8px; }
.agd-sum__trust svg { color: var(--g600); flex: none; }
.agd-sum__terms { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.agd-sum__terms a { font-weight: 600; }

/* Phones: total + "Đặt hàng" stay at the bottom */
.agd-cartbar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 69; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--white); box-shadow: 0 -1px 0 var(--line), 0 -8px 20px rgba(0, 0, 0, .06); }
.agd-cartbar__sum { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.agd-cartbar__sum small { color: var(--muted); font-size: 12.5px; }
.agd-cartbar__sum em { font-style: normal; color: var(--g600); font-weight: 700; }
.agd-cartbar__sum b { color: var(--orange); font-size: 19px; font-weight: 800; }
.agd-cartbar .agd-btn { min-height: 48px; padding: 0 26px; flex: none; }
.agd-is-cart .agd-main { padding-bottom: calc(var(--tabbar-h) + 96px + env(safe-area-inset-bottom)); }
.agd-is-cart .agd-float { display: none; }

/* Empty cart */
.agd-cart-empty { background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 36px 20px; text-align: center; }
.agd-cart-empty__ico { width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 50%; background: var(--g100); color: var(--g800); display: flex; align-items: center; justify-content: center; }
.agd-cart-empty h2 { font-size: 20px; margin: 0 0 6px; }
.agd-cart-empty p { color: var(--muted); max-width: 460px; margin: 0 auto 16px; }
.agd-cart-empty__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 0 !important; }

/* Cross-sells under the cart */
.agd-cartpage .cross-sells > h2 { font-size: 18px; margin: 8px 0 12px; }
.agd-cartpage .cross-sells ul.products { margin: 0; }

@media (min-width: 768px) {
	.agd-citem { grid-template-columns: 84px minmax(0, 1fr) 120px 124px 120px 40px; grid-template-areas: "img name price qty total rm"; padding: 16px 18px; column-gap: 14px; }
	.agd-citem__img img { width: 84px; height: 84px; }
	.agd-citem__price { display: flex; flex-direction: column; text-align: right; font-size: 15px; }
	.agd-citem__price del { margin: 2px 0 0; }
	.agd-citem__qty { text-align: center; }
	.agd-citem__rm { align-self: center; }
	.agd-cart__cols { display: grid; grid-template-columns: 84px minmax(0, 1fr) 120px 124px 120px 40px; column-gap: 14px; padding: 10px 18px; background: var(--g050); color: var(--muted); font-size: 13px; font-weight: 600; }
	.agd-cart__cols span:first-child { grid-column: 1 / 3; }
	.agd-cart__cols span:nth-child(2), .agd-cart__cols span:nth-child(4) { text-align: right; }
	.agd-cart__cols span:nth-child(3) { text-align: center; }
	.agd-cart__coupon { width: auto; flex: 1; max-width: 420px; }
}
@media (min-width: 1024px) {
	.agd-cartpage > .woocommerce { grid-template-columns: minmax(0, 1fr) 370px; gap: 20px; }
	.agd-cart__side { position: sticky; top: 96px; }
	.agd-cartbar { display: none; }
	.agd-is-cart .agd-main { padding-bottom: 40px; }
	.agd-cartpage__top .agd-h1 { font-size: 26px; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
	.agd-citem, .agd-cart__cols { grid-template-columns: 72px minmax(0, 1fr) 104px 116px 104px 36px; }
	.agd-citem__img img { width: 72px; height: 72px; }
}
@media print { .agd-minicart__panel, .agd-minicart__backdrop, .agd-cartbar { display: none !important; } }
@media (max-width: 767px) { .agd-cartpage__back { display: none; } }

/* =========================================================
   1.8 – Trở thành đại lý
   ========================================================= */
.agd-agency { padding-top: 8px; }
.agd-agency__hero { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 18px; margin: 8px 0 22px; padding: 24px 20px; border-radius: 22px; background: linear-gradient(125deg, #06432A 0%, #0B6B43 50%, #1B9C5F 100%); color: var(--white); box-shadow: var(--shadow-lg); }
.agd-agency__hero-text { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.agd-agency__title { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 800; }
.agd-agency__title span { color: #FFD866; }
.agd-agency__lead { margin: 0; color: #D7EFE0; max-width: 56ch; }
.agd-agency__facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.agd-agency__facts li { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.agd-agency__facts li > span { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #FFD866; color: #6B4A00; }
.agd-agency__facts b { font-size: 14px; line-height: 1.3; }
.agd-agency__facts small { font-size: 12px; color: #CFE6D8; line-height: 1.35; }
.agd-agency__facts small a { color: #FFE08A; font-weight: 700; }

.agd-agency__sec { margin: 0 0 22px; }
.agd-agency__head { margin: 0 0 12px; }
.agd-agency__head h2 { margin: 2px 0 0; font-size: 21px; font-weight: 800; }
.agd-agency__kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--g600); }
.agd-agency__kicker--light { color: #FFD866; }

.agd-agency__benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.agd-agency__benefit { background: var(--white); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; }
.agd-agency__benefit h3 { margin: 10px 0 4px; font-size: 15px; line-height: 1.35; }
.agd-agency__benefit p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.agd-agency__bico { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--white); }
.agd-agency__bico--0 { background: linear-gradient(135deg, #3FC27E, #0C6C43); }
.agd-agency__bico--1 { background: linear-gradient(135deg, #FF8A4C, #E0480F); }
.agd-agency__bico--2 { background: linear-gradient(135deg, #4C9AFF, #1E5FBF); }
.agd-agency__bico--3 { background: linear-gradient(135deg, #FFC83D, #E89500); }
.agd-agency__bico--4 { background: linear-gradient(135deg, #B26BE0, #7A35B0); }
.agd-agency__bico--5 { background: linear-gradient(135deg, #2EC4B6, #0E8A80); }

.agd-agency__duo { display: grid; gap: 14px; margin: 0 0 22px; }
.agd-agency__card { background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 18px; }
.agd-agency__steps { list-style: none; margin: 0; padding: 0; position: relative; }
.agd-agency__steps li { position: relative; display: flex; gap: 14px; padding: 0 0 16px; }
.agd-agency__steps li:last-child { padding-bottom: 0; }
.agd-agency__steps li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: repeating-linear-gradient(to bottom, #9CC5AE 0 5px, transparent 5px 9px); }
.agd-agency__num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--grad-btn); color: var(--white); font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 12px -6px rgba(12, 108, 67, .9); }
.agd-agency__steps b { display: block; font-size: 15px; padding-top: 6px; }
.agd-agency__steps p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.agd-agency__needs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.agd-agency__needs li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.agd-agency__needs li > span { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--g100); color: var(--g600); display: flex; align-items: center; justify-content: center; }

.agd-agency__reg { scroll-margin-top: 90px; display: grid; gap: 0; margin: 0 0 22px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--white); }
.agd-agency__reg-info { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; background: linear-gradient(150deg, #06432A 0%, #0B6B43 60%, #1B9C5F 100%); color: var(--white); }
.agd-agency__reg-info h2 { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 800; }
.agd-agency__reg-info p { margin: 0 0 4px; color: #D7EFE0; font-size: 14px; }
.agd-agency__contact { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); color: var(--white); }
.agd-agency__contact:hover { color: var(--white); background: rgba(255, 255, 255, .2); }
.agd-agency__contact > span:first-child { flex: none; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #FFD866; color: #6B4A00; }
.agd-agency__contact--zalo > span:first-child { background: var(--zalo); color: var(--white); }
.agd-agency__contact small { display: block; font-size: 12px; color: #CFE6D8; }
.agd-agency__contact b { display: block; font-size: 17px; line-height: 1.2; }
.agd-agency__formbox { padding: 20px; }
.agd-agency__form { display: grid; grid-template-columns: 1fr; gap: 12px; }
.agd-agency__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agd-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.agd-field label, .agd-field legend { font-size: 13.5px; font-weight: 700; color: var(--ink); padding: 0; }
.agd-field label i { color: var(--red); font-style: normal; }
.agd-field input, .agd-field select, .agd-field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #CFD8D1; border-radius: 12px; background: var(--white); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.agd-field textarea { min-height: 88px; resize: vertical; }
.agd-field input:focus, .agd-field select:focus, .agd-field textarea:focus { outline: 0; border-color: var(--g600); box-shadow: 0 0 0 3px rgba(18, 128, 79, .15); }
.agd-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.agd-pill { position: relative; cursor: pointer; }
.agd-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agd-pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid #CFD8D1; border-radius: 99px; font-size: 14px; font-weight: 600; background: var(--white); transition: background .15s, border-color .15s; }
.agd-pill input:checked + span { background: var(--g100); border-color: var(--g600); color: var(--g800); }
.agd-pill input:checked + span::before { content: "✓"; margin-right: 6px; font-weight: 800; }
.agd-pill input:focus-visible + span { outline: 3px solid #4C9AFF; outline-offset: 2px; }
.agd-agency__agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.agd-agency__agree input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--g600); }
.agd-agency__form .agd-btn { min-height: 52px; font-size: 16px; }
.agd-agency__form .agd-btn.is-loading { opacity: .7; }
.agd-agency__err { margin: 0; padding: 10px 14px; border-radius: 12px; background: #FDECEC; color: var(--red); font-weight: 600; font-size: 14px; }
.agd-agency__done { text-align: center; padding: 18px 6px; }
.agd-agency__done > span { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; background: var(--g100); color: var(--g600); display: flex; align-items: center; justify-content: center; }
.agd-agency__done h3 { margin: 0 0 6px; font-size: 20px; }
.agd-agency__done p { margin: 0 auto 16px; color: var(--muted); max-width: 44ch; }
.agd-agency__faq { padding: 14px; }

@media (min-width: 640px) {
	.agd-agency__benefits { grid-template-columns: repeat(3, 1fr); }
	.agd-agency__form { grid-template-columns: 1fr 1fr; gap: 14px; }
	.agd-field--wide { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
	.agd-agency__hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; padding: 36px 36px; gap: 28px; }
	.agd-agency__title { font-size: 38px; }
	.agd-agency__lead { font-size: 16px; }
	.agd-agency__head h2 { font-size: 24px; }
	.agd-agency__benefit { padding: 18px; }
	.agd-agency__benefit h3 { font-size: 16px; }
	.agd-agency__duo { grid-template-columns: 1fr 1fr; gap: 18px; }
	.agd-agency__card { padding: 22px 24px; }
	.agd-agency__reg { grid-template-columns: 340px minmax(0, 1fr); }
	.agd-agency__reg-info { padding: 30px 26px; }
	.agd-agency__reg-info h2 { font-size: 24px; }
	.agd-agency__formbox { padding: 28px 30px; }
}
@media (max-width: 639px) {
	.agd-agency__facts li { grid-template-columns: 1fr; row-gap: 2px; align-content: start; }
	.agd-agency__facts li > span { grid-row: auto; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 6px; }
	.agd-agency__title { font-size: 26px; }
}

/* =========================================================
   1.9 – Checkout (Thanh toán) + order received
   ========================================================= */
html:root { --wc-primary: #0F8C45; --wc-primary-text: #fff; --wc-secondary: #EEF3EF; --wc-secondary-text: #0B5D3B; --wc-highlight: #E8590C; --wc-highligh-text: #fff; --wc-content-bg: #fff; --wc-subtext: #6B7A70; --wc-red: #D92D20; --wc-green: #0F8C45; --wc-blue: #1E5FBF; --wc-form-border-color: #CFD8D1; --wc-form-border-radius: 12px; --wc-form-border-width: 1px; }

/* Notices (all WooCommerce pages) */
.agd-wc-content .woocommerce-message, .agd-wc-content .woocommerce-info, .agd-wc-content .woocommerce-error, .agd-wc-content .wc-block-components-notice-banner { margin: 0 0 12px; padding: 12px 16px 12px 46px; border: 0; border-radius: 14px; background: var(--g100); color: var(--g900); font-size: 14.5px; line-height: 1.5; box-shadow: inset 0 0 0 1px rgba(15, 140, 69, .2); list-style: none; }
.agd-wc-content .woocommerce-info { background: #EAF2FF; color: #133B73; box-shadow: inset 0 0 0 1px rgba(30, 95, 191, .18); }
.agd-wc-content .woocommerce-error { background: #FDECEC; color: #8A1C14; box-shadow: inset 0 0 0 1px rgba(217, 45, 32, .2); }
.agd-wc-content .woocommerce-message::before, .agd-wc-content .woocommerce-info::before, .agd-wc-content .woocommerce-error::before { top: 12px; left: 16px; color: inherit; }
.agd-wc-content .woocommerce-error li { margin: 0; padding: 0; }
.agd-wc-content .woocommerce-message .button, .agd-wc-content .woocommerce-info .button { float: right; padding: 6px 14px !important; font-size: 13px; }

/* Steps: Giỏ hàng → Thông tin & thanh toán → Hoàn tất */
.agd-steps { list-style: none; display: flex; align-items: center; margin: 6px 0 14px; padding: 0; counter-reset: s; }
.agd-steps li { display: flex; align-items: center; flex: 1; min-width: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.agd-steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; margin: 0 8px; border-radius: 2px; background: var(--line); }
.agd-steps li.is-done:not(:last-child)::after { background: var(--g600); }
.agd-steps li:last-child { flex: none; }
.agd-steps a { display: flex; align-items: center; color: inherit; }
.agd-steps__dot { flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--white); box-shadow: inset 0 0 0 2px var(--line); color: var(--muted); }
.agd-steps__label { margin-left: 8px; white-space: nowrap; }
.agd-steps li.is-done { color: var(--g800); }
.agd-steps li.is-done .agd-steps__dot { background: var(--g600); box-shadow: none; color: var(--white); }
.agd-steps li.is-current { color: var(--ink); font-weight: 800; }
.agd-steps li.is-current .agd-steps__dot { background: var(--grad-btn); box-shadow: 0 0 0 4px rgba(15, 140, 69, .16); color: var(--white); }
@media (max-width: 559px) {
	.agd-steps li:not(.is-current) .agd-steps__label { display: none; }
}

/* Coupon row */
.agd-co-coupon { margin: 0 0 12px; }
.agd-co-coupon__toggle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px dashed #9CC5AE; border-radius: 99px; background: var(--white); color: var(--g800); font-size: 14px; }
.agd-co-coupon__toggle b { text-decoration: underline; text-underline-offset: 3px; }
.agd-copage form.agd-co-coupon__form { display: flex; gap: 8px; max-width: 480px; margin: 0 0 14px; padding: 12px; border: 0; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.agd-co-coupon__form[style*="none"] { display: none !important; }
.agd-co-coupon__form .input-text { flex: 1; min-width: 0; text-transform: uppercase; }
.woocommerce .agd-co-coupon__form button.button { flex: none; min-height: 48px; padding: 0 18px; background: var(--white); color: var(--g800); box-shadow: inset 0 0 0 1.5px var(--g800); }

/* Layout */
.agd-co { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.agd-co::before, .agd-co::after { display: none !important; }
.agd-co__main, .agd-co__side { min-width: 0; }
.woocommerce .agd-co .col2-set, .woocommerce-page .agd-co .col2-set { width: auto; display: grid; gap: 14px; }
.woocommerce .agd-co .col2-set .col-1, .woocommerce .agd-co .col2-set .col-2, .woocommerce-page .agd-co .col2-set .col-1, .woocommerce-page .agd-co .col2-set .col-2 { float: none; width: auto; max-width: none; padding: 0; display: grid; gap: 14px; }
.agd-co .col2-set::before, .agd-co .col2-set::after { display: none; }
.agd-co__card { background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 18px 16px; }
.agd-co__card--soft { background: var(--g050); box-shadow: none; border: 1px solid var(--line-2); padding: 12px 16px; }
.agd-co__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 17px; font-weight: 800; }
.agd-co__title--sm { font-size: 15px; gap: 8px; margin-bottom: 10px; }
.agd-co__title--sm svg { color: var(--g600); }
.agd-co__title small { color: var(--muted); font-weight: 500; font-size: 13px; }
.agd-co__step { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--grad-btn); color: var(--white); font-size: 14px; font-weight: 800; }

/* Fields */
.agd-co__fields { display: grid; grid-template-columns: 1fr; gap: 12px; }
.agd-co__fields::before, .agd-co__fields::after { display: none !important; }
.woocommerce .agd-co form .form-row, .woocommerce .agd-co .form-row, .agd-co .form-row { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 6px; }
.agd-co .form-row > label { margin: 0; font-size: 13.5px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.agd-co .form-row label .required { color: var(--red); text-decoration: none; border: 0; font-weight: 700; }
.agd-co .form-row label .optional { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.agd-co .form-row .woocommerce-input-wrapper { display: block; width: 100%; }
.agd-co .form-row input.input-text, .agd-co .form-row select, .agd-co .form-row textarea, .agd-co-coupon__form .input-text { width: 100%; min-height: 48px; margin: 0; padding: 10px 14px; border: 1px solid #CFD8D1; border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.4; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.agd-co .form-row textarea { min-height: 84px; resize: vertical; }
.agd-co .form-row input.input-text::placeholder, .agd-co .form-row textarea::placeholder { color: #98A39C; }
.agd-co .form-row input.input-text:focus, .agd-co .form-row select:focus, .agd-co .form-row textarea:focus, .agd-co-coupon__form .input-text:focus { outline: 0; border-color: var(--g600); box-shadow: 0 0 0 3px rgba(15, 140, 69, .15); }
.woocommerce .agd-co .form-row.woocommerce-invalid label { color: var(--ink); }
.woocommerce .agd-co .form-row.woocommerce-invalid input.input-text, .woocommerce .agd-co .form-row.woocommerce-invalid select, .woocommerce .agd-co .form-row.woocommerce-invalid .select2-selection { border-color: var(--red) !important; background: #FFF8F7; }
.woocommerce .agd-co .form-row.woocommerce-validated input.input-text, .woocommerce .agd-co .form-row.woocommerce-validated select, .woocommerce .agd-co .form-row.woocommerce-validated .select2-selection { border-color: #7CC29A; }
.agd-co .checkout-inline-error-message, .agd-co .form-row .woocommerce-error { margin: 2px 0 0; padding: 0; background: none; box-shadow: none; color: var(--red); font-size: 12.5px; font-weight: 600; }
.agd-co .checkout-inline-error-message::before { display: none; }
.agd-co .form-row .description { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
#billing_country_field strong, #shipping_country_field strong { font-weight: 600; }
/* select2 (tỉnh/huyện/xã lists) */
.agd-co .select2-container { width: 100% !important; }
.agd-co .select2-container .select2-selection--single { height: 48px; border: 1px solid #CFD8D1; border-radius: 12px; background: var(--white); }
.agd-co .select2-container .select2-selection--single .select2-selection__rendered { line-height: 46px; padding: 0 36px 0 14px; color: var(--ink); font-size: 15px; }
.agd-co .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }
.agd-co .select2-container--focus .select2-selection--single, .agd-co .select2-container--open .select2-selection--single { border-color: var(--g600); box-shadow: 0 0 0 3px rgba(15, 140, 69, .15); }
.select2-dropdown { border-color: #CFD8D1 !important; border-radius: 12px !important; overflow: hidden; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .3); }
.select2-search--dropdown .select2-search__field { min-height: 40px; border-radius: 10px; border: 1px solid #CFD8D1 !important; padding: 6px 10px; }
.select2-results__option { padding: 9px 12px; font-size: 14.5px; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--g600) !important; color: var(--white) !important; }

/* Another address: switch */
.agd-co__card--toggle { padding: 14px 16px; }
.woocommerce .agd-co #ship-to-different-address { margin: 0; font-size: inherit; }
.agd-co__switch label { display: flex !important; align-items: center; gap: 12px; margin: 0; cursor: pointer; font-weight: 400; }
.agd-co__switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agd-co__switch-ui { flex: none; position: relative; width: 44px; height: 26px; border-radius: 99px; background: #CDD6CF; transition: background .2s; }
.agd-co__switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.agd-co__switch input:checked + .agd-co__switch-ui { background: var(--g600); }
.agd-co__switch input:checked + .agd-co__switch-ui::after { transform: translateX(18px); }
.agd-co__switch input:focus-visible + .agd-co__switch-ui { outline: 3px solid #4C9AFF; outline-offset: 2px; }
.agd-co__switch-text b { display: block; font-size: 15px; }
.agd-co__switch-text small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.agd-co .shipping_address { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.agd-co .create-account label.checkbox, .agd-co .woocommerce-form__label-for-checkbox { display: inline-flex !important; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.agd-co input.input-checkbox, .agd-pay input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--g600); flex: none; }

/* Order summary */
.agd-co__side { display: grid; gap: 0; background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }
.agd-co__sidehead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; }
.woocommerce .agd-co #order_review_heading, .agd-co #order_review_heading { margin: 0; font-size: 17px; font-weight: 800; }
.agd-co #order_review_heading span { color: var(--muted); font-weight: 600; }
.agd-co__sidehead a { font-size: 13.5px; font-weight: 700; }
.woocommerce .agd-co #order_review, .woocommerce-page .agd-co #order_review { float: none; width: auto; }
.woocommerce .agd-co table.agd-review { width: 100%; margin: 0; border: 0; border-radius: 0; border-collapse: collapse; font-size: 14.5px; }
.woocommerce .agd-co table.agd-review th, .woocommerce .agd-co table.agd-review td { padding: 7px 16px; border: 0; background: none; vertical-align: middle; line-height: 1.45; }
.agd-review tbody tr td { padding-top: 10px !important; padding-bottom: 10px !important; border-bottom: 1px solid var(--line-2) !important; }
.agd-review tbody .product-total { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 0 !important; }
.agd-review__item { display: flex; align-items: center; gap: 12px; }
.agd-review__thumb { position: relative; flex: none; width: 56px; height: 56px; }
.agd-review__thumb img { width: 56px !important; height: 56px !important; object-fit: contain; border: 1px solid var(--line-2); border-radius: 12px; background: var(--white); }
.agd-review__thumb em { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--g800); color: var(--white); font-style: normal; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--white); }
.agd-review__info { min-width: 0; }
.agd-review__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 14px; }
.agd-review .product-quantity { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.agd-review dl.variation { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.agd-review dl.variation dt, .agd-review dl.variation dd, .agd-review dl.variation p { display: inline; margin: 0; }
.agd-review tfoot tr:first-child th, .agd-review tfoot tr:first-child td { padding-top: 12px !important; }
.agd-review tfoot th { text-align: left; font-weight: 500 !important; color: var(--muted); }
.agd-review tfoot td { text-align: right; font-weight: 700; }
.agd-review__ship td { padding: 12px 16px 2px !important; }
.agd-review__minus td { color: var(--g600); }
.agd-review .woocommerce-remove-coupon { display: block; font-size: 12px; font-weight: 600; color: var(--red); }
/* Shipping methods: full-width rows of choices */
.agd-review tr.woocommerce-shipping-totals { display: grid; grid-template-columns: 1fr; }
.agd-review tr.woocommerce-shipping-totals th { padding-bottom: 4px !important; }
.agd-review tr.woocommerce-shipping-totals td { text-align: left; font-weight: 500; }
.agd-review #shipping_method { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.agd-review #shipping_method li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.agd-review #shipping_method li:has(input:checked) { border-color: var(--g600); background: var(--g050); }
.agd-review #shipping_method input { margin: 0; accent-color: var(--g600); }
.agd-review #shipping_method label { flex: 1; display: flex; justify-content: space-between; gap: 8px; cursor: pointer; }
.agd-review .woocommerce-shipping-destination, .agd-review .woocommerce-shipping-calculator { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.agd-review tr.order-total th, .agd-review tr.order-total td { padding-top: 12px !important; border-top: 1px dashed var(--line) !important; }
.agd-review tr.order-total th { color: var(--ink) !important; font-weight: 800 !important; font-size: 16px; }
.agd-review tr.order-total td { color: var(--orange); font-size: 22px; font-weight: 800; }
.agd-review tr.order-total td strong { font-weight: 800; }
.agd-review tr.order-total td small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.agd-review__saved th, .agd-review__saved td { padding-top: 0 !important; }
.agd-review__saved td { color: var(--g600); }

/* Payment */
.woocommerce .agd-co #payment, .woocommerce-page .agd-co #payment { margin: 6px 0 0; padding: 16px; border-radius: 0; background: var(--g050); border-top: 1px solid var(--line-2); }
.agd-pay__title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.woocommerce .agd-co #payment ul.payment_methods { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.woocommerce .agd-co #payment ul.payment_methods::before, .woocommerce .agd-co #payment ul.payment_methods::after { display: none; }
.woocommerce .agd-co #payment ul.payment_methods li.wc_payment_method { position: relative; margin: 0; padding: 0; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); line-height: 1.4; transition: border-color .15s, box-shadow .15s; }
.woocommerce .agd-co #payment ul.payment_methods li.wc_payment_method:has(> input:checked) { border-color: var(--g600); box-shadow: 0 0 0 3px rgba(15, 140, 69, .12); }
.woocommerce .agd-co #payment ul.payment_methods li > input.input-radio { position: absolute; top: 17px; left: 14px; width: 20px; height: 20px; margin: 0; accent-color: var(--g600); }
.woocommerce .agd-co #payment ul.payment_methods li > label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 14px 14px 14px 44px; font-weight: 700; font-size: 15px; cursor: pointer; }
.woocommerce .agd-co #payment ul.payment_methods li > label img { max-height: 24px; width: auto; margin: 0 0 0 auto; float: none; }
.woocommerce .agd-co #payment div.payment_box { margin: 0; padding: 0 14px 14px 44px; background: none; color: var(--muted); font-size: 13.5px; border-radius: 0; }
.woocommerce .agd-co #payment div.payment_box::before { display: none; }
.woocommerce .agd-co #payment div.payment_box p:last-child { margin-bottom: 0; }
.woocommerce .agd-co #payment div.form-row.place-order { margin: 14px 0 0 !important; padding: 0 !important; display: grid; gap: 10px; }
.agd-co .woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--muted); line-height: 1.5; }
.agd-co .woocommerce-privacy-policy-text p { margin: 0; }
.agd-co .woocommerce-terms-and-conditions-wrapper .validate-required { margin-top: 6px !important; }
.woocommerce .agd-co #payment #place_order, .woocommerce-page .agd-co #payment #place_order { float: none; width: 100%; min-height: 56px; margin: 0; padding: 0 20px; border-radius: 99px; background: var(--grad-btn) !important; color: var(--white); font-size: 18px !important; font-weight: 800; box-shadow: 0 12px 24px -12px rgba(12, 108, 67, .95); }
.woocommerce .agd-co #payment #place_order:hover { filter: brightness(1.06); }
.agd-co.processing #place_order { opacity: .7; }
.agd-pay__trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.agd-pay__trust li { display: inline-flex; align-items: center; gap: 5px; }
.agd-pay__trust svg { color: var(--g600); }

/* Phones: total + "Đặt hàng" at the bottom */
.agd-cobar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 72; display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -1px 0 var(--line), 0 -8px 20px rgba(0, 0, 0, .07); transition: transform .2s; }
.agd-cobar.is-hidden { transform: translateY(110%); }
.agd-cobar__sum { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.agd-cobar__sum small { color: var(--muted); font-size: 12.5px; }
.agd-cobar__sum b { color: var(--orange); font-size: 19px; font-weight: 800; }
.agd-cobar .agd-btn { min-height: 48px; padding: 0 28px; flex: none; }
.agd-is-checkout .agd-tabbar, .agd-is-checkout .agd-float, .agd-is-checkout .agd-fcta { display: none !important; }
.agd-is-checkout .agd-main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.agd-is-checkout.woocommerce-order-received .agd-cobar { display: none; }

/* Order received */
.agd-thanks { display: grid; gap: 14px; }
.agd-thanks__hero { background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 28px 18px 22px; text-align: center; }
.agd-thanks__ico { width: 78px; height: 78px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--grad-btn); color: var(--white); box-shadow: 0 0 0 10px var(--g100); }
.agd-thanks__hero--fail .agd-thanks__ico { background: var(--red); box-shadow: 0 0 0 10px #FDECEC; }
.agd-thanks__hero h2 { margin: 18px 0 6px; font-size: 22px; font-weight: 800; }
.agd-thanks__hero > p { max-width: 54ch; margin: 0 auto 16px; color: var(--muted); }
.agd-thanks__hero > p.woocommerce-notice { background: none; padding: 0; box-shadow: none; }
.woocommerce .agd-thanks ul.agd-thanks__facts, .agd-thanks ul.agd-thanks__facts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.woocommerce .agd-thanks ul.agd-thanks__facts li { float: none; margin: 0; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--g050); font-size: 12.5px; text-transform: none; line-height: 1.35; }
.agd-thanks__facts small { display: block; color: var(--muted); }
.woocommerce .agd-thanks ul.agd-thanks__facts li strong { display: block; margin-top: 2px; font-size: 15px; color: var(--ink); text-transform: none; }
.woocommerce .agd-thanks ul.agd-thanks__facts li strong.agd-thanks__total { color: var(--orange); }
.agd-thanks__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.agd-thanks__more > * { background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 18px 16px; margin: 0 0 14px !important; }
.agd-thanks__more h2 { font-size: 17px; margin: 0 0 10px; }
.agd-thanks__more table.shop_table { margin: 0; border: 0; border-radius: 0; font-size: 14.5px; }
.agd-thanks__more table.shop_table th, .agd-thanks__more table.shop_table td { padding: 9px 0; border-color: var(--line-2); }
.agd-thanks__more address { border: 0 !important; padding: 0 !important; font-style: normal; line-height: 1.6; }
.agd-thanks__more .wc-bacs-bank-details { padding: 0; list-style: none; }

@media (min-width: 560px) {
	.agd-co__fields { grid-template-columns: 1fr 1fr; gap: 14px; }
	.agd-co__fields > .form-row { grid-column: 1 / -1; }
	.agd-co__fields > .form-row-first { grid-column: 1; }
	.agd-co__fields > .form-row-last { grid-column: 2; }
	.agd-thanks ul.agd-thanks__facts { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (min-width: 1024px) {
	.agd-co { grid-template-columns: minmax(0, 1fr) 410px; gap: 20px; }
	.agd-co__side { position: sticky; top: 76px; }
	.agd-co__card { padding: 22px 24px; }
	.agd-cobar { display: none; }
	.agd-is-checkout .agd-main { padding-bottom: 40px; }
	.agd-thanks__hero { padding: 36px 30px 28px; }
	.agd-thanks { max-width: 860px; margin: 0 auto; }
}
@media print { .agd-cobar, .agd-steps { display: none !important; } }
@media (max-width: 1023px) { .agd-is-checkout .agd-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); } }
.woocommerce .agd-co #payment ul.payment_methods li.wc_payment_method { list-style: none; }
.woocommerce .agd-co #payment ul.payment_methods li.wc_payment_method::marker { content: none; }
.agd-review__ship td { text-align: left !important; }
.agd-review__ship .agd-freeship { text-align: left; }
.woocommerce .agd-co #payment div.payment_box p { margin: 0 0 6px; }

/* 1.9.1 checkout fixes */
.woocommerce .agd-co #ship-to-different-address, .woocommerce-page .agd-co #ship-to-different-address { float: none !important; clear: both; width: auto; margin: 0; padding: 0; line-height: 1.35; font-size: inherit; font-weight: 400; }
.agd-co__card { display: flow-root; }
.agd-co__card--toggle { min-height: 0; }
.agd-co__switch label { position: relative; }
.agd-co__switch-text { min-width: 0; }
.agd-co .woocommerce-account-fields.agd-co__card--soft { background: var(--white); border: 0; box-shadow: var(--shadow); padding: 14px 16px; }
.agd-co .woocommerce-account-fields .form-row { margin: 0 !important; }
.agd-co .agd-phone-err { margin: 2px 0 0; color: var(--red); font-size: 12.5px; font-weight: 600; }
.agd-co .form-row .agd-phone-err ~ .checkout-inline-error-message { display: none; }
.agd-co .form-row select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B5D3B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.agd-co .select2-container .select2-selection--single .select2-selection__placeholder { color: #98A39C; }
.agd-co .select2-container .select2-selection--single .select2-selection__arrow b { border-color: var(--g800) transparent transparent; }
.agd-review #shipping_method { width: 100%; }
.agd-review #shipping_method li { width: 100%; justify-content: space-between; box-sizing: border-box; }
.agd-review #shipping_method li label { margin: 0; }
.agd-co .form-row select:disabled { background-color: var(--g050); color: var(--muted); cursor: not-allowed; }
.agd-co .select2-container--disabled .select2-selection--single { background: var(--g050); cursor: not-allowed; }

/* =========================================================
   1.9.4 – Phone header with slogan, drawer "Trở thành đại lý"
   ========================================================= */
@media (max-width: 1023px) {
	.agd-mhead__in { padding-top: 12px; padding-bottom: 8px; }
	.agd-mhead .agd-logo--brand { gap: 9px; }
	.agd-mhead .agd-logo--brand .agd-logo__mark { width: 42px; height: 42px; }
	.agd-mhead .agd-logo--brand .agd-logo__word--lockup { width: 138px; }
	.agd-mhead__call { gap: 8px; height: 42px; padding: 0 12px 0 5px; border-radius: 99px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
	.agd-mhead__callico { flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #FFD866; }
	.agd-mhead__call .agd-mhead__callico .agd-icon { color: #5A3E00; }
	.agd-mhead__calltxt { display: flex; flex-direction: column; line-height: 1.15; }
	.agd-mhead__calltxt small { font-size: 10.5px; font-weight: 600; color: #CFE6D8; }
	.agd-mhead__calltxt b { font-size: 14px; font-weight: 800; letter-spacing: .01em; }
	.agd-header__in { gap: 8px; padding-top: 4px; padding-bottom: 12px; }
	.agd-header__menu, .agd-header .agd-cartbtn { width: 46px; height: 46px; border-radius: 15px; background: rgba(255, 255, 255, .16); border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
	.agd-header .agd-search { height: 46px; padding: 0 4px 0 14px; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .45); }
	.agd-header .agd-search__input { font-size: 15px; }
	.agd-header .agd-cart-count { top: -6px; right: -6px; }
}
@media (max-width: 360px) {
	.agd-mhead__calltxt small { display: none; }
	.agd-mhead .agd-logo--brand .agd-logo__word--lockup { width: 120px; }
}

/* Drawer: "Trở thành đại lý" + info links */
.agd-drawer__agent { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #FFF8E1, #FFE9A8); color: #3A2A00; box-shadow: inset 0 0 0 1px rgba(194, 124, 0, .18); }
.agd-drawer__agent:hover { color: #3A2A00; }
.agd-drawer__agent-ico { flex: none; width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: #FFD866; color: #6B4A00; }
.agd-drawer__agent > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.agd-drawer__agent b { font-size: 16px; }
.agd-drawer__agent small { font-size: 12.5px; color: #6B5320; }
.agd-drawer__agent > .agd-icon:last-child { flex: none; color: #8A6400; }
.agd-drawer__menu--first { margin-bottom: 0 !important; }
.agd-drawer__menu--first + .agd-drawer__menu { margin-top: 0 !important; }
.agd-drawer__body:focus { outline: none; }

/* =========================================================
   1.10.2 – Yêu cầu xuất hóa đơn điện tử (checkout)
   ========================================================= */
.agd-inv.is-on { box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(15, 140, 69, .35); }
.agd-inv__body { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.agd-inv__types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.agd-inv__type { position: relative; cursor: pointer; margin: 0; }
.agd-inv__type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agd-inv__type > span { position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; align-items: center; height: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); transition: border-color .15s, background .15s; }
.agd-inv__type > span > .agd-icon { grid-row: 1 / 3; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--g050); color: var(--g800); box-sizing: border-box; }
.agd-inv__type b { font-size: 15px; line-height: 1.3; }
.agd-inv__type small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.agd-inv__type input:checked + span { border-color: var(--g600); background: var(--g050); }
.agd-inv__type input:checked + span > .agd-icon { background: var(--grad-btn); color: var(--white); }
.agd-inv__type input:checked + span::after { content: "✓"; position: absolute; top: 6px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--g600); color: var(--white); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.agd-inv__type input:focus-visible + span { outline: 3px solid #4C9AFF; outline-offset: 2px; }
.agd-inv__note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #FFF8E1; color: #6B5320; font-size: 13px; line-height: 1.5; }
.agd-inv__note .agd-icon { flex: none; margin-top: 2px; color: #C27C00; }
@media (max-width: 400px) { .agd-inv__type small { display: none; } .agd-inv__type > span { grid-template-columns: 34px 1fr; } .agd-inv__type > span > .agd-icon { width: 34px; height: 34px; padding: 7px; } }
.agd-inv-view { margin-top: 14px; }
.agd-inv-view dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.agd-inv-view dt { color: var(--muted); }
.agd-inv-view dd { margin: 0; font-weight: 600; }
/* Hóa đơn: Công ty = MST | E-mail, Tên công ty, Địa chỉ · Cá nhân = Họ tên | SĐT, Địa chỉ, E-mail */
.agd-inv__row[hidden] { display: none !important; }
@media (min-width: 560px) {
	.agd-inv.is-company .agd-inv__row--tax { grid-column: 1; order: 1; }
	.agd-inv.is-company .agd-inv__row--email { grid-column: 2; order: 2; }
	.agd-inv.is-company .agd-inv__row--name { order: 3; }
	.agd-inv.is-company .agd-inv__row--addr { order: 4; }
	.agd-inv.is-personal .agd-inv__row--name { grid-column: 1; order: 1; }
	.agd-inv.is-personal .agd-inv__row--phone { grid-column: 2; order: 2; }
	.agd-inv.is-personal .agd-inv__row--addr { order: 3; }
	.agd-inv.is-personal .agd-inv__row--email { order: 4; }
}
@media (max-width: 559px) {
	.agd-inv.is-company .agd-inv__row--tax { order: 1; }
	.agd-inv.is-company .agd-inv__row--name { order: 2; }
	.agd-inv.is-company .agd-inv__row--addr { order: 3; }
	.agd-inv.is-company .agd-inv__row--email { order: 4; }
}

/* =========================================================
   1.10.4 – Order received fixes, order details, checkout notices, shipping row
   ========================================================= */
/* WooCommerce adds clearfix ::before/::after to ul.order_details – they became empty grid cells. */
.woocommerce .agd-thanks ul.agd-thanks__facts::before, .woocommerce .agd-thanks ul.agd-thanks__facts::after, .agd-thanks ul.agd-thanks__facts::before, .agd-thanks ul.agd-thanks__facts::after { content: none !important; display: none !important; }
.woocommerce .agd-thanks ul.agd-thanks__facts li { float: none !important; width: auto !important; margin: 0 !important; border: 0 !important; font-size: 12.5px !important; text-transform: none !important; }
.woocommerce .agd-thanks ul.agd-thanks__facts li strong { font-size: 15px !important; line-height: 1.35; text-transform: none !important; }
.agd-thanks ul.agd-thanks__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .agd-thanks ul.agd-thanks__facts { grid-template-columns: repeat(var(--agd-facts, 4), minmax(0, 1fr)) !important; } }
.agd-thanks__more > p { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--g900); background: var(--g100) !important; box-shadow: none !important; }
.agd-thanks__more > p::before { content: "💵"; font-size: 20px; }

/* Order details card */
.agd-od__title { display: flex; align-items: baseline; gap: 6px; font-size: 17px !important; font-weight: 800; margin: 0 0 6px !important; }
.agd-od__title span { color: var(--muted); font-weight: 600; font-size: 14px; }
.woocommerce .agd-od table.agd-od__table, .agd-od table.agd-od__table { width: 100%; margin: 0; border: 0 !important; border-radius: 0; border-collapse: collapse; font-size: 14.5px; }
.woocommerce .agd-od table.agd-od__table th, .woocommerce .agd-od table.agd-od__table td, .agd-od table.agd-od__table th, .agd-od table.agd-od__table td { padding: 8px 0; border: 0 !important; background: none; vertical-align: middle; line-height: 1.45; }
.agd-od tbody tr td { padding-top: 12px !important; padding-bottom: 12px !important; border-bottom: 1px solid var(--line-2) !important; }
.agd-od tbody .product-total { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 12px !important; }
.agd-od__item { display: flex; align-items: center; gap: 12px; }
.agd-od__thumb { position: relative; flex: none; width: 60px; height: 60px; }
.agd-od__thumb img { width: 60px !important; height: 60px !important; object-fit: contain; border: 1px solid var(--line-2); border-radius: 12px; background: var(--white); }
.agd-od__thumb em { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--g800); color: var(--white); font-style: normal; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--white); }
.agd-od__info { min-width: 0; font-size: 14px; }
.agd-od__info > a { color: var(--ink); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.agd-od__info > a:hover { color: var(--g800); }
.agd-od__info .product-quantity { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.agd-od__info .wc-item-meta { margin: 2px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.agd-od__info .wc-item-meta li, .agd-od__info .wc-item-meta p { display: inline; margin: 0; }
.agd-od__totals th { text-align: left; font-weight: 500 !important; color: var(--muted); }
.agd-od__totals td { text-align: right; font-weight: 700; }
.agd-od__totals tr:first-child th, .agd-od__totals tr:first-child td { padding-top: 14px !important; }
.agd-od__totals .shipped_via { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.agd-od__row--order_total th, .agd-od__row--order_total td { padding-top: 12px !important; border-top: 1px dashed var(--line) !important; }
.agd-od__row--order_total th { color: var(--ink) !important; font-weight: 800 !important; font-size: 16px; }
.agd-od__row--order_total td { color: var(--orange); font-size: 21px; font-weight: 800; }
.agd-od__row--order_total td small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.agd-od__row--note td { font-weight: 500; text-align: right; }
.agd-od__actions td { text-align: right; }
.agd-od__actions .button { margin-left: 6px; }

/* Customer details card */
.agd-cd .woocommerce-column__title { font-size: 17px; font-weight: 800; margin: 0 0 10px; }
.agd-cd address.agd-cd__addr { margin: 0; padding: 12px 14px !important; border: 0 !important; border-radius: 12px; background: var(--g050); font-style: normal; line-height: 1.6; color: var(--ink); }
.agd-cd address p { display: flex; align-items: center; gap: 8px; margin: 6px 0 0 !important; padding: 0 !important; font-weight: 600; }
.agd-cd address p::before { display: none !important; }
.agd-cd address p .agd-icon { color: var(--g600); }
.agd-cd .agd-cd__cols { display: grid; gap: 14px; }
.agd-cd .agd-cd__cols .col-1, .agd-cd .agd-cd__cols .col-2 { float: none; width: auto; }
@media (min-width: 640px) { .agd-cd .agd-cd__cols { grid-template-columns: 1fr 1fr; } }
.agd-cd .agd-inv-view { margin-top: 16px; }
.agd-cd .agd-inv-view h2 { font-size: 15px; font-weight: 800; margin: 0 0 8px; }
.agd-cd .agd-inv-view dl { padding: 12px 14px; border-radius: 12px; background: #FFF8E1; font-size: 14px; }

/* Checkout: error box WooCommerce adds at the top of the form spans both columns */
.agd-co > .woocommerce-NoticeGroup, .agd-co > .woocommerce-error, .agd-co > .woocommerce-message, .agd-co > .woocommerce-info { grid-column: 1 / -1; margin: 0 !important; }
.agd-co > .woocommerce-NoticeGroup .woocommerce-error { margin: 0; }

/* Shipping: one method → one line "Phí giao hàng ……… Giao tận nơi: 30.000đ" */
.agd-review tr.woocommerce-shipping-totals:not(:has(input[type="radio"])) { display: table-row; }
.agd-review tr.woocommerce-shipping-totals:not(:has(input[type="radio"])) th { padding-bottom: 7px !important; white-space: nowrap; }
.agd-review tr.woocommerce-shipping-totals:not(:has(input[type="radio"])) td { text-align: right; font-weight: 700; }
.agd-review tr.woocommerce-shipping-totals:not(:has(input[type="radio"])) #shipping_method li { display: block; padding: 0; border: 0; background: none; text-align: right; font-size: 14.5px; }
.agd-review tr.woocommerce-shipping-totals:not(:has(input[type="radio"])) #shipping_method label { display: inline; }
.agd-review tr.woocommerce-shipping-totals:not(:has(input[type="radio"])) .woocommerce-shipping-destination { display: none; }
.agd-review tr.woocommerce-shipping-totals:not(:has(input[type="radio"])) #shipping_method li, .agd-review tr.woocommerce-shipping-totals:not(:has(input[type="radio"])) #shipping_method label { white-space: nowrap; }

/* =========================================================
   1.11 – Đánh giá sản phẩm
   ========================================================= */
.agd-stars { display: inline-block; letter-spacing: 1px; line-height: 1; white-space: nowrap; background: linear-gradient(90deg, #F5A623 calc(var(--r, 0) / 5 * 100%), #D5DBD7 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.agd-rv .agd-rv__head { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.agd-rv .agd-rv__head h2 { margin: 0; font-size: 19px; }
.agd-rv .agd-rv__head h2 span { color: var(--muted); font-weight: 500; font-size: 15px; }
.agd-rv__summary { display: grid; grid-template-columns: 1fr; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.agd-rv__avg { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.agd-rv__avg small { color: var(--muted); font-size: 14px; }
.agd-rv__score { display: flex; align-items: center; gap: 6px; line-height: 1; }
.agd-rv__score b { font-size: 40px; font-weight: 800; color: var(--ink); }
.agd-rv__star { font-size: 26px; color: #F5A623; }
.agd-rv__avg .agd-stars { display: none; }
.agd-rv__write { margin-top: 8px; min-height: 46px; padding: 0 24px; }
.agd-rv__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.agd-rv__bars li { display: grid; grid-template-columns: auto minmax(0, 1fr) 28px; align-items: center; gap: 10px; }
.agd-rv__track { height: 8px; border-radius: 99px; background: #E6EBE8; overflow: hidden; }
.agd-rv__track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FFB020, #F07C00); }
.agd-rv__bars b { font-size: 13px; color: var(--muted); font-weight: 600; text-align: right; }
.agd-rv__filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.agd-rv__filter > span { color: var(--muted); font-size: 14px; margin-right: 2px; }
.agd-rv__filter button { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.agd-rv__filter button small { color: var(--muted); font-weight: 500; }
.agd-rv__filter button.is-active { border-color: var(--g600); background: var(--g050); color: var(--g800); }
.agd-rv__filter button:not(.is-active):hover { border-color: #B9C7BE; }

/* List */
.woocommerce .agd-rv ol.commentlist, .agd-rv ol.commentlist { list-style: none; margin: 0; padding: 0; }
.woocommerce #reviews #comments .agd-rv__list li.agd-rv__item, .agd-rv__list li.agd-rv__item { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.agd-rv__list li.agd-rv__item:last-child { border-bottom: 0; }
.woocommerce #reviews #comments ol.commentlist li .comment_container.agd-rv__box, .agd-rv__box { display: flex; gap: 12px; position: relative; }
.agd-rv__ava { flex: none; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: hsl(var(--h, 140) 30% 88%); color: hsl(var(--h, 140) 35% 30%); font-weight: 700; font-size: 15px; }
.agd-rv__ava--shop { background: var(--white); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.agd-rv__ava--shop img { width: 100%; height: 100%; object-fit: cover; }
.woocommerce #reviews #comments ol.commentlist li .comment-text.agd-rv__body, .agd-rv__body { flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; }
.agd-rv__who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.agd-rv__who b { font-size: 15px; color: var(--ink); }
.agd-rv__badge { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 99px; background: var(--g100); color: var(--g800); font-size: 12px; font-weight: 600; }
.agd-rv__badge--shop { background: #E7F0FF; color: #1E5FBF; }
.agd-rv__rating { margin: 4px 0 2px; }
.agd-rv__text { color: #2B352E; font-size: 15px; line-height: 1.6; }
.agd-rv__text p { margin: 4px 0 0; }
.agd-rv__pending { margin: 4px 0 0; color: #B54708; font-size: 13px; }
.agd-rv__foot { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.agd-rv__sep { margin: 0 2px 0 0; color: #B8C2BB; }
.agd-rv__foot .comment-reply-link { font-weight: 700; color: var(--g600); }
/* Replies: indented with a guide line, shop replies tinted */
.agd-rv__list .children { list-style: none; margin: 4px 0 0 21px !important; padding: 0 0 0 20px !important; border-left: 2px solid var(--line-2); }
.agd-rv__list .children li.agd-rv__item { padding: 12px 0 0 !important; border-bottom: 0 !important; }
.agd-rv__list li.is-staff > .agd-rv__box .agd-rv__body { padding: 10px 14px; border-radius: 14px; background: #F4F8FF; }
.agd-rv__nomatch { margin: 14px 0 0; color: var(--muted); }
.agd-rv__pages ul { display: flex; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; border: 0 !important; }
.agd-rv__pages li { border: 0 !important; }
.agd-rv__pages a, .agd-rv__pages span { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; background: var(--g050); font-weight: 700; }
.agd-rv__pages .current { background: var(--g600); color: var(--white); }
.agd-rv__empty { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; padding: 16px; border-radius: 16px; background: var(--g050); }
.agd-rv__empty > span { flex: none; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #FFF3D6; color: #F5A623; font-size: 24px; }
.agd-rv__empty p { margin: 0; color: var(--muted); }
.agd-rv__empty b { display: block; color: var(--ink); }

/* Form */
.agd-rv__form { margin-top: 16px; padding: 18px; border-radius: 18px; background: var(--g050); }
.agd-rv__form #respond { margin: 0; padding: 0; border: 0; background: none; }
.agd-rv__form .comment-reply-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 17px; font-weight: 800; }
.agd-rv__form .comment-reply-title small a { font-size: 13px; font-weight: 600; color: var(--muted); }
.agd-rv__note { margin: 0 0 12px !important; color: var(--muted); font-size: 13px; }
.agd-rv__form .comment-form { display: grid; grid-template-columns: 1fr; gap: 12px; }
.agd-rv__form .comment-form > p, .agd-rv__form .comment-form > div { margin: 0 !important; }
.agd-rv__form label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.agd-rv__form .required { color: var(--red); }
.agd-rv__form input[type="text"], .agd-rv__form input[type="email"], .woocommerce .agd-rv__form #comment, .agd-rv__form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #CFD8D1 !important; border-radius: 12px !important; background: var(--white); font: inherit; font-size: 15px; box-sizing: border-box; }
.agd-rv__form textarea { min-height: 110px; resize: vertical; }
.agd-rv__form input:focus, .agd-rv__form textarea:focus { outline: 0; border-color: var(--g600) !important; box-shadow: 0 0 0 3px rgba(15, 140, 69, .15); }
.agd-rv__form .comment-form-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.agd-rv__form .comment-form-rating label { width: 100%; }
.agd-rv__rate-text { font-weight: 700; color: #B86E00; font-size: 14px; }
/* WooCommerce turns the select into p.stars > a.star-1…5 */
.woocommerce .agd-rv p.stars, .agd-rv p.stars { margin: 0; line-height: 1; }
.woocommerce .agd-rv p.stars span { display: inline-flex; gap: 4px; }
.woocommerce .agd-rv p.stars a, .agd-rv p.stars a { position: relative; display: inline-block; width: 36px !important; height: 36px; margin: 0 !important; overflow: hidden; text-indent: -999em; font-size: 0 !important; text-decoration: none; }
.woocommerce .agd-rv p.stars a::before, .agd-rv p.stars a::before { content: "★" !important; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-indent: 0; font-family: inherit !important; font-size: 34px; line-height: 1; color: #D5DBD7; transition: color .1s, transform .1s; }
.woocommerce .agd-rv p.stars:hover a::before, .woocommerce .agd-rv p.stars.selected a::before { color: #F5A623; }
.woocommerce .agd-rv p.stars a:hover ~ a::before, .woocommerce .agd-rv p.stars.selected a.active ~ a::before { color: #D5DBD7; }
.woocommerce .agd-rv p.stars:hover a:hover ~ a::before { color: #D5DBD7; }
.woocommerce .agd-rv p.stars a:hover::before { transform: scale(1.12); }
.woocommerce .agd-rv p.stars a:focus-visible { outline: 3px solid #4C9AFF; outline-offset: 1px; border-radius: 6px; }
.agd-rv__form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.agd-rv__form .comment-form-cookies-consent label { display: inline; font-weight: 500; color: var(--muted); font-size: 13px; }
.agd-rv__form .form-submit { margin: 0 !important; }
.woocommerce .agd-rv__form .form-submit input#submit, .agd-rv__form .form-submit .submit { min-height: 48px; padding: 0 28px; border: 0; border-radius: 99px; background: var(--grad-btn) !important; color: var(--white) !important; font-size: 16px; font-weight: 800; cursor: pointer; }

@media (min-width: 640px) {
	.agd-rv__summary { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; }
	.agd-rv__bars { max-width: 380px; }
	.agd-rv__form .comment-form { grid-template-columns: 1fr 1fr; }
	.agd-rv__form .comment-form > .comment-notes, .agd-rv__form .comment-form > .comment-form-rating, .agd-rv__form .comment-form > .comment-form-comment, .agd-rv__form .comment-form > .comment-form-cookies-consent, .agd-rv__form .comment-form > .form-submit, .agd-rv__form .comment-form > .must-log-in, .agd-rv__form .comment-form > .agd-rv__note { grid-column: 1 / -1; }
}
.agd-rv__form .comment-form-rating select { min-height: 44px; padding: 0 36px 0 12px; border: 1px solid #CFD8D1; border-radius: 12px; background: var(--white); font-size: 15px; }
.agd-rv__sent { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; background: var(--g100); box-shadow: inset 0 0 0 1px rgba(15, 140, 69, .2); }
.agd-rv__sent > span { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--grad-btn); color: var(--white); font-weight: 800; font-size: 18px; }
.agd-rv__sent p { margin: 0; color: var(--g900); font-size: 14px; }
.agd-rv__sent b { display: block; font-size: 15px; }
@media (min-width: 640px) { .agd-rv__form .comment-form > .comment-form-author { grid-column: 1 / -1; max-width: 420px; } }
.agd-rv__mine { margin-top: 4px !important; }
.agd-rv__mine > li.agd-rv__item { padding: 14px !important; border: 1px dashed #F3C46B !important; border-radius: 16px; background: #FFFBF0; }
.agd-rv__pending { margin: 6px 0 0 !important; padding: 6px 10px; border-radius: 10px; background: #FFF1D6; color: #8A5A00 !important; font-size: 13px !important; }
.agd-rv__badge--wait { background: #FFF1D6; color: #8A5A00; margin-right: 4px; }
#reviews, .agd-rv__sent, #review_form_wrapper, #danh-gia { scroll-margin-top: 190px; }
.agd-rv__error { grid-column: 1 / -1; margin: 0 !important; padding: 10px 14px; border-radius: 12px; background: #FDECEC; color: #9B1C1C; font-size: 14px; font-weight: 600; }
.agd-rv__sent { animation: agdPop .35s ease; }
@keyframes agdPop { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
