
/* DB Heavent Regular (ครอบคลุมทุกน้ำหนัก) */
@font-face {
  font-family: 'DB Heavent';
  src: url('/fonts/DB Heavent.woff2') format('woff2'),
       url('/fonts/DB Heavent.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  font-synthesis: none;
}

/* DB Heavent Bold */
@font-face {
  font-family: 'DB Heavent';
  src: url('/fonts/DB Heavent Bold.woff2') format('woff2'),
       url('/fonts/DB Heavent Bold.woff') format('woff');
  font-weight: 700; /* Bold */
  font-style: normal;
  font-display: swap;
  font-synthesis: none;
}

/* ใช้ทั้งเว็บ (ไม่มี fallback ตามที่พี่ต้องการ) */
html, body {
  font-family: 'DB Heavent' !important;
}

/* หัวข้อ (ยังสั่งน้ำหนักได้ตามปรกติ) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DB Heavent' !important;
  font-weight: 700;
}


  .font_title {
      font-weight: 700;
      font-size: 16px;
  }


  .col_t {
      flex: 0 0 auto;
      width: 33.33333333%;
  }


  .col_t3 {
      margin-top: 15px;
  }

  .col_t4 {
      margin-top: 15px;
  }



  .btn-light {
      color: #000;
      background-color: #f8f9fa;
      border-color: #f8f9fa;
      font-weight: 600;
  }



  .box_4 {
      margin-top: 25px;
  }


  @media screen and (max-width: 600px) {


      .box_3 {
          margin-top: 25px;
      }


      .box_4 {
          margin-top: -35px;
      }


      .col_t3 {
          margin-top: -25px;
      }

      .col_t4 {
          margin-top: -60px;
      }


      .col_t {
          flex: 0 0 auto;
          width: 50%;
      }

      .main_header {
          margin-top: -33px;
      }

  }

  .badge-primary {
      color: #fff;
      background-color: #007bff;
  }

  .badge-pill {
      padding-right: .6em;
      padding-left: .6em;
      border-radius: 10rem;
  }

  .badge {
      float: inline-start;
      margin-left: 10px;
      /* padding: .25em .4em; */
      font-size: 16px;
      padding-top: 10px;
      padding-bottom: 10px;
      /* padding-left: 26px; */
      /* padding-right: 25px; */
      font-weight: 700;
      line-height: 1;
      text-align: center;
      white-space: nowrap;
      vertical-align: baseline;
      border-radius: 15px;
      transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  }

  .badge-light {
      color: #212529;
      background-color: #f8f9fa;
  }

  .bg-secondary {
      background-color: #6c757d !important;
  }

  .ytp-title-channel {
      display: none !important;

  }

  .center-screen {
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      min-height: 100vh;
  }

  .new_line {
      border-top: 1px dotted #000;
  }

  .youtube-container {
      overflow: hidden;
      width: 100%;
      /* Keep it the right aspect-ratio */
      aspect-ratio: 16/9;
      /* No clicking/hover effects */
      pointer-events: none;
      iframe {
          /* Extend it beyond the viewport... */
          width: 300%;
          height: 100%;
          /* ...and bring it back again */
          margin-left: -100%;
      }
  }

  .image-icon11 {
      width: 326.9px;
      position: relative;
      height: 362px;
      object-fit: cover;
  }

  .timeline-main-container {
      border-left: 5px solid #42510e;
      margin-left: 50px;
  }

  .xyz::before {
      content: "";
      border-radius: 50%;
      height: 20px;
      /* Changed */
      width: 20px;
      /* Changed */
      background-color: #42510e;
      position: absolute;
      /* Added */
      left: -63px;
      /* Added */
  }

  .xyz {
      margin-left: 50px;
      position: relative;
      /* Added */
  }

  .single_product {
      background-color: #fff;
      padding: 10px;
      border-style: solid;
      margin-top: -14px;
      border-color: rgba(0, 0, 0, .09);
  }

  .box_sale_item {
      border-width: 0.4px;
      color: coral !important;
      border-style: solid;
      border-color: coral !important;
      background-color: #fff;
      padding-left: 5px;
      font-size: .625rem;
      margin-left: 5px;
      margin-right: 5px;
  }

  @media only screen and (min-width: 1200px) and (max-width: 1600px) {
      .slider_s_two .single_slider {
          height: 630px !important;
      }
  }

  .sticky {
      color: #000 !important;
  }

  .padding_box_sale {
      padding-left: 0px;
      padding-right: 0px;
  }

  .btn-cart {
      background-color: #FF3300;
      color: #fff;
      font-size: 14px;
      font-weight: 100;
  }

  .img-cart {
      margin-top: -5px;
  }

  .btn-light {
      color: #fff;
      background-color: #FF3300;
      border-color: #FF3300;
      font-weight: 100;
  }

  .btn-light:hover {
      color: #fff;
      background-color: #FF3300;
      border-color: #FF3300;
  }

  .input-qty {
      border-radius: 0px;
      align-content: center;
      color: chocolate;

  }

  .box_mobile_menu {
      margin-top: 34px;
  }

  .nav-link:focus,
  .nav-link:hover {
      color: #000 !important;
  }

  .nav-link {
      color: #000 !important;
  }


  .product_content {
      margin-top: 5px !important;

  }

  .price_box {
      margin-top: 0px !important;
  }

  .label_product2 {
      color: #005825;
      font-size: 18px;
      margin-top: 10px;
      font-weight: 900;
  }


  .bt_red_all {
      font-size: 14px;
      font-weight: 600;
      border: 1px solid;
      padding: 5px;
  }

  .red_all_n {

      color: #005825;
      font-size: 17px;
      font-weight: 900;
      float: inline-end;
  }
  h1,
  .product_name {
      font-weight: 700;
  }

  .single_product {
      background-color: #ffffff;
      border: 1px solid rgba(0, 0, 0, 0.08);
      border-radius: 10px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
      padding: 15px;
      transition: transform 0.2s ease-in-out;
  }

  .single_product:hover {
      transform: translateY(-5px);
  }

  .product_thumb img {
      width: 100%;
      aspect-ratio: 1/1;
      object-fit: cover;
      border-radius: 8px;
  }

  .current_price {
      font-size: 18px;
      color: #FF3300 !important;
      font-weight: 600;
  }

  .product_content {
      margin-top: 10px;
  }

  .bt_red_all {
      font-size: 13px;
      padding: 5px 10px;
      border-radius: 20px;
      background-color: #ffffff;
      border: 1px solid #ff7f50;
      color: #ff7f50;
      margin: 2px;
  }

  .red_all_n {
      float: right;
      color: #005825;
      font-size: 15px;
      font-weight: 600;
  }

  .label_sale {
      background-color: #FF3300;
      color: #fff;
      font-size: 12px;
      padding: 2px 8px;
      border-radius: 20px;
  }

  @media (max-width: 600px) {
      .product_thumb img {
          height: auto;
      }

      .red_all_n {
          float: none;
          display: block;
          text-align: right;
      }
  }


  .product-card {
      background-color: #fff;
      border: 1px solid rgba(0, 0, 0, 0.15);
      /* เพิ่มเส้นขอบสีดำโปร่งแสง 15% */
      border-radius: 10px;
      /* ทำให้ขอบมน (แนะนำให้ใช้คู่กัน) */
      overflow: hidden;
      display: flex;
      flex-direction: column;
      height: 100%;
      transition: all 0.2s ease-in-out;
      /* ทำให้การเปลี่ยนแปลงนุ่มนวล */
  }

  .product-card:hover {
      transform: translateY(-5px);
      /* ทำให้การ์ดลอยขึ้นเล็กน้อย */
      border-color: rgba(0, 0, 0, 0.3);
      /* ทำให้เส้นขอบเข้มขึ้นเมื่อเมาส์ชี้ */
  }

  .product-card-header {
      position: relative;
      text-align: center;
      padding-top: 15px;
      /* เว้นระยะด้านบน */
  }

  .product-card-header .badge {
      position: absolute;
      top: 15px;
      left: 15px;
      background-color: #e0f2f7;
      /* สีพื้นหลังของป้าย "ยอดฮิต" */
      color: #263238;
      /* สีตัวอักษรของป้าย "ยอดฮิต" */
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 18px;
      font-weight: 700;
  }

  .product-card-image img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      /* ปรับขอบรูปให้โค้งมน */
      padding: 0 20px;
      /* เว้นระยะขอบรูปภาพ */
  }

  .product-card-body {
      padding: 15px 20px;
      flex-grow: 1;
      /* ทำให้ส่วนเนื้อหามีความยืดหยุ่น */
      display: flex;
      flex-direction: column;
  }

  .product-card-brand {
      color: #6c757d;
      /* สีเทาสำหรับชื่อแบรนด์ */
      font-size: 16px;
      margin-bottom: 5px;
  }

  .product-card-title {
      font-size: 1.6rem;
      font-weight: 700;
      line-height: 1.4;
      color: #333;
      margin-bottom: 10px;
      flex-grow: 1;
      /* ทำให้ชื่อสินค้าขยายเต็มพื้นที่ */
  }

  .product-card-volume {
      font-size: 1.2rem;
      color: #6c757d;
      /* สีเทาสำหรับปริมาณ */
      margin-bottom: 10px;
  }

  .product-card-price {
      font-size: 28px;
      font-weight: 700;
      color: #333;
      /* สีดำสำหรับราคา */
      margin-bottom: 15px;
  }

  .add-to-cart-btn {
      background-color: #333;
      /* สีปุ่ม "ใส่ตะกร้า" */
      color: #fff;
      border: none;
      padding: 12px 20px;
      border-radius: 30px;
      width: 100%;
      font-size: 22px;
      font-weight: 700;
      cursor: pointer;
      transition: background-color 0.3s ease;
  }

  .add-to-cart-btn:hover {
      background-color: #555;
  }

  /* Responsive adjustments */
  @media (min-width: 768px) {

      /* สำหรับแท็บเล็ตและใหญ่ขึ้น */
      .col-md-6 {
          flex: 0 0 auto;
          width: 50%;
      }
  }

  @media (min-width: 992px) {

      /* สำหรับเดสก์ท็อปและใหญ่ขึ้น */
      .col-lg-4 {
          /* Changed from col-lg-3 to col-lg-4 for 3 columns */
          flex: 0 0 auto;
          width: 33.333333%;
      }
  }

 /* --- Page Header with Image (ปรับปรุงใหม่) --- */
