/* product page */
.product-page.container {
  display: contents;
  max-width: 100%;
  min-height: 100vh;
  color: #333;
  padding: 15px 5px;
}


.botton-appy a{
    color:#333;
}
.product-page-flex {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  width: 100%;
  padding: 20px;
}
.product-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2%;
}

.product-gallery {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-gallery .product-thumb:first-child {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.product-gallery .product-thumb:not(:first-child) {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid #ccc;
  transition: transform 0.2s;
}

.product-gallery .product-thumb:not(:first-child):hover {
  transform: scale(1.05);
}

.product-gallery {
  position: relative;
}
.product-gallery .product-thumb + .product-thumb {
  margin-top: 5px;
}
.product-comments h2 {
  margin-bottom: 15px;
}
.product-gallery {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.main-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #ccc;
}

.thumbnail-slider {
  display: flex;
  gap: 10px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

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

.product-info {
  flex: 1 1 58%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
}

.product-title {
  font-size: 28px;
  font-weight: 700;
  color: #222;
}
.product-rating {
  display: flex;
  align-items: center;
  font-size: 20px;
  color: #f5a623;
  border-top: 1px dashed #ddd;
  padding: 10px 0;
}
.msp {
  color: rgb(255, 46, 46);
}
.text-rating {
  font-size: 15px;
  color: #888;
}
.product-rating .star {
  color: #ccc;
}
.product-rating .star.filled {
  color: #f5a623;
}
.short-description {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
}

.short-description h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.product-description {
  font-size: 14px;
  margin: 30px 0;
  padding: 50px;
  background-color: #ededed;
  border-radius: 10px;
}

.product-description h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

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

  .product-gallery {
    flex-direction: column;
  }

  .product-gallery .product-thumb:first-child {
    width: 100%;
  }

  .product-gallery .thumbnail-slider {
    flex-direction: row;
    width: 100%;
    padding: 0;
    overflow-x: auto;
  }

  .product-gallery .product-thumb:not(:first-child) {
    width: 80px;
    height: 80px;
  }
}
.tieude h4 {
  margin: 0 !important;
}
.tieudes {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.back-button {
  border: 1px solid #b5d2f1;
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: #f1f1f1;
  color: #333;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
}

.back-button i {
  font-size: 16px;
}

.back-button:hover {
  background-color: #dfe6f1;
  color: #1a73e8;
}

.botton-appy {
  display: flex;
  gap: 15px;
  margin: 10px 0;
  flex-wrap: wrap;
  border-top: 1px dashed #ddd;
  padding: 10px;
}

.btn-app {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f5f5f5;
  color: #333;
  border: none;
  border-radius: 5px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn-app i {
  font-size: 18px;
}

.btn-app:hover {
  background-color: #eaeaea;
  transform: translateY(-2px);
}

/* Youtube button style */
.youtube {
  background-color: #fefeff;
  color: #ff0e0e !important;
  border: 1px solid #fb535359;
  color: #fff;
}

.youtube:hover {
}

/* Support/Doc button style */
.hotro {
  background-color: #007bff;
  color: #fff;
}

.hotro:hover {
  background-color: #0056b3;
}

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

.benefit-list li {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  font-size: 15px;
  line-height: 1.5;
}

.benefit-list li::before {
  content: "✔";
  color: #ffffff; /* Màu xanh dương giống hình */
  margin-right: 8px;
  font-weight: bold;
  font-size: 11px;
  background-color: #007bff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-description h2 {
  font-size: 24px;
  margin-bottom: 26px;
  color: #0080ff;
}

.product-description h3 {
  margin: 7px 0;
  font-size: 20px;
  margin-top: 24px;
  color: #2980b9;
}

.product-description p {
  margin: 8px 0;
}

.product-description ul {
  padding-left: 20px;
  margin: 5px 0;
}
.product-description p {
  margin: 0;
}
.product-description li {
  list-style-type: disclosure-closed !important;
  margin-bottom: 5px;
}

.product-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border-radius: 10px;
}

.promo-box {
  align-items: center;
  font-weight: bold;
  color: #b43bef;
  font-size: 12px;
  border-top: 1px dashed #ddd;
  padding: 10px 0;
}
.promo-flex {
  display: flex;
  justify-content: start;
  gap: 5px;
}
.li-promo {
  color: #414141;
  margin-top: 10px !important;
  font-weight: lighter;
  font-style: italic;
}

.li-promo li {
  list-style-type: disclosure-closed !important;
}
.promo-box i {
  font-size: 15px;
  margin-right: 8px;
  color: #b43bef;
}

/* Vùng tổng thể */
.product-comments {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  color: #333;
  max-width: 100%;
}

/* Tiêu đề */
.product-comments h2 {
  font-size: 24px;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

/* --- FORM GỬI BÌNH LUẬN --- */
.comment-form {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.comment-input-wrapper {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  align-items: flex-start;
}

.user-avatar,
.comment-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
}

.comment-input {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  resize: vertical;
  font-size: 14px;
  background-color: #fff;
  transition: border 0.3s ease;
}

.comment-input:focus {
  outline: none;
  border-color: #4caf50;
}

/* Rating stars */
.rating-stars {
  display: flex;
  gap: 8px;
  font-size: 22px;
  cursor: pointer;
  color: #ccc;
  user-select: none;
}

.rating-stars .star.active {
  color: #f7b500;
}

/* Upload ảnh */
.image-upload {
  margin-bottom: 15px;
}

.preview-image {
  display: block;
  margin-top: 10px;
  max-width: 150px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Nút gửi */
.comment-submit {
  display: inline-block;
  background-color: #4caf50;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.comment-submit:hover {
  background-color: #45a049;
}
.rating-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
/* --- DANH SÁCH BÌNH LUẬN --- */
.comments-list {
  margin-top: 20px;
}
.rating-text p {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
  padding: 6px 12px;
  background-color: #eaf9f2;
  border-left: 4px solid #4caf50;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  display: inline-block;
}

.comment {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.comment-meta {
  flex-grow: 1;
}

.comment-author {
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
  font-size: 15px;
}

.comment-date {
  font-size: 0.85em;
  color: #ffffff;
  background-color: #0ba773;
  padding: 3px 10px;
  border-radius: 15px;
  display: inline-block;
}

.comment-rating {
  color: #f7b500;
  font-size: 16px;
  margin-bottom: 5px;
}

.comment-content {
  color: #444;
  font-size: 14.5px;
  line-height: 1.6;
}

.comment-image {
  margin-top: 12px;
  width: 100px;
  height: 100px;
  border-radius: 6px;
  border: 1px solid #ddd;
  object-fit: cover;
}

.buttons-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.text-rating {
  margin-bottom: 0px !important;
  margin-left: 10px;
}
@media (max-width: 768px) {
  .product-main {
    flex-direction: column;
  }

  .product-gallery,
  .product-info {
    width: 100%;
  }

  .main-image {
    max-height: 300px;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
  }

  .product-title {
    font-size: 20px;
  }

  .product-rating {
    font-size: 16px;
  }

  .comment-input-wrapper {
    flex-direction: column;
  }

  .user-avatar {
    margin-bottom: 8px;
  }
  .product-page-flex {
    padding: 0px !important;
  }
  .tieude h4 {
    display: none;
  }
  .product-description {
    padding: 5px !important;
  }
  .rating-main {
    flex-direction: column;
  }
}
/* === CSS CHO DANH SÁCH SẢN PHẨM ĐẸP VÀ CHUYÊN NGHIỆP === */

.san_pham {
  padding: 40px 20px;
  background: #f9fafb;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.san_pham_main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 15px;
}

.item_sanpham {
  width:320px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item_sanpham:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.sp_img {
  text-align: center;
  margin-bottom: 20px;
}

.san_pham_item_img {
  width: 100%;

  object-fit: contain;
  border-radius: 3px; /* đổi từ hình tròn sang hình vuông bo nhẹ */
  background-color: #f0f0f0;
  padding: 10px;
}

.sp_text {
  text-align: center;
}

.item_sanpham_Titel {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #007bff;
  cursor: pointer;
}

.sp_text p {
  font-size: 14px;
  color: #555;
  min-height: 60px;
}

.custom-select-wrapper {
  margin: 15px 0;
}

.custom-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background-color: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23999' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

.sp_price {
  margin-top: 10px;
}

.price_sale {
  font-size: 22px;
  color: #28a745;
  font-weight: bold;
}

#price_d {
  font-size: 14px;
  color: #28a745;
  margin-left: 3px;
}

.price-old {
  font-size: 14px;
  text-decoration: line-through;
  color: #888;
  margin-right: 8px;
}

.sp_bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.sp_button_item {
  flex: 1 1 48%;
  background: linear-gradient(to right, #ff416c, #ff4b2b);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 75, 43, 0.3);
}

.sp_button_item:hover {
  background: linear-gradient(to right, #ff4b2b, #ff416c);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 75, 43, 0.4);
}

.sp_button_item i {
  margin-right: 6px;
}

@media (max-width: 480px) {
  .san_pham_item_img {
  }
.san_pham{
    padding:0;
}
  .item_sanpham_Titel {
    font-size: 18px;
  }

  .sp_text p {
    font-size: 13px;
  }

  .sp_button_item {
    font-size: 13px;
    padding: 8px 10px;
  }
}

.item_sanpham_Titel h3 {
  cursor: pointer;
}
