.pd_page_title .bread {
	background-color: #ededed;
	padding: 10px 15px;
	margin-bottom: 25px;
}

.pd_page_title .custom-breadcrumb {
	font-size: 13px;
	color: var(--news-muted);
	margin: 0;
	padding: 0;
}

.pd_page_title .custom-breadcrumb a {
	color: var(--news-muted);
	text-decoration: none;
}

.pd_page_title .custom-breadcrumb a:hover {
	color: var(--color-main);
}

.pd_page_title .custom-breadcrumb span {
	color: var(--news-text);
}

/* ========================================================
   2. KHUNG ẢNH CHÍNH & THUMBNAILS (ĐÃ BỔ SUNG ĐOẠN BỊ THIẾU)
   ======================================================== */
/* Khung viền ảnh lớn bên trên */
.pd_page_title .product-images {
	border: 1px solid #e1e1e1;
	border-radius: 2px;
	padding: 10px;
	background: var(--color-white);
	position: relative;
	margin-bottom: 12px;
}

.pd_page_title .product-images .flickity-viewport {
	height: 480px;
	max-height: 480px;
}

.pd_page_title .product-images .woocommerce-product-gallery__image,
.pd_page_title .product-images .woocommerce-product-gallery__image a,
.pd_page_title .product-images .woocommerce-product-gallery__image img {
	height: 480px;
	max-height: 480px;
	width: 100%;
	object-fit: contain;
	display: block;
}

.pd_page_title .badge-container,
.pd_page_title .image-tools,
.pd_page_title .product-images .badge-container,
.pd_page_title .product-images .image-tools {
	display: none;
	visibility: hidden;
	opacity: 0;
}

/* Khung thumbnails bên dưới */
.pd_page_title .product-thumbnails {
	position: relative !important;
	padding: 0 35px !important;
	margin-top: 15px !important;
}

.pd_page_title .product-thumbnails .flickity-viewport {
	height: 75px !important;
	max-height: 75px !important;
	overflow: hidden !important;
}

.pd_page_title .product-thumbnails .col {
	width: 68px;
	height: 68px;
	padding: 0 4px;
	margin: 0;
}

.pd_page_title .product-thumbnails .col a {
	display: block;
	width: 100%;
	height: 100%;
	border: 1px solid #dcdcdc;
	padding: 2px;
	background: var(--color-white);
	box-sizing: border-box;
}

.pd_page_title .product-thumbnails .col.is-nav-selected a {
	border-color: #333333;
}

.pd_page_title .product-thumbnails .col img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pd_page_title .product-thumbnails .flickity-prev-next-button svg {
	display: none;
}

.pd_page_title .product-thumbnails .flickity-prev-next-button.next,
.pd_page_title .product-thumbnails.slider-no-arrows .flickity-prev-next-button.next {
	right: 0;
}

