:root {
  --primary-blue: #009cd0;
  --dark-heading: #212529;
  --light-bg: #f8f9fa;
  --text-color: #666666;
}

.service-hero-section {
  position: relative;
  height: 40vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.service-hero-section img {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  object-fit: cover;
}

.service-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.service-hero-section h1 {
  font-size: 48px;
  margin: 0 0 15px;
}

.service-hero-section p {
  font-size: 18px;
  margin: 0 0 40px;
  padding: 0 190px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.22) !important;
  padding: 10px 30px !important;
  border-radius: 0px !important;
  font-size: 14px;
  font-weight: 600;
  color: white;
  width: fit-content;
}

.breadcrumb a {
  color: white;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition:
    text-decoration-color 0.3s ease,
    text-underline-offset 0.3s ease;
}

.breadcrumb a:hover {
  color: white;
  text-decoration-color: white;
  text-underline-offset: 3px;
}

.breadcrumb i {
  color: #ccc;
  margin: 0 5px;
  font-size: 14px;
}

.shop-criteria-section {
  padding-top: 20px;
  padding-bottom: 20px;
}

.criteria-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-right: 1px solid #eee;
}

.criteria-item:last-child {
  border-right: none;
}

.criteria-icon {
  width: 50px;
  height: 50px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.criteria-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.criteria-text h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 3px;
  color: #333;
}

.criteria-text p {
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
}

/* Sewing Machine */
.header-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title-group {
  flex-shrink: 0;
}

.header-action-group {
  flex-grow: 1;
  text-align: end;
}

.title-and-subtitle-wrapper {
  display: flex;
  align-items: baseline;
  padding: 0;
}

.title-and-subtitle-wrapper h2 {
  margin-bottom: 0;
  margin-right: 15px;
}

.title-and-subtitle-wrapper .description {
  margin-bottom: 0;
  margin-left: 0;
}

.product-carousel.owl-theme {
  position: relative;
  margin-top: 20px;
  padding: 0;
}

.product-carousel.owl-theme .owl-nav button:hover {
  color: black;
  border: 1px solid #7c7c7c !important;
}

.product-carousel.owl-theme .owl-nav button {
  position: absolute;
  top: 25%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  line-height: 35px;
  background: #fff !important;
  border: 1px solid #ccc !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  opacity: 1;
  z-index: 10;
  cursor: pointer;
  transition: all 0.2s;
}

.product-carousel.owl-theme .owl-nav .owl-prev {
  left: -50px;
}

.product-carousel.owl-theme .owl-nav .owl-next {
  right: -50px;
}

.category-card {
  background-color: #eff3f7;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.3s;
}

.category-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-image {
  padding: 15px 10px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.card-info {
  padding-top: 5px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
}

.product-category-section .category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.product-category-section .category-grid > div {
  margin-bottom: 0 !important;
  padding: 0;
  flex-basis: calc((100% - 50px) / 6);
  flex-grow: 1;
  flex-shrink: 0;
}

.product-carousel-section {
  padding: 20px 0;
}

.header-title-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 0;
}

.header-title-wrapper .description {
  font-size: 16px;
  color: #666;
  margin-bottom: 0;
}

.header-divider {
  border: 0;
  border-top: 1px solid #ddd;
  margin-top: 5px !important;
  margin-bottom: 25px !important;
}

.view-all-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
}

