body {
  font-family: 'Poppins', 'IBM Plex Sans Thai', sans-serif;
  font-size: 1em;
  line-height: 24px;
  background-color: var(--c-lightgray);
}
:root {
  --bs-icon-size: 1.25rem;
  --bs-icon-size-xs: 1rem;
  --bs-icon-size-sm: 1.125rem;
  --bs-icon-size-md: 1.375rem;
  --bs-icon-size-lg: 1.5rem;
  --bs-icon-size-xl: 2rem;
  --c-red: #c60017;
  --c-red-active: #a70013;
  --rgb-red: 198, 0, 23;
  --c-lightgray: #f7f8f9;
  --rgb-border: 229, 231, 235;
  --c-green: #22c55e;
  --c-green-active: #0e9d42;
  --rgb-green: 34, 197, 94;
  --c-blue: #1877f2;
  --c-blue-active: #0050b7;
  --rgb-blue: 24, 119, 242;
}
input,
button,
select,
textarea {
  -webkit-appearance: none; /* Required for iOS Safari/Chrome */
  -moz-appearance: none; /* For Firefox */
  appearance: none; /* Standard version */
}
a {
  text-decoration: none;
}
/*-----------------------------------------
    SIZE
-------------------------------------------*/
.fs-10 {
  font-size: 10px;
}
.fs-12 {
  font-size: 12px;
}
.fs-14 {
  font-size: 14px;
}
.h-40px {
  height: 40px;
}
.wh-24px {
  width: 24px;
  height: 24px;
}
.icon-xl,
.icon-xl::before {
  block-size: var(--bs-icon-size-xl);
  font-size: var(--bs-icon-size-xl);
  inline-size: var(--bs-icon-size-xl);
}
.icon-lg,
.icon-lg::before {
  block-size: var(--bs-icon-size-lg);
  font-size: var(--bs-icon-size-lg);
  inline-size: var(--bs-icon-size-lg);
}
.icon-md,
.icon-md::before {
  block-size: var(--bs-icon-size-md);
  font-size: var(--bs-icon-size-md);
  inline-size: var(--bs-icon-size-md);
}
.icon-sm,
.icon-sm::before {
  block-size: var(--bs-icon-size-sm);
  font-size: var(--bs-icon-size-sm);
  inline-size: var(--bs-icon-size-sm);
}
.icon-xs,
.icon-xs::before {
  block-size: var(--bs-icon-size-xs);
  font-size: var(--bs-icon-size-xs);
  inline-size: var(--bs-icon-size-xs);
}

/*-----------------------------------------
    ELEMENT
-------------------------------------------*/
.object-cover {
  object-fit: cover;
}
.object-contain {
  object-fit: contain;
}
.promotion-image-frame {
  background-color: #f6f7f9;
}
.pdtop40px {
  padding-top: 40px;
}
.pdtop80px {
  padding-top: 80px;
}
.list-icon {
  list-style: none;
  padding-left: 0;
}
.list-icon i {
  font-size: 20px;
  line-height: 28px;
  margin-right: 5px;
}
.border-dashed {
  border-style: dashed;
}
.box-brand {
  border-radius: 100%;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(var(--rgb-border), 1);
  margin: 5px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.box-brand img {
  object-fit: contain;
  width: 60px;
  height: 40px;
}
.banner-img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  border-radius: 25px;
}
.squareR-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(var(--rgb-squareRicon), 0.2);
  block-size: 40px;
  color: var(--c-squareRicon);
  inline-size: 40px;
  margin-inline-end: 1rem;
  font-size: 24px;
}
.squareR-icon.sqr-80 {
  block-size: 80px;
  inline-size: 80px;
  font-size: 44px;
}
.squareR-icon.sqr-60 {
  block-size: 60px;
  inline-size: 60px;
  font-size: 24px;
}
.squareR-icon.sqr-ic-r {
  --c-squareRicon: var(--c-red);
  --rgb-squareRicon: var(--rgb-red);
}
.squareR-icon.sqr-ic-blue {
  --c-squareRicon: var(--c-blue);
  --rgb-squareRicon: var(--rgb-blue);
  fill: var(--c-blue);
}
.squareR-icon.sqr-ic-w {
  --c-squareRicon: #fff;
  --rgb-squareRicon: 255, 255, 255;
}
.squareR-icon.sqr-ic-g {
  --c-squareRicon: #22c55e;
  --rgb-squareRicon: 34, 197, 94;
  fill: var(--c-green);
}
.squareR-icon.sqr-ic-b {
  --c-squareRicon: #000000;
  --rgb-squareRicon: 0, 0, 0;
}
.squareR-icon.sqr-ic-gray {
  --c-squareRicon: #7c7c7c;
  --rgb-squareRicon: 124, 124, 124;
}

