/*
 Theme Name:    Electro Child
 Theme URI:     https://themeforest.net/item/electro-electronics-store-woocommerce-theme/15720624
 Description:   This is the child theme of Electro
 Author:        MadrasThemes
 Author URI:    https://madrasthemes.com/
 Template:      electro
 Version:       3.6.4
 License:       GNU General Public License v2 or later
 License URI:   http://www.gnu.org/licenses/gpl-2.0.html
 Tags:          light, dark, two-columns, right-sidebar, responsive-layout
 Text Domain:   electro-child
*/
.woocommerce ul.products.columns-8 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 5px !important;
}
/* Blog*/
article.post .entry-content {
    color: #000000;
}
article.post .entry-header .entry-meta {
    display:none;
}
/* WOO*/
.woocommerce-loop-product__title {
    font-size: 16px!important;
}
.single_add_to_cart_button.button {
    color: #fff;
    font-weight: 700;
    font-size: 1em;
    padding: 1em 1em;
    border-width: 0;
    border-radius: 1.8em;
}
.button.alt, .button.checkout, .checkout-button, .secondary {
    background-color: red;
}
.single-product .price {
    color: red;
    font-size: 1.5em;
    line-height: 1em;
    font-weight: 600;
    margin-bottom: .2em;
}
.form-control, .input-text, input[type=email], input[type=password], input[type=search], input[type=text]:not(.form-control):not(input[type=email]):not(input[type=url]):not(input[type=password]):not(input[type=search]):not(textarea):not(.input-text), input[type=url], textarea {
   border: 1px solid #969696;
}
/* Body*/
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 2rem;
		color: #363535;
	}
@media(max-width:767px){.term-description figure { width: 100% !important; }
	.page-description figure { width: 100% !important; }
.woocommerce-Tabs-panel .electro-description figure { width: 100% !important; }}
.back-to-top-link {
    height: 2.25rem;
    width: 2.25rem;
    top: calc(100vh - 2rem);
    transition: transform 80ms ease-in;
    opacity: .6;
    pointer-events: all;
}

/* Logo*/
.handheld-header-v2 .header-logo img, .mobile-header-v1 .header-logo img, .mobile-header-v2-inner .header-logo img {
    height: 100%;
	max-width:200px;
}
.header-v9 .electro-header-v9-navbar .navbar-nav>.menu-item>a {
	font-size: 1.1rem;
	 font-weight: 600;
	color:#0d7504!important;
	 font-family: Arial, sans-serif;
}
.owl-item>.product .product-inner, .products>.product .product-inner {
    padding: 0.2em;
    position: relative;
	}
.header-v9 .electro-header-v9-navbar .navbar-nav {
    flex-direction: row;
    justify-content: left;
    position: relative;
	 background: #d9d8d7;
}.nav>li>a>i+span {
    margin-left: 5px;
    font-size: 17px;
}
h1, .heading-font {
    font-size: 1.4rem !important;
	  color:#0d7504;
    font-family: Arial, Helvetica, sans-serif;
	text-transform: capitalize;
}
h2, h3, h4, h5, h6, .heading-font {
    font-size: 1.2rem !important;
	  color:#0d7504 !important;
	}
.product_meta {
    font-size: 1em;
	    margin-bottom: 1em;
}
	.product-info p.stock {
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1em;
}
.dropdown-item, .dropdown-menu>li>a {   font-size: 16px;
	}

.off-canvas-navigation.light .yamm .yamm-content li a, .off-canvas-navigation.light .yamm .yamm-content li.nav-title a, .off-canvas-navigation.light ul li a, .off-canvas-navigation.light ul li.nav-title a {
    color: #0d7504 !important;
    border-color: #e3e9ef;
    font-size: 16px !important;
    font-weight: 500;
}.owl-item>.product .price, .products>.product .price {
    font-size: 1.143em;
    line-height: 1em;
    font-weight: 500;
    font-size: 15px !important;
    color: red;
}
.owl-item>.product .product-inner, .products>.product .product-inner {
    padding: 0.2em;
    position: relative;
 }
