/*
Theme Name: Chromium Theme Child
Theme URI: http://chromium.themes.zone
Author: Themes Zone
Author URI: http://themes.zone
Description: Multi purpose Theme.
Version: 1.0 (see readme.txt for detailed changelog)
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, fluid-layout, fixed-layout, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, sticky-post, translation-ready
Text Domain: plumtree
Template: chromium
*/
html,body{
	font-family:"kanit" !important;
}

.site-main-banner{
	width:100%;
}
.button, button, input, textarea{
	font-family:"kanit" !important;
}

/* ============================================================
 * Header
 * ============================================================ */ 

header{
	width:100%;
	transition: all 0.3s ease;
	
}
header.scrolled {
	position:fixed;
	top:0;
	z-index:100;
}
header.scrolled #header-container{
	padding:0;
	transition: all 0.3s ease;
}
header > div:has(#header-container){
	max-width:100% !important;	
	background-color:#FFF;
	
}
#header-container{
	max-width:1350px;
	margin-left:auto;
	margin-right:auto;
}
#header-container .social-icons a{
	padding: 0;
}
#header-container .social-icons a img{
	width:28px;
}
#header-container  .elementor-nav-menu{
	align-items:center;
}
#header-container  .elementor-nav-menu--dropdown a{
	padding-top:16px !important
}
#header-container  .elementor-nav-menu .aj-menu-social .social-media-box-menu .title{
	display:none;
}
#header-container  .elementor-nav-menu .aj-menu-social .copyright{
	display:none;	
}
@media (max-width: 1024px) {
	#header-container  .elementor-nav-menu .aj-menu-social{
		border:0 !important;
	}
	#header-container  .elementor-nav-menu .aj-menu-social .social-media-box-menu{
		padding:1rem;
		text-align:center;
		background-color: #f2efec;
	}
	#header-container  .elementor-nav-menu .aj-menu-social .social-media-box-menu .title{
		margin-bottom:.5rem;
		display:block;
	}
	#header-container  .elementor-nav-menu .aj-menu-social .social-icons a{
		padding-top:0 !important;
	}
	#header-container  .elementor-nav-menu .aj-menu-social .copyright{
		display:block;	
		font-size: 10px;
    	color: #b5b4b4;
	}
}
/* ============================================================
 * Footer
 * ============================================================ */ 
.site-footer{
	padding:0;
}
.footer-widgets{
	padding : 0 1em;
}
#menu-footer-col2,#menu-footer-col3 {
	padding-left:0;
}
#menu-footer-col2 li:before,#menu-footer-col3 li:before{
	display:none;
}
.widget_tz_contacts ul li{
	color:#000;
}
.widget_tz_contacts ul li:before{
	color:#DB2243 !important;
}
.widget_tz_contacts ul li.a-email a{
	color:#000;
	font-weight: 400;
}
.site-info{
	text-align:center;
	background-color:#F6F6F6;
	max-width: 100% !important;
    padding-bottom: .5rem !important;
	color:#777777;
	font-weight:600;
	font-size:14px;
}
.widget-area{
	padding-bottom:0;
}
.widget-title{
	font-weight:600;
}
.social-icons {
    display: inline-flex;
    gap: .25rem;
 
}

.social-icons a {
   color:#DB2243 !important;
    font-size: 1.125rem;
    text-decoration: none;
    transition: 0.3s;
}
.social-icons a img{
	width: 36px;
}

.social-icons a:hover {
    opacity: .8;
	
}
.widget-area .mailpoet_form{
	padding:0 !important;
}
.widget-area .mailpoet_form_paragraph{
	color:#000;
}
.widget-area .mailpoet_form_columns{
	    display: grid;
        grid-template-columns: auto 3rem;
}
.widget-area .mailpoet_text::placeholder{
	
	font-size:14px;
}
.widget-area .mailpoet_submit,
input[type="submit"].mailpoet_submit {
     display:none !important;
}
.csf-subscribe-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #D9001B;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
	border-top-left-radius:0;
	border-bottom-left-radius:0;
}

.csf-subscribe-btn:hover {
    background: #b8001a;
}
/* ============================================================
 * Homepage
 * ============================================================ */ 
.site-main-banner{
	padding:0;
	max-width:100% !important;
	
}
.shop-banner-swiper .swiper-slide img{
	width:100%;
	max-width:100%;
}
 .shop-sidebar {
	height:100%;
	
    
}
@media (max-width: 900px) {
    .shop-sidebar {
        order: 1 !important;
    }
	.woocommerce-pagination{
		order:3;
	}
}

/* ============================================================
 * Sidebar Filter Form
 * ============================================================ */ 
.aj-tractor-filter-form .filter-input-group{
	position:relative;
}
.aj-tractor-filter-form .filter-input-group i{
	position:absolute;
	top:.75rem;
	left: .5rem;
}
.aj-tractor-filter-form input[type="text"] {
    width: 100%;
    padding: 6px 8px;
	background-color:#F2F2F2;
	padding-left:2rem
}
.aj-tractor-filter-form input[type="text"]::placeholder {
    color:#777777;
	font-size:15px;
	font-weight:400;
	font-family:'kanit'
}

