@charset "UTF-8";

/* ==========================================================================
   Quantity Buttons CSS
   ========================================================================== */
.single_add_to_cart_button {
  text-transform: unset !important;
  letter-spacing: unset !important;
  font-weight: 600 !important;
  background: var(--wci-color) !important;
  transition: all 0.3s ease;
  text-align: center;

  &:hover {
    opacity: 0.9 !important;
  }
}

.wpcsb-atc button {
  text-transform: unset !important;
  letter-spacing: unset !important;
  font-weight: 500 !important;
  min-height: 45px;
}

.product-price-wrapper ins {
  text-decoration: unset;
}

.s-product-box-header__bottom .is-flex.is-align-items-center {
  margin-top: 0px;
}

.qty-wrapper {
  display: flex !important;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  max-width: 140px;
  justify-content: space-between;
}

.qty-btn {
  background: #f8f8f8 !important;
  border: none !important;
  width: 35px !important;
  height: 45px !important;
  cursor: pointer;
  font-size: 18px !important;
  font-weight: bold;
  color: #666 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  outline: none;
}

.qty-btn:hover {
  background: #e8e8e8 !important;
  color: #333 !important;
}

.qty-btn:active {
  background: #ddd !important;
  transform: scale(0.95);
}

.qty-btn:focus {
  background: #e8e8e8 !important;
  box-shadow: inset 0 0 0 2px #0c3133;
}

.qty-wrapper input[type=number] {
  border: none !important;
  width: 40px !important;
  height: 45px !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: bold;
  background: white !important;
  margin: 0 !important;
  padding: 0 5px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none;
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  color: #000 !important;
}

.qty-wrapper input[type=number]:focus {
  background: #f9f9f9 !important;
  box-shadow: inset 0 0 0 1px #0c3133 !important;
}

/* Ẩn spinner mặc định của input number */
.qty-wrapper input[type=number]::-webkit-outer-spin-button,
.qty-wrapper input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-wrapper input[type=number] {
  -moz-appearance: textfield;
}

/* Hiệu ứng loading khi đang xử lý */
.qty-wrapper.loading {
  opacity: 0.7;
}

.qty-wrapper.loading .qty-btn {
  pointer-events: none;
}

.qty-wrapper.loading input[type=number] {
  pointer-events: auto !important;
}

.qty-wrapper.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007cba;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}



/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .qty-wrapper {
    border-color: #555;
  }

  .qty-btn {
    background: #333 !important;
    color: #ccc !important;
  }

  .qty-btn:hover {
    background: #444 !important;
    color: #fff !important;
  }

  .qty-wrapper input[type=number] {
    background: #222 !important;
    color: #fff !important;
  }
}

/* Quà tặng và sản phẩm gợi ý */
.s-gift-item,
.s-pro-buy-item {
  display: flex;
  gap: 15px;
  padding: 0px 12px 12px;
}

.s-gift-item .s-gift-image,
.s-pro-buy-image img {
  width: 70px;
  height: 70px;
  border-radius: 4px;
  border: 1px solid #eee;
  flex-shrink: 0;
  overflow: hidden;
}

.s-pro-buy-image {
  width: 70px;
  flex-shrink: 0;
}

