/*
Theme Name: Storefront Child
Theme URI: https://example.com/storefront-child/
Description: Child theme for the Storefront theme
Author: Your Name
Author URI: https://example.com
Template: storefront
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: storefront-child
*/
:root {
    --wp--preset--font-size--medium: 20px;
}

body {
	font-family: system-ui;
	color : 333;
}

.hentry .entry-content a {
	text-decoration: none;
}

a:focus, input:focus, textarea:focus, button:focus, a:focus, button:focus, .button.alt:focus, input:focus, textarea:focus, input[type="button"]:focus, input[type="reset"]:focus, input[type="submit"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="search"]:focus {
	outline: none !important;
}

a:focus, button:focus, .button.alt:focus, input:focus, textarea:focus, input[type="button"]:focus, input[type="reset"]:focus, input[type="submit"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="search"]:focus {
	outline: none !important;
}

h1, h2, h3, h4, h5, h6, .wc-block-grid__product-title, h3.wp-block-post-title a {
    color: #20547b;
    font-weight: 600;
}

.home.blog .site-header, .home.page:not(.page-template-template-homepage) .site-header, .home.post-type-archive-product .site-header {
	margin-bottom: 0em;
}

.site-header:before {
	background-image: url(/wp-content/uploads/2025/05/hexa_bg.png);
    background-position: center right;
    background-repeat: no-repeat;
    width: 100%;
    height: 120px;
    position: absolute;
    z-index: -1;
    opacity: 0.7;
    top: 0;
    right: 0;
	background-size: 60%;
}

.site-header .site-search {
	margin-top: 2em;
}

.storefront-primary-navigation {
	/*background: #323136;*/
	background: #163348;
}

.storefront-primary-navigation .header-social-icons {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    align-items: center;
	margin-top: 18px;
}

.storefront-primary-navigation .header-social-icons li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f3372c;         /* Vòng tròn xám nhạt */
    color: #fff;                    /* Icon màu trắng */
    border-radius: 50%;            /* Làm tròn */
    font-size: 16px;
    transition: 0.3s ease;
    text-decoration: none;
}

.storefront-primary-navigation .header-social-icons li a:hover {
    background-color: #f3372c;     /* Hover màu xanh Woo */
    color: #fff;
}

.main-navigation ul.menu>li>a, .main-navigation ul.nav-menu>li>a {
	text-transform: uppercase;
    font-family: "Audiowide", sans-serif;
	color: #fefefe;
	font-size: 14px;
}

ul.nav-menu > li.current-menu-item {
	    border-top: 6px solid #f3372c;
}

.main-navigation ul li a:hover, .main-navigation ul li:hover > a, .site-title a:hover, .site-header ul.menu li.current-menu-item > a {
	color: #f3372c;
}

.footer-widgets h1, .footer-widgets h2, .footer-widgets h3 {
	color: #fefefe;
}

.site-footer {
    background-color: #323136;
	background-image: url('/wp-content/uploads/2025/05/footer-background-1600x640-1.webp');
	background-position: center; /* Center the image */
	background-repeat: no-repeat; /* Do not repeat the image */
	/*background-size: cover; /* Resize the background image to cover the entire container */
    color: #ffffff;
}

.site-footer a:not(.button):not(.components-button) {
	color: #f3372c;
	text-decoration: none;
}

.site-footer .widget_block {
	margin: 0 0 0.5em;
}

.site-footer .widget_block .wp-block-columns {
	margin-bottom: 0.5em;
}

.site-footer .widget_block .is-layout-flex {
	gap: 0px;
}

