/*
* Template Name: UntreeStore
* Template Author: Untree.co
* Author URI: https://untree.co/
* License: https://creativecommons.org/licenses/by/3.0/
*/

body {
  overflow-x: hidden;
  position: relative;
}


a {
  text-decoration: none;
  -webkit-transition: .3s all ease;
  -o-transition: .3s all ease;
  transition: .3s all ease;
  color: #2f2f2f;
  text-decoration: underline;
}

a:hover {
  color: #2f2f2f;
  text-decoration: none;
}

a.more {
  font-weight: 600;
}

.custom-navbar {
  background: #1600ddda !important;
  padding-top: 20px;
  padding-bottom: 20px;
}

.custom-navbar .navbar-brand {
  font-size: 32px;
  font-weight: 600;
}

.custom-navbar .navbar-brand>span {
  opacity: .4;
}

.custom-navbar .navbar-toggler {
  border-color: transparent;
}

.custom-navbar .navbar-toggler:active,
.custom-navbar .navbar-toggler:focus {
  -webkit-box-shadow: none;
  box-shadow: none;
  outline: none;
}

@media (min-width: 992px) {
  .custom-navbar .custom-navbar-nav li {
    margin-left: 15px;
    margin-right: 15px;
  }
}

.custom-navbar .custom-navbar-nav li a {
  font-weight: 500;
  color: #ffffff !important;
  opacity: .5;
  -webkit-transition: .3s all ease;
  -o-transition: .3s all ease;
  transition: .3s all ease;
  position: relative;
}

@media (min-width: 768px) {
  .custom-navbar .custom-navbar-nav li a:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    background: #f9bf29;
    height: 5px;
    opacity: 1;
    visibility: visible;
    width: 0;
    -webkit-transition: .15s all ease-out;
    -o-transition: .15s all ease-out;
    transition: .15s all ease-out;
  }
}

.custom-navbar .custom-navbar-nav li a:hover {
  opacity: 1;
}

.custom-navbar .custom-navbar-nav li a:hover:before {
  width: calc(100% - 16px);
}

.custom-navbar .custom-navbar-nav li.active a {
  opacity: 1;
}

.custom-navbar .custom-navbar-nav li.active a:before {
  width: calc(100% - 16px);
}

.custom-navbar .custom-navbar-cta {
  margin-left: 0 !important;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
}

@media (min-width: 768px) {
  .custom-navbar .custom-navbar-cta {
    margin-left: 40px !important;
  }
}

.custom-navbar .custom-navbar-cta li {
  margin-left: 0px;
  margin-right: 0px;
}

.custom-navbar .custom-navbar-cta li:first-child {
  margin-right: 20px;
}

.hero {
  background: #3b5d50;
  padding: calc(4rem - 30px) 0 0rem 0;
}

@media (min-width: 768px) {
  .hero {
    padding: calc(4rem - 30px) 0 4rem 0;
  }
}

@media (min-width: 992px) {
  .hero {
    padding: calc(8rem - 30px) 0 8rem 0;
  }
}

.hero .intro-excerpt {
  position: relative;
  z-index: 4;
}

@media (min-width: 992px) {
  .hero .intro-excerpt {
    max-width: 450px;
  }
}

.hero h1 {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 30px;
}

@media (min-width: 1400px) {
  .hero h1 {
    font-size: 54px;
  }
}

.hero p {
  color: rgba(255, 255, 255, 0.5);
  margin-botom: 30px;
}

.hero .hero-img-wrap {
  position: relative;
}

.hero .hero-img-wrap img {
  position: relative;
  top: 0px;
  right: 0px;
  z-index: 2;
  max-width: 780px;
  left: -20px;
}

@media (min-width: 768px) {
  .hero .hero-img-wrap img {
    right: 0px;
    left: -100px;
  }
}

@media (min-width: 992px) {
  .hero .hero-img-wrap img {
    left: 0px;
    top: -80px;
    position: absolute;
    right: -50px;
  }
}

