/* ModernWP Theme Styles - Custom additions only, Tailwind CSS handles base styles */

/* Notyf toast: luôn hiển thị trên cùng (cart dropdown z-90, menu cao hơn) */
.notyf {
	z-index: 99999 !important;
}

/* Star rating: sao màu vàng cam (amber), không đen */
.mwp-star-rating .star-filled path {
	fill: #fbbf24 !important; /* amber-400 */
}
.mwp-star-rating .star-outline path {
	fill: none !important;
	stroke: #fbbf24 !important; /* amber-400 */
	stroke-width: 1.5px;
	stroke-linejoin: round;
	stroke-linecap: round;
}

/* Mobile: giảm kích thước font chữ (base 87.5% = 14px khi mặc định 16px) */
@media (max-width: 767px) {
	html {
		font-size: 87.5%;
	}
}
@media (min-width: 768px) {
	html {
		font-size: 100%;
	}
}

/*
 * Icon sizes (theme standard):
 * w-3 / h-3   = 12px  (small: list meta, calendar inline)
 * w-3.5/h-3.5 = 14px  (fallback below)
 * w-4 / h-4   = 16px  (small: stars, calendar card, close small)
 * w-5 / h-5   = 20px  (medium: buttons, nav, footer, meta)
 * w-6 / h-6   = 24px  (large: header search/menu, feature icons)
 * w-8 / h-8   = 32px  (hero arrows, benefits)
 * w-10/h-10   = 40px  (placeholder, cart empty)
 */
.w-3\.5 { width: 0.875rem; }
.h-3\.5 { height: 0.875rem; }
.w-4\.5 { width: 1.125rem; }
.h-4\.5 { height: 1.125rem; }

/* Off-canvas layer: fixed, trên header (z-50) để cart dropdown không bị che */
.offcanvas-layer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    pointer-events: none !important;
    z-index: 60;
}
/* Con trong layer vẫn nhận click khi có pointer-events: auto */
.offcanvas-layer * {
    pointer-events: auto;
}
.offcanvas-layer .pointer-events-none,
.offcanvas-layer .mobile-menu-overlay.pointer-events-none,
.offcanvas-layer .mobile-menu.pointer-events-none {
    pointer-events: none !important;
}

/* Ensure site content displays properly */
.site-content {
    display: block !important;
    width: 100%;
    min-height: auto;
    visibility: visible !important;
    opacity: 1 !important;
}

.site-main {
    display: block !important;
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Post content: ảnh và mô tả caption căn giữa (WordPress [caption] shortcode) */
.post-content .wp-caption,
.post-content figure.aligncenter {
    margin-left: auto;
    margin-right: auto;
}
.post-content .wp-caption img,
.post-content figure img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.post-content .wp-caption-text,
.post-content figcaption {
    text-align: center;
}

/* Post content: mobile - tránh tràn ngang (ảnh, iframe, table, pre, long text) */
.post-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    min-width: 0;
}
.post-content img,
.post-content .wp-caption img,
.post-content figure img {
    max-width: 100% !important;
    height: auto !important;
}
.post-content figure,
.post-content .wp-caption,
.post-content .wp-block-image {
    max-width: 100% !important;
}
@media (max-width: 767px) {
    .post-content img.alignleft,
    .post-content img.alignright,
    .post-content .alignleft,
    .post-content .alignright {
        float: none;
        display: block;
        margin-left: auto;
        margin-right: auto;
        max-width: 100% !important;
    }
}
.post-content video,
.post-content iframe {
    max-width: 100%;
}
.post-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.post-content pre,
.post-content code {
    max-width: 100%;
    overflow-x: auto;
}

/* Ensure hero sections display */
.banner-slider,
.hero-section,
section {
    display: block !important;
    visibility: visible !important;
}

/* Trang sản phẩm: mobile danh mục click mới hiện (dùng .is-open tránh conflict với Tailwind .hidden) */
@media (max-width: 1023px) {
	#products-category-panel:not(.is-open) {
		display: none !important;
	}
	#products-category-panel.is-open {
		display: block !important;
		margin-top: 0.25rem;
	}
}
.products-category-chevron {
	transition: transform 0.2s ease;
}

/* Gallery section - transition mượt khi hover, tránh giật ảnh */
.gallery .gallery-item {
    isolation: isolate;
}
.gallery .gallery-item-img {
    display: block;
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery .gallery-item:hover .gallery-item-img {
    transform: scale(1.1);
}
.gallery .gallery-item-overlay {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.gallery .gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* Product card - transition mượt khi hover */
.product-card {
	    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.product-card .product-card-img {
	    display: block;
	    transform-origin: center;
	    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}
.product-card:hover .product-card-img {
	    transform: scale(1.045);
	    filter: saturate(1.02);
}
.product-card .product-card-actions {
	    transition: opacity 0.3s ease;
}
.product-card:hover .product-card-actions {
	    opacity: 1;
}
.product-card:hover {
	    transform: translateY(-4px);
}
.product-card .product-card-cart-icon,
.product-card .add-to-cart-btn svg {
	    width: 1.25rem;
    height: 1.25rem;
    display: block;
    flex-shrink: 0;
}
.product-card .product-card-link {
	    letter-spacing: -0.01em;
}

/* News featured (tin đầu tiên) - transition mượt khi hover, tham khảo news-card */
.news-featured .news-featured-img {
    display: block;
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-featured:hover .news-featured-img {
    transform: scale(1.1);
}

/* News card (blog) - transition mượt khi hover */
.news-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.news-card .news-card-img {
    display: block;
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-card:hover .news-card-img {
    transform: scale(1.1);
}
.news-card .news-card-title {
    transition: color 0.3s ease;
}
.news-card:hover .news-card-title {
    color: rgb(37 99 235);
}
.news-card .news-card-link {
    transition: gap 0.3s ease;
}
.news-card:hover .news-card-link {
    gap: 0.75rem;
}

/* Customer case card (trang khách hàng) - transition mượt khi hover, tham khảo news-card */
.customer-case .customer-case-img {
    display: block;
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.customer-case:hover .customer-case-img {
    transform: scale(1.1);
}

/* Banner slider controls - 2 nút slick đồng bộ (cùng chevron, cùng style, không nền) */
.banner-slider .banner-slider-arrow,
.banner-slider #prev-slide,
.banner-slider #next-slide {
    cursor: pointer;
    border: 0;
    background: transparent !important;
    padding: 0.75rem;
    color: #fff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    transition: transform 0.3s ease;
    outline: none;
}
.banner-slider .banner-slider-arrow:focus,
.banner-slider .banner-slider-arrow:focus-visible,
.banner-slider #prev-slide:focus,
.banner-slider #next-slide:focus,
.banner-slider #prev-slide:focus-visible,
.banner-slider #next-slide:focus-visible {
    background: transparent !important;
    box-shadow: none;
    outline: none;
}
.banner-slider #prev-slide:hover,
.banner-slider #next-slide:hover {
    transform: translateY(-50%) scale(1.25);
}
.banner-slider #prev-slide {
    left: 1rem;
}
.banner-slider #next-slide {
    right: 1rem;
}
@media (min-width: 768px) {
    .banner-slider #prev-slide { left: 2rem; padding: 1rem; }
    .banner-slider #next-slide { right: 2rem; padding: 1rem; }
}
.banner-slider #prev-slide svg,
.banner-slider #next-slide svg {
    width: 2rem;
    height: 2rem;
    display: block;
    filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.2));
    transition: transform 0.3s ease;
}
.banner-slider #prev-slide:hover svg { transform: translateX(-4px); }
.banner-slider #next-slide:hover svg { transform: translateX(4px); }

