/*
 * AGTEK store — trang chủ cửa hàng, danh mục, sản phẩm, so sánh.
 * Bố cục/cỡ chữ/màu tham chiếu store.dji.com (đo 25/09/2026); token trong assets/site/site.css (:root --dj-*).
 * Mobile-first. Chỉ nạp trên trang cửa hàng. Không phụ thuộc hover.
 */
.ag-store { color: var(--dj-text); font-family: var(--dj-font); font-size: 16px; line-height: 24px; }
.ag-store *, .ag-store *::before, .ag-store *::after { box-sizing: border-box; }
.ag-store img { max-width: 100%; height: auto; }
.ag-store h1, .ag-store h2, .ag-store h3 { color: var(--dj-head); font-weight: 600; letter-spacing: 0; text-transform: none; }
.ag-store button, .ag-store .ag-btn, .ag-store th, .ag-store td, .ag-store dt, .ag-store dd, .ag-store label, .ag-store select, .ag-store summary { text-transform: none; letter-spacing: normal; }
.ag-store a { text-decoration: none; }
.ag-wrap { max-width: calc(var(--dj-wrap) + 2 * var(--dj-gutter)); margin: 0 auto; padding: 0 var(--dj-gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
body.ag-home-page .ag-hwrap { max-width: none; }

/* ---------- Buttons ---------- */
.ag-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 48px; padding: 14px 32px; margin: 0; border-radius: 3200px; border: 1px solid transparent;
	font-size: 16px; line-height: 20px; font-weight: 400; text-align: center; cursor: pointer; white-space: nowrap;
	background: var(--dj-blue); color: #fff; transition: background-color .15s, color .15s, border-color .15s;
}
.ag-btn:hover { background: #0052cc; color: #fff; }
.ag-btn:focus-visible, .ag-option:focus-visible, .ag-filter__opt input:focus-visible + span { outline: 2px solid var(--dj-blue); outline-offset: 2px; }
.ag-btn[disabled] { opacity: .45; cursor: not-allowed; }
.ag-btn--primary { background: var(--dj-blue); color: #fff; }
.ag-btn--outline { background: #fff; color: var(--dj-blue); border-color: var(--dj-blue); }
.ag-btn--outline:hover { background: var(--dj-blue-soft); color: var(--dj-blue); }
.ag-btn--dark { background: var(--dj-black); color: #fff; }
.ag-btn--dark:hover { background: #000; }
.ag-btn--light { background: #fff; color: var(--dj-head); }
.ag-btn--light:hover { background: #f2f2f2; color: #000; }
.ag-btn--sm { min-height: 32px; padding: 6px 16px; font-size: 12px; line-height: 18px; }
.ag-btn .ag-i { width: 18px; height: 18px; }
.ag-link-btn { background: none; border: 0; padding: 8px 0; margin: 0; color: var(--dj-blue); font-size: 14px; cursor: pointer; min-height: 0; }
.ag-pill { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; margin: 0; border: 0; border-radius: 16px; background: var(--dj-blue-soft); color: var(--dj-blue); font-size: 14px; font-weight: 400; cursor: pointer; }
.ag-dot-arrow { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: #222; color: #fff; align-items: center; justify-content: center; vertical-align: -3px; }
.ag-dot-arrow .ag-i { width: 12px; height: 12px; stroke-width: 2.4; }

/* ---------- Price ---------- */
.ag-price { margin: 0; color: var(--dj-head); font-weight: 400; }
.ag-price--lg .ag-price__amount { font-size: 24px; line-height: 32px; font-weight: 600; }
.ag-price--lg .ag-price__cur { font-size: 12px; margin-left: 2px; }
.ag-price--sm { font-size: 12px; line-height: 18px; }
.ag-price--sm .ag-price__cur { margin-left: 2px; }
.ag-price__from { font-size: 12px; }
.ag-price__was { margin-left: 6px; font-size: 12px; color: #636363; white-space: nowrap; }
.ag-card .ag-price--lg .ag-price__was { display: block; margin: 2px 0 0; }
.ag-price--quote { font-size: 14px; color: var(--dj-orange); font-weight: 600; }
.ag-price--sm.ag-price--quote { font-size: 12px; }

/* ---------- Product card ---------- */
.ag-card { position: relative; display: flex; flex-direction: column; background: var(--dj-card); overflow: hidden; }
.ag-card[hidden] { display: none; }
.ag-card__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 24px; }
.ag-card__media img { width: 100%; height: 100%; object-fit: contain; margin: 0; mix-blend-mode: multiply; }
.ag-card__body { display: flex; flex-direction: column; gap: 8px; padding: 0 24px 24px; flex: 1; }
.ag-card__title { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; }
.ag-card__title a { color: var(--dj-head); }
.ag-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ag-card:hover .ag-card__title a { color: var(--dj-blue); }
.ag-card__tag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 0 6px; border: 1px solid currentColor; border-radius: 2px; font-size: 12px; line-height: 18px; color: var(--dj-orange); background: #fff; }
.ag-card__tag--giam-gia { color: var(--dj-red); }
.ag-card__tag--moi { color: var(--dj-blue); }
.ag-card__tag--het-hang { color: var(--dj-sub); }
/* Thẻ trang chủ: nền trắng, dòng mô tả nhỏ, tên lớn hơn */
.ag-card--home { background: #fff; border-radius: 4px; }
.ag-card--home .ag-card__media { background: #fafafa; aspect-ratio: 4 / 3; }
.ag-card--home .ag-card__body { padding: 12px 16px 16px; gap: 4px; }
.ag-card__eyebrow { margin: 0; font-size: 10px; line-height: 14px; color: var(--dj-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-card--home .ag-card__title { font-size: 16px; line-height: 22px; font-weight: 400; }
.ag-card--home .ag-price { margin-top: auto; padding-top: 12px; }

/* ---------- Grids ---------- */
.ag-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 768px) { .ag-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 768px) { .ag-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ag-grid--home { gap: 8px; }

/* ---------- List page (danh mục / dòng) ---------- */
.ag-list { background: #fff; }
.ag-list__head { text-align: center; padding: 32px 0 40px; }
.ag-list__head .ag-wrap > * { max-width: 800px; margin-left: auto; margin-right: auto; }
.ag-list__hero { margin: -32px 0 32px; }
.ag-list__hero img { width: 100%; max-height: 420px; object-fit: cover; }
.ag-list__title { margin: 0; font-size: 32px; line-height: 36px; }
.ag-list__intro { margin: 12px auto 0; color: var(--dj-muted); font-size: 16px; }
.ag-list__body { position: relative; display: flex; gap: 32px; padding-top: 32px; }
.ag-list__body::before { content: ""; position: absolute; top: 0; left: var(--dj-gutter); right: var(--dj-gutter); border-top: 1px solid var(--dj-line-2); }
.ag-filter { flex: 0 0 256px; padding: 0 24px; }
.ag-filter__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ag-filter__title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--dj-head); }
.ag-filter__close { display: none; background: none; border: 0; padding: 4px; margin: 0; cursor: pointer; min-height: 0; }
.ag-filter__group { border: 0; margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--dj-line-2); }
.ag-filter__group legend { text-transform: none; letter-spacing: 0; border: 0; width: auto; padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--dj-head); }
.ag-filter__opt { display: flex; align-items: center; gap: 10px; padding: 8px 0; margin: 0; font-size: 14px; font-weight: 400; color: var(--dj-text); cursor: pointer; }
.ag-filter__opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--dj-blue); }
.ag-filter__opt small { margin-left: auto; color: var(--dj-sub); font-size: 12px; }
/* Nhóm lọc lồng nhau như store.dji.com (Dòng › model, Phụ kiện › nhóm): nút mũi tên mở/đóng mục con, mục con thụt lề. */
.ag-filter__row { display: flex; align-items: center; gap: 8px; }
.ag-filter__row .ag-filter__opt { flex: 1 1 auto; }
.ag-filter__toggle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0; padding: 0; border: 0; background: none; color: var(--dj-sub); cursor: pointer; min-height: 0; }
.ag-filter__toggle .ag-i { width: 14px; height: 14px; transition: transform .2s; }
.ag-filter__toggle[aria-expanded="true"] .ag-i { transform: rotate(180deg); }
.ag-filter__opt--sub { padding-left: 26px; }
.ag-results { flex: 1 1 auto; min-width: 0; padding: 0 24px 48px; }
.ag-results__bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ag-results__count { margin: 0 auto 0 0; font-size: 14px; color: var(--dj-text); }
.ag-results__filter-btn { display: none; }
.ag-sort select { border: 0; background: transparent; color: var(--dj-blue); font-size: 14px; margin: 0; padding: 0 16px 0 0; height: 32px; box-shadow: none; cursor: pointer; }
.ag-sort span { white-space: nowrap; }
.ag-empty, .ag-empty-state, .ag-notice { padding: 24px; background: var(--dj-soft); color: var(--dj-muted); font-size: 14px; }
.ag-empty-state { margin: 0 auto 48px; text-align: center; max-width: 640px; }
@media (max-width: 1023px) {
	.ag-list__body { padding-top: 16px; }
	.ag-filter { position: fixed; inset: 0; z-index: 2147483000; overflow-y: auto; background: #fff; padding: 16px var(--dj-gutter) 32px; display: none; }
	.ag-filter.is-open { display: block; }
	.ag-filter__close { display: inline-flex; }
	.ag-results { padding: 0 0 32px; }
	.ag-results__filter-btn { display: inline-flex; }
}
@media (max-width: 767px) {
	.ag-list__title { font-size: 24px; line-height: 32px; }
	.ag-card__media { padding: 12px; }
	.ag-card__body { padding: 0 12px 16px; }
	.ag-price--lg .ag-price__amount { font-size: 18px; line-height: 24px; }
	.ag-sort span { display: none; }
}

/* ---------- Sections ---------- */
.ag-section { padding: 48px 0; scroll-margin-top: 80px; }
.ag-section + .ag-section { border-top: 1px solid var(--dj-line-2); }
.ag-section__title { margin: 0 0 24px; font-size: 32px; line-height: 40px; }
@media (max-width: 767px) { .ag-section__title { font-size: 24px; line-height: 32px; } .ag-section { padding: 32px 0; } }
.ag-chiplinks { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-chiplinks a { padding: 6px 16px; border-radius: 16px; background: var(--dj-soft); color: var(--dj-head); font-size: 14px; }
.ag-chiplinks a:hover { color: var(--dj-blue); }
.ag-seo-content { color: var(--dj-text); font-size: 14px; line-height: 24px; }
.ag-seo-content h2 { font-size: 24px; line-height: 32px; }
.ag-faq__item { border-bottom: 1px solid var(--dj-line-2); }
.ag-faq__item summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; font-size: 16px; color: var(--dj-head); list-style: none; position: relative; }
.ag-faq__item summary::-webkit-details-marker { display: none; }
.ag-faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 20px; color: var(--dj-sub); font-weight: 400; }
.ag-faq__item[open] summary::after { content: "−"; }
.ag-faq__answer { padding: 0 0 16px; font-size: 14px; }

/* ---------- PDP ---------- */
.ag-pdp { background: #fff; padding-bottom: 96px; }
.ag-buy { display: grid; gap: 24px; padding: 40px 0 48px; }
@media (min-width: 1024px) {
	.ag-buy { grid-template-columns: minmax(0, 655px) minmax(0, 500px); justify-content: space-between; gap: 45px; align-items: start; }
	.ag-gallery { position: sticky; top: 24px; }
}
@media (max-width: 1023px) { .ag-buy { padding-top: 0; } .ag-pdp > .ag-wrap:first-child { padding: 0; } .ag-buy__info { padding: 0 var(--dj-gutter); } }
.ag-gallery__stage { position: relative; }
.ag-gallery__main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--dj-card); scrollbar-width: none; }
.ag-gallery__main::-webkit-scrollbar { display: none; }
.ag-gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.ag-gallery__slide img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ag-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; margin: 0; background: rgba(0, 0, 0, .25); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; min-height: 0; }
.ag-gallery__nav:hover { background: rgba(0, 0, 0, .45); }
.ag-gallery__nav--prev { left: 16px; }
.ag-gallery__nav--prev .ag-i { transform: rotate(180deg); }
.ag-gallery__nav--next { right: 16px; }
/* Chấm ảnh như DJI: chấm 8px; rê chuột vào khung ảnh → chấm nở thành ảnh nhỏ 48px, ảnh đang xem viền đậm. */
.ag-gallery__dots { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; align-items: flex-end; }
.ag-gallery__dot { position: relative; box-sizing: content-box; display: flex; align-items: center; justify-content: center; width: 8px; height: 8px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .25); padding: 0; margin: 0 4px; background: #fff; overflow: hidden; opacity: .5; cursor: pointer; min-width: 0; min-height: 0; line-height: 0; transition: width .3s ease, height .3s ease, opacity .3s ease, border-color .3s ease; }
.ag-gallery__dot::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); pointer-events: none; transition: opacity .3s ease; }
.ag-gallery .ag-gallery__dot img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s ease; }
.ag-gallery__dot:hover { opacity: 1; }
.ag-gallery__dot.is-active { opacity: 1; border-color: rgba(0, 0, 0, .85); }
.ag-gallery__dot.is-active::after { background: rgba(0, 0, 0, .85); }
@media (hover: hover) and (min-width: 1024px) {
	.ag-gallery__stage:hover .ag-gallery__dot { width: 48px; height: 48px; border-color: rgba(0, 0, 0, .15); }
	.ag-gallery__stage:hover .ag-gallery__dot.is-active { border-color: rgba(0, 0, 0, .85); }
	.ag-gallery__stage:hover .ag-gallery__dot::after { opacity: 0; }
	.ag-gallery__stage:hover .ag-gallery__dot img { opacity: 1; }
}
@media (max-width: 1023px) { .ag-gallery__nav { display: none; } }

.ag-buy__info { display: flex; flex-direction: column; gap: 16px; }
.ag-buy__title { margin: 0; font-size: 32px; line-height: 36px; color: #333; }
@media (max-width: 767px) { .ag-buy__title { font-size: 24px; line-height: 30px; } }
.ag-buy__tagline { font-size: 14px; color: var(--dj-muted); }
.ag-buy__tagline p { margin: 0; }
.ag-infobox { background: var(--dj-soft); border-radius: 8px; }
.ag-infobox__row { display: flex; gap: 16px; padding: 16px 24px; font-size: 14px; line-height: 24px; color: var(--dj-text); }
.ag-infobox__row + .ag-infobox__row { border-top: 1px solid var(--dj-line-2); }
.ag-infobox__row .ag-i { width: 20px; height: 20px; margin-top: 2px; color: #333; }
.ag-infobox ul { list-style: none; margin: 0; padding: 0; }
.ag-infobox li { margin: 0; }
.ag-infobox a { color: var(--dj-text); }
.ag-options { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.ag-options__title { margin: 0 0 8px; font-size: 20px; line-height: 24px; }
.ag-option { display: flex; align-items: center; gap: 24px; width: 100%; padding: 16px 24px; margin: 0; border: 1px dashed var(--dj-line-2); border-radius: 4px; background: #fff; text-align: left; cursor: pointer; min-height: 0; font: inherit; color: inherit; }
.ag-option { transition: border-color .2s ease; }
.ag-option:hover { border-color: var(--dj-blue); }
.ag-option.is-selected { border: 2px dashed var(--dj-blue); padding: 15px 23px; }
.ag-option__img { flex: 0 0 88px; }
.ag-option__img img { width: 88px; height: 88px; object-fit: contain; }
.ag-option__text { display: flex; flex-direction: column; gap: 6px; }
.ag-option__name { font-size: 18px; line-height: 24px; color: var(--dj-head); }
.ag-option__price .ag-price { font-size: 16px; }
.ag-option__stock { font-size: 14px; color: var(--dj-text); }
.ag-option__stock.is-out { color: var(--dj-red); }
.ag-buy__contact { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-accordion { background: var(--dj-soft); border-radius: 8px; }
.ag-accordion summary { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; font-size: 14px; color: var(--dj-head); cursor: pointer; list-style: none; }
.ag-accordion summary::-webkit-details-marker { display: none; }
.ag-accordion summary .ag-i { width: 16px; height: 16px; color: var(--dj-blue); }
.ag-accordion[open] summary .ag-i { transform: rotate(180deg); }
.ag-accordion > div { padding: 0 24px 20px; font-size: 14px; }
.ag-accordion p { margin: 0 0 12px; }
/* Form WooCommerce: giữ để xử lý giỏ hàng; nút/ô chọn thật ẩn (thẻ phiên bản + thanh mua điều khiển) */
.ag-woo-form form.cart { margin: 0; }
.ag-woo-form .variations, .ag-woo-form .reset_variations, .ag-woo-form .single_add_to_cart_button, .ag-woo-form .quantity { display: none !important; }
.ag-woo-form .woocommerce-variation-availability, .ag-woo-form .woocommerce-variation-price { display: none; }
.ag-woo-form .woocommerce-variation-description { font-size: 14px; color: var(--dj-muted); }

/* Feature tiles */
/* Trang SP — "Tìm hiểu kỹ hơn" (store.dji.com "Take a Closer Look"): lưới 12 cột gap 16, ô cao 480, ảnh/video phủ,
   chữ trắng góc trên trái trên dải tối; "Khoảnh khắc" ("Moments By You"): video 1200×600, tab dưới video, mô tả. */
.ag-pdp-head { margin: 0 0 32px; font-size: 32px; line-height: 40px; font-weight: 600; text-align: center; color: var(--dj-head); }
.ag-closer { padding: 64px 0 32px; background: #fff; }
.ag-closer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.ag-closer__item { position: relative; grid-column: span 12; height: 480px; overflow: hidden; background: #111; }
.ag-closer__item--7 { grid-column: span 7; }
.ag-closer__item--5 { grid-column: span 5; }
.ag-closer__item--6 { grid-column: span 6; }
.ag-closer__media, .ag-store .ag-closer__media img, .ag-closer__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ag-closer__video { opacity: 0; transition: opacity .4s; }
.ag-closer__video.is-playing { opacity: 1; }
.ag-closer__item::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 200px; background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0)); pointer-events: none; }
.ag-closer__text { position: relative; z-index: 1; padding: 32px 27px; max-width: 900px; }
.ag-store .ag-closer__text h3 { margin: 0 0 8px; font-size: 28px; line-height: 36px; font-weight: 600; color: #fff; }
.ag-closer__text p { margin: 0; font-size: 16px; line-height: 20px; color: rgba(255, 255, 255, .85); }
@media (max-width: 767px) {
	.ag-closer { padding: 40px 0 16px; }
	.ag-closer__grid { gap: 8px; }
	.ag-closer__item, .ag-closer__item--7, .ag-closer__item--5, .ag-closer__item--6 { grid-column: span 12; height: auto; aspect-ratio: 3 / 4; }
	.ag-closer__text { padding: 20px; }
	.ag-store .ag-closer__text h3 { font-size: 22px; line-height: 28px; }
	.ag-closer__text p { font-size: 14px; }
	.ag-pdp-head { font-size: 24px; line-height: 32px; margin-bottom: 20px; }
}
.ag-moments__stage { position: relative; aspect-ratio: 2 / 1; background: #000; overflow: hidden; }
.ag-moments__panel, .ag-moments__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.ag-moments__panel[hidden] { display: none; }
.ag-moments__video { object-fit: cover; }
.ag-moments__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 22px; cursor: pointer; min-height: 0; }
.ag-moments__play[hidden] { display: none; }
.ag-moments__tabs { display: flex; justify-content: safe center; gap: 20px; margin: 24px auto 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--dj-line); width: fit-content; max-width: 100%; }
.ag-moments__tab { flex: 0 0 auto; padding: 0 0 8px; margin: 0 0 -1px; background: none; border: 0; border-bottom: 2px solid transparent; font-size: 16px; line-height: 24px; color: var(--dj-sub); cursor: pointer; min-height: 0; white-space: nowrap; }
.ag-moments__tab.is-active { color: var(--dj-head); border-bottom-color: var(--dj-head); }
.ag-moments__desc { max-width: 1000px; margin: 24px auto 0; font-size: 16px; line-height: 24px; text-align: center; color: var(--dj-text); }
@media (max-width: 767px) { .ag-moments__stage { aspect-ratio: 3 / 4; } .ag-moments__tabs { justify-content: flex-start; } .ag-moments__tab { font-size: 14px; } .ag-moments__desc { font-size: 14px; } }

.ag-features { padding: 0 0 16px; }
.ag-features__grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .ag-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ag-feature.is-wide { grid-column: 1 / -1; } }
.ag-feature { position: relative; overflow: hidden; background: var(--dj-soft); min-height: 200px; display: flex; }
.ag-feature.has-image { background: #111; min-height: 360px; }
.ag-feature__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ag-feature__text { position: relative; padding: 32px; max-width: 900px; }
.ag-feature h2 { margin: 0 0 8px; font-size: 32px; line-height: 40px; }
.ag-feature p { margin: 0; font-size: 16px; }
.ag-feature.has-image h2, .ag-feature.has-image p { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
@media (max-width: 767px) { .ag-feature h2 { font-size: 22px; line-height: 28px; } .ag-feature__text { padding: 24px; } }
.ag-video__play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; margin: 0; border: 0; overflow: hidden; background: #000; cursor: pointer; }
.ag-video__play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.ag-video__play::after { content: "▶"; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 26px; line-height: 72px; text-align: center; }
.ag-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.ag-content { font-size: 16px; line-height: 28px; }

.ag-box { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 768px) { .ag-box { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ag-box li { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 14px; }
.ag-box__img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; background: var(--dj-card); }
.ag-box__img img { max-width: 80%; max-height: 80%; object-fit: contain; }
.ag-box__qty { color: var(--dj-sub); }
/* "Trong hộp có gì" như store.dji.com "In the Box": tiêu đề giữa, 6 cột, ô ảnh nền #f7f9fa, tên căn trái + "× n" dưới */
#trong-hop .ag-section__title { text-align: center; margin-bottom: 32px; }
@media (min-width: 1024px) { #trong-hop .ag-box { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
#trong-hop .ag-box li { align-items: flex-start; text-align: left; gap: 4px; }
#trong-hop .ag-box__img { background: #f7f9fa; margin-bottom: 12px; }
#trong-hop .ag-box__name { font-size: 16px; line-height: 20px; color: var(--dj-head); }
#trong-hop .ag-box__qty { font-size: 12px; }
.ag-specs__group { display: grid; gap: 8px; padding: 24px 0; border-top: 1px solid var(--dj-line-2); }
@media (min-width: 768px) { .ag-specs__group { grid-template-columns: 280px minmax(0, 1fr); gap: 32px; } }
.ag-specs__group h3 { margin: 0; font-size: 18px; line-height: 24px; }
.ag-specs dl { margin: 0; }
.ag-specs__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; padding: 8px 0; font-size: 14px; }
.ag-specs__row > * { min-width: 0; overflow-wrap: anywhere; } /* dãy dài không dấu cách (3840×2160@24/25/30/…) tự xuống dòng trên mobile */
.ag-specs dt { margin: 0; font-weight: 400; color: #5c6064; opacity: 1; }
.ag-specs dd { margin: 0; color: var(--dj-head); }
.ag-downloads { margin: 0; padding-left: 20px; font-size: 14px; }
.ag-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .ag-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ag-posts li { margin: 0; }
.ag-posts a { display: flex; flex-direction: column; gap: 12px; color: var(--dj-head); font-size: 16px; }
.ag-posts img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* Thanh mua dưới đáy */
.ag-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; box-shadow: 0 -1px 0 var(--dj-line), 0 -8px 24px rgba(0, 0, 0, .06); }
.ag-buybar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.ag-buybar__stock { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--dj-text); }
.ag-buybar__stock.is-out { color: var(--dj-red); }
.ag-buybar__stock .ag-i { color: var(--dj-sub); }
.ag-buybar__right { display: flex; align-items: center; gap: 16px; }
.ag-buybar__price .ag-price { font-size: 12px; }
.ag-buybar__price .ag-price__amount { font-size: 20px; line-height: 28px; font-weight: 600; }
@media (max-width: 767px) {
	.ag-buybar__inner { min-height: 64px; gap: 8px; }
	.ag-buybar__stock { display: none; }
	.ag-buybar__right { width: 100%; }
	.ag-buybar__price { margin-right: auto; }
	.ag-buybar .ag-btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }
	.ag-buybar__add { display: none; }
}
body.ag-has-buybar .ag-footer { padding-bottom: 84px; }
/* Nút Zalo/gọi nổi (plugin button-contact-vr) — đẩy lên trên thanh mua */
body.ag-has-buybar #button-contact-vr { bottom: 84px !important; }
@media (max-width: 767px) { body.ag-has-buybar #button-contact-vr { bottom: 64px !important; } }

/* ---------- Store home (đo theo store.dji.com 29/09/2026, viewport 1440) ---------- */
.ag-home { background: var(--dj-bg); padding-bottom: 64px; }
.ag-home__title { margin: 0; padding: 32px 0 0; font-size: 32px; line-height: 40px; }
.ag-home-section { padding: 64px 0 0; }
.ag-home-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.ag-home-section__head h2 { margin: 0; font-size: 32px; line-height: 36px; }
.ag-home-section__head a { font-size: 14px; color: var(--dj-text); }
@media (max-width: 767px) { .ag-home-section { padding-top: 40px; } .ag-home-section__head { margin-bottom: 16px; } .ag-home-section__head h2 { font-size: 24px; line-height: 32px; } }

/* Hero: slide tràn màn hình 640px, chữ trắng (ảnh chữ tên SP), nút trắng, thanh chấm dưới */
.ag-hero { position: relative; overflow: hidden; background: #000; }
.ag-hero__track { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.ag-hero__slide { position: relative; flex: 0 0 100%; height: 640px; overflow: hidden; }
.ag-hero__media, .ag-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-hero__slide.has-shade::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, 0) 70%); }
.ag-hero__text { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ag-store .ag-hero__title { margin: 0; max-width: 760px; font-size: 56px; line-height: 64px; font-weight: 600; color: #fff; }
.ag-hero__title.has-logo { line-height: 0; }
.ag-hero__logo { display: block; width: auto; height: 64px; max-width: min(760px, 100%); object-fit: contain; object-position: left center; }
.ag-hero__sub { margin: 24px 0 0; max-width: 720px; font-size: 28px; line-height: 32px; color: #fff; }
.ag-hero__btn { margin-top: 48px; }
.ag-hero__dots { position: absolute; left: 50%; bottom: 10px; z-index: 3; display: flex; gap: 0; transform: translateX(-50%); }
.ag-hero__dot { display: block; width: 48px; height: 24px; padding: 10px 2px; margin: 0; background: none; border: 0; cursor: pointer; min-height: 0; }
.ag-hero__dot span { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .45); overflow: hidden; }
.ag-hero__dot.is-active span { background: #fff; }
@media (min-width: 768px) and (max-width: 1023px) { .ag-hero__slide { height: 520px; } .ag-store .ag-hero__title { font-size: 44px; line-height: 52px; } .ag-hero__logo { height: 52px; } .ag-hero__sub { font-size: 22px; line-height: 28px; } }
@media (max-width: 767px) {
	.ag-hero__slide { height: auto; aspect-ratio: 2301 / 1470; min-height: 440px; }
	.ag-hero__text { justify-content: flex-end; padding-bottom: 48px; }
	.ag-store .ag-hero__title { font-size: 28px; line-height: 36px; }
	.ag-hero__logo { height: 32px; }
	.ag-hero__sub { margin-top: 12px; font-size: 16px; line-height: 24px; }
	.ag-hero__btn { margin-top: 24px; min-height: 40px; padding: 10px 24px; font-size: 14px; }
	.ag-hero__slide.has-shade::before { background: linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 60%); }
}
@media (prefers-reduced-motion: reduce) { .ag-hero__track { transition: none; } }

/* Icon danh mục ngay dưới hero (store.dji.com "nav-icon-card"): nền trắng, mục 120px, icon 80px, chữ 12/16, trượt ngang */
/* Hàng icon danh mục như "nav-icon-card" của store.dji.com: 11 cột trên một màn hình, khoảng cách 4/20/35px và icon 80/88/96px
   theo bề rộng (<1504 / <1920 / ≥1920); nút tròn 72px chỉ hiện khi rê chuột vào hàng (≥1200px); rê vào mục → gạch chân. */
.ag-navicons { --nc-gap: 4px; --nc-pad: 32px; --nc-w: 120px; --nc-icon: 80px; position: relative; background: #fff; padding: 8px 0 0; }
.ag-navicons__list.ag-hscroll__track { display: flex; gap: var(--nc-gap); margin: 0; padding: 0 var(--nc-pad) 24px; list-style: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 0 var(--nc-pad); scrollbar-width: none; overscroll-behavior-x: contain; }
.ag-navicons__list::-webkit-scrollbar { display: none; }
.ag-navicons__list li { flex: 0 0 calc((100% - 10 * var(--nc-gap)) / 11); min-width: 0; margin: 0; scroll-snap-align: start; }
.ag-navicons__item { display: block; width: var(--nc-w); min-height: calc(var(--nc-icon) + 32px); margin-left: 8px; color: rgba(0, 0, 0, .85); text-align: center; letter-spacing: -.02em; }
.ag-home .ag-navicons__img { display: inline-block; width: var(--nc-icon); height: var(--nc-icon); object-fit: contain; vertical-align: middle; }
.ag-navicons__label { display: block; font-size: 12px; line-height: 16px; }
.ag-navicons__item:hover .ag-navicons__label { text-decoration: underline; }
.ag-navicons__arrow { position: absolute; top: 50%; z-index: 2; display: none; align-items: center; justify-content: center; width: 72px; height: 72px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .1); box-shadow: none; line-height: 0; cursor: pointer; opacity: 0; transform: translateY(-50%); transition: opacity .3s ease, visibility .3s ease, background-color .3s ease; }
.ag-navicons__arrow:hover { background: rgba(0, 0, 0, .1); box-shadow: none; }
.ag-navicons__arrow:active { background: rgba(0, 0, 0, .12); }
.ag-navicons__arrow--prev { left: 32px; }
.ag-navicons__arrow--next { right: 32px; }
@media (hover: hover) and (min-width: 1200px) {
	.ag-navicons__arrow { display: flex; }
	.ag-navicons:hover .ag-navicons__arrow { opacity: 1; }
	.ag-navicons .ag-navicons__arrow[hidden] { display: flex; opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (min-width: 1504px) { .ag-navicons { --nc-gap: 20px; --nc-pad: max(32px, calc((100% - 1440px) / 2)); --nc-w: 130px; --nc-icon: 88px; } }
@media (min-width: 1920px) { .ag-navicons { --nc-gap: 35px; --nc-pad: calc((100% - 1660px) / 2); --nc-w: 140px; --nc-icon: 96px; } .ag-navicons__label { font-size: 14px; line-height: 24px; } }
/* Dưới 1200px DJI không còn 11 cột vừa màn hình (mobile DJI ẩn hẳn hàng này) → AGTEK giữ hàng cuộn ngang, cột cố định. */
@media (max-width: 1199px) { .ag-navicons__list li { flex-basis: 120px; } .ag-navicons__item { margin-left: 0; } }
@media (max-width: 767px) { .ag-navicons { --nc-gap: 4px; --nc-pad: var(--dj-gutter); --nc-w: 88px; --nc-icon: 64px; } .ag-navicons__list.ag-hscroll__track { padding-bottom: 16px; scroll-snap-type: none; } .ag-navicons__list li { flex-basis: 88px; } }

/* Trượt ngang (Nổi bật, thẻ ảnh lớn) — tràn mép phải như DJI */
.ag-hscroll { position: relative; }
.ag-hscroll__track { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--dj-gutter); padding: 8px var(--dj-gutter) 32px; margin: -8px 0 -32px; scrollbar-width: none; } /* đệm trên/dưới (bù bằng margin âm, như CardsScroller của DJI): khung cuộn ngang cắt tràn dọc → chừa chỗ cho ảnh trượt lên và bóng thẻ khi rê chuột */
.ag-hscroll__track::-webkit-scrollbar { display: none; }
.ag-hscroll__track > * { flex: 0 0 auto; scroll-snap-align: start; }
.ag-hscroll__btn { position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; margin: -20px 0 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #000; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); display: flex; align-items: center; justify-content: center; cursor: pointer; min-height: 0; }
.ag-hscroll__btn[hidden] { display: none; }
.ag-hscroll__btn--prev { left: 16px; }
.ag-hscroll__btn--next { right: 16px; }
@media (hover: none) { .ag-hscroll__btn { display: none; } }

/* Nổi bật: thẻ 448×523 — ảnh SP tách nền nhô 48px trên thẻ, ảnh nền trên, màu nền dưới */
.ag-hot { position: relative; display: block; width: 448px; height: 523px; color: #fff; }
.ag-hot__box { position: absolute; left: 0; right: 0; top: 48px; bottom: 0; overflow: hidden; border-radius: 6px; background: var(--ag-hot, #111); }
.ag-hot__bg { position: absolute; left: 0; top: 0; width: 100%; height: 299px; object-fit: cover; }
.ag-hot__mask { position: absolute; left: 0; right: 0; top: 200px; height: 100px; background: linear-gradient(rgba(0, 0, 0, 0), var(--ag-hot, #111)); }
.ag-hot__product { position: absolute; left: 23px; top: 0; z-index: 1; width: 402px; object-fit: contain; object-position: top center; pointer-events: none; transition: transform .4s; }
.ag-hot:hover .ag-hot__product { transform: translateY(-8px); }
.ag-hot__text { position: absolute; left: 32px; right: 32px; top: 299px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.ag-hot__title { font-size: 28px; line-height: 32px; font-weight: 600; }
.ag-hot__sub { font-size: 16px; line-height: 20px; color: rgba(255, 255, 255, .65); }
.ag-hot__foot { position: absolute; left: 32px; right: 32px; bottom: 32px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ag-hot__price { font-size: 16px; line-height: 20px; }
.ag-hot__btn { display: inline-flex; align-items: center; height: 40px; padding: 10px 16px; border-radius: 3200px; background: #fff; color: var(--dj-text); font-size: 16px; line-height: 20px; white-space: nowrap; }
.ag-hot:hover .ag-hot__btn { background: #f2f2f2; }
@media (max-width: 767px) {
	.ag-hot { width: 300px; height: 400px; }
	.ag-hot__box { top: 32px; }
	.ag-hot__bg { height: 200px; }
	.ag-hot__mask { top: 120px; height: 80px; }
	.ag-hot__product { left: 20px; width: 260px; }
	.ag-hot__text { left: 20px; right: 20px; top: 200px; }
	.ag-hot__title { font-size: 22px; line-height: 28px; }
	.ag-hot__sub { font-size: 14px; }
	.ag-hot__foot { left: 20px; right: 20px; bottom: 20px; }
	.ag-hot__btn { height: 36px; padding: 8px 14px; font-size: 14px; }
}

/* Vì sao mua: lưới 4 cột, cao 400 — cột 1 một ô, cột 2–3 hai ô bằng nhau, cột 4 ô thấp + ô cao */
.ag-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; height: 400px; }
.ag-why__col { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.ag-why__tile { position: relative; display: flex; flex-direction: column; align-items: center; flex: 1 1 0; min-height: 0; overflow: hidden; background: #fff; border-radius: 6px; color: var(--dj-head); text-align: center; }
.ag-why__col--4 .ag-why__tile:first-child { flex: 0 0 128px; }
.ag-why__title { position: relative; z-index: 1; display: block; padding: 16px 16px 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.ag-why__img { display: block; flex: 1 1 auto; width: 100%; min-height: 0; object-fit: cover; object-position: center bottom; margin-top: 8px; }
.ag-why__col--1 .ag-why__img { position: absolute; inset: 0; height: 100%; margin: 0; object-position: center; }
.ag-why__tile.is-text { justify-content: center; }
.ag-why__tile.is-text .ag-why__title { padding-top: 0; }
/* Số lớn (hotline, năm kinh nghiệm) co theo bề rộng ô để không bị cắt ở tablet/desktop hẹp. */
.ag-why__tile.is-text { container-type: inline-size; }
.ag-why__big { display: block; max-width: 100%; padding: 4px 12px 0; font-size: clamp(18px, 13cqi, 44px); line-height: 1.2; font-weight: 800; font-style: italic; color: #f36c21; white-space: nowrap; }
/* Rê chuột như thẻ "CardItem" của DJI: ảnh phóng 1.05 (0,6s) + bóng thẻ, chữ không đổi màu. */
.ag-why__tile { transition: box-shadow .3s ease; }
/* Flatsome: a:hover { color: var(--fs-…-hover) } = currentColor → lấy màu phần tử cha (xám) — giữ nguyên màu chữ của thẻ. */
.ag-store a.ag-why__tile:hover { color: var(--dj-head); }
.ag-store a.ag-navicons__item:hover { color: rgba(0, 0, 0, .85); }
.ag-store a.ag-hot:hover, .ag-store a.ag-gcard:hover { color: #fff; }
.ag-store a.ag-guidecard:hover, .ag-store a.ag-morecard:hover, .ag-store a.ag-lcard:hover { color: var(--dj-head); }
.ag-why__img { transition: transform .6s ease; }
@media (hover: hover) and (min-width: 1200px) {
	.ag-why__tile:has(.ag-why__img):hover { box-shadow: 0 8px 16px rgba(0, 0, 0, .1); }
	.ag-why__tile:hover .ag-why__img { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) { .ag-why__img { transition: none; } }
@media (max-width: 1023px) {
	.ag-why { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; gap: 8px; }
	.ag-why__col { display: contents; }
	.ag-why__tile, .ag-why__col--4 .ag-why__tile:first-child { flex: none; height: 200px; }
	.ag-why__col--1 .ag-why__tile { grid-row: span 2; height: auto; min-height: 408px; }
}
@media (max-width: 767px) { .ag-why__title { font-size: 14px; line-height: 20px; padding: 12px 12px 0; } }

/* Nhóm SP: banner 480 (ảnh/video), hàng 4 cột gap 16 */
.ag-showcase__banner { position: relative; overflow: hidden; display: flex; align-items: center; height: 480px; border-radius: 6px; background: linear-gradient(120deg, #eef1f5, #dfe6ef); }
.ag-showcase__poster, .ag-showcase__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ag-showcase__video { opacity: 0; transition: opacity .4s; }
.ag-showcase__video.is-playing { opacity: 1; }
.ag-showcase__banner.has-image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 55%); }
.ag-showcase__product { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); width: 40%; max-height: 90%; object-fit: contain; mix-blend-mode: multiply; }
.ag-showcase__text { position: relative; z-index: 2; padding: 0 64px; max-width: 560px; display: flex; flex-direction: column; align-items: flex-start; }
.ag-store .ag-showcase__text h3 { margin: 0; font-size: 32px; line-height: 36px; }
.ag-showcase__sub { margin: 8px 0 0; font-size: 18px; line-height: 28px; color: var(--dj-muted); }
.ag-showcase__price { margin: 32px 0 0; font-size: 18px; line-height: 24px; color: var(--dj-head); }
.ag-showcase__btn { margin-top: 64px; }
.ag-showcase__banner.has-image .ag-showcase__text h3, .ag-showcase__banner.has-image .ag-showcase__price { color: #fff; }
.ag-showcase__banner.has-image .ag-showcase__sub { color: rgba(255, 255, 255, .65); }
.ag-showcase__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.ag-showcase.is-bannerless .ag-showcase__row { margin-top: 0; }
@media (max-width: 1023px) { .ag-showcase__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; } }
@media (max-width: 767px) {
	.ag-showcase__banner { height: auto; aspect-ratio: 4 / 5; max-height: 520px; align-items: flex-end; }
	.ag-showcase__banner.has-image::before { background: linear-gradient(0deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 60%); }
	.ag-showcase__product { position: absolute; top: 16px; transform: none; left: 20%; width: 60%; max-height: 50%; }
	.ag-showcase__text { padding: 0 20px 24px; }
	.ag-store .ag-showcase__text h3 { font-size: 24px; line-height: 32px; }
	.ag-showcase__sub { font-size: 14px; line-height: 20px; margin-top: 4px; }
	.ag-showcase__price { margin-top: 12px; font-size: 16px; }
	.ag-showcase__btn { margin-top: 16px; min-height: 40px; padding: 10px 24px; font-size: 14px; }
}

/* Thẻ SP trong nhóm: 328×484, ảnh vuông trượt ngang (SP tách nền → ảnh cảnh) như store.dji.com: rê chuột → thẻ nổi bóng
   + 2 nút tròn 32px (đen 20%, mũi tên trắng) cách mép 7px; chấm (thanh) bấm được; mobile vuốt. Cả thẻ là link (tên SP). */
.ag-scard { position: relative; display: flex; flex-direction: column; min-height: 484px; background: #fff; border-radius: 6px; overflow: hidden; color: var(--dj-head); transition: box-shadow .3s; }
.ag-scard:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
.ag-scard__media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.ag-scard__track { display: flex; height: 100%; transition: transform .3s ease; touch-action: pan-y; }
.ag-home .ag-scard__img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.ag-scard__arrow { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: -16px 0 0; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .2); cursor: pointer; opacity: 0; transition: opacity .3s, background-color .3s; min-height: 0; }
.ag-scard__arrow--prev { left: 7px; }
.ag-scard__arrow--next { right: 7px; }
.ag-scard:hover .ag-scard__arrow, .ag-scard__arrow:focus-visible { opacity: 1; }
.ag-scard__arrow:hover { background: rgba(0, 0, 0, .35); }
.ag-scard__dots { position: absolute; left: 50%; bottom: 8px; z-index: 2; display: flex; transform: translateX(-50%); }
.ag-scard__dots button { display: block; width: 16px; height: 16px; margin: 0; padding: 7px 0; border: 0; background: none; cursor: pointer; min-height: 0; }
.ag-scard__dots button::before { content: ""; display: block; height: 2px; background: rgba(0, 0, 0, .15); }
.ag-scard__dots button.is-active::before { background: rgba(0, 0, 0, .85); }
.ag-scard__body { display: flex; flex-direction: column; flex: 1; padding: 16px 32px 32px; }
.ag-scard__eyebrow { font-size: 14px; line-height: 20px; color: var(--dj-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-store .ag-scard__title { margin: 4px 0 0; font-size: 24px; line-height: 28px; font-weight: 600; color: var(--dj-head); }
.ag-scard__link { color: inherit; }
.ag-scard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ag-scard__price { margin-top: auto; padding-top: 16px; font-size: 16px; line-height: 20px; color: var(--dj-head); }
@media (hover: none) { .ag-scard__arrow { display: none; } }
@media (max-width: 767px) { .ag-scard { min-height: 0; } .ag-scard__body { padding: 12px 16px 16px; } .ag-store .ag-scard__title { font-size: 16px; line-height: 22px; } .ag-scard__eyebrow { font-size: 12px; } .ag-scard__price { font-size: 14px; } }

/* Cột phải: thẻ hướng dẫn (ảnh nền dưới) + "Tất cả …" */
.ag-showcase__side { display: flex; flex-direction: column; gap: 16px; }
.ag-guidecard, .ag-morecard { position: relative; display: flex; overflow: hidden; background: #fff; border-radius: 6px; color: var(--dj-head); }
.ag-guidecard { flex: 1; flex-direction: column; gap: 4px; padding: 32px; min-height: 240px; }
.ag-guidecard__img { position: absolute; left: 0; top: 0; width: 100%; } /* PNG trong suốt: căn trên, cao tự nhiên — chữ nằm trên vùng trống (như DJI) */
.ag-guidecard__eyebrow, .ag-guidecard__title { position: relative; z-index: 1; }
.ag-guidecard__eyebrow { font-size: 14px; line-height: 20px; color: var(--dj-muted); }
.ag-guidecard__title { font-size: 24px; line-height: 28px; font-weight: 600; }
.ag-guidecard .ag-dot-arrow { width: 22px; height: 22px; vertical-align: -2px; }
.ag-morecard { flex: 0 0 80px; align-items: center; justify-content: center; gap: 8px; padding: 24px; font-size: 20px; line-height: 24px; font-weight: 600; }
/* Rê chuột như LinkCard của DJI: bóng thẻ, chữ không đổi màu. */
.ag-guidecard, .ag-morecard { transition: box-shadow .3s ease; }
@media (hover: hover) and (min-width: 1200px) { .ag-guidecard:hover, .ag-morecard:hover { box-shadow: 0 4px 24px rgba(0, 0, 0, .1); } }
@media (max-width: 1023px) { .ag-showcase__side { grid-column: 1 / -1; flex-direction: row; gap: 8px; } .ag-guidecard { min-height: 200px; } .ag-morecard { flex: 1; } }
@media (max-width: 767px) { .ag-showcase__side { flex-direction: column; } .ag-guidecard { padding: 20px; min-height: 220px; } .ag-guidecard__title { font-size: 18px; line-height: 24px; } .ag-morecard { flex: 0 0 56px; font-size: 16px; } }

/* Thẻ ảnh lớn 448×480 (Education & Industry, Buying Guides) */
.ag-gcard { position: relative; display: block; width: 448px; height: 480px; overflow: hidden; border-radius: 6px; background: #1d1d1f; color: #fff; }
.ag-gcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ag-gcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .15) 40%, rgba(0, 0, 0, 0) 60%); }
/* Rê chuột như GuideCard của DJI: ảnh phóng 1.05 + bóng thẻ, chữ không đổi màu. */
.ag-gcard { transition: box-shadow .3s ease; }
@media (hover: hover) and (min-width: 1200px) { .ag-gcard:hover { box-shadow: 0 8px 16px rgba(0, 0, 0, .1); } .ag-gcard:hover .ag-gcard__img { transform: scale(1.05); } }
.ag-gcard__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 32px; }
.ag-gcard__title { font-size: 28px; line-height: 32px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ag-gcard__sub { font-size: 18px; line-height: 28px; color: rgba(255, 255, 255, .85); }
@media (max-width: 767px) { .ag-gcard { width: 280px; height: 340px; } .ag-gcard__text { padding: 20px; } .ag-gcard__title { font-size: 20px; line-height: 26px; } .ag-gcard__sub { font-size: 14px; line-height: 20px; } }

/* Thẻ liên kết nhỏ (Services) */
.ag-lcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ag-lcard { display: flex; align-items: center; gap: 16px; min-height: 117px; padding: 24px 32px; background: #fff; border-radius: 6px; color: var(--dj-head); }
.ag-lcard__text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.ag-lcard__eyebrow { font-size: 14px; line-height: 20px; color: var(--dj-muted); }
.ag-lcard__title { font-size: 18px; line-height: 24px; font-weight: 600; }
.ag-lcard__img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 4px; object-fit: cover; }
.ag-lcard { transition: box-shadow .3s ease; }
@media (hover: hover) and (min-width: 1200px) { .ag-lcard:hover { box-shadow: 0 4px 24px rgba(0, 0, 0, .1); } }
@media (max-width: 1023px) { .ag-lcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
@media (max-width: 767px) { .ag-lcards { grid-template-columns: 1fr; } .ag-lcard { min-height: 88px; padding: 16px 20px; } .ag-lcard__title { font-size: 16px; } }

.ag-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 768px) { .ag-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ag-tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; padding: 20px 16px; min-height: 180px; background: #fff; border-radius: 6px; color: var(--dj-head); font-size: 14px; text-align: center; }
.ag-tile img { max-height: 110px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.ag-tile:hover { color: var(--dj-blue); }
.ag-usp-strip { display: grid; gap: 8px; }
@media (min-width: 768px) { .ag-usp-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ag-usp-strip > div { padding: 24px 16px; background: #fff; border-radius: 6px; text-align: center; font-size: 14px; }
.ag-usp-strip strong { display: block; margin-bottom: 4px; font-weight: 600; color: var(--dj-head); }
/* Ảnh nền/ảnh phủ trong thẻ trang chủ: thắng rule chung `.ag-store img { height: auto }` */
.ag-home .ag-hot__bg { height: 299px; }
.ag-home .ag-hot__product { height: 523px; }
.ag-home .ag-gcard__img, .ag-home .ag-showcase__poster, .ag-home .ag-why__col--1 .ag-why__img { height: 100%; }
@media (max-width: 767px) { .ag-home .ag-hot__bg { height: 200px; } .ag-home .ag-hot__product { height: 338px; } }
.ag-home .ag-posts a { background: #fff; border-radius: 6px; overflow: hidden; padding-bottom: 16px; }
.ag-home .ag-posts span { padding: 0 16px; }
.ag-banner { display: block; border-radius: 6px; overflow: hidden; }
.ag-banner img { width: 100%; display: block; }

/* ---------- Compare ---------- */
.ag-compare { background: #fff; padding: 32px 0 64px; }
.ag-compare .ag-list__title { text-align: center; margin-bottom: 24px; }
.ag-compare__pick { display: grid; gap: 8px; margin: 0 0 32px; }
@media (min-width: 768px) { .ag-compare__pick { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; } }
.ag-compare__pick select { height: 48px; border-radius: 4px; margin: 0; width: 100%; }
.ag-compare__scroll { overflow-x: auto; }
.ag-compare__table { width: 100%; min-width: 640px; border-collapse: collapse; margin: 0; }
.ag-compare__table th, .ag-compare__table td { padding: 12px 16px; border-bottom: 1px solid var(--dj-line-2); text-align: left; vertical-align: top; font-size: 14px; }
.ag-compare__table thead th { vertical-align: bottom; border-bottom: 0; }
.ag-compare__table thead a { display: flex; flex-direction: column; gap: 8px; color: var(--dj-head); font-size: 16px; font-weight: 600; }
.ag-compare__table thead img { width: 160px; background: var(--dj-card); mix-blend-mode: multiply; }
.ag-compare__table tbody th[scope="row"] { color: var(--dj-sub); font-weight: 400; width: 25%; }
.ag-compare__group th { padding-top: 32px; font-size: 18px; font-weight: 600; color: var(--dj-head); border-bottom: 1px solid #000 !important; }
.ag-compare__table td.is-best { color: var(--dj-blue); font-weight: 600; }
.ag-compare__legend { font-size: 12px; color: var(--dj-sub); }
.ag-compare__legend .is-best { color: var(--dj-blue); font-weight: 600; }

/* Khay so sánh (nằm trên thanh mua) */
.ag-compare-tray { position: fixed; left: 0; right: 0; bottom: 84px; z-index: 95; background: #222; color: #fff; padding: 10px 0; }
.ag-compare-tray__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ag-compare-tray__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; flex: 1 1 auto; font-size: 13px; }
.ag-compare-tray__list li { margin: 0; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 4px 12px; }
.ag-compare-tray__note { margin: 0; font-size: 13px; color: #cfd4d9; flex: 1 1 100%; }
.ag-compare-tray__note:empty { display: none; }
.ag-compare-tray .ag-link-btn { color: #cfd4d9; }
.ag-compare-tray__actions { display: flex; gap: 8px; align-items: center; }
.ag-compare-tray [aria-disabled="true"] { opacity: .5; pointer-events: none; }
@media (max-width: 767px) { .ag-compare-tray { bottom: 64px; } }

.ag-related-terms .ag-section__title { font-size: 20px; line-height: 28px; margin-bottom: 16px; }

/* Ô liên kết trang chủ */
.ag-ltiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 1024px) { .ag-ltiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ag-ltile { position: relative; display: flex; overflow: hidden; border-radius: 4px; color: var(--dj-head); }
.ag-ltiles--dark .ag-ltile { min-height: 420px; background: #1d1d1f; color: #fff; align-items: flex-start; }
.ag-ltiles--dark .ag-ltile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ag-ltiles--dark .ag-ltile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 45%); }
.ag-ltiles--dark .ag-ltile__text { position: relative; z-index: 1; padding: 32px; }
.ag-ltiles--dark .ag-ltile__title { display: block; font-size: 28px; line-height: 32px; font-weight: 600; color: #fff; }
.ag-ltiles--dark .ag-ltile__sub { display: block; margin-top: 8px; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .85); }
.ag-ltiles--dark .ag-ltile:hover .ag-ltile__img { transform: scale(1.03); }
.ag-ltiles--light .ag-ltile { flex-direction: column-reverse; justify-content: flex-end; background: #fff; min-height: 240px; }
.ag-ltiles--light .ag-ltile__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-top: auto; }
.ag-ltiles--light .ag-ltile__text { padding: 16px 16px 12px; text-align: center; }
.ag-ltiles--light .ag-ltile__title { display: block; font-size: 14px; line-height: 20px; font-weight: 600; }
.ag-ltiles--light .ag-ltile__sub { display: block; font-size: 12px; color: var(--dj-sub); }
.ag-ltiles--light .ag-ltile:hover .ag-ltile__title { color: var(--dj-blue); }
@media (max-width: 767px) { .ag-ltiles--dark .ag-ltile { min-height: 260px; } .ag-ltiles--dark .ag-ltile__text { padding: 16px; } .ag-ltiles--dark .ag-ltile__title { font-size: 18px; line-height: 24px; } }
/* Đoạn nội dung SEO trên trang chủ */
.ag-home-text { background: #fff; border-radius: 6px; padding: 40px 48px; font-size: 14px; line-height: 24px; column-gap: 48px; }
@media (min-width: 1024px) { .ag-home-text { columns: 2; } .ag-home-text h2, .ag-home-text h3 { break-after: avoid; } .ag-home-text p { break-inside: avoid; } }
.ag-home-text h2 { font-size: 18px; line-height: 26px; margin: 0 0 8px; }
.ag-home-text h2:not(:first-child) { margin-top: 24px; }
.ag-home-text p { margin: 0 0 12px; }
@media (max-width: 767px) { .ag-home-text { padding: 24px 16px; } }

/* Ảnh SP/món trong hộp trên nền xám nhạt: multiply → nền trắng của ảnh hoà vào nền ô. */
.ag-box__img img, .ag-option__img img, .ag-compare__table thead img, .ag-mega__tile img { mix-blend-mode: multiply; }

/* Trang SP — tab gallery như sectionGallery của store.dji.com: hàng tab giữa dưới ảnh, tab đang chọn là viên đen chữ trắng. */
.ag-gallery__tabs { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.ag-gallery__tab { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 16px; margin: 0; border: 0; border-radius: 16px; background: none; color: var(--dj-head); font-size: 14px; line-height: 20px; cursor: pointer; min-height: 0; }
.ag-gallery__tab .ag-i { width: 16px; height: 16px; }
.ag-gallery__tab:hover { background: var(--dj-soft); color: var(--dj-head); }
.ag-gallery__tab.is-active { background: #262626; color: #fff; }
.ag-gallery__panel { position: relative; aspect-ratio: 1 / 1; background: var(--dj-card); overflow: hidden; }
.ag-gallery__panel[hidden], .ag-gallery__stage[hidden] { display: none; }
.ag-gallery__video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.ag-gallery__model { width: 100%; height: 100%; --poster-color: transparent; background: var(--dj-card); }
.ag-gallery__model[hidden] { display: none; }
.ag-gallery__models { position: absolute; left: 50%; bottom: 16px; display: flex; gap: 8px; transform: translateX(-50%); }
.ag-gallery__model-btn { height: 32px; padding: 0 16px; margin: 0; border: 1px solid var(--dj-line-2); border-radius: 16px; background: #fff; color: var(--dj-head); font-size: 14px; line-height: initial; cursor: pointer; min-height: 0; }
.ag-gallery__model-btn.is-active { border-color: #262626; background: #262626; color: #fff; }

/* "Đừng bỏ lỡ phụ kiện" như "Don't Miss Top Accessories" của DJI: thẻ viền, ô chọn, ảnh nhỏ, tên, giá, số lượng, mô tả, Chi tiết. */
.ag-topacc { margin-top: 32px; }
.ag-store .ag-topacc__title { margin: 0 0 16px; font-size: 20px; line-height: 28px; font-weight: 600; }
.ag-topacc__item { display: grid; grid-template-columns: auto 64px 1fr; gap: 16px; align-items: start; padding: 24px; margin-bottom: 8px; border: 1px solid var(--dj-line-2); border-radius: 8px; background: #fff; }
label.ag-topacc__item { font-weight: 400; font-size: inherit; cursor: pointer; }
.ag-topacc__item { transition: border-color .2s ease, box-shadow .2s ease; }
.ag-topacc__item:hover, .ag-topacc__item:has(.ag-topacc__check:checked) { border-color: var(--dj-blue); }
.ag-topacc__item:has(.ag-topacc__check:checked):hover { box-shadow: inset 0 0 0 1px var(--dj-blue); }
.ag-topacc__check { width: 16px; height: 16px; margin: 20px 0 0; accent-color: var(--dj-blue); }
.ag-topacc__img img { width: 64px; height: 64px; object-fit: contain; mix-blend-mode: multiply; }
.ag-topacc__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ag-topacc__name { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--dj-head); cursor: pointer; }
.ag-topacc__body .ag-price { margin: 0; }
.ag-topacc__desc { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--dj-line-2); font-size: 14px; line-height: 20px; color: var(--dj-text); }
.ag-topacc__more { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--dj-blue) !important; }
.ag-topacc__more .ag-i { width: 14px; height: 14px; }
.ag-qty { display: inline-flex; align-items: stretch; width: max-content; border: 1px solid var(--dj-line-2); border-radius: 2px; }
/* .ag-qty.ag-qty: thắng rule button / input[type=number] của Flatsome (rộng 24px, line-height 2.4em, padding, cao 39px). */
.ag-qty.ag-qty button { flex: 0 0 32px; width: 32px; min-width: 0; max-width: none; height: 32px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--dj-soft); color: var(--dj-head); font-size: 16px; font-weight: 400; line-height: 32px; text-align: center; text-shadow: none; box-shadow: none; cursor: pointer; }
.ag-qty.ag-qty button:hover { background: var(--dj-line-2); box-shadow: none; }
.ag-qty.ag-qty input[type] { flex: 0 0 48px; width: 48px; max-width: none; height: 32px; min-height: 0; margin: 0; padding: 0; border: 0 !important; border-radius: 0; box-shadow: none !important; background: #fff; color: var(--dj-head); text-align: center; font-size: 14px; line-height: 32px; -moz-appearance: textfield; }
.ag-qty input::-webkit-inner-spin-button, .ag-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 767px) { .ag-topacc__item { padding: 16px; gap: 12px; grid-template-columns: auto 48px 1fr; } .ag-topacc__img img { width: 48px; height: 48px; } .ag-topacc__name { font-size: 16px; } }

/* ---------- Giỏ hàng (như "My Shopping Cart" của store.dji.com) ---------- */
.ag-btn--grey { background: #f0f1f2; color: var(--dj-head); }
.ag-btn--grey:hover { background: #e5e6e8; color: var(--dj-head); }
.ag-cart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-template-areas: "title title" "table table" "aside totals"; column-gap: 48px; max-width: 1200px; margin: 0 auto; padding: 48px 0 64px; }
.ag-cart .woocommerce-cart-form { display: contents; }
.ag-store .ag-cart__title { grid-area: title; margin: 0 0 32px; font-size: 36px; line-height: 44px; font-weight: 600; }
.ag-cart__table { grid-area: table; }
.ag-cart__head, .ag-cart__row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 150px 150px 40px; align-items: center; gap: 16px; }
.ag-cart__head { padding: 0 0 16px; border-bottom: 1px solid var(--dj-line-2); font-size: 14px; color: var(--dj-sub); }
.ag-cart__row { padding: 32px 0; border-bottom: 1px solid var(--dj-line-2); }
.ag-cart__item { display: flex; align-items: center; gap: 24px; min-width: 0; }
.ag-cart__img { flex: 0 0 120px; }
.ag-cart__img img { width: 120px; height: 120px; object-fit: contain; mix-blend-mode: multiply; }
.ag-cart__name { font-size: 18px; line-height: 26px; color: var(--dj-head); }
.ag-cart__name a { color: var(--dj-head); }
.ag-cart__name a:hover { color: var(--dj-blue); }
.ag-cart__name dl.variation { margin: 4px 0 0; font-size: 13px; color: var(--dj-sub); }
.ag-cart__price, .ag-cart__subtotal { font-size: 15px; color: var(--dj-head); }
.ag-cart__subtotal { font-weight: 600; }
.ag-qty--cart .quantity { display: contents; }
.ag-qty.ag-qty--cart input.qty { flex: 0 0 48px; width: 48px; max-width: none; height: 32px; min-height: 0; margin: 0; padding: 0; line-height: 32px; border: 0 !important; box-shadow: none !important; text-align: center; font-size: 14px; -moz-appearance: textfield; }
.ag-qty--cart input.qty::-webkit-inner-spin-button, .ag-qty--cart input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ag-cart__remove a.remove { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; color: var(--dj-sub) !important; background: none !important; font-size: 0; }
.ag-cart__remove a.remove:hover { color: #000 !important; background: var(--dj-soft) !important; }
.ag-cart__foot { grid-area: aside; padding-top: 32px; }
.ag-cart__aside-title { margin: 0 0 12px; font-size: 16px; color: var(--dj-head); }
.ag-cart__coupon-row { display: flex; gap: 8px; max-width: 420px; }
.ag-cart__coupon-row input { flex: 1; height: 40px; margin: 0; border: 1px solid var(--dj-line-2); border-radius: 2px; box-shadow: none; }
.ag-cart__coupon-row .ag-btn { min-height: 40px; padding: 8px 20px; font-size: 14px; }
.ag-cart__totals { grid-area: totals; padding-top: 32px; }
.ag-cart-totals__sum { display: flex; justify-content: flex-end; align-items: baseline; gap: 16px; margin: 0 0 16px; font-size: 28px; line-height: 36px; color: var(--dj-head); }
.ag-cart-totals__sum strong { font-weight: 600; }
.ag-cart-totals__lines { margin: 0 0 24px; }
.ag-cart-totals__lines > div { display: flex; justify-content: flex-end; gap: 12px; padding: 4px 0; font-size: 14px; color: var(--dj-sub); }
.ag-cart-totals__lines dt { font-weight: 400; }
.ag-cart-totals__lines dd { margin: 0; color: var(--dj-head); }
.ag-cart-totals__lines .order-total { padding-top: 8px; font-size: 16px; }
.ag-cart-totals__lines .order-total dd { font-weight: 600; }
.ag-cart-totals__actions { display: flex; justify-content: flex-end; gap: 16px; padding-top: 24px; border-top: 1px solid var(--dj-line-2); }
.ag-cart-totals__actions .ag-btn { min-width: 200px; }
.woocommerce-cart .cross-sells { display: none; }
@media (max-width: 1023px) {
	.ag-cart { grid-template-columns: 1fr; grid-template-areas: "title" "table" "aside" "totals"; padding: 24px 0 40px; }
	.ag-cart__head { display: none; }
	.ag-cart__row { grid-template-columns: 1fr auto; grid-template-areas: "item remove" "qty subtotal"; gap: 12px; padding: 20px 0; }
	.ag-cart__item { grid-area: item; gap: 12px; } .ag-cart__img { flex-basis: 80px; } .ag-cart__img img { width: 80px; height: 80px; }
	.ag-cart__name { font-size: 15px; line-height: 22px; }
	.ag-cart__price { display: none; } .ag-cart__qty { grid-area: qty; } .ag-cart__subtotal { grid-area: subtotal; text-align: right; } .ag-cart__remove { grid-area: remove; }
	.ag-store .ag-cart__title { font-size: 28px; line-height: 36px; margin-bottom: 16px; }
	.ag-cart-totals__sum { font-size: 22px; justify-content: space-between; }
	.ag-cart-totals__lines > div { justify-content: space-between; }
	.ag-cart-totals__actions { flex-direction: column-reverse; } .ag-cart-totals__actions .ag-btn { width: 100%; }
}

/* ---------- Thanh toán (như checkout của store.dji.com) ---------- */
.ag-checkout { max-width: 1200px; margin: 0 auto; padding: 48px 0 64px; }
.ag-store .ag-checkout__title { margin: 0 0 32px; font-size: 36px; line-height: 44px; font-weight: 600; }
.ag-checkout__form { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: start; }
.ag-checkout__box { padding: 0 0 32px; margin-bottom: 32px; border-bottom: 1px solid var(--dj-line-2); }
.ag-checkout__box:last-child { border-bottom: 0; }
.ag-checkout h3 { margin: 0 0 20px; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--dj-head); text-transform: none; letter-spacing: 0; }
.ag-checkout .form-row { margin: 0 0 16px; padding: 0; }
.ag-checkout .form-row label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--dj-head); text-transform: none; letter-spacing: 0; }
.ag-checkout .form-row .required { color: #e0282e; text-decoration: none; }
.ag-checkout .form-row input.input-text, .ag-checkout .form-row textarea, .ag-checkout .form-row select, .ag-checkout .select2-container .select2-selection--single {
	height: 40px; margin: 0; padding: 0 12px; border: 1px solid #d9d9d9; border-radius: 2px; box-shadow: none; background: #fff; font-size: 14px; color: var(--dj-head);
}
.ag-checkout .form-row textarea { height: 96px; padding: 10px 12px; }
.ag-checkout .form-row input.input-text:focus, .ag-checkout .form-row textarea:focus { border-color: var(--dj-blue); box-shadow: none; outline: none; }
.ag-checkout .select2-container .select2-selection--single .select2-selection__rendered { line-height: 38px; padding: 0; }
.ag-checkout .select2-container .select2-selection--single .select2-selection__arrow { height: 38px; }
.ag-checkout .form-row-first, .ag-checkout .form-row-last { width: calc(50% - 8px); float: left; }
.ag-checkout .form-row-last { margin-left: 16px; }
.ag-checkout .form-row-wide { clear: both; }
.ag-checkout .woocommerce-billing-fields__field-wrapper::after, .ag-checkout .woocommerce-shipping-fields::after { content: ""; display: table; clear: both; }
.ag-checkout #ship-to-different-address { font-size: 16px; }
.ag-checkout__side { position: sticky; top: 24px; padding: 32px; background: #f7f9fa; border-radius: 8px; }
.ag-store .ag-checkout__side-title { margin: 0 0 16px; font-size: 20px; line-height: 28px; font-weight: 600; }
.ag-checkout .shop_table { width: 100%; margin: 0 0 16px; border: 0; border-collapse: collapse; font-size: 14px; }
.ag-checkout .shop_table th, .ag-checkout .shop_table td { padding: 10px 0; border: 0; border-bottom: 1px solid var(--dj-line-2); background: none; text-align: left; font-weight: 400; color: var(--dj-text); text-transform: none; letter-spacing: 0; }
.ag-checkout .shop_table td:last-child, .ag-checkout .shop_table th:last-child { text-align: right; }
.ag-checkout .shop_table thead { display: none; }
.ag-checkout .shop_table td.product-name { display: flex; align-items: center; gap: 12px; color: var(--dj-head); }
.ag-review__img img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 4px; }
.ag-checkout .shop_table .order-total th, .ag-checkout .shop_table .order-total td { border-bottom: 0; font-size: 18px; font-weight: 600; color: var(--dj-head); }
.ag-checkout #payment { background: none; border-radius: 0; }
.ag-checkout #payment ul.payment_methods { margin: 0 0 16px; padding: 0; border: 0; list-style: none; }
.ag-checkout #payment ul.payment_methods li { margin: 0 0 8px; padding: 12px 16px; background: #fff; border: 1px solid var(--dj-line-2); border-radius: 4px; font-size: 14px; }
.ag-checkout #payment ul.payment_methods li label { font-weight: 600; color: var(--dj-head); }
.ag-checkout #payment div.payment_box { margin: 8px 0 0; padding: 0; background: none; font-size: 13px; color: var(--dj-sub); }
.ag-checkout #payment div.payment_box::before { display: none; }
.ag-checkout #place_order { width: 100%; min-height: 48px; margin: 8px 0 0; border: 0; border-radius: 3200px; background: var(--dj-blue); color: #fff; font-size: 16px; font-weight: 400; text-transform: none; letter-spacing: 0; float: none; }
.ag-checkout #place_order:hover { background: #0052cc; }
.ag-checkout .woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--dj-sub); }
.ag-checkout .woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce-checkout .woocommerce-info { background: var(--dj-soft); border: 0; color: var(--dj-text); font-size: 14px; }
.ag-checkout .form-row.ag-hidden { display: none !important; }
.ag-checkout .form-row .select2-container { margin-bottom: 0; } /* Flatsome thêm 1em → hàng Địa chỉ | Tỉnh/TP lệch chiều cao */
.ag-checkout .woocommerce-form-coupon-toggle { margin-bottom: 24px; } /* tách khỏi hộp "Đơn hàng" cùng màu nền */
@media (max-width: 1023px) {
	.ag-checkout { padding: 24px 0 40px; } .ag-store .ag-checkout__title { font-size: 28px; margin-bottom: 16px; }
	.ag-checkout__form { grid-template-columns: 1fr; gap: 24px; } .ag-checkout__side { position: static; padding: 20px; }
}
@media (max-width: 767px) { .ag-checkout .form-row-first, .ag-checkout .form-row-last { width: 100%; float: none; margin-left: 0; } }
/* Flatsome chèn thêm vào giỏ: nút ± của ô số lượng (đã có nút riêng kiểu DJI), "Tiếp tục xem sản phẩm", bảng tiêu đề "Tổng cộng giỏ hàng". */
.ag-qty--cart .ux-quantity__button, .ag-cart__aside .continue-shopping, .ag-cart-totals > table:first-child { display: none !important; }
.ag-qty--cart .ux-quantity { display: contents; }
.ag-cart-totals .checkout-button { background: var(--dj-blue) !important; color: #fff !important; border: 0 !important; text-transform: none !important; font-weight: 400 !important; letter-spacing: 0 !important; margin: 0 !important; }
.ag-cart-totals .checkout-button:hover { background: #0052cc !important; }
.ag-cart__remove a.remove { border: 0 !important; }

/* ---------- Đặt hàng thành công (woocommerce/checkout/thankyou.php) — cùng khung với trang thanh toán ---------- */
.ag-thanks { max-width: 1200px; margin: 0 auto; padding: 56px 0 72px; color: var(--dj-text); }
.ag-thanks__head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 40px; }
.ag-thanks__icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 20px; border-radius: 50%; background: #e7f6ec; color: #1a9b4b; }
.ag-thanks__head.is-failed .ag-thanks__icon { background: #fdecec; color: #e0282e; }
.ag-store .ag-thanks__title { margin: 0 0 12px; font-size: 36px; line-height: 44px; font-weight: 600; color: var(--dj-head); }
.ag-store .ag-thanks__lead { max-width: 640px; margin: 0; padding: 0; background: none; border: 0; font-size: 16px; line-height: 24px; font-weight: 400; color: var(--dj-text); }
.ag-thanks__lead strong { color: var(--dj-head); font-weight: 600; white-space: nowrap; }
.ag-store ul.ag-thanks__summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 32px; padding: 24px 0; list-style: none; background: #f7f9fa; border: 0; border-radius: 8px; }
.ag-store ul.ag-thanks__summary li { display: flex; flex-direction: column; gap: 4px; float: none; margin: 0; padding: 0 32px; border: 0; border-left: 1px solid var(--dj-line-2); font-size: 14px; line-height: 20px; text-transform: none; letter-spacing: 0; color: var(--dj-sub); }
.ag-store ul.ag-thanks__summary li:first-child { border-left: 0; }
.ag-store ul.ag-thanks__summary li::before { content: none; }
.ag-thanks__summary strong { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--dj-head); overflow-wrap: anywhere; }
.ag-thanks__grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: start; }
.ag-thanks__box { padding: 0 0 32px; margin: 0 0 32px; border-bottom: 1px solid var(--dj-line-2); }
.ag-thanks__side .ag-thanks__box { padding: 32px; border: 0; border-radius: 8px; background: #f7f9fa; margin-bottom: 16px; }
.ag-store .ag-thanks__box h2, .ag-store .ag-thanks__box .wc-bacs-bank-details-heading { margin: 0 0 16px; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--dj-head); text-transform: none; letter-spacing: 0; }
.ag-thanks__pay p { margin: 0 0 12px; font-size: 16px; line-height: 24px; }
.ag-thanks__pay p:last-child { margin-bottom: 0; }
.ag-thanks__pay .woocommerce-bacs-bank-details { margin-top: 16px; }
.ag-store .ag-thanks__pay .wc-bacs-bank-details-heading { font-size: 16px; line-height: 24px; margin-bottom: 8px; }
.ag-store .ag-thanks__pay .wc-bacs-bank-details-account-name { margin: 12px 0 4px; font-size: 14px; font-weight: 600; color: var(--dj-head); }
.ag-store .ag-thanks__pay ul.wc-bacs-bank-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 24px; margin: 0; padding: 16px 20px; list-style: none; background: #f7f9fa; border: 0; border-radius: 8px; }
.ag-store .ag-thanks__pay ul.wc-bacs-bank-details li { display: flex; flex-direction: column; gap: 2px; float: none; margin: 0; padding: 0; border: 0; font-size: 13px; line-height: 18px; text-transform: none; letter-spacing: 0; color: var(--dj-sub); }
.ag-store .ag-thanks__pay ul.wc-bacs-bank-details li::before { content: none; }
.ag-thanks__pay ul.wc-bacs-bank-details strong { font-size: 16px; line-height: 24px; color: var(--dj-head); overflow-wrap: anywhere; user-select: all; }
.ag-store ul.ag-thanks__items { margin: 0; padding: 0; list-style: none; }
.ag-store ul.ag-thanks__items li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin: 0; padding: 16px 0; border-top: 1px solid var(--dj-line-2); }
.ag-store ul.ag-thanks__items li:first-child { border-top: 0; padding-top: 0; }
.ag-thanks__thumb { display: block; width: 72px; height: 72px; border-radius: 4px; background: var(--dj-card); overflow: hidden; }
.ag-store .ag-thanks__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ag-thanks__item-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ag-thanks__item-name { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--dj-head); }
.ag-store a.ag-thanks__item-name:hover { color: var(--dj-blue); }
.ag-thanks__item-qty { font-size: 14px; line-height: 20px; color: var(--dj-sub); }
.ag-thanks__item-total { font-size: 16px; line-height: 24px; color: var(--dj-head); white-space: nowrap; }
.ag-thanks__totals { margin: 8px 0 0; padding: 16px 0 0; border-top: 1px solid var(--dj-line-2); }
.ag-thanks__total { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: 14px; line-height: 20px; }
.ag-thanks__total dt, .ag-thanks__total dd { margin: 0; font-weight: 400; }
.ag-thanks__total dd { color: var(--dj-head); text-align: right; }
.ag-thanks__total--order_total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--dj-line-2); font-size: 20px; line-height: 28px; color: var(--dj-head); }
.ag-thanks__total--order_total dt, .ag-thanks__total--order_total dd { font-weight: 600; }
.ag-thanks__info { margin: 0; }
.ag-thanks__info > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 6px 0; font-size: 14px; line-height: 20px; }
.ag-thanks__info dt { margin: 0; font-weight: 400; color: var(--dj-sub); }
.ag-thanks__info dd { margin: 0; color: var(--dj-head); overflow-wrap: anywhere; }
.ag-store ol.ag-thanks__steps { margin: 0; padding: 0; list-style: none; counter-reset: ag-step; }
.ag-store ol.ag-thanks__steps li { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0 0 20px 40px; font-size: 14px; line-height: 20px; counter-increment: ag-step; }
.ag-store ol.ag-thanks__steps li:last-child { padding-bottom: 0; }
.ag-thanks__steps li::before { content: counter(ag-step); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--dj-line); font-size: 12px; font-weight: 600; color: var(--dj-sub); }
.ag-thanks__steps li::after { content: ""; position: absolute; left: 12px; top: 28px; bottom: 4px; width: 1px; background: var(--dj-line); }
.ag-thanks__steps li:last-child::after { content: none; }
.ag-thanks__steps li.is-done::before { content: "✓"; background: #1a9b4b; border-color: #1a9b4b; color: #fff; }
.ag-thanks__steps strong { font-weight: 600; color: var(--dj-head); }
.ag-thanks__steps span { color: var(--dj-text); overflow-wrap: anywhere; }
.ag-thanks__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.ag-thanks__actions .ag-btn { flex: 1 1 180px; justify-content: center; min-height: 48px; border-radius: 3200px; text-align: center; }
.ag-thanks__head .ag-thanks__actions { justify-content: center; }
.ag-thanks__head .ag-thanks__actions .ag-btn { flex: 0 0 auto; min-width: 200px; }
@media (max-width: 1023px) {
	.ag-thanks { padding: 32px 0 48px; }
	.ag-thanks__grid { grid-template-columns: 1fr; gap: 0; }
	.ag-store ul.ag-thanks__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
	.ag-store ul.ag-thanks__summary li:nth-child(odd) { border-left: 0; }
}
@media (max-width: 767px) {
	.ag-thanks__head { margin-bottom: 24px; }
	.ag-thanks__icon { width: 56px; height: 56px; margin-bottom: 16px; } .ag-thanks__icon svg { width: 36px; height: 36px; }
	.ag-store .ag-thanks__title { font-size: 28px; line-height: 36px; }
	.ag-store ul.ag-thanks__summary { padding: 16px 0; margin-bottom: 24px; } .ag-store ul.ag-thanks__summary li { padding: 0 16px; } .ag-thanks__summary strong { font-size: 16px; line-height: 24px; }
	.ag-thanks__side .ag-thanks__box { padding: 20px; }
	.ag-store ul.ag-thanks__items li { grid-template-columns: 56px minmax(0, 1fr); } .ag-thanks__thumb { width: 56px; height: 56px; }
	.ag-thanks__item-total { grid-column: 2; }
	.ag-thanks__item-name { font-size: 14px; line-height: 20px; }
}

/* ---------- Kết quả tìm kiếm (search.php): sản phẩm trước, bài viết sau ---------- */
.ag-searchpage { background: #fff; color: var(--dj-text); padding-bottom: 72px; }
.ag-searchpage__head { padding: 40px 0 0; text-align: center; border-bottom: 1px solid var(--dj-line-2); }
.ag-store .ag-searchpage__title { margin: 0 0 24px; font-size: 32px; line-height: 40px; font-weight: 600; color: var(--dj-head); overflow-wrap: anywhere; }
.ag-searchpage__form { position: relative; display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 0 auto 24px; padding: 4px 4px 4px 48px; border: 1px solid var(--dj-line); border-radius: 3200px; background: #fff; transition: border-color .2s ease; }
.ag-searchpage__form:focus-within { border-color: var(--dj-blue); }
.ag-searchpage__form > .ag-i { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--dj-sub); }
.ag-store .ag-searchpage__form input[type="search"] { flex: 1 1 auto; min-width: 0; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; outline: none; background: transparent; font-size: 16px; color: var(--dj-head); }
.ag-searchpage__form .ag-btn { flex: 0 0 auto; min-height: 40px; padding: 8px 24px; border-radius: 3200px; font-size: 14px; }
.ag-searchpage__tabs { display: flex; justify-content: center; gap: 32px; }
.ag-searchpage__tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 0 0 14px; border-bottom: 2px solid transparent; font-size: 16px; line-height: 24px; color: var(--dj-head); }
.ag-store .ag-searchpage__tabs a:hover { color: var(--dj-head); border-bottom-color: var(--dj-head); }
.ag-searchpage__tabs span { font-size: 13px; line-height: 20px; padding: 0 8px; border-radius: 10px; background: var(--dj-soft); color: var(--dj-sub); }
.ag-searchpage__section { padding-top: 40px; scroll-margin-top: 72px; }
.ag-store .ag-searchpage__heading { display: flex; align-items: baseline; gap: 10px; margin: 0 0 20px; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--dj-head); }
.ag-searchpage__heading small { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--dj-sub); }
.ag-searchpage__note { margin: 16px 0 0; font-size: 14px; color: var(--dj-sub); }
.ag-searchpage__empty { max-width: 560px; margin: 0 auto; padding: 64px 0 24px; text-align: center; font-size: 16px; line-height: 24px; }
.ag-searchpage__empty p { margin: 0 0 12px; }
.ag-searchpage__empty strong { font-size: 20px; line-height: 28px; color: var(--dj-head); }
.ag-searchpage__empty .ag-btn { margin-top: 12px; }
.ag-searchpage__posts { display: grid; gap: 0; }
.ag-spost { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: center; padding: 20px 0; border-top: 1px solid var(--dj-line-2); }
.ag-spost:first-child { border-top: 0; padding-top: 0; }
.ag-spost__media { display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--dj-card); }
.ag-store .ag-spost__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
@media (hover: hover) and (min-width: 1200px) { .ag-spost:hover .ag-spost__media img { transform: scale(1.05); } }
.ag-spost__body { min-width: 0; }
.ag-spost__meta { display: flex; gap: 12px; margin: 0 0 6px; font-size: 13px; line-height: 20px; color: var(--dj-sub); }
.ag-spost__meta span { color: var(--dj-blue); }
.ag-store .ag-spost__title { margin: 0 0 8px; font-size: 20px; line-height: 28px; font-weight: 600; }
.ag-store .ag-spost__title a { color: var(--dj-head); }
.ag-store .ag-spost__title a:hover { color: var(--dj-head); text-decoration: underline; }
.ag-spost__excerpt { margin: 0; font-size: 14px; line-height: 22px; color: var(--dj-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-searchpage .navigation.pagination { margin: 32px 0 0; }
.ag-searchpage .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ag-searchpage .nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--dj-line); border-radius: 20px; font-size: 14px; color: var(--dj-head); background: #fff; }
.ag-searchpage .nav-links a.page-numbers:hover { border-color: var(--dj-head); color: var(--dj-head); }
.ag-searchpage .nav-links .page-numbers.current { background: #262626; border-color: #262626; color: #fff; }
.ag-searchpage .nav-links .page-numbers.dots { border-color: transparent; }
@media (max-width: 1023px) { .ag-searchpage .ag-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	.ag-searchpage { padding-bottom: 48px; }
	.ag-searchpage__head { padding-top: 24px; }
	.ag-store .ag-searchpage__title { font-size: 22px; line-height: 30px; margin-bottom: 16px; }
	.ag-searchpage__form { margin-bottom: 16px; padding-left: 40px; } .ag-searchpage__form > .ag-i { left: 14px; }
	.ag-searchpage__form .ag-btn { padding: 8px 16px; }
	.ag-searchpage__section { padding-top: 28px; }
	.ag-store .ag-searchpage__heading { font-size: 20px; line-height: 28px; margin-bottom: 16px; }
	.ag-searchpage .ag-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ag-spost { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px 0; }
	.ag-spost__media { aspect-ratio: 4 / 3; }
	.ag-store .ag-spost__title { font-size: 15px; line-height: 22px; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.ag-spost__excerpt { display: none; }
}
