.product-main {
  margin-bottom: 20px;
  padding-top: 0 !important;
}

.product-data-section .container {
  padding: 0;
}

.product-data-section .product-data {
  box-shadow: 0px 0px 3px 0px #dee2e6;
  border-radius: 12px;
  margin-bottom: 20px;
  background: white;
  border: 1px solid #eee;
}

.product-data-section .product-data .row {
  width: 100%;
  margin: 0;
}

.product-tabs {
  padding: 20px;
}

.product-specs {
  padding: 20px !important;
  border-left: 1px solid #eee;
}

#product-gallery-info {
  box-shadow: 0px 0px 3px 0px #dee2e6;
  border-radius: 12px;
  background: #fff;
  margin-right: 15px;
}

#product-sidebar {
  box-shadow: 0px 0px 3px 0px #dee2e6;
  border-radius: 12px;
}

.product-section {
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0px 0px 3px 0px #dee2e6;
  margin-bottom: 20px;
      background-color: #fff;
}

.product-section.related,
.product-section.up-sells {
  background-color: transparent;
  border: 0;
    box-shadow: none;
}

.product-footer .container {
  padding: 0 !important;
}

.product-information {
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
  font-family: var(--wd-text-font);
  width: 100%;
}

.product-info {
  border-left: 0 !important;
  background: #fff;
  padding-top: 10px;
}

.product-information th,
.product-information td {
  padding: 12px 14px;
}

.product-information tbody tr {
  border-bottom: 1px solid #dddddd;
}

.product-information tbody tr:nth-of-type(even) {
  background-color: #f8f8fc;
}

.product-information tbody tr.active-row {
  font-weight: bold;
  color: #009879;
}

.product-information tbody tr.pi-title td {
  font-weight: 700;
  font-size: 14px;
  color: rgb(130, 134, 158);
  padding-left: 10px;
}

.product-information tbody td p {
  margin-bottom: 0;
}

.product-information tbody tr:not(.pi-title) td:first-child {
  font-weight: 700;
  width: 35%;
}

.product-information tbody tr:not(.pi-title) td:first-child::after {
  content: ":";
}

.product-information tbody tr:nth-of-type(odd) {
  background-color: #ECECEC;
  /* màu trắng cho hàng lẻ */
}

.product-information tbody tr:nth-of-type(even) {
  background-color: #f8f8fc;
  /* xám nhạt cho hàng chẵn */
}

.product-info-price {
  border-color: #ddd;
  border-style: dashed;
  border-width: 1px;
  color: #333e48;
  font-size: 13px;
  padding: 10px 15px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 20px 0;
}

.product-info-price.special {
  border-color: #f6761a;
}

.product-info-price p {
  font-size: 14px;
  grid-area: auto;
  margin: 0;
  font-weight: 600;
  color: #333;
}

.product-info-price label {
  margin: 0;
  color: #333;
}

.product-info-price .price-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.product-info-price .economical-price {
  display: flex;
  flex-direction: column;
}

.product-info-price .currency-symbol {
  margin-left: 3px;
}

.product-info-price .offer-wrapper {
  background: white;
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid rgba(221, 221, 221, 0.54);
  width: 48%;
}

.product-info-price .special-wrapper {
  background: linear-gradient(100deg, #ff424e, #fd820a);
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  width: 52%;
  box-shadow: 0 0 10px #ff5722;
}

.product-info-price.special .price-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
}

.product-info-price.special .price-wrapper .special-price {
  font-size: 22px;
}

.economical-price label {
  font-weight: 600;
  font-size: 11pt;
}

.economical-price span {
  color: #bf081f;
  font-size: 12pt;
}

.price-wrapper .special-price {
  display: inline;
  font-size: 22px;
  font-weight: 700;
  color: #bf081f;
}

.price-wrapper .cost-price {
  display: inline;
  grid-area: auto;
  font-size: 11pt;
  font-weight: 500;
  text-decoration: line-through;
  color: #333e48;
}

.special-wrapper p {
  color: #fff;
}