.pd_page_title .product_chitiet {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.pd_page_title .product_chitiet .product-purchase,
.pd_page_title .product_chitiet .product-purchase form.cart {
	display: contents;
}

.pd_page_title .product_chitiet .product-heading {
	order: 1;
	font-size: 20px;
	font-weight: 500;
	color: var(--news-text);
	margin: 0 0 8px;
	line-height: 1.4;
	text-transform: uppercase;
}
.pd_page_title .product_chitiet .product-code {
	order: 2;
	font-size: 13px;
	color: var(--news-text);
	margin: 0 0 10px;
}

.pd_page_title .product_chitiet .product-price {
	order: 3;
	flex: 0 0 100%;
	width: 100%;
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: 0 0 14px;
	font-size: 14px;
	color: var(--news-text);
}

.pd_page_title .product_chitiet .product-price .price-value {
	display: inline-flex;
	align-items: baseline;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 10px;
}

.pd_page_title .product_chitiet .product-price .price-value ins,
.pd_page_title .product_chitiet .product-price .price-value ins *,
.pd_page_title .product_chitiet .product-price .price-value ins .amount,
.pd_page_title .product_chitiet .product-price .price-value ins bdi {
	color: var(--color-main);
	font-size: 21px;
	font-weight: 700;
	text-decoration: none;
}

.pd_page_title .product_chitiet .product-price .price-value del,
.pd_page_title .product_chitiet .product-price .price-value del * {
	color: #888888;
	font-size: 13px;
	text-decoration: line-through;
}
.pd_page_title .product_chitiet .product-purchase .quantity {
	order: 4;
	flex: 0 0 100%;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border: none;
	background: transparent;
	box-shadow: none;
	padding: 0;
	margin: 0 0 14px;
}

.pd_page_title .product_chitiet .product-purchase .quantity::before {
	content: "Số lượng:";
	display: block;
	flex: 0 0 100%;
	width: 100%;
	font-size: 13px;
	color: var(--news-text);
	margin-bottom: 7px;
}

.pd_page_title .product_chitiet .product-purchase .quantity .minus,
.pd_page_title .product_chitiet .product-purchase .quantity .qty,
.pd_page_title .product_chitiet .product-purchase .quantity .plus {
	height: 30px;
	min-height: 30px;
	max-height: 30px;
	line-height: 28px;
	border: 1px solid #cccccc;
	background: var(--color-white);
	color: var(--news-text);
	margin: 0;
	padding: 0;
	text-align: center;
	box-shadow: none;
	font-size: 14px;
}

.pd_page_title .product_chitiet .product-purchase .quantity .minus {
	width: 30px;
	border-right: none;
	border-radius: 2px 0 0 2px;
	cursor: pointer;
}

.pd_page_title .product_chitiet .product-purchase .quantity .qty {
	width: 42px;
	border-radius: 0;
	border-left: 1px solid #cccccc;
	border-right: 1px solid #cccccc;
	font-weight: 600;
	-moz-appearance: textfield;
}
.pd_page_title .product_chitiet .product-purchase .quantity .plus {
	width: 30px;
	border-left: none;
	border-radius: 0 2px 2px 0;
	cursor: pointer;
}

.pd_page_title .product_chitiet .product-purchase .quantity .qty::-webkit-outer-spin-button,
.pd_page_title .product_chitiet .product-purchase .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.pd_page_title .product_chitiet .product-views {
	order: 5;
	width: 100%;
	font-size: 13px;
	color: var(--news-text);
	margin: 0 0 14px;
}

.pd_page_title .product_chitiet .product-purchase .single_add_to_cart_button,
.pd_page_title .product_chitiet .product-purchase .product-buy-now {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 36px;
	padding: 0 16px;
	border: none;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--color-white);
	cursor: pointer;
	box-shadow: none;
	margin: 0 10px 18px 0;
	max-width: fit-content;
	flex: 0 0 auto;
}
.pd_page_title .product_chitiet .product-purchase .single_add_to_cart_button {
	order: 6;
	background-color: #20a844;
}

.pd_page_title .product_chitiet .product-purchase .single_add_to_cart_button:hover {
	background-color: #178a36;
}

.pd_page_title .product_chitiet .product-purchase .single_add_to_cart_button::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.pd_page_title .product_chitiet .product-purchase .product-buy-now {
	order: 7;
	background-color: #343a40;
}

.pd_page_title .product_chitiet .product-purchase .product-buy-now:hover {
	background-color: var(--color-main);
}

.pd_page_title .product_chitiet .product-purchase .product-buy-now::before {
	content: "";
	display: inline-block;
	width: 13px;
	height: 13px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2zm6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2v12z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2zm6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2v12z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.pd_page_title .product_chitiet .product-description {
	order: 8;
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--color-text-main);
	margin-top: 5px;
}

.pd_page_title .product-thumbnails .flickity-prev-next-button {
	display: none;
}

.pd_page_title .product-gallery-slider .flickity-prev-next-button {
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: visible;
	opacity: 1;
	cursor: pointer;
	pointer-events: auto;
	background: transparent;
	border: none;
	box-shadow: none;
	width: 24px;
	height: 24px;
	padding: 0;
	position: absolute;
	top: calc(100% + 45px);
	z-index: 99;
}

.pd_page_title .product-gallery-slider .flickity-prev-next-button svg {
	display: none;
}

.pd_page_title .product-gallery-slider .flickity-prev-next-button.previous {
	left: -25px;
}

.pd_page_title .product-gallery-slider .flickity-prev-next-button.previous::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border-left: 2px solid #555555;
	border-bottom: 2px solid #555555;
	transform: rotate(45deg);
	margin-left: 4px;
}

.pd_page_title .product-gallery-slider .flickity-prev-next-button.next {
	right: 0;
}

.pd_page_title .product-gallery-slider .flickity-prev-next-button.next::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border-right: 2px solid #555555;
	border-bottom: 2px solid #555555;
	transform: rotate(-45deg);
	margin-right: 4px;
}