.input-password {
  position: relative;
}
.input-password i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}
.sig-canvas {
  width: 100%;
  height: 180px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

.sig-canvas.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sig-image {
  max-width: 100%;
  width: 100%;
  height: 80px;
  object-fit: contain;
  border-radius: 10px;
}
.signature-preview {
  height: 97px;
}
/*-----------------------------------------
    COLOR Style
-------------------------------------------*/
.text-red {
  color: var(--c-red) !important;
}
.text-green {
  color: var(--c-green);
}
.text-blue {
  color: var(--c-blue);
}
.bg-red {
  background-color: var(--c-red);
}
.bg-red-50 {
  --bg-opacity: 0.05;
  background-color: rgba(var(--rgb-red), var(--bg-opacity));
}
.bg-red-100 {
  --bg-opacity: 0.1;
  background-color: rgba(var(--rgb-red), var(--bg-opacity));
}
.bg-green {
  background-color: var(--c-green);
}
.bg-green-50 {
  --bg-opacity: 0.05;
  background-color: rgba(var(--rgb-green), var(--bg-opacity));
}
.bg-blue {
  background-color: var(--c-blue);
}
.bg-lightgray {
  background-color: var(--c-lightgray);
}
.border-red {
  --bs-border-color: var(--c-red);
}
.bg-white-op10 {
  background-color: rgba(255, 255, 255, 0.1);
}
/*-----------------------------------------
    BUTTON
-------------------------------------------*/
.linkAccount .nav-item {
  margin-bottom: 10px;
}
.linkAccount .nav-link {
  color: black;
  background-color: #f2f3f8;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 12px;
}
.linkAccount .nav-link:hover {
  color: white;
  background-color: var(--c-red-active);
}
.linkAccount .nav-link i {
  font-size: 24px;
  line-height: 24px;
  margin-right: 10px;
}
.linkAccount .nav-link.active {
  color: white;
  background-color: var(--c-red);
}
.linkAccount .nav-link.active:hover {
  color: white;
  background-color: var(--c-red-active);
}
.btn i {
  --bs-icon-size-xs: 1.25rem;
  line-height: 1;
  vertical-align: middle;
  block-size: var(--bs-icon-size-xs);
  font-size: var(--bs-icon-size-xs);
  inline-size: var(--bs-icon-size-xs);
}
.btn-link {
  --bs-link-color: var(--c-red);
  --bs-link-hover-color: var(--c-red-active);
  --bs-btn-font-weight: 600;
  --bs-btn-color: var(--bs-link-color);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--bs-link-hover-color);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: var(--bs-link-hover-color);
  --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-color: #6c757d;
  --bs-btn-disabled-border-color: transparent;
  --bs-btn-box-shadow: 0 0 0 #000;
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  text-decoration: none;
}
.btn-icon {
  --bs-border-width: 1px;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  block-size: calc(2.2514625rem + calc(var(--bs-border-width) * 2));
  font-size: 1.2890625rem;
  inline-size: calc(2.2514625rem + calc(var(--bs-border-width) * 2));
}
.btn-big {
  --bs-btn-padding-x: 2rem;
  --bs-btn-padding-y: 1rem;
  --bs-btn-font-size: 1rem;
  --bs-btn-font-weight: 600;
  --bs-btn-line-height: 1.5;
  --bs-btn-border-radius: 12px;
}
.btn-red {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--c-red);
  --bs-btn-border-color: var(--c-red);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--c-red-active);
  --bs-btn-hover-border-color: var(--c-red-active);
  --bs-btn-focus-shadow-rgb: 211, 212, 213;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--c-red-active);
  --bs-btn-active-border-color: var(--c-red-active);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: #f2f2f2;
  --bs-btn-disabled-border-color: #f2f2f2;
  box-shadow: 0 0.125rem 0.375rem rgba(var(--rgb-red), 0.3);
}
.btn-green {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--c-green);
  --bs-btn-border-color: var(--c-green);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--c-green-active);
  --bs-btn-hover-border-color: var(--c-green-active);
  --bs-btn-focus-shadow-rgb: 34, 197, 94;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--c-green-active);
  --bs-btn-active-border-color: var(--c-green-active);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: #f2f2f2;
  --bs-btn-disabled-border-color: #f2f2f2;
  box-shadow: 0 0.125rem 0.375rem rgba(var(--rgb-green), 0.3);
  fill: white;
}
.btn-blue {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--c-blue);
  --bs-btn-border-color: var(--c-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--c-blue-active);
  --bs-btn-hover-border-color: var(--c-blue-active);
  --bs-btn-focus-shadow-rgb: 24, 119, 242;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--c-blue-active);
  --bs-btn-active-border-color: var(--c-blue-active);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: #f2f2f2;
  --bs-btn-disabled-border-color: #f2f2f2;
  box-shadow: 0 0.125rem 0.375rem rgba(var(--rgb-blue), 0.3);
  fill: white;
}
.btn-black {
  --bs-btn-color: #fff;
  --bs-btn-bg: #000;
  --bs-btn-border-color: #000;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1f1f1f;
  --bs-btn-hover-border-color: #1f1f1f;
  --bs-btn-focus-shadow-rgb: 211, 212, 213;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #1f1f1f;
  --bs-btn-active-border-color: #1f1f1f;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: #f2f2f2;
  --bs-btn-disabled-border-color: #f2f2f2;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.3);
}
.btn-whiteR {
  --bs-btn-color: var(--c-red);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--c-red);
  --bs-btn-hover-bg: #f1f1f1;
  --bs-btn-hover-border-color: #e9e7e7;
  --bs-btn-focus-shadow-rgb: 211, 212, 213;
  --bs-btn-active-color: var(--c-red);
  --bs-btn-active-bg: #e9e7e7;
  --bs-btn-active-border-color: #f1f1f1;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: #f2f2f2;
  --bs-btn-disabled-border-color: #f2f2f2;
}
.btn-redB {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--c-red);
  --bs-btn-border-color: rgba(255, 255, 255, 0.2);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--c-red-active);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.2);
  --bs-btn-focus-shadow-rgb: 211, 212, 213;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--c-red-active);
  --bs-btn-active-border-color: var(--c-red);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: #f2f2f2;
  --bs-btn-disabled-border-color: #f2f2f2;
}
.btn-outline-red {
  --bs-btn-color: var(--c-red);
  --bs-btn-border-color: var(--c-red);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--c-red);
  --bs-btn-hover-border-color: var(--c-red);
  --bs-btn-focus-shadow-rgb: 220, 53, 69;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--c-red-active);
  --bs-btn-active-border-color: var(--c-red-active);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: var(--c-red);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--c-red);
  --bs-gradient: none;
  border-width: 2px;
  font-weight: 600;
}
.btn-outline-white {
  --bs-btn-color: #000;
  --bs-btn-border-color: #d9d9d9;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #f1f1f1;
  --bs-btn-hover-border-color: #f1f1f1;
  --bs-btn-focus-shadow-rgb: 220, 53, 69;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #d9d9d9;
  --bs-btn-active-border-color: #d9d9d9;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #d9d9d9;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #d9d9d9;
  --bs-gradient: none;
  font-weight: 600;
}
.btn-option {
  --bs-btn-color: #000;
  --bs-btn-border-color: rgba(217, 217, 217, 1);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #dc3545;
  --bs-btn-hover-border-color: #dc3545;
  --bs-btn-focus-shadow-rgb: 220, 53, 69;
  --bs-btn-active-color: var(--c-red);
  --bs-btn-active-bg: rgba(var(--rgb-red), 0.2);
  --bs-btn-active-border-color: var(--c-red);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: rgba(217, 217, 217, 1);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: rgba(217, 217, 217, 1);
  --bs-gradient: none;
  --bs-btn-padding-x: 20px;
  --bs-btn-padding-y: 11px;
  border-width: 2px;
  font-weight: 600;
}
.btn-option[for^='down'],
.btn-option[for^='term'] {
  border-radius: 8px;
}
.btn-check:checked + .btn {
  border-width: 2px;
}
.btn-swatch {
  --bs-btn-color: #000;
  --bs-btn-border-color: rgba(217, 217, 217, 1);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #dc3545;
  --bs-btn-hover-border-color: #dc3545;
  --bs-btn-focus-shadow-rgb: 220, 53, 69;
  --bs-btn-active-color: var(--c-red);
  --bs-btn-active-bg: rgba(var(--rgb-red), 0.2);
  --bs-btn-active-border-color: var(--c-red);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: rgba(217, 217, 217, 1);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: rgba(217, 217, 217, 1);
  --bs-gradient: none;
  --bs-btn-padding-x: 1px;
  --bs-btn-padding-y: 1px;
  border-width: 2px;
  font-weight: 600;
  border-radius: 100%;
}
.btn-swatch div {
  width: 50px;
  height: 50px;
  border: 2px solid white;
  border-radius: 100%;
}
/*-----------------------------------------
    NAVBAR
-------------------------------------------*/
#topnav {
  --opacity: 1;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(var(--rgb-border), var(--opacity));
}
#topnav .navbar-nav .nav-link.active,
#menuModal .navbar-nav .nav-link.active {
  color: var(--c-red);
}
.breadcrumb {
  --bs-breadcrumb-divider-color: var(--c-red);
}
.navbar-brand {
  font-weight: 600;
  color: var(--c-red);
}
.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--c-red);
}
/*-----------------------------------------
    Footer
-------------------------------------------*/
#footer {
  background-color: #030712;
  color: #9ca3af;
}
#footer .nav-link {
  color: #9ca3af;
}
#footer a.nav-link:hover {
  color: white;
}
/*-----------------------------------------
    CARD style
-------------------------------------------*/
.card {
  --bs-card-border-color: var(--bs-border-color-translucent);
  --bs-border-color-translucent: rgba(217, 217, 217, 0.5);
}
.card-pd30 {
  padding: 30px;
}
.card-pd20 {
  padding: 20px;
}
.card-home-footer {
  background-image: linear-gradient(135deg, var(--c-red), var(--c-red-active));
  color: white;
  text-align: center;
  padding: 110px 200px;
  border-radius: 40px;
}
.card-hover {
  box-shadow: 0 0.1875rem 0.75rem 0 rgba(47, 43, 61, 0);
  transition: box-shadow 0.3s ease-in-out;
}
.card-hover:hover {
  box-shadow: 0 0.1875rem 0.75rem 0 rgba(47, 43, 61, 0.14);
  transition: box-shadow 0.3s ease-in-out;
}
.box-down {
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px dashed var(--c-red);
}
.box-installment {
  border-radius: 10px;
  padding: 8px 10px;
  background-color: rgba(var(--rgb-red), 0.1);
}
/* Price columns size to the actual card width (not the viewport):
   when the card is too narrow for two boxes side by side, they wrap
   and stack vertically instead of squeezing the text. */
