/*
Theme Name: TechLight
Theme URI: https://templatesjungle.com/
Author: TemplatesJungle
Author URI: https://templatesjungle.com/
Description: TechLight is a free tech blog HTML CSS website template by TemplatesJungle.
Version: 1.1
*/

/*--------------------------------------------------------------
/** Base Styles
--------------------------------------------------------------*/
:root {
  --accent-color: #222222;
  --grey-color: #444444;
  --light-grey-color: #777777;
  --bs-body-font-family: 'Inter';
}

/*--------------------------------------------------------------
/** Typography
--------------------------------------------------------------*/
body {
  font-family: var(--bs-body-font-family);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.6em;
  color: #474747;
  word-break: break-all;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  color: var(--accent-color);
  font-weight: 600;
  // text-transform: capitalize;
}

p {
  color: #474747;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease-out;
}

a:hover {
  color: #555;
  text-decoration: none;
}

th,
td {
  border: 1px solid #ddd;
}

/* - Section Padding
--------------------------------------------------------------*/
.padding-xsmall {
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.padding-small {
  padding-top: 2em;
  padding-bottom: 2em;
}

.padding-medium {
  padding-top: 4em;
  padding-bottom: 4em;
}

.padding-large {
  padding-top: 7em;
  padding-bottom: 7em;
}

.padding-xlarge {
  padding-top: 9.5em;
  padding-bottom: 9.5em;
}

/* no padding */
.no-padding-top {
  padding-top: 0 !important;
}

.no-padding-right {
  padding-right: 0 !important;
}

.no-padding-bottom {
  padding-bottom: 0 !important;
}

.no-padding-left {
  padding-left: 0 !important;
}

.no-padding-tb {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.no-padding-lr {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.no-gutter {
  padding: 0 !important;
}

/* no padding and margin */
.no-padding {
  padding: 0 !important;
}

.no-margin {
  margin: 0 !important;
}

/* - Section margin
--------------------------------------------------------------*/
.margin-small {
  margin-top: 3em;
  margin-bottom: 3em;
}

.margin-medium {
  margin-top: 5em;
  margin-bottom: 5em;
}

.margin-large {
  margin-top: 7em;
  margin-bottom: 7em;
}

.margin-xlarge {
  margin-top: 9em;
  margin-bottom: 9em;
}

/* no margin */
.no-margin-top {
  margin-top: 0 !important;
}

.no-margin-right {
  margin-right: 0 !important;
}

.no-margin-bottom {
  margin-bottom: 0 !important;
}

.no-margin-left {
  margin-left: 0 !important;
}

.no-margin-tb {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.no-margin-lr {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* - Image Hover Effects
------------------------------------------------------------- */
.zoom-effect {
  overflow: hidden;
}

.zoom-in img {
  -webkit-transition: 0.4s ease;
  transition: 0.4s ease;
}

.zoom-effect:hover .zoom-in img {
  -webkit-transform: scale(1.08);
  transform: scale(1.08);
}

/* - Button
------------------------------------------------------------- */
.button {
  border: none;
  width: fit-content;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  // text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 18px;
  transition-duration: 0.3s;
}

.button svg {
  transition-duration: 0.3s;
}

// .button:hover svg {
//   transform: rotate(360deg);
// }

.button.btn-bg-dark {
  padding: 16px 30px;
  background: var(--accent-color);
  color: #fff;
}

.button.btn-bg-dark:hover {
  color: #fff;
  background-color: var(--grey-color);
}

button.btn-bg-white {
  transition-duration: 0.3s;
  padding: 12px 30px;
  background-color: #fff;
  border: none;
}

button.btn-bg-white:hover {
  background-color: #e9e9e9;
}

.swiper-button-disabled a {
  color: #949494;
}

/*--------------------------------------------------------------
/** Title Wrap
--------------------------------------------------------------*/
.title-wrap {
  margin-bottom: 24px;
  align-items: center;
}

/*--------------------------------------------------------------
/** Page Title
--------------------------------------------------------------*/
.page-title {
  margin-bottom: 24px;
  align-items: center;
}

.page-title h2 {
  font-size: 42px;
}

/*--------------------------------------------------------------
/** 16. Section Header
--------------------------------------------------------------*/
.section-header h4.elementary-title {
  font-style: normal;
  font-weight: 500;
  font-size: 21px;
  line-height: 25px;
  letter-spacing: 0.04em;
  // text-transform: uppercase;
  margin: 0;
}

@media (max-width: 999px) {
  .section-title h2 {
    font-size: 42px;
  }
}

/* Swiper arrow
--------------------------------------------------------------*/
.swiper-arrow {
  z-index: 222;
}

.slider-arrow-next,
.videos-carousel-button-next,
.main-shop-slider-arrow-next,
.products-carousel-button-next {
  margin-right: 120px;
}

.slider-arrow-prev,
.videos-carousel-button-prev,
.main-shop-slider-arrow-prev,
.products-carousel-button-prev {
  margin-left: 120px;
}

.category-button-next {
  right: -100px;
}

.category-button-prev {
  left: -100px;
}

.b-100 .swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: 100px;
}

.swiper-pagination.testimonial-pagination {
  bottom: -26px;
}

.swiper-pagination-bullet {
  background-color: var(--accent-color);
  width: 15px;
  height: 15px;
  margin: 16px;
}

@media (max-width: 1920px) {
  .swiper-pagination {
    visibility: hidden;
  }

  .main-shop-slider .swiper-pagination.main-shop-slider-pagination {
    visibility: visible;
  }
}

@media (max-width: 1669px) {
  .swiper-arrow {
    // visibility: hidden;
    display: none !important;
  }

  .swiper-pagination {
    visibility: visible;
  }
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#preloader.hide-preloader {
  opacity: 0;
  visibility: hidden;
}

#loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid var(--accent-color);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  animation: spin 0.5s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -60px 0 0 -60px;
}

#loader-img {
  // height: 100px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 10000;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
/** 12. Header
--------------------------------------------------------------*/
.top-header a {
  color: #cdcdcd;
  font-weight: 500;
  font-size: 13px;
  text-transform: capitalize;
  margin-right: 40px;
}

.top-header a:hover {
  color: #ffffff;
}

.top-header .social-share a {
  margin-right: 0;
  margin-left: 40px;
}

#header-wrap .btn-menu {
  background: transparent;
  border: none;
  padding: 10px 30px;
}

@media (max-width: 800px) {
  .top-header {
    display: none;
  }
}

/* Search Bar
------------------------------------------------------------- */

/** Search Form
--------------------------------------------------------------*/
.search-form input[type='search'].search-field {
  width: 100%;
  border: 2px solid #777;
  transition-duration: 0.2s;
  border-radius: 50px;
  padding: 10px 40px;
  outline-offset: 0;
}

.search-form input[type='search'].search-field:focus {
  border-color: solid var(--accent-color);
}

.search-form button {
  position: absolute;
  top: 6px;
  right: 9px;
  background: transparent;
  border: none;
  box-shadow: none;
}

/** Search Popup
--------------------------------------------------------------*/
.search-popup {
  background-color: #fff;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
  -webkit-transition: opacity 0.3s 0s, visibility 0s 0.3s;
  -moz-transition: opacity 0.3s 0s, visibility 0s 0.3s;
  transition: opacity 0.3s 0s, visibility 0s 0.3s;
}

.search-popup.is-visible {
  opacity: 1;
  visibility: visible;
  cursor: -webkit-image-set(
      url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23FFF' d='M20 1l-1-1-9 9-9-9-1 1 9 9-9 9 1 1 9-9 9 9 1-1-9-9'/%3E%3C/svg%3E")
        1x,
      url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23000' d='M20 1l-1-1-9 9-9-9-1 1 9 9-9 9 1 1 9-9 9 9 1-1-9-9'/%3E%3C/svg%3E")
        2x
    ),
    pointer;
  cursor: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23000' d='M20 1l-1-1-9 9-9-9-1 1 9 9-9 9 1 1 9-9 9 9 1-1-9-9'/%3E%3C/svg%3E"),
    pointer;
  -webkit-transition: opacity 0.3s 0s, visibility 0s 0s;
  -moz-transition: opacity 0.3s 0s, visibility 0s 0s;
  transition: opacity 0.3s 0s, visibility 0s 0s;
}

.search-popup-container {
  background-color: transparent;
  position: relative;
  top: 50%;
  margin: 0 auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  text-align: center;
  box-shadow: none;
  cursor: default;
  -webkit-transform: translateY(-40px);
  transform: translateY(-40px);
  -webkit-backface-visibility: hidden;
  -webkit-transition-property: -webkit-transform;
  transition-property: transform;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
}

.is-visible .search-popup-container {
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.search-popup-form {
  position: relative;
  margin: 0 0 3em 0;
}

.search-popup-form .form-control {
  padding: 0 0 0.375em 0;
  font-size: 2em;
}

.search-popup-form #search-popup-submit {
  display: none;
}

.search-popup .search-popup-close {
  display: block;
  position: absolute;
  top: 2em;
  right: 2em;
  margin: -0.5em;
  padding: 0.5em;
  line-height: 0;
}

.search-popup .search-popup-close:hover {
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
}

.search-popup .search-popup-close i {
  display: block;
  position: relative;
  width: 1em;
  height: 1em;
  fill: rgba(0, 0, 0, 0.5);
}

.search-popup .search-popup-close:hover i {
  fill: rgba(0, 0, 0, 1);
}

@media only screen and (max-width: 991px) {
  .search-popup-form .form-control {
    font-size: 1.425em;
  }
}

@media only screen and (max-width: 767px) {
  .search-popup .search-popup-close {
    top: 1em;
    right: 1em;
  }
}

@media only screen and (max-width: 575px) {
  .search-popup-form .form-control {
    font-size: 1.125em;
  }

  .search-popup .search-popup-close {
    top: 1em;
    right: 1em;
  }
}

.search-popup input[type='search'] {
  font-size: 22px;
  height: 60px;
  padding: 26px;
}

.search-popup .search-form {
  position: relative;
}

.search-popup .search-form button {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  border-radius: 100%;
  display: flex;
  padding: 15px;
}

.search-popup .search-form button i {
  font-size: 29px;
}

/* - Main Logo
--------------------------------------------------------------*/
.navbar-brand img {
  display: block;
  width: auto;
  height: auto;
}

/* - Navigation
--------------------------------------------------------------*/
.nav-item {
  display: flex;
  align-items: center;
}

.navbar-expand-lg button {
  color: var(--accent-color);
  transition: all 0.3s ease-out;
}

.navbar-expand-lg button:hover {
  color: #555;
}

.navbar-expand-lg button:focus {
  box-shadow: none;
}

.navbar-expand-lg .navbar-nav .nav-link {
  --accent-color: #fff;
  display: block;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  // text-transform: uppercase;
  color: var(--accent-color);
  padding: 0 25px;
}

.navbar-nav a.nav-link:after {
  content: '';
  display: block;
  border-bottom: 2px solid var(--accent-color);
  width: 0;
  transition: width 0.2s ease-out;
}

.navbar-nav a.nav-link.active:after,
.navbar-nav a.nav-link:hover:after {
  border-bottom: 2px solid var(--accent-color);
  width: 100%;
}

.user-items {
  margin-left: 50px;
  // margin-bottom: 8px;
}

.user-items a {
  margin-left: 30px;
}

.offcanvas-header button {
  border: none;
  background: none;
}

.offcanvas.show .nav-item {
  display: block;
  padding: 0.5em 0;
}

.offcanvas.show a.nav-link {
  font-size: 22px;
  padding: 0;
}

.offcanvas.show .navbar-nav a.nav-link:after,
.offcanvas.show .navbar-nav a.nav-link.active:after,
.offcanvas.show .navbar-nav a.nav-link:hover:after {
  content: none;
}

.offcanvas-end {
  width: 300px;
  background-color: rgb(139, 204, 67);
}

.dropdown-item.active,
.dropdown-item:active {
  --accent-color: #222222;
  color: var(--accent-color);
  background-color: #e9ecef;
  text-decoration: none;
}

@media (max-width: 991px) {
  .user-items {
    margin-top: 20px;
    margin-left: 0;
    margin-bottom: 0;
  }

  .user-items ul {
    justify-content: start !important;
  }

  .user-items a {
    margin-right: 30px;
    margin-left: 0px;
  }
}

/* -- Slider
--------------------------------------------------------------*/
.carousel-text {
  position: unset;
  margin: 0 20%;
}

// .story-title-wrap {
//   white-space: pre-line;
// }

.carousel-text .story-title {
  font-size: 32px;
  line-height: 121.02%;
}

#slider .swiper-arrow {
  margin-top: auto;
  height: 60px;
  margin-bottom: auto;
}

.inbox {
  position: relative;
  aspect-ratio: 16/9;
}

.inbox .carousel-text {
  position: absolute;
  bottom: 0;
  margin: 0;
  padding: 0 40px 0;
  width: 100%;
  background: rgba(248, 249, 250, 0.3);
  word-break: break-word;
  text-align: center;
}

.inbox .slider-img {
  // flex: 1;
  max-height: none;
  height: 100%;
}

.inbox .carousel-text p {
  // text-align: center;
  color: #333;
}

/* -- Post Item
--------------------------------------------------------------*/
.post-item {
  margin-bottom: 50px;
}

.post-meta {
  margin-bottom: 10px;
}

.post-meta a {
  font-size: 13px;
  // letter-spacing: 0.05em;
  // text-transform: uppercase;
  color: #777777;
  // margin-bottom: 13px;
}

.post-item .post-meta a:hover {
  color: #222222;
}

.story-title {
  font-size: 22px;
  line-height: 1.3em;
  min-height: 2.6em;
  margin-bottom: 10px;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 显示的行数 */
  -webkit-box-orient: vertical;
}

.product-title {
  word-break: break-word;
}

.header-name {
  word-break: break-all;
  text-align: center;
}

.entry-meta {
  flex: 1;
  font-size: 14px;
  line-height: 16px;
  color: #777777;
}

.entry-meta .author-name {
  flex: 1;
  min-width: 12px;
  color: var(--accent-color);
}

/* -- Newsletter Section
--------------------------------------------------------------*/
.newsletter {
  background-color: var(--accent-color);
  padding: 60px 110px;
}

.newsletter p {
  font-size: 15px;
  line-height: 164%;
  color: #cdcdcd;
}

#newsletter1 {
  border: 1px solid #6a6a6a;
  border-radius: 0;
  background: none;
  font-size: 15px;
  color: #ffffff;
  transition-duration: 0.3s;
  padding: 12px 26px;
}

