@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
@import "tailwindcss";

@font-face {
  font-family: "DB Helvethaica X Bd Cond H";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Bd Cond H.ttf")
    format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Bd Cond";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Bd Cond.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Bd Ext";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Bd Ext.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Bd It";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Bd It.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Bd";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Bd.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Blk Cond It";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Blk Cond It.ttf")
    format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Blk Cond";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Blk Cond.ttf")
    format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Blk Ext";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Blk Ext.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Blk It";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Blk It.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Blk";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Blk.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Ext It";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Ext It.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Ext";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Ext.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X It";
  src: url("/assets/fonts/DBHX/DB Helvethaica X It.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Li Cond It";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Li Cond It.ttf")
    format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Li Cond";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Li Cond.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Li Ext It";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Li Ext It.ttf")
    format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Li Ext";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Li Ext.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Li It";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Li It.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Li";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Li.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Med Cond It";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Med Cond It.ttf")
    format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Med Cond";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Med Cond.ttf")
    format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Med Ext It";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Med Ext It.ttf")
    format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Med Ext";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Med Ext.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Med It";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Med It.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Med";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Med.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Thin Cond It";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Thin Cond It.ttf")
    format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Thin Cond";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Thin Cond.ttf")
    format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Thin Ext It";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Thin Ext It.ttf")
    format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Thin Ext";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Thin Ext.ttf")
    format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Thin It";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Thin It.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Thin";
  src: url("/assets/fonts/DBHX/DB Helvethaica X Thin.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X ULit Cond";
  src: url("/assets/fonts/DBHX/DB Helvethaica X ULit Cond.ttf")
    format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X ULit Ext It";
  src: url("/assets/fonts/DBHX/DB Helvethaica X ULit Ext It.ttf")
    format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X ULit Ext";
  src: url("/assets/fonts/DBHX/DB Helvethaica X ULit Ext.ttf")
    format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X ULit It";
  src: url("/assets/fonts/DBHX/DB Helvethaica X ULit It.ttf") format("truetype");
}

/* DB Helvethaica X */
@font-face {
  font-family: "DB Helvethaica X 55 Regular";
  src: url("/assets/fonts/DBHX/DB Helvethaica X v3.2.ttf") format("truetype");
}

@font-face {
  font-family: "DB Helvethaica X Reg";
  src: url("/assets/fonts/DBHX/reg.ttf") format("truetype");
}

/* DB Helvethaica X */

