/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

:root {
	--color-primary: #ED1C24;
	--color-highlight: #FFF806;
	--color-accent:#781612;
	--color-title-dark: #A9171D;

	--color-text-main: #333;
	--color-text-dark: #111;
	--color-white: #fff;
	--color-border: #DEDEDE;
	--color-light-bg: #e6e6e6;
}
/*************** ADD CUSTOM CSS HERE.   ***************/

/* Mega Menu */
#mega-menu-wrap {
	width: 300px;
	background: var(--color-highlight);
	
}

#mega-menu-title {
	text-transform: uppercase;
	color: var(--color-text-dark);
}

/* Override CSS gốc để menu vẫn mở được khi click sau khi scroll */
#header.header.has-sticky .header-wrapper.stuck #mega_menu.active {
	display: block !important;
}

/* Ẩn menu khi không có class active và đã scroll */
#header.header.has-sticky .header-wrapper.stuck #mega_menu:not(.active) {
	display: none !important;
}

/* Section Titles */
.section .section-title-normal {
	
	font-size: 20px;
	color: var(--color-title-dark);
}

.section-title-center span,
.section-title-bold-center span {
	color: var(--color-accent);
	font-size: 22px;
	
}

/* Navigation */
#wide-nav>.flex-row>.flex-left {
	min-width: 250px;
	width: 300px !important;
	flex: none;
	margin-right: 30px;
}

.nav>li>a {
	text-transform: uppercase
}

.header-bottom-nav>li>a {
	font-size: 15px;
	color: var(--color-white) !important;
}

.header-main .nav>li>a {
	font-size: 1em;
}

/* Header nav main - 2 cột ngang (Hotline và Cửa hàng) */
ul.header-nav-main.nav-right {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	gap: 20px !important;
}

ul.header-nav-main.nav-right>li.header-block {
	width: auto !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
}

/* General Layout */
.box-text,
#footer {
	font-size: 1em;
}

.breadcrumbs {
	font-size: 15px;
	color: var(--color-text-dark);
}

/* Header Contact & Account */
#header-contact li>a {
	font-size: 0.9em;
	text-transform: none;
	color: var(--color-white);
	padding: 0px;
}

.header-nav li.account-item a,
.header-main .header-cart-title {
	font-size: 16px;
	
}

.header-main .icon-shopping-bag {
	font-size: 24px;
	margin-left: 10px;
}

.header-bottom .nav-spacing-xlarge>li{
	margin: 0 40px;
}

/* Products & Prices */
span.amount,
.box-text-products span.amount {
	color: var(--color-primary);
	font-weight: bold;
	
}

.box-text-products span.amount {
	white-space: nowrap;
	font-size: 17px;
}

/* Sidebars & Widgets */
.widget .is-divider,
#product-sidebar .is-divider,
#secondary .is-divider,
#shop-sidebar .is-divider {
	display: none;
}

#product-sidebar {
	padding-right: 0px;
}

#product-sidebar .col-divided,
.page-left-sidebar .col-divided,
.row-divided>.col+.col:not(.large-12) {
	border: none;
	padding-right: 10px;
}

span.widget-title {
	display: inline-block;
	width: 100%;
	margin-bottom: 10px;
	color: var(--color-accent);
}

.footer-widgets span.widget-title {
	font-size: 1.1em;
	
}

#product-sidebar span.widget-title,
#secondary span.widget-title,
#shop-sidebar span.widget-title {
	display: inline-block;
	width: 100%;
	padding: 15px;
	text-align: center;
	background: var(--color-accent);
	color: var(--color-white);
	border-top-right-radius: 5px;
	border-top-left-radius: 5px;
	font-size: 1em;
}

#product-sidebar .body-widget,
#secondary .body-widget,
#shop-sidebar .body-widget {
	padding: 0px 15px;
}

#product-sidebar aside,
#shop-sidebar aside,
#secondary aside {
	padding: 0px;
	border-radius: 5px;
	border: 1px solid var(--color-border);
	margin: 0px;
	margin-bottom: 20px;
}

/* Box Text Headers */
.box-text h1,
.box-text h2,
.box-text h3,
.box-text h4,
.box-text h5,
.box-text h6,
.box-text a:not(.button) {
	line-height: 1.5em;
	font-size: 0.9rem;
	text-transform: uppercase;
	font-weight: 600;
}

/* Tables */
th,
td {
	font-size: 1em;
	color: var(--color-text-main);
}

.tab-panels .entry-content table td,
.tab-panels .entry-content table th {
	border: none;
	padding: 10px;
}

