.swiper-slide {
  width: 100% !important;
}

.tabs.wc-tabs {
  display: flex;
  margin: 0;
  list-style: none;
}

.tabs.wc-tabs > li {
  margin: 0;
}
.tabs.wc-tabs > li > a {
  border: 1px solid #cacad4;
  border-bottom: none;
  padding: 5px 20px;
  cursor: pointer;
  background-color: #e7e7e7;
}

.tabs.wc-tabs > li:not(:first-child) > a {
  border-left: none;
}

.tabs.wc-tabs > li.active a {
  color: var(--tt-primary-color);
  font-weight: bold;
  background-color: white;
}

.woocommerce-Tabs-panel {
  border: 1px solid #cacad4;
  padding: 10px 20px;
  margin-top: 1px;
  border-radius: 4px;
  border-top-left-radius: 0px;
}

#tab-title-reviews {
  display: none;
}
.woocommerce-Tabs-panel--reviews {
  display: block !important;
  margin-top: 20px;
  border-radius: 4px;
}

.swiper_slider_offer_in_product .totem-swiper-button-next,
.swiper_slider_offer_in_product .totem-swiper-button-prev {
  display: none;
}

.discount-table {
  border-radius: 4px;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid #e7e7e7;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
}
.discount-heading {
  background: var(--tt-primary-color);
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
}
.discount-heading svg {
  transform: translateY(-2px);
}

.discount-content {
  padding: 10px;
}

.discount-content ul > li ul {
  margin: 10px;
  margin-right: 0px;
}

.woocommerce-product-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price-container .price {
  font-size: 24px;
  margin-top: 15px;
}

.woocommerce-Price-amount {
  font-size: 24px;
  color: var(--tt-primary-color) !important;
}

/* --- CSS CHO BẢNG THÔNG SỐ --- */
.totem-tskt-wrapper {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.totem-tskt-content {
  max-height: 350px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease-in-out;
}

.totem-tskt-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 1)
  );
  pointer-events: none;
}

.totem-tskt-content.is-expanded {
  max-height: 3000px;
}

.totem-tskt-content.is-expanded::after {
  display: none;
}

.tskt-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tskt-group-title {
  background-color: #fdf5d3;
  padding: 6px 15px;
  font-weight: bold;
  color: #333;
  font-size: 15px;
}

.tskt-list li {
  display: flex;
  padding: 6px 15px;
  font-size: 14px;
  color: #444;
  margin: 0 !important;
}

.tskt-list li:nth-child(even) {
  background-color: #f5f5f5;
}

.tskt-list li:nth-child(odd) {
  background-color: #ffffff;
}

.tskt-name {
  flex: 0 0 35%;
  padding-right: 15px;
}

.tskt-value {
  flex: 1;
}