/* ปกติ */
@font-face {
  font-family: "DB Heavent";
  src: url("/assets/fonts/DBH/DB HEAVENT V3.2.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* Bold */
@font-face {
  font-family: "DB Heavent";
  src: url("/assets/fonts/DBH/DB HEAVENT BD V3.2.TTF") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/* Italic */
@font-face {
  font-family: "DB Heavent";
  src: url("/assets/fonts/DBH/DB HEAVENT IT V3.2.TTF") format("truetype");
  font-weight: 400;
  font-style: italic;
}

/* Bold Italic */
@font-face {
  font-family: "DB Heavent";
  src: url("/assets/fonts/DBH/DB HEAVENT BD IT V3.2.TTF") format("truetype");
  font-weight: 700;
  font-style: italic;
}

/* Medium */
@font-face {
  font-family: "DB Heavent";
  src: url("/assets/fonts/DBH/DB HEAVENT MED V3.2.TTF") format("truetype");
  font-weight: 500;
  font-style: normal;
}

/* Thin */
@font-face {
  font-family: "DB Heavent";
  src: url("/assets/fonts/DBH/DB HEAVENT THIN V3.2.TTF") format("truetype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Keep Calm Med";
  src: url("/assets/fonts/keep-calm/KeepCalm-Medium.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

:root {
  --body-font: "DB Helvethaica X 55 Regular", sans-serif;
  --heading-font: "DB Helvethaica X 55 Regular", sans-serif;
}

*,
html,
body {
  font-family: var(--body-font);
}

.roboto-800 {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.roboto-700 {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.roboto-600 {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.roboto-500 {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.roboto-400 {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.roboto-300 {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.roboto-200 {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.db-heavent-300 {
  font-family: "DB Heavent", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.keep-calm-med {
  font-family: "Keep Calm Med", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.db-h-x-med {
  font-family: "DB Helvethaica X Med", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.db-h-x {
  font-family: "DB Helvethaica X 55 Regular", sans-serif;
  font-weight: 400;
}

.db-h-x-ulit {
  font-family: "DB Helvethaica X ULit", sans-serif;
  font-weight: 100;
}

.db-h-x-ulit-ext {
  font-family: "DB Helvethaica X ULit Ext", sans-serif;
  font-weight: 100;
}

.db-h-x-ulit-it {
  font-family: "DB Helvethaica X ULit It", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.db-h-x-ulit-cond {
  font-family: "DB Helvethaica X ULit Cond", sans-serif;
  font-weight: 100;
  font-stretch: condensed;
}

.db-h-x-thin {
  font-family: "DB Helvethaica X Thin", sans-serif;
  font-weight: 200;
}

.db-h-x-thin-it {
  font-family: "DB Helvethaica X Thin It", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.db-h-x-thin-ext {
  font-family: "DB Helvethaica X Thin Ext", sans-serif;
  font-weight: 200;
}

.db-h-x-thin-ext-it {
  font-family: "DB Helvethaica X Thin Ext It", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.db-h-x-thin-cond {
  font-family: "DB Helvethaica X Thin Cond", sans-serif;
  font-weight: 200;
  font-stretch: condensed;
}

.db-h-x-thin-cond-it {
  font-family: "DB Helvethaica X Thin Cond It", sans-serif;
  font-weight: 200;
  font-style: italic;
  font-stretch: condensed;
}

.db-h-x-med {
  font-family: "DB Helvethaica X Med", sans-serif;
  font-weight: 500;
}

.db-h-x-med-it {
  font-family: "DB Helvethaica X Med It", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.db-h-x-med-ext {
  font-family: "DB Helvethaica X Med Ext", sans-serif;
  font-weight: 500;
}

.db-h-x-med-ext-it {
  font-family: "DB Helvethaica X Med Ext It", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.db-h-x-med-cond {
  font-family: "DB Helvethaica X Med Cond", sans-serif;
  font-weight: 500;
  font-stretch: condensed;
}

.db-h-x-med-cond-it {
  font-family: "DB Helvethaica X Med Cond It", sans-serif;
  font-weight: 500;
  font-style: italic;
  font-stretch: condensed;
}

.db-h-x-li {
  font-family: "DB Helvethaica X Li", sans-serif;
  font-weight: 300;
}

.db-h-x-li-it {
  font-family: "DB Helvethaica X Li It", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.db-h-x-li-ext {
  font-family: "DB Helvethaica X Li Ext", sans-serif;
  font-weight: 300;
}

.db-h-x-li-ext-it {
  font-family: "DB Helvethaica X Li Ext It", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.db-h-x-li-cond {
  font-family: "DB Helvethaica X Li Cond", sans-serif;
  font-weight: 300;
  font-stretch: condensed;
}

.db-h-x-li-cond-it {
  font-family: "DB Helvethaica X Li Cond It", sans-serif;
  font-weight: 300;
  font-style: italic;
  font-stretch: condensed;
}

.db-h-x-ext {
  font-family: "DB Helvethaica X Ext", sans-serif;
  font-weight: 400;
}

.db-h-x-ext-it {
  font-family: "DB Helvethaica X Ext It", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.db-h-x-it {
  font-family: "DB Helvethaica X It", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.db-h-x-blk {
  font-family: "DB Helvethaica X Blk", sans-serif;
  font-weight: 800;
}

.db-h-x-blk-it {
  font-family: "DB Helvethaica X Blk It", sans-serif;
  font-weight: 800;
  font-style: italic;
}

.db-h-x-blk-ext {
  font-family: "DB Helvethaica X Blk Ext", sans-serif;
  font-weight: 800;
}

.db-h-x-blk-cond {
  font-family: "DB Helvethaica X Blk Cond", sans-serif;
  font-weight: 800;
  font-stretch: condensed;
}

.db-h-x-blk-cond-it {
  font-family: "DB Helvethaica X Blk Cond It", sans-serif;
  font-weight: 800;
  font-style: italic;
  font-stretch: condensed;
}

.db-h-x-bd {
  font-family: "DB Helvethaica X Bd", sans-serif;
  font-weight: 700;
}

.db-h-x-bd-it {
  font-family: "DB Helvethaica X Bd It", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.db-h-x-bd-ext {
  font-family: "DB Helvethaica X Bd Ext", sans-serif;
  font-weight: 700;
}

.db-h-x-bd-cond {
  font-family: "DB Helvethaica X Bd Cond", sans-serif;
  font-weight: 700;
  font-stretch: condensed;
}

.db-h-x-bd-cond-h {
  font-family: "DB Helvethaica X Bd Cond H", sans-serif;
  font-weight: 700;
  font-stretch: condensed;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

#preloader img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.swiper-pagination-bullet {
  background-color: transparent;
  border: 1px solid white;
  opacity: 1;
  width: 10px;
  height: 10px;
  margin: 0 4px;
}

.swiper-pagination-bullet-active {
  background-color: white !important;
  border-color: white !important;
  opacity: 1 !important;
}

.pagination-bs > .swiper-pagination-bullet {
  background-color: transparent;
  border: 1px solid #ee91cf;
  opacity: 1;
  width: 10px;
  height: 10px;
  margin: 0 4px;
}

.pagination-bs > .swiper-pagination-bullet-active {
  background-color: #ee91cf !important;
  border-color: #ee91cf !important;
  opacity: 1 !important;
}

.selected-color {
  outline: 2px solid #a4778a !important;
  border-radius: 50%;
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgba(164, 119, 138, 0.2);
}

.color-option[data-status="disable"] {
  position: relative;
  overflow: hidden;
  border-radius: 9999px;
}

.color-option[data-status="disable"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background-image: linear-gradient(
    to bottom right,
    transparent calc(50% - 1px),
    white calc(50% - 1px),
    white calc(50% + 1px),
    transparent calc(50% + 1px)
  );
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}

.header-sticky {
  position: fixed !important;
  top: 0;
  width: 100%;
  /* สำคัญมาก: ต้องกำหนดความกว้างให้ 100% ไม่งั้นมันจะหด */
  background-color: black;
  /* กำหนดสีพื้นหลังเริ่มต้น */
  transition: all 0.3s ease-in-out;
  /* ทำให้การเปลี่ยนคุณสมบัติทุกอย่างสมูทขึ้น */
  /* z-index: 1000; */
  /* ทำให้เมนูอยู่เหนือเนื้อหาอื่น ๆ */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  /* เพิ่มเงาเบาๆ ให้ดูมีมิติ */
}

/* ถ้าเปิด search แล้ว header เป็นสีขาว ต้องแน่ใจว่ามันทับ background-color: black ได้ */
.header-sticky.bg-white {
  background-color: white !important;
  /* ใช้ !important ถ้าจำเป็น เพื่อให้แน่ใจว่าทับได้ */
}

/* หาก header ของคุณมี padding หรือ margin ที่ทำให้ตำแหน่งผิดเพี้ยน ให้ปรับใน sticky state */
.header-sticky {
  padding-top: 16px;
  /* หรือค่า padding เดิมที่คุณตั้งไว้ใน header ปกติ */
  padding-bottom: 16px;
  /* margin: 0; */
  /* หากมี margin เดิม ให้เอาออกเมื่อ sticky */
}
.ql-editor {
  min-height: 200px;
}

.shade-item {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  background-color: #f8f9fa;
}

.color-preview {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #dee2e6;
  display: inline-block;
  margin-right: 10px;
}

.image-preview {
  max-width: 100px;
  max-height: 100px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.shade-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.remove-shade-btn {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-container {
  margin-top: 10px;
}

.preview-item {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  position: relative;
}

.preview-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.preview-item .remove-preview {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
}
.gallery-item {
  position: relative;
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
}

.gallery-item .delete-gallery-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item .delete-gallery-btn:hover {
  background: #c82333;
}