.s-gift-name h4,
.s-pro-buy-name a {
  color: #313638;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}

.s-gift-price span,
.s-out-of-stock {
  font-size: 14px;
  color: #E02B20;
  font-weight: 600;
}

.option__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.option__title span {
  color: #d70018;
}

.list-option__head {
  align-items: center;
  background-clip: padding-box, border-box;
  background-image: linear-gradient(90deg, #fff5c7, #fffced), linear-gradient(90deg, #ffe880, #fffcb0);
  background-origin: border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  font-size: 15px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 4px 8px;
  width: 100%;
  font-weight: 600;
}

.list-option__head img {
  width: 30px;
}

.s-gift-container,
.s-pro-buy-container {
  border: 1px solid rgba(49, 54, 56, 0.2588235294);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.s-pro-buy-container .list-option__head {
  /* background-image: linear-gradient(90deg, #e6f7f4, #f0faf8), linear-gradient(90deg, #009981, #33b39a); */
  background-image: linear-gradient(90deg, #fce6e8, #fef0f1), linear-gradient(90deg, #d70018, #e63350);
}

a.s-add-to-cart-btn {
  border-radius: 48px;
  border: 1px solid rgba(49, 54, 56, 0.2588235294);
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
}

a.s-add-to-cart-btn:hover {
  background-color: #f0f0f0;
  border-color: rgba(49, 54, 56, 0.2588235294);
}

.s-pro-buy-details>div {
  margin-bottom: 10px;
}

.s-pro-buy-price {
  font-weight: 600;
  font-size: 14px;
}

.s-pro-buy-price del {
  color: #999;
}

.s-pro-buy-price ins span {
  color: #E02B20 !important;
}

/* ===========================
   Quà ưu đãi độc quyền
=========================== */
.wci-exclusive-container {
  border: 1px solid rgba(49, 54, 56, 0.25);
  border-radius: 8px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.wci-exclusive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-image: linear-gradient(140deg, #1d1f24, #101314 24%, #040505 64%, #0d0e0f 80%, #181b1f);
  background-clip: padding-box, border-box;
  background-origin: border-box;
  border-bottom: 1px solid rgba(49, 54, 56, 0.1);
}

.wci-exclusive-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  background: #e63350;
  border-radius: 4px;
  padding: 8px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.wci-exclusive-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #e63350;
  border-radius: 4px;
  padding: 8px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.wci-exclusive-list {
  padding: 4px 0;
}

.wci-exclusive-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(49, 54, 56, 0.08);
}

.wci-exclusive-item:last-child {
  border-bottom: none;
}

.wci-exclusive-img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #eee;
}

.wci-exclusive-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wci-exclusive-details {
  flex: 1;
  min-width: 0;
}

.wci-exclusive-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wci-exclusive-info {
  flex: 1;
  min-width: 0;
}

.wci-exclusive-name a {
  font-size: 1rem;
  font-weight: 600;
  color: #313638;
  line-height: 1.3;
  display: block;
  margin-bottom: 3px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.wci-exclusive-name a:hover {
  color: var(--wci-color);
  text-decoration: underline;
}

.wci-exclusive-sub {
  font-size: 12px;
  color: red;
}

.wci-exclusive-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .wci-exclusive-top {
    flex-wrap: wrap;
  }

  .wci-exclusive-right {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.wci-exclusive-price {
  font-size: 14px;
  font-weight: 700;
  color: #E02B20;
  white-space: nowrap;
}

.wci-exclusive-price .woocommerce-Price-amount {
  color: #E02B20;
}

.wci-exclusive-btn {
  display: inline-block;
  background-color: #FFD700;
  color: #000 !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.wci-exclusive-btn:hover {
  background-color: #FFA000;
  color: #fff !important;
}

.wci-exclusive-btn--out {
  background-color: #999;
  cursor: default;
}

.wci-exclusive-footer {
  font-size: 12px;
  color: #666;
  padding: 8px 14px 10px;
  font-style: italic;
  border-top: 1px solid rgba(49, 54, 56, 0.08);
  background-color: #fafafa;
}

.s-product-box-header__bottom,
.s-product-box-header__bottom .box-bottom-item a {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.s-product-box-header__bottom {
  gap: 15px;
}

.s-product-box-header__bottom .box-bottom-item a {
  gap: 5px;
}

.s-product-box-header__bottom .box-bottom-item span {
  margin-bottom: 0px;
  color: #3b82f6;
  font-size: 15px;
}

.s-product-box-header__bottom .box-rating {
  font-size: 15px;
}

.s-product-box-header__bottom .box-rating svg {
  width: 20px;
  height: 20px;
  fill: #fbbf24;
}

.s-product-box-header__bottom .box-rating .total-rating {
  color: #71717a;
  font-weight: 400;
}

body.woocommerce div.product p.stock {
  font-size: 20px;
  font-weight: 600;
  padding: 10px 0px;
}

img.product_video_img.img_0.attachment-thumbnail.size-thumbnail {
  height: 50px !important;
}

/* background: linear-gradient(to right, #22c55e, #16a34a) !important;
background: linear-gradient(to right, #faab08, #d42611); */
.item-warranty-info {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
  align-items: center;
  font-size: 15px;
}

.item-warranty-info svg {
  width: 24px;
  flex-shrink: 0;
}

.item-warranty-info a {
  color: #3b82f6;
}

.warranty-content {
  padding: 0px 12px;
}

#tskt,
section.home-viewed-products h2,
.commitment {
  font-size: 20px;
  font-weight: 600;
  margin: 1rem 0px;
}

.commitment {
  margin-bottom: 1rem;
}

.box-warranty {
  margin: 2rem 0px;
}

.s-product-left {
  position: sticky;
  top: 30px;
}

@media (max-width: 991px) {
  .s-product-left {
    position: relative;
    top: 0;
  }
}

/* Single Prduct Custom CSS */
.single-product .product-main-wrapper,
.single-product .product-details-wrapper {
  display: flex;
  gap: 50px;
}

.single-product .product-col {
  width: calc(50% - 15px);
}

.single-product h1.product-title {
  font-family: "Roboto", Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #0c3133 !important;
  text-align: left;
  padding: 1rem 0px;
}

.single-product .product-breadcrumb-section {
  margin: 20px 0px;
}

.single-product .product-breadcrumb-section .woocommerce-breadcrumb {
  color: #0c3133 !important;
  font-weight: 600;
}

.single-product .product-breadcrumb-section .woocommerce-breadcrumb a {
  color: #0c3133 !important;
  font-weight: 600;
  font-size: 14px;
}

.single-product .product-price-wrapper {
  font-size: 18px;
  font-weight: bold;
  margin: 1rem 0px;
}

.single-product .product-price-wrapper del {
  color: #999;
  font-weight: bold;
}

.single-product .product-price-wrapper bdi {
  color: #E02B20 !important;
  font-weight: bold;
}

.single-product .product-price-wrapper del bdi {
  color: #999 !important;
  font-weight: bold;
}

.single-product .product-price-wrapper ins bdi {
  color: #E02B20 !important;
  font-weight: bold;
}

.single-product .product-add-to-cart .wpcsb-id {
  display: none;
}

.single-product .product-add-to-cart form,
.single-product .product-add-to-cart .woocommerce-variation-add-to-cart {
  display: flex;
  gap: 1rem;
  justify-content: start;
  margin-bottom: 1rem;
}

.single-product .product-add-to-cart form button,
.single-product .product-add-to-cart .woocommerce-variation-add-to-cart button {
  text-transform: unset !important;
}

.single-product .product-video {
  margin-top: 1rem;
}

.single-product .product-tabs-wrapper .woocommerce-tabs {
  box-shadow: 6px 6px 18px 0px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  overflow: hidden;
}

.single-product .product-tabs-wrapper .woocommerce-tabs .tabs {
  background-color: #f4f4f4;
  display: flex;
  list-style: none;
}

.single-product .product-tabs-wrapper .woocommerce-tabs .tabs li a {
  padding: 4px 30px;
  display: block;
  background-color: #686868;
  color: #fff;
  font-weight: bold;
}

.single-product .product-tabs-wrapper .woocommerce-tabs .tabs li.active a {
  background-color: #000;
}

.single-product .product-tabs-wrapper .woocommerce-tabs .woocommerce-Tabs-panel {
  padding: 1rem;
  font-size: 1rem;
  position: relative;

}

.single-product .product-tabs-wrapper .woocommerce-tabs .woocommerce-Tabs-panel h2,
.single-product .product-tabs-wrapper .woocommerce-tabs .woocommerce-Tabs-panel h3 {
  font-weight: bold;
}

.single-product .product-details-section {
  display: flex;
  gap: 30px;
}

.single-product .product-details-section .product-tabs-wrapper,
.single-product .product-details-section .product-shipping-wrapper {
  min-width: 0;
}

.single-product .product-details-section .product-tabs-wrapper {
  flex: 6;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.single-product .product-details-section .product-shipping-wrapper {
  flex: 4;
  position: sticky;
  top: 140px;
  height: max-content;
  /* max-height: 500px; */
  overflow: hidden;
}

.single-product .product-details-section .product-shipping-wrapper.expanded {
  max-height: none;
  overflow: visible;
}

/* .single-product .product-details-section .product-shipping-wrapper:not(.expanded)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
  z-index: 1;
} */

.single-product .toggle-shipping-btn {
  /* display: none; */
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-decoration: underline;
  color: #0071a1;
  font-size: 1rem;
  white-space: nowrap;
  border: none;
}

.single-product .product-details-section .product-shipping-wrapper.expanded .toggle-shipping-btn {
  bottom: -40px;
}

.single-product #prod-full-desc:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
  z-index: 1;
}

.single-product .toggle-full-desc-btn {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-decoration: underline;
  color: #0071a1;
  font-size: 1rem;
}

.single-product .product-upsell-section {
  margin: 2rem 0px;
}

.single-product .product-sticky {
  position: sticky;
  top: 120px;
}

.single-product p.stock {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: red;
}

/* Cart toast notification */
.s-cart-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #fff;
  color: #1c1e21;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  z-index: 99999;
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.s-cart-toast .s-toast-icon {
  width: 22px;
  height: 22px;
  background: #42b72a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.s-cart-toast .s-toast-icon::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.s-cart-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Loading/added states for s-add-to-cart-btn */
a.s-add-to-cart-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

a.s-add-to-cart-btn.added {
  border-color: #155724;
  color: #155724;
}

.woocommerce .comment-form-rating p.stars a {
  color: #ff9f00;
}

/* Shortcode woo upsell */
.woo-upsell-slider-wrapper {

  /* margin: 2rem 0; */
  .splide__arrow {
    background-color: #fff;
    opacity: 1;
    border: 1px solid #ddd;

    svg {
      fill: #000;
    }
  }
}

.upsell-title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.upsell-product-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  /* padding: 1rem; */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}


.upsell-product-item .product-image {
  position: relative;
  height: 220px;
  padding: 5px;
  /* margin-bottom: 1rem; */
}

.upsell-product-item .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* border-radius: 4px; */
}

.upsell-product-item .sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #E02B20;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: bold;
}

.upsell-product-item .product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0px 10px 10px;
}

.upsell-product-item .product-title {
  margin: 0px;
  font-size: 1rem !important;
  line-height: 1.3;
  text-align: left;
  font-weight: 600;
  flex: 1;
  padding: 5px;

}

.upsell-product-item .product-title a {
  text-decoration: none;
  color: #0c3133;
}

.upsell-product-item .product-title a:hover {
  /* color: #0073aa; */
  opacity: 0.8;
}

.upsell-product-item .product-rating {
  margin-bottom: 0px;
  /* color: #f2c100; */
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 1rem !important;

  .count-rating {
    color: var(--wci-color);
  }
}

.upsell-product-item .product-price {
  /* margin-bottom: 1rem; */
  font-weight: bold;
  font-size: 14px;
  text-align: left;
  color: #E02B20;
}

.upsell-product-item {
  .star-rating span:before {
    color: #f2c100 !important;
  }
}

.product-price del {
  color: #666;
  margin-right: 5px;
  opacity: 0.5;
}

.upsell-product-item .product-price ins {
  color: #E02B20;
}

.upsell-product-item .product-actions {
  margin-top: auto;
}

.upsell-product-item {
  .upsell-rating-count {
    font-size: 14px;
  }
}

/* Shortcode videos */
.xw-product-videos {
  margin: 10px -8px;

  .splide__arrow {
    background-color: #fff;
    opacity: 1;

    &:hover {
      opacity: 0.8;
      background-color: #fff;
    }
  }
}

.xw-video-item {
  padding: 0 8px;
  cursor: pointer;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.v-title {
  padding: 8px 0px;
  font-size: 15px;
  font-weight: bold;
  color: var(--wci-color);
}

.xw-video-item .video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.video-thumbnail:hover {
  transform: scale(1.05);
}

.play-button {
  transition: transform 0.3s ease;

  svg {
    width: 35px;
    height: 35px;
  }
}

.play-button:hover {
  transform: scale(1.1);
}

/* Modal Styles - Sử dụng z-index cực cao */
.xw-video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  /* Z-index cực cao */
  pointer-events: none;
  /* Tránh block các element khác khi ẩn */
}

.xw-video-modal.active {
  pointer-events: auto;
  /* Cho phép tương tác khi hiển thị */
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  color: #666;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #000;
}

.modal-body {
  display: flex;
  height: 600px;
}

.main-video {
  flex: 2;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  transition: padding-bottom 0.3s ease;
}

/* Default - YouTube 16:9 */
.video-container.youtube {
  padding-bottom: 56.25%;
  /* 9/16 = 0.5625 */
}

/* TikTok 9:16 */
.video-container.tiktok {
  padding-bottom: 75%;
  /* 16/9 = 1.7778 */
  /* max-width: 300px; */
  margin: 0 auto;
}

div[data-e2e="video-v2-Card-CardBanner"],
div[data-e2e="video-v2-Card-CardInfo"] {
  display: none !important;
}

.video-container.default {
  padding-bottom: 56.25%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.video-playlist {
  flex: 1;
  background: #f8f9fa;
  border-left: 1px solid #dee2e6;
  display: flex;
  flex-direction: column;
}

.video-playlist h4 {
  margin: 0;
  padding: 20px;
  border-bottom: 1px solid #dee2e6;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.playlist-items {
  flex: 1;
  overflow-y: auto;
}

.playlist-item {
  display: flex;
  padding: 15px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background 0.3s ease;
}

.playlist-item:hover {
  background: #e9ecef;
}

.playlist-item.active {
  background: rgba(12, 49, 51, 0.9);
  color: white;
}

.playlist-thumbnail {
  position: relative;
  width: 80px;
  height: 45px;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 12px;
  flex-shrink: 0;
}

.playlist-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  opacity: 0.8;
  display: flex;
  align-items: center;

  svg {
    width: 24px;
    height: 24px;
  }
}

.playlist-info {
  display: flex;
  align-items: center;
}

.playlist-title {
  font-weight: 500;
}

/* Splide custom styles */
.splide__arrow {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.splide__arrow svg {
  fill: white;
}

.splide__arrow:hover {
  background: rgba(0, 0, 0, 0.9);
}

.splide__pagination__page {
  background: #ccc;
  width: 10px;
  height: 10px;
}

.splide__pagination__page.is-active {
  background: #007cba;
}

/* Responsive */
@media (max-width: 992px) {
  .modal-body {
    flex-direction: column;
    height: auto;
  }

  .main-video {
    flex: none;
    height: 300px;
  }

  .video-playlist {
    border-left: none;
    border-top: 1px solid #dee2e6;
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .xw-video-item {
    padding: 0 4px;
  }

  .modal-content {
    margin: 10px;
    max-height: 95vh;
  }

  .playlist-item {
    padding: 10px;
  }

  .playlist-thumbnail {
    width: 60px;
    height: 34px;
  }
}

/* Force modal to be on top of everything */
/* .xw-video-modal * {
            z-index: inherit;
        } */
@media (max-width:991px) {
  .xw-video-modal {
    z-index: 99999999999 !important;

    /* Đảm bảo modal luôn ở trên cùng */
    .modal-overlay {
      padding: 0px;
    }

    .main-video {
      padding: 8px;
    }

    .modal-close {
      top: 0px;
      right: 0px;
    }
  }
}

/* End Shortcode videos */


/* Responsive */
@media (max-width: 768px) {
  .upsell-product-item {

    /* padding: 0.75rem; */
    .product-info {
      padding: 0.5rem;
    }
  }

  .upsell-product-item .product-title {
    margin: 0px;
    padding: 0px;
  }

  .upsell-product-item .product-image {
    height: unset;
  }

  .upsell-product-item .button {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .upsell-product-item .product-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
  }

  .upsell-rating-count {
    display: flex;
    gap: 5px;

    .count-rating {
      font-size: 11px;

    }
  }
}

/* End shortcode upsell */


/* Compare css */
#ss-now {
  position: fixed;
  bottom: 150px;
  left: 20px;
  z-index: 9999;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 50px;
  padding: 10px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: none;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
}

#ss-now {
  color: #288ad6;
}

#ss-now:hover {
  background: #f8f8f8;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#ss-now .iconcate-ss {
  margin-right: 8px;
}

#count-ss {
  color: #ff6b6b;
  font-weight: bold;
}

.single-product {
  .button.buy_now_button {
    background: var(--wci-color);
    color: #fff;
    text-align: center;
    transition: all 0.3s ease;

    &:hover {
      background: var(--wci-color);
      opacity: 0.9;
      color: #fff;
    }
  }
}

@media (max-width: 991px) {
  .single-product .container {
    width: calc(100% - 30px);
  }

  .single-product .product-main-wrapper,
  .single-product .product-details-wrapper {
    flex-direction: column;
    gap: 0px;
  }

  .single-product .product-col {
    width: 100%;
  }

  .single-product form,
  .single-product .woocommerce-variation-add-to-cart {
    flex-wrap: wrap;
  }

  .single-product form .quantity,
  .single-product .woocommerce-variation-add-to-cart .quantity {
    width: 100% !important;
  }

  .single-product form button,
  .single-product .woocommerce-variation-add-to-cart button {
    width: 47% !important;
    height: 45px !important;
    font-size: 14px !important;
  }

  .single-product form .search-button button {
    width: 40px !important;
  }

  .single-product #button-contact-vr,
  .tax-product_cat #button-contact-vr {
    display: none;
  }
}