.product-card {
  background: #fff;
  border-radius: 5px;
  position: relative;
  height: 100%;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.product-image-container {
  border: 1px solid #918b8b;
  border-radius: 8px;
  position: relative;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card:hover .product-main-image {
  transform: scale(1.1);
  filter: brightness(1.05);
}
.product-main-image {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transform: scale(1);
  transition:
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.3s ease;
  will-change: transform;
}
.badge-stock {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #007bff;
  color: #fff;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 3px;
  z-index: 10;
  display: none !important;
}

.top-right-icons {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: none !important;
}

.product-setting-icon {
  font-size: 14px;
  color: #6c757d;
  display: none !important;
}

.product-info {
  padding: 15px 0;
}

.rating-bar {
  margin-bottom: 8px !important;
  display: none;
}

.product-rating i {
  color: #ffc107;
  font-size: 12px;
}

.product-small-icons .icon-diamond,
.product-small-icons .icon-globe {
  font-size: 12px;
  color: #6c757d;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
  height: calc(1.4em * 2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.btn-more-full {
  background: linear-gradient(
    to left,
    var(--primary-blue) 0%,
    var(--primary-blue) 50%,
    black 50%,
    black 100%
  );
  background-size: 250% 106%;
  background-position: right bottom;
  color: #ffffff !important;
  border: none;
  padding: 10px 24px !important;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background-position 0.4s ease-in-out;
  justify-content: center;
}

.btn-more-full:hover {
  background-position: left bottom;
  color: #ffffff;
  text-decoration: none;
}

.owl-theme .owl-dots .owl-dot span {
  width: 8px;
  height: 8px;
  margin: 5px 4px;
  background: #add8e6 !important;
  display: block;
  -webkit-backface-visibility: visible;
  transition: opacity 0.2s ease;
  border-radius: 30px;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--primary-blue) !important;
  transform: scale(1.1);
}

.product-carousel.owl-theme .owl-dots {
  text-align: center;
  margin-top: 15px;
}

.cta-bar-section {
  background-color: #01668f;
  padding: 30px 40px;
  border-radius: 8px;
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.cta-text-content {
  color: #fff;
  max-width: 50%;
  text-align: center;
}

.cta-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
}

.cta-description {
  font-size: 14px;
  color: #eee;
  margin-bottom: 0;
}

.cta-contact-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-cta-request {
  background-color: #fff;
  color: black;
  padding: 15px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition:
    background-color 0.3s,
    opacity 0.3s;
}

.btn-cta-request:hover {
  opacity: 0.9;
  text-decoration: none;
}

.cta-phone-info {
  display: flex;
  flex-direction: column;
  color: #fff;
  text-align: center;
}

.cta-phone-number {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.cta-phone-note {
  font-size: 13px;
  opacity: 0.8;
}

/*------------------------------------------------Scroll button-------------------------------------------------*/
.scroll-to-top-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  width: 50px;
  line-height: 50px;
  text-align: center;
  background-color: var(--primary-blue);
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  font-size: 20px;
}

.scroll-to-top-btn:hover {
  background-color: #077499;
  color: #fff;
  transform: scale(1.05);
}

.scroll-to-top-btn i {
  pointer-events: none;
}

.footer-title2 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

@media (max-width: 450px) {
  .pc {
    display: none !important;
  }

  .service-hero-section {
    position: relative;
    padding: 80px 15px;
    text-align: center;
    overflow: hidden;
    min-height: 200px;
    margin-top: 70px;
  }

  .service-hero-section img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }

  .service-hero-section .container {
    position: relative;
    z-index: 2;
  }

  .service-hero-section .row {
    width: 100%;
    margin: 0;
    display: block;
  }

  .service-hero-section h1 {
    color: white;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .service-hero-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 15px;
    padding: 0 10px;
  }

  .service-hero-section .breadcrumb {
    color: white;
    font-size: 13px;
    padding: 10px 20px !important;
    justify-content: center;
  }

  .service-hero-section .breadcrumb a {
    color: white;
    text-decoration: none;
  }

  .service-hero-section .breadcrumb i {
    font-size: 10px;
    vertical-align: middle;
    margin: 0 5px;
  }

  .product-category-section .category-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .product-category-section .category-grid {
    gap: 0px;
  }

  .product-category-section .category-grid::-webkit-scrollbar {
    display: none;
  }

  .product-category-section .category-grid > div {
    flex-basis: 30%;
    min-width: 120px;
    flex-shrink: 0;
    margin-right: 10px;
    margin-bottom: 0 !important;
    padding: 0;
  }

  .product-image-container {
    height: 200px;
  }

  .product-category-section .category-grid > div:last-child {
    margin-right: 10px;
  }

  .category-card {
    height: 100%;
  }

  .view-all-link {
    display: none;
  }

  .title-and-subtitle-wrapper {
    flex-direction: column;
  }

  .product-carousel.owl-theme .owl-nav .owl-prev,
  .product-carousel.owl-theme .owl-nav .owl-next {
    display: none;
  }

  .cta-bar-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }

  .cta-text-content {
    max-width: 100%;
    order: 1;
  }

  .cta-contact-group {
    /* flex-direction: column; */
    gap: 10px;
    width: 100%;
    order: 2;
    align-items: center;
    justify-content: space-between;
  }

  .btn-cta-request {
    /* width    : 90%;
        max-width: 250px;
        margin   : 0 auto; */
    padding: 10px 20px;
  }

  .cta-phone-info {
    text-align: center;
    align-items: center;
  }

  .cta-title {
    font-size: 20px;
  }

  .cta-phone-number {
    font-size: 16px;
  }

  .criteria-item {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .header-title-wrapper h2 {
    font-size: 25px;
  }

  .criteria-item:last-child {
    border-bottom: none;
  }
}

@media (min-width: 992px) and (max-width: 1299px) {
  .service-hero-section {
    height: 40vh;
  }

  .service-hero-section h1 {
    font-size: 48px;
  }

  .service-hero-section p {
    font-size: 18px;
    padding: 0 100px;
  }
}

@media (min-width: 1300px) and (max-width: 1700px) {
  .service-hero-section {
    height: 40vh;
  }

  .service-hero-section h1 {
    font-size: 48px;
  }

  .service-hero-section p {
    font-size: 18px;
    padding: 0 220px;
  }
}