.card-product .product-price-row > [class*='col'] {
  display: flex;
  flex: 1 1 100px;
  width: auto;
  min-width: 0;
  max-width: 100%;
}
.card-product .product-price-row .box-down,
.card-product .product-price-row .box-installment {
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.card-product .product-price-row .box-down p,
.card-product .product-price-row .box-installment p {
  min-height: 0;
}
/* inline-block keeps each label word intact so Thai text never breaks
   mid-word into single characters */
.card-product .product-price-label > span {
  display: inline-block;
}
.card-product .product-price-amount,
.card-product .product-price-unit {
  display: inline-block;
}
.card-product .product-price-row .box-down h6,
.card-product .product-price-row .box-installment h6 {
  margin-top: auto;
  padding-top: 2px;
  line-height: 1.25;
}
.card-product {
  padding: 25px;
  background-color: #fff;
  border-radius: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  box-shadow: none;
  transition:
    transform 0.26s ease,
    box-shadow 0.26s ease,
    border-color 0.26s ease;
  will-change: transform;
}
.card-product:hover,
.card-product:focus-within {
  transform: translateY(-6px);
  border-color: rgba(var(--rgb-red), 0.8);
  box-shadow: 0 4px 10px rgba(var(--rgb-red), 0.16);
}
.card-product:active {
  transform: translateY(-2px);
}
.card-product > a {
  display: flex;
  flex-direction: column;
}
.card-product .product-card-copy {
  min-height: 64px;
}
.card-product .product-card-copy h6 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-product .product-price-row {
  margin-top: auto !important;
}
#slideRecommend .owl-stage {
  display: flex;
}
#slideRecommend .owl-item,
#slideRecommend .item {
  display: flex;
}
#slideRecommend .item {
  width: 100%;
}
#slideRecommend .owl-item {
  flex-shrink: 0;
}
#slideRecommend .card-product {
  width: 100%;
}
/* room for the hover lift (top) and its shadow (bottom) inside the
   carousel's overflow: hidden, without shifting the section layout */