.banner-slider #slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.banner-slider .slider-dot {
    border: 0;
    padding: 0;
    cursor: pointer;
    border-radius: 9999px;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    flex-shrink: 0;
}
/* Active dot (JS toggles .w-12 .h-3 .bg-white) */
.banner-slider .slider-dot.w-12 {
    width: 3rem !important;
    height: 0.75rem !important;
    background-color: #fff !important;
}
.banner-slider .slider-dot.w-3 {
    width: 0.75rem !important;
    height: 0.75rem !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
}
.banner-slider .slider-dot.w-3:hover {
    background-color: rgba(255, 255, 255, 0.75) !important;
}

.banner-slider .mwp-banner-text-panel {
    position: relative;
    isolation: isolate;
    padding: 1.5rem;
    border-radius: 1.25rem;
    overflow: visible;
}

/* Bỏ nền chữ – dùng text-shadow thay cho nền tối */
.banner-slider .mwp-banner-text-panel::before {
    content: none;
    display: none;
}

.banner-slider .mwp-banner-text-panel > * {
    position: relative;
    z-index: 1;
}

/* Màu chữ tối + bóng sáng – nổi trên nền áo nhiều màu */
.banner-slider .mwp-banner-text-panel {
    color: #0f172a;
}
.banner-slider .mwp-banner-text-panel h2 {
    color: #0f172a !important;
    text-shadow:
        0 0 1px #fff,
        0 0 2px #fff,
        0 1px 3px rgba(255, 255, 255, 0.9),
        0 2px 8px rgba(255, 255, 255, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.15);
}
.banner-slider .mwp-banner-text-panel p {
    color: #1e293b !important;
    text-shadow:
        0 0 1px #fff,
        0 1px 2px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.12);
}
.banner-slider .mwp-banner-text-panel .text-blue-100 {
    color: #1e293b !important;
}
.banner-slider .mwp-banner-text-panel .text-blue-50 {
    color: #334155 !important;
}

@media (min-width: 768px) {
    .banner-slider .mwp-banner-text-panel {
        padding: 2rem;
    }
}

/* Hero mobile: giữ tỉ lệ giống desktop, ẩn text + CTA để chỉ còn ảnh */
@media (max-width: 767px) {
    .banner-slider {
        height: auto !important;
        aspect-ratio: 190 / 75;
    }

    .banner-slider .mwp-banner-text-panel {
        display: none !important;
    }

    .banner-slider #slider-dots {
        bottom: 1rem;
    }
}

/* Custom animations for landing page */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Additional spacing utilities */
.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* Aspect ratio utilities */
.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Additional color utilities */
.text-blue-50 {
    color: rgb(239 246 255);
}

.text-blue-100 {
    color: rgb(219 234 254);
}

.text-blue-600 {
    color: rgb(37 99 235);
}

.text-blue-700 {
    color: rgb(29 78 216);
}

.text-blue-800 {
    color: rgb(30 64 175);
}

.bg-blue-50 {
    background-color: rgb(239 246 255);
}

.bg-blue-100 {
    background-color: rgb(219 234 254);
}

.bg-blue-600 {
    background-color: rgb(37 99 235);
}

.bg-blue-700 {
    background-color: rgb(29 78 216);
}

.bg-blue-800 {
    background-color: rgb(30 64 175);
}

.bg-blue-900 {
    background-color: rgb(30 58 138);
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-blue-50 {
    --tw-gradient-from: rgb(239 246 255);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 246, 255, 0));
}

.from-blue-600 {
    --tw-gradient-from: rgb(37 99 235);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0));
}

.from-blue-900 {
    --tw-gradient-from: rgb(30 58 138);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(30, 58, 138, 0));
}

.via-blue-800 {
    --tw-gradient-stops: var(--tw-gradient-from), rgb(30 64 175), var(--tw-gradient-to, rgba(30, 64, 175, 0));
}

.via-white {
    --tw-gradient-stops: var(--tw-gradient-from), rgb(255 255 255), var(--tw-gradient-to, rgba(255, 255, 255, 0));
}

.to-blue-50 {
    --tw-gradient-to: rgb(239 246 255);
}

.to-blue-700 {
    --tw-gradient-to: rgb(29 78 216);
}

.to-blue-800 {
    --tw-gradient-to: rgb(30 64 175);
}

.to-transparent {
    --tw-gradient-to: transparent;
}

/* Border colors */
.border-blue-300 {
    border-color: rgb(147 197 253);
}

.border-gray-200 {
    border-color: rgb(229 231 235);
}

/* Text colors */
.text-gray-500 {
    color: rgb(107 114 128);
}

.text-gray-700 {
    color: rgb(55 65 81);
}

/* Background colors */
.bg-gray-200 {
    background-color: rgb(229 231 235);
}

.bg-gray-900 {
    background-color: rgb(17 24 39);
}

.bg-green-100 {
    background-color: rgb(220 252 231);
}

.bg-green-500 {
    color: rgb(34 197 94);
}

.bg-green-600 {
    color: rgb(22 163 74);
}

.text-green-500 {
    color: rgb(34 197 94);
}

.text-green-600 {
    color: rgb(22 163 74);
}

/* Opacity utilities */
.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

