body {
	margin: 0;
	padding: 0;
	color: #999;
	font-family: Tahoma, Geneva, sans-serif;
	font-size: 16px;
	line-height: 1.4em; 
	background-color: #665f5f;
	background-repeat: repeat;
	background-image: url(images/templatemo_body.jpg)
}

a, a:link, a:visited { color: #0299aa; font-weight: normal; text-decoration: none }
a:hover { text-decoration: underline; }

a.addtocart{ display: inline-block; width: 100px; height: 26px; line-height: 21px; text-align: center; font-size: 10px; font-weight: bold; color: #333; background: url(images/templatemo_addtocart.png) }
a.detail{ display: inline-block; width: 100px; height: 26px; line-height: 20px; text-align: center; font-size: 10px; font-weight: bold; color: #333; background: url(images/templatemo_detail.png) }

p { margin: 0 0 10px 0; padding: 0; }
img { border: none; }
blockquote { border: 1px solid #039fb1; border-left: 5px solid #000; padding: 19px; margin: 20px 0 0 0}
cite a, cite a:link, cite a:visited  { font-size: 12px; text-decoration: none; font-style: normal }
cite span { font-weight: 400; color: #333; }

.tmo_list { margin: 10px 0 10px 15px; padding: 0; list-style: none }
.tmo_list li { color:#999; margin: 0 0 5px 0; padding: 0 0 0 15px; background: url(images/templatemo_list.png) no-repeat scroll 0 5px  }
.tmo_list li a { color: #999; font-weight: normal }
.tmo_list li a:hover { color: #333 }

.showcase-wrapper {
    padding: 10px 0;
}

.showcase-wrapper .thumb-previewer {
    padding: 8px;
    background: #fff;
    box-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.31);
    text-align: center; /* จัดภาพให้อยู่กลาง */
}

.showcase-wrapper .thumb-img {
    display: flex;
    flex-wrap: wrap; /* ปรับให้รองรับการเรียงหลายแถวถ้าหน้าจอเล็ก */
    align-items: center;
    justify-content: space-between; /* กระจายช่องว่างให้พอดี */
    margin: 40px 0 0 0; /* ลบ margin-left ออกเพื่อใช้ justify */
    padding: 0;
    list-style: none; /* ลบ bullet point */
}

.showcase-wrapper .thumb-img li {
    margin: 4px; /* ลด margin เพื่อให้กระชับ */
    flex: 1 1 calc(30% - 30px); /* ปรับให้แต่ละ li มีความยืดหยุ่น */
    max-width: calc(32% - 30px); /* จำกัดขนาดสูงสุด */
}

.showcase-wrapper .thumb-img li a {
    display: block;
    padding: 6px;
    background: #fff;
    box-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.31);
    transition: transform 0.3s, box-shadow 0.3s; /* เพิ่มเอฟเฟกต์ hover */
}

.showcase-wrapper .thumb-img li a:hover {
    transform: scale(1.05); /* ขยายเล็กน้อยเมื่อ hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* เพิ่มเงา */
}

.showcase-wrapper .thumb-img li img {
    max-width: 60px;
    height: auto; /* รักษาสัดส่วนของภาพ */
    display: block;
}


h1, h2, h3, h4, h5, h6 { color: #333; font-weight: normal; }
h1 { font-size: 30px; margin: 0 0 30px; padding: 5px 0 }
h2 { font-size: 28px; margin: 0 0 25px; padding: 5px 0 }
h3 { font-size: 24px; margin: 0 0 20px; padding: 0; }
h4 { font-size: 22px; margin: 0 0 15px; padding: 0; }
h5 { font-size: 20px; margin: 0 0 10px; padding: 0;  }
h6 { font-size: 18px; margin: 0 0 5px; padding: 0; }

.cleaner { clear: both }
.h10 { height: 10px }
.h20 { height: 20px }
.h30 { height: 30px }
.h40 { height: 40px }
.h50 { height: 50px }

.float_l { float: left }
.float_r { float: right }

#templatemo_body_wrapper {
	width: 100%;
	background: url(images/templatemo_body_top.jpg) repeat-x top
}

#templatemo_wrapper {
	width: 980px;
	margin: 0 auto;
}

#templatemo_header {
	width: 960px;
	height: 70px;
	padding: 30px 10px;
	/* background: url(images/templatemo_header_bg.png) no-repeat bottom;  */
}

#templatemo_menubar {
	width: 980px;
	height: 60px;
	background: url(images/templatemo_menubar.png) no-repeat;
}

#templatemo_main {
	width: 940px;
	padding: 10px 20px;
	background: url(images/templatemo_main_bg.png) repeat-y
}

#content { width: 690px }
#sidebar { width: 220px }

#templatemo_footer {
	width: 960px;
	padding: 30px 10px;
	text-align: center;
	background: url(images/templatemo_footer.png) no-repeat top
}

#site_title { float: left; margin-top: 0px; }
#site_title h1 { margin: 0; padding: 0 }
#site_title h1 a { display: block; width: 404px; height: 80px; padding-top: 78px; font-size: 14px; letter-spacing: 0px; color: #fff; text-align: left; background: url(images/logo.png) no-repeat top left }

#header_right { float: right; margin: 35px 240px 0 0; color: #666; }
#header_right a { color: #fff }

#menu_second_bar { padding: 5px 10px; }
#top_shopping_cart { float: left; padding: 5px 0; font-size: 11px; }

#templatemo_search { float: right; margin: 10px 30px 0; width: 220px; height: 34px; background: url(images/templatemo_search_bg.png) }
#templatemo_search form {
	margin: 0;
	padding: 0;
}

