* {
  font-family: "Noto Sans Lao", Times, serif;
}
.content-padding {
  padding-top: 40px;
}

.section-product {
  padding-bottom: 10px;
  text-align: center;
  font-weight: 500;
  color: #f06c20;
  font-weight: 300;
}

/* Topic */
.topic {
  border-bottom: 2px solid #f06c20;
  padding-top: 40px;
  padding-bottom: 10px;
  font-weight: bold;
  font-size: 28px;
}

.kbank-icon {
  width: 40px;
  margin-right: 5px;
}

.font-color-black {
  color: #333;
}

.product-price {
  font-weight: bold;
}

.sale-price {
  font-weight: bold;
  color: red;
}

.before-discount-price {
  text-decoration: line-through;
  color: #333;
}

.primary-font-color {
  color: #f06c20;
}

/* Content */
.section-content {
  padding: 20px 20px 35px 20px;
}

.section-content-border {
  border-bottom: 1px dotted #d2d2d2;
}

.title-content {
  font-size: 18px;
  font-weight: 600;
}

.left-content {
  padding: 12px;
}

.left-content:hover {
  background: #f4f4f4;
  border-radius: 15px;
}

.accessory-image {
  max-width: 400px;
  width: 30vw;
  transition: transform 0.4s;
}

.accessory-image-all-in-one {
  max-width: 400px;
}

.title-list {
  padding-left: 17px;
}

.list-detail {
  line-height: 27px;
  font-size: 14px;
}

.list-detail > span {
  font-size: 15px;
  font-weight: 300;
}

.price-font {
  font-size: 36px;
  font-weight: 300;
  margin: 0;
}

.price-font > small {
  font-size: 14px;
}

.save-price {
  font-size: 14px;
  font-weight: 500;
  color: #f29000;
}

.bg-preorder-content {
  background: #f5f6fa;
  padding-top: 25px;
  padding-bottom: 25px;
}

.bg-manully-content {
  background: #f06c20;
  color: white;
  padding-top: 25px;
}

#payment-content {
  background: white;
  padding-top: 25px;
  padding-bottom: 25px;
}

.preorder-img {
  max-width: 82%;
  margin: 30px 0 50px 0;
}

.payment-img {
  width: 100%;
  margin: 30px 0 50px 0;
}

.custom-container {
  width: 60%;
  margin-top: 54px;
  padding-bottom: 35px;
}

.custom-img-container {
  width: 80%;
  margin-top: 54px;
  padding-bottom: 35px;
}

.free-content {
  font-weight: 300;
}

.free-content span {
  color: red;
}

.topic-selected {
  width: 100% !important;
  padding-bottom: 5px;
  background-color: #f7f7f7;
  position: fixed;
  z-index: 999;
  font-size: 14px;
  border-bottom: 1px solid #efefef;
}

.title-header {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.title-package {
  color: #777;
}

.hidden-on-mobile {
  display: contents;
}

.nav-icon {
  width: 30px;
}

.nav-icon:hover {
  -ms-transform: scale(1.3);
  /* IE 9 */
  -webkit-transform: scale(1.3);
  /* Safari 3-8 */
  transform: scale(1.3);
  transition: 0.5s;
}

.payment-title {
  font-weight: 300;
  font-size: 16px;
  color: #454545;
  padding-top: 120px;
}

.accessory_link {
  color: #f06c20;
}

.out-of-stock {
  font-size: 20px;
  font-weight: 600;
  color: red;
}

.fixed-height {
  height: 480px;
}

.fixed-max-height {
  max-height: 400px;
}

.input-price {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 6px;
  margin-top: 23px;
}

.input-quantity {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  column-gap: 6px;
  margin-top: 3px;
  width: 63px;
  margin-right: 15px;
}

.left-content-wrapper {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  width: 420px;
  margin: auto;
  padding: 10px;
}

.left-content-wrapper:hover {
  background: #f7f7f7;
  border-radius: 15px;
}

.extension-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 8px;
}

.package-duration-img > img {
  height: 68px;
  border-radius: 30px;
}

.optonal-view {
  display: flex;
  justify-content: end;
  align-items: center;
  column-gap: 10px;
}

/* .discount-percentage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    height: 60px;
    background: #ffe107;
    border-radius: 50%;
    line-height: 0.9;
    box-shadow: rgb(0 0 0 / 15%) 2.4px 2.4px 3.2px;
  } */

@media (min-width: 1024px) and (max-width: 1800px) {
  .topic-selected {
    font-size: 14px;
  }
}