#slideRecommend .owl-stage-outer {
  padding-top: 8px;
  margin-top: -8px;
  padding-bottom: 16px;
  margin-bottom: -16px;
}
.box-img-table {
  border-radius: 10px;
  background-color: #fff;
  aspect-ratio: 1/1;
  padding: 15px;
  margin-bottom: 10px;
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(var(--rgb-border), 1);
  box-shadow: inset;
}
.box-img-table img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.card-product .box-image {
  border-radius: 10px;
  background-color: #fff;
  aspect-ratio: 1/1;
  padding: 15px;
  margin-bottom: 10px;
  position: relative;
}
.card-product .box-image .badge-special {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 60px;
}
.card-product .box-image .badge-special > img {
  height: 60px;
}
.card-product .box-image img {
  aspect-ratio: 1/1;
  width: 100%;
  object-fit: contain;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-red);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}
.card-product .box-image .product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-red);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}
.card-product h6 {
  color: black;
}
.card-product:hover h6 {
  color: var(--c-red);
}
.card-promotion .card-title {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 38px;
}
.card-promotion .card-text {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 72px;
}
.card-recent {
  display: flex;
  flex-direction: row;
  gap: 10px;
  border-style: solid;
  border-color: var(--bs-card-border-color);
  border-width: 0 0 1px 0;
  padding: 10px 0;
}
.card-recent img {
  width: 96px;
  aspect-ratio: 16 / 9;
  height: auto;
  flex: 0 0 96px;
  background-color: #f6f7f9;
}
.card-recent .card-title {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 39px;
}
/*-----------------------------------------
    TAB style
-------------------------------------------*/
#pills-tab-register .nav-link {
  border: 1px solid rgba(var(--rgb-border), 1);
  background-color: white;
  color: black;
}
#pills-tab-register .nav-link .squareR-icon {
  --c-squareRicon: #000;
  --rgb-squareRicon: 0, 0, 0;
}
#pills-tab-register .nav-link.active {
  border: 1px solid rgba(var(--rgb-red), 1);
  background-color: var(--c-red);
  color: white;
}
#pills-tab-register .nav-link.active .squareR-icon {
  --c-squareRicon: #fff;
  --rgb-squareRicon: 255, 255, 255;
}
#pills-tab-table,
.tab-pills-filter {
  gap: 10px;
  margin-bottom: 0 !important;
}
#pills-tab-table .nav-link,
.tab-pills-filter .nav-link {
  border: 1px solid rgba(var(--rgb-border), 1);
  background-color: #f2f3f8;
  color: black;
  font-weight: 600;
  border-radius: 10px;
}
#pills-tab-table .nav-link.active,
.tab-pills-filter .nav-link.active {
  border: 1px solid rgba(var(--rgb-red), 0.1);
  background-color: rgba(var(--rgb-red), 0.1);
  color: var(--c-red-active);
}
#pills-tab-table .nav-link:hover,
.tab-pills-filter .nav-link:hover {
  background-color: rgba(var(--rgb-red), 0.1);
  color: black;
}
.tab-red {
  gap: 10px;
}
.tab-red .nav-link {
  border: 1px solid rgba(var(--rgb-border), 1);
  background-color: #fff;
  color: black;
  font-weight: 600;
  border-radius: 10px;
}
.tab-red .nav-link.active {
  border: 1px solid rgba(var(--rgb-red), 0.1);
  background-color: rgba(var(--rgb-red), 1);
  color: white;
}
.tab-red .nav-link:hover {
  background-color: rgba(var(--rgb-red), 0.1);
  color: rgba(var(--rgb-red), 1);
}
/*-----------------------------------------
    Table style
-------------------------------------------*/
.table-red {
  --bs-table-color: #fff;
  --bs-table-bg: var(--c-red);
  --bs-table-border-color: #c75a5a;
  --bs-table-striped-bg: var(--c-red-active);
  --bs-table-striped-color: #fff;
  --bs-table-active-bg: var(--c-red-active);
  --bs-table-active-color: #fff;
  --bs-table-hover-bg: var(--c-red-active);
  --bs-table-hover-color: #fff;
  color: var(--bs-table-color);
  border-color: var(--bs-table-border-color);
}
.table-installment td,
.table-installment th {
  vertical-align: middle;
}
.table-savings td,
.table-savings th {
  vertical-align: middle;
}
/* Keep the four frequency columns (รายวัน/รายสัปดาห์/รายเดือน/แบบตามใจ) the same
   width so auto-layout doesn't shrink รายวัน to fit its shorter text */
