:root {
  --gap: 16px;
  --thumb-size: 80px;
  --gallery2-width: clamp(280px, 40vw, 520px);
  --radius: 16px;
}

.page {
  max-width: 100%;
  margin: 0px auto;
  padding: 0;
  color: #666;
  font-family: "Arial", Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

/* ===== Gallery2 (trái) ===== */
.gallery2 {
  width: var(--gallery2-width);
  float: left;
  shape-outside: inset(0 round var(--radius));
  margin: 0 var(--gap) var(--gap) 0;
  position: relative;
}

.main-frame2 {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-frame2 img {
  position: absolute;
  width: 95%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  display: block;
}

.thumbs-wrap2 {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scroll-btn2 {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 100%;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(rgba(116, 156, 204, 1)),
    color-stop(50%, rgba(26, 71, 122, 1)),
    to(rgba(116, 156, 204, 1))
  );
  background: -o-linear-gradient(
    top,
    rgba(116, 156, 204, 1) 0%,
    rgba(26, 71, 122, 1) 50%,
    rgba(116, 156, 204, 1) 100%
  );
  background: linear-gradient(
    to bottom,
    rgba(116, 156, 204, 1) 0%,
    rgba(26, 71, 122, 1) 50%,
    rgba(116, 156, 204, 1) 100%
  );
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-btn2:active {
  transform: translateY(1px);
}

.thumbs-viewport2 {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
}

.thumbs-row2 {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.thumbs-row2::-webkit-scrollbar {
  display: none;
}

.thumb2 {
  flex: 0 0 auto;
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.thumb2 img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  display: block;
}

.thumb2[aria-pressed="true"],
.thumb2.active {
  border-color: #111;
  outline: none;
}

.article h1 {
  line-height: 1.25;
  margin-top: 0;
  color: #d50000;
}
.article h2 {
  line-height: 1.25;
  margin-top: 0;
  color: #d50000;
}

.article p {
  text-align: justify;
}

@media (max-width: 767px) {
  :root {
    --gallery2-width: min(100%, 560px);
  }
  .gallery2 {
    float: none;
    shape-outside: none;
    margin: 0 0 20px 0;
    width: 100%;
  }
}

.client-star-rating {
  margin-top: 40px;
  width: 100%;
}
.client-star-rating .gallery2 {
  width: 100%;
}
.client-star-rating .thumb2 {
  border: solid 0.2px rgba(0, 0, 0, 0.1);
  border-radius: 0;
  overflow: hidden;
  width: 20%;
  height: auto;
  padding: 0 10px;
}

.company-rating {
  color: #666;
  margin: 0 0 10px 0;
}

/* Độ dày phải >= 3px mới thấy rõ */
.product-specification td {
  border: 1px solid #666;
  height: 40px;
  padding-left: 5px;
}

.product-specification {
  border: 1px solid #666;
  width: 47.5%;
  margin-top: 10px;
}

.product-specification td:nth-child(1) {
  width: 30%;
}