@media (max-width: 991px) {
  .accessory-image-all-in-one {
    max-width: 45vw;
  }

  .custom-container {
    margin-top: 0;
  }

  #link-nav {
    display: none;
  }

  .fixed-height {
    height: 430px;
  }

  .fixed-max-height {
    max-height: 340px;
  }
}

@media (max-width: 768px) {
  .accessory-image-all-in-one {
    width: 50vw;
  }
}

@media (min-width: 480px) and (max-width: 960px) {
  .section-content-border {
    border-bottom: none;
  }

  .accessory-image {
    margin-bottom: 10px;
  }

  .topic-selected {
    font-size: 14px;
  }

  .topic {
    padding-top: 15px;
  }
}

@media (max-width: 480px) {
  .preorder-img {
    max-width: 150px;
  }

  .accessory-image-all-in-one {
    width: 70vw !important;
    max-width: 400px !important;
  }

  .accessory-image {
    width: 70vw;
    margin-bottom: 10px;
  }

  .topic-selected {
    font-size: 14px;
  }

  .topic {
    padding-top: 0;
    font-size: 22px;
  }

  .hidden-on-mobile {
    display: none;
  }

  .package-title-header {
    margin-top: 15px;
  }

  .nav-icon {
    width: 20px;
  }

  .content-padding {
    padding-top: 10px;
  }

  .payment-title {
    font-weight: 300;
    font-size: 14px;
    color: #454545;
    padding-top: 85px;
  }

  .custom-container {
    width: 90%;
  }

  .section-content {
    padding: 20px 10px 35px;
  }

  .fixed-height {
    height: 376px;
  }

  .fixed-max-height {
    max-height: 376px;
  }
}

.vat-toggle {
  color: #f06c20;
  font-size: 12px;
  cursor: pointer;
}

