
/*
Theme Name: Tractor Mike 2025
Description: Child theme of Twenty Twenty-Five
Author: Matt Harris
Author URI: https://riotactstudios.com
Template: twentytwentyfive
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-child
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.2
*/

*:focus {
  outline: none;
}

:root {
  --body-text-color: #222529;
  --body-accent-color: #CC0000;
  --body-light-text: #B8BDC1;
  --body-text-description: #868E96;
  --body-gray-003: ;
  --button-hover-color: #2f3236;
  --bodyfont: Roboto, sans-serif;
  --headingfont: Poppins, sans-serif;
}

/*-------------------------------*/
/*- Header Menu -----------------*/
/*-------------------------------*/

.header-menu-wrapper {
	position: relative;
}

.header-menu {
	display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-start;
}

.header-menu > li {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
  position: relative;
} 

.header-menu > li > a {
  position: relative;
  display: block;
  font-weight: 400;
  font-size: 15px;
  line-height: 50px;
  height: 50px;
  margin: 0 20px;
  color: var(--body-text-color);
  transition: all 0.3s ease;
}

.header-menu > li:first-child > a {
  margin-left: 0;
}

.header-menu > li:last-child > a {
  margin-right: 0;
}

.header-menu > li.menu-item-has-children > a:after {
	position: absolute;
	top: 50%;
	right: -15px;
	transform: translateY(-50%) rotate(180deg);
  content: '\f2ec';
  font: var(--fa-font-sharp-solid);
  font-size: 8px;
}

.header-menu > li > .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 999;
  min-width: 220px;
  background-color: #fff;
  text-align: left;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid #eee;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.header-menu > li > .sub-menu > li {
  display: block;
  margin:  0;
  padding: 0 13px;
}

.header-menu > li > .sub-menu > li:last-child {
  border-bottom: 0;
}

.header-menu > li > .sub-menu > li > a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  padding: 10px;
  margin: 0;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.header-menu > li:hover > a,
.header-menu > li > .sub-menu > li a:hover {
  color: #cc0000;
}

.header-menu > li.current-menu-item > a,
.header-menu > li > .sub-menu > li.current-menu-item > a {
	color: #cc0000;
}

.header-menu > li:hover .sub-menu {
  display: block;
}

/*-------------------------------*/
/*- Mega Menu -------------------*/
/*-------------------------------*/

.header-menu > li > .mega-menu-content {
	position: absolute;
  display: none;
  flex-wrap: wrap;
  justify-content: space-between;
  top: 100%;
  z-index: 999;
  background-color: #fff;
  box-sizing: border-box;
  margin: 0;
  padding: 20px 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  /* Width and left set by JavaScript */
  gap: 20px 0;
}

.header-menu > li:hover .mega-menu-content {
  display: flex;
}

.mega-menu-item {
	display: flex;
	align-items: center;
	width: 29%;
}

.mega-menu-item-thumb {
	margin-right: 10px;
  width: 48px;
}

.mega-menu-item-thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 4px;
}

.mega-menu-item-details {
  width: calc(100% - 58px);
}

.mega-menu-item-details h4 {
  font-size: 18px;
	margin: 0;
	transition: 0.3s ease;
}

.mega-menu-item:hover h4,
.mega-menu-item.current-menu-item h4 {
	color: #cc0000;
}

.mega-menu-item-details p {
	font-size: 12px;
	color: #aaa;
	margin: 0;
}

/*-------------------------------*/
/*- Mobile Menu -----------------*/
/*-------------------------------*/

.mobile-menu-open {
	font-size: 20px;
}

#mobile-menu-container {
	height: 100%;
  width: 0;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  background-color: #232020;
  overflow-x: hidden;
  transition: 0.5s;
}

.mobile-menu-content {
  position: relative;
  top: 50px;
  width: 100%;
  margin-top: 30px;
}

#mobile-menu-container .closebtn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 60px;
  color: #fff;
}

.menu-mobile {
  padding: 0 0 30px 0;
}

.menu-mobile li {
  list-style: none;
  margin: 0;
}

.menu-mobile li:before {
  content: none;
}

.menu-mobile li a {
  position: relative;
  display: block;
  padding: 10px 20px;
  transition: all .3s ease;
  color: #aaa;
}

.menu-mobile li.menu-toggle > a:after {
  position: absolute;
  content: '';
  top: 50%;
  right: 20px;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #aaa;
  border-right: 2px solid #aaa;
  transform: translateY(-50%) rotate(45deg);
}

