.product-list-template {
  --product-red: #b61f24;
  --product-gold: #a77b31;
  --product-text: #1e1e1e;
  --product-muted: #777;
  --product-border: #e7e7e7;
  --product-soft: #f8f8f8;
  --product-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-list-template .title-detail,
.product-list-template .sort-select {
  display: none;
}

.product-list-heading {
  margin-bottom: 28px;
  color: var(--product-text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.product-list-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.product-list-layout-right-sidebar {
  grid-template-columns: minmax(0, 1fr) 270px;
}

.product-list-main {
  min-width: 0;
}

.product-list-grid {
  display: grid;
  gap: 28px;
}

.product-list-template-product1
  > .wrap-content
  > .product-list-main
  .product-list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-list-template-product2 > .wrap-content > .product-list-main {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
}

.product-list-template-product2
  > .wrap-content
  > .product-list-main
  .product-list-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.product-list-template-product3 .product-list-grid,
.product-list-template-product4 .product-list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-list-template-product3 .product-list-heading,
.product-list-template-product4 .product-list-heading {
  margin-bottom: 18px;
  text-align: left;
}

.product-list-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.product-list-card:hover {
  box-shadow: var(--product-shadow);
  transform: translateY(-3px);
}

.product-list-photo {
  position: relative;
  background: #fff;
}

.product-list-photo a {
  display: block;
  aspect-ratio: 16 / 10;
  padding: 12px 12px 0;
  overflow: hidden;
}

.product-list-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-list-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  min-width: 42px;
  padding: 4px 8px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: var(--product-red);
  box-shadow: 0 0 5px rgba(182, 31, 36, 0.48);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.product-list-cart {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--product-red);
  box-shadow: 0 0 5px rgba(182, 31, 36, 0.5);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.product-list-cart:hover {
  background: #111;
  transform: scale(1.04);
}

.product-list-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 12px;
}

.product-list-name {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.product-list-name a {
  color: var(--product-text);
}

.product-list-name a:hover {
  color: var(--product-gold);
}

.product-list-price {
  flex: 0 0 34%;
  margin: 0;
  text-align: right;
}

.product-list-price .price-new {
  display: block;
  color: #e30000;
  font-size: 16px;
  font-weight: 800;
}

.product-list-price .price-old {
  display: block;
  color: #999;
  font-size: 13px;
  font-weight: 700;
  text-decoration: line-through;
}

.product-list-template-product2 .product-list-info,
.product-list-template-product3 .product-list-info,
.product-list-template-product4 .product-list-info {
  padding: 10px 12px 12px;
}

.product-list-template-product2 .product-list-name,
.product-list-template-product3 .product-list-name,
.product-list-template-product4 .product-list-name,
.product-list-template-product2 .product-list-price .price-new,
.product-list-template-product3 .product-list-price .price-new,
.product-list-template-product4 .product-list-price .price-new {
  font-size: 13px;
}

.product-list-template-product2 .product-list-price .price-old,
.product-list-template-product3 .product-list-price .price-old,
.product-list-template-product4 .product-list-price .price-old {
  font-size: 12px;
}

.product-list-sidebar {
  position: sticky;
  top: 12px;
  min-width: 0;
}

.product-list-sidebar-block {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--product-border);
  border-radius: 8px;
  background: #fff;
}

.product-list-sidebar-title {
  margin: 0 0 14px;
  color: #333;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.product-list-category ul,
.product-list-filter ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.product-list-category li a {
  position: relative;
  display: block;
  padding: 8px 10px 8px 14px;
  border-bottom: 1px dashed #ddd;
  color: var(--product-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.product-list-category li a:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #999;
  transform: translateY(-50%);
}

.product-list-category li ul {
  margin-left: 14px;
}

.product-list-category li a:hover {
  color: var(--product-gold);
}

.product-list-filter-block {
  padding: 12px 0;
  border-bottom: 1px dashed #ddd;
}

.product-list-filter-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.product-list-filter-title {
  margin-bottom: 10px;
  color: #555;
  font-size: 14px;
  font-weight: 800;
}

.product-list-filter li {
  margin-top: 8px;
}

.product-list-filter .item-search {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--product-muted);
  font-size: 14px;
}

.product-list-filter .item-search input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.product-list-featured {
  display: grid;
  gap: 12px;
}

.product-small-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed #ddd;
  color: var(--product-text);
}

.product-small-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.product-small-photo {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--product-soft);
}

.product-small-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-small-info {
  min-width: 0;
}

.product-small-name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--product-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-small-price {
  display: block;
  margin-top: 4px;
  color: var(--product-gold);
  font-size: 13px;
  font-weight: 700;
}

.product-detail-template {
  --product-red: #b61f24;
  --product-gold: #a77b31;
  --product-border: #e5e5e5;
  --product-text: #1e1e1e;
  display: grid;
  align-items: start;
  gap: 48px;
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-bottom: 34px;
  margin-left: auto;
}

.product-detail-template-product1 {
  grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  gap: 48px;
}

.product-detail-template-product2 {
  grid-template-columns: minmax(0, 57%) minmax(0, 43%);
  gap: 42px;
  align-items: start;
}

.product-detail-template-product3 {
  max-width: 1280px;
  grid-template-columns: minmax(0, 45%) minmax(0, 35%) minmax(240px, 20%);
  gap: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.product-detail-template .left-pro-detail,
.product-detail-template .right-pro-detail,
.product-detail-main-panel,
.product-detail-side-panel {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
}

.product-detail-template-product3 .right-pro-detail {
  display: block;
}

.product-detail-main-panel {
  width: 100%;
  max-width: none;
}

.product-detail-info-product3 {
  padding: 26px;
  border: 1px solid rgba(30, 30, 30, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

.product-detail-brandline {
  display: none;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.product-detail-brandline a {
  color: var(--product-red);
  font-weight: 800;
  text-decoration: none;
}

.product-detail-template .title-detail h1 {
  margin: 0 0 18px;
  color: var(--product-text);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  line-height: 1.3;
  text-transform: none;
}

.product-detail-template-product1 .title-detail h1 {
  font-size: clamp(25px, 2.2vw, 32px);
}

.product-detail-template-product2 .title-detail h1 {
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: clamp(26px, 2.1vw, 34px);
  letter-spacing: 0;
}

.product-detail-info-product2 .product-detail-brandline {
  display: flex;
}

.product-detail-info-product2 {
  padding: 28px;
  border: 1px solid rgba(30, 30, 30, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.product-detail-info-product2 .product-detail-brandline {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.product-detail-info-product2 .text-center.flex {
  justify-content: flex-start;
  margin: 0 0 16px;
}

.product-detail-info-product2 .attr-pro-detail {
  gap: 10px;
  margin: 16px 0 20px;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.product-detail-info-product2 .attr-pro-detail li {
  justify-content: space-between;
  gap: 14px;
}

.product-detail-info-product2 .attr-label-pro-detail {
  color: #7a7a7a;
  font-size: 14px;
  font-weight: 600;
}

.product-detail-info-product2 .attr-content-pro-detail {
  color: #1f1f1f;
  font-size: 14.5px;
  font-weight: 600;
  text-align: right;
}

.product-detail-info-product2 .price-new-pro-detail {
  font-size: clamp(30px, 2.5vw, 40px);
}

.product-detail-info-product2 .product-detail-desc {
  margin-top: 0;
  padding: 16px 0 4px;
  border-bottom: 1px solid #f3f3f3;
  color: #555;
  font-size: 15.5px;
}

.product-detail-info-product2 .cart-pro-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.product-detail-info-product2 .cart-pro-detail + .cart-pro-detail {
  margin-top: 10px;
}

.product-detail-info-product2 .cart-pro-detail label {
  margin: 0 8px 0 0 !important;
  color: #555;
  font-weight: 700;
}

.product-detail-info-product2 .quantity-pro-detail {
  margin-right: 0;
  border-radius: 999px;
  overflow: hidden;
}

.product-detail-info-product2 .addnow,
.product-detail-info-product2 .buynow {
  min-width: 150px;
  border-radius: 999px;
  margin: 0;
}

.product-detail-info-product2 .social-plugin {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

.product-detail-info-product2 .social-plugin img,
.product-detail-info-product2 .social-plugin iframe {
  transform: scale(0.92);
  transform-origin: left center;
}

.product-detail-template-product3 .title-detail h1 {
  margin-bottom: 18px;
  font-size: clamp(28px, 2.2vw, 32px);
  line-height: 1.25;
}

.product-detail-info-product3 .text-center.flex {
  justify-content: flex-start;
  margin-bottom: 16px;
}

.product-detail-info-product3 .attr-pro-detail {
  gap: 0;
  margin: 18px 0 22px;
  border-top: 1px solid #eeeeee;
}

.product-detail-info-product3 .attr-pro-detail li {
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #eeeeee;
}

.product-detail-info-product3 .attr-label-pro-detail {
  color: #777;
  font-size: 14px;
  font-weight: 700;
}

.product-detail-info-product3 .attr-content-pro-detail {
  color: #222;
  font-size: 14.5px;
  font-weight: 600;
  text-align: right;
}

.product-detail-info-product3 .price-new-pro-detail {
  font-size: clamp(30px, 2.8vw, 42px);
}

.product-detail-info-product3 .product-detail-desc {
  margin: 0 0 20px;
  color: #555;
  font-size: 15.5px;
  line-height: 1.72;
}

.product-detail-info-product3 .cart-pro-detail {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.product-detail-info-product3 .cart-pro-detail .attr-content-pro-detail {
  text-align: left;
}

.product-detail-info-product3 .quantity-pro-detail {
  max-width: 140px;
  margin-right: 0;
  border-radius: 999px;
  overflow: hidden;
}

.product-detail-info-product3 .addnow,
.product-detail-info-product3 .buynow {
  width: 100%;
  margin: 0;
  border-radius: 999px;
}

.product-detail-info-product3 .social-plugin {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eeeeee;
}

.product-detail-template .attr-pro-detail {
  display: grid;
  gap: 12px;
  padding-left: 0;
  margin: 18px 0 22px;
  list-style: none;
}

.product-detail-template .attr-pro-detail li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin: 0;
}

.product-detail-template .attr-label-pro-detail {
  color: #666;
  font-size: 15px;
  font-weight: 700;
}

.product-detail-template .attr-content-pro-detail {
  color: #333;
  font-size: 15px;
  line-height: 1.55;
}

.product-detail-template .price-new-pro-detail {
  display: inline-block;
  color: #e31e2b;
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 800;
  line-height: 1.1;
}

.product-detail-template .price-old-pro-detail {
  margin-left: 10px;
  color: #8f8f8f;
  font-size: 18px;
  font-weight: 600;
  text-decoration: line-through;
}

.product-detail-desc {
  margin-top: 18px;
  color: #666;
  font-size: 15.5px;
  line-height: 1.7;
}

.product-detail-desc p {
  margin-bottom: 10px;
}

.product-detail-template .addnow,
.product-detail-template .buynow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0 8px 8px 0;
  padding: 13px 22px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: capitalize;
}

.product-detail-template .addnow {
  border: 1px solid #3e3e3e;
  color: #fff;
  background: #3e3e3e;
}

.product-detail-template .buynow {
  border: 1px solid #c1121f;
  color: #fff;
  background: #c1121f;
}

.product-detail-info-product3 .attr-pro-detail {
  gap: 0;
  margin: 18px 0 22px;
  border-top: 1px solid #eeeeee;
}

.product-detail-info-product3 .attr-pro-detail li {
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #eeeeee;
}

.product-detail-info-product3 .attr-label-pro-detail {
  color: #777;
  font-size: 14px;
  font-weight: 700;
}

.product-detail-info-product3 .attr-content-pro-detail {
  color: #222;
  font-size: 14.5px;
  font-weight: 600;
  text-align: right;
}

.product-detail-info-product3 .price-new-pro-detail {
  font-size: clamp(30px, 2.8vw, 42px);
}

.product-detail-info-product3 .addnow,
.product-detail-info-product3 .buynow {
  width: 100%;
  margin: 0;
  border-radius: 999px;
}

.product-detail-tabs-wrap {
  margin-top: 34px;
}

.product-detail-tabs-wrap .tabs-pro-detail {
  margin-top: 0 !important;
}

.product-detail-tabs-wrap #tabsProDetail {
  border-bottom: 1px solid #d9d9d9;
}

.product-detail-tabs-wrap .tabs-pro-detail .nav-tabs .nav-link {
  padding: 14px 24px;
  color: #333;
  border: 1px solid transparent;
  border-bottom: 0;
  font-size: 14px;
  font-weight: 800;
}

.product-detail-tabs-wrap .tabs-pro-detail .nav-tabs .nav-link.active {
  color: #e31e2b;
  background: #fff;
  border-color: #d9d9d9;
  border-radius: 6px 6px 0 0;
}

.product-detail-tabs-wrap .tabs-pro-detail .tab-content {
  min-height: 0;
  padding: 24px;
  border: 1px solid #d9d9d9;
  border-top: 0;
  background: #fff;
}

.product-detail-tabs-wrap .baonoidung:empty {
  display: none;
}

.product-detail-tabs-wrap-product2 {
  /* max-width: 1040px; */
  margin: 44px auto 0;
}

.product-detail-tabs-wrap-product2 #tabsProDetail {
  justify-content: center;
  gap: 10px;
  border-bottom: 0;
}

.product-detail-tabs-wrap-product2 .tabs-pro-detail .nav-tabs .nav-link {
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  background: #fff;
  color: #555;
  padding: 12px 24px;
}

.product-detail-tabs-wrap-product2 .tabs-pro-detail .nav-tabs .nav-link.active {
  border-color: #1f1f1f;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
}

.product-detail-tabs-wrap-product2 .tabs-pro-detail .tab-content {
  margin-top: 18px;
  border: 1px solid #ededed;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.05);
}

.tabs-product-best {
  min-width: 0;
}

.tabs-product-item {
  border: 1px solid rgba(30, 30, 30, 0.08);
  border-radius: 12px;
  background: #fff;
  padding: 18px 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
}

.tabs-product-item label {
  display: block;
  margin-bottom: 14px;
  color: #1e1e1e;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.content-product-best {
  height: 390px;
  overflow: hidden;
}

.content-product-best .swiper-slide {
  height: auto;
}

.product-best-item {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 82px;
  padding: 10px 0;
  border-bottom: 1px solid #eeeeee;
  border-radius: 0;
  color: #1e1e1e;
  background: transparent;
}

.product-best-photo {
  display: block;
  overflow: hidden;
  border: 1px solid #eeeeee;
  border-radius: 8px;
}

.product-best-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.product-best-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.code-product-best {
  color: #b61f24;
  font-size: 12px;
  font-weight: 700;
}

.name-product-best {
  display: -webkit-box;
  overflow: hidden;
  margin: 3px 0 6px;
  color: #1e1e1e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.priceold-product-best {
  color: #959595;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: line-through;
}

.pricenew-product-best {
  color: #e31e2b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.discount-product-best {
  position: absolute;
  top: 9px;
  left: 0;
  align-self: auto;
  padding: 2px 5px;
  border-radius: 0 0 6px 0;
  color: #fff;
  background: #e31e2b;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.product-best-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  margin-top: 14px;
  border: 1px solid #1f1f1f;
  border-radius: 999px;
  color: #1f1f1f;
  font-size: 13px;
  font-weight: 800;
}

.product-best-view-all:hover {
  color: #fff;
  background: #1f1f1f;
}

.product-detail-tabs-wrap-product3 {
  max-width: 1024px;
  margin: 38px auto 0 0;
}

.product-detail-tabs-wrap-product3 #tabsProDetail {
  gap: 8px;
  border-bottom: 0;
}

.product-detail-tabs-wrap-product3 .tabs-pro-detail .nav-tabs .nav-link {
  border: 1px solid #dedede;
  border-radius: 10px 10px 0 0;
  background: #f8f8f8;
  color: #555;
  padding: 13px 22px;
}

.product-detail-tabs-wrap-product3 .tabs-pro-detail .nav-tabs .nav-link.active {
  border-color: #1f1f1f;
  background: #1f1f1f;
  color: #fff;
}

.product-detail-tabs-wrap-product3 .tabs-pro-detail .tab-content {
  margin-top: 0;
  border: 1px solid #e3e3e3;
  border-radius: 0 12px 12px 12px;
  padding: 26px;
  background: #fff;
}

.tabs-product-best-product3 {
  align-self: start;
}

.tabs-product-best-product3 .content-product-best {
  height: auto;
  max-height: none;
}

.tabs-product-best-product3 .content-product-best .swiper-wrapper {
  display: block;
  transform: none !important;
}

.tabs-product-best-product3 .content-product-best .swiper-slide {
  height: auto !important;
  margin-bottom: 0 !important;
}

.tabs-product-best-product3
  .content-product-best
  .swiper-slide:nth-child(n + 6) {
  display: none;
}

.tabs-product-best-product3 .product-best-item {
  min-height: 78px;
}

.tabs-product-best-product3 .product-best-item:hover .name-product-best {
  color: #e31e2b;
}

.product-related-section {
  margin-top: 38px;
  padding-bottom: 28px;
}

.product-related-section .swiper {
  padding: 2px 4px 8px;
}

.product-related-section .swiper-slide {
  height: auto;
}

.product-related-section .product-list-card {
  height: 100%;
}

@media (max-width: 1199px) {
  .product-list-layout,
  .product-list-layout-right-sidebar {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
  }

  .product-list-layout-right-sidebar {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  .product-list-template-product2
    > .wrap-content
    > .product-list-main
    .product-list-grid,
  .product-list-template-product3 .product-list-grid,
  .product-list-template-product4 .product-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-detail-template-product3 {
    grid-template-columns: minmax(0, 54%) minmax(0, 46%);
    gap: 24px;
  }

  .product-detail-template-product3 .tabs-product-best-product3 {
    grid-column: 1 / -1;
  }

  .product-detail-info-product3 {
    padding: 24px;
  }
}

@media (max-width: 991px) {
  .product-list-layout,
  .product-list-layout-right-sidebar {
    grid-template-columns: 1fr;
  }

  .product-list-sidebar {
    position: static;
    width: 100%;
  }

  .product-list-template-product1
    > .wrap-content
    > .product-list-main
    .product-list-grid,
  .product-list-template-product2
    > .wrap-content
    > .product-list-main
    .product-list-grid,
  .product-list-template-product3 .product-list-grid,
  .product-list-template-product4 .product-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-detail-template,
  .product-detail-template-product1,
  .product-detail-template-product2,
  .product-detail-template-product3 {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .product-detail-template-product3 {
    padding: 0;
  }

  .product-detail-tabs-wrap-product3 {
    max-width: none;
    margin-top: 30px;
  }

  .product-detail-info-product2 {
    padding: 24px;
  }
}

@media (max-width: 767px) {
  .product-list-heading {
    margin-bottom: 20px;
    font-size: 21px;
  }

  .product-list-template-product1
    > .wrap-content
    > .product-list-main
    .product-list-grid,
  .product-list-template-product2
    > .wrap-content
    > .product-list-main
    .product-list-grid,
  .product-list-template-product3 .product-list-grid,
  .product-list-template-product4 .product-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-list-info {
    display: block;
  }

  .product-list-price {
    margin-top: 6px;
    text-align: left;
  }

  .product-list-cart {
    width: 38px;
    height: 38px;
  }

  .product-detail-template-product3 {
    padding: 0;
  }

  .product-detail-template .title-detail h1 {
    font-size: 23px;
  }

  .product-detail-template .price-new-pro-detail {
    font-size: 28px;
  }

  .product-detail-info-product2 {
    padding: 18px;
    border-radius: 12px;
  }

  .product-detail-info-product2 .attr-pro-detail li {
    justify-content: flex-start;
  }

  .product-detail-info-product2 .attr-content-pro-detail {
    text-align: left;
  }

  .product-detail-template .addnow,
  .product-detail-template .buynow {
    width: 100%;
    margin-right: 0;
  }

  .product-detail-tabs-wrap .tabs-pro-detail .nav-tabs .nav-link {
    padding: 12px 14px;
    font-size: 13px;
  }

  .product-detail-tabs-wrap .tabs-pro-detail .tab-content {
    padding: 18px 14px;
  }

  .product-detail-tabs-wrap-product2 {
    margin-top: 30px;
  }

  .product-detail-tabs-wrap-product2 #tabsProDetail {
    justify-content: flex-start;
    gap: 8px;
  }

  .product-detail-tabs-wrap-product2 .tabs-pro-detail .nav-tabs .nav-link {
    padding: 10px 14px;
  }

  .product-detail-tabs-wrap-product2 .tabs-pro-detail .tab-content {
    padding: 18px 14px;
    border-radius: 12px;
  }

  .product-detail-template .price-old-pro-detail {
    display: block;
    margin: 4px 0 0;
  }

  .tabs-product-best {
    margin-top: 22px;
  }

  .tabs-product-best-product3 {
    margin-top: 0;
  }

  .product-detail-info-product3 {
    padding: 18px;
    border-radius: 12px;
  }

  .product-detail-info-product3 .attr-pro-detail li {
    justify-content: flex-start;
  }

  .product-detail-info-product3 .attr-content-pro-detail {
    text-align: left;
  }

  .product-detail-tabs-wrap-product3 .tabs-pro-detail .nav-tabs .nav-link {
    padding: 10px 14px;
  }

  .product-detail-tabs-wrap-product3 .tabs-pro-detail .tab-content {
    padding: 18px 14px;
    border-radius: 0 10px 10px 10px;
  }

  .product-best-item {
    grid-template-columns: 68px minmax(0, 1fr) auto;
  }
}

/* =========================================================
   TYPOGRAPHY - PRODUCT
   ========================================================= */

.product-list-template,
.product-detail-template {
  font-family: var(--font-body);
}

/* Page/sidebar headings = FZ Poppins */
.product-list-heading,
.product-list-sidebar-title,
.product-detail-template .title-detail h1 {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Product names = Mona Sans */
.product-list-name,
.product-list-name a,
.product-small-name,
.name-product-best,
.product-detail-brandline,
.product-list-category li a,
.product-list-filter-title,
.product-list-filter .item-search,
.product-detail-template .attr-label-pro-detail,
.product-detail-template .attr-content-pro-detail,
.product-detail-tabs-wrap .tabs-pro-detail .nav-tabs .nav-link {
  font-family: var(--font-body);
}

.product-list-name {
  font-weight: 600;
}

.product-small-name,
.name-product-best {
  font-weight: 600;
}

.product-list-category li a {
  font-weight: 500;
}

.product-list-filter-title {
  font-weight: 600;
}

/* Giá/nút vẫn nổi nhưng không dùng Black */
.product-list-price .price-new,
.product-detail-template .price-new-pro-detail {
  font-family: var(--font-body);
  font-weight: 700;
}

.product-list-discount,
.product-detail-brandline a,
.product-detail-tabs-wrap .tabs-pro-detail .nav-tabs .nav-link {
  font-weight: 700;
}

/* =========================================================
   PRODUCT IMAGE FRAME V3
   - Card ảnh cố định kích thước
   - Giữ đúng tỷ lệ bằng contain
   - Không crop / không kéo méo
   ========================================================= */

.product-list-photo {
  background: #fff;
}

.product-list-photo a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 210px !important;
  aspect-ratio: auto !important;
  padding: 16px !important;
  overflow: hidden;
  background: #fff;
}

.product-list-photo picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-list-photo img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: min(82%, 220px) !important;
  max-height: 155px !important;
  object-fit: contain !important;
  object-position: center !important;
}

.product-list-template-product2 .product-list-photo img {
  max-width: min(82%, 150px) !important;
  max-height: 92px !important;
}

.product-list-template-product3 .product-list-photo img,
.product-list-template-product4 .product-list-photo img {
  max-width: min(84%, 210px) !important;
  max-height: 145px !important;
}

/* Không zoom ảnh card vì dễ làm ảnh nguồn nhỏ nhìn mờ hơn */
.product-list-photo .scale-img:hover > img,
.product-list-photo .scale-img:hover picture > img {
  transform: none !important;
}

/* Sidebar ảnh nổi bật */
.product-small-photo {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 82px !important;
  height: 70px !important;
  aspect-ratio: auto !important;
  padding: 5px;
  background: #fff;
}

.product-small-photo picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-small-photo img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

/* Sản phẩm liên quan trên detail */
.product-related-section .product-list-photo a {
  height: 190px !important;
}

.product-related-section .product-list-photo img {
  max-width: min(82%, 190px) !important;
  max-height: 130px !important;
}

/* Detail layout gần mẫu tham chiếu */
.product-detail-template {
  max-width: 1200px;
  gap: 42px;
  align-items: start;
}

.product-detail-template-product1,
.product-detail-template-product2 {
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
}

@media (max-width: 991px) {
  .product-detail-template,
  .product-detail-template-product1,
  .product-detail-template-product2,
  .product-detail-template-product3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .product-list-photo a {
    height: 155px !important;
    padding: 10px !important;
  }

  .product-list-photo img,
  .product-list-template-product2 .product-list-photo img,
  .product-list-template-product3 .product-list-photo img,
  .product-list-template-product4 .product-list-photo img {
    max-width: min(86%, 170px) !important;
    max-height: 115px !important;
  }

  .product-related-section .product-list-photo a {
    height: 145px !important;
  }
}