.vat-toggle:hover {
  color: #f06c20;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

input:read-only {
  background-color: #ffffff !important;
}

.save-btn-primary {
  color: white;
  background: #f06c20;
}

.save-btn-primary:hover,
.save-btn-primary:focus,
.save-btn-primary:active {
  color: white;
  background: #f06c20;
}

.btn-floating {
  font-size: 40px;
  width: 80px;
  height: 80px;
  padding: 20px;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 5px rgb(0 0 0);
  margin-bottom: 5px;
}

.submit-btn-success {
  color: white;
  background: #319c73;
}

.submit-btn-success:hover,
.submit-btn-success:focus,
.submit-btn-success:active {
  color: white;
  background: #2a805f;
  flex: 1;
}

.scroll-floating {
  z-index: 9999;
  position: fixed;
  left: auto;
  right: 4vh;
  bottom: 4vh;
  display: none;
}

.floating {
  z-index: 9999;
  position: fixed;
  left: auto;
  right: 4vh;
  bottom: 4vh;
  display: none;
}

.submit-btn-warning {
  color: white;
  background: #efba1c;
}

.submit-btn-warning:hover,
.submit-btn-warning:focus,
.submit-btn-warning:active {
  color: white;
  background: #d6a619;
}

.submit-btn-warning:disabled {
  color: white;
  background: #cccccc;
}

.submit-btn-default {
  color: white;
  background: #a0a0a0;
}

.submit-btn-default:hover,
.submit-btn-default:focus,
.submit-btn-default:active {
  color: white;
  background: #7d7d7d;
}

.remove-btn-danger {
  color: white;
  background: #e73434;
  display: none;
}

.remove-btn-danger:hover,
.remove-btn-danger:focus,
.remove-btn-danger:active {
  color: white;
  background: #c12727;
}

.popover-border {
  background: #f5f5f5;
  border-radius: 5px;
  border: 0;
}

.cart-right-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.input-width {
  max-width: auto;
}

.link-scroll-to {
  color: #c7cbcf;
  cursor: pointer;
  text-decoration: none;
}

.cart-badge {
  position: absolute;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  padding: 0;
  right: -5px;
  top: -3px;
  font-size: 12px;
  font-weight: 700;
  background: #ff3e00;
  color: white;
  border: 2px solid;
}

.modal__content {
  overflow-y: scroll;
  height: 50vh;
}

.link-scroll-to:hover {
  text-decoration: none;
}

.view-package {
  color: #f06c20;
  text-decoration: none;
  font-size: 22px;
  font-weight: 300;
}

.view-package:hover {
  color: #f06c20;
  text-decoration: none;
}

@media (max-width: 420px) {
  .input-width {
    max-width: 150px;
  }

  .title-content {
    font-size: 16px;
  }

  .view-package {
    font-size: 20px;
    font-weight: 300;
  }

  .kbank-icon {
    width: 32px;
    margin-right: 5px;
  }

  .left-content-wrapper {
    width: unset;
  }

  .discount-percentage {
    width: 76px !important;
    height: 30px !important;
  }

  .discount-percentage:after {
    border-top: 23px solid transparent !important;
    border-left: 14px solid #f7f7f7 !important;
    border-bottom: 22px solid transparent !important;
  }

  .discount-font {
    left: 16px !important;
  }

  .percentage-font {
    font-size: 24px !important;
  }

  .package-duration-img > img {
    height: 58px !important;
    border-radius: 12px !important;
  }
}

.user-cart-floating {
  z-index: 9999;
  position: fixed;
  left: auto;
  right: 12vh;
  bottom: 55px;
  display: none;
}

.user-cart-btn-primary {
  color: white;
  background: #33be7d;
  padding: 4px;
  width: 50px;
  height: 40px;
}

.user-cart-btn-primary:hover,
.user-cart-btn-primary:focus,
.user-cart-btn-primary:active {
  color: white;
  background: #188e57;
}

.user-cart-btn-remove {
  color: white;
  background: #d9534f;
  display: none;
  padding: 4px;
  width: 50px;
  height: 40px;
}

.user-cart-btn-remove:hover,
.user-cart-btn-remove:focus,
.user-cart-btn-remove:active {
  color: white;
  background: #a94442;
}

.user-cart-badge {
  position: absolute;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  padding: 0;
  right: -5px;
  top: -3px;
  font-size: 12px;
  font-weight: 700;
  background: #ff3e00;
  color: white;
  border: 2px solid;
}

.user-btn-floating {
  font-size: 35px;
  width: 72px;
  height: 72px;
  padding: 15px;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 5px rgb(0 0 0);
  margin-bottom: 5px;
}

.user-submit-btn-success {
  color: white;
  background: #104377;
}

.user-submit-btn-success:hover,
.user-submit-btn-success:focus,
.user-submit-btn-success:active {
  color: white;
  background: #0d355f;
}

.user-remove-btn-warning {
  color: white;
  background: #d9534f;
}

.user-remove-btn-warning:hover,
.user-remove-btn-warning:focus,
.user-remove-btn-warning:active {
  color: white;
  background: #a94442;
}

.user-remove-btn-warning:disabled {
  color: white;
  background: #cccccc;
}

.user-cart-trash {
  display: flex;
  align-items: center;
  height: 40px;
  font-size: 20px;
  color: red;
  padding: 0 6px;
}

.user-cart-trash > i {
  cursor: pointer;
}

.user-cart-subtitle {
  color: #00000087;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.icon_platform_title {
  width: 24px;
  object-fit: contain;
}

.show-more {
  cursor: pointer;
}

.free-shipping-wrapper {
  background: #f06c20;
  color: #fff;
  padding: 3px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  column-gap: 3px;
}

.free-package-wrapper {
  color: #fff;
  padding: 3px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
}

.Basic {
  background: linear-gradient(
    90deg,
    rgba(65, 177, 136, 1) 0%,
    rgba(30, 96, 134, 1) 100%
  );
}

.Smart {
  background: linear-gradient(
    90deg,
    rgba(244, 49, 123, 1) 0%,
    rgba(244, 74, 64, 1) 100%
  );
}

.Pro {
  background: linear-gradient(
    90deg,
    rgba(15, 163, 96, 1) 0%,
    rgba(13, 184, 145, 1) 100%
  );
}

.discount-percentage {
  width: 100px;
  height: 36px;
  box-sizing: content-box;
  padding-top: 15px;
  position: relative;
  background: red;
  color: white;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}
.discount-percentage:after {
  content: "";
  position: absolute;
  left: -1;
  bottom: 0;
  width: 0;
  height: 0;
  border-top: 25px solid transparent;
  border-left: 16px solid #f7f7f7;
  border-bottom: 25px solid transparent;
}

.discount-font {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  position: absolute;
  top: -2px;
  left: 24px;
  font-family: "Prompt", sans-serif;
}

.percentage-font {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  color: #fff;
  position: absolute;
  right: 2px;
  bottom: -4px;
  font-family: "Prompt", sans-serif;
}

.left-content-wrapper:hover > .discount-percentage:hover:after {
  border-left: 18px solid #f7f7f7;
}
.uposimage {
  margin-top: 0.2em;
}
.col-lg-6{
  margin-bottom: -250px;
}
.view-toggle {
  display: flex; /* Align the buttons in a row */
  margin: 20px;
}
/* Product Listing Container for Grid View */
/*.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 100px;
  padding: 5px;
}

.product-grid .product-item {
  border: 1px solid #e15819;
  padding: 15px;
  text-align: center; 
  width: 220px; /* Width for grid items 
  height: 300px;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: transform 0.3s ease;
}

.product-grid .product-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-grid .product-item:hover {
  transform: scale(1.05);
}*/
/*.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Smaller items 
  gap: 15px; /* Reduce spacing 
  padding: 65px; /* Add some padding 
}

.fixed-height {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}*/
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px; /* Reduce the spacing */
  justify-content: center; /* Center items properly */
  align-items: start; /* Align items to the top */
}