/* Additional spacing */
.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-12 {
    gap: 3rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pt-8 {
    padding-top: 2rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Width/Height utilities */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.h-3 {
    height: 0.75rem;
}

.w-3 {
    width: 0.75rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.min-h-\[3rem\] {
    min-height: 3rem;
}

/* Positioning */
.top-1\/2 {
    top: 50%;
}

.-translate-y-1\/2 {
    --tw-translate-y: -50%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-x-1\/2 {
    --tw-translate-x: -50%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.left-1\/2 {
    left: 50%;
}

.top-3 {
    top: 0.75rem;
}

.top-4 {
    top: 1rem;
}

.left-3 {
    left: 0.75rem;
}

.left-4 {
    left: 1rem;
}

.right-3 {
    right: 0.75rem;
}

.right-4 {
    right: 1rem;
}

.bottom-8 {
    bottom: 2rem;
}

.-bottom-6 {
    bottom: -1.5rem;
}

.-left-6 {
    left: -1.5rem;
}

.z-20 {
    z-index: 20;
}

/* Rounded utilities */
.rounded-full {
    border-radius: 9999px;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

/* Object fit */
.object-cover {
    object-fit: cover;
}

.object-center {
    object-position: center;
}

/* Scale utilities */
.scale-\[1\.15\] {
    --tw-scale-x: 1.15;
    --tw-scale-y: 1.15;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* Hover effects */
.group:hover .group-hover\:scale-110 {
    --tw-scale-x: 1.1;
    --tw-scale-y: 1.1;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:text-blue-600 {
    color: rgb(37 99 235);
}

.group:hover .group-hover\:bg-blue-600 {
    background-color: rgb(37 99 235);
}

.group:hover .group-hover\:text-white {
    color: rgb(255 255 255);
}

.group:hover .group-hover\:gap-3 {
    gap: 0.75rem;
}

.hover\:bg-blue-50:hover {
    background-color: rgb(239 246 255);
}

.hover\:bg-blue-700:hover {
    background-color: rgb(29 78 216);
}

.hover\:border-blue-300:hover {
    border-color: rgb(147 197 253);
}

.hover\:opacity-75:hover {
    opacity: 0.75;
}

.hover\:scale-125:hover {
    --tw-scale-x: 1.25;
    --tw-scale-y: 1.25;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:translate-x-1:hover {
    --tw-translate-x: 0.25rem;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:-translate-x-1:hover {
    --tw-translate-x: -0.25rem;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* Transition utilities */
.duration-500 {
    transition-duration: 500ms;
}

.duration-1000 {
    transition-duration: 1000ms;
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Text sizes */
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

/* Font weights */
.font-medium {
    font-weight: 500;
}

/* Grid columns */
.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Responsive utilities */
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md\:left-8 {
        left: 2rem;
    }
    
    .md\:right-8 {
        right: 2rem;
    }
    
    .md\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
    
    .md\:h-\[500px\] {
        height: 500px;
    }
    
    .md\:h-\[600px\] {
        height: 600px;
    }
}

@media (min-width: 1024px) {
    .lg\:block {
        display: block;
    }
    
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    
    .lg\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    .lg\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
    
    .lg\:py-24 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    
    .lg\:p-16 {
        padding: 4rem;
    }
    
    .lg\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

@media (min-width: 1280px) {
    .xl\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

/* Mobile Menu Styles - Only show on mobile */
@media (max-width: 1023px) {
    .offcanvas-layer {
        z-index: 100 !important;
    }

    /* Panel menu: fixed bên phải, có kích thước và nền trắng */
    #mobile-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: 72vw !important;
        max-width: 320px !important;
        min-width: 260px !important;
        height: 100vh !important;
        background: #fff !important;
        box-shadow: -4px 0 6px -1px rgba(0, 0, 0, 0.1), -2px 0 4px -1px rgba(0, 0, 0, 0.06);
        z-index: 80 !important;
        overflow-y: auto;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        will-change: transform;
    }

    /* Đóng: đẩy panel ra ngoài màn bên phải */
    #mobile-menu.translate-x-full {
        pointer-events: none !important;
        transform: translateX(100%) !important;
    }

    /* Mở: panel nằm sát phải */
    #mobile-menu.translate-x-0 {
        pointer-events: auto !important;
        transform: translateX(0) !important;
    }

    /* Overlay: full màn, nằm dưới panel (z thấp hơn) */
    #mobile-menu-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.65) !important;
        z-index: 60 !important;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
    }

    #mobile-menu-overlay.opacity-100 {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    #mobile-menu-overlay.opacity-0 {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Floating social buttons (plugin button-contact-vr):
       luôn nằm dưới mobile menu/panel */
    #button-contact-vr {
        right: 0 !important;
        bottom: 1rem !important;
        z-index: 55 !important;
    }
}

/* Hide mobile menu on desktop */
@media (min-width: 1024px) {
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

.mobile-menu-list a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgb(55 65 81);
    border-radius: 0.5rem;
    transition: all 0.15s ease-in-out;
}

.mobile-menu-list a:hover {
    background-color: rgb(239 246 255);
    color: rgb(37 99 235);
}

/* Menu cấp 2, cấp 3: mobile – hiển thị nested, không dùng dropdown absolute */
#mobile-menu #product-menu {
    display: none !important; /* Trên mobile dùng nested ul/li thay cho mega */
}
#mobile-menu .mobile-menu-list ul {
    position: static !important;
    min-width: 0;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none;
    border: none;
    padding: 0.25rem 0 0.25rem 0.5rem;
    margin-top: 0;
    border-left: 2px solid rgb(229 231 235);
    margin-left: 0.75rem;
}
#mobile-menu .mobile-menu-list ul li a {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
}
#mobile-menu .mobile-menu-list .submenu-level-3 a {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
    color: rgb(107 114 128);
}

/* Cart trên mobile: trượt giống menu (panel phải, overlay trái, cùng animation) */
@media (max-width: 767px) {
    .cart-wrapper {
        position: static !important;
    }
    
    /* Panel cart: fixed bên phải, cùng kích thước và hiệu ứng với menu */
    #cart-dropdown {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: 72vw !important;
        max-width: 320px !important;
        min-width: 260px !important;
        height: 100vh !important;
        background: #fff !important;
        border-radius: 0 !important;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgb(229 231 235);
        box-shadow: -4px 0 6px -1px rgba(0, 0, 0, 0.1), -2px 0 4px -1px rgba(0, 0, 0, 0.06);
        z-index: 90 !important;
        overflow-y: auto;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        will-change: transform;
    }
    
    #cart-dropdown.translate-x-full {
        pointer-events: none !important;
        transform: translateX(100%) !important;
    }
    
    #cart-dropdown.translate-x-0 {
        pointer-events: auto !important;
        transform: translateX(0) !important;
    }
    
    .cart-dropdown-items {
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }
    
    .cart-dropdown-header {
        border-top: none;
    }
    
    /* Cart overlay: giống menu overlay, full màn, tap để đóng */
    #cart-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.65) !important;
        z-index: 60 !important;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
    }
    
    #cart-overlay.opacity-100 {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    #cart-overlay.opacity-0 {
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Z-index hierarchy */
/* Header should be below cart and menu on mobile */
@media (max-width: 1023px) {
    header {
        z-index: 50 !important;
    }
    
    /* Mobile menu overlay */
    #mobile-menu-overlay {
        z-index: 40;
    }
    
    /* Mobile menu drawer */
    #mobile-menu {
        z-index: 50;
    }
    
    /* Cart overlay (dưới panel) */
    #cart-overlay {
        z-index: 60;
    }
    
    /* Cart panel (trên overlay) */
    #cart-dropdown {
        z-index: 90;
    }
}