/* Custom Product Gallery Styles */
/* ================================ */

/* Gallery Container */
.cpg-container {
  max-width: 100%;
  margin: 0 auto;

}

/* Main Gallery */
.cpg-main-gallery {
  margin-bottom: 15px;
  position: relative;
  background: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
}

.cpg-main-gallery .splide__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 400px;
  /* min-height: 400px; */
  background: #fff;
}

.cpg-main-gallery .cpg-slide-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s ease;
  height: 100%;
}

.cpg-main-gallery .cpg-slide-img:hover {
  transform: scale(1.02);
}

/* Video Slide */
.cpg-video-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.cpg-video-placeholder {
  position: relative;
  width: 100%;
  max-width: 100%;
  cursor: pointer;
}

.cpg-video-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

.cpg-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.cpg-play-btn:hover {
  background: rgba(255, 0, 0, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.cpg-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 25px solid #fff;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  margin-left: 5px;
}

/* Video Iframe */
.cpg-video-iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* Thumbnails Gallery */
.cpg-thumbs-gallery {
  padding: 0 10px;
}

.cpg-thumbs-gallery .splide__slide {
  opacity: 0.6;
  transition: opacity 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
}

.cpg-thumbs-gallery .splide__slide.is-active {
  opacity: 1;
  border-color: #ff6b00;
}

.cpg-thumbs-gallery .splide__slide:hover {
  opacity: 1;
}

.cpg-thumb-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  background: #f5f5f5;
}