@media (min-width: 1200px) {
  .hero .hero-img-wrap img {
    left: 0px;
    top: -80px;
    right: -100px;
  }
}

.hero .hero-img-wrap:after {
  content: "";
  position: absolute;
  width: 255px;
  height: 217px;
  background-image: url("../images/dots-light.svg");
  background-size: contain;
  background-repeat: no-repeat;
  right: -100px;
  top: -0px;
}

@media (min-width: 1200px) {
  .hero .hero-img-wrap:after {
    top: -40px;
  }
}

.btn {
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 30px;
  color: #ffffff;
  background: #2f2f2f;
  border-color: #2f2f2f;
}

.btn:hover {
  color: #ffffff;
  background: #222222;
  border-color: #222222;
}

.btn:active,
.btn:focus {
  outline: none !important;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.btn.btn-primary {
  background: #3b5d50;
  border-color: #3b5d50;
}

.btn.btn-primary:hover {
  background: #314d43;
  border-color: #314d43;
}

.btn.btn-secondary {
  color: #2f2f2f;
  background: #f9bf29;
  border-color: #f9bf29;
}

.btn.btn-secondary:hover {
  background: #f8b810;
  border-color: #f8b810;
}

.btn.btn-white-outline {
  background: transparent;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn.btn-white-outline:hover {
  border-color: white;
  color: #ffffff;
}

.section-title {
  color: #2f2f2f;
}

.section-title {
  font-weight: 800;
}


.product-section .product-item {
  text-align: center;
  text-decoration: none;
  display: block;
  position: relative;
  padding-bottom: 28px;
  /* ตามที่คุณใช้ */
  cursor: pointer;
  color: inherit;
  border-radius: 12px;
}

/* กันรูปล้นกรอบเวลาซูม */
.product-section .product-item {
  overflow: hidden;
}

/* สภาพปกติ */
.product-section .product-thumbnail {
  position: relative !important;
  top: 0 !important;
  display: block;
  transform: translateY(0) scale(1);
  transition: transform .28s ease, filter .28s ease !important;
}

/* ตอน hover */
.product-section .product-item:hover .product-thumbnail {
  transform: translateY(-6px) scale(1.05);
}


.product-section .product-title {
  font-weight: 600;
  font-size: 16px;
  color: #2f2f2f;
}

.product-section .product-price {
  font-weight: 800 !important;
  font-size: 18px !important;
  color: #2f2f2f;
}



/* พื้นหลังนวล ๆ ตอนโฮเวอร์ */
.product-section .product-item::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #dce5e4;
  height: 0%;
  z-index: -1;
  border-radius: 10px;
  transition: .3s all ease;
}

.product-section .product-item:hover::before {
  height: 70%;
}


.why-choose-section {
  padding: 7rem 0;
}

.why-choose-section .img-wrap {
  position: relative;
}

.why-choose-section .img-wrap:before {
  position: absolute;
  content: "";
  width: 255px;
  height: 217px;
  background-image: url("../images/dots-yellow.svg");
  background-repeat: no-repeat;
  background-size: contain;
  -webkit-transform: translate(-40%, -40%);
  -ms-transform: translate(-40%, -40%);
  transform: translate(-40%, -40%);
  z-index: -1;
}

.why-choose-section .img-wrap img {
  border-radius: 20px;
}

.feature {
  margin-bottom: 30px;
}

.feature .icon {
  display: inline-block;
  position: relative;
  margin-bottom: 20px;
}

.feature .icon:before {
  content: "";
  width: 33px;
  height: 33px;
  position: absolute;
  background: rgba(59, 93, 80, 0.2);
  border-radius: 50%;
  right: -8px;
  bottom: 0;
}

.feature h3 {
  font-size: 14px;
  color: #2f2f2f;
}

.feature p {
  font-size: 14px;
  line-height: 22px;
  color: #6a6a6a;
}

.we-help-section {
  padding: 7rem 0;
}

.we-help-section .imgs-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[27];
  grid-template-columns: repeat(27, 1fr);
  position: relative;
}