.totem-tskt-action {
  text-align: center;
  padding: 15px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

.totem-btn-toggle-tskt {
  background: #fff;
  color: var(--tt-primary-color);
  border: 1px solid var(--tt-primary-color);
  border-radius: 6px;
  padding: 4px 20px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s;
  margin-bottom: 0 !important;
}

.totem-btn-toggle-tskt:hover {
  background: var(--tt-primary-color);
  color: #fff;
}

.totem-btn-toggle-tskt .icon {
  font-size: 10px;
  transition: transform 0.3s;
}

.totem-tskt-content.is-expanded
  ~ .totem-tskt-action
  .totem-btn-toggle-tskt
  .icon {
  transform: rotate(180deg);
}

.thong-tin-san-pham-table {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e7e7e7;
  padding: 10px;
}

.thong-tin-san-pham-table-title {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Đánh giá */
/* =========================================================
   GIAO DIỆN TỔNG QUAN PRODUCT (TỔNG HỢP)
   ========================================================= */
.totem-reviews-qa-wrapper {
  color: #333;
}

.totem-section-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}

/* 1. BẢNG THỐNG KÊ TRÊN CÙNG */
.totem-review-summary-box {
  display: flex;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 20px;
  background: #fff;
}
.totem-rs-left {
  flex: 0 0 25%;
  text-align: center;
  border-right: 1px solid #e0e0e0;
  padding: 30px 20px;
}
.rs-avg {
  font-size: 45px;
  font-weight: bold;
  color: #f59e0b; /* Màu vàng cam */
  line-height: 1;
}
.rs-star {
  font-size: 30px;
}
.rs-text {
  font-size: 11px;
  font-weight: bold;
  color: #333;
  margin-top: 5px;
}
.totem-rs-middle {
  flex: 1;
  border-right: 1px solid #e0e0e0;
  padding: 20px 30px;
}
.rs-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
}
.rs-star-num {
  width: 30px;
  color: #333;
}
.rs-progress {
  flex: 1;
  height: 12px;
  background: #f3f3f3;
  margin: 0 15px;
  border-radius: 2px;
}
.rs-progress-fill {
  height: 100%;
  background: #e0e0e0;
}
.rs-progress-fill[style*="width: 1"],
.rs-progress-fill[style*="width: 2"],
.rs-progress-fill[style*="width: 3"],
.rs-progress-fill[style*="width: 4"],
.rs-progress-fill[style*="width: 5"],
.rs-progress-fill[style*="width: 6"],
.rs-progress-fill[style*="width: 7"],
.rs-progress-fill[style*="width: 8"],
.rs-progress-fill[style*="width: 9"] {
  background: #f59e0b; /* Thanh có phần trăm sẽ tô màu cam */
}
.rs-count {
  width: 100px;
  color: #00a0e9; /* Màu xanh link giống ảnh */
}
.totem-rs-right {
  flex: 0 0 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rs-btn {
  background: var(--tt-primary-color);
  color: #fff;
  border: none;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin: 0 !important;
}

.totem-no-review {
  margin-top: 15px;
  font-size: 14px;
}
.totem-divider {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid #eaeaea;
}

/* 2. KHU VỰC HỎI ĐÁP (FORM) */
.totem-qa-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}
.totem-qa-form-box {
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 30px;
  padding: 15px;
}
.totem-qa-form-box textarea {
  width: 100%;
  border: none;
  padding: 15px;
  min-height: 100px;
  resize: vertical;
  font-size: 14px;
  outline: none;
  display: block;
}
.qa-form-bottom {
  border-top: 1px solid #ccc;
  padding-top: 15px;
  text-align: right;
}
.qa-submit-btn {
  margin: 0 !important;
  background: var(--tt-primary-color); /* Màu vàng nút Gửi giống ảnh */
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.totem-qa-form {
  margin-bottom: 0 !important;
}

.comment-reply-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#cancel-comment-reply-link {
  padding: 4px 12px;
  background: var(--tt-primary-color);
  border-radius: 2px;
  font-size: 12px;
  color: #fff;
}

/* 3. DANH SÁCH BÌNH LUẬN VÀ SEARCH */
.totem-qa-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 15px;
}
.qa-search-box input {
  padding: 8px 15px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 13px;
  width: 250px;
  outline: none;
}

/* =========================================
   DANH SÁCH BÌNH LUẬN & REPLY (NESTED)
   ========================================= */

.qa-comment-wrap {
  margin-bottom: 20px;
}

/* Thẻ bọc nội dung chính của comment */
.qa-comment-body {
  display: flex;
  gap: 15px;
}

/* Avatar chung */
.qa-avatar {
  width: 35px;
  height: 35px;
  background: #ccc;
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 13px;
  flex-shrink: 0;
}

.qa-content-wrapper {
  flex: 1;
}

.qa-author {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 5px;
}
.qa-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
  color: #444;
}
.qa-text p {
  margin: 0;
}
.qa-actions {
  font-size: 12px;
  color: #999;
}
.qa-actions a {
  color: #00a0e9;
  text-decoration: none;
}

/* KHU VỰC TRẢ LỜI (THỤT LỀ NESTED) */
.totem-qa-list .children {
  margin-left: 50px; /* Thụt lề vào trong so với comment cha */
  margin-top: 15px; /* Cách comment cha một khoảng */
  padding: 0;
}

/* Box Admin Reply (Màu xám) */
.qa-reply-box {
  background: #f5f5f5;
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 4px;
  position: relative;
  margin-top: 20px;
  gap: 12px;
  max-width: 90%;
  margin-left: auto;
}

/* Mũi tên trỏ lên cho box xám */
.qa-reply-box::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 20px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #eee;
}
.qa-reply-box::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 20px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #f5f5f5;
}