#newsletter1::placeholder {
  color: #949494;
}

#newsletter1:focus {
  border: 1px solid #fff;
  box-shadow: none;
}

@media (max-width: 600px) {
  .newsletter {
    padding: 60px 20px;
  }
}

.categorys-item .active {
  color: #3b3e42;
  border-bottom: 2px solid var(--accent-color);
}

/* -- Videos Section
--------------------------------------------------------------*/
.videos-carousel figure {
  background-color: var(--accent-color);
}

.videos-carousel figure a {
  display: flex;
  justify-content: center;
  align-items: center;
}

.videos-carousel figure a img {
  width: 100%;
  opacity: 0.7;
}

.videos-carousel figure svg {
  position: absolute;
  color: #fff;
  border: 3px solid #ffffff;
  border-radius: 100px;
  padding: 18px;
  padding-left: 20px;
  width: 74px;
  height: 74px;
  cursor: pointer;
}

/* -- Products For Sale Section
--------------------------------------------------------------*/
.product-card h3 {
  margin-bottom: 0;
}

.product-card .price {
  font-weight: 300;
  font-size: 22px;
  line-height: 130%;
  flex-basis: 160px;
  text-align: right;
  margin-bottom: 60px;
}

.product-card {
  cursor: pointer;
}

/* Link Effect
 - Place anywhere you want your link to animate
 - Add data-after="Any text" to the link within the class
 - Use span within the anchor category for the effect to work
------------------------------------------------------------- */
.link-effect a {
  position: relative;
  padding: 0;
  overflow: hidden;
  transition: 0.2s ease-in;
  display: block;
}

