/* ==========================================================================
   In Bao Lì Xì — CSS chính (layout, header, footer, element trang chủ, blog)
   Biến màu in từ Customizer: --ad-primary, --ad-accent, --ad-body, --ad-price
   Breakpoint: ≤767 mobile · ≤991 tablet · ≤1199 laptop nhỏ (theo demo gốc)
   ========================================================================== */

:root {
	--ad-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ad-radius: 10px;
	--ad-glass-bg: rgba(255, 255, 255, .1);
	--ad-glass-bd: rgba(255, 255, 255, .15);
	--ad-tint: color-mix(in srgb, var(--ad-primary) 5%, transparent);
	--ad-header-h: 100px;
	--ad-topbar-h: 55px;
}

/* ---------- nền tảng ---------- */
html { background: var(--ad-body); }
body.ad-theme {
	background: var(--ad-body);
	color: #000;
	font-family: var(--ad-font);
	font-size: 14px;
	line-height: 1.5;
}
body.ad-theme h1, body.ad-theme h2, body.ad-theme h3, body.ad-theme h4, body.ad-theme h5, body.ad-theme h6,
body.ad-theme .heading-font, body.ad-theme .nav > li > a, body.ad-theme .alt-font,
body.ad-theme button, body.ad-theme input, body.ad-theme select, body.ad-theme textarea { font-family: var(--ad-font); }
body.ad-theme h1, body.ad-theme h2, body.ad-theme h3 { color: inherit; letter-spacing: 0; }
:where(body.ad-theme) a { color: inherit; }
:where(body.ad-theme) a:hover { color: var(--ad-accent); }
#wrapper, #main { background: var(--ad-body); }
.page-wrapper { padding-top: 0; padding-bottom: 0; }
.ad-sr-select { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }
.ad-hp { position: absolute !important; left: -9999px; }

.ad-ico { width: 1em; height: 1em; fill: currentColor; flex: 0 0 auto; vertical-align: middle; }

.ad-container { max-width: 1700px; margin: 0 auto; padding: 0 15px; width: 100%; }
.ad-container-full { width: 100%; }
.ad-sec { margin-bottom: 80px; position: relative; }
@media (max-width: 767px) { .ad-sec { margin-bottom: 40px; } }