.cpg-thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video Thumbnail Icon */
.cpg-thumb-video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 35px;
  height: 35px;
  background: rgba(255, 0, 0, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.cpg-thumb-video-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 12px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 3px;
}

/* Splide Arrows */
.cpg-main-gallery .splide__arrow,
.cpg-thumbs-gallery .splide__arrow {
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.cpg-main-gallery .splide__arrow.splide__arrow--next {
  right: 0px;
}

.cpg-main-gallery .splide__arrow.splide__arrow--prev {
  left: 0px;
}

.cpg-thumbs-gallery .splide__arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.cpg-main-gallery .splide__arrow .cpg-main-gallery .splide__arrow svg,
.cpg-thumbs-gallery .splide__arrow svg {
  fill: #fff;
}

.cpg-thumbs-gallery .splide__arrow {
  width: 30px;
  height: 30px;
}

/* ========================================
   Lightbox Popup - 2 Column Layout
   ======================================== */

.cpg-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999999999999999999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cpg-lightbox.active {
  display: block;
  opacity: 1;
}

/* Lightbox Container - 2 Column Layout */
.cpg-lightbox-container {
  display: flex;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  gap: 20px;
}

/* Left Column - Main Image */
.cpg-lightbox-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
}

.cpg-lightbox-left.dragging {
  cursor: grabbing;
}