.aj-tractor-filter-form .aj-filter-group {
    margin-bottom: 20px;
}

.aj-tractor-filter-form .aj-filter-title {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.aj-tractor-filter-form .aj-filter-checkbox {
    display: block;
    margin-bottom: 6px;
}

.aj-tractor-filter-form .aj-filter-scroll {
    max-height: 180px;
    overflow-y: auto;
}

.aj-tractor-filter-form .aj-filter-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aj-tractor-filter-form .aj-filter-range input {
    width: 70px;
	flex-grow: 1;
}
.aj-tractor-filter-form hr{
	margin-bottom:1rem;
	margin-top:0;
}
.aj-tractor-filter-form select {
    width: 100%;
}

.aj-tractor-filter-form .aj-filter-submit {
    width: 100%;
    margin-top: 8px;
	background-color:#9E161D;
	font-weight:600;
	font-family:'kanit'
}

.aj-tractor-filter-form .aj-filter-reset {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
}

/* ============================================================
 * Pagination
 * ============================================================ */ 

nav.woocommerce-pagination ul li a:focus, nav.woocommerce-pagination ul li a:hover, nav.woocommerce-pagination ul li a:active, nav.woocommerce-pagination ul.page-numbers li span{
	background-color:#9E161D;
	border-color:#9E161D;
}
.swiper-pagination-bullet-active{
	background-color:#9E161D;
	border-color:#9E161D;
}
/* ============================================================
 * Widget
 * ============================================================ */ 
.elementor-post__read-more {
    display: inline-block;
    padding: 7px 24px;
    background-color: #D0021B;
    color: #ffffff !important;
    font-weight: 600;
	font-size:16px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.elementor-post__read-more:hover {
    background-color: #A50015;
    color: #ffffff !important;
}

.widget ul li, .widget ol li{
	margin-bottom:0;
}

.google-map iframe{
	margin-bottom:0 !important;
}
/* ============================================================
 * Blog
 * ============================================================ */ 
.blog-style-default.single article.type-post .entry-title{
	color:#9E161D;
	font-size:1.5rem;
	font-weight:600;
}
article.type-post .thumbnail-wrapper{
	padding:1.25rem 1.25rem 0;
}
article.type-post .thumbnail-wrapper img{
	width:100%;
}

/* ============================================================
 * About us
 * ============================================================ */ 

.e-loop-item.promotion .e-con.e-con>.e-con-inner>.elementor-widget, .elementor.elementor .e-con>.elementor-widget{
	height:100%;
}
.e-loop-item.promotion .e-con.e-con>.e-con-inner>.elementor-widget, .elementor.elementor .e-con>.elementor-widget a{
	display:block;
}
.breadcrumbs{
	font-weight:500;
	color:#777777;
	width:100%;
	max-width:calc(1140px + 2em);
	padding-left:1rem;
	margin-top:1rem;
	font-size:14px;
	margin-bottom:1.5rem;
}
.breadcrumbs span, .breadcrumbs a{
	font-weight:500;
	color:#777777;
}
.breadcrumbs strong{
	font-weight:500;
	
}

/* ============================================================
 * Relates Post
 * ============================================================ */ 

.related-posts-title{
	margin-bottom:.5rem !important;
	color:#9E161D !important;
}
.related-posts-swiper.swiper {
    overflow: hidden;
    width: 100%;
}
.related-posts-swiper .swiper-wrapper {
    display: flex; /* ให้ Swiper คุมเอง อย่าใส่ grid/flex-wrap ทับ */
	grid-gap:0!important;
}
.related-posts-nav{
    margin-bottom: 1rem;
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
}
.related-posts-nav button{
	background-color: #FFF;
    padding: .5rem;
    border-radius: 0;
    color: #000;
    display: flex;
    align-items: center;
    height: auto !important;
	line-height:unset;
	font-size:1.25rem;
}
.related-posts-swiper .swiper-slide {
    flex-shrink: 0;
    width: auto; /* สำคัญ: อย่า fix width % ไว้ ปล่อยให้ Swiper JS คำนวณ width ให้เอง */
}
.related-posts h3 a{
	color: inherit;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
	font-size:1rem;
	height: 3.25rem;
}
@media screen and (max-width: 1024px) {
	.related-posts ul li .thumb-wrapper{
		display:block !important;
		width:100%;
		height:200px;
	}
	.related-posts ul li .thumb-wrapper img{
		width:100%;
		height:100%;
		object-fit:cover;
	}
	.related-posts .thumb-wrapper + .item-content{
		width:90%;
		text-align:left;
	}
}

/* ============================================================
 * Contact us
 * ============================================================ */ 
.wpforms-field-label{
	margin-bottom:.5rem !important;
}
.wpforms-submit{
	font-size: 14px !important;
    padding-left: 4rem !important;
    padding-right: 4rem !important;
}
.wpforms-field-large{
	height:45px !important;
}


/* ============================================================
 * Dealer
 * ============================================================ */ 

.leaflet-container{
	font-family:"kanit" !important;
}

/* ============================================================
 * Responsive
 * ============================================================ */ 


@media screen and (min-width: 768px) and (max-width: 1024px) {
	.site{
		display: flex !important;
        flex-wrap: wrap !important;
	}	
}
@media only screen and (min-width: 768px) {
	.related-posts{
		max-width:80%;
	}
	.related-posts .thumb-wrapper img{
		height:120px;
		object-fit:cover;
	}
}
@media only screen and (min-width:1200px){
	/* เพิ่มขอบแดงให้กับทุกหน้า */
	body{
		border-top : 1.875rem solid #9E161D;
	}
	.site-boxed .site-content {
        max-width: calc(1140px + 2em);
    }
	#promotion-container{
		padding:25px;
	}
	.related-posts{
		max-width:60%;
	}
	
}


.feature-highlight{
	margin-top:2rem;

	display:block;
}
.feature-highlight h2{
	color:#9E161D;
	text-align:center;
	font-weight:600;
}
.feature-highlight h6{
	text-align:center;
	font-weight:500;
	margin-bottom:2rem;
}
@media screen and (min-width:768px){
	.feature-row{
		display:grid;
		grid-template-columns:repeat(3,1fr);
		grid-gap:1rem;
	}
	.feature-highlight .feature-card{
		margin-bottom:0;
	}	

}
.feature-highlight .feature-card{
	display:grid;
	grid-template-columns: 70px auto;
	grid-gap:1rem;
	background-color:#FFFFFF;
	padding: 1.25rem 1rem;
	margin-bottom:1.5rem;
}
.feature-highlight .feature-card .title{
	font-weight:600;	
}
.feature-highlight .feature-card p{
	color:#777777;
	margin-bottom:0;
}

nav.woocommerce-pagination {
	display: none !important;
}
#aj-products-results nav.woocommerce-pagination {
	display: block !important; /* กันไว้เผื่อวันหนึ่งใช้ class นี้เองข้างในจริงๆ */
}
 
