/* Footer desktop/tablet theo footer kit (migration 023): 4 cột nền trắng; tablet 2 cột. Chỉ áp cho section class vcl-footer-kit. */
.vcl-footer-kit { background: #fff !important; padding: 42px 24px 38px; }
.vcl-footer-kit > .elementor-container { display: grid !important; grid-template-columns: 25fr 34fr 22fr 19fr; gap: 28px; align-items: start; max-width: 1200px; width: 100%; }
.vcl-footer-kit .elementor-column { width: 100% !important; min-width: 0; }
.vcl-footer-kit .elementor-widget-wrap { padding: 0 !important; }
.vcl-footer-kit .elementor-widget:not(:last-child) { margin-bottom: 0; }
.vcl-footer-kit, .vcl-footer-kit .elementor-widget-text-editor { color: #171717; font-size: 12px; line-height: 1.5; }
.vcl-footer-kit .elementor-widget-text-editor p { margin: 0 0 8px; color: #555; font-size: 12px; line-height: 1.5; }
.vcl-footer-kit a { color: inherit; text-decoration: none; }
.vcl-footer-kit .vcl-f-lines a, .vcl-footer-kit .vcl-f-list a { color: #555; }
.vcl-footer-kit .vcl-f-lines a:hover, .vcl-footer-kit .vcl-f-list a:hover { color: #111; text-decoration: underline; }

/* Cột 1 */
.vcl-footer-kit .elementor-widget-image:first-child img { filter: invert(1); width: min(220px, 100%); height: auto; display: block; margin: 0 0 18px; }
.vcl-footer-kit .vcl-footer-tagline { margin: 0 0 9px !important; }
.vcl-footer-kit .vcl-footer-tagline strong { color: #171717 !important; font-size: 13px; line-height: 1.45; font-weight: 700; opacity: 1; }
.vcl-footer-kit .vcl-footer-intro { opacity: 1 !important; margin-bottom: 12px !important; }
.vcl-footer-kit .elementor-social-icons-wrapper { display: flex; gap: 8px; margin-top: 14px; }
.vcl-footer-kit .elementor-social-icon { background-color: #000 !important; width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.vcl-footer-kit .elementor-social-icon i { color: #fff !important; font-size: 12px; }
.vcl-footer-kit .elementor-social-icon svg { fill: #fff !important; width: 12px; height: 12px; }

/* Cột 2: bản đồ 4:3 */
.vcl-footer-kit .vcl-footer-map { max-width: none !important; margin: 0 !important; aspect-ratio: 4 / 3; }
.vcl-footer-kit .vcl-footer-map iframe { width: 100% !important; height: 100% !important; display: block; border: 0; }

/* Cột 3 và 4 */
.vcl-footer-kit .vcl-f-h { margin: 0 0 13px; font-size: 12px; line-height: 1.4; font-weight: 700; text-transform: uppercase; color: #171717; letter-spacing: 0; }
.vcl-footer-kit .elementor-widget-text-editor p.vcl-f-co { color: #171717; font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.vcl-footer-kit .vcl-f-lines { overflow-wrap: anywhere; }
.vcl-footer-kit .elementor-widget-image:not(:first-child) img { max-width: 120px; height: auto; margin-top: 7px; }
.vcl-footer-kit .vcl-f-list { list-style: none; margin: 0; padding: 0; }
.vcl-footer-kit .vcl-f-list li { margin: 0 0 7px; font-size: 12px; line-height: 1.5; }

/* Form đăng ký */
.vcl-footer-kit .vcl-f-news { margin-top: 22px; }
.vcl-footer-kit .vcl-f-news__title { margin: 0 0 10px; font-size: 12px; line-height: 1.45; font-weight: 700; text-transform: uppercase; text-align: right; color: #171717; }
.vcl-footer-kit .vcl-f-news__form { display: flex; border-bottom: 1px solid #bbb; margin: 0; }
.vcl-footer-kit .vcl-f-news__form input { width: 100%; min-width: 0; padding: 8px 4px; border: 0 !important; outline: 0; font: inherit; font-size: 11px; background: transparent !important; box-shadow: none !important; }
.vcl-footer-kit .vcl-f-news__form button { width: 30px; border: 0; background: #ddd; color: #333; cursor: pointer; padding: 0; border-radius: 0; }
.vcl-footer-kit .vcl-f-news__form button:hover { background: #111; color: #fff; }
.vcl-footer-kit a:focus-visible, .vcl-footer-kit button:focus-visible, .vcl-footer-kit input:focus-visible { outline: 2px solid #315b9b; outline-offset: 3px; }

/* Tablet: 2 cột (logo + bản đồ / thông tin + chính sách) */
@media (max-width: 1023px) {
	.vcl-footer-kit { padding: 36px 24px; }
	.vcl-footer-kit > .elementor-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
	.vcl-footer-kit .vcl-f-news__title { text-align: left; }
}


/* Thanh liên hệ nổi và nút lên đầu trang: dịch sát mép phải để không đè lên ảnh/nội dung (desktop). */
@media (min-width: 1025px) {
	.tongluc-contact-sidebar.tlc-right { transform: translateX(10px); transition: transform .3s ease; }
	.tongluc-contact-sidebar.tlc-right:hover { transform: translateX(0); }
	#ast-scroll-top { right: 8px !important; }
}

/* ===== Footer mobile theo mobile footer kit (migration 024): nền đen, dải ảnh, logo + MXH, 4 accordion, form email, copyright. Áp cho ≤ 1024px (điện thoại và tablet). ===== */
@media (max-width: 1024px) {
	.vcl-footer-strip { padding: 0 !important; margin: 0 !important; background: #000; }
	.vcl-footer-strip .elementor-widget-wrap, .vcl-footer-strip .elementor-element-populated { padding: 0 !important; }
	.vcl-f-strip { display: grid; grid-template-columns: repeat(3, 1fr); height: 56px; overflow: hidden; }
	.vcl-f-strip img { width: 100%; height: 56px; object-fit: cover; display: block; }
	.vcl-footer-m { background: #000 !important; padding: 15px 0 12px !important; }
	.vcl-footer-m > .elementor-container { max-width: 100% !important; padding: 0 18px; }
	.vcl-footer-m .elementor-widget-wrap { padding: 0 !important; }
	.vcl-footer-m .elementor-heading-title { color: #f5f5f5 !important; font-size: 12px !important; font-weight: 700; text-transform: uppercase; text-align: center; margin: 0 0 6px; }
	.vcl-footer-m .elementor-social-icon { background-color: #f5f5f5 !important; width: 22px; height: 22px; }
	.vcl-footer-m .elementor-social-icon i { color: #000 !important; font-size: 11px; }
	.vcl-footer-m .elementor-social-icon svg { fill: #000 !important; width: 11px; height: 11px; }
	.vcl-footer-m .vcl-footer-tagline strong { color: #f5f5f5 !important; font-size: 13px; line-height: 1.45; }
	.vcl-footer-m .vcl-footer-intro, .vcl-footer-m .elementor-widget-text-editor p { color: #bdbdbd !important; font-size: 12px; line-height: 1.5; }
	.vcl-footer-m .elementor-toggle { border-top: 1px solid #666; }
	.vcl-footer-m .elementor-toggle-item { border: 0 !important; border-bottom: 1px solid #666 !important; margin: 0 !important; }
	.vcl-footer-m .elementor-tab-title { padding: 10px 4px !important; display: flex; align-items: center; gap: 8px; }
	.vcl-footer-m .elementor-tab-title a { color: #fff !important; font-size: 15px; font-weight: 700; text-transform: none; }
	.vcl-footer-m .elementor-tab-title .elementor-toggle-icon { color: #fff !important; }
	.vcl-footer-m .elementor-tab-content { color: #bdbdbd !important; font-size: 12px; line-height: 1.6; padding: 4px 6px 14px !important; border: 0 !important; overflow-wrap: anywhere; }
	.vcl-footer-m .elementor-tab-content a { color: #f5f5f5 !important; }
	.vcl-footer-m .elementor-tab-content ul { list-style: none; margin: 0; padding: 0; }
	.vcl-footer-m .elementor-tab-content li { margin: 0 0 6px; }
	.vcl-footer-m .elementor-tab-content p { margin: 0 0 6px; }
	.vcl-footer-m .elementor-tab-content .vcl-footer-map { max-width: none !important; margin: 10px 0 0 !important; aspect-ratio: 16 / 9; }
	.vcl-footer-m .elementor-tab-content .vcl-footer-map iframe { width: 100% !important; height: 100% !important; border: 0; display: block; }
	.vcl-footer-m .vcl-f-news { margin-top: 18px; }
	.vcl-footer-m .vcl-f-news__title { margin: 0 0 10px; font-size: 14px; line-height: 1.4; font-weight: 700; text-transform: uppercase; color: #f5f5f5; }
	.vcl-footer-m .vcl-f-news__form { display: flex; border-bottom: 1px solid #555; margin: 0; }
	.vcl-footer-m .vcl-f-news__form input { width: 100%; min-width: 0; padding: 10px 2px; border: 0 !important; outline: 0; background: transparent !important; color: #fff !important; font-size: 13px; box-shadow: none !important; }
	.vcl-footer-m .vcl-f-news__form button { width: 30px; border: 0; background: #333; color: #fff; font-size: 20px; padding: 0; border-radius: 0; cursor: pointer; }
	.vcl-footer-m a:focus-visible, .vcl-footer-m button:focus-visible, .vcl-footer-m input:focus-visible, .vcl-footer-m .elementor-tab-title:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
	/* Dòng copyright: căn giữa, chữ nhỏ in hoa, vạch ngăn mảnh, nền đen */
	.site-below-footer-wrap, .site-below-footer-wrap .ast-builder-grid-row { background: #000 !important; }
	.site-below-footer-wrap { border-top: 1px solid #555; }
	.site-below-footer-wrap .ast-footer-copyright, .site-below-footer-wrap .ast-footer-copyright p { color: #ddd !important; text-align: center !important; font-size: 10px !important; text-transform: uppercase; margin: 0; padding: 4px 0; }
}

/* Footer mobile kit: luôn 1 cột (cả ở tablet), logo gọn bên trái, copyright căn giữa */
@media (max-width: 1024px) {
	.vcl-footer-m > .elementor-container { flex-direction: column; flex-wrap: nowrap; max-width: 720px; margin: 0 auto; }
	.vcl-footer-m > .elementor-container > .elementor-column { width: 100% !important; }
	.vcl-footer-m .elementor-inner-section .elementor-container { flex-wrap: nowrap; align-items: center; justify-content: space-between; }
	.vcl-footer-m .elementor-inner-section .elementor-column { width: auto !important; flex: 0 1 auto; }
	.vcl-footer-m .elementor-widget-image img { width: 72px !important; max-width: 72px; height: auto; }
	.vcl-footer-m .elementor-widget-image { text-align: left; }
	.site-below-footer-wrap .ast-builder-grid-row { justify-content: center; }
	.site-below-footer-wrap .site-footer-section, .site-below-footer-wrap .ast-builder-layout-element { justify-content: center !important; text-align: center !important; width: 100%; }
	.site-below-footer-wrap .ast-builder-grid-row { grid-template-columns: 1fr !important; }
}

/* Footer mobile/tablet: cùng bề rộng với nội dung phía trên (lề 10px hai bên), kể cả dòng copyright */
@media (max-width: 1024px) {
	.vcl-footer-m, .site-below-footer-wrap { margin-left: 10px !important; margin-right: 10px !important; }
	.site-below-footer-wrap { width: auto !important; max-width: calc(100% - 20px); box-sizing: border-box; }
	.vcl-footer-m > .elementor-container { padding: 0 10px; }
}

/* Desktop kit: logo ngang gọn đúng mockup, icon mạng xã hội căn lề trái theo cột logo */
@media (min-width: 1025px) {
	.vcl-footer-kit .elementor-widget-image:first-child { text-align: left; }
	.vcl-footer-kit .elementor-widget-image:first-child img { width: 190px; max-width: 100%; margin: 0 0 16px; }
	.vcl-footer-kit .elementor-widget-social-icons, .vcl-footer-kit .elementor-widget-social-icons .elementor-widget-container { text-align: left !important; }
	.vcl-footer-kit .elementor-social-icons-wrapper { justify-content: flex-start !important; margin-left: 0; }
	.vcl-footer-kit .elementor-grid { justify-content: flex-start !important; }
}

/* Cuộn vô hạn hết sản phẩm: không hiện ô "No more products to show." */
.ast-shop-pagination-infinite .ast-shop-load-more.no-more,
.ast-shop-load-more.no-more { display: none !important; }

/* Footer desktop rộng như mockup (13/11) thay vì 1200px của kit */
@media (min-width: 1025px) {
	.vcl-footer-kit > .elementor-container { max-width: min(1840px, calc(100% - 48px)); }
}

/* ===== Footer: cùng bề rộng ở mọi trang + chữ to và rõ hơn (15/11) ===== */
/* Elementor in CSS của hook footer (content_width 1200) với độ ưu tiên cao hơn: ép khung footer giống trang chủ. */
.vcl-footer-kit.elementor-section > .elementor-container { max-width: min(1840px, calc(100% - 48px)) !important; }

@media (min-width: 1025px) {
	.vcl-footer-kit, .vcl-footer-kit .elementor-widget-text-editor { font-size: 15px; line-height: 1.6; color: #1f1f1f; }
	.vcl-footer-kit .elementor-widget-text-editor p { font-size: 15px; line-height: 1.6; color: #2b2b2b; margin: 0 0 9px; }
	.vcl-footer-kit .vcl-f-lines a, .vcl-footer-kit .vcl-f-list a { color: #2b2b2b; }
	.vcl-footer-kit .vcl-f-lines a:hover, .vcl-footer-kit .vcl-f-list a:hover { color: #000; }
	.vcl-footer-kit .vcl-f-h { font-size: 16px; margin-bottom: 14px; }
	.vcl-footer-kit .elementor-widget-text-editor p.vcl-f-co { font-size: 14px; color: #111; }
	.vcl-footer-kit .vcl-f-list li { font-size: 15px; margin-bottom: 9px; }
	.vcl-footer-kit .vcl-footer-tagline strong { font-size: 16px; line-height: 1.45; }
	.vcl-footer-kit .vcl-footer-intro { color: #2b2b2b !important; }
	.vcl-footer-kit .vcl-f-news__title { font-size: 14px; }
	.vcl-footer-kit .vcl-f-news__form input { font-size: 15px; color: #111 !important; padding: 10px 4px; }
	.vcl-footer-kit .vcl-f-news__form input::placeholder { color: #555; opacity: 1; }
	.vcl-footer-kit .vcl-f-news__form button { width: 34px; }
}

@media (max-width: 1024px) {
	.vcl-footer-m .vcl-footer-tagline strong { font-size: 15px !important; }
	.vcl-footer-m .vcl-footer-intro, .vcl-footer-m .elementor-widget-text-editor p { color: #ececec !important; font-size: 14px !important; line-height: 1.6; }
	.vcl-footer-m .elementor-heading-title { font-size: 13px !important; }
	.vcl-footer-m .elementor-tab-title a { font-size: 16px !important; }
	.vcl-footer-m .elementor-tab-content { color: #e6e6e6 !important; font-size: 14px !important; line-height: 1.65; }
	.vcl-footer-m .elementor-tab-content a { color: #fff !important; }
	.vcl-footer-m .elementor-tab-content li { margin-bottom: 8px; }
	.vcl-footer-m .vcl-f-news__title { font-size: 15px; }
	.vcl-footer-m .vcl-f-news__form input { font-size: 15px; color: #fff !important; }
	.vcl-footer-m .vcl-f-news__form input::placeholder { color: #cfcfcf; opacity: 1; }
	.site-below-footer-wrap .ast-footer-copyright, .site-below-footer-wrap .ast-footer-copyright p { font-size: 11px !important; color: #e6e6e6 !important; }
}

/* Bản đồ footer mobile/tablet: khối riêng ngay dưới 4 accordion (16/11) */
@media (max-width: 1024px) {
	.vcl-footer-m .elementor-widget-text-editor .vcl-footer-map { max-width: none !important; margin: 16px 0 6px !important; aspect-ratio: 16 / 9; }
	.vcl-footer-m .elementor-widget-text-editor .vcl-footer-map iframe { width: 100% !important; height: 100% !important; display: block; border: 0; }
}