.cpg-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: scale(1);
  transition: transform 0.3s ease, opacity 0.3s ease;
  user-select: none;
  opacity: 1;
}

/* Image transition animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cpg-lightbox-img.changing {
  animation: slideIn 0.3s ease;
}

/* Video in Lightbox Left */
.cpg-lb-video-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cpg-lb-video-container .cpg-lb-video-iframe {
  width: 100%;
  height: 100%;
  max-height: 90vh;
  border: none;
}

/* Image Controls (Prev/Next on Left) */
.cpg-lb-img-prev,
.cpg-lb-img-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: #0c3133;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.cpg-lb-img-prev {
  left: 30px;
}

.cpg-lb-img-next {
  right: 30px;
}

.cpg-lb-img-prev:hover,
.cpg-lb-img-next:hover {
  opacity: 0.8;
  /* transform: translateY(-50%) scale(1.1); */
}

/* Zoom Controls (Bottom Left) */
.cpg-lb-zoom-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 15px;
  border-radius: 25px;
  z-index: 2;
}

.cpg-lb-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cpg-lb-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* Right Column - Product Info & Gallery */
.cpg-lightbox-right {
  width: 380px;
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
}

/* Product Info */
.cpg-lb-product-info {
  padding: 20px;
  border-bottom: 1px solid #333;
}

.cpg-lb-product-name {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

/* Gallery Section */
.cpg-lb-gallery-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cpg-lb-gallery-title {
  padding: 15px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #333;
}

.cpg-lb-gallery-grid {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-content: start;
}

/* Custom Scrollbar */
.cpg-lb-gallery-grid::-webkit-scrollbar {
  width: 6px;
}

.cpg-lb-gallery-grid::-webkit-scrollbar-track {
  background: #2a2a2a;
}

.cpg-lb-gallery-grid::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 3px;
}

.cpg-lb-gallery-grid::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* Gallery Thumbnail */
.cpg-lb-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  background: #2a2a2a;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.cpg-lb-thumb:hover {
  border-color: #666;
}

.cpg-lb-thumb.active {
  border-color: #ff6b00;
}

.cpg-lb-thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cpg-lb-thumb-video {
  position: relative;
}

.cpg-lb-thumb-video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.cpg-lb-thumb-video-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 10px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 2px;
}

/* Close Button */
.cpg-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
}

.cpg-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 1024px) {
  .cpg-lightbox-right {
    width: 320px;
  }

  .cpg-lb-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cpg-lightbox-close {
    background: #0c3133;
  }
}

@media (max-width: 768px) {
  .cpg-lightbox-container {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
  }

  .cpg-lightbox-left {
    height: 50vh;
    background: #fff;
  }

  .cpg-lightbox-right {
    width: 100%;
    height: 45vh;
  }

  .cpg-lb-img-prev,
  .cpg-lb-img-next {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .cpg-lb-img-prev {
    left: 10px;
  }

  .cpg-lb-img-next {
    right: 10px;
  }

  .cpg-lb-zoom-controls {
    bottom: 10px;
    padding: 6px 12px;
  }

  .cpg-lb-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .cpg-lb-product-name {
    font-size: 16px;
  }

  .cpg-lb-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .cpg-lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .cpg-main-gallery .splide__slide {
    min-height: 250px;
  }

  .cpg-video-iframe {
    min-height: 250px;
  }

  .cpg-thumbs-gallery {
    padding: 0 5px;
  }

  .cpg-lightbox-container {
    padding: 5px;
  }

  .cpg-lb-product-info {
    padding: 15px;
  }

  .cpg-lb-video-section {
    padding: 10px 15px;
  }

  .cpg-lb-gallery-grid {
    padding: 10px 15px;
  }
}

/* Badge ngừng kinh doanh */
.discontinued-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dc3545;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 15px;
}

.discontinued-badge__icon {
  font-size: 18px;
  line-height: 1;
}

/* Thông báo */
.discontinued-message {
  background: #f8d7da;
  border: 1px solid #f1aeb5;
  border-radius: 4px;
  padding: 1rem;
  margin: 20px 0;
}

.discontinued-message>p {
  margin: 0 0 0 0;
}

.discontinued-message>p:last-child {
  margin-bottom: 0;
}

.discontinued-message strong {
  color: #58151c;
}