.menu-mobile li.menu-toggle > a.active:after {
	border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(-135deg);
}

.menu-mobile li a.active {
  color: #fff;
  background: #ee1d25;
}

.menu-mobile .sub-menu {
  display: none;
  margin: 0;
  padding: 0;
}

.menu-mobile .sub-menu li a {
  padding: 10px 20px 10px 40px;
}

.menu-mobile .sub-menu li .sub-menu li a {
  padding: 10px 20px 10px 60px;
}

.menu-mobile .current-menu-item a {
  color: #ee1d25;
}

/*-------------------------------*/
/*- Category Menu ---------------*/
/*-------------------------------*/

.category-panel {
  position: relative;
}

.category-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: var(--body-accent-color);
  color: #fff;
  height: 50px;
  width: 255px;
  border: 0;
  font-size: 16px;
  font-weight: 500;
  padding: 0 16px;
  cursor: pointer;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.category-button-icon {
  color: #aaa;
  margin-right: 10px;
}

.category-button:hover .category-button-icon {
  color: #fff;
}

.menu-category-menu-container {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  background-color: #fff;
  padding: 5px 0;
}

.menu-category-menu-container.open {
  display: block;
}

.category-panel-spacer {
  width: 255px;
}

.category-menu {
  list-style: none;
  width: 255px;
  margin: 0;
  padding: 0;
  box-shadow: 1px 2px 5px rgba(134, 142, 150, 0.12);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.category-menu > li {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
}

.category-menu > li > a {
  position: relative;
  display: block;
  padding: 10px 16px;
  color: var(--body-text-color);
  font-size: 15px;
  font-weight: 400;
  transition: all 0.3s ease;
}

.category-menu > li > a:hover {
  background-color: #2f3236;
}

.category-menu > li.menu-item-has-children > a:after {
  content: '\f054';
  font: var(--fa-font-sharp-solid);
  font-size: 8px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translate(-50%);
}

.category-menu > li > .sub-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  z-index: 999;
  min-width: 220px;
  background-color: #fff;
  text-align: left;
  margin: 0;
  padding: 0;
  box-shadow: 2px 0px 3px 0px rgba(0,0,0,0.15);
}

.category-menu > li > .sub-menu > li {
  display: block;
  margin:  0;
  padding: 0 13px;
}

.category-menu > li > .sub-menu > li:last-child {
  border-bottom: 0;
}

.category-menu > li > .sub-menu > li > a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  padding: 10px;
  margin: 0;
  white-space: nowrap;
  color: var(--body-text-color);
  transition: all 0.3s ease;
}

.category-menu > li:hover .sub-menu {
  display: block;
}

/*-------------------------------*/
/*- Breadcrumbs -----------------*/
/*-------------------------------*/ 

.woocommerce-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  font-size: 14px;
}

.woocommerce .woocommerce-breadcrumb::after, 
.woocommerce .woocommerce-breadcrumb::before {
  display: none !important;
}

.woocommerce-breadcrumb i {
  font-size: 10px;
}

.woocommerce-breadcrumb a {
  font-size: 14px;
  color: var(--body-light-text);
  transition: all 0.3s ease;
}

.woocommerce-breadcrumb a:hover {
  color: var(--body-text-description);
}

/*-------------------------------*/
/*- WooCommerce Loop ------------*/
/*-------------------------------*/ 

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #ededed;
  padding: 18px;
}

.product-card .wp-block-woocommerce-product-image {
}

.product-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.product-card h3 a {
  font-weight: 400;
  color: var(--body-text-color);
}

/*-------------------------------*/
/*- Product SKU Block -----------*/
/*-------------------------------*/ 

.wp-block-acf-product-sku {
  font-weight: 400;
}

/*-------------------------------*/
/*- Product Stock Block ---------*/
/*-------------------------------*/ 

.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.375rem 0.8125rem;
  border-radius: 8px;
  font-weight: 500;
}

.stock-status:before {
  content: '\f466';
  font: var(--fa-font-sharp-light);
  display: inline-block;
}

.stock-status.instock {
  color: #099268;
  background-color: #E6FCF5;
}

.stock-status.outofstock {
  color: #C92A2A;
  background-color: #FFF5F5;
}

.stock-status.onbackorder {
  color: #E8590C;
  background-color: #FFF4E6;
}