.link-effect a::after {
  content: attr(data-after);
  display: inline-block;
  transform: translateY(100%);
  position: absolute;
  right: 0;
  text-align: inherit;
  transition: inherit;
}

.link-effect a > span {
  display: inline-block;
  transform: translateY(0%);
  transition: inherit;
}

.link-effect:hover a > span {
  transform: translateY(-100%);
}

.link-effect:hover a::after {
  transform: translateY(0%);
}

/* -- Footer Section
--------------------------------------------------------------*/
#footer {
  background-color: var(--accent-color);
}

#footer .logo {
  margin-bottom: 20px;
  height: 90px;
}

#footer a,
#footer p {
  padding: 0;
  color: #b7b7b7;
}

#footer a:hover {
  color: #ffffff;
}

#footer ul {
  list-style: none;
}

#footer h5 {
  color: #eeeeee;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  // text-transform: uppercase;
  margin-bottom: 12px;
}

/* Comment section */
.commentorImg {
  width: 50px;
  height: 50px;
  margin-right: 20px;
}

/* Bootstrap theme override 
--------------------------------------------------------------*/
.accordion-button:not(.collapsed) {
  color: var(--grey-color);
  background-color: transparent;
}

.tab-content {
  padding: 20px 0;
}

.accordion-button:focus {
  border-color: #e5e6e7;
  box-shadow: none;
}