/* Sản phẩm thay thế */
.replacement-product {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: #fff;
  padding: 15px;
  border-radius: 4px;
  margin-top: 15px;
}

.replacement-product__image {
  flex: 0 0 100px;
  width: 100px;
}

.replacement-product__image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.replacement-product__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.replacement-product__name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.replacement-product__name a {
  color: #333;
  text-decoration: none;
}


.replacement-product__price {
  font-size: 18px;
  font-weight: 700;

}

.replacement-product__button {
  align-self: flex-start;
  padding: 8px 20px;
  font-size: 14px;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 600px) {
  .replacement-product {
    flex-direction: column;
  }

  .replacement-product__image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 150px;
    margin: 0 auto;
  }
}

/* Ẩn các elements không cần thiết khi ngừng kinh doanh */
.product-discontinued .woocommerce-variation-add-to-cart,
.product-discontinued .single_add_to_cart_button {
  display: none !important;
}

/* Viewed Products */
.home-viewed-products {
  margin: 20px 0;
  position: relative;
}

.home-viewed-products h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  display: inline-block;
}

.btn-clear-history {
  float: right;
  color: #98a2b3;
  cursor: pointer;
  font-size: 14px;
  margin: 0;
  padding: 5px 10px;
  border-radius: 4px;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-clear-history:hover {
  color: #E02B20;
}

.recently-viewed-splide {
  margin-top: 20px;
}

.viewed-product {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin: 0 5px;
  transition: box-shadow 0.3s ease;
  background: white;
  height: 100%;
}

.viewed-product:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.close-itemv3 {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background: #98a2b3;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.close-itemv3:before {
  content: '×';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.viewed-product:hover .close-itemv3 {
  opacity: 1;
}

.close-itemv3:hover {
  background: #cc0000;
}

.main-contain {
  text-decoration: none;
  color: inherit;
  display: block;
}

.viewed-product-content {
  text-align: center;
  display: flex;
  gap: 10px;
}

.viewed-product-content img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.viewed-product-info {
  min-height: 65px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: flex-start;
  text-align: left;
}

.viewed-product-title {
  font-size: 14px;
  font-weight: 500;
  margin: 0px;
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.viewed-product-price {
  font-size: 14px;
  font-weight: bold;
  color: #E02B20;
  margin: 0;
  font-weight: 600;
}

.viewed-product-price del {
  color: #666;
  opacity: 0.7;
}

.viewed-product-price ins {
  color: #E02B20;
  text-decoration: none;
}

/* Splide customizations */
.splide__arrow {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.splide__arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.splide__arrow svg {
  fill: white;
}

.splide__arrow--prev {
  left: -20px;
}

.splide__arrow--next {
  right: -20px;
}

.recently-viewed-splide .splide__arrow--prev {
  left: -0px;

}

.recently-viewed-splide .splide__arrow--next {
  right: 0px;

}

/* Responsive */
@media (max-width: 768px) {
  .home-viewed-products h2 {
    font-size: 20px;
    display: block;
    margin-bottom: 15px;
  }

  .btn-clear-history {
    display: flex;
    margin-top: 10px;
    text-align: right;
    justify-content: flex-end;
    float: none;
  }

  .viewed-product {
    margin: 0 2px;
    padding: 10px;
  }

  .viewed-product-content img {
    width: 80px;
    height: 80px;
  }

  .viewed-product-title {
    font-size: 13px;
    height: 35px;
  }

  .viewed-product-price {
    font-size: 14px;
  }
}

/* ==========================================================================
   Sticky Add-to-Cart Bar
   ========================================================================== */
.wci-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.wci-sticky-bar--visible {
  transform: translateY(0);
}

.wci-sticky-bar__image {
  flex-shrink: 0;
}

.wci-sticky-bar__container {
  max-width: 800px;
  margin: 1rem auto;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  box-shadow: 0 20px 32px -24px rgb(0 0 0 / .06), 0 0 36px 0 rgb(0 0 0 / .11);
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

.wci-sticky-bar__prices {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.wci-sticky-bar__product {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.wci-sticky-bar__image img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.wci-sticky-bar__name {
  font-weight: 600;
  font-size: 1rem;
  overflow: hidden;
  line-height: 1.3;
  margin-bottom: 10px;
}

.wci-sticky-bar__price ins {
  text-decoration: none;
  font-weight: 700;
  color: red;
  font-size: 15px;
}

.wci-sticky-bar__price del {
  font-size: 12px;
  color: #999;
  margin-right: 4px;
}

.wci-sticky-bar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.wci-sticky-bar__qty .qty-wrapper {
  max-width: 110px;
}

.wci-sticky-bar__btns {
  display: flex;
  gap: 8px;
}

.wci-sticky-bar__buy-now.button,
.wci-sticky-bar__buy-now {
  background: var(--wci-color, #c0392b) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600 !important;
  white-space: nowrap;
  padding: 10px 20px !important;
  border-radius: 4px !important;
  text-transform: unset !important;
  letter-spacing: unset !important;
  cursor: pointer;
  transition: opacity 0.2s;
}

.wci-sticky-bar__buy-now:hover {
  opacity: 0.88;
}

.wci-sticky-bar__add-to-cart.button,
.wci-sticky-bar__add-to-cart {
  background: #fff !important;
  color: var(--wci-color, #c0392b) !important;
  border: 1.5px solid var(--wci-color, #c0392b) !important;
  font-weight: 600 !important;
  white-space: nowrap;
  padding: 10px 20px !important;
  border-radius: 4px !important;
  text-transform: unset !important;
  letter-spacing: unset !important;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.wci-sticky-bar__add-to-cart:hover {
  background: var(--wci-color, #c0392b) !important;
  color: #fff !important;
}

.wci-sticky-bar__price {
  color: red;
  font-weight: bold;
}

@media (max-width: 768px) {
  .wci-sticky-bar__label {
    display: block !important;
  }

  .wci-sticky-bar__name {
    font-size: 1rem;
    text-wrap: wrap;
  }

  .wci-sticky-bar__image {
    flex-shrink: 0;
  }

  .wci-sticky-bar__container {
    padding: 12px;
    gap: 8px;
    margin: 0px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 24px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
  }

  .wci-sticky-bar__buy-now,
  .wci-sticky-bar__add-to-cart {
    padding: 9px 14px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 480px) {

  .wci-sticky-bar__btns {
    width: 100%;
  }

  .wci-sticky-bar__buy-now,
  .wci-sticky-bar__add-to-cart {
    flex: 1;
    text-align: center;
  }
}

/* =========================================================
   Popup Chi tiết sản phẩm
   ========================================================= */
.prod-desc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999999;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

.prod-desc-modal-overlay.is-open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.prod-desc-modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 860px;
  margin: auto;
  position: relative;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .18);
  animation: prodDescFadeIn .2s ease;
  max-height: 85vh;
  overflow-y: scroll;
}

@keyframes prodDescFadeIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prod-desc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.prod-desc-modal__head h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.prod-desc-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #555;
  padding: 0 4px;
}

.prod-desc-modal__close:hover {
  color: #000;
}

.prod-desc-modal__body {
  padding: 20px;
  max-height: 75vh;
  overflow-y: auto;
}

.prod-desc-modal__body {
  img {
    object-fit: contain;
  }

  figure {
    max-width: 100%;
  }
}

/* TOC bar - sticky dưới header modal */
.prod-desc-toc-bar {
  position: relative;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  z-index: 2;
}

.prod-desc-toc-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #1d4ed8;
  text-align: left;
}

.prod-desc-toc-toggle:hover {
  background: #f0f4ff;
}

.prod-desc-toc-arrow {
  margin-left: auto;
  transition: transform .2s;
}

.prod-desc-toc-toggle.is-open .prod-desc-toc-arrow {
  transform: rotate(180deg);
}

/* Dropdown danh sách mục */
.prod-desc-toc-dropdown {
  display: none;
  list-style: none;
  margin: 0;
  padding: 6px 0 10px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  max-height: 220px;
  overflow-y: auto;
}

.prod-desc-toc-dropdown.is-open {
  display: block;
}

.prod-desc-toc-dropdown li a {
  display: block;
  padding: 5px 20px;
  font-size: 13px;
  color: #1d4ed8;
  text-decoration: none;
  transition: background .15s;
}

.prod-desc-toc-dropdown li a:hover {
  background: #f0f4ff;
}

.prod-desc-toc__h3>a {
  padding-left: 36px !important;
  font-size: 12px !important;
  color: #4b72c8 !important;
}

.wci-sticky-bar__label {
  font-weight: 600;
  display: none;
}

@media (max-width: 991px) {
  .prod-desc-modal {
    position: absolute;
    border: 20px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    bottom: 0px;
  }

  /* .prod-desc-modal{
    max-height: calc(100% - 50px);
  }
  .prod-desc-modal__body{
    max-height: calc(100% - 50px);
  } */
  /* .prod-desc-modal__head{
    position: fixed;
    top: 50px;
    background: #fff;
    width: 100%;
    border-radius: 10px;
  }
  .prod-desc-toc-bar{
    position: fixed;
    top: 100px;  
    width: 100%;
  } */
  /* .prod-desc-content {
      padding-top: 100px;
  } */
  .wci-sticky-bar__image,
  .wci-sticky-bar__name {
    display: none;
  }

  .wci-sticky-bar__product,
  .wci-sticky-bar__info,
  .wci-sticky-bar__prices {
    width: 100%;
  }
}

/* ==========================================================================
   Product FAQ Accordion
   ========================================================================== */
.product-faq {
  margin-top: 16px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  background: #2727270D;
  padding: 2rem;
  border-radius: 8px;
}

.product-faq__title {
  color: #1d1d20;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.product-faq__list {

  overflow: hidden;
}

.product-faq__item {
  background: #fff !important;
  margin-bottom: 10px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.product-faq__item:last-child {
  margin-bottom: 0px;
}

.product-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 16px;
  background: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  gap: 8px;
  transition: background 0.2s;
}

.product-faq__question:hover {
  background: #f9fafb;
}

.product-faq__question[aria-expanded="true"] {
  background: #fff;
  color: var(--wci-color, #0c3133);
}

.product-faq__icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: #888;
}

.product-faq__question[aria-expanded="true"] .product-faq__icon {
  transform: rotate(180deg);
  color: var(--wci-color, #0c3133);
}

.product-faq__answer {
  display: none;
  padding: 0 16px 14px;
  font-size: 1rem;
  color: #444;
  line-height: 1.65;
  background: #fff;
}

.product-faq__answer.is-open {
  display: block;
}

.single-product {
  .single_add_to_cart_button.loading {
    &:after {
      top: 50% !important;
      transform: translateY(-50%) !important;
    }

  }

  .added_to_cart {
    display: none !important;
  }
}


/* Css for woo review */
.shortcode-wcpr-filter-button-verified {
  display: none !important;
}

.shortcode-wcpr-filter-container .shortcode-wcpr-filter-button {
  white-space: nowrap;
  width: auto;
}

.shortcode-wcpr-filter-container+.shortcode-wcpr-pagination {
  display: none !important;
}

.shortcode-wcpr-modal-light-box {
  z-index: 9999999999999999999 !important;
}

.shortcode-wcpr-filter-button-wrap:hover ul.shortcode-wcpr-filter-button-ul {
  display: flex !important;
  flex-direction: column;
}

body .shortcode-wcpr-filter-container li.shortcode-wcpr-filter-button-li a {
  width: 100% !important;
}

body .shortcode-wcpr-grid .shortcode-wcpr-grid-item .shortcode-wcpr-content .shortcode-review-content-container .star-rating {
  width: 6.5em;
  line-height: 20px;
}

.shortcode-wcpr-grid-item {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .qty-wrapper {
    max-width: 120px;
  }

  .wpcsb-atc button {
    font-size: 14px !important;
    white-space: nowrap;
  }

  .et_pb_wc_add_to_cart .single_add_to_cart_button {
    width: 48% !important;
  }

  .product-faq {
    padding: 1rem;
  }
}


/* ============================
               Video Feedback Section
               ============================ */
.product-feedback-video-section {
  padding: 40px 0 32px;
  background: #f9f9fb;

}

.product-feedback-video-section .container {
  overflow: hidden !important;
}

.pfv-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.pfv-title svg {
  flex-shrink: 0;
}

/* Splide overrides */
#pfv-splide .splide__track {
  overflow: visible;
}

#pfv-splide .splide__list {
  align-items: stretch;
}

/* Card */
.pfv-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a2e;
  aspect-ratio: 9/16;
  /* box-shadow: 0 4px 16px rgba(0,0,0,.12); */
  transition: transform .25s ease, box-shadow .25s ease;
}

.pfv-card:hover {
  transform: translateY(-4px);
  /* box-shadow: 0 12px 32px rgba(0, 0, 0, .22); */
}

/* Thumbnail */
.pfv-thumb {
  position: relative;
  width: 100%;
  height: 100%;
}

.pfv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.pfv-card:hover .pfv-thumb img {
  transform: scale(1.05);
}

.pfv-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
}

/* Play overlay */
.pfv-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: rgba(0,0,0,.25); */
  transition: background .25s ease;
}

.pfv-card:hover .pfv-play-overlay {
  background: rgba(0, 0, 0, .4);
}

.pfv-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .35);
  transition: transform .2s ease, background .2s ease;
}

.pfv-play-btn svg {
  margin-left: 3px;
}

/* .pfv-card:hover .pfv-play-btn {
                transform: scale(1.1);
                background: #fff;
            } */
.pfv-play-btn svg path {
  fill: #fff;
}

/* Splide arrows */
#pfv-splide .splide__arrow {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
  opacity: 1;
  width: 36px;
  height: 36px;
}

#pfv-splide .splide__arrow svg {
  fill: #1a1a2e;
}

#pfv-splide .splide__arrow:hover {
  background: #e94560;
}