.we-help-section .imgs-grid:before {
  position: absolute;
  content: "";
  width: 255px;
  height: 217px;
  background-image: url("../images/dots-green.svg");
  background-size: contain;
  background-repeat: no-repeat;
  -webkit-transform: translate(-40%, -40%);
  -ms-transform: translate(-40%, -40%);
  transform: translate(-40%, -40%);
  z-index: -1;
}

.we-help-section .imgs-grid .grid {
  position: relative;
}

.we-help-section .imgs-grid .grid img {
  border-radius: 20px;
  max-width: 100%;
}

.we-help-section .imgs-grid .grid.grid-1 {
  -ms-grid-column: 1;
  -ms-grid-column-span: 18;
  grid-column: 1 / span 18;
  -ms-grid-row: 1;
  -ms-grid-row-span: 27;
  grid-row: 1 / span 27;
}

.we-help-section .imgs-grid .grid.grid-2 {
  -ms-grid-column: 19;
  -ms-grid-column-span: 27;
  grid-column: 19 / span 27;
  -ms-grid-row: 1;
  -ms-grid-row-span: 5;
  grid-row: 1 / span 5;
  padding-left: 20px;
}

.we-help-section .imgs-grid .grid.grid-3 {
  -ms-grid-column: 14;
  -ms-grid-column-span: 16;
  grid-column: 14 / span 16;
  -ms-grid-row: 6;
  -ms-grid-row-span: 27;
  grid-row: 6 / span 27;
  padding-top: 20px;
}

.custom-list {
  width: 100%;
}

.custom-list li {
  display: inline-block;
  width: calc(50% - 20px);
  margin-bottom: 12px;
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}

.custom-list li:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #3b5d50;
  position: absolute;
  left: 0;
  top: 8px;
}

.popular-product {
  padding: 0 0 7rem 0;
}

.popular-product .product-item-sm h3 {
  font-size: 14px;
  font-weight: 700;
  color: #2f2f2f;
}

.popular-product .product-item-sm a {
  text-decoration: none;
  color: #2f2f2f;
  -webkit-transition: .3s all ease;
  -o-transition: .3s all ease;
  transition: .3s all ease;
}

.popular-product .product-item-sm a:hover {
  color: rgba(47, 47, 47, 0.5);
}

.popular-product .product-item-sm p {
  line-height: 1.4;
  margin-bottom: 10px;
  font-size: 14px;
}

.popular-product .product-item-sm .thumbnail {
  margin-right: 10px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 120px;
  flex: 0 0 120px;
  position: relative;
}

.popular-product .product-item-sm .thumbnail:before {
  content: "";
  position: absolute;
  border-radius: 20px;
  background: #dce5e4;
  width: 98px;
  height: 98px;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: -1;
}

.testimonial-section {
  padding: 3rem 0 7rem 0;
}

.testimonial-slider-wrap {
  position: relative;
}

.testimonial-slider-wrap .tns-inner {
  padding-top: 30px;
}

.testimonial-slider-wrap .item .testimonial-block blockquote {
  font-size: 16px;
}

@media (min-width: 768px) {
  .testimonial-slider-wrap .item .testimonial-block blockquote {
    line-height: 32px;
    font-size: 18px;
  }
}

.testimonial-slider-wrap .item .testimonial-block .author-info .author-pic {
  margin-bottom: 20px;
}

.testimonial-slider-wrap .item .testimonial-block .author-info .author-pic img {
  max-width: 80px;
  border-radius: 50%;
}

.testimonial-slider-wrap .item .testimonial-block .author-info h3 {
  font-size: 14px;
  font-weight: 700;
  color: #2f2f2f;
  margin-bottom: 0;
}

.testimonial-slider-wrap #testimonial-nav {
  position: absolute;
  top: 50%;
  z-index: 99;
  width: 100%;
  display: none;
}