.aj-tractor-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 32px 0;
}
 
.aj-tractor-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fff;
	color: #333;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background .15s, border-color .15s, color .15s;
	box-sizing: border-box;
}
 
.aj-tractor-pagination a.page-numbers:hover {
	background: #f5f5f5;
	border-color: #b7111a;
	color: #b7111a;
}
 
/* หน้าปัจจุบัน (ไม่ใช่ลิงก์ — เป็น <span>) */
.aj-tractor-pagination .page-numbers.current {
	background: #b7111a;
	border-color: #b7111a;
	color: #fff;
	cursor: default;
}
 
/* ปุ่ม "..." (dots) ไม่ต้องมี hover effect เพราะกดไม่ได้ */
.aj-tractor-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: #999;
	cursor: default;
}
.aj-tractor-pagination .page-numbers.dots:hover {
	background: transparent;
	border-color: transparent;
	color: #999;
}
 
/* ปุ่มก่อนหน้า/ถัดไป (« ») */
.aj-tractor-pagination .page-numbers.prev,
.aj-tractor-pagination .page-numbers.next {
	font-weight: 400;
	font-size: 18px;
	color: #666;
}
.aj-tractor-pagination .page-numbers.prev:hover,
.aj-tractor-pagination .page-numbers.next:hover {
	background: #f5f5f5;
	border-color: #b7111a;
	color: #b7111a;
}
 
/* Mobile: ลดขนาดกล่องเลขนิดหน่อยกันล้นจอ */
@media (max-width: 480px) {
	.aj-tractor-pagination {
		gap: 5px;
	}
	.aj-tractor-pagination .page-numbers {
		min-width: 36px;
		height: 36px;
		font-size: 13px;
		padding: 0 6px;
	}
}

.yith-woocompare-open.button {
	white-space:nowrap;
	background-color:#9e161d;
}
.yct-product-image img{
	height:150px !important;
	object-fit:cover !important;
}

.aj-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.aj-orderby-select {
    margin-left: auto;
}
.aj-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.aj-orderby-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 180px;
    height: 40px;
    padding: 0 40px 0 20px; /* เผื่อที่ให้ลูกศรด้านขวา */

    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background-color: transparent;;

    font-size: 15px;
    color: #333333;
    cursor: pointer;

    /* ลูกศรแบบ custom (ใช้ svg แทน default ของ browser) */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.aj-orderby-select:hover {
    border-color: #b3b3b3;
}

.aj-orderby-select:focus {
    outline: none;
    border-color: #9E161D; /* ใช้สีแดงของแบรนด์ตามที่เห็นใน breadcrumb เดิม */
    box-shadow: 0 0 0 2px rgba(158, 22, 29, 0.1);
}

/* กัน select เดิมมี style ของ browser ปนมา (เช่น Safari) */
.aj-orderby-select::-ms-expand {
    display: none;
}

@media screen and (min-width: 990px) {
      .spc-related-wrap ul.products {
				grid-template-columns: repeat(4, 1fr) !important
		}
}