.owl-item>.product .loop-product-categories, .products>.product .loop-product-categories {
    margin-top: 5px;
    font-size: 1em;
}
#tab-description p {
    margin-bottom: 1.5em;
    color: black;
}
a {
    color: #0d7504;
    text-decoration: none;
}
.single-product .entry-summary>div[itemprop=description], .single-product .woocommerce-product-details__short-description {
	font-size:17px;
    color: black;
	font-family: Arial, Helvetica, sans-serif;
}
.dropdown-toggle::after {
    content: "\f107";
    color: #ababab !important;
}
.fa-bars::before {
    content: "\f0c9";
    font-size: 14px;
}
.pwb-single-product-brands {
    padding-top: 0em;
	}
.single-product .product_title {
    font-weight: 600;
    text-transform: capitalize;
	}
hr {
    display: none;
}
.single-product.full-width .wc-tab {
        padding: 1em !important;
    }
.footer-bottom-widgets {
    background-color: #CCCCCC;
    padding: 1em 0 1em 0;
}
.footer-widgets {
    margin-bottom: 1em;
    background: #CCCCCC;
}
.top-bar-v3 .nav>li>a {
    padding: .2em 0;
    font-size: 13px;
	}
.owl-item>.product .loop-product-categories a, .products>.product .loop-product-categories a {
    color: #858585;
    font-size: 13px;
}
/* wp-content/themes/your-theme-child/style.css */
.title-with-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
}
.section-title {
  margin: 0;
  padding-bottom: 5px;
  font-size: 24px;
  line-height: 1.2;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.view-all-button {
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  white-space: nowrap;
  transition: background-color 0.3s;
}
.view-all-button:hover {
  filter: brightness(85%);
}
@media (max-width: 768px) {
  .title-with-button {
    flex-direction: row;
    gap: 15px;
  }
  .section-title {
    font-size: 20px;
  }
  .view-all-button {
    font-size: 14px;
    padding: 6px 12px;
  }
}
@media (max-width: 480px) {
  .title-with-button {
    gap: 10px;
  }
  .section-title {
    font-size: 18px;
  }
  .view-all-button {
    font-size: 12px;
    padding: 5px 10px;
  }
}
/* css của danh mục
/* wp-content/themes/electro-child/style.css */
.custom-product-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}
.custom-product-categories.columns-6 .category-item {
  flex: 0 0 calc(16.666% - 20px); /* 6 cột, trừ khoảng cách gap */
  max-width: calc(16.666% - 20px);
}
.custom-product-categories .category-item {
  text-align: center;
}
.custom-product-categories .category-link {
  text-decoration: none;
  display: block;
}
.custom-product-categories .category-image {
  overflow: hidden;
  position: relative;
}
.custom-product-categories .category-image img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.custom-product-categories.hover-zoom .category-image img:hover {
  transform: scale(1.1);
}
.custom-product-categories .category-title {
  margin: 10px 0 0;
  padding: 10px;
  font-family: Arial, Helvetica, sans-serif; /* Đồng bộ với theme Electro */
  color: #008c8e; /* Màu từ theme */
}
.custom-product-categories.text-small .category-title {
  font-size: 14px !important;
}
.custom-product-categories .category-count {
  font-size: 12px;
  color: #666;
}
@media (max-width: 991px) {
  .custom-product-categories.columns-6 .category-item {
    flex: 0 0 calc(33.333% - 20px); /* 3 cột trên tablet */
    max-width: calc(33.333% - 20px);
  }
}
@media (max-width: 767px) {
  .custom-product-categories.columns-6 .category-item {
    flex: 0 0 calc(50% - 20px); /* 2 cột trên mobile */
    max-width: calc(50% - 20px);
  }
}
@media (max-width: 479px) {
  .custom-product-categories.columns-6 .category-item {
    flex: 0 0 100%; /* 1 cột trên mobile nhỏ */
    max-width: 100%;
  }
}