.accordion-item {
  border-left: 0;
  border-right: 0;
}

/* primary button */
.btn {
  border-radius: 0;
}

.link-primary {
  color: var(--accent-color);
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary:hover {
  color: #fff;
  box-shadow: none;
  background-color: var(--grey-color);
}

.btn-primary {
  border: none;
  background-color: var(--accent-color);
}

.btn-primary:hover {
  color: #fff;
  background-color: var(--grey-color);
}

.btn-outline-primary {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.border-primary {
  border-color: var(--accent-color) !important;
}

.bg-primary {
  --bs-bg-opacity: 1;
  background-color: var(--accent-color) !important;
}

.text-white .border-top {
  border-top: 1px solid #3b3e42 !important;
}

/* Modal override */
.modal {
  background: rgb(40 40 40 / 80%);
}

.modal-dialog {
  max-width: 800px;
  margin: auto;
  height: 100vh;
  display: flex;
  align-items: center;
}

.modal-body {
  position: relative;
  padding: 0px;
}

.btn-close {
  color: #ffffff;
  opacity: 0.9;
  background: none;
  position: absolute;
  right: -50px;
  top: 0;
  width: 40px;
  height: 40px;
  transition-duration: 0.3s;
}

.btn-close:hover {
  color: #ffffff;
  opacity: none;
}

/* ------ Quantity ------*/
.cart-product-quantity {
  max-width: 200px;
}

.cart-product-quantity input {
  padding-left: 10px;
}

/*--------------------------------------------------------------
/** About Page
--------------------------------------------------------------*/
.icon-box .icon-box-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--accent-color);
}