.table-savings > tbody > tr > *:not(:first-child) {
  width: 18%;
}
.savings-min-label {
  font-size: 13px;
  color: var(--bs-secondary-color, #6c757d);
  margin-bottom: 2px;
}
.savings-min-value {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
/*-----------------------------------------
    Form style
-------------------------------------------*/
.optionBrand-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.optionBrand-checkbox .img-btn {
  width: calc(100% / 2 - 5px);
}
.img-btn img {
  height: 60px;
  width: 100%;
  object-fit: contain;
  cursor: pointer;
  background-color: white;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
}
.img-btn .brand-image-placeholder {
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: white;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  color: var(--c-red);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}
.img-btn > input {
  display: none;
}
.img-btn > input:checked + img {
  border-color: var(--c-red);
  border-width: 2px;
}
.img-btn > input:checked + .brand-image-placeholder {
  border-color: var(--c-red);
  border-width: 2px;
}
.form-search {
  position: relative;
}
.form-search input {
  padding-left: 34px;
}
.form-search i {
  position: absolute;
  top: 11px;
  left: 10px;
}
.form-check-input:checked {
  background-color: var(--c-red);
  border-color: var(--c-red);
}

:root {
  --card-line-height: 1.2em;
  --card-padding: 1em;
  --card-radius: 0.5em;
  --color-green: #558309;
  --color-gray: #e2ebf6;
  --color-dark-gray: #c4d1e1;
  --radio-border-width: 2px;
  --radio-size: 1.5em;
}
.grid {
  display: grid;
  grid-gap: var(--card-padding);
  margin: 0 auto;
  max-width: 60em;
  padding: 0;
}
@media (min-width: 42em) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-bank {
  background-color: #fff;
  border-radius: var(--card-radius);
  position: relative;
}
.card-bank:hover {
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.15);
}

.radio {
  font-size: inherit;
  margin: 0;
  position: absolute;
  right: calc(var(--card-padding) + var(--radio-border-width));
  top: calc(var(--card-padding) + var(--radio-border-width));
}

@supports (-webkit-appearance: none) or (-moz-appearance: none) {
  .radio {
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    border: var(--radio-border-width) solid var(--color-gray);
    border-radius: 50%;
    cursor: pointer;
    height: var(--radio-size);
    outline: none;
    transition:
      background 0.2s ease-out,
      border-color 0.2s ease-out;
    width: var(--radio-size);
  }
  .radio::after {
    border: var(--radio-border-width) solid #fff;
    border-top: 0;
    border-left: 0;
    content: '';
    display: block;
    height: 0.75rem;
    left: 25%;
    position: absolute;
    top: 50%;
    transform: rotate(45deg) translate(-50%, -50%);
    width: 0.375rem;
  }
  .radio:checked {
    background: var(--c-red);
    border-color: var(--c-red);
  }

  .card-bank:hover .radio {
    border-color: var(--color-dark-gray);
  }
  .card-bank:hover .radio:checked {
    border-color: var(--c-red);
  }
}
.plan-details {
  border: var(--radio-border-width) solid var(--color-gray);
  border-radius: var(--card-radius);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: var(--card-padding);
  transition: border-color 0.2s ease-out;
}

.card-bank:hover .plan-details {
  border-color: var(--color-dark-gray);
}

.radio:checked ~ .plan-details {
  border-color: var(--c-red);
}

.radio:focus ~ .plan-details {
  box-shadow: 0 0 0 2px var(--color-dark-gray);
}

.radio:disabled ~ .plan-details {
  color: var(--color-dark-gray);
  cursor: default;
}

.radio:disabled ~ .plan-details .plan-type {
  color: var(--color-dark-gray);
}

.card-bank:hover .radio:disabled ~ .plan-details {
  border-color: var(--color-gray);
  box-shadow: none;
}

.card-bank:hover .radio:disabled {
  border-color: var(--color-gray);
}

/*-step form style-*/
#msform fieldset {
  background: white;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 20px 20px;
  width: 100%;
  position: relative;
}
/*Hide all except first fieldset*/
#msform fieldset:not(:first-of-type) {
  display: none;
}
/*buttons*/
#msform .action-button.previous {
  background: #e5e7eb;
  font-weight: 600;
  color: black;
  border: 0 none;
  border-radius: 12px;
  cursor: pointer;
  padding: 12px 24px;
  text-decoration: none;
  font-size: 16px;
}
#msform .action-button.next {
  background: black;
  font-weight: 600;
  color: white;
  border: 0 none;
  border-radius: 12px;
  cursor: pointer;
  padding: 12px 24px;
  text-decoration: none;
  font-size: 16px;
}
#msform .action-button {
  background: var(--c-red);
  font-weight: 600;
  color: white;
  border: 0 none;
  border-radius: 12px;
  cursor: pointer;
  padding: 12px 24px;
  text-decoration: none;
  font-size: 16px;
}
/* Hover/focus darkens the fill (backoffice pattern) — no ring. */
#msform .action-button:hover,
#msform .action-button:focus {
  box-shadow: none;
  background: var(--c-red-active);
}
#msform .action-button.next:hover,
#msform .action-button.next:focus {
  background: #2f2f2f;
}
#msform .action-button.previous:hover,
#msform .action-button.previous:focus {
  background: #d6d9de;
}

