/* R05 catalog presentation. All rules are limited to the opt-in Joomla body. */
body.vn-material-gallery {
  background: var(--paper, #f3eeea) !important;
  color: var(--ink, #292126) !important;
  -webkit-user-select: text;
  user-select: text;
}
/* ShareThis's legacy fixed rail is not part of the Material Gallery chrome. */
body.vn-material-gallery .st-sticky-share-buttons,
body.vn-material-gallery #st-1.st-sticky-share-buttons,
body.vn-material-gallery #st-2.st-sticky-share-buttons,
body.vn-material-gallery [id^="st-"] .st-sticky-share-buttons,
body.vn-material-gallery [id^="st-"].st-sticky-share-buttons { display: none !important; }
.vn-material-gallery .mobile_wraper {
  float: none;
  display: flow-root;
  margin-top: 0;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink, #292126);
}
.vn-material-gallery .mobile_wraper > .container {
  width: min(1440px, calc(100% - 96px)) !important;
  max-width: none !important;
  padding: 0 !important;
  margin-inline: auto;
}
.vn-material-gallery .main_page {
  float: none;
  display: flow-root;
  margin-bottom: 0;
  padding: 36px 0 88px;
  min-width: 0;
}
.vn-material-gallery .main_page > .row,
.vn-material-gallery .jshop_list_category.row,
.vn-material-gallery .jshop_list_product.row {
  margin-left: 0;
  margin-right: 0;
}
.vn-material-gallery .main_page > .row > .left_col,
.vn-material-gallery .jshop_right_clmn,
.vn-material-gallery #comjshop,
.vn-material-gallery .jshop_list_product > .zoom-left,
.vn-material-gallery .jshop_list_product .example.thumbs {
  float: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.vn-material-gallery .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin: 0 0 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
.vn-material-gallery .breadcrumb li { display: inline; float: none; }
.vn-material-gallery .breadcrumb a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.vn-material-gallery #comjshop > h1,
.vn-material-gallery .j_shop_title h1 {
  float: none;
  width: 100%;
  max-width: 1120px;
  margin: 0 0 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink, #292126);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: clamp(34px, 4.7vw, 68px) !important;
  font-style: normal;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.035em;
  text-align: left;
  text-transform: none;
  overflow-wrap: anywhere;
}
.vn-material-gallery #comjshop > h1 span,
.vn-material-gallery .j_shop_title h1 span {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

/* Existing category and sample cards retain their images, names and links. */
.vn-material-gallery .jshop_list_category > .list_category,
.vn-material-gallery #comjshop_list_product {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
.vn-material-gallery .jshop_list_category > .list_category::before,
.vn-material-gallery .jshop_list_category > .list_category::after,
.vn-material-gallery #comjshop_list_product::before,
.vn-material-gallery #comjshop_list_product::after { content: none; }
.vn-material-gallery .list_category > .jshop_categ,
.vn-material-gallery #comjshop_list_product > .product_item {
  float: none;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}
.vn-material-gallery .block_category,
.vn-material-gallery .block_product {
  position: relative;
  float: none;
  display: flow-root;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 0 22px !important;
  border: 0;
  border-bottom: 1px solid var(--line, #d9cbd1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}
.vn-material-gallery .jshop_list_category .jshop_categ .block_category > .sblock2 {
  display: block;
  float: none;
  position: static;
  inset: auto;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  transform: none;
}
.vn-material-gallery .block_category > .image,
.vn-material-gallery .block_category > a:first-child,
.vn-material-gallery .image_block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  float: none;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 0 20px;
  padding: 0 !important;
  overflow: hidden;
  background: var(--paper, #f6f2ec);
}
.vn-material-gallery .block_category > .image,
.vn-material-gallery .block_category > a:first-child { aspect-ratio: 4 / 3; }
.vn-material-gallery .block_category > .image > a,
.vn-material-gallery .image_block > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  float: none;
}
.vn-material-gallery .block_category img.jshop_img,
.vn-material-gallery .image_block img {
  display: block;
  float: none;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
  border: 0;
  transform: none;
}
.vn-material-gallery .jshop_list_category .jshop_categ .category_name,
.vn-material-gallery .item_name {
  display: block;
  position: static;
  float: none;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 12px 0 0;
  padding: 0;
  overflow: visible;
  color: var(--ink, #292126);
  text-align: left;
}
.vn-material-gallery .jshop_list_category .block_category .category_name a,
.vn-material-gallery .item_name a {
  display: block;
  position: static;
  inset: auto;
  float: none;
  width: 100%;
  height: auto;
  transform: none;
  overflow: visible;
  color: var(--ink, #292126) !important;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: clamp(20px, 1.65vw, 25px) !important;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.02em;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  overflow-wrap: anywhere;
}
.vn-material-gallery .category_name a:hover,
.vn-material-gallery .item_name a:hover {
  text-decoration: underline !important;
  text-underline-offset: 5px;
}
.vn-material-gallery .jshop_code_prod,
.vn-material-gallery .category_short_description {
  display: block;
  float: none;
  width: 100%;
  height: auto;
  padding: 0;
  overflow: visible;
  text-align: left;
  margin: 10px 0 0;
  color: var(--ink, #292126);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}
.vn-material-gallery .jshop_list_category,
.vn-material-gallery .jshop_list_product { display: flow-root; margin-bottom: 42px; }
.vn-material-gallery .jshop_list_category .block_category:hover,
.vn-material-gallery .block_product:hover {
  opacity: 1;
  box-shadow: none;
}
.vn-material-gallery .image_block a:hover img { opacity: 1; transform: none; }
/* Clear the legacy floated heading before the related grid and paging. */
.vn-material-gallery .related_products,
.vn-material-gallery .relatedtabs {
  float: none;
  display: flow-root;
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
}
.vn-material-gallery .jshop_list_product {
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
}
.vn-material-gallery .related_products > .jshop_list_product { clear: both; float: none; }
/* Both Joomla's nested list and related-product paging wrap within the column. */
.vn-material-gallery .mobile_wraper .jshop_pagination,
.vn-material-gallery .mobile_wraper .pagination {
  float: none;
  clear: both;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto;
  margin: 28px 0 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  white-space: normal;
}
.vn-material-gallery .mobile_wraper .pagination,
.vn-material-gallery .mobile_wraper .pagination > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.vn-material-gallery .mobile_wraper .pagination > ul {
  float: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vn-material-gallery .mobile_wraper .pagination li {
  float: none;
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
}
.vn-material-gallery .mobile_wraper .pagination li > a,
.vn-material-gallery .mobile_wraper .pagination li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 9px 12px;
  box-sizing: border-box;
  background: transparent !important;
  border: 1px solid var(--line, #d9cbd1) !important;
  border-radius: 0;
  color: var(--ink, #292126);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
.vn-material-gallery .mobile_wraper .pagination li > a:hover,
.vn-material-gallery .mobile_wraper .pagination li > span.current {
  background: var(--wine, #331628) !important;
  border-color: var(--wine, #331628) !important;
  color: var(--paper, #f3eeea);
}
.vn-material-gallery #sort_count { margin: 0 0 28px; }
.vn-material-gallery .form_sort_count,
.vn-material-gallery .block_sorting_count_to_page,
.vn-material-gallery .box_products_sorting {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}
.vn-material-gallery .box_products_sorting {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.vn-material-gallery .box_products_sorting .control-label,
.vn-material-gallery .box_products_sorting .controls {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: 16px;
  text-align: left;
}
.vn-material-gallery #sort_count select {
  min-width: 180px;
  max-width: 100%;
  min-height: 48px;
  padding: 10px 36px 10px 14px;
  border: 1px solid var(--line, #d9cbd1);
  border-radius: 0;
  background-color: var(--paper, #f6f2ec);
  color: var(--ink, #292126);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 16px;
}
.vn-material-gallery #sort_count .icon-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 48px !important;
  min-width: 44px;
  margin: 0;
  vertical-align: middle;
}
.vn-material-gallery #sort_count .icon-arrow img {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain;
  cursor: pointer;
}

/* The complete original description remains in the DOM and opens natively. */
.vn-material-gallery .vn-product-description {
  margin: 48px 0 0;
  padding: 0;
  border-top: 1px solid var(--line, #d9cbd1);
  border-bottom: 1px solid var(--line, #d9cbd1);
}
.vn-material-gallery .vn-product-description > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 20px 0;
  color: var(--ink, #292126);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.vn-material-gallery .vn-product-description > summary::-webkit-details-marker { display: none; }
.vn-material-gallery .vn-product-description > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 30px;
  font-weight: 400;
}
.vn-material-gallery .vn-product-description[open] > summary::after { content: "−"; }
.vn-material-gallery .category_description {
  float: none;
  display: flow-root;
  width: 100%;
  max-width: 80ch;
  margin: 0 0 42px;
  padding: 0;
  color: var(--ink, #292126);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  text-align: left;
}
.vn-material-gallery .category_description [style*="font-family"],
.vn-material-gallery .category_description [style*="font-size"] {
  font-family: inherit !important;
  font-size: inherit !important;
}
.vn-material-gallery .category_description [style*="color:"] { color: inherit !important; }
.vn-material-gallery .category_description p,
.vn-material-gallery .category_description li {
  line-height: 1.8;
  text-align: left !important;
}
.vn-material-gallery .category_description p { margin-bottom: 1em !important; }
.vn-material-gallery .category_description ul { list-style-type: disc; padding-left: 1.25em; }
.vn-material-gallery .category_description ol { list-style-type: decimal; padding-left: 1.25em; }
.vn-material-gallery .category_description h2,
.vn-material-gallery .category_description h3 {
  margin: 32px 0 16px;
  color: inherit;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 25px !important;
  font-weight: 600;
  line-height: 1.4;
}
.vn-material-gallery .category_description img { max-width: 100%; height: auto; }
.vn-material-gallery .category_description iframe,
.vn-material-gallery .category_description video { max-width: 100%; }

/* Progressive detail layout uses the existing Fotorama and original info node. */
.vn-material-gallery .vn-product-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
  margin: 0 0 64px;
}
.vn-material-gallery .vn-product-overview > .fotorama,
.vn-material-gallery .vn-product-overview > .productfull {
  float: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.vn-material-gallery .vn-product-overview .j_shop_title { float: none; width: 100%; margin: 0; padding: 0; text-align: left; }
.vn-material-gallery .vn-product-overview .j_shop_title h1 {
  margin: 8px 0 28px;
  font-size: clamp(32px, 3vw, 48px) !important;
}
.vn-material-gallery .vn-product-overview .fotorama__wrap { max-width: 100%; }
.vn-material-gallery .vn-product-overview .fotorama__stage { background: var(--paper, #f6f2ec); }
.vn-material-gallery .products_rating {
  float: none;
  display: flow-root;
  margin: 24px 0;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
.vn-material-gallery .vn-product-inquiry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 52px;
  margin: 12px 0 0;
  padding: 15px 24px;
  border: 1px solid var(--wine, #331628);
  border-radius: 0;
  background: var(--wine, #331628);
  color: var(--paper, #f3eeea);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
  cursor: pointer;
}
.vn-material-gallery .vn-product-inquiry:hover { background: var(--ink, #292126); }
.vn-material-gallery .related_products { margin: 56px 0 0; }
.vn-material-gallery .relatedtabs h3 {
  float: none;
  margin: 0 0 30px;
  padding: 0;
  background: transparent;
  color: var(--ink, #292126);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: clamp(28px, 3vw, 40px) !important;
  font-weight: 600;
  line-height: 1.3;
}
.vn-material-gallery .mobile_wraper a:focus-visible,
.vn-material-gallery .mobile_wraper button:focus-visible,
.vn-material-gallery .mobile_wraper summary:focus-visible,
.vn-material-gallery .mobile_wraper select:focus-visible {
  outline: 3px solid var(--wine, #552536);
  outline-offset: 5px;
}
@media (max-width: 1100px) {
  .vn-material-gallery .mobile_wraper > .container { width: calc(100% - 64px) !important; }
  .vn-material-gallery .jshop_list_category > .list_category,
  .vn-material-gallery #comjshop_list_product { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 26px; }
  .vn-material-gallery .vn-product-overview { grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr); gap: 30px; }
}
@media (max-width: 800px) {
  .vn-material-gallery .vn-product-overview { display: block; margin-bottom: 44px; }
  .vn-material-gallery .vn-product-overview > .productfull { margin-top: 32px; }
  .vn-material-gallery .vn-product-overview .j_shop_title h1 { font-size: clamp(32px, 6vw, 44px) !important; }
}
@media (max-width: 560px) {
  .vn-material-gallery .mobile_wraper > .container { width: calc(100% - 40px) !important; }
  .vn-material-gallery .main_page { padding-top: 26px; padding-bottom: 56px; }
  .vn-material-gallery .breadcrumb { font-size: 14px; margin-bottom: 28px; }
  .vn-material-gallery #comjshop > h1 { font-size: clamp(32px, 8.6vw, 44px) !important; margin-bottom: 32px; }
  .vn-material-gallery .jshop_list_category > .list_category,
  .vn-material-gallery #comjshop_list_product { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .vn-material-gallery .jshop_list_category .block_category .category_name a,
  .vn-material-gallery .item_name a { font-size: 23px !important; }
  .vn-material-gallery .category_description { font-size: 17px; }
  .vn-material-gallery .vn-product-description { margin-top: 34px; }
  .vn-material-gallery .vn-product-description > summary { min-height: 68px; font-size: 22px; }
  .vn-material-gallery .products_rating .rating { max-width: 100%; }
}

/* R06: lighter display hierarchy, with readable Vietnamese and unchanged media. */
.vn-material-gallery #comjshop > h1,.vn-material-gallery .j_shop_title h1{font-size:clamp(32px,4vw,52px)!important;font-weight:500;line-height:1.25;letter-spacing:-.035em;max-width:1000px}
.vn-material-gallery .vn-product-overview .j_shop_title h1{font-size:clamp(30px,2.9vw,42px)!important;line-height:1.3}
.vn-material-gallery .jshop_list_category .block_category .category_name a,.vn-material-gallery .item_name a{font-weight:500;font-size:clamp(20px,1.6vw,24px)!important;line-height:1.45}
.vn-material-gallery .relatedtabs h3,.vn-material-gallery .vn-product-description>summary{font-weight:500}
@media(max-width:560px){.vn-material-gallery #comjshop>h1{font-size:32px!important}.vn-material-gallery .vn-product-overview .j_shop_title h1{font-size:30px!important}.vn-material-gallery .jshop_list_category .block_category .category_name a,.vn-material-gallery .item_name a{font-size:22px!important}}