.card-title {
  font-size: 22px;
}

.review-item blockquote {
  font-size: 2.5em;
  font-weight: 300;
  line-height: 1.2;
}

.rating svg.star {
  width: 16px;
  height: 16px;
  fill: var(--primary-color);
}

.review-content .swiper-arrow.swiper-arrow-next {
  right: 0;
}

.review-content .swiper-arrow {
  top: 0;
  bottom: 0;
  z-index: 2;
}

/* pagination */
.page-numbers {
  font-size: 20px;
  color: var(--light-grey-color);
}

.page-numbers.current {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
/** Shop Page
--------------------------------------------------------------*/
#newsletter.bg-light #newsletter1:focus {
  border: 1px solid var(--accent-color);
}

#newsletter.bg-light .button.btn-bg-dark {
  border: 0;
}

/*--------------------------------------------------------------
/** Shop Page
--------------------------------------------------------------*/
.sidebar svg.search {
  width: 20px;
  height: 20px;
}

[type='search'] {
  outline-offset: 0;
}

input,
textarea,
.form-control {
  border: 1px solid var(--bs-gray-300);
  border-radius: 0;
  padding: 10px;
  padding-left: 20px;
  outline-offset: 0;
  outline: 0;
  transition-duration: 0.3s;
  box-shadow: none;
}

.sidebar .search-icon {
  padding: 13px;
}

.widget-search-bar form {
  width: fit-content;
}

input:focus,
textarea:focus,
.form-control:focus {
  outline: 0;
  border-color: 1px solid var(--accent-color);
  box-shadow: none;
}

@media (max-width: 768px) {
  .shopify-grid .product-content .product-card {
    padding-right: 0 !important;
  }
}

/*--------------------------------------------------------------
/* Single Product
--------------------------------------------------------------*/

/** Single Product
--------------------------------------------------------------*/
.single-product {
  --swiper-navigation-sides-offset: -30px;
}
.single-product .large-swiper {
  padding-left: 0;
}

.product-preview .swiper-slide {
  height: fit-content;
  padding-bottom: 10px;
  transition: cubic-bezier(0.22, 0.78, 0.71, 1.01);
}

.swiper-slide-thumb-active img {
  border: 1px solid var(--accent-color);
}

.zoom-effect,
.product-large-img,
.swiper-slide11 {
  border-radius: 100%;
  box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.15);
}

.swiper-slide11 {
  cursor: pointer;
}

.product-large-img {
  width: 50%;
}

.product-preview .swiper-slide11 {
  padding-bottom: 0;
}

.img-fluid {
  width: 100%;
  // height: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.img-fluid-rect {
  max-width: 100%;
  height: auto;
}