#templatemo_search .txt_field {
	float: left;
	display: block;
	height: 22px;
	line-height: 22px;
	width: 170px;
	color: #999;
	font-size: 12px;
	padding: 5px;
	font-variant: normal;
	border: none;	
	background: none;
}

#templatemo_search .sub_btn {
	float: right;
	display: block;
	color: #fff;
 	height: 33px;
	width: 40px;
	font-size: 11px;
	font-weight: 700;
	line-height: 26px;
	cursor: pointer;
	border: none;
	background: none;	
}

.sidebar_box {
	position: relative;
	background: #f0f0f0;
	margin-bottom: 36px;
	border: 1px solid #dbdbdb
}
.sidebar_box h3 { font-size: 14px; font-weight: 700; padding: 0 10px 0 35px; margin: 0; width: 185px; height: 33px; line-height: 33px; margin-bottom: 0; background: url(images/templatemo_sidebar_header.png)  no-repeat; color: #2f2f2f }

#sidebar .sidebar_box .content {
	padding: 10px 10px 0;
}

/* #sidebar .sidebar_list { margin: 0; padding: 0 0 10px; list-style: none;}
#sidebar .sidebar_list li { display: block; margin: 0; padding: 5px 0; border-top: 1px solid #fff; border-bottom: 1px solid #d3d3d3 }
#sidebar .sidebar_list li.first { border-top: none }
#sidebar .sidebar_list li.last { border-bottom: none }
#sidebar .sidebar_list li a { color: #fff;   }
#sidebar .sidebar_list li a:hover { color: #fff; text-decoration: none; background: #000; }
#sidebar .sidebar_list li.active a { color: #fff; background-color: #000; }
#sidebar .sidebar_list li a:active { color: #fff; background-color: #000; text-decoration: none; } */

#sidebar .sidebar_list { margin: 0; padding: 0 0 0px; list-style: none; background: #f90; }
#sidebar .sidebar_list li { display: block; margin: 0; padding: 0; border-top: 1px solid #fff; border-bottom: 1px solid #d3d3d3; }
#sidebar .sidebar_list li.first { border-top: none; }
#sidebar .sidebar_list li.last { border-bottom: 1px solid #d3d3d3; }
#sidebar .sidebar_list li a { display: block; padding: 10px; color: #fff; text-decoration: none; }
#sidebar .sidebar_list li a:hover { color: #fff; background: #69c6cd; text-decoration: none; }
#sidebar .sidebar_list li.active a { color: #fff; background-color: #69c6cd; font-weight: bold; }
#sidebar .sidebar_list li a:active { color: #fff; background-color: #69c6cd; text-decoration: none; }