@media (min-width: 768px) {
  .testimonial-slider-wrap #testimonial-nav {
    display: block;
  }
}

.testimonial-slider-wrap #testimonial-nav>span {
  cursor: pointer;
  position: absolute;
  width: 58px;
  height: 58px;
  line-height: 58px;
  border-radius: 50%;
  background: rgba(59, 93, 80, 0.1);
  color: #2f2f2f;
  -webkit-transition: .3s all ease;
  -o-transition: .3s all ease;
  transition: .3s all ease;
}

.testimonial-slider-wrap #testimonial-nav>span:hover {
  background: #3b5d50;
  color: #ffffff;
}

.testimonial-slider-wrap #testimonial-nav .prev {
  left: -10px;
}

.testimonial-slider-wrap #testimonial-nav .next {
  right: 0;
}

.testimonial-slider-wrap .tns-nav {
  position: absolute;
  bottom: -50px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}

.testimonial-slider-wrap .tns-nav button {
  background: none;
  border: none;
  display: inline-block;
  position: relative;
  width: 0 !important;
  height: 7px !important;
  margin: 2px;
}

.testimonial-slider-wrap .tns-nav button:active,
.testimonial-slider-wrap .tns-nav button:focus,
.testimonial-slider-wrap .tns-nav button:hover {
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  background: none;
}

.testimonial-slider-wrap .tns-nav button:before {
  display: block;
  width: 7px;
  height: 7px;
  left: 0;
  top: 0;
  position: absolute;
  content: "";
  border-radius: 50%;
  -webkit-transition: .3s all ease;
  -o-transition: .3s all ease;
  transition: .3s all ease;
  background-color: #d6d6d6;
}

.testimonial-slider-wrap .tns-nav button:hover:before,
.testimonial-slider-wrap .tns-nav button.tns-nav-active:before {
  background-color: #3b5d50;
}

.before-footer-section {
  padding: 7rem 0 12rem 0 !important;
}

.blog-section {
  padding-top: clamp(0.75rem, 2vw, 2.5rem);
  padding-bottom: clamp(1.25rem, 3vw, 4rem);
}



.blog-section .post-entry a {
  text-decoration: none;
}

.blog-section .post-entry .post-thumbnail {
  display: block;
  margin-bottom: 10px;
}

.blog-section .post-entry .post-thumbnail img {
  border-radius: 20px;
  -webkit-transition: .3s all ease;
  -o-transition: .3s all ease;
  transition: .3s all ease;
}

.blog-section .post-entry .post-content-entry {
  padding-left: 15px;
  padding-right: 15px;
}

.blog-section .post-entry .post-content-entry h3 {
  font-size: 16px;
  margin-bottom: 0;
  font-weight: 600;
  margin-bottom: 7px;
}

.blog-section .post-entry .post-content-entry .meta {
  font-size: 14px;
}

.blog-section .post-entry .post-content-entry .meta a {
  font-weight: 600;
}

.blog-section .post-entry:hover .post-thumbnail img,
.blog-section .post-entry:focus .post-thumbnail img {
  opacity: .7;
}

.footer-section {
  padding: 50px 0;
  background: #ffffff;
}

.footer-section .relative {
  position: relative;
}

.footer-section a {
  text-decoration: none;
  color: #2f2f2f;
  -webkit-transition: .3s all ease;
  -o-transition: .3s all ease;
  transition: .3s all ease;
}

.footer-section a:hover {
  color: rgba(47, 47, 47, 0.5);
}

.footer-section .subscription-form {
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
  margin-top: 100px;
}

@media (min-width: 992px) {
  .footer-section .subscription-form {
    margin-top: 0px;
    margin-bottom: 80px;
  }
}

.footer-section .subscription-form h3 {
  font-size: 18px;
  font-weight: 500;
  color: #3b5d50;
}

.footer-section .subscription-form .form-control {
  height: 50px;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
}

.footer-section .subscription-form .form-control:active,
.footer-section .subscription-form .form-control:focus {
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  border-color: #3b5d50;
  -webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
}