/* ========== fixed social icons ========== */
/* ========== fixed social icons ========== */
.social-toggle-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.social-toggle-wrapper .social-toggle-btn {
    background-color: #138fba;
    color: white;
    border: none;
    padding: 0px;
	width: 40px;
	height: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.social-toggle-wrapper .social-toggle-btn:hover {
    background-color: #005f8d;
}

.social-toggle-wrapper .custom-social-icons {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.social-toggle-wrapper .custom-social-icons.show {
    display: flex;
}

.social-toggle-wrapper .custom-social-icons a {
    background-color: #f3372c;
    color: #fefefe !important;
    padding: 0px;
	width: 40px;
	height: 40px;
    border-radius: 50%;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s;
    font-size: 18px;
	line-height: 37px;
}

.social-toggle-wrapper .custom-social-icons a:hover {
    background-color: #555;
}

.popmake-content form {
	width: 100%;
}

.wpcf7-form-control-wrap input {
	width: 100%;
    border-radius: 5px;
    padding: 0.5em 1em;
}

.wpcf7-form-control-wrap input.wpcf7-submit {
	background: #315b7c;
	border-radius: 5px;
	color: #fefefe;
}

.popmake-content .contact-tabs {
  font-family: Arial, sans-serif;
}

.popmake-content .tab-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.popmake-contetn .tab-button {
  background-color: #f1f1f1;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  margin: 0 5px;
  font-weight: bold;
}

.popmake-content .tab-button.active {
  background-color: #0073aa;
  color: #fff;
}

.popmake-content .tab-content {
  display: none;
}

.popmake-content .tab-content.active {
  display: block;
}

.contact-page-info .wp-block-column {
	background: #ffecec;
	border-radius: 5px;
	padding: 2em !important;
}

/* ========== fixed social icons ========== */
/* ========== fixed social icons ========== */


@media (min-width: 768px) {
	.site-header {
		padding-top: 0.5em;
		
	}
	
    .site-header .site-branding img {
        max-width: 500px;
    }
	
	#main_top_bg {
		position: absolute;
		width: 100%;
		height: 400px;
		z-index: -1;
		opacity: 0.5;
	}

	#main_top_bg::before  {
		 content: "";
		background-image: url('/wp-content/uploads/2025/05/hexa_bg.png');
		background-position: top left; /* Center the image */
		background-repeat: no-repeat; /* Do not repeat the image */
		width: 100%;
		height: 240px;
		transform: scaleX(-1);	
			position: absolute;
		top: 0;
		left: -65vw;
	}

	.home_page_contact_form {
		margin-top: 2em;
		padding : 1em 0;
	}

	#home_page_ft_form {
		background-image: url('/wp-content/uploads/2025/05/shapelined-_JBKdviweXI-unsplash-scaled.jpg');
	  position: relative;
	  left: 50%;
	  right: 50%;
	  margin-left: -50vw;
	  margin-right: -50vw;
	  width: 100vw;
	  max-width: 100vw;
		padding-top: 1.5em;
		margin-bottom: -8em;
	}

	#home_page_ft_form .home_page_contact_form {
	  max-width: 66.4989378333em; /* Giống với .col-full */
	  width: 100%;
	  margin-left: auto;
	  margin-right: auto;
	}
}