.pd_page_ttsp {
  padding: 30px 0 !important;
  background: #fff;
  color: #111;
  font-size: 14px;
}

/* Bỏ khung mặc định */
.pd_page_ttsp .woocommerce-tabs {
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Hai tab nằm sát nhau bên trái */
.pd_page_ttsp .woocommerce-tabs > .product-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #dce1e7 !important;
  background: transparent !important;
}

.pd_page_ttsp .woocommerce-tabs > .product-tabs > li {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 0 -1px !important;
  padding: 0 !important;
  border: 0 !important;
  list-style: none !important;
  text-align: left !important;
}

.pd_page_ttsp .woocommerce-tabs > .product-tabs > li > a {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 10px 16px !important;
  border: 1px solid transparent !important;
  border-top: 3px solid transparent !important;
  border-radius: 3px 3px 0 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 18px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
}

.pd_page_ttsp .woocommerce-tabs > .product-tabs > li.active > a {
  border: 1px solid #dce1e7 !important;
  border-top: 3px solid #f39c12 !important;
  border-bottom-color: #fff !important;
  background: #fff !important;
}

/* Xóa đường trang trí của theme */
.pd_page_ttsp .product-tabs::before,
.pd_page_ttsp .product-tabs::after,
.pd_page_ttsp .product-tabs > li::before,
.pd_page_ttsp .product-tabs > li::after,
.pd_page_ttsp .product-tabs > li > a::before,
.pd_page_ttsp .product-tabs > li > a::after {
  display: none !important;
}

/* Nội dung không có khung bao */
.pd_page_ttsp .woocommerce-tabs > .tab-panels {
  margin: 0 !important;
  padding: 24px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pd_page_ttsp .tab-panels > .woocommerce-Tabs-panel {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #111;
  font-size: 14px;
  line-height: 1.5;
}

.pd_page_ttsp .woocommerce-Tabs-panel--description p {
  margin: 0 0 2px !important;
}

.pd_page_ttsp .woocommerce-Tabs-panel--description ul {
  margin: 0 0 16px !important;
  padding-left: 39px !important;
  list-style: disc outside !important;
}

.pd_page_ttsp .woocommerce-Tabs-panel--description li {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5 !important;
}

.pd_page_ttsp .woocommerce-Tabs-panel--description .tab-pane > p:last-child {
  display: table;
  margin: 16px 0 0 18px !important;
  text-align: center;
}

/* Tab Bình luận trống như ảnh mẫu:
   ẩn phần đánh giá và form mặc định WooCommerce */
.pd_page_ttsp .woocommerce-Tabs-panel--reviews .woocommerce-Reviews {
  display: none !important;
}
.pd_page_spcl {
  padding: 30px 0 !important;
  background: var(--color-white);
  color: var(--color-text-main);
}

.pd_page_spcl .related-products-wrapper {
  padding: 0;
  border: 0;
}

/* Tiêu đề */
.pd_page_spcl .product-section-title {
  max-width: 100%;
  margin: 0 0 44px !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--color-main);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.pd_page_spcl .product-section-title::before,
.pd_page_spcl .product-section-title::after {
  display: none !important;
}

/* Khoảng cách sản phẩm — giữ cơ chế slider của theme */
.pd_page_spcl .related-products-wrapper > .row {
  max-width: none;
  margin-right: -10px !important;
  margin-left: -10px !important;
}

.pd_page_spcl .product-small.col {
  padding: 0 10px 20px !important;
}

.pd_page_spcl .product-small.col > .col-inner {
  position: relative;
  background: var(--color-white);
  box-shadow: none !important;
}

.pd_page_spcl .product-small.box {
  background: transparent;
  box-shadow: none !important;
}

/* Khung ảnh */
.pd_page_spcl .box-image {
  width: 100%;
  margin: 0 !important;
  padding: 5px !important;
  border: 1px solid color-mix(
    in srgb,
    var(--color-black) 8%,
    var(--color-white)
  );
  background: var(--color-white);
}

.pd_page_spcl .box-image .image-fade_in_back {
  height: 324px;
  padding: 0 !important;
  overflow: hidden;
}

.pd_page_spcl .box-image .image-fade_in_back > a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.pd_page_spcl .box-image .image-fade_in_back > a > img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center;
}

/* Ẩn danh mục và nút xem nhanh như mẫu */
.pd_page_spcl .product-cat,
.pd_page_spcl .box-image .image-tools {
  display: none !important;
}