.page-header-with-image {
    background-image: url('https://khunmee.com/resources/img/shop/img_top_shop.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 180px;
    display: flex;
    align-items: center;
    position: relative;
    /* สำคัญ: เพื่อให้ปุ่ม back position absolute ทำงานได้ถูกต้อง */
    padding-left: 100px; /* เพิ่ม padding ด้านซ้ายเพื่อเว้นที่ให้ลูกศร */
}

/* --- ปุ่มย้อนกลับ (สไตล์สำหรับ Desktop) --- */
.back-button {
    position: absolute;
    top: 50%;
    left: 25px; /* ตำแหน่งเดิม */
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out;
    z-index: 10; /* ให้ปุ่มอยู่ด้านบนเสมอ */
}



.back-button:hover {
    transform: translateY(-50%) scale(1.05);
}
.page-title-banner {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0px 3px 6px rgba(0, 0, 0, 0.6);
}

/* --- การปรับปรุงสำหรับ Mobile (หน้าจอเล็กกว่า 768px) --- */
@media (max-width: 767px) {
    .page-header-with-image {
        align-items: flex-end; /* จัดข้อความชิดล่าง */
        padding: 15px; /* เพิ่มระยะห่างรอบๆ */
    }

    /* ย้ายปุ่มไปมุมบนซ้ายสำหรับมือถือ */
    .back-button {
        top: 40px;
        left: 15px;
        transform: none; /* ลบการจัดกลางแนวตั้งออก */
    }

    /* จัดข้อความใหม่สำหรับมือถือ */
    .page-title-banner {
        text-align: left; /* ข้อความชิดซ้าย */
        font-size: 2.2rem; /* ลดขนาดฟอนต์ให้พอดี */
        line-height: 1.2;
    }
}

  .page-title-banner {
      font-size: 3rem;
      /* อาจจะเพิ่มขนาดเล็กน้อยเพื่อให้เด่นขึ้น */
      font-weight: 700;
      /* คงความหนาไว้ */
      color: #fff;
      margin: 0;
      /* เพิ่มบรรทัดนี้เข้ามา */
      text-shadow: 0px 3px 6px rgba(0, 0, 0, 0.6);
      /* สร้างเงาสีดำโปร่งแสง */
  }


  /* --- Filter Buttons (ปรับปรุงใหม่) --- */
  .filter-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      /* จัดให้อยู่กลางแนวตั้ง */
      border-bottom: 1px solid #e0e0e0;
      padding-bottom: 15px;
      gap: 0;
      /* ลบ gap เดิมออก */
      margin-top: 15px;
  }

  .filter-group {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      /* ย้าย gap มาไว้ในกลุ่มแทน */
  }

  .vertical-separator {
      width: 1px;
      /* ความหนาของเส้น */
      height: 24px;
      /* ความสูงของเส้น */
      background-color: #dcdcdc;
      /* สีของเส้น */
      margin: 0 16px;
      /* ระยะห่างซ้ายขวาของเส้น */
  }

  /* --- Filter Buttons (ปรับปรุงใหม่) --- */
  /* สำหรับปุ่ม "เรียงลำดับ & กรอง" ที่ไม่ได้ active */
  .btn-filter {
      border: 1px solid rgba(0, 0, 0, 0.2);
      /* เส้นขอบสีดำโปร่งแสง 20% */
      background-color: transparent;
      /* ไม่มีพื้นหลัง */
      color: #333;
      /* สีตัวอักษร */
      padding: 8px 20px;
      border-radius: 50px;
      text-decoration: none;
             font-size: 20px;
             font-weight: 700;
      transition: all 0.2s ease-in-out;
  }

  /* เมื่อเมาส์ชี้ */
  .btn-filter:hover {
      background-color: rgba(0, 0, 0, 0.05);
      /* พื้นหลังสีเทาจางๆ เมื่อ hover */
      border-color: rgba(0, 0, 0, 0.4);
      /* เส้นขอบเข้มขึ้นเมื่อ hover */
  }

  /* สำหรับปุ่มที่ active อยู่ (เช่น "ทั้งหมด") */
  .btn-filter.active {
      background-color: #333;
      /* พื้นหลังสีดำ */
      color: #fff;
      /* ตัวอักษรสีขาว */
      border-color: #333;
          font-size: 20px;
             font-weight: 700;
      /* เส้นขอบสีดำ */
  }
  .noneBT {
      background-color: #f4f4f4;
      color: #707070;
          font-size: 20px;
             font-weight: 700;
  }

  /* --- Styling for the new subtitle in the banner --- */