/*progressbar*/
#progressbar {
  padding-left: 0;
  margin-bottom: 20px;
  overflow: hidden;
  /*CSS counters to number the steps*/
  counter-reset: step;
}
#progressbar.step-register li {
  width: calc(100% / 5);
  font-size: 14px;
}
#progressbar li {
  list-style-type: none;
  color: black;
  font-weight: 500;
  font-size: 16px;
  width: 50%;
  float: left;
  position: relative;
  text-align: center;
}
#progressbar li:before {
  content: counter(step);
  counter-increment: step;
  width: 40px;
  line-height: 40px;
  display: block;
  font-size: 16px;
  color: #333;
  background: #ebebeb;
  border-radius: 100%;
  margin: 0 auto 5px auto;
  z-index: 2;
  position: relative;
}
/*progressbar connectors*/
#progressbar li:after {
  content: '';
  width: 100%;
  height: 2px;
  background: #ebebeb;
  position: absolute;
  left: -50%;
  top: 18px;
  z-index: 1; /*put it behind the numbers*/
}
#progressbar li:first-child:after {
  /*connector not needed before the first step*/
  content: none;
}
/*marking active/completed steps green*/
/*The number of the step and the connector before it = green*/
#progressbar li.active:before,
#progressbar li.active:after {
  background: var(--c-red);
  color: white;
}
.upload-box {
  border: 2px dashed #ccc;
  border-radius: 12px;
  height: 200px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #fafafa;
  margin-top: 10px;
}