.qa-reply-box .admin-avatar {
  background: #bbb;
}
.badge-admin {
  background: #f59e0b;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 5px;
  font-weight: normal;
  display: inline-block;
  transform: translateY(-1px);
}

.like-btn svg {
  vertical-align: middle;
  width: 16px;
}

#comment {
  border: 1px solid #ccc;
}

/*  */
.splk-linked-products {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.splk-linked-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  min-width: 140px;
  cursor: pointer;
}

.splk-linked-item.splk-active {
  display: none;
}

.splk-linked-item:hover {
  border-color: #e4141c;
  box-shadow: 0 2px 8px rgba(228, 20, 28, 0.1);
  text-decoration: none;
  color: inherit;
}

/* Sản phẩm đang xem — viền đỏ + check */
.splk-linked-item.splk-active {
  border-color: #e4141c;
  background: #fff5f5;
  position: relative;
}

.splk-linked-item.splk-active::after {
  content: "✓";
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 11px;
  color: #fff;
  background: #e4141c;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splk-thumb img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.splk-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.splk-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #222;
}

.splk-price {
  font-size: 12px;
  color: #e4141c;
  font-weight: 500;
}

.splk-price .woocommerce-Price-amount {
  color: #e4141c;
}

.splk-price del .woocommerce-Price-amount {
  color: #999;
}

@media (max-width: 480px) {
  .splk-linked-item {
    min-width: calc(50% - 4px);
    flex: 1 1 calc(50% - 4px);
  }
}

.variable-items-wrapper .variable-item.selected {
  box-shadow: 0 0 0 1px var(--tt-primary-color) !important;
}

.variable-items-wrapper .variable-item:hover:not(.selected):not(.disabled) {
  box-shadow: 0 0 0 1px var(--tt-primary-color) !important;
}

.variable-items-wrapper .variable-item[data-attribute_name^="attribute_pa"] {
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  vertical-align: top;
  padding: 2px 6px 2px !important;
  height: auto !important;
}

.variable-items-wrapper
  .variable-item[data-attribute_name^="attribute_pa"]
  .splk-swatch-thumb {
  height: 50px !important;
}

.variable-item-contents .price .woocommerce-Price-amount,
.splk-price .woocommerce-Price-amount {
  font-size: 14px;
  font-weight: 500;
}

.variable-item-span.variable-item-span-button {
  font-size: 14px;
}

/* Hình thumbnail trong swatch */
.splk-swatch-thumb {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
  pointer-events: none;
  /* Ẩn nếu chưa có src */
}

.splk-swatch-thumb[src=""] {
  display: none;
}

/* Giá bên dưới */
.splk-swatch-price {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #e4141c;
  text-align: center;
  line-height: 1.3;
  min-height: 15px;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.splk-swatch-price .woocommerce-Price-amount {
  color: #e4141c;
  font-size: 11px;
}

.splk-swatch-price del .woocommerce-Price-amount {
  color: #aaa;
  font-size: 10px;
}

.variable-item.disabled .splk-swatch-thumb,
.variable-item.disabled .splk-swatch-price {
  opacity: 0.35;
}

/*  */

.related.products .price {
  margin-top: 12px;
}

.related.products .price *,
.woo-variation-items-wrapper .woocommerce-Price-amount.amount {
  font-size: 14px;
}

.woo-variation-items-wrapper del {
  display: none;
}

/* .woo-variation-items-wrapper .woocommerce-Price-amount.amount {
  fz
} */

.related.products .name.product-title.woocommerce-loop-product__title a {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-detail-box-border p {
  font-size: 14px;
  margin-bottom: 10px;
}

.product-detail-box-border p {
  padding-left: 32px;
  background-size: 20px;
  background-position: left center;
  background-repeat: no-repeat;
}

.quote-icon-img--quote-icon-may p {
  background-image: url("https://totemmobile.com/wp-content/uploads/2026/04/quote-icon-may.webp");
}
.quote-icon-img--quote-icon-install p {
  background-image: url("https://totemmobile.com/wp-content/uploads/2026/04/quote-icon-install.webp");
}
.quote-icon-img--quote-icon-baohanh p {
  background-image: url("https://totemmobile.com/wp-content/uploads/2026/04/quote-icon-baohanh.webp");
}
.quote-icon-img--quote-icon-box p {
  background-image: url("https://totemmobile.com/wp-content/uploads/2026/04/quote-icon-box.webp");
}
