/*
Theme Name:     TMetrix
Theme URI:      http://www.tmetrix.com
Description:    Custom theme built for ACA TMetrix Inc.
Author:         MoreSALES.ca
Author URI:     http://www.moresales.ca
Template:       adrenalin
Version:        1.0
*/

/* Custom CSS */

.page-template article.hentry .col-md-4 {
	width: 30%;
	margin: 10px;
	background-color: #f9f9f9;
	height: 565px;
	padding-bottom: 40px;
}

.first_blog {
	background-color:#eee;
	margin-bottom:50px;
	display: flex;
	align-items: center;
	padding-bottom:30px;
}

/* Styles for mobile devices (up to 768px) */
  @media (max-width: 768px) {
	.first_blog {
	  display:block;
	}
  }

@media(min-width: 1100px) {
	.cg-main-menu {
		width: 100%;	
	}
}

.lsm-supplier-grid img {
	border:0 !important;
}

@media(min-width: 1100px) {
	.cg-main-menu {
		width: 100%;	
	}
}

.cg-menu-below .logo img {
	max-width: 550px;
}

a.request-quote-button {
	color: #fff;
	background: #7c0000;
	padding: 15px;
}

a.request-quote-button:hover {
	opacity: 0.899999976158142;
	text-decoration: none;
}

.view-switcher {
	display: none;
}

span.count {
	display: none !important;
}

.cg-header-fixed .menu > li, .cg-primary-menu .menu > li {
	padding: 0 10px;
}

.woocommerce .summary p {
	margin-right: 10px;
	margin-bottom: 20px;
	margin-top: 10px;
}

.cg-header-search {
	line-height: 60px !important;
	margin-top: 0px !important;
}

.product-cat-image img {
	width: 100%;
}

/* Hioki Template Page */

body.page-template-page-hioki .header-wrapper {
	background-color: #3574bb !important;
}

body.page-template-page-hioki #top .dropdown-menu li a:hover, body.page-template-page-hioki ul.navbar-nav li .nav-dropdown li a:hover, body.page-template-page-hioki .navbar ul li.current-menu-item a:hover, body.page-template-page-hioki .navbar ul li.current-menu-ancestor a:hover, body.page-template-page-hioki .owl-theme .owl-controls .owl-buttons div:hover, body.page-template-page-hioki .woocommerce ul.product_list_widget li a:hover, body.page-template-page-hioki .content-area a.reset_variations:hover, body.page-template-page-hioki .widget_recent_entries ul li a:hover, body.page-template-page-hioki .content-area article h2 a:hover, body.page-template-page-hioki .content-area footer.entry-meta a:hover, body.page-template-page-hioki .content-area footer.entry-meta .comments-link:hover:before, body.page-template-page-hioki .content-area a.post-edit-link:hover:before, body.page-template-page-hioki .scwebsite:hover:before, body.page-template-page-hioki .cg-wp-menu-wrapper .menu li a:hover, body.page-template-page-hioki .cg-header-fixed .menu > li .cg-submenu-ddown .container > ul > li a:hover, body.page-template-page-hioki body .cg-primary-menu .menu > li .cg-submenu-ddown .container > ul > li a:hover, body.page-template-page-hioki .cg-submenu-ddown .container > ul > li > a:hover, body.page-template-page-hioki .cg-header-fixed .menu > li .cg-submenu-ddown .container > ul > li a:hover, body.page-template-page-hioki .cg-primary-menu .menu > li .cg-submenu-ddown .container > ul > li a:hover {
	color: #3574bb !important;
}

body.page-template-page-hioki .logo a, body.page-template-page-hioki .navbar ul li.current-menu-item a, body.page-template-page-hioki .navbar ul li.current-menu-ancestor a, body.page-template-page-hioki #cg-articles h3 a, body.page-template-page-hioki .widget-area .widget.widget_rss ul li a, body.page-template-page-hioki .widget-area .widget #recentcomments li a, body.page-template-page-hioki .current_page_ancestor, body.page-template-page-hioki .current-menu-item, body.page-template-page-hioki .cg-primary-menu .menu > li.current-menu-item > a, body.page-template-page-hioki .cg-primary-menu .menu > li.current-menu-ancestor > a {
	color: #3574bb !important;
}