.rounded-circle {
  object-fit: cover;
}

.swiper.thumb-swiper {
  padding: 10px;
}

/*---- Single Product Information ----------*/
.rating-container .rating {
  padding-right: 10px;
  color: var(--accent-color);
  font-size: 1em;
}

.product-info .product-price strong {
  font-size: 1.6em;
  padding-right: 10px;
}

.product-info .select-item {
  margin-right: 8px;
}

/*---- Product Tabs ----------*/
.nav-tabs .nav-link {
  color: var(--accent-color);
  font-weight: 600;
}

.nav-tabs .nav-link:focus {
  box-shadow: none;
}

.nav-tabs .nav-link {
  background: none;
  border: none;
}

.nav-tabs button.nav-link.active {
  color: #8acb45;
  background: none;
}

.nav-tabs button.nav-link:hover {
  color: #8acb45;
}

#header-nav {
  position: sticky;
  top: 0;
  margin-bottom: 16px;
  padding: 0;
  background: rgb(139, 204, 67);
  z-index: 999;
  color: #fff;
  --accent-color: #fff;
}

#header-nav .logo {
  height: 60px;
}

#header-nav .header-user-link {
  display: inline-block;
  width: 20px;
  height: 20px;
  position: relative;
}

#header-nav .header-user-link img {
  position: absolute;
  right: 0;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
}

#header-nav .language-dropdown .dropdown-menu {
  left: 50%;
  transform: translateX(-50%);
  min-width: 8em;
}

.tabs-listing .tab-content {
  border-bottom: 1px solid #dee2e6;
  padding: 40px 0;
}

.product-tabs .review-item {
  width: 50%;
  margin-bottom: 20px;
}

.product-tabs .review-item .image-holder {
  margin-right: 10px;
}

@media screen and (max-width: 991px) {
  .product-tabs .review-item {
    width: 100%;
    flex-wrap: wrap;
  }

  .product-tabs .review-item .image-holder {
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 991px) {
  .cart-header {
    display: none;
  }
}

/*--------------------------------------------------------------
/* Single Post
--------------------------------------------------------------*/
.post-wrap .post-item .meta-date a {
  font-size: inherit;
}

/* 可滚动标签切换组件样式 */
.scrollable-tabs-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tabs-container {
  padding-bottom: 1px;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden; /* 防止垂直滚动条出现 */
  scrollbar-width: none; /* 隐藏Firefox滚动条 */
  -ms-overflow-style: none; /* 隐藏IE/Edge滚动条 */
}

.tabs-container::-webkit-scrollbar {
  display: none; /* 隐藏Chrome/Safari滚动条 */
}

#scrollableTabs {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.3s ease;
  padding-left: 0;
  width: max-content; /* 确保内容可以伸展到足够宽 */
}

#scrollableTabs .nav-item {
  white-space: nowrap;
  margin-right: 5px;
}

#scrollableTabs .nav-link {
  padding: 8px 16px;
  font-size: 14px;
  color: #555;
  border-radius: 20px;
  transition: all 0.3s ease;
}

#scrollableTabs .nav-link:hover {
  background-color: #f0f0f0;
}

#scrollableTabs .nav-link.active {
  background-color: var(--accent-color);
  color: white;
}

.tab-scroll-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
  min-width: 32px; /* 确保按钮不被压缩 */
}

.tab-scroll-btn:hover {
  background-color: #f0f0f0;
}

.tab-scroll-btn:active {
  transform: scale(0.95);
}

.tab-scroll-left {
  margin-right: 10px;
}

.tab-scroll-right {
  margin-left: 10px;
}

/* 固定在顶部的头部导航栏样式 */
.position-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.position-header.show {
  display: block;
}

@media (max-width: 800px) {
  .top-header.position-header {
    display: none !important; /* 在移动设备上始终隐藏 */
  }
}

/* 项目详情页步骤导航样式 */
.steps-container {
  position: relative;
  display: flex;
}

.content-wrapper {
  width: 100%;
  padding-right: 20px;
}

.nav-wrapper {
  position: relative;
  width: 280px;
  min-width: 280px;
  margin-left: 30px;
}
.nav-wrapper.document {
  position: fixed;
  top: 80px; /* 距离顶部50px */
  right: 0;
  // width: 280px;
  display: inline-block;
  vertical-align: top;
}

.nav-collapse {
  position: absolute;
  top: 20px;
  left: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background: #5bb247;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transform: translateX(-50%);
}