.special-wrapper label {
  color: #fff;
  font-size: 10pt;
}

.special-wrapper span {
  color: #fff;
}

.special-wrapper .price-wrapper .special-price {
  color: #fff;
  font-size: 30px !important;
}

.special-wrapper .price-wrapper .cost-price {
  color: #fff;
}

.special-wrapper .price-wrapper .economical-price {
  color: #fff;
}

@media (max-width: 450px) {
  .product-info-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
}

@media (max-width: 800px) {
  .product-info-price.special {
    flex-direction: column;
    gap: 10px;
  }

  .product-info-price.special .offer-wrapper {
    width: 100%;
  }

  .product-info-price.special .special-wrapper {
    width: 100%;
  }
}

.prod-promotion {
  border: 1px dashed #ffb909;
  background: #ffefc8;
  margin-top: 20px;
  display: table;
  width: 100%;
  min-height: 70px;
  position: relative;
  border-radius: 12px;
}

.promo-ribbon {
  position: absolute;
  right: -5px;
  top: -5px;
  z-index: 1;
  overflow: hidden;
  width: 75px;
  height: 75px;
  text-align: right;
}

.promo-ribbon span {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  line-height: 20px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  width: 90px;
  display: block;
  background: #ffb909;
  boxshadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
  position: absolute;
  top: 15px;
  right: -20px;
}

.promo-ribbon span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  z-index: -1;
  border-left: 3px solid #ffb909;
  border-right: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-top: 3px solid #ffb909;
}

.promo-ribbon span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 100%;
  z-index: -1;
  border-left: 3px solid transparent;
  border-right: 3px solid #ffb909;
  border-bottom: 3px solid transparent;
  border-top: 3px solid #ffb909;
}

.promo-item {
  padding: 10px 45px 10px 20px;
  font-size: 14px;
  line-height: 1.5;
}

.promo-item p,
.promo-item ul {
  margin-bottom: 0;
  list-style-position: inside;
}

.promo-item li {
  margin-left: 5px !important;
}

.prod-info-desc {
  font-size: 13px;
  display: inline-block;
  border: 1px solid rgb(20, 53, 195);
  background-color: rgba(20, 53, 195, 0.08);
  padding: 0.5rem 1.25rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  margin-top: 0.5rem;
  border-radius: 12px;
  margin-top: 20px;
}

/* Góc trên phải: tam giác xanh + dấu tích */
.prod-info-desc::before {
  content: '';
  /* Bắt buộc để hiển thị pseudo-element */
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 36px 36px 0;
  border-color: transparent #1435c3 transparent transparent;
  z-index: 2;
}

/* Optional: vẽ dấu ✔ bên trong tam giác */
.prod-info-desc::after {
  content: "✔";
  position: absolute;
  top: 1px;
  right: 6px;
  color: white;
  font-size: 12px;
  font-weight: bold;
  z-index: 3;
}

.prod-info-desc ul {
  margin-bottom: 0;
  list-style-position: inside;
}

.prod-info-desc li {
  margin-left: 5px !important;
}

.product-highlight-description {
  margin-bottom: 14px;
  background-color: rgb(244, 244, 244);
  margin-top: 20px;
  padding: 20px 25px;
  border-radius: 6px;
  border-bottom: 1px solid rgb(231, 231, 231);
}

.product-highlight-description .highlight-title {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 700;
}

.product-highlight-descriptio .highlight-description {
  font-size: 14px;
}

.highlight-description ul {
  margin-bottom: 0;
  list-style-position: inside;
}

.highlight-description li {
  margin-left: 5px !important;
}

.product-gallery .product-highlight-description {
  padding: 15px 20px;
}

.product-gallery .highlight-title {
  font-size: 14px;
}

.product-gallery .highlight-description {
  font-size: 12px;
}

.product_meta {
  margin-top: 20px;
}

.product-meta-summary {
  font-size: 14px;
  margin-top: 10px;
  color: #333;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  line-height: 1.6;
  margin-left: 5px;
}