/* Tên sản phẩm */
.pd_page_spcl .box-text-products {
  padding: 9px 0 0 !important;
  text-align: center;
}

.pd_page_spcl .product-title {
  margin: 0 0 6px !important;
  padding: 0;
}

.pd_page_spcl .product-title > a {
  display: block;
  overflow: hidden;
  color: var(--color-black);
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd_page_spcl .product-title > a:hover {
  color: var(--color-main);
}

/* Giá bán trước, giá gốc sau */
.pd_page_spcl .price-wrapper .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 3px 12px;
  margin: 0;
  color: var(--news-red);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.pd_page_spcl .price-wrapper .price > ins {
  order: -1;
  background: transparent;
  text-decoration: none;
}

.pd_page_spcl .price-wrapper .price > del {
  color: var(--news-muted);
  font-size: 13px;
  opacity: 1;
}

.pd_page_spcl .price-wrapper .amount {
  color: inherit;
  font-weight: 400;
}

/* Nhãn giảm giá góc phải */
.pd_page_spcl .product-small.col > .col-inner > .badge-container {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 3;
  margin: 0 !important;
}

.pd_page_spcl .badge-container .badge-container {
  position: static !important;
  margin: 0 !important;
}

.pd_page_spcl .badge-container .badge {
  display: block;
  width: auto;
  height: auto;
  margin: 0 !important;
}

.pd_page_spcl .badge-container .badge-inner {
  min-width: 45px;
  height: 25px;
  padding: 0 9px;
  border-radius: 2px !important;
  background: var(--color-black) !important;
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  line-height: 25px;
  text-align: center;
}

/* Hai nút bên dưới */
.pd_page_spcl .custom-action-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
  margin-top: 5px;
}

.pd_page_spcl .custom-action-btns > .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 3px;
  box-shadow: none !important;
  color: var(--color-white) !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 31px;
  letter-spacing: 0;
  text-transform: none;
}

.pd_page_spcl .custom-action-btns > .add_to_cart_button {
  background: #28a745 !important;
}

.pd_page_spcl .custom-action-btns > .buy-now-btn {
  background: var(--color-main) !important;
}

.pd_page_spcl .custom-action-btns > .button:hover {
  filter: brightness(0.9);
}

/* Tablet */
@media (min-width: 550px) and (max-width: 849px) {
  .pd_page_spcl .box-image .image-fade_in_back {
    height: 280px;
  }
}

/* Mobile */
@media (max-width: 549px) {
  .pd_page_spcl .product-section-title {
    margin-bottom: 26px !important;
    font-size: 24px;
  }

  .pd_page_spcl .box-image .image-fade_in_back {
    height: 220px;
  }

  .pd_page_spcl .product-title > a {
    font-size: 13px;
  }

  .pd_page_spcl .custom-action-btns {
    gap: 6px;
  }

  .pd_page_spcl .custom-action-btns > .button {
    padding: 0 8px !important;
    font-size: 11px;
  }
}
@media (max-width: 768px) {
  .pd_page_ttsp .woocommerce-tabs > .product-tabs > li > a {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }

  .pd_page_ttsp .woocommerce-Tabs-panel--description ul {
    padding-left: 24px !important;
  }
	/* Đưa 2 nút về full 100% chiều rộng */
    .pd_page_title .product_chitiet .product-purchase .single_add_to_cart_button,
    .pd_page_title .product_chitiet .product-purchase .product-buy-now {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 44px !important;            /* Chiều cao nút vừa vặn bấm ngón tay */
        font-size: 13.5px !important;       /* Kích thước chữ */
        font-weight: 700 !important;
        border-radius: 4px !important;       /* Bo góc nhẹ giống ảnh */
        text-align: center !important;
        justify-content: center !important;
    }

    /* Ẩn icon giỏ hàng & icon túi xách trên mobile để giống ảnh mẫu */
    .pd_page_title .product_chitiet .product-purchase .single_add_to_cart_button::before,
    .pd_page_title .product_chitiet .product-purchase .product-buy-now::before {
        display: none !important;
    }

    /* Khoảng cách giữa nút Xanh và nút Đen */
    .pd_page_title .product_chitiet .product-purchase .single_add_to_cart_button {
        margin: 0 0 10px 0 !important;
    }

    /* Khoảng cách dưới của nút Mua Ngay */
    .pd_page_title .product_chitiet .product-purchase .product-buy-now {
        margin: 0 0 15px 0 !important;
    }
}