#pfv-splide .splide__arrow:hover svg {
  fill: #fff;
}

#pfv-splide .splide__pagination {
  bottom: -28px;
}

#pfv-splide .splide__pagination__page {
  background: #d0d0d8;
  width: 8px;
  height: 8px;
  transition: background .2s, transform .2s;
}

#pfv-splide .splide__pagination__page.is-active {
  background: #e94560;
  transform: scale(1.3);
}

/* Modal */
.pfv-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pfv-modal[hidden] {
  display: none;
}

.pfv-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, .85);
  backdrop-filter: blur(6px);
}

.pfv-modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #1a1a2e;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .6);
  animation: pfvModalIn .22s ease;
}

@keyframes pfvModalIn {
  from {
    opacity: 0;
    transform: scale(.93) translateY(16px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pfv-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s;
}

.pfv-modal__close:hover {
  background: #e94560;
}

.pfv-modal__iframe-wrap {
  position: relative;
  padding-bottom: 177.78%;
  /* 9:16 */
  height: 0;
  overflow: hidden;
}

.pfv-modal__iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 767px) {
  .pfv-title {
    font-size: 1.1rem;
  }

  #pfv-splide .splide__arrow {
    display: none;
  }

  .product-feedback-video-section {
    padding: 28px 0 24px;
  }

  .pfv-modal__box {
    max-width: 340px;
  }
}