.product-meta-summary .meta-item {
  position: relative;
  padding-right: 12px;
  margin-right: 4px;
}

.product-meta-summary .meta-item::after {
  content: "|";
  position: absolute;
  right: 0;
  color: #888;
}

.product-meta-summary .meta-item:last-child::after {
  content: "";
}

.ez-price .price span.amount {
  font-size: 22px !important;
  font-weight: 600;
  display: block;
}

.ez-price {
  margin-bottom: 5px;
}

.ez-price .price-top {
  font-size: 14px;
  margin-bottom: 5px;
  height: 22px;
}

.ez-price .regular-price {
  color: #666;
  text-decoration: line-through;
  margin-right: 6px;
}

.ez-price .price-discount {
  color: #d32f2f;
  font-size: 13px;
}

@media only screen and (max-width: 420px) {
  .ez-price .price-top {
    font-size: 12px;
  }
  .ez-price .price-discount {
    font-size: 12px;
  }
}

.product-small.box .box-image img {
  object-fit: cover;
  width: 100%;
  aspect-ratio: 1 / 1;
}


/* Tăng khoảng cách giữa các sản phẩm */
.products .product {
  padding: 15px;
}

/* Nếu bạn thấy sản phẩm bị sát nhau do lề âm */
.products.row {
  margin-left: -15px;
  margin-right: -15px;
}


.product-small.box {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eee;
  box-shadow: 1px 1px 15px rgba(0, 0, 0, .15);
}

.slider>.flickity-prev-next-button.previous {
  padding-right: 7px;
  border-radius: 0 100px 100px 0;
  left: -2px;
  width: 50px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, .2) !important;
  color: #707070;
  top: 35%;
  transition: .3s;
  outline: none;
  opacity: .9;
  margin-top: 0px !important;
  transform: initial !important;
}

.slider>.flickity-prev-next-button.next {
  padding-left: 7px;
  border-radius: 100px 0 0 100px;
  right: -2px;
  width: 50px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, .2) !important;
  color: #707070;
  top: 35%;
  transition: .3s;
  outline: none;
  opacity: .9;
  margin-top: 0px !important;
  transform: initial !important;
}

.slider>.slider-nav-light .flickity-prev-next-button svg,
.slider-nav-light .flickity-prev-next-button .arrow {
  fill: #707070;
}

.slider>.flickity-prev-next-button svg {
  width: 25px !important;
  border: 0px !important;
  padding: 5px
}

.equalize-box .col {
  padding: 8px !important;
}

.product .section-title {
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
  padding-bottom: 10px;
  font-size: 22px;
  font-weight: 700;
}


.single-product .product-main {
  padding-bottom: 10px;
  background: #fff;
}

.expandable-wrapper {
  position: relative;
}

.expandable-content {
  max-height: 800px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
}

/* Hiệu ứng mờ dần ở cuối */
.expandable-content::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Khi mở rộng thì ẩn lớp mờ */
.expandable-content.expanded::after {
  opacity: 0;
}

.expandable-content.expanded {
  max-height: none;
}

.expand-toggle-wrapper {
  text-align: center;
  margin-top: 16px;
}

.toggle-expand.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #F3F3F3;
  color: #222;
  border: 1px solid #ddd;
  border-radius: 6px;

  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;

  transition: all 0.3s ease;
  box-shadow: none;

  color: #3e3e3e;
  font-size: 12px;
  font-weight: 600;
  line-height: 14.4px;
  text-align: center;
  text-transform: capitalize;
  margin-right: 0;
}

.toggle-expand.button-outline:hover {
  background: #eaeaea;
  border-color: #ccc;
}

.toggle-expand .icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

div#reviews.woocommerce-Reviews {
  border-bottom: 0;
}


#comments a.btn-reviews-now {
  background-color: var(--fs-color-primary);
}


span.devvn_num_reviews {
  color: var(--fs-color-primary);
}


.single_add_to_cart_button {
background-color: var(--fs-color-primary)!important;
}
