/*
Theme Name: Flatsome Child
Description: Hosiwell Việt Nam – child theme for Flatsome
Author: Hosiwell Việt Nam
Template: flatsome
Version: 3.1
*/

:root {
	--hsw-red: #d71920;
	--hsw-red-dark: #b3121a;
	--hsw-navy: #14284b;
	--hsw-navy-2: #0e1d38;
	--hsw-ink: #1f2937;
	--hsw-muted: #6b7280;
	--hsw-line: #e5e7eb;
	--hsw-soft: #f4f6f9;
	--hsw-radius: 10px;
	--hsw-shadow: 0 6px 24px rgba(20, 40, 75, .08);
	--hsw-shadow-hover: 0 12px 32px rgba(20, 40, 75, .16);
}

body { color: var(--hsw-ink); }
h1, h2, h3, h4, h5, h6 { color: var(--hsw-navy); letter-spacing: -.01em; }
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 { color: #fff; }
a { transition: color .2s; }
.button, button, input[type=submit] { border-radius: 6px; letter-spacing: .02em; }

/* ---------------------------------------------------------------- Header */
#top-bar { font-size: 13px; }
#top-bar .html_topbar_left a, #top-bar .nav > li > a { color: rgba(255,255,255,.85); }
#top-bar a:hover { color: #fff; }
.hsw-topbar { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hsw-topbar span, .hsw-topbar a { display: inline-flex; align-items: center; gap: 6px; }
.header-main { box-shadow: 0 1px 0 var(--hsw-line); }
.header-main .searchform .search-field {
	height: 44px; border-radius: 22px 0 0 22px; border: 2px solid var(--hsw-red);
	border-right: 0; box-shadow: none; padding-left: 18px; background: #fff;
}
.header-main .searchform .button.icon {
	height: 44px; border-radius: 0 22px 22px 0; width: 56px; background: var(--hsw-red);
}
.hsw-hotline { display: flex; align-items: center; gap: 10px; line-height: 1.25; }
.hsw-hotline__icon {
	width: 42px; height: 42px; border-radius: 50%; background: rgba(215,25,32,.1);
	color: var(--hsw-red); display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.hsw-hotline small { display: block; color: var(--hsw-muted); font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.hsw-hotline strong { color: var(--hsw-red); font-size: 18px; }

.header-bottom { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.header-bottom .nav > li > a { padding-left: 4px; padding-right: 4px; font-size: 14px; }
.header-bottom .nav-line-bottom > li > a:before { background: #fff; height: 3px; }
.header-bottom .nav > li.active > a, .header-bottom .nav > li > a:hover { color: #fff; opacity: 1; }

/* ---------------------------------------------------------- Mega menu */
.nav-dropdown { border-radius: 0 0 var(--hsw-radius) var(--hsw-radius); border: 0 !important; box-shadow: var(--hsw-shadow-hover); }
.menu-item-has-block .nav-dropdown { padding: 0; }
.hsw-mega { padding: 26px 28px 20px; text-align: left; }
.hsw-mega__title {
	font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	color: var(--hsw-navy); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--hsw-line); position: relative;
}
.hsw-mega__title:after { content: ""; position: absolute; left: 0; bottom: -2px; width: 44px; height: 2px; background: var(--hsw-red); }
.hsw-mega .hsw-link-list a { font-size: 14px; }
.hsw-mega__promo {
	background: linear-gradient(135deg, var(--hsw-navy), var(--hsw-navy-2)); color: #fff; border-radius: var(--hsw-radius);
	padding: 22px; height: 100%;
}
.hsw-mega__promo h4 { color: #fff; margin-bottom: 6px; font-size: 18px; }
.hsw-mega__promo p { color: rgba(255,255,255,.75); font-size: 14px; margin-bottom: 14px; }
.hsw-mega__promo .hsw-big-phone { display: block; font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 14px; }

.hsw-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hsw-cat-grid.hsw-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hsw-cat-grid.hsw-cols-4 { grid-template-columns: repeat(4, 1fr); }
.hsw-cat-card {
	display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--hsw-line);
	border-radius: var(--hsw-radius); background: #fff; transition: all .2s; color: var(--hsw-ink);
}
.hsw-cat-card:hover { border-color: var(--hsw-red); box-shadow: var(--hsw-shadow); transform: translateY(-2px); color: var(--hsw-red); }
.hsw-cat-card__img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--hsw-soft); }
.hsw-cat-card__img img { width: 100%; height: 100%; object-fit: contain; }
.hsw-cat-card__name { display: block; font-weight: 700; font-size: 14px; line-height: 1.3; }
.hsw-cat-card__count { display: block; font-size: 12px; color: var(--hsw-muted); margin-top: 3px; }

.hsw-link-list { list-style: none; margin: 0; padding: 0; }
.hsw-link-list li { margin: 0; border-bottom: 1px dashed var(--hsw-line); }
.hsw-link-list li:last-child { border-bottom: 0; }
.hsw-link-list a { display: block; padding: 8px 0 8px 16px; position: relative; color: var(--hsw-ink); line-height: 1.35; }
.hsw-link-list a:before { content: "›"; position: absolute; left: 2px; top: 7px; color: var(--hsw-red); font-weight: 700; }
.hsw-link-list a:hover { color: var(--hsw-red); }
.dark .hsw-link-list li { border-color: rgba(255,255,255,.08); }
.dark .hsw-link-list a { color: rgba(255,255,255,.75); }
.dark .hsw-link-list a:hover { color: #fff; }

/* -------------------------------------------------------- Home sections */
.hsw-hero .img, .hsw-hero img { width: 100%; }
.hsw-section-head { text-align: center; max-width: 760px; margin: 0 auto 30px; }
.hsw-eyebrow {
	display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--hsw-red); margin-bottom: 8px;
}
.hsw-section-head h1, .hsw-section-head h2 { font-size: 30px; margin-bottom: 10px; }
.hsw-section-head p { color: var(--hsw-muted); margin: 0; }
.dark .hsw-section-head p { color: rgba(255,255,255,.75); }

.hsw-usp-bar { background: #fff; }
.hsw-usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.hsw-usp__item { display: flex; gap: 14px; align-items: center; padding: 22px 18px; border-right: 1px solid var(--hsw-line); }
.hsw-usp__item:last-child { border-right: 0; }
.hsw-usp__icon {
	flex: 0 0 48px; height: 48px; border-radius: 50%; background: rgba(215,25,32,.08); color: var(--hsw-red);
	display: flex; align-items: center; justify-content: center;
}
.hsw-usp__icon svg { width: 24px; height: 24px; }
.hsw-usp__item strong { display: block; color: var(--hsw-navy); font-size: 15px; }
.hsw-usp__item span { display: block; color: var(--hsw-muted); font-size: 13px; line-height: 1.4; }

.hsw-soft { background: var(--hsw-soft); }

/* Product categories (Flatsome element) */
.product-category .box { border-radius: var(--hsw-radius); overflow: hidden; background: #fff; box-shadow: var(--hsw-shadow); transition: all .25s; }
.product-category .box:hover { box-shadow: var(--hsw-shadow-hover); transform: translateY(-4px); }
.product-category .box-image { background: #fff; }
.product-category .box-image img { object-fit: contain; }
.product-category .box-text { padding: 14px 10px 16px; }
.product-category .box-text h5 { color: var(--hsw-navy); font-size: 15px; letter-spacing: 0; }
.product-category .count { color: var(--hsw-red); opacity: 1; font-size: 12px; }

/* Tabs */
.hsw-tabs .nav > li > a { font-size: 15px; text-transform: none; font-weight: 700; }
.hsw-tabs .nav-line > li.active > a:before, .hsw-tabs .nav-line-bottom > li.active > a:before { background: var(--hsw-red); }

/* Solution cards */
.hsw-solution { background: #fff; border-radius: var(--hsw-radius); overflow: hidden; box-shadow: var(--hsw-shadow); height: 100%; transition: all .25s; }
.hsw-solution:hover { box-shadow: var(--hsw-shadow-hover); transform: translateY(-4px); }
.hsw-solution .img { margin: 0 !important; }
.hsw-solution .img-inner { aspect-ratio: 4 / 3; }
.hsw-solution .img-inner img { width: 100%; height: 100%; object-fit: cover; }
.hsw-solution__body { padding: 18px 20px 8px; }
.hsw-solution__body h3 { font-size: 17px; margin-bottom: 10px; }
.hsw-solution__body ul { margin: 0 0 10px; }
.hsw-solution__body li { margin: 0 0 4px 1em; color: var(--hsw-muted); font-size: 14px; }
.col.hsw-solution-col > .col-inner { height: 100%; }

/* Why section */
.hsw-why { background: linear-gradient(135deg, var(--hsw-navy) 0%, var(--hsw-navy-2) 100%); }
.hsw-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hsw-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--hsw-radius); padding: 20px; }
.hsw-stat b { display: block; font-size: 32px; line-height: 1.1; color: #fff; }
.hsw-stat b em { color: var(--hsw-red); font-style: normal; }
.hsw-stat span { color: rgba(255,255,255,.7); font-size: 14px; }
.hsw-checks { list-style: none; margin: 0 0 20px; padding: 0; }
.hsw-checks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: rgba(255,255,255,.85); }
.hsw-checks li:before {
	content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--hsw-red); color: #fff; font-size: 12px; line-height: 20px; text-align: center; font-weight: 700;
}
.hsw-certs { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hsw-certs img { background: #fff; border-radius: 8px; padding: 6px; height: 72px; width: auto; }

/* CTA band */
.hsw-cta-band { background: linear-gradient(90deg, var(--hsw-red) 0%, var(--hsw-red-dark) 100%); }
.hsw-cta-band h2 { color: #fff; margin: 0 0 4px; font-size: 26px; }
.hsw-cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.hsw-cta-band .button.white { color: var(--hsw-red) !important; }

/* ----------------------------------------------------- Product boxes */
.product-small.box, .products .product-small .col-inner { border-radius: var(--hsw-radius); }
.products .product-small .col-inner {
	background: #fff; border: 1px solid var(--hsw-line); overflow: hidden; transition: all .25s; height: 100%;
}
.products .product-small .col-inner:hover { border-color: transparent; box-shadow: var(--hsw-shadow-hover); transform: translateY(-3px); }
.product-small .box-image { background: #fff; padding: 10px; }
.product-small .box-image img { object-fit: contain; }
.product-small .box-text { padding: 12px 14px 16px; }
.product-small .product-title a, .product-small .name a {
	color: var(--hsw-navy); font-weight: 600; font-size: 14px; line-height: 1.4;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-small .product-title a:hover { color: var(--hsw-red); }
.product-small .category { font-size: 11px; color: var(--hsw-red); opacity: 1; letter-spacing: .05em; }
.hsw-price-contact { color: var(--hsw-red); font-weight: 700; font-size: 14px; }
.hsw-price-contact a { color: var(--hsw-red); }
.product-info .hsw-price-contact { font-size: 22px; }

/* --------------------------------------------- Category / shop pages */
.shop-page-title.category-page-title, .shop-page-title.featured-title { background: var(--hsw-soft); }
.shop-page-title .page-title-inner { padding-top: 18px; padding-bottom: 18px; }
.shop-page-title h1 { font-size: 26px; text-transform: none; letter-spacing: 0; color: var(--hsw-navy); }
.breadcrumbs, .woocommerce-breadcrumb { font-size: 13px; text-transform: none; letter-spacing: 0; }
.breadcrumbs a, .woocommerce-breadcrumb a { color: var(--hsw-muted); }
.hsw-breadcrumbs { padding-top: 16px; }
#shop-sidebar .widget, .post-sidebar .widget, #product-sidebar .widget {
	background: #fff; border: 1px solid var(--hsw-line); border-radius: var(--hsw-radius); padding: 18px; margin-bottom: 20px;
}
.widget-title, span.widget-title {
	display: block; font-size: 14px; letter-spacing: .04em; color: var(--hsw-navy); padding-bottom: 10px; margin-bottom: 10px;
	border-bottom: 2px solid var(--hsw-line); position: relative;
}
.widget .is-divider { display: none; }
.widget_product_categories ul li a { color: var(--hsw-ink); }
.widget_product_categories ul li.current-cat > a, .widget_product_categories ul li a:hover { color: var(--hsw-red); font-weight: 700; }
.hsw-term-desc { margin-top: 30px; padding: 26px; background: var(--hsw-soft); border-radius: var(--hsw-radius); }
.woocommerce-pagination .page-numbers li > span.current, .page-numbers.current { background: var(--hsw-red); border-color: var(--hsw-red); color: #fff; }

/* Side contact block */
.hsw-side-contact { border-radius: var(--hsw-radius); overflow: hidden; }
.hsw-side-contact__head { background: var(--hsw-red); color: #fff; padding: 12px 16px; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .04em; }
.hsw-side-contact__body { padding: 6px 16px 10px; background: #fff; }
.hsw-person { padding: 12px 0; border-bottom: 1px dashed var(--hsw-line); }
.hsw-person:last-child { border-bottom: 0; }
.hsw-person b { display: block; color: var(--hsw-navy); }
.hsw-person small { display: block; color: var(--hsw-muted); font-size: 12px; margin-bottom: 4px; }
.hsw-person a { color: var(--hsw-red); font-weight: 700; }
.widget .hsw-side-contact { margin: -18px; }

/* ----------------------------------------------------- Single product */
.product-main { padding-top: 30px; }
.product-gallery .woocommerce-product-gallery__image, .product-gallery-slider .slide img { border-radius: var(--hsw-radius); }
.product-gallery { border: 1px solid var(--hsw-line); border-radius: var(--hsw-radius); padding: 10px; background: #fff; }
.product-info .product-title { font-size: 24px; line-height: 1.35; color: var(--hsw-navy); }
.product-info .is-divider { background: var(--hsw-red); max-width: 50px; height: 3px; }
.product-short-description { color: var(--hsw-ink); }
.product_meta { font-size: 13px; border-top: 1px solid var(--hsw-line); padding-top: 12px; }
.product_meta > span { border: 0; padding: 3px 0; }
.woocommerce-tabs, .product-footer .woocommerce-tabs { border-top: 0; }
.product-footer .woocommerce-tabs > .nav { background: var(--hsw-soft); border-radius: var(--hsw-radius) var(--hsw-radius) 0 0; padding: 0 10px; }
.product-footer .woocommerce-tabs > .nav-line-grow > li > a, .product-footer .woocommerce-tabs > .nav > li > a { font-size: 15px; text-transform: none; padding: 14px 16px; }
.woocommerce-tabs .tab-panels { padding: 26px 4px; }
.related-products-wrapper .product-section-title { text-transform: none; font-size: 22px; }

.hsw-cta {
	margin: 20px 0; padding: 18px 20px; border: 1px solid rgba(215,25,32,.25); border-left: 4px solid var(--hsw-red);
	border-radius: var(--hsw-radius); background: #fff8f8;
}
.hsw-cta__title { font-weight: 700; color: var(--hsw-navy); font-size: 16px; margin-bottom: 8px; }
.hsw-cta__usp { list-style: none; margin: 0 0 12px; padding: 0; }
.hsw-cta__usp li { padding-left: 22px; position: relative; margin-bottom: 4px; font-size: 14px; }
.hsw-cta__usp li:before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.hsw-cta__buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.hsw-cta__buttons .button { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.hsw-btn--zalo { background: #0068ff; color: #fff; }
.hsw-btn--zalo:hover { background: #0052cc; color: #fff; }

/* --------------------------------------------------- Posts / articles */
.entry-content table, .woocommerce-Tabs-panel table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: 14px; }
.entry-content table th, .entry-content table td, .woocommerce-Tabs-panel table th, .woocommerce-Tabs-panel table td {
	border: 1px solid var(--hsw-line); padding: 9px 12px;
}
.entry-content table tr:nth-child(even) td, .woocommerce-Tabs-panel table tr:nth-child(even) td { background: var(--hsw-soft); }
.entry-content table th, .woocommerce-Tabs-panel table th, .entry-content table tr:first-child td strong { color: var(--hsw-navy); }
.entry-content h2 { font-size: 22px; margin-top: 1.4em; padding-left: 12px; border-left: 4px solid var(--hsw-red); }
.entry-content h3 { font-size: 18px; margin-top: 1.2em; }
.entry-content img { border-radius: 8px; }
.entry-header .entry-title { font-size: 26px; line-height: 1.35; }
.entry-category a, .entry-category { color: var(--hsw-red) !important; letter-spacing: .05em; }
.blog-archive .page-title, .archive-page-header h1 { font-size: 26px; color: var(--hsw-navy); }
.archive-page-header { background: var(--hsw-soft); padding: 26px 0; margin-bottom: 30px; }

.post-item .col-inner, .blog-archive .post-item .box {
	background: #fff; border-radius: var(--hsw-radius); overflow: hidden; height: 100%;
	box-shadow: var(--hsw-shadow); transition: all .25s;
}
.post-item .col-inner:hover { box-shadow: var(--hsw-shadow-hover); transform: translateY(-3px); }
.post-item .box-image { background: #fff; }
.post-item .box-image img { object-fit: contain; }
.post-item .box-text { padding: 14px 16px 18px; }
.post-item .post-title { font-size: 15px; line-height: 1.4; color: var(--hsw-navy); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-item .from_the_blog_excerpt { font-size: 13px; color: var(--hsw-muted); }
.post-item .is-divider { display: none; }
.badge.post-date { display: none; }

/* ---------------------------------------------------------- Footer */
.hsw-footer { background: var(--hsw-navy-2); color: rgba(255,255,255,.75); font-size: 14px; }
.hsw-footer h4 {
	color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; padding-bottom: 10px; position: relative;
}
.hsw-footer h4:after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--hsw-red); }
.hsw-footer p { margin-bottom: 10px; }
.hsw-footer a { color: rgba(255,255,255,.8); }
.hsw-footer a:hover { color: #fff; }
.hsw-footer__logo { background: #fff; display: inline-block; padding: 8px 12px; border-radius: 8px; margin-bottom: 14px; }
.hsw-footer__logo img { height: 46px; width: auto; display: block; }
.hsw-contact-list { list-style: none; margin: 0; padding: 0; }
.hsw-contact-list li { display: flex; gap: 10px; margin-bottom: 10px; line-height: 1.5; }
.hsw-contact-list li i { color: var(--hsw-red); margin-top: 4px; }
.hsw-footer .hsw-hotline-box {
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--hsw-radius); padding: 14px 16px; margin-top: 14px;
}
.hsw-footer .hsw-hotline-box b { display: block; font-size: 22px; color: #fff; }
.absolute-footer.dark { background: #0a1529; color: rgba(255,255,255,.55); font-size: 13px; }
.absolute-footer .footer-primary { padding: 14px 0; }

/* ------------------------------------------------ Floating buttons */
.hsw-float { position: fixed; left: 18px; bottom: 22px; z-index: 990; display: flex; flex-direction: column; gap: 10px; }
.hsw-float__btn {
	display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; min-width: 50px; border-radius: 25px;
	color: #fff !important; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.2); font-size: 14px;
}
.hsw-float__zalo { background: #0068ff; width: 50px; font-size: 13px; }
.hsw-float__phone { background: var(--hsw-red); padding: 0 18px 0 16px; animation: hsw-pulse 2s infinite; }
.hsw-float__phone i { font-size: 18px; }
@keyframes hsw-pulse {
	0% { box-shadow: 0 0 0 0 rgba(215,25,32,.55); }
	70% { box-shadow: 0 0 0 14px rgba(215,25,32,0); }
	100% { box-shadow: 0 0 0 0 rgba(215,25,32,0); }
}

/* ---------------------------------------------------------- Mobile */
@media (max-width: 849px) {
	.hsw-usp { grid-template-columns: repeat(2, 1fr); }
	.hsw-usp__item:nth-child(2) { border-right: 0; }
	.hsw-usp__item:nth-child(-n+2) { border-bottom: 1px solid var(--hsw-line); }
	.hsw-cat-grid, .hsw-cat-grid.hsw-cols-4 { grid-template-columns: repeat(2, 1fr); }
	.hsw-section-head h1, .hsw-section-head h2 { font-size: 24px; }
	.hsw-cta-band { text-align: center; }
}
@media (max-width: 549px) {
	.hsw-usp__item { flex-direction: column; text-align: center; padding: 16px 8px; gap: 8px; }
	.hsw-cat-grid, .hsw-cat-grid.hsw-cols-2, .hsw-cat-grid.hsw-cols-4 { grid-template-columns: 1fr; }
	.hsw-stats { grid-template-columns: 1fr 1fr; }
	.hsw-stat b { font-size: 24px; }
	.hsw-float__phone span { display: none; }
	.hsw-float__phone { padding: 0; width: 50px; }
	.product-info .product-title, .entry-header .entry-title { font-size: 20px; }
	.hsw-cta__buttons .button { flex: 1 1 100%; justify-content: center; }
}
