/* Physical Home Care - Minimal Optimized CSS */

/* ===== FONT DECLARATIONS ===== */
@font-face {
  font-family: Kanit;
  font-style: normal;
  font-weight: 400;
  src: url(/fonts/Kanit/kanit-regular/kanit-regular.eot);
  src: url(/fonts/Kanit/kanit-regular/kanit-regular.eot?#iefix) format("embedded-opentype"),
       url(/fonts/Kanit/kanit-regular/kanit-regular.woff2) format("woff2"),
       url(/fonts/Kanit/kanit-regular/kanit-regular.woff) format("woff"),
       url(/fonts/Kanit/kanit-regular/kanit-regular.ttf) format("truetype"),
       url(/fonts/Kanit/kanit-regular/kanit-regular.svg#kanit-regular) format("svg");
}

@font-face {
  font-family: Kanit;
  font-style: normal;
  font-weight: 300;
  src: url(/fonts/Kanit/kanit-light/kanit-light.eot);
  src: url(/fonts/Kanit/kanit-light/kanit-light.eot?#iefix) format("embedded-opentype"),
       url(/fonts/Kanit/kanit-light/kanit-light.woff2) format("woff2"),
       url(/fonts/Kanit/kanit-light/kanit-light.woff) format("woff"),
       url(/fonts/Kanit/kanit-light/kanit-light.ttf) format("truetype"),
       url(/fonts/Kanit/kanit-light/kanit-light.svg#kanit-light) format("svg");
}

@font-face {
  font-family: Kanit;
  font-style: normal;
  font-weight: 500;
  src: url(/fonts/Kanit/kanit-medium/kanit-medium.eot);
  src: url(/fonts/Kanit/kanit-medium/kanit-medium.eot?#iefix) format("embedded-opentype"),
       url(/fonts/Kanit/kanit-medium/kanit-medium.woff2) format("woff2"),
       url(/fonts/Kanit/kanit-medium/kanit-medium.woff) format("woff"),
       url(/fonts/Kanit/kanit-medium/kanit-medium.ttf) format("truetype"),
       url(/fonts/Kanit/kanit-medium/kanit-medium.svg#kanit-medium) format("svg");
}

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #d50000;
  --secondary: #f8991c;
  --success: #3fc643;
  --info: #00c3ff;
  --warning: #ffed4a;
  --danger: #d50000;
  --light: #f8f9fa;
  --dark: #343a40;
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
}

body {
  background-color: #fff;
  color: #212529;
  font-family: Kanit, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

/* ===== LAYOUT & CONTAINER ===== */
.page-content {
  background-color: #fff;
  display: block;
  padding-bottom: 60px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

/* ===== HERO SLIDER ===== */
.hero-header {
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
}

.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  display: none;
}

.hero-slide.is-active {
  display: block;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 100;
  transition: background 0.3s ease;
}

.hero-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-nav-prev {
  left: 10px;
}

.hero-nav-next {
  right: 10px;
}

.hero-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 100;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero-dot.is-active {
  background: rgba(255, 255, 255, 1);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* ===== BUTTON STYLES ===== */
.btn {
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.3rem;
  color: #212529;
  display: inline-block;
  font-family: Kanit, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 0.5rem 1rem;
  text-align: center;
  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;
  user-select: none;
  vertical-align: middle;
  cursor: pointer;
}

.btn:hover {
  color: #212529;
  text-decoration: none;
}

.btn:focus {
  outline: 0;
}

.btn.disabled,
.btn:disabled {
  opacity: 0.65;
}

/* Button Sizes */
.btn-lg {
  border-radius: 0.4rem;
  font-size: 1.25rem;
  line-height: 1.5;
  padding: 0.5rem 1rem;
}

.btn-sm {
  border-radius: 0.2rem;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.25rem 0.5rem;
}

/* Button Colors */
.btn-primary {
  background-color: #d50000;
  border-color: #d50000;
  color: #fff;
}

.btn-primary:hover {
  background-color: #af0000;
  border-color: #a20000;
  color: #fff;
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(213, 0, 0, 0.25);
}

.btn-secondary {
  background-color: #f8991c;
  border-color: #f8991c;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #e78607;
  border-color: #da7f07;
  color: #fff;
}

.btn-secondary:focus {
  box-shadow: 0 0 0 0.2rem rgba(248, 153, 28, 0.5);
}

.btn-success {
  background-color: #3fc643;
  border-color: #3fc643;
  color: #fff;
}

.btn-success:hover {
  background-color: #33ac37;
  border-color: #30a233;
  color: #fff;
}

.btn-info {
  background-color: #00c3ff;
  border-color: #00c3ff;
  color: #fff;
}

.btn-info:hover {
  background-color: #00a6d9;
  border-color: #009ccc;
  color: #fff;
}

.btn-warning {
  background-color: #ffed4a;
  border-color: #ffed4a;
  color: #212529;
}

.btn-warning:hover {
  background-color: #ffe924;
  border-color: #ffe817;
  color: #212529;
}

.btn-danger {
  background-color: #d50000;
  border-color: #d50000;
  color: #fff;
}

.btn-danger:hover {
  background-color: #af0000;
  border-color: #a20000;
  color: #fff;
}

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

.btn-light:hover {
  background-color: #e2e6ea;
  border-color: #dae0e5;
  color: #212529;
}

.btn-dark {
  background-color: #343a40;
  border-color: #343a40;
  color: #fff;
}

.btn-dark:hover {
  background-color: #23272b;
  border-color: #1d2124;
  color: #fff;
}

/* ===== UTILITY CLASSES ===== */
.d-flex {
  display: flex !important;
}

.justify-content-center {
  justify-content: center !important;
}

.gap-sm {
  gap: 0.5rem !important;
}

.w-100 {
  width: 100% !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 0.25rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.my-1 {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}

.text-break {
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

/* ===== CUSTOM COMPONENTS ===== */

/* Product/Content Area */
.product-description {
  word-break: break-word;
}

.product-description iframe {
  height: 390px;
  width: 100%;
}

.part-item {
  height: auto;
  margin: 20px 30px;
  padding: 0;
}

.part-item.desc {
  margin: 20px 0;
  overflow: hidden;
}

.part-item.desc img {
  height: 100%;
  max-width: 100%;
}

.part-item.desc .row img {
  margin-left: 15px;
  margin-right: 15px;
}

.part-item .panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.panel .panel-body {
  padding: 15px 0;
}

.panel .panel-header {
  padding: 15px 0;
}

/* Contact Links */
.contact-links {
  margin: 20px 30px;
}

.linkmessenger,
.linkline,
.linkcall {
  display: inline-block;
  margin-right: 15px;
}

/* Sticky Button Bar */
.btn-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 775px;
  margin: 0 auto;
  padding: 10px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  text-align: center;
  background: white;
  z-index: 1024;
  transition: 0.4s ease;
}

.btn-sticky .btn {
  margin: 2px;
  width: auto;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
}

.btn-sticky .btn-sale-main {
  min-width: 65%;
}

.btn-sticky .bg-markety {
  min-width: 20%;
}

.btn-sticky.stop-stick {
  position: relative !important;
  width: 100%;
  margin-top: 15px;
  padding: 0 7.5px;
}

.sticky-primary {
  background-color: #d50000;
  border-color: #d50000;
  color: #fff;
}

.sticky-secondary {
  background-color: #f8991c;
  border-color: #f8991c;
  color: #fff;
}

/* Markety Background */
.bg-markety {
  background-image: linear-gradient(to bottom right, #d50000, #f8991c);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
}

.bg-markety.active {
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.8);
}

/* Floating Call Button */
.nd1 {
  background: #ffc107;
}

.nds {
  position: fixed;
  bottom: 120px;
  right: 20px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: block;
  line-height: 55px;
  cursor: pointer;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
  transform: scale(0);
  z-index: 300;
  transition: transform 0.3s ease;
}

.nds.nd1 {
  background: #ffc107;
}

#container-floating.show .nds {
  animation: bounce-nds 0.03s linear forwards;
  transform: scale(1);
}

@keyframes bounce-nds {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}

.letter {
  color: #fff;
  font-size: 32px;
  line-height: 55px;
  margin: 0;
  text-align: center;
}

.nds .tooltiptext {
  visibility: visible;
  width: 120px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 3px 0;
  position: absolute;
  z-index: 1;
  line-height: 35px;
  font-size: 12px;
  right: 110%;
  top: 5px;
}

.nds .tooltiptext:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -5px;
  border: 5px solid transparent;
  border-left-color: rgba(0, 0, 0, 0.8);
}

/* Footer */
footer {
  display: block;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .btn-sticky {
    width: 100%;
    padding: 5px;
  }

  .btn-sticky .btn {
    margin: 3px;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .part-item {
    margin: 15px 10px;
  }

  .part-item.desc {
    margin: 15px 0;
  }
}

@media (max-width: 480px) {
  .btn-sticky {
    width: 100%;
  }

  .btn-sticky .btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

  .hero-nav {
    padding: 8px 12px;
    font-size: 18px;
  }
}