body.page-template-page-hioki .woocommerce .woocommerce_tabs ul.tabs li.active a, body.page-template-page-hioki .woocommerce .woocommerce-tabs ul.tabs li.active a, body.page-template-page-hioki ul.tabNavigation li a.active, body.page-template-page-hioki .wpb_teaser_grid .categories_filter li.active a, body.page-template-page-hioki .cg-quick-view-wrap a, body.page-template-page-hioki ul.tiny-cart li ul.cart_list li.buttons .button.checkout {
	background-color: #3574bb !important;
}

.cat-pic {
	border: 0px;
}

li.product-category {
	border: 1px solid #f2f2f2;
}

.term-description {
	padding: 15px;
}

.vc_btn3.vc_btn3-color-danger, .vc_btn3.vc_btn3-color-danger.vc_btn3-style-flat {
	background-color: #7c0000 !important;
}

.vc_btn3.vc_btn3-color-danger.vc_btn3-style-flat:focus, .vc_btn3.vc_btn3-color-danger.vc_btn3-style-flat:hover, .vc_btn3.vc_btn3-color-danger:focus, .vc_btn3.vc_btn3-color-danger:hover {
	background-color: #55022b !important;
}

.backgroundimg {
	text-align: center !important;
	padding: 60px 60px 80px 60px;
	background-image: url('https://tmetrix.com/wp-content/uploads/tmetrix-background.jpg');
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	margin: 20px -40px 40px -40px;
}

.backgroundimg h3, .backgroundimg p {
	color: #fff !important;
}

.calltoaction {
	color: #fff !important;
	padding: 20px 40px 40px 40px !important;
	background-color: #7c0000 !important;	
}

.calltoaction h3 {
	color: #fff !important;
}

.calltoaction a.request-quote-button {
	background: #fff;
	color: #7c0000;
	margin: 50px;
}

.cg-primary-menu .menu > li.discountproducts {
	background: #7c0000 !important;
}

.cg-primary-menu .menu > li.discountproducts > a, .cg-primary-menu .menu > li.discountproducts > a:hover {
	color: #fff !important;
}

.gform_wrapper .top_label li.gfield.gf_left_half:before {
	display: none !important;
}

.imgthumb {
	max-height: 200px;
	overflow: hidden;
}

.contact-us-btn{
	color: #fff;
	background: #7c0000;
	padding: 15px;
	width: 100%;
	height: 30px;
	display: flex;
	justify-content: space-around;
	align-items: center;
	font-size: 10px;
}

.contact-us-btn:hover{
	opacity: .85;
	text-decoration: none;
	color: #ffff;
}

.products li.product-category .term-description {
	display: none;
}

.woocommerce-no-products-found {
	display: none;
}

.top-bar-right a {
	color: #fff;
	opacity: 1 !important;
}

.cart_subtotal {
	display: none;
}

.vertical-center {
	display: flex;
	align-items: center;
	justify-content: center; /* Optional, for horizontal centring */
	height: 100vh;
}

.cg-primary-menu .menu > li > a {
	line-height: 70px;
	text-transform: capitalize !important;
	font-size: 16px !important;
	font-weight: bold;
}

ul.tiny-cart {
	margin-top: 5px;
}

#menu-main-menu {
	display: block !important;
}

.slide-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100%;
  background: #fff;
  transition: left 0.3s ease;
  z-index: 9999;
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);
  overflow-y: auto;
  padding: 0;
}

/* WP admin bar fix */
body.admin-bar .slide-menu {
  top: 32px;
  height: calc(100% - 32px);
}
@media screen and (max-width: 782px) {
  body.admin-bar .slide-menu {
	top: 46px;
	height: calc(100% - 46px);
  }
}

.slide-menu.open {
  left: 0;
}

/* Menu Titles */
.slide-menu .menu-title {
  background-color: #7c0000;
  color: #fff;
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
}
.slide-menu .menu-description {
  font-size: 13px;
  margin-top: 5px;
  color: #fff;
}

#slide-menu #close-slide-menu {
  background: none;
  border: none;
  font-size: 24px;
  position: absolute;
  top: 10px;
  right: 15px;
}

#slide-menu {
  font-family: sans-serif; /* match site font if needed */
  background-color: #fff;
}

#slide-menu .menu-title {
  background-color: #7c0000; /* maroon header */
  color: #fff;
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
}

#slide-menu .menu-description {
  color: #fff;
  font-size: 13px;
  margin-top: 5px;
text-transform: none;
}

.slide-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.slide-menu li {
  border-bottom: 1px solid #eee;
}

.slide-menu li a {
  display: block;
  padding: 16px 20px;
  color: #7c0000;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  position: relative;
}