.footer-section .subscription-form .form-control::-webkit-input-placeholder {
  font-size: 14px;
}

.footer-section .subscription-form .form-control::-moz-placeholder {
  font-size: 14px;
}

.footer-section .subscription-form .form-control:-ms-input-placeholder {
  font-size: 14px;
}

.footer-section .subscription-form .form-control:-moz-placeholder {
  font-size: 14px;
}

.footer-section .subscription-form .btn {
  border-radius: 10px !important;
}

.footer-section .sofa-img {
  position: absolute;
  top: -200px;
  z-index: 1;
  right: 0;
}

.footer-section .sofa-img img {
  max-width: 380px;
}

.footer-section .links-wrap {
  margin-top: 0px;
}

@media (min-width: 992px) {
  .footer-section .links-wrap {
    margin-top: 54px;
  }
}

.footer-section .links-wrap ul li {
  margin-bottom: 10px;
}

.footer-section .footer-logo-wrap .footer-logo {
  font-size: 32px;
  font-weight: 500;
  text-decoration: none;
  color: #3b5d50;
}

.footer-section .custom-social li {
  margin: 2px;
  display: inline-block;
}

.footer-section .custom-social li a {
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  display: inline-block;
  background: #dce5e4;
  color: #3b5d50;
  border-radius: 50%;
}

.footer-section .custom-social li a:hover {
  background: #3b5d50;
  color: #ffffff;
}

.footer-section .border-top {
  border-color: #dce5e4;
}

.footer-section .border-top.copyright {
  font-size: 14px !important;
}

.untree_co-section {
  padding: 7rem 0;
}

.form-control {
  height: 50px;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
}

.form-control:active,
.form-control:focus {
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  border-color: #3b5d50;
  -webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
}

.form-control::-webkit-input-placeholder {
  font-size: 14px;
}

.form-control::-moz-placeholder {
  font-size: 14px;
}

.form-control:-ms-input-placeholder {
  font-size: 14px;
}

.form-control:-moz-placeholder {
  font-size: 14px;
}

.service {
  line-height: 1.5;
}

.service .service-icon {
  border-radius: 10px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 50px;
  flex: 0 0 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: #3b5d50;
  margin-right: 20px;
  color: #ffffff;
}

textarea {
  height: auto !important;
}

.site-blocks-table {
  overflow: auto;
}

.site-blocks-table .product-thumbnail {
  width: 200px;
}

.site-blocks-table .btn {
  padding: 2px 10px;
}

.site-blocks-table thead th {
  padding: 30px;
  text-align: center;
  border-width: 0px !important;
  vertical-align: middle;
  color: rgba(0, 0, 0, 0.8);
  font-size: 18px;
}

.site-blocks-table td {
  padding: 20px;
  text-align: center;
  vertical-align: middle;
  color: rgba(0, 0, 0, 0.8);
}

.site-blocks-table tbody tr:first-child td {
  border-top: 1px solid #3b5d50 !important;
}

.site-blocks-table .btn {
  background: none !important;
  color: #000000;
  border: none;
  height: auto !important;
}

.site-block-order-table th {
  border-top: none !important;
  border-bottom-width: 1px !important;
}

.site-block-order-table td,
.site-block-order-table th {
  color: #000000;
}

.couponcode-wrap input {
  border-radius: 10px !important;
}

.text-primary {
  color: #3b5d50 !important;
}

.thankyou-icon {
  position: relative;
  color: #3b5d50;
}

.thankyou-icon:before {
  position: absolute;
  content: "";
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(59, 93, 80, 0.2);
}



/* ==== Modern Category UI (เฉพาะบล็อกนี้) ==== */
:root {
  --buy: #0ea5ff;
  /* ปุ่มซื้อ */
  --buy2: #2563eb;
  --ink: #1f2937;
  --muted: #6b7280;
  --border: #e8eeec;
  --accent: #f9bf29;
}