.tab-panels .entry-content table tr {
	background-color: var(--color-white);
}

.tab-panels .entry-content table tr:nth-child(2n) {
	background-color: var(--color-light-bg);
}

.tab-panels h3 {
	padding: 20px 0px;
}

.h3,
h3 {
	font-size: 1.8em;
}

/* Block Widgets */
.block_widget .post-item {
	padding: 0 15px 10px;
}

.block_widget .box-vertical .box-text {
	padding: 0px 0px 0px 10px;
}

.block_widget .box-text h5 {
	text-transform: inherit;
	font-size: 15px;
	font-weight: normal !important;
	color: var(--color-text-main);
}

/* Forms */
.form-footer input:not([type="submit"]) {
	width: 70%;
	float: left;
	margin-right: 10px;
}

.form-footer input[type='email'] {
	height: auto;
	padding: 5px 20px;
}



/* Footer & Social */
.footer-widgets .social-icons a {
	margin-right: 7px;
}

.footer-widgets #text-4 img {
	margin-bottom: 5px;
}

.absolute-footer {
	padding: 5px 0 5px;
	color: var(--color-text-main);
}

.tabbed-content .nav>li>a {
	font-size: 1em;
}

#top-bar .social-icons a.plain {
	color: var(--color-white);
}

/* Home & Products Cards */
.home-banner {
	border-radius: 5px;
	overflow: hidden;
}

.home-products .col-inner {
	border-radius: 5px;
	border: .1rem solid var(--color-white);
	background-color: var(--color-white);
	box-shadow: 0 0 40px 0 rgb(16 155 98 / 12%);
	overflow: hidden;
}

form.cart{
	display: none;
}

.row-divided.row-reverse>.col+.col:not(.large-12){
	border-right: none;
}

.category .blog-wrapper .post-item .col-inner,
.home-products-2 .col-inner {
	background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.post-sidebar .block_widget .col-inner {
	padding: 0px 15px;
}

.category .blog-wrapper .post-item .col-inner:hover,
.home-products-2 .col-inner:hover {
	border-color: rgb(217 45 32) !important;
}

.home-products-2 .col-inner .box-text,
.home-products .col-inner .box-text {
	padding: 15px 15px;
}

/* Animations */
.modal-overlay .img-inner {
	position: relative;
	border-radius: 5px;
}

.modal-overlay .img-inner:before {
	position: absolute;
	top: 0;
	left: -100%;
	z-index: 2;
	display: block;
	content: '';
	width: 50%;
	height: 100%;
	background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
	transform: skewX(-25deg);
	cursor: pointer;
}

.modal-overlay .img-inner:hover:before {
	animation: shine 1.1s;
}

@media only screen and (max-width: 48em) {
	/*************** ADD MOBILE ONLY CSS HERE  ***************/
}
@media (max-width:767px){ 
	#logo{
		width: 50px !important;
	}
	.shop-category-title .icon-box-text h2 {
		font-size: 1.2rem;
		line-height: 1.75rem;
		margin-bottom: 0.3rem;
		color: #600807;
	}
	.home-title .section-title a{
		font-size: 13px;
	}
	.off-canvas .nav-vertical li li a,
	.off-canvas .nav-vertical li a{
		color: #810005 !important;
	}
	.home-title .section-title-bold span{
		font-size: 13px;
		padding: 5px 5px;
	}
	.sec-home-search form.searchform{
		border: 1px solid #810005;
		background: #fff;
		box-shadow: none;
		border-radius: 5px;
		overflow: hidden;
	}
	.sec-home-search .searchform .button.icon{
		font-size: 15px;
	}
	.sec-home-search  .searchform input:not([type="submit"]) {
		height: auto !important;
		padding: 5px 10px;
		font-size: 15px;
		background: #fff;
		box-shadow: none;
		color: var(--color-text-main) !important;
		border: none !important;
	}
	.sec-home-search .col{
		padding-bottom: 15px;
	}
}
@media (min-width:768px){   
	.logo-left .logo{
		margin-right: 50px;
	}
	.shop-category-title .icon-box-text h2 {
		font-size: 1.4rem;
		line-height: 1.75rem;
		margin-bottom: 0.3rem;
		color: #600807;
	}
	.home-title .section-title a{
		font-size: 15px;
	}
	.home-title .section-title-bold span{
		font-size: 15px;
		padding: 5px 10px;
	}
	.category-top {
		display: none;
	}
}