.upload-box:hover {
  border-color: var(--c-red);
}

.upload-box .file-input {
  display: none;
}

.upload-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  text-align: center;
}

.upload-placeholder i {
  font-size: 30px;
  margin-bottom: 10px;
  color: #6c757d;
}

.upload-box .title {
  font-weight: 600;
}

.upload-box .desc {
  font-size: 13px;
  color: #6c757d;
}

.preview-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  display: none;
}

.remove-image {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  z-index: 10;
}
/*--------------------------------------
  SLIDE style
  -------------------------------------------*/
.owl-prev,
.owl-next {
  z-index: 2;
}
.owl-prev {
  left: 0 !important;
}
.owl-next {
  right: 0 !important;
}
#slideBrand,
#slideRecommend,
#slideBrand .owl-stage-outer,
#slideRecommend .owl-stage-outer,
#slideBrand .owl-stage,
#slideRecommend .owl-stage,
#slideBrand .owl-item,
#slideRecommend .owl-item,
#slideBrand .item,
#slideRecommend .item {
  cursor: grab;
}
#slideBrand:active,
#slideRecommend:active,
#slideBrand .owl-stage-outer:active,
#slideRecommend .owl-stage-outer:active,
#slideBrand .owl-stage:active,
#slideRecommend .owl-stage:active,
#slideBrand .owl-item:active,
#slideRecommend .owl-item:active,
#slideBrand .item:active,
#slideRecommend .item:active {
  cursor: grabbing;
}
#slideBrand .brand-link,
#slideBrand .brand-link *,
#slideRecommend .card-product a,
#slideRecommend .card-product a * {
  cursor: pointer;
}
#slideBrand.owl-grab,
#slideRecommend.owl-grab,
#slideBrand.owl-grab *,
#slideRecommend.owl-grab * {
  cursor: grabbing !important;
}
#slideBrand .brand-link:hover p {
  color: var(--c-red);
}
#slideBanner .item {
  background-color: var(--c-lightgray);
  min-height: 700px;
  display: flex;
  align-items: center;
}
#slideBanner.owl-theme .owl-dots {
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  padding-left: 0px;
  width: 100%;
  margin-top: 0%;
  z-index: 2;
  position: absolute;
  bottom: 15px;
  left: 15.5%;
}
#slideRecommend.owl-theme .owl-dots {
  text-align: center;
  padding-left: 0px;
  width: 100%;
  margin-top: 8px;
  display: block;
}
#slideBrand .owl-nav,
#slideRecommend .owl-nav,
.slideInstallment .owl-nav {
  opacity: 0;
  transition: opacity 0.3s linear;
}
#slideBrand:hover .owl-nav,
#slideRecommend:hover .owl-nav,
.slideInstallment:hover .owl-nav {
  opacity: 1;
}
#slideBrand .owl-prev,
#slideBrand .owl-next,
#slideRecommend .owl-prev,
#slideRecommend .owl-next,
.slideInstallment.owl-theme .owl-prev,
.slideInstallment.owl-theme .owl-next {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: block !important;
  border: 0px solid black;
  background-color: black !important;
  color: white !important;
}
.slideInstallment.owl-theme .owl-dots {
  text-align: center;
  padding-left: 0px;
  width: 100%;
  margin-top: 0%;
}
#sync1 .item {
  background: #fff;
  padding: 50px;
  margin: 5px;
  color: #fff;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  text-align: center;
  aspect-ratio: 1/1;
  object-fit: contain;
  width: 100%;
}
#sync1 .item img {
  aspect-ratio: 1/1;
  object-fit: contain;
  width: 100%;
}
#sync1 .item .product-image-placeholder,
#sync2 .item .product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-red);
  font-weight: 700;
  letter-spacing: 0.08em;
}
#sync1 .item .product-image-placeholder {
  font-size: clamp(1.75rem, 5vw, 3rem);
}
#sync2 .item {
  background: #fff;
  padding: 20px;
  margin: 0;
  color: #fff;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  text-align: center;
  cursor: pointer;
  aspect-ratio: 1/1;
  object-fit: contain;
  width: 100%;
}
#sync2 .item img {
  aspect-ratio: 1/1;
  object-fit: contain;
  width: 100%;
}
#sync2 .item .product-image-placeholder {
  font-size: clamp(1rem, 2vw, 1.5rem);
}
#sync2 .current .item {
  border: 2px solid var(--c-red);
  background: #fff;
}