/* พื้นหลัง section */
#categories {
  background: linear-gradient(180deg, #f8faf9, #eef2f1);
  border-top: 1px solid #e9eeec;
  border-bottom: 1px solid #e9eeec;
}

/* Sidebar */
.cat-sidebar {
  border-radius: 20px;
  background: rgba(255, 255, 255, .58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
  overflow: hidden;
}

@media (min-width:992px) {
  .cat-sidebar {
    position: sticky;
    top: 88px;
  }
}

.cat-sidebar .list-group-item {
  border: 0;
  padding: .9rem 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 650;
  color: #2c3130;
  border-left: 3px solid transparent;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}

.cat-sidebar .list-group-item:hover {
  background: rgba(0, 0, 0, .035);
  transform: translateX(2px);
}

.cat-sidebar .list-group-item.active {
  color: var(--ink);
  background: linear-gradient(90deg, rgba(249, 191, 41, .18), rgba(249, 191, 41, .08));
  border-left-color: var(--accent);
}

/* การ์ดหมวดมาตรฐาน */
.cat-card {
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  transition: transform .18s ease, box-shadow .18s ease;
  padding: 1rem !important;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .10);
}

.cat-thumb {
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(110% 120% at 50% 10%, #fff 30%, #f5f7f6);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-thumb img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  filter: grayscale(25%);
  transition: transform .28s ease, filter .28s ease;
}

.cat-card:hover .cat-thumb img {
  transform: scale(1.04);
  filter: none;
}

.cat-card h6 {
  font-weight: 800;
  color: var(--ink);
  font-size: 1rem;
  margin: .35rem 0 .25rem;
}

.cat-card h6::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: .35rem auto 0;
}

/* การ์ดเด่นแบบสินค้า */
.product-card.standout {
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.product-card.standout:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .12);
}

.product-card .product-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, #f6fbff, #eef4ff);
}

.product-card .product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.03);
}

.product-card .badge.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  font-size: .7rem;
  padding: .25rem .6rem;
}

.product-card .title {
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

.product-card .specs {
  color: var(--muted);
  font-size: .92rem;
}

.product-card .price-old {
  color: #9ca3af;
  text-decoration: line-through;
}

.product-card .warranty {
  color: #374151;
  white-space: nowrap;
}

.product-card .badge.circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-weight: 800;
  background: #e6f4ff;
  color: #1d4ed8;
  font-size: .7rem;
  margin-left: .35rem;
}

.product-card .btn-buy {
  border: none;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .2px;
  padding: .9rem 1.1rem;
  color: #fff;
  background: linear-gradient(90deg, var(--buy), var(--buy2));
}

.product-card .btn-buy:hover {
  filter: brightness(.96);
}

.product-card .meta .meta-link {
  font-size: .9rem;
  color: #4b5563;
  text-decoration: none;
}

.product-card .meta .meta-link:hover {
  color: #111827;
}

/* gutter จอเล็กให้กะทัดรัด */
@media (max-width:575.98px) {

  #categories .row.g-3,
  #categories .row.g-3>* {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
  }
}

/* ติดต่อ */

.contact-card .icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(249, 191, 41, .18);
  color: #b47a00;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
}

.map-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
  aspect-ratio: 16/9;
  background: #f4f6f5;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

#contact .card {
  border-radius: 18px;
}

#contact .form-control,
#contact .form-select {
  border-radius: 12px;
  border-color: #e8eeec;
}

#contact .form-control:focus,
#contact .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(249, 191, 41, .25);
}

.btn-accent {
  background: var(--accent);
  border: 0;
  color: #222;
  font-weight: 700;
  padding: .75rem 1rem;
  border-radius: 12px;
}

.btn-accent:hover {
  filter: brightness(.95);
  color: #da6601;
}

.product-thumb {
  cursor: zoom-in;
  overflow: hidden;
  border-radius: .5rem;
}

.product-thumb .thumb-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .3s ease, filter .3s ease;
}