.slide-menu li a::after {
  content: '›';
  position: absolute;
  right: 20px;
  color: #7c0000;
  font-size: 16px;
}

/* Force float left on visible navbar items */
.navbar-nav > li {
  float: left !important;
}

/* Respect Bootstrap's visibility logic */
@media (max-width: 1199px) {
  .navbar-nav > li.hidden-lg {
	display: block !important;
	float: left !important;
  }

  .navbar-nav > li.hidden-xs,
  .navbar-nav > li.hidden-sm,
  .navbar-nav > li.hidden-md {
	display: none !important;
  }
}

@media (min-width: 1200px) {
  .navbar-nav > li.hidden-lg {
	display: none !important;
  }

  .navbar-nav > li.hidden-xs,
  .navbar-nav > li.hidden-sm,
  .navbar-nav > li.hidden-md {
	display: block !important;
	float: left !important;
  }
}

.cg-header-fixed .menu > li, .cg-primary-menu .menu > li {
	float:left !important;
}

/* === PRODUCTS GRID CONTAINER === */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* === PRODUCT CARD (3 PER ROW) === */
.woocommerce ul.products li.product {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #ddd;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* === HOVER EFFECT: REMOVE SHADOW, ADD MAROON BORDER === */
.woocommerce ul.products li.product:hover {
  box-shadow: none;
  border: 2px solid #7c0000;
}

/* === IMAGE CLEANUP === */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img {
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  max-height: 200px;
  object-fit: contain;
  display: block;
}

/* === PRODUCT TITLE === */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
  margin-bottom: 8px;
  min-height: 48px;
  text-align: center;
}