.bs_box { clear: both; margin-bottom: 20px }
.bs_box img { float: left; margin-right: 10px; border: 4px solid #fff }
.bs_box h4 { margin-bottom: 0 }
.bs_box h4 a { font-size: 11px; color: #000; font-weight: 700}
.bs_box .price { font-size: 12px; font-weight: 700; color: #11bdd1}

/* .product_box {
	float: left;
	width: 220px;
	text-align: center;
	margin: 0 10px 30px 0;
	padding-bottom: 20px;
	border-bottom: 1px dotted #ccc
}

.product_box img {
	margin-bottom: 5px;
}
.product_box h3 {
	font-size: 14px;
	color: #000;
	font-weight: 700;
	margin-bottom: 10px;
}
.product_box .product_price {
	color: #11bdd1;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 20px;
}
.product_box .addtocart {
	float: left;
	display: block;
}
.product_box .detail {
	float: right;
	display: block;
} */

/* Gallery Overlay */
.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.gallery-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.gallery-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.gallery-content button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.gallery-content button:hover {
    background: #fff;
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.close-gallery {
    position: absolute;
    top: 10px !important;
    right: 10px !important;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Parent container */
.container {
    display: flex;
    flex-wrap: wrap; /* ให้แถวใหม่เริ่มต้นเมื่อพื้นที่ไม่พอ */
    gap: 10px; /* เพิ่มช่องว่างระหว่าง box */
}

/* Product box */
.product_box {
    flex: 0 0 220px; /* กำหนดความกว้างของแต่ละ box */
    text-align: center;
    margin-bottom: 30px; /* ใช้ margin-bottom สำหรับช่องว่างด้านล่าง */
    padding-bottom: 20px;
    border-bottom: 1px dotted #ccc;
    display: flex;
    flex-direction: column; /* ใช้ flexbox สำหรับจัดการเนื้อหาใน box */
}

/* กำหนดความสูงของ h3 ให้เท่ากัน */
.product_box h3 {
    font-size: 14px;
    color: #000;
    font-weight: 700;
    margin-bottom: 10px;
    min-height: 40px; /* หรือค่าความสูงที่ต้องการ */
}

.product_box .product_price {
	color: #11bdd1;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 20px;
}

/* ปรับปุ่ม */
.product_box .addtocart,
.product_box .detail {
    margin-top: auto; /* จัดตำแหน่งให้ปุ่มอยู่ด้านล่างสุด */
}


#contact_form { padding: 0; width: 300px; margin-bottom: 40px }
#contact_form form { margin: 0px; padding: 0px; }

#contact_form form .input_field { 
	font-family: Arial, Helvetica, sans-serif;
	width: 270px; 
	padding: 5px; 
	color: #808b98;
	background: #fff;
	border: 1px solid #dedede; 
}

#contact_form form label { display: block; width: 100px; margin-right: 12px; font-size: 11px }

#contact_form form textarea { 
	font-family: Arial, Helvetica, sans-serif;
	width: 270px; 
	height: 200px; 
	padding: 5px; 
	color: #808b98;
	background: #fff; 
	border: 1px solid #dedede; 
}

#contact_form form .submit_btn { 
	display: block; 
	padding: 5px 12px; 
	text-align: center; 
	text-decoration: none; 
	font-weight: bold;
	background-color: #000; 
	border: 1px solid #fff; 
	color: #fff; 
	font-size:11px; 
	cursor: pointer;
}

.content_half { width: 320px }
.content_13 { width: 220px; margin-right: 10px }

.faqs p { margin-bottom: 20px }
.faqs h5 { margin-bottom: 5px }

#templatemo_footer {
	color: #999
}
#templatemo_footer a {
	color: #fff;
}

/*============================*/
/*=== Custom Slider Styles ===*/
/*============================*/
#slider-wrapper {
	float: left;
    width: 680px;
    height: 300px;
	margin-right: 20px;
	margin-bottom: 60px;
}