/* Desktop cart dropdown: vị trí do JS tính theo nút cart (ngay dưới, căn phải với nút) */
@media (min-width: 768px) {
    .cart-dropdown {
        position: fixed !important;
        top: 7.5rem;   /* fallback; JS ghi đè khi mở (inline style) */
        right: 4rem;   /* fallback; JS ghi đè khi mở (inline style) */
        left: auto !important;
        margin-top: 0 !important;
        height: auto !important;
        max-height: 80vh !important;
        width: 420px !important;
        max-width: 420px !important;
        transform: translateX(0) translateY(0) !important;
        transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out !important;
        opacity: 1;
        z-index: 90 !important;
    }
    
    .cart-dropdown.hidden {
        opacity: 0;
        transform: translateX(0) translateY(-10px) !important;
        pointer-events: none;
    }
    
    .cart-dropdown:not(.hidden) {
        opacity: 1;
        transform: translateX(0) translateY(0) !important;
    }
    
    /* Hide cart overlay on desktop */
    #cart-overlay {
        display: none !important;
    }
    
    /* Hide close button on desktop */
    .cart-dropdown-close {
        display: none !important;
    }
}

/* Ensure cart and menu don't conflict - handled by JavaScript */

/* Additional utilities */
.h-\[500px\] {
    height: 500px;
}

.h-\[600px\] {
    height: 600px;
}

.h-\[700px\] {
    height: 700px;
}

/* Banner trang chủ - cao bằng thiết kế */
.h-\[560px\] {
    height: 560px;
}

@media (min-width: 768px) {
    .md\:h-\[640px\] {
        height: 640px;
    }
}

@media (min-width: 1024px) {
    .lg\:h-\[760px\] {
        height: 760px;
    }
}

.h-\[400px\] {
    height: 400px;
}

.w-1\/2 {
    width: 50%;
}

.max-w-xs {
    max-width: 20rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.leading-tight {
    line-height: 1.25;
}

.drop-shadow-lg {
    filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
}

.drop-shadow-md {
    filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

.pointer-events-none {
    pointer-events: none;
}

.cursor-pointer {
    cursor: pointer;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

/* Black overlay utilities */
.from-black\/20 {
    --tw-gradient-from: rgb(0 0 0 / 0.2);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.from-black\/70 {
    --tw-gradient-from: rgb(0 0 0 / 0.7);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.via-black\/20 {
    --tw-gradient-stops: var(--tw-gradient-from), rgb(0 0 0 / 0.2), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

/* White overlay utilities */
.border-white\/20 {
    border-color: rgb(255 255 255 / 0.2);
}

.bg-white\/10 {
    background-color: rgb(255 255 255 / 0.1);
}

.bg-white\/50 {
    background-color: rgb(255 255 255 / 0.5);
}

.bg-white\/75 {
    background-color: rgb(255 255 255 / 0.75);
}

.text-blue-100 {
    color: rgb(219 234 254);
}

/* Additional color gradients */
.from-blue-800 {
    --tw-gradient-from: rgb(30 64 175);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(30, 64, 175, 0));
}

.via-blue-700 {
    --tw-gradient-stops: var(--tw-gradient-from), rgb(29 78 216), var(--tw-gradient-to, rgba(29, 78, 216, 0));
}

.to-blue-600 {
    --tw-gradient-to: rgb(37 99 235);
}

/* Cyan gradient */
.via-cyan-500 {
    --tw-gradient-stops: var(--tw-gradient-from), rgb(6 182 212), var(--tw-gradient-to, rgba(6, 182, 212, 0));
}

/* Red gradients for partners */
.from-red-500 {
    --tw-gradient-from: rgb(239 68 68);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 68, 68, 0));
}

.from-red-600 {
    --tw-gradient-from: rgb(220 38 38);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(220, 38, 38, 0));
}

.to-red-500 {
    --tw-gradient-to: rgb(239 68 68);
}

.to-red-600 {
    --tw-gradient-to: rgb(220 38 38);
}

.to-red-700 {
    --tw-gradient-to: rgb(185 28 28);
}

/* Orange gradients */
.from-orange-500 {
    --tw-gradient-from: rgb(249 115 22);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(249, 115, 22, 0));
}

.from-orange-600 {
    --tw-gradient-from: rgb(234 88 12);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(234, 88, 12, 0));
}

.to-orange-600 {
    --tw-gradient-to: rgb(234 88 12);
}

/* Green gradients */
.from-green-500 {
    --tw-gradient-from: rgb(34 197 94);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(34, 197, 94, 0));
}

.to-green-600 {
    --tw-gradient-to: rgb(22 163 74);
}

/* Custom utilities for header/footer */
.p-2\.5 {
    padding: 0.625rem;
}

.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

/* Trigger menu Sản phẩm: chỉ vùng chữ/link, không chiếm cả hàng — tránh hover vùng trống cũng mở panel */
#product-menu-trigger {
	display: inline-block;
	width: fit-content;
}

/* Mega menu: layout 2 cột + panel cấp 3 */
/* Mega menu: giới hạn chiều cao trên laptop, cuộn bên trong */
#product-menu {
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 140px);
	overflow: hidden;
}
#product-menu > div:first-child {
	flex: 1;
	min-height: 0;
	overflow: hidden;
	display: flex;
}
.product-menu-l2 {
	width: 360px;
	flex-shrink: 0;
	overflow-y: auto;
	overflow-x: hidden;
	min-height: 0;
}
.product-menu-l2-icon {
	color: rgb(37 99 235);
}
.product-menu-l2-icon svg {
	width: 1.5rem;
	height: 1.5rem;
}
.product-menu-l2-item:hover .product-menu-l2-icon {
	color: rgb(37 99 235);
}
.product-menu-l3-panel {
	position: relative;
	min-height: 0;
	flex: 1;
	min-width: 0;
	max-width: 280px;
	overflow: hidden;
}
.product-menu-l3-content {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1rem;
	overflow-y: auto;
	overflow-x: hidden;
}
.product-menu-l3-default {
	display: block;
}

/* Mega menu width (cột 2: 360px, cột 3: tối đa 280px) */
#product-menu {
	width: 640px;
	max-width: 95vw;
}
/* Dropdown menu animation */
#product-menu:not(.hidden) {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#product-menu.hidden {
    opacity: 0 !important;
    transform: translateY(-0.5rem) !important;
    pointer-events: none !important;
}

/* Ensure Tailwind classes work */
.w-\[600px\] {
    width: 600px;
}