.product-thumb:hover .thumb-img {
  transform: scale(1.05);
  filter: brightness(0.95);
}

/* =========================
   Blog Detail — Full Control
   Scope: .page-blog-detail
   ========================= */

/* ปรับตัวแปรเสริม (ใช้โทนเดิมของคุณ) */
:root {
  --ink: #1f2937;
  --muted: #6b7280;
  --border: #e8eeec;
  --accent: #f9bf29;
}

/* ---------- HERO (ส่วนบนบทความ) ---------- */
.page-blog-detail .article-hero {
  background: #f7f7f7;
  padding-top: clamp(1.25rem, 3vw, 3rem);
  padding-bottom: clamp(1.25rem, 3vw, 3rem);
  border-bottom: 1px solid var(--border);
}

.page-blog-detail .breadcrumb {
  --bs-breadcrumb-divider: "›";
  font-size: 12px;
}

.page-blog-detail .breadcrumb a {
  color: #7a7a7a;
  text-decoration: none;
}

.page-blog-detail .breadcrumb a:hover {
  color: #111;
}

.page-blog-detail .article-hero h1 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: .25rem;
}

.page-blog-detail .article-hero .text-muted.small {
  color: var(--muted) !important;
}

.page-blog-detail .article-hero img {
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- TOC (สารบัญ) ---------- */
.page-blog-detail .toc-sticky {
  top: 90px;
}

@media (max-width: 991.98px) {
  .page-blog-detail .toc-sticky {
    position: static !important;
    top: auto;
  }
}

.page-blog-detail .toc-sticky .card {
  border: 1px solid var(--border);
  border-radius: 14px;
}

.page-blog-detail .toc-sticky .card-body {
  padding: 1rem 1rem;
}

.page-blog-detail .toc-sticky h2 {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.page-blog-detail .toc-sticky ol {
  padding-left: 1.1rem;
}

.page-blog-detail .toc-sticky a {
  color: #444;
  text-decoration: none;
}

.page-blog-detail .toc-sticky a:hover {
  color: #111;
  text-decoration: underline;
}

/* ---------- เนื้อหาบทความ ---------- */
.page-blog-detail .article-content {
  /* ระยะรอบเนื้อหา */
}

.page-blog-detail .article-content .content {
  font-size: 15px;
  line-height: 1.9;
  color: #34424a;
}

.page-blog-detail .article-content h2 {
  font-size: clamp(18px, 2.3vw, 24px);
  font-weight: 800;
  color: var(--ink);
  margin: 1.25rem 0 .5rem;
}

.page-blog-detail .article-content h3 {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  color: var(--ink);
  margin: 1rem 0 .5rem;
}

.page-blog-detail .article-content p {
  margin: .5rem 0;
}

.page-blog-detail .article-content ul,
.page-blog-detail .article-content ol {
  margin: .25rem 0 .75rem 0;
}

.page-blog-detail .article-content li {
  margin: .25rem 0;
}

.page-blog-detail .article-content img {
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  margin: .5rem 0 1rem 0;
}

/* ตาราง */
.page-blog-detail .article-content .table {
  border-color: var(--border);
  font-size: 14px;
}

.page-blog-detail .article-content .table thead th {
  background: #f5f7f6;
  color: #2f2f2f;
  border-color: var(--border) !important;
}

.page-blog-detail .article-content .table tbody td {
  border-color: var(--border) !important;
}

/* blockquote */
.page-blog-detail .article-content blockquote {
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, rgba(249, 191, 41, .12), rgba(249, 191, 41, .04));
  padding: .75rem 1rem;
  border-radius: 8px;
  color: #444;
}

/* code/pre (เผื่อมีโค้ด) */
.page-blog-detail .article-content code {
  background: #f4f6f5;
  padding: .1rem .35rem;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
}

.page-blog-detail .article-content pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 10px;
  overflow: auto;
}

/* แท็ก */
.page-blog-detail .tag-badge {
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: .25rem .6rem;
}