#slider {
	position:relative;
    width: 980px;
    height: 316px;
	background:url(images/loading.gif) no-repeat 50% 50%;
}
#slider img {
	position:absolute;
	top:0px;
	left:0px;
	display:none;
}
#slider a {
	border:0;
	display:block;
}

.nivo-controlNav {
	position:absolute;
	right: 10px;
	bottom: -30px;
}
.nivo-controlNav a {
	display:block;
	width:14px;
	height:18px;
	/* background:url(images/bullets.png) no-repeat; */
	text-indent:-9999px;
	border:0;
	margin-right:3px;
	float:left;
}
.nivo-controlNav a.active {
	background-position:0 -18px;
}

.nivo-directionNav a {
	display:block;
	width:30px;
	height:30px;
	background:url(images/arrows.png) no-repeat;
	text-indent:-9999px;
	border:0;
}
a.nivo-nextNav {
	background-position:-30px 0;
	right:15px;
}
a.nivo-prevNav {
	left:15px;
}

.nivo-caption {
    text-shadow:none;
    font-family: Helvetica, Arial, sans-serif;
}
.nivo-caption a { 
    color:#efe9d1;
    text-decoration:underline;
}
.pagination {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	padding-left: 0;
	list-style: none;
  }
  
  .page-link {
	position: relative;
	display: block;
	color: #0299aa;
	text-decoration: none;
	background-color: #fff;
	border: 1px solid #dee2e6;
	-webkit-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
	transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
	-o-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  }
  
  @media (prefers-reduced-motion: reduce) {
	.page-link {
	  -webkit-transition: none;
	  -o-transition: none;
	  transition: none;
	}
  }
  
  .page-link:hover {
	z-index: 2;
	color: #ffffff;
	background-color: #0299aa;
	border-color: #01565f;
  }
  
  .page-link:focus {
	z-index: 3;
	color: #ffffff;
	background-color: #0299aa;
	outline: 0;
	-webkit-box-shadow: 0 0 0 0.25rem rgba(255, 69, 69, 0.25);
			box-shadow: 0 0 0 0.25rem rgba(255, 69, 69, 0.25);
  }
  
  .page-item:not(:first-child) .page-link {
	margin-left: -1px;
  }
  
  .page-item.active .page-link {
	z-index: 3;
	color: #fff;
	background-color: #0299aa;
	border-color: #01565f;
  }

  .page-link.active {
    z-index: 3 !important;
    color: #fff !important;
    background-color: #0299aa !important;
    border-color: #01565f !important;
}
  
  .page-item.disabled .page-link {
	color: #6C757D;
	pointer-events: none;
	background-color: #fff;
	border-color: #dee2e6;
  }
  
  .page-link {
	padding: 0.375rem 0.75rem;
  }
  
  .page-item:first-child .page-link {
	border-top-left-radius: 0.25rem;
	border-bottom-left-radius: 0.25rem;
  }
  
  .page-item:last-child .page-link {
	border-top-right-radius: 0.25rem;
	border-bottom-right-radius: 0.25rem;
  }
  
  .pagination-lg .page-link {
	padding: 0.75rem 1.5rem;
	font-size: 1.25rem;
  }
  
  .pagination-lg .page-item:first-child .page-link {
	border-top-left-radius: 0.3rem;
	border-bottom-left-radius: 0.3rem;
  }
  
  .pagination-lg .page-item:last-child .page-link {
	border-top-right-radius: 0.3rem;
	border-bottom-right-radius: 0.3rem;
  }
  
  .pagination-sm .page-link {
	padding: 0.25rem 0.5rem;
	font-size: 0.875rem;
  }
  
  .pagination-sm .page-item:first-child .page-link {
	border-top-left-radius: 0.2rem;
	border-bottom-left-radius: 0.2rem;
  }
  
  .pagination-sm .page-item:last-child .page-link {
	border-top-right-radius: 0.2rem;
	border-bottom-right-radius: 0.2rem;
  }
  
  .shop_toolbar_wrapper {
	padding: 10px 15px;
	border: 1px solid #ebebeb;
	-webkit-box-align: center;
	-webkit-align-items: center;
		-ms-flex-align: center;
			align-items: center;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	-webkit-justify-content: space-between;
		-ms-flex-pack: justify;
			justify-content: space-between;
  }
  
  @media only screen and (max-width: 479px) {
	.shop_toolbar_wrapper {
	  -webkit-box-orient: vertical;
	  -webkit-box-direction: normal;
	  -webkit-flex-direction: column;
		  -ms-flex-direction: column;
			  flex-direction: column;
	  -webkit-box-pack: center;
	  -webkit-justify-content: center;
		  -ms-flex-pack: center;
			  justify-content: center;
	}
  }
  
  .shop_toolbar_wrapper .shop_toolbar_btn {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-wrap: wrap;
		-ms-flex-wrap: wrap;
			flex-wrap: wrap;
	-webkit-box-align: center;
	-webkit-align-items: center;
		-ms-flex-align: center;
			align-items: center;
  }
  
  @media only screen and (max-width: 479px) {
	.shop_toolbar_wrapper .shop_toolbar_btn {
	  margin-bottom: 10px;
	}
  }
  
  .shop_toolbar_wrapper .shop_toolbar_btn button {
	border: 1px solid #ebebeb;
	font-size: 20px;
	text-transform: uppercase;
	margin-right: 10px;
	line-height: 1;
	cursor: pointer;
	-webkit-transition: 0.4s;
	-o-transition: 0.4s;
	transition: 0.4s;
	padding: 6px 5px 4px;
	background-color: transparent;
  }
  
  .shop_toolbar_wrapper .shop_toolbar_btn button.active {
	border: 1px solid #ff4545;
	color: #ff4545;
  }
  
  .shop_toolbar_wrapper .shop_toolbar_btn button:focus {
	-webkit-box-shadow: none;
			box-shadow: none;
	outline: none;
  }
  
  .shop_toolbar_wrapper .shop_toolbar_btn button:hover {
	color: #ff4545;
	border-color: #ff4545;
  }
  
  .shop_toolbar_wrapper .shop_toolbar_btn button:last-child {
	margin-right: 0px;
  }
  
  .shop_toolbar_wrapper .shop-top-bar-right {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
  }
  
  .shop_toolbar_wrapper .shop-top-bar-right .shop-short-by {
	margin-right: 20px;
  }
  
  .shop_toolbar_wrapper .shop-top-bar-right .shop-short-by .nice-select {
	border-radius: 0px;
	border-color: #ebebeb;
	height: 32px;
	line-height: 30px;
  }
  
  .shop_toolbar_wrapper .shop-top-bar-right .shop-short-by .nice-select .list {
	width: 160px;
	padding: 10px 0;
	border-radius: 0px;
	z-index: 99;
  }
  
  .shop_toolbar_wrapper .shop-top-bar-right .shop-short-by .nice-select li {
	margin: 0 10px;
	padding: 10px 0;
	background: transparent;
	line-height: 1;
	min-height: 20px;
  }
  
  .shop_toolbar_wrapper .shop-top-bar-right .shop-short-by .nice-select li:hover {
	padding-left: 5px;
	display: block;
	color: #ff4545;
  }
  
  .shop_toolbar_wrapper .shop-top-bar-right .shop-short-by .nice-select:focus {
	border-color: #ff4545;
  }
  
  .shop_toolbar_wrapper .shop-top-bar-right .shop-short-by .nice-select .current {
	color: #212121;
	font-size: 14px;
  }
  
  @media only screen and (max-width: 479px) {
	.shop_toolbar_wrapper .shop-top-bar-right {
	  -webkit-box-orient: vertical;
	  -webkit-box-direction: normal;
	  -webkit-flex-direction: column;
		  -ms-flex-direction: column;
			  flex-direction: column;
	  -webkit-box-align: center;
	  -webkit-align-items: center;
		  -ms-flex-align: center;
			  align-items: center;
	}
	.shop_toolbar_wrapper .shop-top-bar-right .shop-short-by {
	  margin-right: 0px;
	  margin-bottom: 15px;
	}
  }
  
  .shop_toolbar_wrapper .shop-top-bar-left .shop-top-show span {
	color: #212121;
	font-size: 14px;
  }