.collapsed .nav-collapse {
  transform: translateX(-100%) rotate(180deg);
}

.flex-1 {
  flex: 1;
}

.iframe-box {
  position: relative;
  padding-left: 2em;
  padding-right: 300px;
  box-sizing: border-box;
  // flex: 1;
}

.document-container.collapsed .iframe-box {
  padding-right: 30px;
}

.document-container.collapsed .nav-wrapper.document {
  // transition: width 0.3s ease;
  width: 0;
  min-width: 0;
}
@media (max-width: 992px) {
  .nav-wrapper.document {
    width: 75%;
    right: 0;
    bottom: 0;
    top: auto;
  }
  .iframe-box {
    padding-left: 2em;
    padding-right: 0;
    padding-bottom: 100px;
    box-sizing: border-box;
    // flex: 1;
  }
  .nav-collapse {
    display: none;
  }
}
.iframe-box iframe {
  min-height: calc(100vh - 110px);
}

.menu-container {
  --header-height: 70px;
  position: sticky;
  top: var(--header-height, 70px);
  height: calc(100vh - var(--header-height, 70px));
  // transition: width 0.3s ease;
  z-index: 10;
}

.menu-container.collapsed {
  width: 0;
}

.menu-collapse {
  position: absolute;
  top: 20px;
  right: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background: #5bb247;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transform: translateX(50%) rotate(180deg);
}

.collapsed .menu-collapse {
  transform: translateX(100%) rotate(0deg);
}

// .document-container {}

.steps-content {
  width: 100%;
}

.steps-nav {
  position: relative;
}