.-translate-y-2 {
    --tw-translate-y: -0.5rem;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* Cursor pointer cho các nút và phần tử nhấn được */
button,
[type="button"],
[type="submit"],
[type="reset"],
input[type="submit"],
input[type="button"],
a[href],
.view-toggle,
.product-tab,
.product-thumb,
.product-category-btn,
.news-category-btn,
.color-swatch-btn,
.quantity-decrease,
.quantity-increase,
.add-to-cart-btn,
.slider-dot,
.banner-slider-arrow,
.pricing-category-btn,
.customer-category-btn,
.tab-btn,
[role="button"] {
    cursor: pointer;
}

.mwp-product-quote-fluent-form .ff-el-group,
.mwp-product-quote-fluent-form .ff-t-cell {
	margin-bottom: 1rem;
}

.mwp-product-quote-fluent-form .ff-el-input--label label {
	font-weight: 600;
	color: #0f172a;
}

.mwp-product-quote-fluent-form .ff-el-form-control,
.mwp-product-quote-fluent-form textarea,
.mwp-product-quote-fluent-form input {
	border-radius: 0.875rem;
	border: 1px solid #cbd5e1;
	padding: 0.875rem 1rem;
}

.mwp-product-quote-fluent-form .ff-btn-submit {
	border-radius: 9999px;
	padding: 0.875rem 1.5rem;
	font-weight: 700;
}

.category-card-media {
	aspect-ratio: 1 / 1;
}

.home-reveal {
	--reveal-delay: 0ms;
	opacity: 0;
	filter: blur(8px);
	transform: translate3d(0, 42px, 0) scale(0.985);
	transition:
		opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
		filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--reveal-delay);
	will-change: opacity, transform, filter;
}

.home-reveal.is-visible {
	opacity: 1;
	filter: blur(0);
	transform: translate3d(0, 0, 0) scale(1);
}

.home-reveal--left {
	transform: translate3d(-56px, 24px, 0) scale(0.985);
}

.home-reveal--right {
	transform: translate3d(56px, 24px, 0) scale(0.985);
}

.home-reveal--zoom {
	transform: translate3d(0, 28px, 0) scale(0.92);
}

.home-reveal--card {
	transform: translate3d(0, 48px, 0) scale(0.965) rotateX(6deg);
	transform-origin: 50% 100%;
}

@media (prefers-reduced-motion: reduce) {
	.home-reveal,
	.home-reveal--left,
	.home-reveal--right,
	.home-reveal--zoom,
	.home-reveal--card {
		opacity: 1;
		filter: none;
		transform: none;
		transition: none;
	}
}

.article-prose {
	color: #334155;
	font-size: 1rem;
	line-height: 1.85;
	overflow-wrap: anywhere;
}

.article-prose > :first-child {
	margin-top: 0;
}

.article-prose > :last-child {
	margin-bottom: 0;
}

.article-prose p {
	margin: 0 0 1.4rem;
	color: #475569;
	line-height: 1.85;
}

.article-prose .lead,
.article-prose > p:first-of-type {
	color: #0f172a;
	font-size: inherit;
	line-height: inherit;
	font-weight: 400;
}

.article-prose > p:first-of-type strong,
.article-prose .lead strong {
	font-weight: 400;
	color: inherit;
}

.article-prose h2,
.article-prose h3,
.article-prose h4,
.article-prose h5,
.article-prose h6 {
	color: #0f172a;
	font-weight: 800;
	line-height: 1.28;
	letter-spacing: -0.02em;
	scroll-margin-top: 7rem;
}

.article-prose h2 {
	margin: 3rem 0 1.2rem;
	font-size: 1.5rem;
}

.article-prose h3 {
	margin: 2.2rem 0 1rem;
	font-size: 1.25rem;
}

.article-prose h4 {
	margin: 1.8rem 0 0.85rem;
	font-size: 1.125rem;
}

.article-prose a {
	color: #1d4ed8;
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-prose a:hover {
	color: #1e40af;
	text-decoration-color: currentcolor;
}

.article-prose strong {
	color: #0f172a;
	font-weight: 700;
}

.article-prose ul,
.article-prose ol {
	margin: 1.5rem 0;
	padding-left: 1.5rem;
}

.article-prose li {
	margin: 0.65rem 0;
	padding-left: 0.35rem;
	color: #475569;
}

.article-prose li::marker {
	color: #94a3b8;
}

.article-prose blockquote {
	margin: 2rem 0;
	padding: 1rem 1.25rem 1rem 1.5rem;
	border-left: 4px solid #2563eb;
	background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0.02));
	border-radius: 0 1rem 1rem 0;
	color: #1e293b;
}

.article-prose blockquote p {
	margin-bottom: 0.8rem;
	color: inherit;
}

.article-prose blockquote p:last-child {
	margin-bottom: 0;
}

.article-prose hr {
	margin: 2.5rem 0;
	border: 0;
	border-top: 1px solid #e2e8f0;
}

.article-prose img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 2rem auto;
	border-radius: 1rem;
}

.article-prose figure {
	margin: 2rem 0;
}

.article-prose figcaption {
	margin-top: 0.75rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	text-align: center;
	color: #64748b;
}

.article-prose table {
	display: block;
	width: 100%;
	margin: 2rem 0;
	border-collapse: collapse;
	overflow-x: auto;
}

.article-prose thead th {
	background: #f8fafc;
	color: #0f172a;
	font-size: 0.95rem;
	font-weight: 700;
	text-align: left;
}

.article-prose th,
.article-prose td {
	padding: 0.85rem 1rem;
	border: 1px solid #e2e8f0;
	vertical-align: top;
}

.article-prose tbody tr:nth-child(even) {
	background: #f8fafc;
}

.article-prose code {
	padding: 0.15rem 0.4rem;
	border-radius: 0.375rem;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 0.9em;
}

.article-prose pre {
	margin: 1.75rem 0;
	padding: 1rem 1.15rem;
	border-radius: 1rem;
	background: #0f172a;
	color: #e2e8f0;
	overflow-x: auto;
}

.article-prose pre code {
	padding: 0;
	background: transparent;
	color: inherit;
}

@media (max-width: 640px) {
	.article-prose {
		font-size: 0.98rem;
		line-height: 1.78;
	}

	.article-prose h2 {
		margin-top: 2.4rem;
	}
}

.site-lead-popup {
	position: fixed;
	inset: 0;
	z-index: 10000;
}

.site-lead-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.72);
	backdrop-filter: blur(10px);
}

.site-lead-popup__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	min-height: 100%;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.site-lead-popup__panel {
	position: relative;
	width: 100%;
	max-width: 1120px;
	max-height: min(88vh, 920px);
	overflow: hidden;
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 35px 120px rgba(15, 23, 42, 0.4);
}