/* ---------- ปุ่มแชร์ ---------- */
.page-blog-detail .share-group {
  gap: .5rem;
}

.page-blog-detail .share-group .btn {
  --bs-btn-padding-y: .25rem;
  --bs-btn-padding-x: .6rem;
  --bs-btn-font-size: .85rem;
  border-radius: 999px;
}

.page-blog-detail .share-group .btn-outline-secondary {
  border-color: var(--border);
  color: #444;
  background: #fff;
}

.page-blog-detail .share-group .btn-outline-secondary:hover {
  background: #f5f7f6;
  color: #111;
}

/* ---------- Prev / Next ---------- */
.page-blog-detail .prevnext .box {
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.page-blog-detail .prevnext .box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

/* ---------- Related ---------- */
.page-blog-detail .related .card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.page-blog-detail .related .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
}

.page-blog-detail .related .card-img-top {
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ---------- ฟอร์มคอมเมนต์ ---------- */
.page-blog-detail form .form-control {
  border-radius: 12px;
  border-color: var(--border);
}

.page-blog-detail form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(249, 191, 41, .25);
}

.page-blog-detail form .btn-primary {
  background: #3b5d50;
  border-color: #3b5d50;
  border-radius: 12px;
  font-weight: 800;
}

/* ---------- ระยะ-ตอบสนอง ---------- */
.page-blog-detail main.container {
  margin-top: clamp(1rem, 2.5vw, 2.25rem);
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}

@media (max-width: 575.98px) {
  .page-blog-detail .article-hero {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .page-blog-detail .article-hero img {
    border-radius: 12px;
  }
}

/* ====== Blog Detail: 2-Image Grid & Media ====== */
.page-blog-detail .img-grid {
  display: grid;
  gap: 12px;
  margin: .5rem 0 1rem;
}

.page-blog-detail .img-grid.img-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 575.98px) {
  .page-blog-detail .img-grid.img-2 {
    grid-template-columns: 1fr;
  }
}

.page-blog-detail figure.media {
  margin: 0;
}

.page-blog-detail figure.media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  object-fit: cover;
  aspect-ratio: 4/3;
  /* ถ้ารูปแนวนอน จะจัดสัดส่วนสวยขึ้น */
}

.page-blog-detail figure.media figcaption {
  font-size: .85rem;
  color: #6b7280;
  /* var(--muted) */
  margin-top: .35rem;
}

/* =========================
   Blog Detail — Fancy Title
   ========================= */
:root {
  --ink: #1f2937;
  --muted: #6b7280;
  --accent: #f9bf29;
}

/* หัวข้อพิเศษ fx-title */
.page-blog-detail .fx-title {
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.15;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: .2px;
  margin: .5rem 0 .75rem;
  position: relative;
}

/* เส้นไฮไลต์ใต้หัวข้อแบบกราเดียนต์ */
.page-blog-detail .fx-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  border-radius: 4px;
  margin-top: .55rem;
  background: linear-gradient(90deg, var(--accent), #ffd36b 60%, transparent);
}

/* คำที่อยากเน้นด้วยตัวหนังสือไล่สี */
.page-blog-detail .fx-title .grad {
  background: linear-gradient(90deg, #06b6d4, #3b82f6 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ลดแอนิเมชัน/แสงสำหรับผู้ใช้ที่ไม่ต้องการ motion */
@media (prefers-reduced-motion: reduce) {
  .page-blog-detail .fx-title {
    transition: none;
  }
}

/* === HERO: force background image === */
.hero.hero--home{
  /* ใช้ shorthand ครบชุด + !important เพื่อชนะ .hero ที่ใช้ background: */
  background: #3b5d50 url('/images/banner.webp') center / cover no-repeat !important;
  min-height: 70vh; /* กันความสูงหด */
}

/* มือถือ (≤576px) ใช้ภาพอีกไฟล์ */
@media (max-width: 576px){
  .hero.hero--home{
    background: #3b5d50 url('/images/banner2.webp') center / cover no-repeat !important;
  }
}

