/*
Theme Name: AZ Theme Child
Theme URI: https://tndigi.com
Description: Giao diện riêng của website, kế thừa framework dùng chung từ AZ Theme.
Author: TN Digi Solution
Author URI: https://tndigi.com
Template: az-theme
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: az-theme-child
*/

.az-vns-site .az-shop-page.az-child-vns-categories {
  padding-block: clamp(20px, 2vw, 36px) clamp(30px, 3.25vw, 62px);
  background: var(--az-color-page);
}
.az-child-vns-categories__title {
  margin: 0 0 24px;
  text-align: center;
}
.az-child-vns-categories__description {
  margin-block-end: 24px;
  padding: 16px 20px;
  background: var(--az-color-surface);
  text-align: center;
}
.az-child-vns-categories__description > :last-child { margin-block-end: 0; }
.az-child-vns-categories__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.3vw, 25px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.az-child-vns-categories__card {
  display: grid;
  height: 100%;
  align-content: start;
  background: var(--az-color-surface);
  color: var(--az-color-text);
  text-align: center;
  text-decoration: none;
}
.az-child-vns-categories__card:is(:hover, :focus-visible) { color: var(--az-color-primary-dark); }
.az-child-vns-categories__image {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: 8px;
}

.az-vns-site :is(.az-product-card .az-product-card__image.az-shop-card-img, .az-child-vns-categories__image) {
  aspect-ratio: 1;
  box-sizing: border-box;
  background: var(--az-color-surface, #fff);
}

.az-vns-site :is(.az-product-card .az-product-card__image.az-shop-card-img, .az-child-vns-categories__image) img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.az-vns-site .az-product-card:is(:hover, :focus-within) .az-product-card__image.az-shop-card-img img {
  transform: none;
}
.az-child-vns-categories__card strong {
  padding: clamp(10px, 1.3vw, 24px) 10px;
  font-size: clamp(13px, 1.3vw, 24px);
  line-height: 1.32;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
@media (max-width: 782px) {
  .az-child-vns-categories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Default page content, including imported content nested inside divs. */
.az-page-simple__header {
  text-align:center;
  padding-bottom:0;
  border-bottom:0;
}
.az-page-simple__header h1 {
  margin:0;
  color:var(--az-color-primary);
  font-family:var(--az-font-heading,var(--az-font-main,Arial,sans-serif));
  font-size:clamp(26px,3vw,38px);
  font-weight:600;
  line-height:1.25;
  text-transform:uppercase;
}
.az-page-simple__header .pg-brands__ornament {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:25px;
  margin-top:5px;
  color:var(--az-color-primary);
}
.az-page-simple__header .pg-brands__ornament::before,
.az-page-simple__header .pg-brands__ornament::after {
  content:'';
  width:90px;
  border-top:1px dashed var(--az-color-border,#d5d5d5);
}
.az-page-simple__header .pg-brands__ornament span { font-size:21px; line-height:1; white-space:nowrap; }

.az-vns-site .az-blog-archive > .az-blog-archive__hero-inner { padding-block: 28px 12px; }
.az-vns-site .az-blog-archive__hero-inner > .az-page-simple__header { margin-block: 0; }
.az-vns-site .az-blog-archive > .az-blog-archive__hero-inner + .az-blog-archive__body > .az-blog-archive__container { padding-block-start: 20px; }

@media (max-width: 782px) {
  .az-vns-site .az-blog-archive > .az-blog-archive__hero-inner { padding-block: 12px 8px; }
  .az-vns-site .az-blog-archive__hero-inner > .az-page-simple__header h1 { font-size: clamp(18px, 5.25vw, 22px); line-height: 1.2; }
  .az-vns-site .az-blog-archive__hero-inner > .az-page-simple__header .pg-brands__ornament { gap: 8px; height: 16px; margin-top: 4px; }
  .az-vns-site .az-blog-archive__hero-inner > .az-page-simple__header .pg-brands__ornament::before,
  .az-vns-site .az-blog-archive__hero-inner > .az-page-simple__header .pg-brands__ornament::after { width: 48px; }
  .az-vns-site .az-blog-archive__hero-inner > .az-page-simple__header .pg-brands__ornament span { font-size: 15px; }
  .az-vns-site .az-blog-archive > .az-blog-archive__hero-inner + .az-blog-archive__body > .az-blog-archive__container { padding-block-start: 16px; }
}

.az-page-simple__content.az-content {
  line-height:1.75;
}
.az-page-simple__content.az-content p {
  margin:0 0 20px;
  line-height:inherit;
}
.az-page-simple__content.az-content :is(h1,h2,h3,h4,h5,h6) {
  margin:32px 0 16px;
  line-height:1.35;
}
.az-page-simple__content.az-content :is(ul,ol) {
  margin:0 0 24px;
  padding-left:1.5em;
}
.az-page-simple__content.az-content ul { list-style:disc outside; }
.az-page-simple__content.az-content ol { list-style:decimal outside; }
.az-page-simple__content.az-content li {
  margin-bottom:8px;
  line-height:inherit;
}
.az-page-simple__content.az-content li:last-child { margin-bottom:0; }
.az-page-simple__content.az-content li>p { margin-bottom:8px; }
.az-page-simple__content.az-content :is(ul,ol) :is(ul,ol) {
  margin-top:8px;
  margin-bottom:0;
}
.az-page-simple__content.az-content :is(figure,.wp-caption) {
  margin-block:24px;
}
.az-page-simple__content.az-content img {
  max-width:100%;
  height:auto;
}
.az-page-simple__content.az-content img.aligncenter {
  display:block;
  margin:24px auto;
}

.az-vns-site .az-button--accent {
  --az-button-background: var(--az-vns-blue);
  --az-button-hover-background: var(--az-vns-blue-dark);
}
.az-vns-site .az-product-card :is(.az-product-card__title, .az-product-card__price) {
  text-align: center;
}
.az-vns-site .az-product-card .az-product-card__price {
  justify-content: center;
}
.az-vns-site .az-product-card .az-product-card__title a:is(:hover, :focus-visible) {
  color: var(--az-vns-blue-dark);
}
.az-vns-site .az-order-tracking-form .form-row:last-of-type .button:is(:hover, :focus-visible) {
  border-color: var(--az-color-primary-dark);
  background: var(--az-color-primary-dark);
}
.single-product .az-vns-site .az-product-meta-row b {
  color: var(--az-color-primary);
}
.single-product .az-vns-site .az-product-info .az-product-actions .variable-items-wrapper .variable-item.selected:not(.radio-variable-item),
.single-product .az-vns-site .az-product-actions .az-variation-label.is-selected {
  border-color: var(--az-color-primary);
  color: var(--az-color-primary);
}
.single-product .az-vns-site .az-product-actions :is(.variable-item.selected, .az-variation-label.is-selected)::after,
.single-product .az-vns-site .az-product-contact-actions > .az-product-consult {
  background: var(--az-color-primary);
}
.single-product .az-vns-site .az-product-contact-actions > .az-product-consult:is(:hover, :focus-visible) {
  background: var(--az-color-primary-dark);
}
.single-product .az-vns-site .az-product-actions button:focus-visible,
.single-product .az-vns-site .az-product-contact-actions a:focus-visible {
  outline-color: var(--az-color-primary-dark);
}

/* Compact catalogue heading/controls; avoid gaps for absent grid sections. */
.az-site .az-shop-page { padding-top: 0; margin-top: 0; }
.az-site .az-shop-page .az-shop-notices:has(> .woocommerce-notices-wrapper:empty) { display: none; }
.az-site .az-shop-layout { padding-top: 8px; row-gap: 12px; }
.az-site .az-shop-catalog-toolbar { min-height: 40px; padding: 0; gap: 12px; }
.az-site .az-shop-catalog-toolbar select { min-height: 36px; font-size: 14px; }
.az-site .az-shop-layout--category .az-shop-top-filters { grid-row: var(--az-shop-filter-row, 3); }
.az-site .az-shop-layout--category > .az-shop-sidebar,
.az-site .az-shop-layout--category .az-shop-grid,
.az-site .az-shop-layout--category .az-shop-empty { grid-row: var(--az-shop-product-row, 4); }
/* On the shop index, put the toolbar in its own row above both columns. */
.az-site .az-shop-layout:not(.az-shop-layout--category) .az-shop-results { display: contents; }
.az-site .az-shop-layout:not(.az-shop-layout--category) > .az-shop-sidebar,
.az-site .az-shop-layout:not(.az-shop-layout--category) .az-shop-grid,
.az-site .az-shop-layout:not(.az-shop-layout--category) .az-shop-empty { grid-row: var(--az-shop-product-row, 2); }
.az-site .az-shop-layout:not(.az-shop-layout--category) .az-shop-top-filters { grid-row: var(--az-shop-filter-row, 2); }
.az-site .az-shop-layout .woocommerce-pagination { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .az-site .az-shop-layout .az-shop-grid,
  .az-site .az-shop-layout .az-shop-empty { grid-row: calc(var(--az-shop-product-row, 2) + 1); }
  .az-site .az-shop-layout { padding-top: 6px; row-gap: 10px; }
  .az-site .az-shop-catalog-toolbar { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .az-site .az-shop-catalog-toolbar .woocommerce-ordering { max-width: 100%; }
  .az-site .az-shop-catalog-toolbar select { max-width: 100%; }
}

.az-vns-site .az-shop-layout--no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.az-vns-site .az-shop-layout--no-sidebar :is(.az-shop-catalog-toolbar, .az-shop-category-overview, .az-shop-top-filters, .az-shop-grid, .az-shop-empty, nav.woocommerce-pagination) {
  grid-column: 1;
  grid-row: auto;
}

/* Allow article grid items to shrink below the intrinsic width of large images. */
.az-site .az-single-post__main,
.az-site .az-single-post__content {
  min-width: 0;
  box-sizing: border-box;
}

.az-site .az-single-post__featured img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.az-site .az-single-post__content .az-post-content {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.85;
}

.az-post-content p,
.az-product-tab-body.az-content p {
  text-align: justify !important;
}

.az-site .az-single-post__content .az-post-content p {
  margin: 0 0 24px;
  font-size: inherit;
  line-height: inherit;
}

.az-site .az-single-post__content .az-post-content :is(h1, h2, h3, h4, h5, h6) {
  margin: 36px 0 16px;
  font-weight: 600;
  line-height: 1.4;
}

.az-site .az-single-post__content .az-post-content h2 {
  font-size: clamp(24px, 2.5vw, 28px);
}

.az-site .az-single-post__content .az-post-content h3 {
  font-size: clamp(21px, 2vw, 24px);
}

.az-site .az-single-post__content .az-post-content :is(ul, ol) {
  margin: 0 0 26px;
  padding-left: 28px;
  font-size: inherit;
  line-height: inherit;
}

.az-site .az-single-post__content .az-post-content li {
  margin-bottom: 12px;
  line-height: inherit;
}

.az-site .az-single-post__content .az-post-content li > p {
  margin-bottom: 10px;
}

.az-site .az-single-post__content .az-post-content :is(ul, ol) :is(ul, ol) {
  margin: 12px 0 0;
}

.az-site .az-single-post__content .az-post-content :is(figure, .wp-caption) {
  margin: 30px auto;
}

.az-site .az-single-post__content .az-post-content :is(figcaption, .wp-caption-text) {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

.az-site .az-single-post__content .az-post-content > :first-child {
  margin-top: 0;
}

.az-site .az-single-post__content .az-post-content > :last-child {
  margin-bottom: 0;
}

.az-site .az-post-content img,
.az-site .az-post-content video,
.az-site .az-post-content iframe {
  max-width: 100%;
}

.az-site .az-post-content img {
  height: auto;
}

.az-site .az-post-content figure,
.az-site .az-post-content .wp-caption {
  max-width: 100%;
  box-sizing: border-box;
}

.az-vns-site > :is(.az-shared-trail, .az-shared-banner):has(+ .az-vns-news) { display: none; }

.az-vns-news {
  --az-news-orange: #f89521;
  --az-news-shadow: 0 1px 9px #0001;
  background: var(--az-vns-light, #f4f5f5);
  font-family: Roboto, Arial, sans-serif;
}

.az-vns-news .az-page-simple__container {
  padding-block: clamp(22px, 2vw, 38px) clamp(32px, 3vw, 56px);
}

.az-vns-news :is(.az-page-simple__content, .page_tintuc, .page_tintuc > .az-legacy-row, .page_tintuc .az-legacy-col) > :is(p:empty, br) {
  display: none;
}

.az-vns-news .page_tintuc > .az-legacy-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 2.45%;
  margin: 0;
}

.az-vns-news .page_tintuc > .az-legacy-row ~ .az-legacy-row { margin-top: 18px; }

.az-vns-news .page_tintuc > .az-legacy-row > .az-legacy-col {
  width: 100%;
  max-width: none;
  padding: 6px;
  border-radius: 7px;
  background: var(--az-vns-paper, #fff);
  box-shadow: var(--az-news-shadow);
}

.az-vns-news .page_tintuc > .az-legacy-row > .az-legacy-col:first-of-type { grid-column: 1 / -1; }

.az-vns-news .page_tintuc h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  margin: 0;
  padding: 6px clamp(10px, 1vw, 19px) 6px 12px;
  background: var(--az-news-orange);
  color: #fff;
  font: 700 clamp(20px, 1.5vw, 28px) / 1.2 Roboto, Arial, sans-serif;
}

.az-vns-news .page_tintuc h2 a { color: inherit; }
.az-vns-news .page_tintuc h2 a:first-child { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.az-vns-news .page_tintuc h2 a:first-child::before {
  flex: 0 0 24px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(0 4%, 7% 0, 32% 0, 46% 17%, 77% 17%, 86% 25%, 86% 45%, 100% 45%, 100% 55%, 72% 100%, 0 100%, 25% 48%, 86% 48%, 86% 38%, 23% 38%, 0 86%);
  content: '';
}

.az-vns-news .page_tintuc h2 .more {
  flex-shrink: 0;
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 500;
  text-decoration: underline;
  text-transform: capitalize;
}

.az-vns-news .page_tintuc .az-legacy-blog-posts__card {
  display: grid;
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.az-vns-news .page_tintuc .az-legacy-blog-posts__image {
  align-self: start;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
}

.az-vns-news .page_tintuc .az-legacy-blog-posts__image img { height: 100%; }

.az-vns-news .page_tintuc .az-legacy-blog-posts__body {
  align-self: center;
  min-width: 0;
  min-height: 0;
  padding: 10px clamp(12px, 1.6vw, 27px);
}

.az-vns-news .page_tintuc .az-legacy-blog-posts__category { display: none; }

.az-vns-news .page_tintuc .az-legacy-blog-posts__title {
  margin: 0;
  color: #484e54;
  font: 700 clamp(16px, 1.08vw, 21px) / 1.28 Roboto, Arial, sans-serif;
}

.az-vns-news .page_tintuc .az-legacy-blog-posts__title a:hover { color: var(--az-vns-blue, #008bf0); }
.az-vns-news .page_tintuc a:focus-visible { outline: 2px solid #174778; outline-offset: 2px; }

.az-vns-news .page_tintuc .az-legacy-blog-posts__meta {
  order: 1;
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.35;
}

.az-vns-news .page_tintuc .az-legacy-blog-posts__excerpt {
  display: -webkit-box;
  order: 2;
  margin: clamp(10px, 1.4vw, 23px) 0 0;
  overflow: hidden;
  color: #41464c;
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.az-vns-news .page_tintuc > .az-legacy-row > .az-legacy-col:nth-of-type(3) .az-legacy-blog-posts__grid {
  gap: clamp(12px, 1.8vw, 29px);
  padding-block: clamp(10px, 1.1vw, 18px);
}

.az-vns-news .page_tintuc > .az-legacy-row > .az-legacy-col:nth-of-type(3) .az-legacy-blog-posts__card {
  grid-template-columns: minmax(0, 20fr) minmax(0, 80fr);
}

.az-vns-news .page_tintuc > .az-legacy-row > .az-legacy-col:nth-of-type(3) .az-legacy-blog-posts__image { aspect-ratio: 16 / 9; }
.az-vns-news .page_tintuc > .az-legacy-row > .az-legacy-col:nth-of-type(3) .az-legacy-blog-posts__body { align-self: start; padding-block: 0; }

@media (max-width: 780px) {
  .az-vns-news .page_tintuc > .az-legacy-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .az-vns-news .page_tintuc > .az-legacy-row > .az-legacy-col:nth-of-type(3) .az-legacy-blog-posts__card {
    grid-template-columns: clamp(84px, 22vw, 135px) minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .az-vns-news .page_tintuc > .az-legacy-row > .az-legacy-col:nth-of-type(2) .az-legacy-blog-posts__card { grid-template-columns: minmax(0, 1fr); }
  .az-vns-news .page_tintuc > .az-legacy-row > .az-legacy-col:nth-of-type(2) .az-legacy-blog-posts__image { aspect-ratio: 4 / 3; }
  .az-vns-news .page_tintuc .az-legacy-blog-posts__body { padding-inline: 10px; }
}

.az-vns-price-page {
  padding-block: clamp(32px, 4vw, 75px) clamp(48px, 9vw, 170px);
  background: var(--az-vns-light, #f4f6f7);
}

.az-vns-price-page__body { padding-inline: clamp(0px, 4vw - 28px, 38px); }

.az-child-vns-price-table {
  --az-price-blue: #2a89bd;
  --az-price-blue-light: #249fca;
  --az-price-divider: #e9e9e9;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  font-family: Roboto, Arial, sans-serif;
}

.az-child-vns-price-table > table {
  display: table;
  width: 100%;
  margin: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

.az-child-vns-price-table > table :is(th, td) {
  padding: clamp(10px, 1vw, 19px);
  border: 0;
  text-align: center;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.az-child-vns-price-table > table th {
  background: linear-gradient(90deg, var(--az-price-blue), var(--az-price-blue-light));
  color: #fff;
  font-size: clamp(13px, 1.05vw, 18px);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  padding-block: clamp(12px, 1vw, 16px);
}

.az-child-vns-price-table th:nth-child(1) { width: 21%; }
.az-child-vns-price-table th:nth-child(2) { width: 35%; }
.az-child-vns-price-table th:nth-child(3),
.az-child-vns-price-table th:nth-child(4) { width: 12%; }
.az-child-vns-price-table th:nth-child(5),
.az-child-vns-price-table th:nth-child(6) { width: 10%; }

.az-child-vns-price-table > table td {
  border-bottom: 1px solid var(--az-price-divider);
  color: #606469;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.4;
}

.az-child-vns-price-table tbody tr:hover { background: #f9f9f9; }

.az-child-vns-price-table .az-child-vns-price-table__image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
}

.az-child-vns-price-table > table .az-child-vns-price-table__goods { text-align: start; }

.az-child-vns-price-table__goods > strong {
  display: block;
  color: #252b33;
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 700;
}

.az-child-vns-price-table__description {
  display: -webkit-box;
  margin-top: 12px;
  overflow: hidden;
  color: #606469;
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.az-child-vns-price-table .az-child-vns-price-table__description p { margin: 0 0 8px; }
.az-child-vns-price-table .az-child-vns-price-table__description > :last-child { margin-bottom: 0; }
.az-child-vns-price-table__label { display: none; }

.az-child-vns-price-table a.az-child-vns-price-table__download {
  display: inline-block;
  padding: 7px clamp(10px, 1.05vw, 20px);
  border-radius: 999px;
  background: var(--az-price-blue);
  color: #fff;
  font-size: clamp(13px, 0.95vw, 16px);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.az-child-vns-price-table a.az-child-vns-price-table__download:is(:hover, :focus-visible) {
  background: #1f6fa5;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 820px) {
  .az-child-vns-price-table { border-radius: 0; background: transparent; }

  .az-child-vns-price-table > table,
  .az-child-vns-price-table > table > tbody,
  .az-child-vns-price-table > table > tbody > tr,
  .az-child-vns-price-table > table > tbody > tr > td { display: block; }

  .az-child-vns-price-table > table { overflow: visible; background: transparent; }

  .az-child-vns-price-table > table > thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .az-child-vns-price-table > table > tbody > tr {
    padding: 12px;
    border: 1px solid var(--az-price-divider);
    border-radius: 10px;
    background: #fff;
  }

  .az-child-vns-price-table > table > tbody > tr + tr { margin-top: 14px; }

  .az-child-vns-price-table > table > tbody > tr > td {
    min-width: 0;
    padding: 6px;
    border: 0;
    text-align: start;
  }

  .az-child-vns-price-table > table > tbody > tr > td:empty { padding: 0; }
  .az-child-vns-price-table .az-child-vns-price-table__image img { max-width: min(100%, 280px); margin-inline: 0; }
  .az-child-vns-price-table__description { margin-top: 6px; -webkit-line-clamp: 3; }
  .az-child-vns-price-table__label { display: inline-block; margin-inline-end: 8px; font-weight: 600; }
}

@media (max-width: 900px) {
  .az-site .az-single-post__layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .az-site .az-single-post__content .az-post-content {
    font-size: 17px;
    line-height: 1.8;
  }

  .az-site .az-single-post__content .az-post-content :is(h1, h2, h3, h4, h5, h6) {
    margin-top: 28px;
    margin-bottom: 14px;
  }
}