.product-card {
  flex: 1 1 220px; /* Ensures items fit without large gaps */
  max-width: 220px; /* Keep cards at a reasonable width */
  margin: 0; /* Remove extra margin */
  padding: 10px; /* Adjust padding */
}

.product-card:hover {
  transform: scale(1.05);
}


/*.product-img {
  width: 100%;
  height: 180px; /* Adjust for uniformity 
  object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .grid-container {
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .grid-container {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

.product-title {
  font-size: 14px;
  font-weight: bold;
  color: #000;
  text-decoration: none;
}

.product-price {
  font-size: 18px;
  font-weight: bold;
  color: #ff5722;
  margin: 10px 0;
}

.product-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn {
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 5px;
}

.user-cart-btn-primary {
  background-color: #28a745;
  color: white;
}

.user-cart-btn-remove {
  background-color: #dc3545;
  color: white;
}
.add-cart-btn-primary{
  padding: 5px 20px;
  font-size: 14px;
  border-radius: 5px;
  background-color: #28a745;
  color: white;
}
.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center items instead of spreading too far apart */
  gap: 3px; /* Reduce gap to bring items closer */
  padding: 10px; /* Reduce extra padding */
  max-width: 100%; /* Ensure it doesn’t overflow */
}


/* Product Item for Grid View */
.product-grid .product-item {

  border: 1px solid #ddd;
  padding: 15px;
  text-align: center;
  height: auto;
  width: 220px; /* Width for grid items */
  border-radius: auto;
  transition: transform 0.3s ease;
}

/* Product Image inside Grid */
.product-grid .product-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.product-card img[src$=".svg"] {
  width: 40px;
  height: auto;
}
/* Hover Effect for Grid Items */
.product-grid .product-item:hover {
  transform: scale(1.05);
}
.product-image {
  border: none #777;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes .product-details to the bottom */
  height: 100%; /* Ensures full height */
  position: relative; /* Ensures proper layout */
}

.product-details {
  border: none;
  width: 100%; /* Makes sure it takes full width */
  text-align: center; /* Centers content */
  margin-top: auto; /* Pushes it to the bottom */
  padding: 10px;
}
/* Pop-up Background */
.popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Pop-up Box */
.popup-content {
  background: white;
  width: 420px; /* Fixed width */
  max-width: 90%; /* Responsive max-width */
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow-y: auto; /* In case of long content */
  max-height: 80vh; /* Limit pop-up height */
  transform: translate(-50%, -50%); /* Center pop-up */
  top: 50%;
  left: 50%;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #555;
}

.close-btn:hover {
  color: #000;
}

/* Product Image */
.popup-img {
  width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Product Title */
h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 5px;
}

/* Price Styling */
.primary-font-color {
  color: #e74c3c;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.sale-price {
  font-size: 20px;
  font-weight: bold;
  color: #27ae60;
}

.vat-toggle {
  font-size: 14px;
  color: #777;
}

/* Product Details */
.title-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-top: 10px;
}

.list-detail {
  font-size: 16px;
  color: #444;
  padding: 5px 0;
  border-bottom: 1px solid #ddd;
}

/* Add to Cart Button */
.add-cart-btn-primary {
  background: #28a745;
  color: white;
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 150px; /* Adjust width to fit your content */
  margin: 10px auto; /* This centers the button horizontally */
  display: block; /* Ensures the button is treated as a block element */
}
.add-cart-btn-primary:hover {
  background: #218838;
}
/* Remove Button */
.user-cart-btn-remove {
  background: #e74c3c;
  color: white;
  padding: 8px 12px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
}

.user-cart-btn-remove:hover {
  background: #c0392b;
}

/* Animation */
@keyframes popupFadeIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