#sync1.owl-theme .owl-nav,
#sync2.owl-theme .owl-nav {
  /*default owl-theme theme reset .disabled:hover links */
}
#sync1.owl-theme .owl-nav [class*='owl-'],
#sync2.owl-theme .owl-nav [class*='owl-'] {
  transition: all 0.3s ease;
}
#sync1.owl-theme .owl-nav [class*='owl-'].disabled:hover,
#sync2.owl-theme .owl-nav [class*='owl-'].disabled:hover {
  background-color: #d6d6d6;
}

#sync1.owl-theme {
  position: relative;
}
#sync1.owl-theme .owl-next,
#sync1.owl-theme .owl-prev {
  width: 40px;
  height: 40px;
  margin-top: -20px;
  position: absolute;
  top: 50%;
  padding: 10px;
}
#sync2.owl-theme .owl-next,
#sync2.owl-theme .owl-prev {
  width: 40px;
  height: 40px;
  padding: 5px !important;
}
#sync1.owl-theme .owl-prev {
  left: 10px;
}
#sync1.owl-theme .owl-next {
  right: 10px;
}

/*-----------------------------------------
    SCROLLBAR style
-------------------------------------------*/

.scrollbar {
  float: left;
  overflow-y: auto;
  margin-bottom: 25px;
  width: 100%;
}
.scrollbar::-webkit-scrollbar-track {
  border-radius: 10px;
  background-color: #f1f1f1;
}

.scrollbar::-webkit-scrollbar {
  width: 8px;
  background-color: #f1f1f1;
}

.scrollbar::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background-color: #afafaf;
}
.btn-line {
  --bs-btn-color: #fff;
  --bs-btn-bg: #00c854;
  --bs-btn-border-color: #00c854;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #00b94d;
  --bs-btn-hover-border-color: #00b94d;
  --bs-btn-focus-shadow-rgb: 0, 200, 84;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #00a845;
  --bs-btn-active-border-color: #00a845;
}
.btn-outline-line {
  --bs-btn-color: #00c854;
  --bs-btn-border-color: #00c854;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #00c854;
  --bs-btn-hover-border-color: #00c854;
  --bs-btn-focus-shadow-rgb: 0, 200, 84;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #00a845;
  --bs-btn-active-border-color: #00a845;
}
/*-----------------------------------------
    RESPONSIVE
-------------------------------------------*/
/* จอ PC เล็ก การ์ด 4 ใบต่อแถวทำให้ปุ่มแคบ — ลดขนาดตัวอักษร/ระยะขอบ
   และห้ามตัดบรรทัด ปุ่มทุกใบจะได้สูงเท่ากัน */
@media screen and (min-width: 992px) and (max-width: 1399.98px) {
  .btn-big {
    --bs-btn-font-size: 0.875rem;
    --bs-btn-padding-x: 1rem;
    white-space: nowrap;
  }
}
@media screen and (max-width: 767px) {
  .card-home-footer {
    padding: 30px 20px;
  }
  .btn-big {
    --bs-btn-padding-x: 1rem;
  }
  .box-img-table {
    padding: 5px;
    width: 60px;
    height: 60px;
  }
  .box-img-table img {
    width: 50px;
    height: 50px;
  }
  .table-installment td,
  .table-installment th {
    font-size: 12px;
    line-height: 20px;
    vertical-align: middle;
  }
  .table-installment .badge {
    font-size: 12px;
  }
  .card-pd30 {
    padding: 15px;
  }
  .card-product {
    padding: 15px;
  }
  .card-product .box-image .badge-special > img {
    height: 40px;
  }
  .card-product .box-image .badge-special {
    width: 40px;
  }
}
@media screen and (min-width: 320px) and (max-width: 374px) {
}
@media screen and (min-width: 375px) and (max-width: 413px) {
}
@media screen and (min-width: 414px) and (max-width: 424px) {
}
@media screen and (min-width: 425px) and (max-width: 767px) {
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
}
@media screen and (min-width: 1024px) and (max-width: 1279px) {
}
@media screen and (min-width: 1280px) and (max-width: 1359px) {
}
@media screen and (min-width: 1360px) and (max-width: 1439px) {
}
@media screen and (min-width: 1440px) and (max-width: 1599px) {
}
@media screen and (min-width: 1600px) and (max-width: 1919px) {
}
@media screen and (min-width: 1920px) and (max-width: 2559px) {
}
@media screen and (min-width: 2560px) {
}