/* Tiêu đề khối */
.ad-title {
	display: block; position: relative; margin: 0 0 20px;
	font-size: 26px; font-weight: 700; line-height: 1.3; color: #000; text-align: left;
}
.ad-title a { color: #000; }
.ad-title a:hover { color: var(--ad-accent); }
@media (max-width: 767px) { .ad-title { font-size: 20px; margin-bottom: 15px; } }

/* Nút */
.ad-btn-wrap { text-align: center; margin-top: 20px; }
.ad-btn, body.ad-theme .ad-btn {
	display: inline-flex; align-items: center; gap: 10px;
	background: var(--ad-primary); color: #fff; border: 0; border-radius: 5px;
	padding: 8px 25px; font-size: 18px; font-weight: 700; line-height: 1.5;
	text-transform: none; letter-spacing: 0; min-height: 0; margin: 0; cursor: pointer;
	transition: background .3s ease, color .3s ease;
}
.ad-btn:hover, body.ad-theme .ad-btn:hover { background: var(--ad-accent); color: #fff; }
.ad-btn-wrap.is-light .ad-btn { background: #fff; color: var(--ad-primary); }
.ad-btn-wrap.is-light .ad-btn:hover { background: var(--ad-accent); color: #fff; }
.ad-pill-btn {
	display: inline-block; background: #fff; color: #000; border-radius: 5px;
	padding: 5px 15px; margin-top: 5px; font-weight: 700; font-size: 16px; transition: .3s;
}
.ad-pill-btn:hover { background: var(--ad-accent); color: #fff; }

/* Chip */
.ad-chips { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.ad-chips::-webkit-scrollbar { display: none; }
.ad-chips li { margin: 0; }
.ad-chips a { display: block; padding: 5px 15px; background: #fff; border-radius: 5px; font-size: 16px; color: #000; transition: .3s; }
.ad-chips a:hover { background: var(--ad-primary); color: #fff; }

/* Ảnh zoom khi hover */
.ad-zoom { display: block; overflow: hidden; border-radius: var(--ad-radius); }
.ad-zoom img { width: 100%; transition: transform .8s linear; display: block; }
.ad-zoom:hover img { transform: scale(1.05); }

/* ---------- lưới / slider dùng chung ---------- */
.ad-grid {
	--ad-cols: var(--ad-c, 4);
	display: flex; flex-wrap: wrap;
	margin: 0 calc(var(--ad-gap, 20px) / -2);
}
.ad-grid > .ad-grid__cell,
.ad-grid .flickity-slider > .ad-grid__cell {
	width: calc(100% / var(--ad-cols)); padding: 0 calc(var(--ad-gap, 20px) / 2);
	margin-bottom: var(--ad-gap, 20px); display: flex;
}
/* Flatsome ép `.flickity-slider>div:not(.col){width:100%!important;padding:0}` → ghi đè cho ô của In Bao Lì Xì */
.ad-grid .flickity-slider > .ad-grid__cell {
	width: calc(100% / var(--ad-cols)) !important; padding: 0 calc(var(--ad-gap, 20px) / 2) !important; transition: none;
}
.ad-grid--slider > .ad-grid__cell,
.ad-grid--slider .flickity-slider > .ad-grid__cell { margin-bottom: 0; }
.ad-grid--slider { flex-wrap: nowrap; overflow: hidden; }
.ad-grid--slider.flickity-enabled { display: block; overflow: visible; }
.ad-grid--slider .flickity-viewport { overflow: hidden; }
.ad-grid__cell > * { width: 100%; }
@media (max-width: 991px) { .ad-grid { --ad-cols: var(--ad-c-md, 3); } }
@media (max-width: 767px) { .ad-grid { --ad-cols: var(--ad-c-sm, 2); } }
@media (max-width: 767px) { .ad-grid { --ad-gap: 10px !important; } }

/* Nút Flickity kiểu In Bao Lì Xì: tròn, màu chủ đạo.
   Flatsome (flatsome.css) đè các điểm sau, nên mọi thuộc tính dưới đây đều được khóa lại:
   - .flickity-prev-next-button{top:40%;bottom:40%;opacity:0;width:36px} + .next/.previous{transform:translateX(±20%)}
   - .slider:hover .flickity-prev-next-button{opacity:.7;transform:translateX(0)!important}  → làm mất căn giữa dọc
   - .flickity-prev-next-button svg{position:absolute;left:50%;top:50%;padding:20%;transform:translate(-50%,-50%)}
   - .slider .flickity-prev-next-button:hover svg{fill:var(--fs-color-primary)}            → icon trùng màu nền
   - ≤549px: .row-slider ... {width:20px!important} / .slider-wrapper ... {display:none}
   Căn giữa dọc bằng top: calc(50% - size/2) (không dùng transform, vì Flatsome ép transform khi hover). */
.ad-theme { --ad-arrow: 40px; }
.ad-theme .slider .flickity-prev-next-button,
.ad-theme .slider:hover .flickity-prev-next-button,
.ad-theme .flickity-prev-next-button {
	position: absolute; z-index: 5;
	width: var(--ad-arrow) !important; height: var(--ad-arrow) !important;
	top: calc(50% - var(--ad-arrow) / 2) !important; bottom: auto !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50%;
	background: var(--ad-primary) !important; color: #fff !important; box-shadow: none !important;
	opacity: 1; transform: none !important;
	display: block; line-height: 0; cursor: pointer;
	transition: background-color .3s, opacity .3s;
}
.ad-theme .slider .flickity-prev-next-button svg,
.ad-theme .flickity-prev-next-button svg {
	position: absolute !important; left: 50% !important; top: 50% !important;
	width: 46% !important; height: 46% !important; max-width: none; max-height: none;
	padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important;
	transform: translate(-50%, -50%) !important;
}
.ad-theme .flickity-prev-next-button svg, .ad-theme .flickity-prev-next-button .arrow,
.ad-theme .slider .flickity-prev-next-button:hover svg, .ad-theme .slider .flickity-prev-next-button:hover .arrow { fill: #fff !important; }
.ad-theme .slider .flickity-prev-next-button:hover,
.ad-theme .flickity-prev-next-button:hover { background: var(--ad-accent) !important; opacity: 1; }
.ad-theme .flickity-prev-next-button:focus-visible { outline: 2px solid var(--ad-accent); outline-offset: 2px; }
.ad-theme .flickity-prev-next-button:disabled,
.ad-theme .slider .flickity-prev-next-button:disabled { opacity: 0 !important; pointer-events: none; }
.ad-theme .flickity-prev-next-button.previous { left: 10px !important; right: auto !important; }
.ad-theme .flickity-prev-next-button.next { right: 10px !important; left: auto !important; }
@media (max-width: 767px) {
	.ad-theme { --ad-arrow: 28px; }
	.ad-theme .slider-wrapper .flickity-prev-next-button, .ad-theme .slider .flickity-prev-next-button { display: block !important; }
	.ad-theme .flickity-prev-next-button.previous { left: 4px !important; }
	.ad-theme .flickity-prev-next-button.next { right: 4px !important; }
}
.ad-theme .flickity-page-dots { bottom: -25px; }
.ad-theme .flickity-page-dots .dot { background: var(--ad-primary); border-color: var(--ad-primary); opacity: .35; }
.ad-theme .flickity-page-dots .dot.is-selected { opacity: 1; }

/* ==========================================================================
   HEADER (Flatsome Header Builder + element In Bao Lì Xì)
   ========================================================================== */
.ad-theme #top-bar.header-top {
	background: var(--ad-primary) !important; min-height: var(--ad-topbar-h);
	padding: 10px 0; color: #fff; font-size: 16px;
}
.ad-theme .header-top .flex-row.container, .ad-theme .header-main .header-inner.container,
.ad-theme .header-bottom .flex-row.container { max-width: 1700px; padding: 0 15px; }
.ad-theme .header-top .nav > li { margin: 0 10px 0 0; }
.ad-theme .header-top .nav > li:last-child { margin-right: 0; }
.ad-hcontact a { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; font-size: 14px; }
.ad-hcontact__ico { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--ad-primary); display: inline-flex; align-items: center; justify-content: center; }
.ad-hcontact__ico .ad-ico { width: 14px; height: 14px; }

.ad-ticker { display: flex !important; align-items: center; gap: 20px; color: #fff; }
.ad-ticker__nav { background: none; border: 0; padding: 0; margin: 0; color: #fff; cursor: pointer; display: inline-flex; min-height: 0; line-height: 1; }
.ad-ticker__nav .ad-ico { width: 20px; height: 20px; }
.ad-ticker__track { position: relative; height: 24px; min-width: 300px; overflow: hidden; text-align: center; }
.ad-ticker__item {
	position: absolute; inset: 0; white-space: nowrap; font-size: 16px; line-height: 24px;
	opacity: 0; transform: translateY(100%); transition: opacity .4s, transform .4s;
}
.ad-ticker__item.is-active { opacity: 1; transform: none; }
@media (max-width: 549px) { .ad-ticker__track { min-width: 220px; } .ad-ticker__item { font-size: 14px; } }

.ad-hsocial { display: flex !important; gap: 8px; }
.ad-hsocial a {
	width: 30px; height: 30px; border: 1px solid #fff; border-radius: 5px; color: #fff !important;
	display: inline-flex !important; align-items: center; justify-content: center; padding: 0 !important; transition: .3s;
}
.ad-hsocial a .ad-ico { width: 18px; height: 18px; }
.ad-hsocial a:hover { background: #fff; color: var(--ad-primary) !important; }

/* Main header */
.ad-theme .header-main { height: var(--ad-header-h); }
.ad-theme #header .header-bg-color { background-color: #fff; }
.ad-theme #header.transparent:not(.stuck) .header-bg-color,
.ad-theme #header.has-transparent .header-wrapper:not(.stuck) .header-main .header-bg-color { background-color: rgba(255, 255, 255, .5) !important; }
.ad-theme #header .header-wrapper.stuck .header-main { box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.ad-theme .header-main .nav > li > a {
	font-size: 18px; font-weight: 600; color: var(--ad-primary); text-transform: none;
	letter-spacing: 0; padding: 10px 0;
}
.ad-theme .header-main .nav > li { margin: 0 8px; }
.ad-theme .header-main .nav > li:first-child { margin-left: 0; }
.ad-theme .header-main .header-nav-main { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 1360px) { .ad-theme .header-main .nav > li > a { font-size: 16px; } .ad-theme .header-main .nav > li { margin: 0 6px; } }
@media (max-width: 1100px) { .ad-theme .header-main .nav > li > a { font-size: 15px; } .ad-theme .header-main .nav > li { margin: 0 4px; } }
.ad-theme .header-main .nav > li.active > a, .ad-theme .header-main .nav > li.current-menu-item > a,
.ad-theme .header-main .nav > li > a:hover, .ad-theme .header-main .nav > li.current-menu-ancestor > a { color: var(--ad-accent); }
.ad-theme .header-main .nav > li.has-dropdown > a .icon-angle-down { opacity: 1; font-size: 12px; margin-left: 2px; }
.ad-theme #logo img { max-height: 70px; width: auto; }
.ad-theme #logo { width: 210px; }

.ad-hicon { position: relative; margin: 0 0 0 15px !important; }
.ad-hicon > a { display: inline-flex !important; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0 !important; color: #231f20 !important; position: relative; }
.ad-hicon > a .ad-ico { width: 26px; height: 26px; }
.ad-hicon > a:hover { color: var(--ad-accent) !important; }
.ad-count {
	position: absolute; top: -4px; right: -8px; min-width: 20px; height: 20px; padding: 0 4px;
	border-radius: 999px; background: var(--ad-primary); color: #fff; font-size: 12px; line-height: 20px; text-align: center; font-weight: 700;
}
.ad-hdrop {
	position: absolute; right: -10px; top: calc(100% + 12px); min-width: 170px; background: #fff;
	border-radius: var(--ad-radius); box-shadow: 0 0 5px var(--ad-primary); padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s; z-index: 30;
}
.ad-hdrop::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.ad-hdrop a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 15px; color: #000; }
.ad-hdrop a:hover { background: var(--ad-primary); color: #fff; }
.ad-hicon--account:hover .ad-hdrop, .ad-hicon--account:focus-within .ad-hdrop { opacity: 1; visibility: visible; transform: none; }

/* Dropdown & mega menu của Flatsome */
.ad-theme .nav-dropdown {
	border: 0 !important; border-radius: var(--ad-radius); box-shadow: 0 0 5px var(--ad-primary) !important;
	padding: 10px; background: #fff;
}
.ad-theme .nav-dropdown-has-arrow li.has-dropdown::after, .ad-theme .nav-dropdown-has-arrow li.has-dropdown::before { display: none; }
.ad-theme .nav-dropdown .menu-item > a { font-size: 15px; color: #000; }
.ad-theme .nav-dropdown .menu-item > a:hover { color: var(--ad-accent); }
.ad-theme .nav-dropdown .ux-block, .ad-theme .nav-dropdown .menu-item-design-custom-size > .nav-dropdown { padding: 0; }
.ad-mega { width: var(--ad-mega-w, 570px); max-width: 92vw; font-size: 14px; color: #000; }
.ad-mega__grid { display: grid; grid-template-columns: repeat(var(--ad-mega-cols, 3), minmax(0, 1fr)); gap: 15px 20px; padding: 10px; }
.ad-mega__parent { display: block; font-size: 16px; font-weight: 700; color: var(--ad-primary) !important; margin-bottom: 6px; }
.ad-mega ul { list-style: none; margin: 0; padding: 0; }
.ad-mega li { margin: 0 0 4px; }
.ad-mega li a { color: #000; font-size: 14px; }
.ad-mega li a:hover, .ad-mega__parent:hover { color: var(--ad-accent) !important; }
.ad-mega__banner { margin-top: 10px; }

/* Off-canvas menu mobile */
.ad-theme .mobile-sidebar { background: #fff; }
.ad-theme .mobile-sidebar .nav > li > a { font-size: 16px; color: var(--ad-primary); font-weight: 600; text-transform: none; }
.ad-theme .header-main .nav-icon > a, .ad-theme .header-main .menu-icon a { color: var(--ad-primary) !important; }

/* Tìm kiếm lightbox */
.ad-search-lb { max-width: 680px; margin: 0 auto; background: #fff; border-radius: var(--ad-radius); padding: 25px; position: relative; }
.ad-search-form { display: flex; gap: 10px; margin: 0; }
.ad-search-form input[type=search] { flex: 1; height: 48px; border-radius: 8px; border: 1px solid #ddd; box-shadow: none; padding: 0 15px; font-size: 16px; margin: 0; }
.ad-search-form button { width: 48px; height: 48px; border-radius: 8px; background: var(--ad-primary); color: #fff; border: 0; padding: 0; margin: 0; display: inline-flex; align-items: center; justify-content: center; }
.ad-search-form button .ad-ico { width: 22px; height: 22px; }
.ad-search-lb__hint { margin-top: 12px; color: #666; font-size: 14px; }
.ad-search-lb__hint a { color: var(--ad-primary); text-decoration: underline; }

/* Header trong suốt: chừa chỗ cho topbar ở hero/slider */
.ad-theme.ad-has-overlay-header #header.has-transparent { position: absolute; }
@media (max-width: 849px) {
	.ad-theme .header-main { height: 70px; }
	.ad-theme #logo { width: 150px; }
	.ad-theme #logo img { max-height: 50px; }
	.ad-hicon { margin-left: 10px !important; }
	.ad-hicon > a .ad-ico { width: 24px; height: 24px; }
}

/* ==========================================================================
   HERO TRANG TRONG (breadcrumb)
   ========================================================================== */
/* Bản gọn: chiều cao = top bar + header + vùng chữ (~150px desktop / ~110px mobile). */
.ad-theme { --ad-hero-pad: 38px; }
.ad-page-hero {
	position: relative; display: flex; align-items: center; min-height: 0; margin-bottom: 40px;
	padding: calc(var(--ad-topbar-h) + var(--ad-header-h) + var(--ad-hero-pad)) 0 var(--ad-hero-pad);
	background: #2a2a2a center 35% / cover no-repeat;
}
.ad-page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); }
.ad-page-hero__inner { position: relative; z-index: 1; max-width: 1170px; }
.ad-page-hero__title { color: #fff !important; font-size: 40px; font-weight: 600; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-breadcrumb ol { list-style: none; margin: 0; padding: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; font-size: 16px; color: #fff; }
.ad-breadcrumb li { margin: 0; display: inline-flex; align-items: center; }
.ad-breadcrumb li + li::before { content: "›"; margin: 0 10px; font-size: 18px; opacity: .9; }
.ad-breadcrumb a { color: #fff !important; }
.ad-breadcrumb a:hover { color: var(--ad-accent) !important; }
.ad-breadcrumb [aria-current] { font-weight: 700; }
@media (max-width: 1199px) { .ad-page-hero__title { font-size: 34px; } }
@media (max-width: 767px) {
	.ad-theme { --ad-hero-pad: 22px; }
	.ad-page-hero { margin-bottom: 25px; }
	.ad-page-hero__title { font-size: 26px; }
	.ad-breadcrumb ol { font-size: 14px; padding: 0 0 6px; }
}

/* ==========================================================================
   ELEMENT TRANG CHỦ
   ========================================================================== */

/* Hero slider */
.ad-hero-slider { text-align: center; overflow: hidden; }
.ad-hero-slider__track { display: flex; }
.ad-hero-slider__track:not(.flickity-enabled) > .ad-hero-slide:not(:first-child) { display: none; }
.ad-hero-slider__track.flickity-enabled { display: block; }
.ad-hero-slide { position: relative; display: block; width: 100%; overflow: hidden; aspect-ratio: var(--ad-hs-ratio, 32 / 15); }
.ad-hero-slide picture { display: block; width: 100%; height: 100%; }
.ad-hero-slide__media { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-hero-slider.has-height .ad-hero-slide { aspect-ratio: auto; }
@media (max-width: 767px) { .ad-hero-slide { aspect-ratio: var(--ad-hs-ratio-sm, 3 / 4); } }
/* Slider đầu trang: mũi tên trắng nền trong suốt như demo */
.ad-theme .ad-hero-slider { --ad-arrow: 44px; }
.ad-theme .ad-hero-slider .slider .flickity-prev-next-button,
.ad-theme .ad-hero-slider .flickity-prev-next-button { background: transparent !important; }
.ad-theme .ad-hero-slider .slider .flickity-prev-next-button:hover { background: rgba(0, 0, 0, .3) !important; }
.ad-theme .ad-hero-slider .flickity-prev-next-button svg { width: 60% !important; height: 60% !important; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
@media (max-width: 767px) { .ad-theme .ad-hero-slider { --ad-arrow: 32px; } }

/* Chữ chạy */
.ad-marquee { display: flex; width: 100%; padding: 10px 0; overflow: hidden; background: var(--ad-primary); }
.ad-marquee__track { display: flex; min-width: max-content; animation: ad-marquee var(--ad-mq-dur, 30s) linear infinite; }
.ad-marquee--right .ad-marquee__track { animation-direction: reverse; }
.ad-marquee:hover .ad-marquee__track { animation-play-state: paused; }
.ad-marquee__group { display: flex; align-items: center; gap: var(--ad-mq-gap, 30px); padding-right: var(--ad-mq-gap, 30px); }
.ad-marquee__item, .ad-marquee__sep { color: var(--ad-mq-color, #fff); font-size: var(--ad-mq-size, 16px); white-space: nowrap; }
.ad-marquee.is-bold .ad-marquee__item { font-weight: 700; }
@keyframes ad-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ad-marquee__track { animation: none; } }

/* Giới thiệu 3 cột */
.ad-about-split__grid { display: flex; flex-wrap: wrap; }
.ad-about-split__cell { width: 33.3333%; min-height: 475px; position: relative; overflow: hidden; }
.ad-about-split__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-about-split__box {
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	padding: 20px 50px; color: #fff; background-color: var(--ad-primary); background-size: cover; background-position: center;
}
.ad-about-split__title { font-size: 20px; font-weight: 700; margin: 0 0 20px; color: inherit !important; line-height: 1.4; }
.ad-about-split__text { font-size: 16px; margin-bottom: 20px; }
@media (max-width: 1199px) {
	.ad-about-split__img { width: 50%; }
	.ad-about-split__box { width: 100%; order: 3; min-height: 0 !important; padding: 40px 30px; }
}
@media (max-width: 767px) { .ad-about-split__img { min-height: 220px !important; } .ad-about-split__box { padding: 30px 20px; } }

/* Danh mục nổi bật */
.ad-catshow { display: flex; background: var(--ad-cs-bg, #000); }
.ad-catshow__head { width: var(--ad-cs-tw, 20%); display: flex; align-items: center; justify-content: center; padding: 30px; background: var(--ad-cs-bg, #000); }
.ad-catshow__title { color: #fff !important; font-size: 26px; font-weight: 700; margin: 0; padding: 3rem; }
.ad-catshow__title span { display: block; font-size: 16px; font-weight: 400; color: #fff; margin-top: 4px; }
.ad-catshow__list { width: calc(100% - var(--ad-cs-tw, 20%)); display: flex; flex-wrap: nowrap; overflow: hidden; }
.ad-catshow__item {
	flex: 1 1 0; min-width: 0; position: relative; padding: 20px 0;
	background: radial-gradient(var(--ad-cs-glow), #000 60%);
	transition: flex-basis .8s ease-in-out;
}
.ad-catshow__img {
	height: 500px; position: relative; display: flex; align-items: center; overflow: hidden;
	left: 50%; transform: translateX(-50%); width: max-content; max-width: none;
	transition: left .8s ease-in-out, transform .8s ease-in-out;
}
.ad-catshow__img img { width: auto; height: 100%; object-fit: contain; display: block; }
.ad-catshow__name { color: #fff; font-size: 20px; font-weight: 700; text-align: center; margin-top: 10px; position: relative; transition: .8s; }
.ad-catshow__info {
	position: absolute; right: 20px; top: 50px; max-width: 200px; color: #fff; opacity: 0; pointer-events: none;
	transition: opacity .8s ease;
}
.ad-catshow__info-title { display: block; font-size: 20px; font-weight: 700; margin-bottom: 5px; }
.ad-catshow__count { display: block; opacity: .8; margin-bottom: 6px; }
.ad-catshow__info p { margin: 0 0 6px; font-size: 14px; }
.ad-catshow__more { display: inline-block; background: var(--ad-primary); color: #fff !important; padding: 5px 15px; border-radius: 5px; margin-top: 5px; }
.ad-catshow__more:hover { background: var(--ad-accent); }
.ad-catshow__item:hover { flex-basis: 200px; }
.ad-catshow__item:hover .ad-catshow__info { opacity: 1; pointer-events: auto; transition-delay: .8s; }
@media (min-width: 992px) {
	.ad-catshow__item:hover .ad-catshow__img { left: 20%; transform: translateX(-20%); }
	.ad-catshow__item:hover .ad-catshow__name { left: -20%; }
}
@media (max-width: 1360px) and (min-width: 1200px) { .ad-catshow__img { height: 350px !important; } }
@media (max-width: 1199px) {
	.ad-catshow { flex-direction: column; }
	.ad-catshow__head, .ad-catshow__list { width: 100%; }
	.ad-catshow__title { text-align: center; padding: 0; }
	.ad-catshow__list { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--ad-accent) #f7f7f7; }
	.ad-catshow__item { min-width: 300px; }
}
@media (max-width: 767px) {
	.ad-catshow__item { min-width: 100%; }
	.ad-catshow__info { max-width: 300px; left: 20px; right: 20px; margin: auto; text-align: center; background: rgba(255, 255, 255, .17); padding: 20px; border-radius: 10px; }
}

/* Flash sale */
.ad-flash__box { background: var(--ad-fs-bg, var(--ad-primary)); padding: 20px; border-radius: var(--ad-fs-radius, 20px); }
.ad-flash__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding-bottom: 20px; position: relative; }
.ad-flash__head::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08) 30%, rgba(255, 255, 255, .08) 70%, transparent); }
.ad-flash__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 26px; font-weight: 700; color: #fff !important; }
.ad-flash__title img, .ad-flash__bolt { height: 40px; width: auto; animation: ad-pulse .8s linear infinite; }
.ad-flash__bolt { width: 32px; fill: #f6c445; }
@keyframes ad-pulse { 50% { opacity: .3; transform: scale(1.3); } }
.ad-countdown { display: flex; align-items: center; gap: 5px; color: #fff; }
.ad-countdown__b {
	display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
	width: 70px; height: 60px; padding: 5px; border-radius: 5px; border: 1px solid var(--ad-glass-bd); background: var(--ad-glass-bg);
}
.ad-countdown__b b { font-size: 30px; line-height: 30px; }
.ad-countdown__b span { font-size: 14px; }
.ad-countdown > i { font-style: normal; font-size: 30px; font-weight: 600; }
@media (max-width: 767px) {
	.ad-flash__box { padding: 10px; border-radius: 10px; }
	.ad-flash__head { flex-direction: column; gap: 20px; }
	.ad-flash__title { font-size: 22px; }
	.ad-countdown__b { width: 60px; }
	.ad-countdown__b b { font-size: 20px; line-height: 20px; }
	.ad-countdown > i { font-size: 16px; margin: 0 3px; }
}

/* Tab sản phẩm */
.ad-ptabs__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.ad-ptabs__head .ad-title { margin: 0; }
.ad-ptabs__nav { display: flex; gap: 10px; background: var(--ad-primary); padding: 10px; border-radius: 50px; }
.ad-ptabs__link {
	margin: 0; min-height: 0; line-height: 1.4; cursor: pointer; text-transform: none; letter-spacing: 0;
	border-radius: 50px; padding: 10px 20px; font-size: 15px; font-weight: 700; color: #fff;
	border: 1px solid var(--ad-glass-bd); background: var(--ad-glass-bg); transition: .3s;
}
.ad-ptabs__link.is-active, .ad-ptabs__link:hover { background: var(--ad-primary); color: #fff; border-color: rgba(255, 255, 255, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ad-ptabs__panel { display: none; }
.ad-ptabs__panel.is-active { display: block; }
@media (max-width: 991px) {
	.ad-ptabs__head { flex-direction: column; align-items: stretch; }
	.ad-ptabs__nav { background: transparent !important; padding: 0; border-radius: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
	.ad-ptabs__link { background: #fff; color: #000; border-color: var(--ad-primary); flex: 0 0 auto; }
	.ad-ptabs__link.is-active { background: var(--ad-primary); color: #fff; }
}

/* Sản phẩm theo danh mục */
.ad-psec__head { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.ad-psec__head .ad-title { margin: 0; }
.ad-psec__body { display: flex; gap: 20px; }
.ad-psec__banner { flex: 0 0 calc((100% + 20px) * var(--ad-bw, 3) / 12 - 20px); max-width: calc((100% + 20px) * var(--ad-bw, 3) / 12 - 20px); align-self: flex-start; }
.ad-psec__banner img { height: 100%; object-fit: cover; }
.ad-psec__products { flex: 1; min-width: 0; }
.ad-psec.banner-right .ad-psec__banner { order: 2; }
@media (max-width: 767px) {
	.ad-psec__body { flex-direction: column; }
	.ad-psec__banner { max-width: 100%; flex-basis: auto; border-radius: 5px; }
}

/* Banner parallax */
.ad-pbanner {
	min-height: 500px; display: flex; align-items: center; justify-content: center; position: relative;
	background-size: cover; background-position: center; color: var(--ad-pb-color, #fff);
}
.ad-pbanner.is-fixed { background-attachment: fixed; }
@supports (-webkit-touch-callout: none) { .ad-pbanner.is-fixed { background-attachment: scroll; } }
.ad-pbanner::before { content: ""; position: absolute; inset: 0; background: var(--ad-pb-ov, rgba(0, 0, 0, .5)); }
.ad-pbanner__content { position: relative; z-index: 1; max-width: var(--ad-pb-mw, 700px); padding: 40px 20px; display: flex; flex-direction: column; align-items: center; }
.ad-pbanner.text-left .ad-pbanner__content { align-items: flex-start; margin-right: auto; }
.ad-pbanner.text-right .ad-pbanner__content { align-items: flex-end; margin-left: auto; }
.ad-pbanner__t1 { font-size: 30px; }
.ad-pbanner__t2 { font-size: 40px; font-weight: 700; color: inherit !important; margin: 0 0 10px; line-height: 1.4; }
.ad-pbanner__text { font-size: 18px; }
@media (max-width: 767px) { .ad-pbanner__t1 { font-size: 20px; } .ad-pbanner__t2 { font-size: 26px; } .ad-pbanner__text { font-size: 16px; } }

/* Đánh giá */
.ad-reviews { padding: 80px 0; background: var(--ad-primary); color: var(--ad-rv-color, #fff); }
.ad-reviews__title { text-align: center; color: inherit !important; margin-bottom: 50px; }
/* Chừa 50px phía trên mỗi thẻ cho avatar nhô lên.
   Phải !important + selector mạnh vì Flatsome ép `.flickity-slider>div{padding:0!important}`. */
.ad-reviews .ad-grid > .ad-grid__cell,
.ad-reviews .ad-grid .flickity-slider > .ad-grid__cell { padding-top: 50px !important; }
.ad-review {
	position: relative; height: 100%; text-align: center; color: inherit; padding: 0 20px 20px; border-radius: 10px;
	border: 1px solid var(--ad-glass-bd); background: var(--ad-glass-bg);
	display: flex; flex-direction: column; align-items: center;
}
.ad-reviews.is-solid .ad-review { background: #fff; color: #000; border-color: #eee; }
/* Avatar: nhô 50px lên trên mép thẻ bằng margin âm (không dùng position:relative như demo
   vì cách đó vẫn giữ chỗ cũ trong bố cục → khoảng trống lớn giữa avatar và tên). */
.ad-review__avatar {
	display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto;
	width: 100px; height: 100px; border-radius: 50%; margin: -50px auto 12px;
	background: var(--ad-accent); border: 3px solid rgba(255, 255, 255, .6); box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.ad-review__text { flex: 1; }
@media (max-width: 767px) {
	.ad-reviews .ad-grid > .ad-grid__cell,
	.ad-reviews .ad-grid .flickity-slider > .ad-grid__cell { padding-top: 40px !important; }
	.ad-review__avatar { width: 80px; height: 80px; margin-top: -40px; }
}
.ad-review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ad-review__initial { font-size: 40px; font-weight: 700; color: #fff; }
.ad-review__name { font-size: 20px; font-weight: 700; }
.ad-review__role { margin-bottom: 10px; }
.ad-review__text { font-size: 16px; font-style: italic; }
.ad-review__text p { margin: 0; }
.ad-stars { --p: calc(var(--ad-rating, 5) / 5 * 100%); display: flex; justify-content: center; font-size: 21px; line-height: 1; margin: 10px 0; }
.ad-stars::before { content: "★★★★★"; background: linear-gradient(90deg, #ffc800 var(--p), #999 var(--p)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 2px; }
@media (max-width: 767px) { .ad-reviews { padding: 50px 0; } .ad-reviews__title { margin-bottom: 20px; } }

/* FAQ */
.ad-faq__grid { display: flex; gap: 30px; align-items: flex-start; }
.ad-faq__img { flex: 0 0 calc((100% + 30px) * var(--ad-faq-w, 4) / 12 - 30px); }
.ad-faq.img-right .ad-faq__img { order: 2; }
.ad-faq__body { flex: 1; min-width: 0; }
.ad-faq__title { display: block; font-size: 26px; font-weight: 700; color: var(--ad-primary) !important; margin: 0 0 30px; }
.ad-faq__title span { display: block; color: #000; font-weight: 400; font-size: 16px; margin-top: 4px; }
.ad-faq__list { list-style: none; margin: 0; padding: 0; }
.ad-faq__item { padding: 10px 20px; border-radius: 10px; margin: 0 0 10px; border: 1px solid var(--ad-primary); background: transparent; }
.ad-faq__item:last-child { margin-bottom: 0; }
.ad-faq__q {
	display: block; position: relative; width: 100%; text-align: left; background: none; border: 0; margin: 0; min-height: 0;
	padding: 5px 40px 5px 0; font-size: 18px; font-weight: 700; color: #000; line-height: 1.5; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.ad-faq__icon { position: absolute; right: 0; top: 50%; width: 30px; height: 30px; border-radius: 50%; background: var(--ad-primary); color: #fff; display: flex; align-items: center; justify-content: center; transform: translateY(-50%); transition: .5s; }
.ad-faq__icon .ad-ico { width: 16px; height: 16px; }
.ad-faq__a-in { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee; font-size: 18px; }
.ad-faq__a-in p:last-child { margin-bottom: 0; }
.ad-faq__item.is-open .ad-faq__q { color: var(--ad-primary); }
.ad-faq__item.is-open .ad-faq__icon { transform: translateY(-50%) rotate(180deg); background: var(--ad-accent); }
@media (max-width: 1199px) { .ad-faq__grid { flex-direction: column; } .ad-faq__img { flex-basis: auto; width: 100%; } }
@media (max-width: 767px) { .ad-faq__item { padding: 10px; } .ad-faq__q { font-size: 16px; } .ad-faq__a-in { font-size: 14px; } .ad-faq__title { font-size: 22px; margin-bottom: 20px; } }

/* Thẻ bài viết */
.ad-post { overflow: hidden; background: var(--ad-tint); border-radius: 10px; padding: 15px; height: 100%; width: 100%; display: flex; flex-direction: column; }
.ad-post__thumb { display: block; position: relative; overflow: hidden; padding-bottom: 67%; border-radius: 8px; margin-bottom: 10px; background: #e9e4da; }
.ad-post__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ad-post:hover .ad-post__thumb img { transform: scale(1.2); }
.ad-post__body { display: flex; flex-direction: column; flex: 1; }
.ad-post__meta { display: flex; gap: 8px; align-items: center; list-style: none; margin: 0 0 10px; padding: 0; font-size: 13px; color: #333; }
.ad-post__meta li { display: inline-flex; align-items: center; gap: 5px; margin: 0; }
.ad-post__meta .ad-ico { color: var(--ad-accent); width: 16px; height: 16px; }
.ad-post__title { margin: 0 0 8px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.ad-post__title a { color: #000; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-post__title a:hover { color: var(--ad-primary); }
.ad-post__excerpt { margin: 0 0 10px; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-post__more { margin-top: auto; color: var(--ad-primary) !important; display: inline-flex; gap: 2px; align-items: center; font-weight: 700; transition: .5s; }
.ad-post__more .ad-ico { width: 18px; height: 18px; }
.ad-post__more:hover { color: var(--ad-accent) !important; gap: 6px; }

/* Instagram */
.ad-insta__item { position: relative; overflow: hidden; border-radius: 10px; }
.ad-insta__media { position: relative; padding-bottom: var(--ad-ig-ratio, 125%); overflow: hidden; border-radius: 10px; }
.ad-insta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-insta__media::before { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity 1s cubic-bezier(.3, 1, .3, 1); z-index: 1; }
.ad-insta__ig { position: absolute; top: 15px; right: 15px; z-index: 3; color: #fff; }
.ad-insta__ig .ad-ico { width: 26px; height: 26px; }
.ad-insta__products { position: absolute; left: 20px; right: 20px; bottom: -100%; z-index: 2; opacity: 0; pointer-events: none; transition: 1s cubic-bezier(.3, 1, .3, 1); transition-property: bottom, opacity; }
.ad-insta__products ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ad-insta__products li { margin: 0; }
.ad-insta__products li a { display: block; position: relative; padding-bottom: 134%; border-radius: 5px; overflow: hidden; background: linear-gradient(180deg, #c4c4c4, #fff); }
.ad-insta__products li img { position: absolute; inset: 0; margin: auto; max-height: 100%; width: 100%; object-fit: contain; }
.ad-insta__more { display: block; margin-top: 20px; padding: 10px; text-align: center; background: #fff; color: #000 !important; border-radius: 5px; font-size: 16px; }
.ad-insta__more:hover { background: var(--ad-primary); color: #fff !important; }
.ad-insta__item:hover .ad-insta__media::before { opacity: .4; }
.ad-insta__item:hover .ad-insta__products { opacity: 1; pointer-events: auto; bottom: 20px; }

/* Dải cam kết */
.ad-policy { background: var(--ad-primary); padding: 20px 0 0; overflow: hidden; }
.ad-policy .ad-grid__cell { margin-bottom: 0; }
.ad-policy__item {
	display: flex; align-items: center; gap: 10px; height: 100%; padding: 10px 20px; border-radius: 10px;
	border: 1px solid var(--ad-glass-bd); background: var(--ad-glass-bg); color: #fff !important;
}
.ad-policy.is-plain .ad-policy__item { background: transparent; border-color: transparent; }
.ad-policy__icon { min-width: 50px; display: flex; justify-content: center; color: #fff; }
.ad-policy__icon img { max-width: 50px; max-height: 50px; }
.ad-policy__icon .ad-ico { width: 40px; height: 40px; }
.ad-policy__text { color: #fff; font-size: 14px; }
.ad-policy__title { display: block; font-size: 18px; font-weight: 700; }
.ad-policy__desc { display: block; opacity: .95; }

/* Footer */
.ad-footer { background: var(--ad-primary); color: var(--ad-ft-color, #fff); padding-top: 50px; }
.ad-footer__grid { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.ad-footer__col { padding: 0 15px; margin-bottom: 20px; width: 16.6667%; }
.ad-footer__about { width: 25%; }
.ad-footer__col:nth-child(2) { width: 25%; }
.ad-footer__about p { font-size: 18px; margin: 0 0 10px; color: inherit; }
.ad-footer__logo { display: inline-block; margin-bottom: 20px; }
.ad-footer__logo img { max-height: 70px; width: auto; }
.ad-footer__title { font-size: 24px; font-weight: 700; color: #fff !important; margin: 0 0 10px; position: relative; }
.ad-footer__toggle { all: unset; display: block; width: 100%; cursor: default; font: inherit; color: inherit; position: relative; }
.ad-footer__info { list-style: none; margin: 0; padding: 0; }
.ad-footer__info li, .ad-footer__links li { margin: 0 0 5px; font-size: 18px; color: inherit; list-style: none; }
.ad-footer__info a { color: inherit !important; }
.ad-footer__info a:hover { color: var(--ad-accent) !important; }
.ad-footer__links { margin: 0; padding: 0; }
.ad-footer__links a { color: #fff !important; display: flex; align-items: center; transition: .3s; }
.ad-footer__links a::before { content: "›"; font-size: 18px; margin-right: 8px; transition: .3s; }
.ad-footer__links a:hover { color: var(--ad-accent) !important; }
.ad-footer__links a:hover::before { transform: translateX(3px); }
.ad-social { display: flex; gap: 10px; list-style: none; margin: 10px 0 0; padding: 0; }
.ad-social li { margin: 0; }
.ad-social a { width: 35px; height: 35px; border: 1px solid #fff; border-radius: 5px; display: flex; align-items: center; justify-content: center; color: #fff !important; transition: .5s; }
.ad-social a .ad-ico { width: 22px; height: 22px; }
.ad-social a:hover { background: #fff; color: var(--ad-primary) !important; }
.ad-footer__copy { position: relative; margin-top: 30px; padding: 10px 0; font-size: 16px; text-align: center; color: #fff; }
.ad-footer__copy::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08) 30%, rgba(255, 255, 255, .08) 70%, transparent); }
.ad-footer__copy a { color: #fff !important; font-weight: 700; }
@media (max-width: 1199px) {
	.ad-footer__about { width: 100%; }
	.ad-footer__col:nth-child(2), .ad-footer__col { width: 33.333%; }
	.ad-footer__about { width: 100%; }
}
@media (max-width: 767px) {
	.ad-footer__col, .ad-footer__col:nth-child(2) { width: 100%; }
	.ad-footer__title { font-size: 20px; }
	.ad-footer__about p, .ad-footer__info li { font-size: 16px; }
	.ad-footer__links li { font-size: 14px; }
	.ad-footer__toggle { cursor: pointer; }
	.ad-footer__pm { position: absolute; right: 8px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); }
	.ad-footer__pm::before, .ad-footer__pm::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; transform: translate(-50%, -50%); transition: .4s; }
	.ad-footer__pm::before { width: 11px; height: 1px; }
	.ad-footer__pm::after { width: 1px; height: 11px; }
	.ad-footer__menu.is-open .ad-footer__pm::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
	.ad-footer__menu .ad-footer__links { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .35s ease; }
	.ad-footer__menu.is-open .ad-footer__links { max-height: 500px; opacity: 1; }
}

/* Ẩn footer mặc định của Flatsome khi dùng block */
.ad-theme .footer-wrapper .footer-1, .ad-theme .footer-wrapper .footer-2, .ad-theme .absolute-footer { display: none; }
.ad-theme .footer-wrapper { background: var(--ad-primary); }

/* Nút nổi */
.ad-floating { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 12px; }
.ad-floating__btn { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ad-primary); color: #fff !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); transition: .3s; }
.ad-floating__btn .ad-ico { width: 24px; height: 24px; }
.ad-floating__btn:hover { background: var(--ad-accent); }
.ad-floating__top { width: 36px; height: 36px; align-self: center; opacity: 0; visibility: hidden; transform: translateY(10px); }
.ad-floating__top.is-show { opacity: 1; visibility: visible; transform: none; }
.ad-floating__call { border: 3px solid rgba(255, 255, 255, .7); animation: ad-ring 2s infinite; }
@keyframes ad-ring { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ad-primary) 50%, transparent); } 70% { box-shadow: 0 0 0 14px transparent; } }
.ad-theme #top-link, .ad-theme .back-to-top { display: none !important; }

/* Toast */
.ad-toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: #222; color: #fff; padding: 12px 22px; border-radius: 8px; z-index: 100000; opacity: 0; transition: .3s; font-size: 15px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.ad-toast.is-ok { background: var(--ad-primary); }
.ad-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Popup chào mừng */
.ad-popup { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .3s; }
.ad-popup.is-open { opacity: 1; }
/* Đóng popup: không chặn thao tác ngay cả trong lúc mờ dần, và ẩn hẳn khi có [hidden]
   (display:flex ở trên đè lên [hidden] mặc định của trình duyệt). */
.ad-popup:not(.is-open) { pointer-events: none; }
.ad-popup[hidden] { display: none !important; }
.ad-popup.is-static { position: relative; inset: auto; z-index: 1; }
.ad-popup__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.ad-popup.is-static .ad-popup__overlay { display: none; }
.ad-popup__box { position: relative; width: 100%; max-width: 680px; background: #f6f1e7; border-radius: 12px; overflow: hidden; transform: scale(.95); transition: transform .3s; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.ad-popup.is-open .ad-popup__box { transform: none; }
.ad-popup__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; border: 0; padding: 0; margin: 0; min-height: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ad-popup__close .ad-ico { width: 18px; height: 18px; }
.ad-popup__main { display: flex; }
.ad-popup__content { flex: 1 1 55%; padding: 30px 25px 25px; color: var(--ad-primary); }
.ad-popup__img { flex: 1 1 45%; position: relative; min-height: 320px; }
.ad-popup__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-popup__logo img { max-height: 54px; width: auto; margin-bottom: 15px; }
.ad-popup__t1 { text-transform: uppercase; letter-spacing: 1px; font-size: 15px; }
.ad-popup__t2 { font-family: "Playfair Display", Georgia, serif; font-size: 34px; font-weight: 700; line-height: 1.15; text-transform: uppercase; margin: 2px 0 10px; }
.ad-popup__text { margin: 0 0 15px; color: #444; font-size: 14px; }
.ad-popup__deal { display: inline-flex; align-items: center; gap: 12px; background: var(--ad-primary); color: #f6f1e7; padding: 10px 18px; border-radius: 6px; margin-bottom: 10px; }
.ad-popup__deal b { font-size: 36px; line-height: 1; }
.ad-popup__deal-lbl, .ad-popup__deal-note { font-size: 12px; text-transform: uppercase; max-width: 90px; line-height: 1.3; }
.ad-popup__code { margin-bottom: 15px; font-size: 14px; }
.ad-popup__code b { letter-spacing: 2px; border: 1px dashed var(--ad-primary); padding: 2px 8px; border-radius: 4px; }
.ad-popup__btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ad-accent); color: #fff !important; padding: 10px 20px; border-radius: 6px; font-weight: 700; text-transform: uppercase; font-size: 14px; }
.ad-popup__btn:hover { background: var(--ad-primary); }
.ad-popup__feats { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 12px 10px; background: #fff; border-top: 1px solid #eadfcd; }
.ad-popup__feats li { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 11px; color: #555; border-right: 1px solid #eadfcd; padding: 0 6px; }
.ad-popup__feats li:last-child { border-right: 0; }
.ad-popup__feats .ad-ico { width: 22px; height: 22px; color: var(--ad-primary); }
html.ad-popup-lock { overflow: hidden; }
@media (max-width: 600px) {
	.ad-popup__main { flex-direction: column-reverse; }
	.ad-popup__img { min-height: 170px; }
	.ad-popup__t2 { font-size: 26px; }
	.ad-popup__feats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.ad-popup__feats li:nth-child(2) { border-right: 0; }
}

/* ==========================================================================
   TRANG TRONG: giới thiệu, liên hệ, cửa hàng, yêu thích
   ========================================================================== */
.ad-aboutb__card { background: var(--ad-ab-bg, #fff); border-radius: 15px; padding: 20px; display: flex; flex-direction: column; gap: 15px; height: 100%; }
.ad-aboutb__card.is-text-first .ad-aboutb__text { order: -1; }
.ad-aboutb__img { position: relative; padding-bottom: var(--ad-ab-ratio, 90%); border-radius: 12px; }
.ad-aboutb__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-aboutb__text h3 { font-size: 22px; font-weight: 700; margin: 0 0 8px; color: #000; }
.ad-aboutb__text p { font-size: 15px; color: #333; margin: 0 0 8px; }
.ad-aboutb__grid > .ad-grid__cell { margin-bottom: var(--ad-gap); }

.ad-contact__grid { display: flex; gap: 30px; align-items: flex-start; }
.ad-contact__form-wrap { flex: 1 1 50%; }
.ad-contact__map { flex: 1 1 50%; border-radius: 10px; overflow: hidden; background: #e5e1d8; }
.ad-contact__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.ad-contact__title { font-size: 26px; font-weight: 700; margin: 0 0 8px; }
.ad-contact__text { font-size: 15px; color: #333; }
.ad-contact__info { list-style: none; margin: 0 0 20px; padding: 0; }
.ad-contact__info li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; font-size: 16px; }
.ad-contact__info .ad-ico { color: var(--ad-primary); width: 20px; height: 20px; margin-top: 2px; }
.ad-form input:not([type=hidden]):not(.ad-hp), .ad-form textarea {
	width: 100%; border-radius: 10px; border: 1px solid #e3dccf; background: #fff; box-shadow: none; padding: 10px 15px; height: auto; min-height: 45px; margin: 0 0 15px; font-size: 15px;
}
.ad-form textarea { min-height: 130px; }
.ad-form input:focus, .ad-form textarea:focus { border-color: var(--ad-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ad-primary) 12%, transparent); }
.ad-form__msg { margin-top: 12px; font-size: 15px; }
.ad-form__msg.is-ok { color: #1b7a3a; }
.ad-form__msg.is-err { color: #c62828; }
@media (max-width: 991px) { .ad-contact__grid { flex-direction: column; } .ad-contact__map { width: 100%; height: 360px !important; } }


.ad-wishlist__loading { padding: 40px; text-align: center; width: 100%; color: #666; }
.ad-wishlist__empty { text-align: center; padding: 40px 0; font-size: 16px; }

/* ==========================================================================
   TIN TỨC
   ========================================================================== */
.ad-blog-page { display: flex; gap: 30px; align-items: flex-start; margin-bottom: 60px; }
.ad-blog-page__main { flex: 1; min-width: 0; }
.ad-blog-side { flex: 0 0 300px; position: sticky; top: 110px; }
.ad-side-box { background: #fff; border-radius: 10px; padding: 15px; margin-bottom: 20px; }
.ad-side-title { font-size: 20px; font-weight: 700; margin: 0 0 10px; color: #000; }
.ad-side-cats { list-style: none; margin: 0; padding: 0; }
.ad-side-cats > li { position: relative; margin: 0; padding: 6px 0; border-bottom: 1px solid #f1ece3; }
.ad-side-cats > li:last-child { border-bottom: 0; }
.ad-side-cats a { color: #000; font-size: 15px; }
.ad-side-cats li.is-current > a, .ad-side-cats a:hover { color: var(--ad-accent); }
.ad-side-posts { list-style: none; margin: 0; padding: 0; }
.ad-side-posts li { display: flex; gap: 10px; margin: 0 0 12px; }
.ad-side-posts__img { flex: 0 0 80px; height: 60px; border-radius: 6px; overflow: hidden; background: #eee; }
.ad-side-posts__img img { width: 100%; height: 100%; object-fit: cover; }
.ad-side-posts__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: 14px; color: #000; line-height: 1.4; }
.ad-side-posts span { font-size: 12px; color: #777; }
.ad-pagination, .ad-theme .woocommerce-pagination { margin: 20px 0; text-align: center; }
.ad-pagination .nav-links, .ad-theme .woocommerce-pagination ul.page-numbers { display: inline-flex; gap: 8px; border: 0; padding: 0; margin: 0; }
.ad-theme .woocommerce-pagination ul.page-numbers li { border: 0; margin: 0; }
.ad-pagination .page-numbers, .ad-theme .woocommerce-pagination .page-numbers > li > * {
	min-width: 38px; height: 38px; padding: 0 8px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
	background: #fff; color: #000; border: 0; font-weight: 700; line-height: 1;
}
.ad-pagination .page-numbers.current, .ad-pagination .page-numbers:hover,
.ad-theme .woocommerce-pagination .page-numbers > li > .current, .ad-theme .woocommerce-pagination .page-numbers > li > a:hover { background: var(--ad-primary); color: #fff; }
@media (max-width: 991px) { .ad-blog-page { flex-direction: column; } .ad-blog-side { position: static; flex-basis: auto; width: 100%; } }

/* Bài viết */
.ad-article { display: flex; gap: 30px; align-items: flex-start; margin-bottom: 60px; }
.ad-article__toc { flex: 0 0 300px; position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow: auto; }
.ad-toc { background: var(--ad-primary); color: #fff; border-radius: 10px; padding: 15px; }
.ad-toc__title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.ad-toc ol { margin: 0 0 0 18px; padding: 0; list-style: disc; }
.ad-toc ol ol { list-style: decimal; margin-top: 4px; }
.ad-toc li { margin: 0 0 6px; font-size: 14px; }
.ad-toc a { color: #fff !important; }
.ad-toc a:hover { color: var(--ad-accent) !important; }
.ad-article__main { flex: 1; min-width: 0; }
.ad-article__head { text-align: center; margin-bottom: 20px; }
.ad-article__title { font-size: 26px; font-weight: 700; margin: 0 0 10px; }
.ad-article__head .ad-post__meta { justify-content: center; }
.ad-article__content { font-size: 15px; line-height: 1.7; }
.ad-article__content h2 { font-size: 22px; margin: 25px 0 10px; }
.ad-article__content h3 { font-size: 19px; margin: 20px 0 10px; }
.ad-article__content img { border-radius: 10px; height: auto; }
.ad-article__content a { color: var(--ad-primary); text-decoration: underline; }
.ad-article__comments { margin-top: 30px; background: #fff; padding: 20px; border-radius: 10px; }
@media (max-width: 991px) { .ad-article { flex-direction: column; } .ad-article__toc { position: static; flex-basis: auto; width: 100%; max-height: none; } }

/* Trang thường (page) có nội dung Gutenberg/HTML */
.ad-theme .page-wrapper > .row-main > .large-12 > .col-inner > .entry-content,
.ad-theme .page-wrapper .row-main { max-width: 1700px; }
.ad-theme .page-wrapper .row-main > .col { padding: 0 15px; }

/* ---------- tinh chỉnh sau QA ---------- */
.ad-psec__head .ad-title, .ad-ptabs__head .ad-title { flex: 0 0 auto; width: auto; }
.ad-psec__head .ad-chips { flex: 0 1 auto; min-width: 0; }
.ad-ptabs__link { white-space: nowrap; }
.ad-theme .header-main .header-nav-main > li > a { display: inline-flex !important; flex-wrap: nowrap !important; flex-direction: row !important; align-items: center; gap: 3px; }
.ad-theme .header-main .header-nav-main > li > a .icon-angle-down { font-size: 13px; }
.ad-theme .header-main .header-nav-main > li > a .icon-angle-down { display: none; }
.ad-theme .header-main .header-nav-main > li.has-dropdown > a::after {
	content: ""; border: 5px solid transparent; border-top-color: currentColor; border-bottom: 0; margin: 2px 0 0 4px; transition: transform .3s;
}
.ad-theme .header-main .header-nav-main > li.has-dropdown:hover > a::after { transform: rotate(180deg); }

/* Header trong suốt: chừa chiều cao top bar (JS đo & gán --ad-topbar-h) */
.ad-has-overlay-header.home #main { padding-top: var(--ad-topbar-h); }
/* Hero trang trong: không dùng margin-top (đẩy cả trang xuống, lộ khoảng trống).
   Nền hero chạy từ mép trên, nằm dưới top bar + header trong suốt; nội dung được chừa bằng padding-top. */
.ad-has-overlay-header .ad-page-hero { margin-top: 0; padding-top: calc(var(--ad-topbar-h) + var(--ad-header-h) + var(--ad-hero-pad)); }
/* Giá trị dự phòng trước khi JS đo chiều cao thật (JS gán inline trên <html>, ưu tiên hơn :root). */
@media (max-width: 849px) { :root { --ad-header-h: 70px; } }
.ad-toc ol ol { list-style: none; margin-left: 6px; }
.ad-article__content figure { margin: 15px 0; text-align: center; }
.ad-article__content figure img { max-height: 520px; width: auto; background: linear-gradient(180deg, #c4c4c4, #fff); }
.ad-article__content figcaption { font-size: 13px; color: #666; margin-top: 6px; }
.ad-article__content table { background: #fff; border-radius: 8px; }
.ad-footer__title { font-size: clamp(20px, 1.6vw, 24px); }

/* Lưới banner */
.ad-bgrid__item { display: block; position: relative; overflow: hidden; border-radius: var(--ad-bn-r, 10px); background: #e7e1d6; }
.ad-bgrid__item picture, .ad-bgrid__item img { display: block; width: 100%; }
.ad-bgrid.has-ratio .ad-bgrid__item img { aspect-ratio: var(--ad-bn-ratio); height: auto; object-fit: cover; }
.ad-bgrid.is-zoom .ad-bgrid__item img { transition: transform .8s ease; }
.ad-bgrid.is-zoom .ad-bgrid__item:hover img { transform: scale(1.05); }
.ad-bgrid__item.is-empty { display: flex; align-items: center; justify-content: center; min-height: 160px; color: #888; border: 2px dashed #cfc6b6; }

/* Nút sửa nhanh khối đầu trang (chỉ quản trị thấy) */
.ad-edit-block { display: inline-block; margin: 0 0 12px; padding: 6px 12px; border: 1px dashed var(--ad-accent); border-radius: 6px; font-size: 13px; color: var(--ad-primary) !important; background: #fff; }
.ad-edit-block:hover { background: var(--ad-accent); color: #fff !important; }
.ad-review__role { opacity: .85; font-size: 14px; }
.ad-review .ad-stars { margin: 12px 0 0; }