.single-product .wci-sale-off-offer[hidden],
.single-product .wci-product-standard-price[hidden] { display: none !important; }
.single-product .wci-sale-off-price-card { background: #ffead6; border-radius: 16px; padding: 22px 20px 20px; }
.single-product .wci-sale-off-current { color: #df3026; font-size: 32px; font-weight: 700; line-height: 1.25; }
.single-product .wci-sale-off-from { font-size: 18px; }
.single-product .wci-sale-off-comparison { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: 18px; line-height: 1.4; }
.single-product .wci-sale-off-comparison del { color: #9ca3af; }
.single-product .wci-sale-off-discount { color: #ef2525; }
.single-product .wci-sale-off-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding: 10px 14px; min-height: 56px; border-radius: 16px; background: linear-gradient(105deg, #ed1027 0%, #f52d60 58%, #ff9c22 100%); }
.single-product .wci-sale-off-banner img { display: block; width: 112px; height: 32px; object-fit: contain; }
.single-product .wci-sale-off-countdown { display: flex; align-items: center; gap: 3px; color: #fff; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.single-product .wci-sale-off-countdown span { background: #fffdf4; border-radius: 5px; padding: 3px 4px; color: #ed1c24; min-width: 25px; text-align: center; }
.single-product .wci-sale-off-countdown span[hidden] { display: none; }
.single-product ul.wci-sale-off-notes { list-style: disc; background: #fffbef; border-radius: 6px; color: #f16b0b; margin: 14px 0 0; padding: 10px 18px 10px 40px; font-size: 15px; line-height: 1.5; }
.single-product ul.wci-sale-off-notes li { margin: 0; padding: 0; font-weight: 400; }
@media (max-width: 480px) {
    .single-product .wci-sale-off-price-card { padding: 18px 16px 16px; }
    .single-product .wci-sale-off-current { font-size: 28px; }
    .single-product .wci-sale-off-comparison { font-size: 16px; }
    .single-product ul.wci-sale-off-notes { font-size: 14px; padding-left: 34px; }
}