/*-------------------------------*/
/*- Product Summary Block -------*/
/*-------------------------------*/ 

.wc-block-components-product-summary ul {
  padding-inline-start: 0;
  list-style-position: inside;
}

/*-------------------------------*/
/*- Product Add to Cart Block ---*/
/*-------------------------------*/ 

.quantity input[type="number"]::-webkit-inner-spin-button,
.quantity input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body .woocommerce .quantity .qty {
    -moz-appearance: textfield;
    appearance: textfield;
    width: 42px;
    text-align: center;
    border: none;
    margin: 0 !important;
    height: 46px;
    padding: 0;
}

.woocommerce div.product form.cart::after, .woocommerce div.product form.cart::before {
  display: none !important;
}

.wp-block-acf-product-add-to-cart form.cart,
.woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.wp-block-acf-product-add-to-cart .quantity {
    margin-bottom: 0;
}

.quantity-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
}

.quantity-wrapper button {
  background-color: #fff;
  border: none;
  width: 32px;
  height: 46px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

/* Optional: Adjust the Add to Cart button */
.wp-block-acf-product-add-to-cart .single_add_to_cart_button {
    margin-bottom: 0;
    flex-shrink: 0; /* Prevent button from shrinking */
}

body .woocommerce .single_add_to_cart_button {
  display: flex !important;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  background-color: var(--body-accent-color);
  font-size: 14px;
  border-radius: 12px;
}

body .woocommerce .single_add_to_cart_button:before {
  content: '\f07a';
  font: var(--fa-font-sharp-light);
  display: inline-block;
}

.woocommerce-variation-price {
  margin-bottom: 10px;
}

/*-------------------------------*/
/*- Latest Comments Block -------*/
/*-------------------------------*/ 

.widget-comments__list {
    list-style: none;
    margin: 0;
    padding: 8px 0 4px
}

.widget-comments__item+.widget-comments__item {
    margin-top: 26px
}

.widget-comments__author {
    font-size: 15px;
    line-height: 18px
}

.widget-comments__author a {
    color: var(--body-text-color);
    border-bottom: 2px solid #ebebeb;
    transition: all 0.3s ease;
}

.widget-comments__author a:hover {
    color: var(--body-accent-color);
    border-color: var(--body-accent-color);
}

.widget-comments__content {
    margin-top: 12px;
    font-size: 15px;
    line-height: 20px
}

.widget-comments__meta {
    margin-top: 4px;
    font-size: 13px;
    color: #999;
    display: -ms-flexbox;
    display: flex;
    white-space: nowrap
}

.widget-comments__date {
    -ms-flex-negative: 0;
    flex-shrink: 0
}

.widget-comments__name {
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    padding-left: 20px
}

.widget-comments__name a {
  font-size: 14px;
  color: #999;
  transition: all 0.3s ease;
}

.widget-comments__name a:hover {
  color: var(--body-accent-color);
}

.widget-comments__name:before {
    position: absolute;
    content: "";
    display: block;
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 2px;
    top: 8px;
    left: 8px
}

/*-------------------------------*/
/*- Post Categories Block -------*/
/*-------------------------------*/

.wp-block-categories {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 18px;
  font-size: 16px;
}

.wp-block-categories .cat-item {
  display: flex;
  align-items: center;
}

.wp-block-categories .cat-item a {
  display: block;
  color: var(--body-text-color);
  transition: all 0.3s ease;
  padding: 7px 10px 7px 16px;
}

.wp-block-categories .cat-item a:hover {
  color: var(--body-accent-color);
}

.wp-block-categories .cat-item:before {
  content: '\f105';
  font: var(--fa-font-sharp-solid);
  font-size: 12px;
  color: #ccc;
  display: block;
}

/*-------------------------------*/
/*- Single Post -----------------*/
/*-------------------------------*/

.article p {
  margin-bottom: 20px;
}

.article h1,
.article h2,
.article h3,
.article h4,
.article h5 {
  margin-bottom: 20px;
}


/*-------------------------------*/
/*- Larger Than Phone -----------*/
/*-------------------------------*/ 

@media (min-width: 750px) {
	.mobile-menu-open {
		display: none;
	}

	.header-menu, body .mobile-hidden-flex {
		display: flex;
	}

	.mobile-hidden {
		display: block;
	}

	.map-section-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9;
  }
}