/* === FULL-WIDTH BUTTON === */
.woocommerce ul.products li.product .button {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: auto;
  padding: 10px 0;
  font-size: 14px;
  border: 1px solid #7c0000;
  color: #7c0000 !important;
  background: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.woocommerce ul.products li.product .button:hover {
  background: #7c0000 !important;
  color: #fff !important;
}

/* === RESPONSIVE: TABLET === */
@media screen and (max-width: 1024px) {
  .woocommerce ul.products li.product {
	flex: 1 1 calc(50% - 24px);
  }
}

/* === RESPONSIVE: MOBILE === */
@media screen and (max-width: 600px) {
  .woocommerce ul.products li.product {
	flex: 1 1 100%;
  }
}

/* === PRODUCT BUTTONS WRAPPER === */
.woocommerce ul.products li.product .product-buttons {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: space-between;
}

/* === FORM BUTTON (Add to Cart) === */
.woocommerce ul.products li.product .product-buttons form {
  flex: 1 1 50%;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products li.product .product-buttons form button {
  display: block;
  width: 100%;
  padding: 10px 0;
  font-size: 14px;
  text-align: center;
  background: none !important;
  color: #7c0000 !important;
  border: 1px solid #7c0000 !important;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: nowrap;
}

/* === Hover Fix for Add to Cart Button === */
.woocommerce ul.products li.product .product-buttons form button:hover {
  background: #7c0000 !important;
  color: #fff !important;
}

/* === Learn More Button (a tag) === */
.woocommerce ul.products li.product .product-buttons a.learn-more-button {
  flex: 1 1 50%;
  padding: 10px 0;
  font-size: 14px;
  text-align: center;
  background: none !important;
  color: #7c0000 !important;
  border: 1px solid #7c0000 !important;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: nowrap;
  display: block;
}

/* === Hover for Learn More Button === */
.woocommerce ul.products li.product .product-buttons a.learn-more-button:hover {
  background: #7c0000 !important;
  color: #fff !important;
}

/* === Add to Cart button if it's an <input> (not <button>) === */
.woocommerce ul.products li.product .product-buttons form input[type="submit"].add_to_cart_button {
  display: block;
  width: 100%;
  padding: 10px 0;
  font-size: 14px;
  text-align: center;
  background: none !important;
  color: #7c0000 !important;
  border: 1px solid #7c0000 !important;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
}

/* === Hover fix for <input> add to cart === */
.woocommerce ul.products li.product .product-buttons form input[type="submit"].add_to_cart_button:hover {
  background: #7c0000 !important;
  color: #fff !important;
}
/* === Product Buttons Flex Layout === */
.woocommerce ul.products li.product .product-buttons {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 8px;
  margin-top: 16px;
}

/* === Force both to be same width === */
.woocommerce ul.products li.product .product-buttons > * {
  flex: 1 1 50%;
  box-sizing: border-box;
}

/* === Learn More Button === */
.woocommerce ul.products li.product .product-buttons a.learn-more-button {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  text-align: center;
  border: 1px solid #7c0000 !important;
  background: none !important;
  color: #7c0000 !important;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* === Hover for Learn More === */
.woocommerce ul.products li.product .product-buttons a.learn-more-button:hover {
  background: #7c0000 !important;
  color: #fff !important;
}

/* === Add to Cart Input (most common Woo case) === */
.woocommerce ul.products li.product .product-buttons form input.add_to_cart_button,
.woocommerce ul.products li.product .product-buttons form button.add_to_cart_button {
  display: block;
  width: 100%;
  padding: 10px 0;
  font-size: 14px;
  text-align: center;
  border: 1px solid #7c0000 !important;
  background: none !important;
  color: #7c0000 !important;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
}

/* === Hover for Add to Cart === */
.woocommerce ul.products li.product .product-buttons form input.add_to_cart_button:hover,
.woocommerce ul.products li.product .product-buttons form button.add_to_cart_button:hover {
  background: #7c0000 !important;
  color: #fff !important;
}

/* === FORCE CORRECT STYLES ON ADD TO CART INPUT === */
.woocommerce ul.products li.product .product-buttons form input.add_to_cart_button {
  color: #7c0000 !important;
  background: none !important;
  border: 1px solid #7c0000 !important;
  font-weight: 600;
  opacity: 1 !important;
  text-transform: uppercase;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* === FIX DISABLED STATE STYLING === */
.woocommerce ul.products li.product .product-buttons form input.add_to_cart_button:disabled {
  color: #7c0000 !important;
  opacity: 0.5 !important;
  cursor: not-allowed;
}

/* === FORCE HOVER TO MAROON BG + WHITE TEXT === */
.woocommerce ul.products li.product .product-buttons form input.add_to_cart_button:hover:not(:disabled) {
  background: #7c0000 !important;
  color: #fff !important;
  border-color: #7c0000 !important;
}

/* === Add to Cart Button Styling === */
.woocommerce ul.products li.product .product-buttons form .add_to_cart_button {
  display: block;
  width: 100%;
  padding: 10px 0;
  font-size: 14px;
  text-align: center;
  color: #7c0000 !important;
  background-color: transparent !important;
  border: 1px solid #7c0000 !important;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* === Add to Cart Button Hover Effect === */
.woocommerce ul.products li.product .product-buttons form .add_to_cart_button:hover {
  background-color: #7c0000 !important;
  color: #ffffff !important;
  border-color: #7c0000 !important;
}

.widget-title.wpc-filter-title {
	font-weight: 400 !important;
	font-size: 20px !important;
}

.wpc-posts-found {
	display: none;
}

.widget .wpc-term-count-0:not(.wpc-has-not-empty-children) a, .widget-area .widget .wpc-term-count-0:not(.wpc-has-not-empty-children) a, .widget-area .wpc-filters-labels li.wpc-term-count-0:not(.wpc-has-not-empty-children) label, .widget-area .wpc-filters-labels li.wpc-term-count-0:not(.wpc-has-not-empty-children) label span.wpc-filter-label-wrapper, .wpc-filters-labels li.wpc-term-count-0:not(.wpc-has-not-empty-children) label, .wpc-filters-labels li.wpc-term-count-0:not(.wpc-has-not-empty-children) label span.wpc-filter-label-wrapper, .wpc-term-count-0:not(.wpc-has-not-empty-children), .wpc-term-count-0:not(.wpc-has-not-empty-children) a, body .wpc-filters-main-wrap li.wpc-term-count-0:not(.wpc-has-not-empty-children) label, body .wpc-filters-main-wrap li.wpc-term-count-0:not(.wpc-has-not-empty-children) label a {
	opacity: 1 !important;
}

.widget ul li a, .wpc-filters-main-wrap a.wpc-toggle-a {
    font-size: 13px !important;
	line-height: 18px !important;
}

hr {
	border-top: 1px solid #000;
}

@media screen and (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
}

.woocommerce div.product p.price, 
.woocommerce div.product span.price {
    display: block !important;
}

a.woocs_flag_view_item {
	float: right;
	height: auto !important;
}

a.woocs_flag_view_item_current {
	border: 2px solid #fff;
	opacity: 1 !important;
}

body .wpc-filter-chips-list li a {
	border: 1px solid #fff !important;
	color: #fff !important;
}

.selectron23 {
	height: 30px !important;
    margin-top: 15px !important;
}