@media (max-width: 767px) {
	.col-full {
		margin-left: 0.8em;
        margin-right: 0.8em;
	}
	
	#masthead.sticky {
        position: fixed;
		left: 0;
        top: 0px;
        width: 100%;
        z-index: 9999;
        background-color: #fff; /* Điều chỉnh màu nền nếu cần */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Tùy chọn: thêm bóng đổ */
		border-bottom: 1px solid #20547b;
    }
	
	#masthead.sticky .site-branding {
		float: none;
		margin-bottom: 5px;
	}
	
	.storefront-primary-navigation {
		padding: 0;
		
	}
	.storefront-primary-navigation.show {
		/*position: fixed;*/
        width: 100%;
        height: 100%;
	}
	
	#site-navigation-menu-toggle {
		        position: absolute;
        top: 0.6em;
        right: 1em;
	}
	
	#masthead.sticky #site-navigation-menu-toggle {
		        top: 7px;
        right: 1.5em;
	}
	
	.home.blog .site-header, .home.page:not(.page-template-template-homepage) .site-header, .home.post-type-archive-product .site-header 	{
		margin-bottom: 0em;
	}
	.site-header {
		padding-top: 3.5em;
		padding-bottom: 0em;
		
	}
	
	.site-header:before {
		height: 57px;
		background-size: 70%;
	}
	
    .site-header .site-branding img {
        max-width: 500px;
    }
	
	.site-branding {
		margin-top: -3.5em;
        margin-left: -2em;
		width: calc(100% - 100px);
	}
	
	.header-social-icons {
		position: absolute;
		right: 12px;
		top: -5px;
		display: none !important;
	}
	
	.header-social-icons li a {
		background-color: #f3372c;
		width: 30px;
		height: 30px;
	}
	
	.social-toggle-wrapper {
		bottom: 10px;
		right: 10px;
	}
	
	.hide_on_mobile {
		display: none;
	}
	
	#home_page_ft_form {
		left: 0;
		right: 0;
		width: 100%;
		max-width: 100%;
		margin: 0;
	}
	
	#home_page_ft_form .home_page_contact_form  {
		padding-left: 0.8em;
		padding-right: 0.8em;
	}
	
	.handheld-navigation ul.menu li button::after {
		font-size: 15px;
		color: #fefefe;
	}
	
	.handheld-navigation .toggled-on li a {
		color: #fefefe;
		font-family: "Audiowide", sans-serif;
		text-transform: capitalize;
	}
	
	.site-footer .footer-widgets{
		padding: 2em 0;
	}
	
	.site-info {
		padding: 0.5em 0;
	}
	
}

/**  CSS Woo Ecommerce **/
.site-search .widget_product_search form::before {
    top: 0.9em;
    left: 0.8em;
}

.widget_product_search input, #site-navigation-menu-toggle {
	border: 1px solid;
	border-radius: 5px;
}
.widget_product_search form:not(.wp-block-search) input[type=search] {
	padding: 0.7em 2.5em;
}

.home.page-template-template-fullwidth .hentry .entry-content h2+[class*=wp-block-woocommerce-] {
	margin-left: 0px;
}

#category-products ul.products li.product {
	width: 98% ;
}

ul.products li.product {
	/*border: 1px solid #20547b;*/
	border-radius: 5px;
	overflow: hidden;
	padding-bottom: 1em;
	margin-bottom: 2em;
	
}

.product button, .product a.button, .product a.wp-block-button__link, input[type="submit"] {
	background-color : #20547b;
	border-radius: 5px !important;
	color: #fefefe;
}

@media (max-width: 767px) { 
	.storefront-handheld-footer-bar ul li>a {
		height: 3.5em;
		text-indent: 0px;

	}
	
	.storefront-handheld-footer-bar ul li>a::before {
		line-height: 2em;
	}
	
	.storefront-handheld-footer-bar ul li>a i {
		font-size: 20px;
        position: absolute;
        left: 40%;
        top: 10%;
		color: #20547b;
	}
	
	#category-products ul.products li.product {
		margin-bottom: 0em;
	}
	
	ul.products::before, ul.products::after {
		content: "";
		display: none;
	}
	
	ul.products.columns-4,
    ul.products.columns-3,
    ul.products.columns-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    ul.products.columns-4 li.product,
    ul.products.columns-3 li.product,
    ul.products.columns-2 li.product {
        width: 100% !important; /* Đảm bảo mỗi item chiếm đúng cột */
        margin: 0 !important;
    }
	
	.columns-3 {
	 
	}
	
	.handheld-footer-item {
	  
	}

	.handheld-footer-item a {
	  
	}

	.handheld-footer-item i {
	  
	}

	.handheld-footer-item span {
	  	position: absolute;
        bottom: 4%;
        left: 25%;
		font-weight: 500;
        color: #20547b;
	}
	
}