.page-subtitle-banner {
    font-size: 1.6rem; /* ขนาดตัวอักษรเล็กกว่าหัวข้อหลัก */
    font-weight: 400;  /* น้ำหนักตัวอักษรปกติ */
    color: #fff;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5); /* เงาเล็กน้อย */
    margin-top: 5px; /* ระยะห่างจากหัวข้อหลัก */
    margin-bottom: 0;
}

/* --- Adjustments for mobile view --- */
@media screen and (max-width: 767px) {
    .page-subtitle-banner {
        font-size: 1.2rem; /* ปรับขนาดสำหรับมือถือ */
        margin-top: 0;
    }
}
/* --- Styling for the new clickable link on product card --- */
.product-info-link {
    text-decoration: none; /* ลบขีดเส้นใต้ของลิงก์ */
    color: inherit;        /* ทำให้สีตัวอักษรเหมือนกับข้อความปกติ */
    display: flex;         /* จัดการ layout ภายในให้ถูกต้อง */
    flex-direction: column;
    flex-grow: 1;          /* ดันราคาและปุ่มลงไปอยู่ข้างล่างสุด */
}

.product-info-link:hover {
    text-decoration: none; /* ไม่ต้องมีขีดเส้นใต้ตอนเอาเมาส์ชี้ */
}