/* =============================================================
   DPT 1.3 - CHI TIET SAN PHAM: 4 PHAN, DESKTOP + MOBILE, ANH 1:1
   Dung cho shortcode: [dpt_product_full]
   ============================================================= */

.dpt-product-full,
.dpt-product-full * { box-sizing: border-box; }

.dpt-product-full {
  --dpt-primary: #194c9a;
  --dpt-cta: #0862d7;
  --dpt-text: #181818;
  --dpt-soft: #eaf1ff;
  --dpt-bg: #fafafa;
  width: 100%;
  color: var(--dpt-text);
  background: var(--dpt-bg);
  font-family: inherit;
  line-height: 1.55;
  font-size: 15px;
}
.dpt-product-full a { text-decoration: none; }
.dpt-product-full img { display: block; }
.dpt-product-full h1,
.dpt-product-full h2,
.dpt-product-full h3 { font-family: inherit; letter-spacing: 0; }

/* 01 - BREADCRUMB (Desktop: thanh xanh tran ngang) */
.dpt-pd-breadcrumb {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: linear-gradient(100deg, #194c94, #095bce);
  color: #fff;
}
.dpt-pd-breadcrumb-in {
  max-width: 1440px;
  margin: auto;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 14px;
}
.dpt-product-full .dpt-pd-breadcrumb a { color: inherit; }
.dpt-product-full .dpt-pd-breadcrumb a:hover { text-decoration: underline; }
.dpt-pd-sep { opacity: .5; }

/* 01 + 02 - GALLERY / SUMMARY */
.dpt-pd-top {
  max-width: 1240px;
  margin: 0 auto;
  padding: 38px 20px 55px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}
.dpt-pd-gallery {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 15px;
}
.dpt-pd-gallery > input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.dpt-pd-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 495px;
  scrollbar-width: thin;
}
.dpt-pd-thumbs label {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
  opacity: .78;
  transition: opacity .2s;
}
.dpt-pd-thumbs label:hover { opacity: 1; }
.dpt-pd-thumbs img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.dpt-pd-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: #f0f0f0;
  overflow: hidden;
  isolation: isolate;
}
.dpt-pd-photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease;
}
.dpt-pd-photo.is-fallback { opacity: 1; visibility: visible; }
.dpt-pd-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.dpt-pd-full-image { display: block; width: 100%; height: 100%; position: relative; }
.dpt-pd-zoom { position: absolute; top: 10px; right: 13px; color: #161616; font-size: 25px; line-height: 1; z-index: 2; }
.dpt-pd-gallery-arrows {
  position: absolute;
  z-index: 5;
  right: 14px;
  bottom: 14px;
  display: none;
  gap: 10px;
}
.dpt-pd-gallery-arrows label {
  display: flex;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 2px 10px #00000010;
  user-select: none;
}
.dpt-pd-gallery-arrows label:hover { background: #eef4ff; }

/* 02 - THONG TIN VA CHINH SACH */
.dpt-pd-summary { min-width: 0; }
.dpt-product-full .dpt-pd-title {
  margin: 0 0 13px;
  color: var(--dpt-primary);
  font-size: clamp(25px, 2vw, 32px);
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}
.dpt-pd-price {
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 19px;
  line-height: 1.5;
}
/* GIÁ GỐC XÁM - GIÁ KHUYẾN MÃI ĐỎ */
.dpt-pd-price .amount { font-weight: inherit; }
.dpt-pd-price del,
.dpt-pd-price del .amount { color: #808080 !important; font-size: .83em; font-weight: 500; opacity: 1; }
.dpt-pd-price ins,
.dpt-pd-price ins .amount { color: #d71920 !important; font-size: 1em; font-weight: 700; text-decoration: none !important; }
.dpt-pd-price > .amount { color: var(--dpt-primary); }
.dpt-pd-price .price { display: inline; }
.dpt-pd-rule { height: 1px; background: #d0d0d0; margin-bottom: 25px; }
.dpt-pd-specs { display: flex; flex-direction: column; gap: 9px; margin: 0 0 22px; padding-left: 16px; }
.dpt-pd-spec {
  display: grid;
  grid-template-columns: 24px 112px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  line-height: 1.65;
  font-size: 15px;
}
.dpt-pd-spec-icon,
.dpt-pd-spec-icon svg { width: 22px; height: 22px; display: block; }
.dpt-pd-spec-icon { margin-top: 2px; }
.dpt-pd-spec-name { white-space: nowrap; }
.dpt-product-full .dpt-pd-size {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  min-height: 0;
  padding: 0;
  margin: 0 0 27px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--dpt-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-align: left;
  text-transform: none;
}
.dpt-product-full .dpt-pd-size:hover { color: #0065d3; background: transparent; }

/* NATIVE POPOVER: BANG SIZE NAM - NU - TRE EM */
.dpt-pd-size-popover {
  color: #1a2534;
  box-sizing: border-box;
  font-family: inherit;
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  padding: 25px;
  width: min(690px, calc(100vw - 28px));
  max-height: min(90dvh, 760px);
  overflow-y: auto;
  border-radius: 19px;
  box-shadow: 0 25px 90px #0d285142;
  background: #fff;
  z-index: 999999;
}
.dpt-pd-size-popover:not(:popover-open) { display: none; }
.dpt-pd-size-popover:popover-open { display: block; }
.dpt-pd-size-popover::backdrop { background: rgba(3, 17, 41, .60); backdrop-filter: blur(2px); }
.dpt-pd-size-popover * { box-sizing: border-box; }
.dpt-pd-size-popover-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.dpt-pd-size-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #6f86a5; }
.dpt-pd-size-popover h2 { margin: 5px 0 4px; color: #184b98; font-size: clamp(21px, 3vw, 28px); font-weight: 700; text-transform: none; }
.dpt-pd-size-popover-head p { margin: 0 0 18px; font-size: 13px; color: #64748b; }
/* Nut dong popup size: vong tron thuc, bong do mem, icon SVG giua nut */
.dpt-product-full .dpt-pd-size-popover button.dpt-pd-size-close {
  appearance: none;
  -webkit-appearance: none;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #e3ebf6 !important;
  border-radius: 50% !important;
  background: #f6f9ff !important;
  color: #194c9a !important;
  box-shadow: 0 5px 16px rgba(25, 76, 154, .14), 0 1px 3px rgba(25, 76, 154, .05) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow .2s ease, background-color .2s ease, transform .2s ease;
}
.dpt-product-full .dpt-pd-size-popover button.dpt-pd-size-close svg {
  width: 18px !important;
  height: 18px !important;
  display: block;
  stroke: currentColor;
  flex: none;
  pointer-events: none;
}
.dpt-product-full .dpt-pd-size-popover button.dpt-pd-size-close:hover {
  background: #eaf2ff !important;
  box-shadow: 0 8px 22px rgba(25, 76, 154, .22) !important;
  transform: translateY(-1px);
}
.dpt-product-full .dpt-pd-size-popover button.dpt-pd-size-close:focus-visible {
  outline: 3px solid rgba(8, 98, 215, .35) !important;
  outline-offset: 3px !important;
}
.dpt-product-full .dpt-pd-size-popover button.dpt-pd-size-close:active {
  transform: translateY(0) scale(.96);
}
.dpt-pd-size-tabs > input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dpt-pd-size-tab-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 13px; background: #edf3fc; margin-bottom: 22px; }
.dpt-pd-size-tab-labels label { display: block; margin: 0; padding: 11px 8px; border-radius: 9px; text-align: center; font-size: 14px; line-height: 1.3; cursor: pointer; color: #375375; font-weight: 600; }
.dpt-pd-size-tabs > input:nth-of-type(1):checked ~ .dpt-pd-size-tab-labels label:nth-child(1),
.dpt-pd-size-tabs > input:nth-of-type(2):checked ~ .dpt-pd-size-tab-labels label:nth-child(2),
.dpt-pd-size-tabs > input:nth-of-type(3):checked ~ .dpt-pd-size-tab-labels label:nth-child(3) { background: linear-gradient(100deg, #174c9c, #0862d4); color: #fff; box-shadow: 0 3px 9px #0f5fc123; }
.dpt-pd-size-panels .dpt-pd-size-panel { display: none; }
.dpt-pd-size-tabs > input:nth-of-type(1):checked ~ .dpt-pd-size-panels .dpt-pd-size-panel-nam,
.dpt-pd-size-tabs > input:nth-of-type(2):checked ~ .dpt-pd-size-panels .dpt-pd-size-panel-nu,
.dpt-pd-size-tabs > input:nth-of-type(3):checked ~ .dpt-pd-size-panels .dpt-pd-size-panel-tre-em { display: block; }
.dpt-pd-size-panel h3 { margin: 0 0 12px; color: #184b98; font-size: 18px; font-weight: 700; text-transform: none; }
.dpt-pd-size-table-scroll { width: 100%; overflow-x: auto; border-radius: 11px; border: 1px solid #dfe8f4; }
.dpt-pd-size-table-scroll table { width: 100%; margin: 0; border: 0; border-collapse: collapse; background: #fff; table-layout: fixed; }
.dpt-pd-size-table-scroll th, .dpt-pd-size-table-scroll td { text-align: center; padding: 12px 7px; border: 0; border-bottom: 1px solid #e4ebf4; font-size: 14px; color: #2b3544; }
.dpt-pd-size-table-scroll thead th { background: #194c9a; color: #fff; font-weight: 700; }
.dpt-pd-size-table-scroll tbody th { color: #184b98; font-weight: 700; }
.dpt-pd-size-table-scroll tbody tr:nth-child(even) { background: #f5f8fe; }
.dpt-pd-size-table-scroll tbody tr:last-child th, .dpt-pd-size-table-scroll tbody tr:last-child td { border-bottom: 0; }
.dpt-pd-size-note { margin: 16px 0 14px; color: #697a90; font-size: 12px; line-height: 1.6; }
.dpt-pd-size-popover .dpt-pd-size-cta { display: block; padding: 12px 15px; border-radius: 10px; background: #1658b5; color: white; text-align: center; text-decoration: none; font-size: 14px; font-weight: 600; }
.dpt-pd-size-popover .dpt-pd-size-cta:hover { color: #fff; background: #0d69dc; }
@media(max-width: 520px) {
  .dpt-pd-size-popover { padding: 17px; border-radius: 14px; }
  .dpt-pd-size-popover-head p { margin-bottom: 15px; }
  .dpt-pd-size-tab-labels label { font-size: 13px; padding: 11px 4px; }
  .dpt-pd-size-table-scroll th, .dpt-pd-size-table-scroll td { padding: 10px 3px; font-size: 12px; }
}
.dpt-pd-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 15px 19px;
  margin-bottom: 23px;
  border-radius: 999px;
  background: linear-gradient(100deg, #dbe7ff, #f0f4ff);
}
.dpt-product-full .dpt-pd-contact-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 47px;
  padding: 10px 12px;
  background: linear-gradient(90deg, #164b99, #075ece);
  color: white;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
}
.dpt-product-full .dpt-pd-contact-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px #0a50a52b;
}
.dpt-pd-contact-btn svg { width: 24px; height: 24px; flex: 0 0 auto; }
.dpt-pd-zalo-badge {
  display: inline-flex;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: white;
  color: #075ece;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 9px;
}
.dpt-pd-rule-bottom { margin-bottom: 28px; }
.dpt-pd-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 21px; }
.dpt-pd-benefit { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 13px; font-weight: 500; line-height: 1.5; }
.dpt-pd-benefit-icon {
  display: flex;
  width: 53px;
  height: 53px;
  flex: 0 0 53px;
  justify-content: center;
  align-items: center;
  border: 1px solid #bcd4f8;
  border-radius: 7px;
  background: #fff;
  color: #075dc7;
  font-size: 26px;
}
.dpt-pd-benefit-icon svg { width: 30px; height: 30px; stroke: #0862d1; }

/* 03 - NOI DUNG + BAI VIET: 2 COT CAO BANG NHAU TREN DESKTOP */
.dpt-product-full .dpt-pd-content-grid {
  /* 6 bai, moi bai 94px; 5 khoang cach 20px; padding tren/duoi 25px: 714px. */
  --dpt-content-height: 714px;
  --dpt-article-row: 94px;
  --dpt-article-gap: 20px;
  max-width: 1240px;
  margin: 0 auto 46px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 2.55fr) minmax(280px, 1fr);
  gap: 30px;
  height: var(--dpt-content-height);
  align-items: stretch;
  min-height: 0;
}
.dpt-product-full .dpt-pd-description,
.dpt-product-full .dpt-pd-articles {
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 2px 14px rgba(22, 60, 116, .025);
}
.dpt-product-full .dpt-pd-description {
  padding: 36px 42px 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dpt-product-full .dpt-pd-description h2 {
  flex: 0 0 auto;
  margin: 0 0 25px;
  color: var(--dpt-primary);
  font-weight: 700;
  font-size: clamp(25px, 2.15vw, 33px);
  line-height: 1.35;
  text-transform: none !important;
}
/* Tieu de nam yen, phan mo ta dai se cuon ben trong cot trai */
.dpt-product-full .dpt-pd-description-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #aec8ec #f2f6fd;
  padding-right: 12px;
  overflow-wrap: anywhere;
  color: #242424;
}
.dpt-pd-description-body > :first-child { margin-top: 0; }
.dpt-pd-description-body p { margin-bottom: 1.2em; }
.dpt-pd-description-body img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}
/* Cot bai viet cuon rieng va KHONG day khung cao hon */
.dpt-product-full .dpt-pd-articles {
  display: flex;
  flex-direction: column;
  gap: var(--dpt-article-gap);
  padding: 25px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #aec8ec #f2f6fd;
}
.dpt-product-full .dpt-pd-article {
  color: #151515;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: start;
  gap: 17px;
  flex: 0 0 var(--dpt-article-row);
  min-height: var(--dpt-article-row);
  height: var(--dpt-article-row);
  min-width: 0;
}
.dpt-product-full .dpt-pd-article:hover { color: var(--dpt-primary); }
.dpt-pd-article-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 9px;
  background: #e9eef8;
}
.dpt-pd-article-image img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.dpt-pd-no-article-image { display: flex; width: 100%; height: 100%; justify-content: center; align-items: center; color: #275b9c; font-size: 12px; }
.dpt-pd-article-title { font-size: 14px; font-weight: 500; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Scrollbar tinh te cho Chrome/Edge/Safari */
.dpt-product-full .dpt-pd-description-body::-webkit-scrollbar,
.dpt-product-full .dpt-pd-articles::-webkit-scrollbar { width: 6px; }
.dpt-product-full .dpt-pd-description-body::-webkit-scrollbar-track,
.dpt-product-full .dpt-pd-articles::-webkit-scrollbar-track { background: #f2f6fd; border-radius: 10px; }
.dpt-product-full .dpt-pd-description-body::-webkit-scrollbar-thumb,
.dpt-product-full .dpt-pd-articles::-webkit-scrollbar-thumb { background: #aec8ec; border-radius: 10px; }
.dpt-product-full .dpt-pd-description-body::-webkit-scrollbar-thumb:hover,
.dpt-product-full .dpt-pd-articles::-webkit-scrollbar-thumb:hover { background: #194c9a; }

/* 04 - SAN PHAM GOI Y, 4 o Desktop / 2 o Mobile */
.dpt-pd-related { max-width: 1240px; margin: 0 auto; padding: 0 20px 62px; }
.dpt-product-full .dpt-pd-related > h2 {
  color: var(--dpt-primary);
  margin: 0 0 32px;
  font-size: clamp(28px, 2.5vw, 40px);
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
}
.dpt-pd-related-track {
  width: 100%;
  display: flex;
  gap: 25px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0 0 12px;
}
.dpt-pd-related-track::-webkit-scrollbar { display: none; }
.dpt-pd-related-group {
  flex: 0 0 calc((100% - 25px) / 2);
  min-width: 0;
  scroll-snap-align: start;
  scroll-margin-inline: 2px;
}
/* Chuan hoa WooCommerce [products] va cac class grid cua Flatsome */
.dpt-pd-related-group .woocommerce { width: 100%; margin: 0 !important; }
.dpt-pd-related-group .products,
.dpt-pd-related-group .products.row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
}
.dpt-pd-related-group .products > li,
.dpt-pd-related-group .products > .product,
.dpt-pd-related-group .products > .col {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
}
.dpt-pd-related-group .product-small .col-inner,
.dpt-pd-related-group .box { height: 100%; }
.dpt-pd-related-group .woocommerce-LoopProduct-link,
.dpt-pd-related-group .box-image > a,
.dpt-pd-related-group .product-small .box-image { display: block; }
.dpt-pd-related-group .box-image,
.dpt-pd-related-group .image-cover,
.dpt-pd-related-group .product-small .box-image,
.dpt-pd-related-group ul.products li.product a img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 17px !important;
  overflow: hidden !important;
}
.dpt-pd-related-group .image-cover {
  padding-top: 0 !important;
  height: auto !important;
}
.dpt-pd-related-group .box-image img,
.dpt-pd-related-group .image-cover img,
.dpt-pd-related-group ul.products li.product img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
}
.dpt-pd-related-group .image-cover img { position: absolute !important; inset: 0; }
.dpt-pd-related-group ul.products li.product .woocommerce-loop-product__title,
.dpt-pd-related-group .product-small .name,
.dpt-pd-related-group .box-text .name {
  margin: 19px 0 0 !important;
  color: #222 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  text-align: left !important;
  text-transform: none !important;
}
.dpt-pd-related-group .box-text { padding: 0 !important; text-align: left !important; }
.dpt-pd-related-group .box-text .title-wrapper { text-align: left; }
.dpt-pd-related-group .star-rating,
.dpt-pd-related-group .badge-container,
.dpt-pd-related-group .quick-view { display: none !important; }
.dpt-pd-related-group .price { display: block; margin-top: 7px; text-align: left !important; font-size: 14px; }
.dpt-product-full .dpt-pd-loop-contact,
.dpt-product-full .dpt-pd-related-group a.button.dpt-pd-loop-contact {
  display: inline-block !important;
  color: var(--dpt-primary) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 21px 0 0 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  min-height: 0 !important;
}
.dpt-pd-related-dots { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; }
.dpt-pd-related-dots a { display: block; width: 12px; height: 12px; border-radius: 20px; background: #bdbdbd; }
.dpt-pd-related-dots a.is-first { width: 53px; background: var(--dpt-primary); }
.dpt-pd-related-dots a:hover,
.dpt-pd-related-dots a:focus-visible { background: var(--dpt-primary); }

/* Tuy chon [product_categories] */
.dpt-pd-dynamic-categories { margin-top: 48px; }
.dpt-pd-dynamic-categories h3 { color: var(--dpt-primary); font-size: 26px; }
.dpt-pd-dynamic-categories ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.dpt-pd-dynamic-categories ul.products li.product-category { width: 100% !important; margin: 0 !important; float: none !important; }
.dpt-pd-dynamic-categories ul.products li.product-category img { width: 100% !important; aspect-ratio: 1 / 1 !important; height: auto !important; object-fit: cover; border-radius: 15px; }

/* Tablet */
@media (max-width: 1100px) and (min-width: 850px) {
  .dpt-product-full .dpt-pd-content-grid { gap: 18px; }
  .dpt-product-full .dpt-pd-description { padding: 27px 28px 23px; }
  .dpt-pd-top { gap: 26px; }
  .dpt-pd-gallery { grid-template-columns: 60px minmax(0,1fr); gap: 10px; }
  .dpt-pd-spec { grid-template-columns: 22px 100px minmax(0,1fr); gap: 8px; font-size: 13px; }
  .dpt-pd-contact { gap: 9px; padding: 12px; }
  .dpt-product-full .dpt-pd-contact-btn { font-size: 12px; }
  .dpt-pd-benefit { font-size: 12px; }
}

/* Mobile - giao dien doc theo anh mau */
@media (max-width: 849px) {
  .dpt-product-full { background: #fafafa; }
  .dpt-pd-breadcrumb { background: transparent; color: #202020; }
  .dpt-pd-breadcrumb-in { justify-content: flex-start; padding: 15px 15px 12px; gap: 5px 9px; font-size: 13px; }
  .dpt-pd-sep { color: #a0a0a0; opacity: 1; }
  .dpt-pd-top { display: flex; flex-direction: column; gap: 0; padding: 0 15px 40px; }
  .dpt-pd-gallery { display: block; width: 100%; }
  .dpt-pd-thumbs { display: none; }
  .dpt-pd-stage { width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; }
  .dpt-pd-gallery-arrows { right: 12px; bottom: 12px; gap: 9px; }
  .dpt-pd-gallery-arrows label { width: 46px; height: 46px; }
  .dpt-pd-summary { width: 100%; padding-top: 24px; }
  .dpt-product-full .dpt-pd-title { font-size: clamp(24px, 5.8vw, 33px); margin-bottom: 14px; }
  .dpt-pd-price { font-size: 27px; margin-bottom: 21px; }
  .dpt-pd-rule { margin-bottom: 21px; }
  .dpt-pd-specs { padding-left: 3px; gap: 17px; margin-bottom: 28px; }
  .dpt-pd-spec { grid-template-columns: 24px minmax(91px, .75fr) minmax(0, 1.4fr); column-gap: 10px; font-size: 14px; }
  .dpt-pd-spec-name { white-space: normal; }
  .dpt-product-full .dpt-pd-size { font-size: 15px; margin-bottom: 27px; }
  .dpt-pd-contact { padding: 13px 9px; gap: 7px; border-radius: 13px; margin-bottom: 26px; }
  .dpt-product-full .dpt-pd-contact-btn { min-height: 47px; padding: 9px 5px; gap: 6px; font-size: clamp(10px, 2.8vw, 15px); }
  .dpt-pd-contact-btn svg { width: 19px; height: 19px; }
  .dpt-pd-zalo-badge { width: 22px; height: 22px; flex-basis: 22px; font-size: 8px; }
  .dpt-pd-rule-bottom { display: none; }
  .dpt-pd-benefits { padding: 24px 16px; border-radius: 15px; background: #fff; grid-template-columns: 1fr; gap: 20px; }
  .dpt-pd-benefit { gap: 15px; font-size: 14px; }
  .dpt-pd-benefit-icon { width: 47px; height: 47px; flex-basis: 47px; font-size: 24px; }

  /* 03 - Mobile: noi dung roi den bai viet */
  /* Mobile: tra lai chieu cao tu nhien de cuon ca trang, khong khoa khung */
  .dpt-product-full .dpt-pd-content-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
    height: auto;
    padding: 0 15px;
    margin-bottom: 49px;
  }
  .dpt-product-full .dpt-pd-description {
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
    padding: 5px 0 0;
    background: transparent;
    border-radius: 0;
    display: block;
    overflow: visible;
    box-shadow: none;
  }
  .dpt-product-full .dpt-pd-description h2 { margin: 0 0 22px; font-size: clamp(26px, 6.3vw, 36px); }
  .dpt-product-full .dpt-pd-description-body { font-size: 14px; overflow: visible; padding-right: 0; }
  .dpt-product-full .dpt-pd-articles {
    width: 100%;
    height: auto;
    max-height: none;
    padding: 22px 18px;
    gap: 24px;
    border-radius: 15px;
    overflow: visible;
  }
  .dpt-product-full .dpt-pd-article { grid-template-columns: 85px minmax(0, 1fr); gap: 16px; }
  .dpt-pd-article-title { font-size: 14px; line-height: 1.5; -webkit-line-clamp: 3; }

  /* 04 - Mobile: 2 san pham trong 1 nhom */
  .dpt-pd-related { padding: 0 15px 50px; }
  .dpt-product-full .dpt-pd-related > h2 { font-size: clamp(26px, 6.7vw, 37px); margin-bottom: 27px; }
  .dpt-pd-related-track { gap: 10px; }
  .dpt-pd-related-group { flex-basis: 100%; }
  .dpt-pd-related-group .products,
  .dpt-pd-related-group .products.row { gap: 10px !important; }
  .dpt-pd-related-group .box-image,
  .dpt-pd-related-group .image-cover,
  .dpt-pd-related-group ul.products li.product a img { border-radius: 12px !important; }
  .dpt-pd-related-group ul.products li.product .woocommerce-loop-product__title,
  .dpt-pd-related-group .product-small .name,
  .dpt-pd-related-group .box-text .name { font-size: 14px !important; margin-top: 14px !important; }
  .dpt-pd-related-dots { margin-top: 26px; gap: 12px; }
  .dpt-pd-dynamic-categories ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }

  /* DPT 1.3 - Font Mobile: tieu de 20px, noi dung 17px, ghi chu 15px. */
  .dpt-product-full {
    font-size: 17px;
    line-height: 1.65;
  }

  /* Cac tieu de chinh cua trang chi tiet. */
  .dpt-product-full .dpt-pd-title,
  .dpt-product-full .dpt-pd-description h2,
  .dpt-product-full .dpt-pd-related > h2,
  .dpt-product-full .dpt-pd-dynamic-categories h3 {
    font-size: 20px !important;
    line-height: 1.45;
    letter-spacing: 0;
  }

  /* Mo ta san pham ke ca khi WordPress/theming gan font rieng cho p, li. */
  .dpt-product-full .dpt-pd-description-body,
  .dpt-product-full .dpt-pd-description-body p,
  .dpt-product-full .dpt-pd-description-body li,
  .dpt-product-full .dpt-pd-description-body td,
  .dpt-product-full .dpt-pd-spec,
  .dpt-product-full .dpt-pd-benefit {
    font-size: 17px !important;
    line-height: 1.7;
  }

  /* Tieu de bai viet ben phai. */
  .dpt-product-full .dpt-pd-article-title {
    font-size: 20px !important;
    line-height: 1.45;
    -webkit-line-clamp: 3;
  }

  /* Chu mo ta duoi anh goi y 2 cot de tranh qua to. */
  .dpt-product-full .dpt-pd-related-group ul.products li.product .woocommerce-loop-product__title,
  .dpt-product-full .dpt-pd-related-group .product-small .name,
  .dpt-product-full .dpt-pd-related-group .box-text .name {
    font-size: 17px !important;
    line-height: 1.55 !important;
  }

  /* Ghi chu/chu phu 15px, khong thu nho theo theme. */
  .dpt-product-full .dpt-pd-breadcrumb-in,
  .dpt-product-full .dpt-pd-spec-name,
  .dpt-product-full .dpt-pd-size,
  .dpt-product-full .dpt-pd-no-article-image,
  .dpt-product-full .dpt-pd-description-body figcaption,
  .dpt-product-full .dpt-pd-description-body small {
    font-size: 15px !important;
    line-height: 1.6;
  }

  /* Moi the bai viet co chieu cao tu dong theo font moi. */
  .dpt-product-full .dpt-pd-article {
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    align-items: start;
  }
  .dpt-product-full .dpt-pd-articles { overflow: visible; }
  .dpt-product-full .dpt-pd-article-image { width: 100%; }
  .dpt-product-full .dpt-pd-description-body { overflow-y: visible; }
}

/* Bang size la popover dua len top layer; font mobile ap dung rieng. */
@media (max-width: 849px) {
  .dpt-pd-size-popover h2, .dpt-pd-size-panel h3 { font-size: 20px !important; }
  .dpt-pd-size-popover-head p,
  .dpt-pd-size-note,
  .dpt-pd-size-kicker,
  .dpt-pd-size-tab-labels label,
  .dpt-pd-size-table-scroll th,
  .dpt-pd-size-table-scroll td { font-size: 15px !important; }
  .dpt-pd-size-popover .dpt-pd-size-cta { font-size: 15px; }
}

@media (max-width: 359px) {
  .dpt-pd-top, .dpt-pd-related, .dpt-pd-content-grid { padding-left: 12px; padding-right: 12px; }
  .dpt-pd-spec { grid-template-columns: 20px minmax(74px,.7fr) minmax(0,1.2fr); gap: 7px; font-size: 17px; }
  .dpt-product-full .dpt-pd-contact-btn { font-size: 10px; }
  .dpt-pd-benefit { font-size: 17px; }
  .dpt-product-full .dpt-pd-article { grid-template-columns: 72px minmax(0,1fr); gap: 12px; }
}


/* 1.3 - Smaller mobile: keep action buttons legible without causing overflow */
@media (max-width: 399px) {
  .dpt-product-full .dpt-pd-contact-btn { font-size: 12px; }
  .dpt-product-full .dpt-pd-contact { gap: 6px; }
}
@media (min-width: 400px) and (max-width: 849px) {
  .dpt-product-full .dpt-pd-contact-btn { font-size: 15px; }
}