.steps-nav-container {
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.steps-nav-container h5 {
  margin-bottom: 15px;
  font-weight: 600;
  color: #333;
}

.steps-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps-nav-list li {
  margin-bottom: 10px;
  max-width: 100%; /* 确保不超出容器 */
}

.step-nav-link {
  display: block;
  padding: 8px 15px;
  color: #555;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.step-nav-link:hover {
  color: #5bb247;
  border-left-color: #5bb247;
  background-color: rgba(91, 178, 71, 0.1);
}

.step-nav-link.active {
  color: #5bb247;
  border-left-color: #5bb247;
  background-color: rgba(91, 178, 71, 0.18);
  font-weight: 500;
}

/* 步骤内容样式 */
.step-item {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.step-item:last-child {
  border-bottom: none;
}

.step-item h4 {
  margin-bottom: 15px;
  color: #333;
  font-weight: 600;
}

.step-content {
  line-height: 1.7;
}

/* 固定导航样式 */
.steps-nav-container.fixed {
  position: fixed;
  top: 50px;
  width: 280px;
  z-index: 100;
  animation: fadeIn 0.3s ease;
}

.steps-nav-container.bottom-fixed {
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 100;
  transition: none; /* 防止位置变化时的动画效果导致闪动 */
}

@keyframes fadeIn {
  from {
    opacity: 0.7;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式布局 */
@media (max-width: 992px) {
  .steps-container {
    flex-direction: column;
  }

  .content-wrapper {
    width: 100%;
    padding-right: 0;
  }

  .nav-wrapper {
    width: 100%;
    margin-left: 0;
    margin-top: 30px;
    min-width: auto;
  }

  .steps-nav-container.fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    z-index: 1000;
  }

  .steps-nav-container.fixed h5 {
    margin-bottom: 10px;
  }

  .steps-nav-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }

  .steps-nav-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .steps-nav-list li {
    margin-right: 10px;
    margin-bottom: 0;
    flex: 0 0 auto;
  }
  .step-nav-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-left: none;
    border-bottom: 3px solid transparent;
    max-width: 150px; /* 限制移动端每个导航项的最大宽度 */
  }

  .step-nav-link:hover,
  .step-nav-link.active {
    border-left-color: transparent;
    border-bottom-color: #5bb247;
  }
}

/* 点赞和收藏按钮激活状态 */
.action-buttons .button.active {
  background-color: var(--bs-teal);
  color: #fff;
}

.sort-icon {
  display: flex;
  align-items: center;
  margin-left: 8px;
  cursor: pointer;
}

a.like-btn,
a.favorite-btn {
  transition: all 0.3s ease-out;
}
a.like-btn:hover,
a.favorite-btn:hover {
  color: var(--bs-success);
}
a.like-btn.active,
a.favorite-btn.active {
  color: var(--bs-teal);
}

.slider-img {
  max-height: 60vh;
}
.slider-img-100 {
  max-height: auto;
}

.type-bg {
  position: relative;
  background-image: url('../images/all.png');
  --accent-color: #fff;
  color: #fff;
}

.type-bg .category-icon {
  position: absolute;
  top: 50%;
  left: 2vw;
  transform: translateY(-50%);
  width: 14em;
  height: 14em;
}

@media screen and (max-width: 1200px) {
  .type-bg .category-icon {
    width: 12em;
    height: 12em;
  }
}

@media screen and (max-width: 768px) {
  .type-bg .category-icon {
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5em;
    height: 5em;
  }
}

.type-bg .category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.type-bg .category-icon svg path {
  fill: #c5ef64;
}

.download-bg {
  padding: 3em 5em;
  background: #fff;
  box-shadow: 0 0 6px 1px #ded7cd;
}

.download-bg .icon-box {
  min-width: 100px;
}

.border-bottom-dashed {
  border-bottom: 1px dashed #fff;
}

.download-logo {
  width: 240px;
  // height: 100px;
}

.border-top-dashed {
  border-top: 1px dashed #333;
}

.download-btn {
  display: inline-block;
  background: rgb(139, 204, 67);
  border: 2px solid rgb(139, 204, 67);
  color: #fff;
  padding: 8px 30px;
  transition: all 0.3s ease;
}

.theme-text {
  color: rgb(139, 204, 67);
}

.download-btn:hover {
  background: #fff;
  color: rgb(139, 204, 67);
}

/* 禁用状态的下载按钮 */
.download-btn.disabled {
  background: #cccccc;
  border: 2px solid #cccccc;
  color: #666666;
  cursor: not-allowed;
}

/* 更新日志样式 */
.update-log-content {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 15px;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #495057;
  white-space: pre-line;
  font-variant-numeric: tabular-nums;
  text-align: left;
  max-height: 300px;
  overflow-y: auto;
}

.versionLog {
  cursor: pointer;
  transition: all 0.3s ease;
}

.versionLog:hover {
  text-decoration: underline;
  // opacity: 0.8;
}

.download-btn.disabled:hover {
  background: #cccccc;
  color: #666666;
}

/* 产品图片放大镜效果 */
.img-magnifier-container {
  position: relative;
}

.img-magnifier-glass {
  position: absolute;
  // border: 3px solid #000;
  // border-radius: 50%;
  cursor: none;
  /* 设置放大镜大小 */
  width: 600px;
  height: 600px;
  z-index: 1000;
  /* 初始隐藏放大镜 */
  display: none;
  background-repeat: no-repeat;
  background-clip: border-box;
  background-color: white;
  /* 添加阴影效果 */
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.85),
    0 0 7px 7px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

/* 确保商品大图容器有相对定位 */
.product-large-img {
  position: relative;
  overflow: visible;
}

.cursor-zoom-in {
  cursor: zoom-in;
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .img-magnifier-glass {
    width: 360px;
    height: 360px;
  }
}

@media (max-width: 768px) {
  .img-magnifier-glass {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 576px) {
  .img-magnifier-glass {
    display: none !important; /* 在小屏幕上禁用放大功能 */
  }
}

.menu {
  width: 250px;
  padding: 15px;
  background: #f7f7f7;
  border-right: 1px solid #e5e5e5;
  height: calc(100vh - 70px);
  overflow-y: auto;
}
.menu-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
}
.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu-item {
  margin-bottom: 10px;
}
.menu-item a {
  display: block;
  padding: 8px 10px;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
}
.menu-item a:hover {
  background-color: #e9e9e9;
}
.menu-item.active a {
  background-color: #5bb247;
  color: white;
}

.gc-header {
  word-break: normal;
}

/* 返回顶部按钮样式 */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: #5bb247;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#back-to-top::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border: 8px solid #fff;
  border-top-width: 8px;
  border-bottom-width: 10px;
  border-left-color: transparent;
  border-right-color: transparent;
  border-top-color: transparent;
  transform: translate(-50%, -75%);
}

#back-to-top:hover {
  transform: translateY(-3px);
}

#back-to-top i {
  font-size: 18px;
  line-height: 40px;
}

@media (min-width: 992px) {
  #navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  #navbar .dropdown-menu {
    top: 100%;
    left: 0;
    margin-top: 0;
  }
  #navbar .nav-link {
    padding-bottom: 0.125rem;
  }
}