.site-lead-popup__panel > .grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.site-lead-popup__content {
	position: relative;
	overflow: hidden;
	padding: 2.5rem 2.75rem;
	color: #fff;
	background:
		radial-gradient(circle at top left, rgba(96, 165, 250, 0.34), transparent 42%),
		linear-gradient(135deg, #0f172a 0%, #1d4ed8 52%, #60a5fa 100%);
}

.site-lead-popup__form-area {
	position: relative;
	overflow-y: auto;
	max-height: min(88vh, 920px);
	padding: 2rem;
	background: #fff;
}

/* Desktop: nút close absolute góc phải form */
.site-lead-popup__close-bar {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	padding: 1.25rem;
}

.site-lead-popup__close {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	display: inline-flex;
	height: 2.5rem;
	width: 2.5rem;
	align-items: center;
	justify-content: center;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #fff;
	color: #64748b;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.site-lead-popup__close:hover {
	border-color: #cbd5e1;
	color: #0f172a;
	background: #f8fafc;
}

.site-lead-popup .fluentform {
	margin: 0;
}

.site-lead-popup .ff-el-group {
	margin-bottom: 1rem;
}

.site-lead-popup .ff-el-input--label label,
.site-lead-popup .ff-el-form-control,
.site-lead-popup .ff-el-group label {
	font-family: inherit;
}

.site-lead-popup .ff-el-input--label label,
.site-lead-popup .ff-el-group label {
	margin-bottom: 0.45rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #0f172a;
}

.site-lead-popup .ff-el-form-control {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 14px;
	background: #f8fafc;
	padding: 0.9rem 1rem;
	font-size: 0.98rem;
	line-height: 1.55;
	color: #0f172a;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-lead-popup textarea.ff-el-form-control {
	min-height: 138px;
	resize: vertical;
}

.site-lead-popup .ff-el-form-control:focus {
	border-color: #2563eb;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
	outline: none;
}

.site-lead-popup .ff-btn-submit,
.site-lead-popup button.ff-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	padding: 0.95rem 1.5rem;
	font-size: 0.98rem;
	font-weight: 700;
	color: #fff;
	box-shadow: 0 18px 35px rgba(37, 99, 235, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.site-lead-popup .ff-btn-submit:hover,
.site-lead-popup button.ff-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 22px 40px rgba(37, 99, 235, 0.34);
}

.site-lead-popup .ff-message-success {
	border-radius: 18px;
	border: 1px solid rgba(22, 163, 74, 0.2);
	background: rgba(240, 253, 244, 0.98);
	padding: 1rem 1.1rem;
	color: #166534;
}

@media (max-width: 1024px) {
	.site-lead-popup__panel > .grid {
		grid-template-columns: 1fr;
	}

	/* Chỉ hiển thị khung form trên mobile, kích thước thoải mái */
	.site-lead-popup__panel {
		max-width: min(440px, calc(100vw - 1.5rem));
		max-height: min(90vh, 640px);
	}

	.site-lead-popup__form-area {
		max-height: min(85vh, 560px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* Mobile: thanh chứa nút close sticky — luôn hiển thị khi scroll */
	.site-lead-popup__close-bar {
		position: sticky;
		top: 0;
		z-index: 10;
		display: flex;
		justify-content: flex-end;
		background: #fff;
		margin-left: -2rem;
		margin-top: -2rem;
		margin-right: -2rem;
		padding: 1.25rem 2rem 0.75rem;
	}

	.site-lead-popup__close-bar .site-lead-popup__close {
		position: static;
	}
}

@media (max-width: 640px) {
	.site-lead-popup__dialog {
		padding: 0.75rem;
	}

	.site-lead-popup__content,
	.site-lead-popup__form-area {
		padding: 1.25rem;
	}

	.site-lead-popup__close-bar {
		margin-left: -1.25rem;
		margin-top: -1.25rem;
		margin-right: -1.25rem;
		padding: 0.9rem 1.25rem 0.5rem;
	}

	.site-lead-popup__content h3 {
		font-size: 1.9rem;
		line-height: 1.2;
	}

	.site-lead-popup .ff-el-form-control {
		font-size: 0.95rem;
	}
}

/* ========================================
 * MWP Re-color System (semantic + contrast-safe)
 * ======================================== */
:root {
	--mwp-blue: #1d4ed8;
	--mwp-indigo: #4338ca;
	--mwp-cyan: #0891b2;
	--mwp-emerald: #059669;
	--mwp-amber: #d97706;
	--mwp-rose: #e11d48;
	--mwp-violet: #7c3aed;

	--mwp-text-strong: #0f172a;
	--mwp-text-body: #334155;
	--mwp-text-muted: #64748b;
	--mwp-text-on-accent: #ffffff;

	--mwp-surface-a: linear-gradient(130deg, #ecfeff 0%, #eef2ff 52%, #f8fafc 100%);
	--mwp-surface-b: linear-gradient(130deg, #fff7ed 0%, #fff1f2 56%, #fef9c3 100%);
	--mwp-surface-c: linear-gradient(130deg, #ecfdf5 0%, #ecfeff 56%, #f0fdfa 100%);
	--mwp-surface-d: linear-gradient(130deg, #fdf4ff 0%, #eef2ff 58%, #fff7ed 100%);

	--mwp-card-v1: linear-gradient(160deg, #ffffff 0%, #eff6ff 100%);
	--mwp-card-v2: linear-gradient(160deg, #ffffff 0%, #ecfeff 100%);
	--mwp-card-v3: linear-gradient(160deg, #ffffff 0%, #fff7ed 100%);
	--mwp-card-v4: linear-gradient(160deg, #ffffff 0%, #f5f3ff 100%);
}

#page {
	background:
		radial-gradient(circle at 2% 0, rgba(6, 182, 212, 0.06), transparent 36%),
		radial-gradient(circle at 98% 0, rgba(124, 58, 237, 0.07), transparent 32%),
		linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
	color: var(--mwp-text-body);
}

.mwp-surface-a {
	background: var(--mwp-surface-a);
}

.mwp-surface-b {
	background: var(--mwp-surface-b);
}

.mwp-surface-c {
	background: var(--mwp-surface-c);
}

.mwp-surface-d {
	background: var(--mwp-surface-d);
}

.mwp-card {
	border: 1px solid rgba(148, 163, 184, 0.3);
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.mwp-card-interactive {
	transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.mwp-card-interactive:hover {
	box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
	transform: translateY(-2px);
}

.mwp-card-v1 {
	background: var(--mwp-card-v1);
}

.mwp-card-v2 {
	background: var(--mwp-card-v2);
}

.mwp-card-v3 {
	background: var(--mwp-card-v3);
}

.mwp-card-v4 {
	background: var(--mwp-card-v4);
}

/* Header / nav / footer */
.mwp-nav-topbar {
	background: linear-gradient(100deg, #1d4ed8 0%, #0891b2 36%, #7c3aed 68%, #e11d48 100%);
}

.mwp-nav-header {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 246, 255, 0.96) 100%);
	border-bottom: 1px solid rgba(148, 163, 184, 0.26);
}

.mwp-nav-header .menu-item > a:hover,
.mwp-nav-header a:hover {
	color: #1d4ed8;
}

.mobile-menu-list a:hover {
	background: linear-gradient(135deg, rgba(6, 182, 212, 0.14), rgba(79, 70, 229, 0.14));
	color: #1d4ed8;
}

.product-menu-l2-item:hover {
	background: linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(124, 58, 237, 0.16));
}

.product-menu-l3-panel {
	background: linear-gradient(180deg, rgba(236, 254, 255, 0.6), rgba(238, 242, 255, 0.6));
}

.mwp-footer-shell {
	background:
		radial-gradient(circle at 10% 0, rgba(6, 182, 212, 0.28), transparent 36%),
		radial-gradient(circle at 90% 0, rgba(124, 58, 237, 0.24), transparent 34%),
		linear-gradient(145deg, #0f172a 0%, #1e293b 42%, #312e81 100%);
}

.mwp-footer-shell .mwp-footer-social {
	background: rgba(148, 163, 184, 0.24);
}

.mwp-footer-shell .mwp-footer-social:hover {
	background: linear-gradient(135deg, var(--mwp-cyan), var(--mwp-violet));
}

/* Page surface rhythm */
.home-page .hero {
	background: var(--mwp-surface-a);
}

.home-page .hero .mwp-hero-media-frame {
	height: 500px;
	background: #000;
}

.home-page .hero .mwp-hero-media-embed {
	transform: scale(1);
	transform-origin: center;
}

@media (max-width: 767px) {
	.home-page .hero .mwp-hero-media-frame {
		height: clamp(320px, 78vw, 420px);
	}

	.home-page .hero .mwp-hero-media-embed {
		transform: scale(1.28);
	}
}

.home-page .category-grid-section {
	background: var(--mwp-surface-a);
}

.home-page .product-grid {
	background: var(--mwp-surface-b);
}

.home-page .benefits {
	background: var(--mwp-surface-c);
}

.home-page .news-section {
	background: var(--mwp-surface-d);
}

.home-page .partners {
	background: var(--mwp-surface-a);
}

.home-page .gallery {
	background: var(--mwp-surface-c);
}

.about-main-content,
.products-main-content,
.pricing-main-content,
.customers-main-content,
.news-main-content,
.news-detail-main-content,
.contact-main-content,
.cart-main-content,
.product-detail-main-content {
	background: var(--mwp-surface-c);
}

.about-main-content .bg-gray-50,
.pricing-main-content .bg-gray-100,
.cart-main-content .cart-page-shell,
.customers-main-content .customers-filter-shell,
.products-main-content .products-category-panel,
.products-main-content .products-category-toggle-btn,
.products-main-content .products-view-toggle-wrap {
	background: rgba(255, 255, 255, 0.62);
	backdrop-filter: blur(8px);
}

.pricing-filter-shell {
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: blur(8px);
}

/* Hero tất cả các trang: bỏ nền phủ, chữ tối + bóng sáng (giống hero trang chủ) */
.mwp-page-hero .mwp-page-hero-title,
.mwp-page-hero h1 {
	color: #0f172a !important;
	text-shadow:
		0 0 1px #fff,
		0 0 2px #fff,
		0 1px 3px rgba(255, 255, 255, 0.9),
		0 2px 8px rgba(255, 255, 255, 0.6),
		0 2px 4px rgba(0, 0, 0, 0.15);
}
.mwp-page-hero .mwp-page-hero-desc,
.mwp-page-hero p.text-blue-100,
.mwp-page-hero .text-blue-100 {
	color: #1e293b !important;
	text-shadow:
		0 0 1px #fff,
		0 1px 2px rgba(255, 255, 255, 0.8),
		0 2px 4px rgba(0, 0, 0, 0.12);
}
.mwp-page-hero .absolute.inset-0.z-0 > img {
	opacity: 1;
}

/* Promo banner: cùng hiệu ứng chữ với hero (chữ tối + bóng sáng) */
.mwp-promo-shell .mwp-promo-text-panel {
	color: #0f172a;
}
.mwp-promo-shell .mwp-promo-text-panel h2 {
	color: #0f172a !important;
	text-shadow:
		0 0 1px #fff,
		0 0 2px #fff,
		0 1px 3px rgba(255, 255, 255, 0.9),
		0 2px 8px rgba(255, 255, 255, 0.6),
		0 2px 4px rgba(0, 0, 0, 0.15);
}
.mwp-promo-shell .mwp-promo-text-panel p {
	color: #1e293b !important;
	text-shadow:
		0 0 1px #fff,
		0 1px 2px rgba(255, 255, 255, 0.8),
		0 2px 4px rgba(0, 0, 0, 0.12);
}

/* Card variants by index */
.product-card:nth-child(4n + 1),
.news-card:nth-child(4n + 1),
#cases-container .customer-case:nth-child(4n + 1),
.category-grid-section .category-card:nth-child(4n + 1) {
	background: var(--mwp-card-v1);
}

.product-card:nth-child(4n + 2),
.news-card:nth-child(4n + 2),
#cases-container .customer-case:nth-child(4n + 2),
.category-grid-section .category-card:nth-child(4n + 2) {
	background: var(--mwp-card-v2);
}

.product-card:nth-child(4n + 3),
.news-card:nth-child(4n + 3),
#cases-container .customer-case:nth-child(4n + 3),
.category-grid-section .category-card:nth-child(4n + 3) {
	background: var(--mwp-card-v3);
}

.product-card:nth-child(4n + 4),
.news-card:nth-child(4n + 4),
#cases-container .customer-case:nth-child(4n + 4),
.category-grid-section .category-card:nth-child(4n + 4) {
	background: var(--mwp-card-v4);
}

.mwp-category-card-head {
	background: linear-gradient(120deg, #1d4ed8 0%, #4338ca 45%, #0891b2 100%);
}

.mwp-category-card-foot {
	background: linear-gradient(180deg, rgba(30, 64, 175, 0.88), rgba(29, 78, 216, 0.92));
}

.mwp-category-card-count {
	background: rgba(30, 64, 175, 0.92);
	border: 1px solid rgba(191, 219, 254, 0.75);
}

/* Filter tabs / category buttons */
.mwp-filter-btn {
	border: 1px solid rgba(148, 163, 184, 0.4);
	background: rgba(255, 255, 255, 0.9);
	color: var(--mwp-text-body) !important;
}

.mwp-filter-btn:hover {
	background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(124, 58, 237, 0.12));
	color: #1d4ed8 !important;
}

.product-category-btn--active,
.pricing-category-btn--active,
.customer-category-btn--active,
.product-tab--active,
.news-category-btn--active {
	background: linear-gradient(135deg, #4f46e5, #06b6d4) !important;
	border-color: transparent !important;
	color: var(--mwp-text-on-accent) !important;
	box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.product-category-btn--inactive,
.pricing-category-btn--inactive,
.customer-category-btn--inactive,
.product-tab--inactive {
	background: rgba(255, 255, 255, 0.9);
	color: var(--mwp-text-body) !important;
}

.news-category-btn {
	border: 1px solid transparent;
}

.news-category-btn .news-category-label {
	color: var(--mwp-text-body);
	transition: color 0.2s ease;
}

.news-category-btn .news-category-count {
	background: #e2e8f0;
	color: #64748b;
}

.news-category-btn:hover .news-category-label {
	color: #1d4ed8;
}

.news-category-btn:hover .news-category-count {
	background: #dbeafe;
	color: #1d4ed8;
}

.news-category-btn--active .news-category-label {
	color: #fff !important;
}

.news-category-btn--active .news-category-count {
	background: rgba(255, 255, 255, 0.22) !important;
	color: #fff !important;
}

.view-toggle--active {
	background: #ffffff;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
	color: #1d4ed8;
}

.view-toggle--inactive {
	color: #64748b;
}

/* Buttons */
.mwp-btn {
	position: relative;
	isolation: isolate;
}

.mwp-btn-primary {
	background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 55%, #4338ca 100%) !important;
	border: 1px solid rgba(191, 219, 254, 0.4);
	color: #fff !important;
	box-shadow: 0 14px 30px rgba(29, 78, 216, 0.28);
}

.mwp-btn-primary:hover {
	background: linear-gradient(120deg, #1e40af 0%, #1d4ed8 55%, #3730a3 100%) !important;
	color: #fff !important;
}

.mwp-btn-white,
.promo-banner a.bg-white,
.cta a.bg-white,
.hero a.bg-white,
.banner-slider a.bg-white {
	background: #ffffff !important;
	border: 1px solid rgba(191, 219, 254, 0.7);
	color: #1e3a8a !important;
}

.mwp-btn-white:hover,
.promo-banner a.bg-white:hover,
.cta a.bg-white:hover,
.hero a.bg-white:hover,
.banner-slider a.bg-white:hover {
	background: #f8fafc !important;
	color: #0f172a !important;
}

.mwp-btn-outline {
	border-color: #1d4ed8;
	color: #1d4ed8 !important;
}

.mwp-btn-outline:hover {
	background: rgba(29, 78, 216, 0.08);
}

.mwp-btn-outline-on-dark {
	border-color: rgba(255, 255, 255, 0.86);
	color: #fff !important;
}

.mwp-btn-outline-on-dark:hover {
	background: rgba(255, 255, 255, 0.12);
}

.promo-banner a.bg-white svg,
.cta a.bg-white svg,
.hero a.bg-white svg,
.banner-slider a.bg-white svg {
	color: currentColor !important;
	fill: currentColor !important;
}

/* Hero readability fixes */
.mwp-hero-highlight {
	background: none !important;
	color: #2563eb !important;
	-webkit-text-fill-color: currentColor !important;
	text-shadow: none !important;
	filter: none !important;
}

.mwp-hero-cta-btn {
	background-color: #1d4ed8 !important;
	background-image: linear-gradient(120deg, #1d4ed8 0%, #2563eb 50%, #4f46e5 100%) !important;
	border: 1px solid rgba(191, 219, 254, 0.4);
	color: #ffffff !important;
	box-shadow: 0 14px 30px rgba(29, 78, 216, 0.34);
	opacity: 1 !important;
	filter: none !important;
}

.mwp-hero-cta-btn:hover {
	background-color: #1e40af !important;
	background-image: linear-gradient(120deg, #1e40af 0%, #1d4ed8 50%, #4338ca 100%) !important;
	color: #ffffff !important;
}

/* News widgets / newsletter */
.news-sidebar-card {
	background: rgba(255, 255, 255, 0.9);
}

.news-newsletter-box {
	background: linear-gradient(135deg, #4338ca 0%, #1d4ed8 52%, #0891b2 100%);
}

.news-newsletter-input {
	background: rgba(255, 255, 255, 0.96);
	border-color: rgba(255, 255, 255, 0.55);
	color: #0f172a !important;
}

.news-newsletter-input::placeholder {
	color: #64748b !important;
	opacity: 1;
}

.news-newsletter-btn {
	color: #1e3a8a !important;
}

/* Contact page contrast */
.mwp-contact-info-panel {
	background: linear-gradient(135deg, #0891b2 0%, #2563eb 52%, #7c3aed 100%) !important;
	color: #ffffff !important;
}

.mwp-contact-info-panel h3,
.mwp-contact-info-panel p,
.mwp-contact-info-panel span,
.mwp-contact-info-panel a {
	color: #ffffff !important;
}

.mwp-contact-info-panel .text-white\/80 {
	color: rgba(255, 255, 255, 0.84) !important;
}

.mwp-contact-info-panel .text-white\/90 {
	color: rgba(255, 255, 255, 0.9) !important;
}

.contact-submit-btn {
	background: linear-gradient(135deg, #4f46e5 0%, #0891b2 100%) !important;
	color: #ffffff !important;
}

.contact-submit-btn:hover {
	background: linear-gradient(135deg, #4338ca 0%, #0e7490 100%) !important;
	color: #ffffff !important;
}

/* Pricing / customers / cart / detail accents */
.pricing-header {
	background: linear-gradient(120deg, #1d4ed8 0%, #4338ca 52%, #0891b2 100%) !important;
}

.pricing-table-shell,
.news-detail-article,
.cart-policy-box {
	border: 1px solid rgba(148, 163, 184, 0.25);
}

.pricing-contact-cta {
	background: linear-gradient(135deg, #4338ca 0%, #1d4ed8 50%, #0891b2 100%);
}

.pricing-contact-call-btn,
.news-detail-cta-link {
	color: #1e3a8a !important;
}

.pricing-contact-email-btn {
	border-color: rgba(255, 255, 255, 0.55);
}

.cart-page-header {
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(8px);
}

.cart-empty-btn,
.cart-submit-btn,
.news-detail-newsletter-btn {
	background: linear-gradient(120deg, #1d4ed8 0%, #4338ca 52%, #0891b2 100%) !important;
	color: #fff !important;
}

.cart-empty-btn:hover,
.cart-submit-btn:hover,
.news-detail-newsletter-btn:hover {
	background: linear-gradient(120deg, #1e40af 0%, #3730a3 52%, #0e7490 100%) !important;
}

.mwp-news-detail-cta {
	background: linear-gradient(135deg, #2563eb 0%, #4f46e5 60%, #0891b2 100%);
}

.news-detail-related-head {
	background: linear-gradient(120deg, #1d4ed8 0%, #4338ca 55%, #0891b2 100%);
}

.related-products-nav-btn:hover {
	background: #eff6ff;
	border-color: #93c5fd;
}