.header-search-form-wrapper form.searchform{
	border: 1px solid #810005;
	background: #fff;
	box-shadow: none;
	border-radius: 5px;
	overflow: hidden;
}
.header-search-form-wrapper .searchform .button.icon{
	padding: 0px 15px;
	height: auto;
	font-size: 15px;
}

.header-search-form-wrapper input:not([type="submit"]) {
	height: auto !important;
	padding: 5px 10px;
	font-size: 15px;
	background: #fff;
	box-shadow: none;
	color: var(--color-text-main) !important;
	border: none !important;
}

.foooter-info-item .icon-box-img svg{
	color: #600807;
}

.hotline-header .icon svg {
  color: var(--color-primary);
}

.hotline-header .icon {
  background: rgb(254 242 242);
  border-radius: 1rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .7em;
}

.hotline-header .icon-box-text {
  padding-left: 0.5rem !important;
}

.hotline-header .icon-box-text h3 {
  font-size: 1rem;
  line-height: 1.75rem;
  margin-bottom: 0;
  color: var(--color-primary);
}
.hotline-header .icon-box-text{
	font-size: 0.9em;
}

.shop-category-title .icon svg {
  color: var(--color-primary);
}

.shop-category-title {
  overflow: hidden;
  margin-bottom: 2em;
}

.shop-category-title .icon {
  background: rgb(254 242 242);
  border-radius: 1rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.3em;
}

.shop-category-title .icon-box-img {
  width: 64px !important;
  height: 64px !important;
  margin-right: 10px;
}

.shop-category-title .icon-box-text {
  padding-left: 0.5rem !important;
}

.home-news .post-item .col-inner,
.product-small .col-inner{
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.is-divider{
	display: none;
}
#secondary ul.menu>li li>a,
#secondary ul.menu>li>a,
.sidebar-inner ul.menu>li li>a,
.sidebar-inner ul.menu>li>a,
.shop-sidebar ul.menu>li li>a,
.shop-sidebar ul.menu>li>a{
	color: #810005;
	font-size: 0.9rem;
	font-weight: 600;
}

#secondary .sidebar-info,
#product-sidebar .sidebar-info,
.sidebar-inner .sidebar-info{
	border: 2px solid #810005 !important;
	font-size: 1.1em;
}

.sidebar-inner .widget_text .textwidget{
	text-align: justify;
}
#top-bar .nav-small.nav>li.html{
	font-size: .9em;
}
#secondary .widget_text,
#product-sidebar .widget_text,
.sidebar-inner .widget_text .textwidget,
.home-news .post-item .box-text,
.category .blog-wrapper .post-item .col-inner .box-text,
.home-products-2 .col-inner  .box-text,
.product-small .col-inner .box-text{
	padding: 20px;
}
.home-news .post-item:hover .col-inner,
.product-small:hover .col-inner{
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgb(217 45 32) !important;
}
aside.wvft_recent_posts_category ul,
aside.widget .menu{
	padding: 0px 15px;
	font-size: .9rem;
}
aside.widget .post_comments {
	display: none;
}
h1.page-title{
	font-size: 2rem;
}
#content .medium-col-first{
	padding-left: 0;
}
.category .blog-wrapper .post-item .col-inner .box-text p.from_the_blog_excerpt,
.home-news .post-item .box-text p.from_the_blog_excerpt{
	font-size: 0.9rem;
	color: rgb(71 85 105);
}

.product-contact{
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 20px;
	margin-bottom: 20px;
}
.home-title .section-title-bold span{
	background-color: #810005;
	color: #fff;
	border: 2px solid #810005;
	position: relative;
	display: inline-block;
	padding-right: 25px;
}

.home-title .section-title-bold span::after{
	content: '';
	position: absolute;
	right: -20px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 20px 0 20px 20px;
	border-color: transparent transparent transparent #810005;
}

#mega-menu-title{
	padding: 11px 0 11px 15px;
	color: var(--color-white);
}
.box-text-products .title-wrapper{
	margin-bottom: 5px;
}
#mega-menu-wrap{
	background:#F24F30 !important;
}
#mega_menu a,
#mega_menu>li>a{
	font-size: 1em;
	font-weight: 600;
	color: #810005;
}

.home-title .section-title b{
	display: none;
}
.home-title .section-title{
	border: 2px solid #810005;
	padding-right: 15px;
}
.category-top li{
	list-style: none;
	margin: 0;
	padding: 0;
}

.category-top .category-info{
	border: 2px solid #810005 !important;
	font-size: 1em;
	padding: 20px;
	border-radius: 5px;
	margin-bottom: 30px;
}
.category-top .category-info p{
	margin-bottom: 7px;
}
	