/* ============================================================
 * TC OVERRIDE - lop thang cuoi <head> (wp_head:999).
 * Quy tac: chi chua rule CAN THANG (xung dot voi Flatsome/builder).
 * CSS nen (pile) nam o tc-design-system.css. Them rule moi vao DAY
 * neu bi de, kem comment ghi thang ai.
 * ============================================================ */

/* ============ 10. Polish v2.1 (2026-09-25): dong bo radius/vien/title ============
 * Nguyen tac: chi chuan hoa ve scale token, GIU NGUYEN mau sac + layout.
 * - Radius le 9px -> 8px; 11px -> 12px; pill 30px -> 999px (render giong het).
 * - Vien card #DFDFDF -> #E8E8F0 (thong nhat 1 mau vien).
 * - Bo magic offset (left/top am) o section title, giu border 8px nhu dang render.
 */
/* Radius sidebar 9px -> 8px */
.danh-muc-home .sidebar-wrapper,
.detail-category-sidebar > .col-inner .sidebar-wrapper,
.post-sidebar .widget_product_categories, .page-right-sidebar .widget_product_categories,
#shop-sidebar .widget_product_categories { border-radius: var(--tc-r) var(--tc-r); }
.danh-muc-home span.widget-title,
.detail-category-sidebar .widget-title,
.post-sidebar .widget_product_categories span.widget-title, .page-right-sidebar .widget_product_categories span.widget-title,
#shop-sidebar .widget_product_categories span.widget-title { border-radius: var(--tc-r) var(--tc-r) 0 0; }
/* Radius card 11px -> 12px */
.row-home, .row-hang-moi-ve, .row-sp-noi-bat,
.shop-container .product .short-product-detail > .col-inner,
.shop-container .product .des-product-detail > .col-inner,
.shop-container .product .related-product-detail > .col-inner,
.shop-container .product .technique-parameter > .col-inner,
.shop-container .product .up-sells.upsells.products,
#main .category-page-row .widget.widget_layered_nav,
#main .category-page-row .col.large-7,
#content .page-inner, #post-list, .touch-scroll-table,
.blog-single #comments .comment-respond { border-radius: var(--tc-r-lg); }
/* Ô tìm kiếm dùng cùng bán kính với các trường nhập. */
#header .searchform-wrapper, #header form.searchform input, #header form.searchform input[type='search'] { border-radius: var(--tc-r-md); }
.badge-container.absolute.left .badge-inner { border-radius: var(--tc-r-pill); }
/* Vien card ve 1 mau */
.shop-container .product .short-product-detail > .col-inner,
.shop-container .product .des-product-detail > .col-inner,
.shop-container .product .related-product-detail > .col-inner,
.shop-container .product .technique-parameter > .col-inner,
.shop-container .product .up-sells.upsells.products,
#main .category-page-row .widget.widget_layered_nav,
#main .category-page-row .col.large-7 { border-color: var(--tc-border); }
/* Section title: 1 kieu duy nhat tren desktop, giu ban mobile cu (da tune rieng) */

/* ============ 11. Standard v2.2 (skill ui-styling: tokens, a11y, hierarchy) ============
 * - Tokens: shadow/transition/ring bo sung (mau van theo Flatsome + TC).
 * - Accessibility-first: focus-visible cho moi tuong tac (chuot khong doi).
 * - Hierarchy: title/price giu scale; hover nhe khong gay nhay layout.
 */
/* Token bo sung */
:root {
  --tc-section-gap: 20px;
  --tc-section-border: #eaedf2;
  --tc-scrollbar-thumb: #c8ced6;
  --tc-scrollbar-hover: #afb8c4;
  --tc-scrollbar-track: transparent;
  --tc-page-scrollbar-track: #f1f3f6;
  --tc-cart-button-font-size: 14px;
  --tc-shadow-sm: 0 1px 3px rgba(7, 37, 113, .10);
  --tc-shadow-md: 0 4px 14px rgba(7, 37, 113, .12);
  --tc-ring: 0 0 0 3px rgba(7, 37, 113, .25);
  --tc-ease: .2s ease;
  --tc-leading-tight: 1.3;
  --tc-leading-base: 1.6;
}

@media (max-width: 767px) {
  :root { --tc-section-gap: 12px; }
}

/* Thanh cuộn dùng chung cho trang và các vùng cuộn bên trong. */
@media (forced-colors: none) {
  @supports selector(::-webkit-scrollbar) {
    ::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }

    ::-webkit-scrollbar-track,
    ::-webkit-scrollbar-corner {
      background: var(--tc-scrollbar-track);
    }

    html::-webkit-scrollbar,
    html::-webkit-scrollbar-track,
    html::-webkit-scrollbar-corner {
      background: var(--tc-page-scrollbar-track);
    }

    ::-webkit-scrollbar-thumb {
      border-radius: var(--tc-r-pill);
      background: var(--tc-scrollbar-thumb);
    }

    ::-webkit-scrollbar-thumb:hover {
      background: var(--tc-scrollbar-hover);
    }
  }

  @supports not selector(::-webkit-scrollbar) {
    :where(html, body *) {
      scrollbar-width: thin;
      scrollbar-color: var(--tc-scrollbar-thumb) var(--tc-scrollbar-track);
    }

    html {
      scrollbar-color: var(--tc-scrollbar-thumb) var(--tc-page-scrollbar-track);
    }
  }
}

/* Nut tron card: transition mem + hover nang nhe (transform, khong reflow) */
.btn-add-cart, .btn-view { transition: transform var(--tc-ease); }
.btn-add-cart:hover, .btn-view:hover { transform: translateY(-2px); }
/* Cardering: hover vien primary cho khoi row (nhe, giu layout) */
.row-trangchu .product-small .box-image { transition: border-color var(--tc-ease), box-shadow var(--tc-ease); }
.row-trangchu .product-small:hover .box-image { border-color: var(--tc-border); box-shadow: var(--tc-shadow-sm); }
/* Hierarchy gia: dam bao gia KM noi bat, gia goc mo */
.price-wrapper .price ins { text-decoration: none; }
.price-wrapper .price del { opacity: .75; }
/* Tieu de section: nhip 12px tren desktop; mobile giu ban tune rieng */
@media only screen and (min-width: 768px) {
.section-title-container { margin-bottom: 12px; }
}
/* Placeholder input dong nhat */
::placeholder { color: var(--tc-muted); opacity: 1; }
/* Giam chuyen dong cho nguoi dung prefers-reduced-motion (a11y) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Dùng cùng giới hạn kích thước logo cho header thường và sticky. */
#logo { --tc-logo-height: 72px; }

#logo img,
.stuck #logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--tc-logo-height) !important;
  object-fit: contain;
}

@media only screen and (max-width: 849px) {
  #header { --tc-masthead-height: 64px; }
  #logo { --tc-logo-height: 48px; }

  #header #masthead {
    height: var(--tc-masthead-height) !important;
  }
}

@media only screen and (max-width: 559px) {
  #header { --tc-masthead-height: 58px; }
  #logo { --tc-logo-height: 44px; }
}

/*SLIDER BUTTON*/
.flickity-button.previous .flickity-button-icon, .flickity-button.next .flickity-button-icon {
  width: 30px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, .65);
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);
  color: #707070;
  transition: .3s;
  outline: none;
}
.flickity-prev-next-button {
  opacity: 0;
}
.flickity-prev-next-button:hover {
  opacity: .9;
}
.flickity-button.previous .flickity-button-icon:hover, .flickity-button.next .flickity-button-icon:hover {
  background: var(--primary-color);
  fill: #ffffff;
}
.slider .flickity-prev-next-button:hover .arrow, .slider .flickity-prev-next-button:hover svg {
  fill: #ffffff;
}
.flickity-button.previous .flickity-button-icon {
  padding-right: 10px;
  border-radius: 0 100px 100px 0;
}
.slider-nav-light .flickity-prev-next-button svg {
  fill: var(--primary-color) !important;
}
.slider-nav-light .flickity-prev-next-button svg * {
  fill: var(--primary-color) !important;
}
.flickity-button.next .flickity-button-icon {
  padding-left: 10px;
  border-radius: 100px 0 0 100px;
  right: 10px;
}
.flickity-button.next {
    right: 8px;
}
.slider-nav-push:not(.slider-nav-reveal) .flickity-prev-next-button {
  margin-top: 0;
}
.slider-nav-reveal .flickity-prev-next-button {
  height: 60px;
  top: 50% !important;
}
.slider-nav-reveal .flickity-prev-next-button, .slider-nav-reveal .flickity-prev-next-button:hover {
  height: 60px;
  background-color: transparent;
  box-shadow: none;
}
.hero-slider .slider-nav-reveal .flickity-prev-next-button {
  top: 40% !important;
}
.slider-nav-reveal .flickity-prev-next-button.next {
  right: 10px !important;
}
.slider-nav-reveal .flickity-prev-next-button.previous {
  left: 10px !important;
}

/* btn-add-view: giong home TOAN SITE (cot doc absolute goc tren-phai card).
 * Ap dung shop, upsell, related, daxem, slider. */
.product-small { position: relative; }
.product-small .box-text { float: none; width: auto; padding-right: 20%; }
.product-small .btn-add-view { position: absolute; width: auto; display: flex; gap: 8px; align-items: center; margin-top: 8px; right: 0; top: 0; flex-direction: column; }
/* Gallery video responsive (iframe 560px co dinh bi cat) */
.product-gallery .videoWrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.product-gallery .videoWrapper iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; }

/* Tooltip "Xem gio hang" sau AJAX add (thang rule display:none cu trong base) */
.btn-add-cart { position: relative; }
.product-small a.added_to_cart.wc-forward {
  display: inline-block;
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--tc-navy-5);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 7px 10px;
  border-radius: var(--tc-r-sm);
  white-space: nowrap;
  z-index: 50;
  box-shadow: var(--tc-shadow-md);
}
.product-small a.added_to_cart.wc-forward::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #111A3F;
}

/* GIU nut add sau khi them (thang Flatsome core .add_to_cart_button.added{display:none}) */
.product-small .add_to_cart_button.added { display: inline-flex; }
/* Spinner NAM TRONG nut quick-view khi dang load popup */
.btn-view { position: relative; }
.btn-view.loading img { opacity: .25; }
.btn-view.loading::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tc-spin .6s linear infinite;
  pointer-events: none;
}
.btn-view.loading { pointer-events: none; }
@keyframes tc-spin { to { transform: rotate(360deg); } }

/* Tat outline focus (theo yeu cau) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: none;
  outline-offset: 0;
}

/* Nut card 34px, icon 22px (theo yeu cau) */
.btn-add-cart {
    width: 34px;    height: 34px;
    min-width: 34px;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
}
.btn-view {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
}
.btn-add-cart img, .btn-view img {
    width: 20px;
    min-width: 20px;
    min-height: 20px;
    height: 20px;
    object-fit: contain;
}
/* Tat spinner xanh cua Flatsome (no gan .processing vao cha cua link: .btn-add-view).
 * Minh co spinner trang trong nut roi. */
.btn-add-view.processing::before,
.product-small .box-text.processing::before { display: none; }
/* Spinner trong nut ADD (Woo tu gan .loading khi AJAX) - dong bo nut view */
.btn-add-cart a { position: relative; }
.btn-add-cart a.loading img { opacity: .25; }
.btn-add-cart a.loading::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tc-spin .6s linear infinite;
  pointer-events: none;
}

/* Tooltip gio hang tu an sau 3s (JS gan .tc-fade) */
.product-small a.added_to_cart.wc-forward { transition: opacity .4s ease; }
.product-small a.added_to_cart.wc-forward.tc-fade { opacity: 0; pointer-events: none; }

/* Gia loop: siet line-height span phu */
.product-small .price-wrapper .price span:not(.amount) { line-height: 0.5; }

/* Bộ lọc danh mục dùng panel riêng, giữ nền và nút đóng của bộ lọc. */
@media only screen and (max-width: 849px) {
  body:has(.off-canvas-left #shop-sidebar) .mfp-bg.off-canvas-left {
    background: #000 !important;
    opacity: .45;
  }

  body .off-canvas-left:has(#shop-sidebar) .mfp-content {
    width: min(320px, 100vw);
    background: #fff !important;
  }

  body .off-canvas-left #shop-sidebar {
    padding: 18px 56px 18px 20px;
  }

  body:has(.mfp-wrap.off-canvas-left #shop-sidebar, .mfp-wrap .off-canvas-left #shop-sidebar) .shownutbaogia {
    display: none;
  }

  body .off-canvas-left:has(#shop-sidebar) .mfp-close {
    position: absolute;
    top: 8px !important;
    right: 8px;
    left: auto;
  }
}

#shop-sidebar .widget .wc-layered-nav-term > a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

#shop-sidebar .widget .wc-layered-nav-term > a::before {
  content: "";
  position: static;
  display: grid;
  place-items: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  border: 1px solid var(--tc-text-2);
  border-radius: 50%;
  background: transparent;
  opacity: 1;
}

#shop-sidebar .widget .wc-layered-nav-term.chosen > a::before {
  content: "✓";
  border-color: var(--fs-color-alert);
  color: var(--fs-color-alert);
  font-size: 11px;
  line-height: 1;
}

@media (min-width: 1200px) {
  .category-page-row:has(> .col.large-2 .devvn_woocommerce_price_list_filter) {
    --tc-price-filter-column-width: 246px;
  }

  .category-page-row > .col.large-2:has(.devvn_woocommerce_price_list_filter) {
    flex-basis: var(--tc-price-filter-column-width);
    max-width: var(--tc-price-filter-column-width);
  }

  .category-page-row:has(> .col.large-2 .devvn_woocommerce_price_list_filter) > .col.large-7 {
    flex-basis: calc(75% - var(--tc-price-filter-column-width));
    max-width: calc(75% - var(--tc-price-filter-column-width));
  }
}

/* Giới thiệu danh mục trước lưới sản phẩm. */
.tc-category-intro {
  margin-bottom: 20px;
  padding: 14px clamp(14px, 2vw, 20px);
  border-radius: var(--tc-r-md);
  background: var(--tc-bg-soft);
  color: var(--tc-text-2);
  font-size: 14px;
  line-height: 1.6;
}

.tc-category-intro p {
  margin: 0;
}

.tc-category-intro strong {
  color: var(--tc-text);
}

.tc-category-intro details {
  margin-top: 6px;
}

.tc-category-intro summary {
  width: fit-content;
  color: var(--tc-primary);
  font-weight: 600;
  cursor: pointer;
}

.tc-category-intro ol {
  margin: 12px 0 10px;
  padding-inline-start: 1.4em;
}

.tc-category-intro li {
  margin: 0 0 5px;
}

.tc-category-intro__collapse,
.tc-category-intro details[open] .tc-category-intro__expand,
.tc-category-intro:has(details[open]) .tc-category-intro__preview {
  display: none;
}

.tc-category-intro details[open] .tc-category-intro__collapse {
  display: inline;
}

.tc-category-intro__content {
  margin-top: 10px;
}

.tc-category-intro__content p + p {
  margin-top: 8px;
}

#main .category-page-row #shop-sidebar .devvn_woocommerce_price_list_filter {
  padding-inline: 10px;
}

#shop-sidebar .devvn_woocommerce_price_list_filter .wc-layered-nav-term > a {
  gap: 6px;
  font-size: 14px;
  line-height: 24px;
}

#shop-sidebar .devvn_woocommerce_price_list_filter .wc-layered-nav-term:is(.active, .chosen) > a,
#shop-sidebar .product-categories .current-cat > a {
  color: var(--tc-primary);
}


@media only screen and (max-width: 767px) {
  .category-page-row .product-small .price-wrapper .price {
    flex-flow: row wrap;
    align-items: baseline;
    gap: 2px 4px;
  }

  .category-page-row .product-small .price-wrapper .price span {
    line-height: 1.4;
  }
}

/* Mini-cart fix 2: img nam TRONG link (grid cu sai) + border/bg chuan */
.widget_shopping_cart_content .woocommerce-mini-cart.cart_list { padding: 15px; }
/* Căn lề nội dung và phân cấp nút trong dropdown giỏ hàng và tài khoản ở header. */
#header :is(.cart-item, .account-item) .nav-dropdown {
  border: 1px solid var(--tc-section-border);
  border-radius: var(--tc-r-lg);
  box-shadow: var(--tc-shadow-md);
}

#header .account-item .nav-dropdown {
  min-width: 196px;
  width: 210px;
  padding: 6px;
}

#header .account-item .nav-dropdown > li > a {
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--tc-r-sm);
  color: var(--tc-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

#header .account-item .nav-dropdown > li > a:hover {
  background-color: var(--tc-bg-soft);
  color: var(--tc-primary);
}

#header .cart-item .nav-dropdown:has(.ux-mini-cart-empty) {
  min-width: 320px;
  width: 320px;
}

#header .cart-item .nav-dropdown .widget_shopping_cart_content {
  padding: 16px;
}

#header .nav-dropdown .woocommerce-mini-cart.cart_list {
  padding: 0;
  margin: 0 0 10px;
}

#header .nav-dropdown .woocommerce-mini-cart__total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 0 0;
  margin: 0 0 10px;
  border-top: 1px solid var(--tc-border);
  border-bottom: 0;
}

#header .nav-dropdown .woocommerce-mini-cart__total strong {
  color: var(--tc-text-2);
  font-size: 14px;
  font-weight: 600;
}

#header .nav-dropdown .woocommerce-mini-cart__total .amount {
  color: var(--tc-primary);
  font-size: 16px;
  font-weight: 700;
}

#header .nav-dropdown .woocommerce-mini-cart__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

#header .nav-dropdown .woocommerce-mini-cart__buttons .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--tc-primary);
  border-radius: var(--tc-r-sm);
  box-shadow: none !important;
  background-color: #fff !important;
  color: var(--tc-primary);
  font-size: var(--tc-cart-button-font-size);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
}

#header .nav-dropdown .woocommerce-mini-cart__buttons .checkout {
  border-color: var(--tc-secondary);
  background-color: var(--tc-secondary) !important;
  color: #fff;
}

#header .nav-dropdown .woocommerce-mini-cart__buttons .checkout:hover {
  border-color: var(--tc-red-4);
  background-color: var(--tc-red-4) !important;
  color: #fff;
}

#header .nav-dropdown .woocommerce-mini-cart__buttons .button:not(.checkout):hover {
  background-color: var(--tc-primary) !important;
  color: #fff;
}

.widget_shopping_cart_content .woocommerce-mini-cart.cart_list .mini_cart_item {
  position: relative;
  display: block;
  background-color: #f9fbff;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-r);
  padding: 10px 38px 10px 10px;
  margin-bottom: 8px;
  min-height: 0;
}
.widget_shopping_cart_content .woocommerce-mini-cart.cart_list .mini_cart_item:last-child {
  margin-bottom: 0;
}
.widget_shopping_cart_content .woocommerce-mini-cart.cart_list .mini_cart_item > a:not(.remove) {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
  padding: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--tc-text);
  overflow: visible;
}
.widget_shopping_cart_content .woocommerce-mini-cart.cart_list .mini_cart_item img {
  position: static;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--tc-r-sm);
  border: 1px solid var(--tc-border);
  margin: 0;
}
.widget_shopping_cart_content .woocommerce-mini-cart.cart_list .mini_cart_item .quantity {
  display: block;
  font-size: 12px;
  color: var(--tc-muted);
  margin: 6px 0 0;
  opacity: 1;
}
.widget_shopping_cart_content .woocommerce-mini-cart.cart_list .mini_cart_item .quantity .amount {
  color: var(--fs-color-secondary);
  font-weight: 700;
}
.widget_shopping_cart_content .woocommerce-mini-cart.cart_list .mini_cart_item a.remove_from_cart_button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  line-height: 20px;
  font-size: 14px;
  text-align: center;
  border: 1px solid var(--tc-border);
  border-radius: 50%;
  color: var(--tc-muted);
  background: #fff;
}
.widget_shopping_cart_content .woocommerce-mini-cart.cart_list .mini_cart_item a.remove_from_cart_button:hover {
  background: var(--fs-color-secondary);
  border-color: var(--fs-color-secondary);
  color: #fff;
}

/* Mo ta ngan SP */
/* Swatch het hang: nen xam */
.ux-swatch--label.disabled { background: #e8e8e8; }

/* Single product: video yottie sat le */
.yottie-widget-video-classic { margin-bottom: 0 !important; }

/* Bo letter-spacing uppercase Flatsome */
.uppercase, h6, span.widget-title, th { letter-spacing: 0; }

/* Mo ta tab single: 15px/150% */
.single-product div#tab-description li, .single-product div#tab-description p { font-size: 15px !important; line-height: 150%; }
/* Mo ta ngan: 15px */
.product-short-description p, .product-short-description p span { font-size: 15px !important; line-height: 22px; margin-bottom: 10px; }
.product-short-description ul { margin-left: 20px; }
/* Nut mua: mau + cao (chia 50/50 nam o base) */
.ux-buy-now-button, .cart .buy_now_button { background-color: var(--fs-color-secondary); text-transform: uppercase; height: 44px; }
/* Nut Them gio thang rule secondary cua Flatsome (custom-css !important di sau) */
.cart .single_add_to_cart_button.button { background-color: var(--primary-color) !important; }
/* Nhan Het hang: pill gon thay dai trang tho */
.box-image .out-of-stock-label {
  left: 8px; right: auto; top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--fs-color-secondary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 1;
}
/* (chia 50/50 nam o base) */

/* Tieu de danh muc/tag trang, chip 4px */
.category-list .tieude, .tag-list .tieude { color: #ffffff; text-transform: uppercase; font-weight: 600; }
.list-danhmuc a, .tag-list a { border-radius: var(--tc-r-xs); }
/* O so luong: nhan truoc + gon */
.single-product .ux-quantity.quantity.buttons_added { display: inline-flex; align-items: center; gap: 8px; }
.single-product .ux-quantity.quantity.buttons_added::before { content: "Số lượng:"; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* Huy kieu nut noi cua flatsome-shop (load sau base) + mo max-width o nhap */
.quantity .button.minus { border-radius: var(--tc-r) !important; border: 1px solid var(--tc-border-3) !important; }
.quantity .button.plus { border-radius: var(--tc-r) !important; border: 1px solid var(--tc-border-3) !important; }
.single-product .ux-quantity .input-text.qty { max-width: none; }

/* (rules bao gia da ve plugin bao-gia.css, xoa trung o day) */
/* Dong bo input moi form: khong outline/shadow, radius 4 */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not(.ux-quantity__button),
select, textarea {
  outline: none;
  box-shadow: none;
  border-radius: var(--tc-r-xs);
}

/* Search header mobile gon */
@media only screen and (max-width: 767px) {
    .header-search-form-wrapper {
        padding: 2px 0;
    }
}

/* Nhịp row-small mobile */
@media only screen and (max-width: 767px) {
  .container .row-small:not(.row-collapse), .row .row-small:not(.row-collapse) {
    margin-bottom: 0;
    margin-left: 0px;
    margin-right: 0;
  }
  .row-small > .col, .row-small > .flickity-viewport > .flickity-slider > .col {
    margin-bottom: 0;
    padding: 0 7.5px 20px;
  }
}

/* Icon cart SVG ke thua mau trang */
.btn-add-cart a { color: #fff; }
.btn-add-cart a svg { display: block; }

/* (icon gio header ve mac dinh: go swap SVG, dung anh Customizer) */

/* Nut card mobile nho de vua */
@media only screen and (max-width: 767px) {
  .btn-add-cart, .btn-view { width: 30px; min-width: 30px; height: 30px; min-height: 30px; padding: 5px; }
  .btn-add-cart img, .btn-view img, .btn-add-cart svg { width: 18px; height: 18px; }
  .row-trangchu .row-slider { margin-left: 5px !important; margin-right: 5px !important; padding-top: 10px; border-radius: var(--tc-r); }
}

/* Quickview modal: panel phai PC, bottom-sheet mobile, lock scroll, header neo */
html.mfp-helper, body.mfp-open { overflow: hidden; }
.product-lightbox { border-radius: var(--tc-r-lg); overflow: hidden; display: flex; flex-direction: column; max-height: 88vh; }
/* Chuoi flex de inner co lai + scroll (mac dinh min-height:auto chan) */
.product-lightbox .product-quick-view-container,
.product-lightbox .product-quick-view-container > div,
.product-lightbox .product-info { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.product-lightbox .product-lightbox-inner { overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.product-lightbox .product-lightbox-inner > a.plain {
  position: sticky; top: 0; z-index: 5;
  background: #fff; display: block;
  padding: 14px 44px 12px 20px; margin: 0 -30px 10px;
  border-bottom: 1px solid var(--tc-border);
}
.product-lightbox .product-lightbox-inner > a.plain h3 { margin: 0; font-size: 16px; }
.mfp-content .mfp-close { position: absolute; top: 8px; right: 8px; z-index: 6; }
/* Nhan So luong + form gio trong quickview */
.product-lightbox .ux-quantity.quantity.buttons_added { display: inline-flex; align-items: center; gap: 8px; }
.product-lightbox .ux-quantity.quantity.buttons_added::before { content: "Số lượng:"; font-size: 14px; font-weight: 600; white-space: nowrap; }
.product-lightbox .qv-price .price { font-size: 20px; }
@media only screen and (max-width: 767px) {
  .mfp-wrap:is(.tc-qv, :has(.product-lightbox)) .mfp-container { padding: 0; }
  .mfp-wrap:is(.tc-qv, :has(.product-lightbox)) .mfp-container::before { display: none; }
  .mfp-wrap:is(.tc-qv, :has(.product-lightbox)) .mfp-content { vertical-align: bottom; }
  .product-lightbox { width: 100%; max-width: 100%; margin: 0; border-radius: var(--tc-r-lg) var(--tc-r-lg) 0 0; max-height: 88vh; }
  /* Lớp nền nằm ngay trước khung Magnific Popup. */
  .mfp-bg:has(+ .mfp-wrap #xemtctskt) {
    background-color: #0b0b0b !important;
    z-index: 10998;
  }

  .mfp-bg.mfp-ready:has(+ .mfp-wrap #xemtctskt) {
    opacity: .6;
  }

  .mfp-wrap:has(#xemtctskt) {
    z-index: 10999;
  }

  .mfp-wrap:has(#xemtctskt) .mfp-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  .mfp-wrap:has(#xemtctskt) .mfp-container::before {
    display: none;
  }

  .mfp-wrap:has(#xemtctskt) .mfp-content {
    width: min(100%, 500px);
    min-width: 0;
  }

  .mfp-wrap #xemtctskt {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Icon nut card mobile 16px */
@media only screen and (max-width: 767px) {
  .btn-add-cart img, .btn-view img, .btn-add-cart svg { width: 16px; height: 16px; }
}
/* Nen modal dam hon */
.mfp-bg.mfp-ready { opacity: .85; }
/* Modal cach top/duoi/phai 30px + scroll chac chan */
.product-lightbox { margin: 30px 30px 30px auto; max-height: calc(100vh - 60px); }
.product-lightbox .product-lightbox-inner { overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media only screen and (max-width: 767px) {
  .product-lightbox { margin: 0; }
}

/* Modal header tach rieng neo tren (dung nut X mac dinh Flatsome) */
.qv-head { position: relative; flex-shrink: 0; display: flex; align-items: center; background: #fff; padding: 14px 20px 12px; border-bottom: none; }
.qv-head a.plain { min-width: 0; }
.qv-head h3 { margin: 0; font-size: 16px; line-height: 1.4; }
/* Tieu de mo ta modal */
.htw-short-description > p { margin-bottom: 5px; margin-top: 15px; }
/* Mo modal: PC/tablet truot phai-vao, mobile truot duoi-len */
.mfp-ready .product-lightbox { animation: tcInRight .35s ease; }
@keyframes tcInRight { from { transform: translateX(80px); opacity: 0; } }
/* Lock scroll chac chan */
html.mfp-open, body.mfp-open { overflow: hidden; }
@media only screen and (max-width: 767px) {
  .mfp-ready .product-lightbox { animation-name: tcInUp; }
}
@keyframes tcInUp { from { transform: translateY(80px); opacity: 0; } }

/* Danh muc noi bat: anh vien + cot 13% */
.dm-noibat .box-image img {
    width: 100%;
    padding: 2px;
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-r);
    object-fit: contain;
}
.dm-noibat .box-category .box-image { width: 13.5% !important; }
.dm-noibat .box-vertical .box-text { padding-left: 10px; }

@media only screen and (max-width: 767px) {
  .home .dm-noibat .col-inner > .row {
    width: 100%;
    margin-inline: 0;
    padding-inline: 12.5px;
  }

  .home .dm-noibat .product-category.col {
    min-width: 120px;
    padding-inline: 7.5px !important;
  }

  .home .dm-noibat .box-category {
    display: flex;
    flex-direction: column;
  }

  .home .dm-noibat .box-category .box-image {
    width: 64px !important;
    margin-inline: auto;
  }

  .home .dm-noibat .box-category .box-text {
    padding-inline: 0;
    text-align: center;
  }
}

/* Title khoi danh muc noi bat */
.dm-noibat .section-title-normal {
    border-bottom: 1px solid var(--tc-border);
    padding: 12px 0px 0 20px;
}

/* Link danh muc hover primary */
.product-category a:hover { color: var(--primary-color); }

/* Hover danh muc: h5 primary */
.product-category a:hover h5 { color: var(--primary-color); }

/* Modal header chua nut X mac dinh */
.qv-head a.plain { min-width: 0; padding-right: 30px; }
.mfp-content .mfp-close { position: absolute; top: 8px !important; right: 8px; z-index: 6; }
/* Khoa scroll ngoai khi quickview mo (chi modal nay) */
.mfp-wrap.tc-qv { overflow: hidden; }

/* Mobile: huy height co dinh Flatsome (gay tran), tu can min-height bang JS */
@media only screen and (max-width: 767px) {
  .equalize-box .box-text,
  .equalize-box .title-wrapper .product-title,
  .equalize-box .price-wrapper { height: auto !important; }
}

/* Bottom-sheet sat day, het ke ho + can trai noi dung */
.mfp-wrap.tc-qv .mfp-container { line-height: 0; }
.mfp-wrap.tc-qv .mfp-content { text-align: left; line-height: 1.6; }
.mfp-wrap.tc-qv .product-lightbox { margin-bottom: 0; }

/* Mobile: giữ mũi tên slider sản phẩm luôn hiện để dễ chạm. */
@media only screen and (max-width: 767px) {
  .product-small .icon-video i.fa-play-circle { font-size: 22px; }

  .row-slider > .flickity-prev-next-button {
    top: 38% !important;
    width: 30px !important;
    opacity: 1;
  }

  .row-slider > .flickity-prev-next-button.previous { left: 12px !important; }
  .row-slider > .flickity-prev-next-button.next { right: 12px !important; }

  body #main .row-slider > .flickity-prev-next-button:is(:focus, :active) {
    outline: none !important;
  }

  .row-slider > .flickity-prev-next-button .flickity-button-icon {
    top: 50%;
    left: 50%;
    right: auto;
    width: 26px;
    height: 51px;
    transform: translate(-50%, -50%);
  }

  .row-small.row-slider:has(.product-small) > .flickity-prev-next-button.previous {
    left: 7.5px !important;
  }

  .row-small.row-slider:has(.product-small) > .flickity-prev-next-button.next {
    right: 7.5px !important;
  }

  .row-small.row-slider:has(.product-small) > .flickity-prev-next-button .flickity-button-icon {
    transform: translateY(-50%);
  }

  .row-small.row-slider:has(.product-small) > .flickity-prev-next-button.previous .flickity-button-icon {
    left: 0;
  }

  .row-small.row-slider:has(.product-small) > .flickity-prev-next-button.next .flickity-button-icon {
    right: 0;
    left: auto;
  }
}

@media only screen and (max-width: 360px) {
  .row-slider > .flickity-prev-next-button {
    top: 30% !important;
  }
}

@media only screen and (max-width: 549px) {
  .home .row-video-home { display: none; }
}

/* Nut card mobile sat mep phai */
@media only screen and (max-width: 767px) {
  .product-small .btn-add-view { right: -4px; }
}
/* Tab chi tiet in hoa */
.product-tabs li a { text-transform: uppercase !important; }
/* Tooltip gio hang noi len tren card ke */
.product-small a.added_to_cart.wc-forward { z-index: 50; }

/* Nut view het margin thua (gap lo) */
.btn-view { margin-top: 0; }
@media only screen and (max-width: 767px) {
  /* Label bao gia khong wrap mobile */
  .htw-baogia { white-space: nowrap; }
}

@media only screen and (max-width: 767px) {
  .htw-quickview { white-space: nowrap; }
  .htw-quickview, .htw-baogia { font-size: 13px; }
}

/* 2 nut 1 hang full (ep thang moi rule width cu) */
form.cart > .single_add_to_cart_button.button,
form.cart > .ux-buy-now-button.button,
.woocommerce-variation-add-to-cart > .single_add_to_cart_button.button,
.woocommerce-variation-add-to-cart > .ux-buy-now-button.button {
    flex: 1 1 calc(50% - 4px) !important;
    max-width: calc(50% - 8px) !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 4px !important;
}
form.cart > .single_add_to_cart_button.button:last-child,
form.cart > .ux-buy-now-button.button:last-child,
.woocommerce-variation-add-to-cart > .single_add_to_cart_button.button:last-child,
.woocommerce-variation-add-to-cart > .ux-buy-now-button.button:last-child {
    margin-right: 0 !important;
}
/* Swatch label 13px */
.ux-swatch--label { font-size: 13px; }

/* Doan van trong li tab mo ta */
.single-product div#tab-description li > p { font-size: 15px; line-height: 150%; margin-bottom: 0; }

/* Tooltip Da them vao gio (single/modal, absolute tren nut, tu an 3s) */
.single_add_to_cart_button { position: relative; }
.tc-added-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); transition: opacity .4s ease; z-index: 50; }
.tc-added-tip span { display: inline-block; background: var(--tc-navy-5); color: #fff; font-size: 11px; font-weight: 600; line-height: 1; padding: 7px 10px; border-radius: var(--tc-r-sm); white-space: nowrap; box-shadow: var(--tc-shadow-md); }
.tc-added-tip.tc-fade { opacity: 0; pointer-events: none; }
.tc-added-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #111A3F;
}

/* Hover nut mua ngay: bong theo mau secondary */
.ux-buy-now-button:hover { box-shadow: 0 2px 8px rgba(142, 11, 11, .5) !important; }

/* Menu doc fly-out: scroll gon, an thanh cuon */
.header-vertical-menu__fly-out #menu-vertical-menu {
    font-size: 14px;
    line-height: 22px;
    color: var(--tc-text-2);
    max-height: 69vh;
    overflow: scroll;
    scrollbar-width: none;
}
.header-vertical-menu__fly-out #menu-vertical-menu::-webkit-scrollbar { display: none; }

/* Link gio header khong do bong hover */
.header-cart-link:hover { box-shadow: none !important; }

/* Thumb gallery: vien token, het nhay hover */
.product-thumbnails .is-nav-selected a img, .product-thumbnails a:hover img {
    border-color: var(--tc-border);
    opacity: 1;
    transform: none;
}
/* Slide gallery dau tien */
.woocommerce-product-gallery__image.slide.first.is-selected {
    position: absolute;
    left: 0%;
    border: 1px solid var(--tc-border);
}

/* Tieu de single mau primary */
.product-title.product_title.entry-title { color: var(--primary-color); }

/* Dong review/daban: chu 12.5px (thang rule bi de) */
.htw-review-count p {
    margin-bottom: 0;
    padding-left: 5px;
    border-left: 1px solid var(--tc-border-2);
    opacity: .65;
    margin: 0;
    font-size: 12.5px;
}

/* Logo thuong hieu mobile sat le */
@media only screen and (max-width: 767px) {
  .brand-logo-list { margin-left: 5px !important; margin-right: 5px !important; }
}

/* Nut cart het margin tren */
.btn-add-cart a { margin-top: 0 !important; }
.btn-view a { margin-top: 0 !important; }

/* Nut slider: svg het margin, nut next keo len */
.slider-nav-push.slider-nav-reveal .flickity-prev-next-button svg { margin-top: 0; }
.slider-nav-reveal .flickity-prev-next-button, .slider-nav-reveal .flickity-prev-next-button:hover { margin-top: -40px !important; }

/* Link xem tat ca section + icon mui ten */
.row-trangchu .section-title a { color: var(--tc-primary); }
.section-title i.icon-angle-right { margin-left: 6px; font-size: 14px; }

/* Menu doc fly-out: link den */
.nav-vertical-fly-out > li > a { color: #222222; }

/* (title da xem dung mac dinh) */

/* (row da xem da bo, giu section navy) */

/* Khoảng đệm dưới các thẻ Tin tức ở Trang chủ. */
.home .row-news { margin-bottom: 0; padding-bottom: var(--tc-section-gap); }
.home .row-news > .col { margin-bottom: 0; padding-bottom: 0; }
.home .row-news .col-inner,
.home .row-news .post-item { margin-bottom: 0 !important; padding-bottom: 0 !important; }

@media only screen and (max-width: 767px) {
    .home .row-news {
        padding-bottom: 0;
    }

    .home .row-news > .col {
        padding-inline: 0;
    }

    .home .row-news > .col > .col-inner {
        padding: 12px 12.5px !important;
    }

    .home .row-news > .col > .col-inner > .row {
        margin-inline: 0;
        row-gap: 12px;
    }

    .home .row-news .post-item {
        padding-inline: 0;
    }

    .home .row-news .post-item > .col-inner {
        padding-bottom: 5px !important;
    }

    .home .row-news .box-blog-post {
        display: grid;
        grid-template-columns: 40% minmax(0, 1fr);
        align-items: center;
        gap: 8px;
    }

    .home .row-news .box-image {
        width: 100%;
    }

    .home .row-news .image-cover {
        aspect-ratio: 3 / 2;
        padding-top: 0 !important;
    }

    .home .row-news .box-text {
        padding: 0 4px 0 0;
    }

    .home .row-news .post-title a {
        line-height: 1.35;
    }

    .home .row-news .from_the_blog_excerpt {
        margin: 4px 0 0;
        line-height: 1.45;
    }
}

/* Col da xem: nen trang nhu row-trangchu (da bo col-inner) */
#htw-recently--wrap .htw-container > .col { background: #fff; border-radius: var(--tc-r); padding: 20px; }

/* Row da xem sat vien section (het ke navy thua) */
#htw-recently--wrap .row-trangchu { margin-bottom: 0; }

#htw-recently--wrap .htw-recently-empty {
  margin: 0;
  padding: 24px 20px;
  text-align: center;
}

.tc-home-hero-picture { display: block; }

/* Phân trang danh sách sản phẩm. */
.woocommerce-pagination[aria-label] .nav-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 22px 0 0;
  padding: 0;
}

.woocommerce-pagination[aria-label] .nav-pagination > li {
  margin: 0;
}

.woocommerce-pagination[aria-label] .nav-pagination > li > .page-number {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid var(--tc-border-2);
  border-radius: var(--tc-r-lg);
  background: #fff;
  color: var(--tc-navy-5);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.woocommerce-pagination[aria-label] .nav-pagination > li > a.page-number:hover {
  border-color: var(--tc-navy-5);
  background: #f1f4f9;
  color: var(--tc-navy-5);
}

.woocommerce-pagination[aria-label] .nav-pagination > li > a.page-number:focus-visible {
  outline: 2px solid var(--tc-navy-5);
  outline-offset: 2px;
}

.woocommerce-pagination[aria-label] .nav-pagination > li > .page-number.current {
  border-color: var(--tc-navy-5);
  background: var(--tc-navy-5);
  color: #fff;
}

.woocommerce-pagination[aria-label] .nav-pagination > li > .page-number.dots {
  min-width: 24px;
  padding: 0 2px;
  border-color: transparent;
  background: transparent;
}

/* Nen trang xam nhat */
#wrapper, #main { background-color: #f4f6f9 !important; }

/* Nut prev slider: padding + bo nua phai */
.flickity-button.previous .flickity-button-icon { padding-right: 10px; border-radius: 0 100px 100px 0; }

/* Blog home: trich dan + tieu de 2 dong */
.post-item .from_the_blog_excerpt { margin-top: 12px; font-size: 13px; color: #484848; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-item .post-title a { font-size: 15px; text-transform: unset; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Nut slider gallery sat vien */
.product-gallery-slider .flickity-prev-next-button.previous { left: 0; }
.product-gallery-slider .flickity-prev-next-button.next { right: 0; }

/* Đặt trình xem ảnh trên header sticky và các nút nổi. */
.single-product .pswp.pswp--open {
  z-index: 11000;
}


/* Sidebar sang nen trang chu toi */
#shop-sidebar .widget_product_categories,
.post-sidebar .widget_product_categories,
.page-right-sidebar .widget_product_categories,
.detail-category-sidebar > .col-inner .sidebar-wrapper,
.danh-muc-home .sidebar-wrapper {
  background: #fff;
  border: 1px solid var(--tc-border);
}
#shop-sidebar .widget_product_categories .product-categories li a,
.post-sidebar .widget_product_categories .product-categories li a,
.page-right-sidebar .widget_product_categories .product-categories li a,
.detail-category-sidebar .sidebar-wrapper .product-categories li a,
.danh-muc-home .sidebar-wrapper .product-categories li a,
.product-categories a {
  color: var(--tc-text-2);
}
#shop-sidebar .widget > ul > li + li,
.post-sidebar .widget > ul > li + li,
.page-right-sidebar .widget > ul > li + li {
  border-color: var(--tc-border);
}
#shop-sidebar .product-categories a,
.post-sidebar .product-categories a {
  border-color: var(--tc-border);
}
/* Cum bai viet: nen trang */
.post-sidebar .post-item,
.widget_recent_entries ul li,
.widget_recent_comments ul li { background: #fff; }

/* Cum tin tuc: nen trang */
.post-item > .col-inner {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-r);
    padding: 5px;
}
#post-list .post-item { padding-bottom: 20px; }

/* Widget Tin tuc moi: nen trang */
.flatsome_recent_posts { background: #fff; border: 1px solid var(--tc-border); border-radius: var(--tc-r); padding: 15px; }
.flatsome_recent_posts .recent-blog-posts-li a { color: var(--tc-text-2); }
.flatsome_recent_posts .recent-blog-posts-li a:hover { color: var(--primary-color); }

/* Chu footer */
.footer p { font-size: 14px; margin-bottom: 5px; }

/* Title section mobile nho lai */
@media only screen and (max-width: 767px) {
  .section-title-normal span { font-size: 18px; line-height: 28px; }
}

#content.col { padding-right: 0; border: none; }

/* List trong page */
#content .page-inner ul li { font-size: 15px; }

/* Link danh muc sidebar phai */
.page-right-sidebar .widget_product_categories .product-categories li a { color: #222222; }
.page-right-sidebar .widget_product_categories .product-categories li a:hover { color: var(--primary-color); }

/* Danh muc con het padding trai */
.product-categories li li { padding-left: 0; }

/* Tin moi sidebar: 14px, 2 dong */
.flatsome_recent_posts .recent-blog-posts-li a { font-size: 14px; line-height: 22px; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Content tablet/mobile padding phai */
@media only screen and (max-width: 1024px) {
  #content.col { padding-right: 15px; }
}

/* Anh tin tuc bo goc 4 */
.post-item .image-cover { border-radius: var(--tc-r-xs); overflow: hidden; }

/* Bai viet dang card trang */
#content article { padding: 30px; border-radius: var(--tc-r); background-color: #ffffff; }

/* gach ngan entry full */
.entry-divider { max-width: 100%; height: 1px; }

.entry-header-text { padding: 0; }

.product-short-description ul span { font-size: 15px !important; line-height: 22px; }

/* Back to top */
.back-to-top { border: 1px solid !important; }
.back-to-top i { top: -1px; }

/* ===== Trang Lien he: card thong tin ===== */
.tc-contact-head { text-align: center; margin-bottom: var(--tc-section-gap); }
.tc-contact-head h2 { font-size: 30px; font-weight: 800; color: var(--tc-text); margin: 0 0 14px; text-transform: uppercase; line-height: 1.3; }
.tc-contact-head h2 span { color: var(--primary-color); }
.tc-contact-head h2 span { color: var(--primary-color); }
.tc-contact-head .tc-contact-bar { display: none; }
.tc-contact-cards { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: var(--tc-section-gap); }
.tc-contact-card {
  flex: 1 1 220px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-r);
  padding: 24px;
  transition: box-shadow .2s;
}
.tc-contact-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.tc-contact-ic svg { width: 22px; height: 22px; }
.tc-contact-ic {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.tc-contact-txt strong { display: block; font-size: 15px; font-weight: 700; color: var(--tc-text); margin-bottom: 4px; }
.tc-contact-txt p { font-size: 14px; line-height: 1.6; color: var(--tc-text-2); margin: 0; }
.tc-contact-txt a { color: var(--primary-color); text-decoration: none; }
.tc-contact-txt a:hover { text-decoration: underline; }
.tc-contact-map { border-radius: var(--tc-r); overflow: hidden; border: 1px solid var(--tc-border); }
.tc-contact-map iframe { display: block; width: 100%; height: 480px; border: 0; }
@media (max-width: 767px) {
  .tc-contact-cards { flex-direction: column; gap: 14px; }
  .tc-contact-head h2 { font-size: 20px; }
  .tc-contact-map iframe { height: 320px; }
}

/* ===== Trang Gioi thieu ===== */
.tc-about-hero { text-align: center; margin-bottom: var(--tc-section-gap); }
.tc-about-hero h1 {
  font-size: 30px;
  font-weight: 800;
  color: var(--tc-text);
  margin: 0 0 22px;
  text-transform: uppercase;
  line-height: 1.3;
}
.tc-about-reg {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.tc-about-reg-item {
  background: #fff;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-r);
  padding: 14px 22px;
  text-align: center;
  min-width: 180px;
}
.tc-about-reg-item strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--primary-color);
  letter-spacing: .3px;
  margin-bottom: 4px;
}
.tc-about-reg-item span {
  font-size: 14px;
  color: var(--tc-text-2);
  font-weight: 500;
}
.tc-about-hero + img {
  border-radius: var(--tc-r);
  overflow: hidden;
}
.tc-about-body {
  background: #fff;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-r);
  padding: 24px;
  margin: var(--tc-section-gap) 0;
}
.tc-about-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 18px;
  line-height: 1.4;
}
.tc-about-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--tc-text-2);
  margin-bottom: 14px;
}
.tc-about-body p:last-child { margin-bottom: 0; }
.tc-about-body p strong { color: var(--tc-text); font-weight: 600; }
.tc-about-products {
  background: #fff;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-r);
  padding: 24px;
  margin-bottom: var(--tc-section-gap);
}
.tc-about-products h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--tc-text);
  margin: 0 0 20px;
  text-transform: none;
}
.tc-about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tc-about-tag {
  display: inline-block;
  background: var(--tc-bg-soft, #f3f5fa);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-r-sm);
  padding: 8px 16px;
  font-size: 14px;
  color: var(--tc-text-2);
  font-weight: 500;
  transition: all .2s;
}
.tc-about-tag:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.tc-about-close {
  background: #fff;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-r);
  padding: 24px;
}
.tc-about-close p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--tc-text-2);
  margin-bottom: 16px;
}
.tc-about-close p strong { color: var(--tc-text); }
.tc-about-slogan {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
  padding: 12px 0 12px 18px;
  line-height: 1.5;
}
@media (max-width: 767px) {
  .tc-about-hero h1 { font-size: 20px; }
  .tc-about-reg-item { min-width: calc(50% - 7px); padding: 12px 14px; }
  .tc-about-body, .tc-about-products, .tc-about-close { padding: 20px; }
  .tc-about-body h2 { font-size: 18px; }
  .tc-about-slogan { font-size: 15px; }
}

/* Post list mobile */
@media only screen and (max-width: 767px) {
    #post-list { margin-bottom: 20px; padding: 20px !important; }
    #post-list .post-item:last-child { padding-bottom: 0; }
    #post-list .post-item .box-text { padding: 15px; }
}
#post-list .post-item .is-devider { display: none; }

.blog-wrapper .large-9.col { padding-bottom: 0; }

.box-blog-post .is-divider { display: none; }

@media only screen and (max-width: 767px) { #content .page-inner { padding: 20px; } }

/* Trang chủ và thẻ sản phẩm */
#header .searchform-wrapper {
  background-color: #f7f8fb;
  border-color: var(--tc-border);
}

#header form.searchform input[type="search"] {
  background-color: transparent;
}

#header .searchform-wrapper:focus-within {
  border-color: var(--tc-primary);
  box-shadow: none;
}

.home .row-trangchu > .col > .col-inner {
  border-radius: var(--tc-r-lg);
  box-shadow: 0 2px 8px rgba(7, 37, 113, .04);
}

.home .row-trangchu .section-title-normal {
  flex-wrap: nowrap;
  gap: 12px;
  padding: 12px clamp(12px, 2vw, 20px);
}

.home .row-trangchu .section-title-normal .section-title-main {
  flex: 1 1 auto;
  min-width: 0;
  margin-inline-end: 0;
  padding-bottom: 0;
  border-bottom: 0 !important;
  color: var(--tc-primary);
  font-size: clamp(16px, 2vw, 20px);
  line-height: var(--tc-leading-tight);
  text-transform: none;
}

.home .row-trangchu .section-title-normal > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  line-height: var(--tc-leading-tight);
  text-transform: none;
  white-space: nowrap;
}

.home .row-trangchu .section-title-normal > a .icon-angle-right {
  margin: 0;
}

.product-small > .col-inner,
.row-trangchu .row-slider .flickity-slider > .col > .col-inner {
  border-color: var(--tc-border);
  border-radius: var(--tc-r-md);
  transition: border-color var(--tc-ease), background-color var(--tc-ease);
}

.product-small > .col-inner:hover,
.row-trangchu .row-slider .flickity-slider > .col > .col-inner:hover {
  border-color: var(--tc-border-4);
  background-color: #fafbfe;
}

.product-small .box-image {
  border-radius: var(--tc-r-sm);
}

.product-small .product-title a {
  color: var(--tc-text);
  font-weight: 600;
}

.product-small .product-title a:hover {
  color: var(--tc-primary);
}

.home .home-top-row .pc-banner > .col-inner > .img .img-inner,
.home .home-top-row .dm-noibat > .col-inner {
  border-radius: var(--tc-r-lg);
}

.home .home-top-row .dm-noibat .section-title-normal .section-title-main {
  border-bottom: 0 !important;
  color: var(--tc-primary);
}

/* Giảm bán kính ở màn hình nhỏ và đồng bộ trạng thái focus của form. */
#main :is(input[type="text"], input[type="email"], input[type="tel"],
          input[type="password"], input[type="search"], select, textarea) {
  border-color: var(--tc-border-3);
  border-radius: var(--tc-r-sm);
}

#main :is(input, select, textarea):focus {
  border-color: var(--tc-primary);
}

@media (max-width: 767px) {
  :root { --tc-r-md: 5px; --tc-r-lg: 6px; }

  .home .row-trangchu .section-title-normal .section-title-main {
    overflow-wrap: anywhere;
  }

}

/* Khoảng cách giữa các khối cấp trang, bên ngoài nội dung của từng khối. */
#main > .page-wrapper {
  padding-bottom: var(--tc-section-gap);
}

#main > .page-wrapper > :is(.row-main, .row:has(> #content, > .post-sidebar)):last-child > .col {
  padding-bottom: 0;
}

#main > .section + .section,
#main > #content > .section + .section {
  margin-top: var(--tc-section-gap);
}

.home #main #content > :is(.home-top-row, .row-trangchu, .row-video-home) {
  margin-bottom: var(--tc-section-gap);
}

.home #main #content > :is(.home-top-row, .row-trangchu, .row-video-home) > .col {
  padding-bottom: 0;
}

.home #main #content > :is(.home-top-row, .row-trangchu, .row-video-home) + .gap-element:has(+ :is(.row-trangchu, .row-video-home)) {
  display: none !important;
}

#main > .category-page-row > .col {
  padding-bottom: var(--tc-section-gap);
}

.tc-policy-page #content > .row-main > .col > .col-inner {
  padding: var(--tc-section-gap);
  background: #fff;
  border: 1px solid var(--tc-border);
  overflow-wrap: anywhere;
}

.tc-policy-page :is(#content > .row-main, #htw-recently--wrap .row-trangchu) > .col > .col-inner {
  border-radius: var(--tc-r-lg);
}

.tc-policy-page #content > .row-main > .col > .col-inner > h1:first-child {
  font-size: clamp(16px, 2vw, 20px);
  line-height: var(--tc-leading-tight);
}

/* Giỏ hàng và thanh toán */
body.woocommerce-cart #content,
body.woocommerce-checkout:not(.woocommerce-order-received) #content {
  background: transparent;
}

.woocommerce-cart .cart-wrapper,
.woocommerce-cart .cart-collaterals > .col-inner,
form.checkout #customer_details,
.woocommerce-checkout form.checkout .row.pt-0 > .col:last-child .col-inner:has(> .checkout-sidebar) {
  padding: var(--tc-section-gap);
  background: #fff;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-r-lg);
}

.woocommerce-cart #main > #content.page-wrapper,
.woocommerce-checkout:not(.woocommerce-order-received) #main > #content.page-wrapper {
  padding-block: var(--tc-section-gap);
}

.woocommerce-checkout #content :is(form.checkout, form#tc-order-coupon),
.woocommerce-cart #content .woocommerce-cart-form {
  margin-bottom: 0;
}

.woocommerce-checkout #content form.checkout > .row.pt-0 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--tc-section-gap);
  width: 100%;
  margin-inline: 0;
}

.woocommerce-checkout #content form.checkout > .row.pt-0 > .col {
  min-width: 0;
  max-width: none;
  padding: 0;
}

.woocommerce-checkout #content form.checkout > .row.pt-0::after {
  content: none;
}

form.checkout #customer_details + .woocommerce-privacy-policy-text {
  margin-top: var(--tc-section-gap);
}

form.checkout .woocommerce-privacy-policy-text > p:last-child {
  margin-bottom: 0;
}

form.checkout :is(.woocommerce-billing-fields > h3, #order_review_heading) {
  margin: 0 0 8px;
  padding-top: 0;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  line-height: var(--tc-leading-tight);
}

.woocommerce-cart .cart-wrapper :is(th, td),
.woocommerce-cart .cart_totals :is(th, td),
form.checkout .woocommerce-checkout-review-order-table :is(th, td) {
  border-color: var(--tc-border);
}

.woocommerce-cart .cart-wrapper thead th,
.woocommerce-cart .cart_totals .product-name,
form.checkout :is(#order_review_heading, h3, .woocommerce-checkout-review-order-table thead th),
.woocommerce-cart .order-total .amount,
form.checkout .order-total .amount {
  color: var(--tc-primary);
}

.woocommerce-cart .cart_totals .product-name {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  line-height: var(--tc-leading-tight);
}

.woocommerce-cart .cart-wrapper .product-name > a,
form.checkout .woocommerce-checkout-review-order-table .product-name {
  color: var(--tc-text);
  overflow-wrap: anywhere;
}

.woocommerce-cart .cart-wrapper .product-name > a:hover {
  color: var(--tc-primary);
}

form.checkout :is(.woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields) h3 {
  text-transform: none;
}

form.checkout .select2-container .select2-selection {
  border-color: var(--tc-border-3);
}

form.checkout .select2-container--focus .select2-selection,
form.checkout .select2-container--open .select2-selection,
form.checkout .woocommerce-input-wrapper .input-text:focus {
  border-color: var(--tc-primary);
}

form.checkout #payment ul.payment_methods {
  margin-bottom: 14px;
}

form.checkout #payment ul.payment_methods li {
  margin-bottom: 8px;
  padding: 10px 12px;
}

form.checkout #payment ul.payment_methods .payment_box {
  height: auto;
  margin: 8px 0 0;
  padding: 8px 10px;
  background: var(--tc-bg-soft);
  border-radius: var(--tc-r-sm);
  overflow-wrap: anywhere;
}

form.checkout #payment .payment_box p:last-child {
  margin-bottom: 0;
}

form.checkout #payment ul.payment_methods .payment_box.payment_method_bacs :is(p, .ttnganhang, .text-nh),
form.checkout #payment ul.payment_methods .payment_box.payment_method_bacs p::before,
form.checkout #payment ul.payment_methods .payment_box.payment_method_cod > div {
  background: transparent;
}

.woocommerce-cart .cart_totals .checkout-button,
form.checkout #place_order {
  width: 100%;
  min-height: 44px;
  margin: 0;
  background-color: var(--tc-secondary) !important;
  color: #fff;
  font-size: var(--tc-cart-button-font-size);
  border-radius: var(--tc-r-sm);
}

.woocommerce-cart .cart_totals .checkout-button:hover,
form.checkout #place_order:hover {
  background-color: var(--tc-red-4) !important;
}

form.checkout #place_order:focus-visible,
.woocommerce-cart .cart_totals .checkout-button:focus-visible {
  outline: 2px solid var(--tc-primary);
  outline-offset: 2px;
}

@media (max-width: 849px) {
  .woocommerce-checkout #content form.checkout > .row.pt-0 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  form.checkout :is(p.form-row-first, p.form-row-last) {
    float: none;
    width: 100%;
    margin-inline: 0 !important;
  }
}

/* Shared storefront controls and panels. */
body :is(#main, .mfp-content, .baogia-popup) :is(
  input[type="text"], input[type="email"], input[type="password"],
  input[type="tel"], input[type="url"], input[type="search"], select, textarea
):not([type="hidden"]) {
  border-color: var(--tc-border-3);
  border-radius: var(--tc-r-md);
}

body :is(#main, #header, .mfp-content, .baogia-popup) :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--tc-primary) !important;
  outline-offset: 2px;
}

/* Dùng vòng focus của khung tìm kiếm khi nhập từ khóa. */
body #header form.searchform input[type="search"]:focus-visible {
  outline: none !important;
}

body :is(#main, .mfp-content, .baogia-popup) :is(
  .button.primary, .button.alt, .login-submit .button, .ls-buy-now, .copy-coupon
) {
  min-height: 44px;
  border-radius: var(--tc-r-md);
  font-weight: 700;
}

#main :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-MyAccount-content, .comment-respond),
body .baogia-popup .baogia-content {
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-r-lg);
  background-color: #fff;
  box-shadow: var(--tc-shadow-sm);
}

#main :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-MyAccount-content, .comment-respond) {
  padding: clamp(14px, 3vw, 24px);
}

body .baogia-popup :is(.baogia-header, .baogia-actions) {
  border-color: var(--tc-border);
}

body .baogia-popup .baogia-header h3,
#main :is(.woocommerce-MyAccount-content, .comment-respond) :is(h2, h3) {
  color: var(--tc-primary);
}

/* Trang tổng quan tài khoản (dashboard): gọn, đồng bộ card & loại bỏ hover đen của Flatsome. */
#main .woocommerce-MyAccount-content > p {
  color: var(--tc-text-2);
  font-size: 14px;
  line-height: 1.6;
}

#main .woocommerce-MyAccount-content > p strong {
  color: var(--tc-text);
  font-weight: 600;
}

#main .woocommerce-MyAccount-content > p a {
  color: var(--tc-primary);
  font-weight: 600;
}

#main .woocommerce-MyAccount-content > p a:hover {
  text-decoration: underline;
}

#main .woocommerce-MyAccount-content .dashboard-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.4;
}

#main .woocommerce-MyAccount-content .dashboard-links > li {
  width: auto;
  margin: 0 !important;
  padding: 0;
}

#main .woocommerce-MyAccount-content .dashboard-links > li > a {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-r-lg);
  background-color: #fff;
  color: var(--tc-text);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: border-color var(--tc-ease), background-color var(--tc-ease), color var(--tc-ease);
}

#main .woocommerce-MyAccount-content .dashboard-links > li > a::before {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--tc-r-md);
  background-color: var(--tc-bg-soft);
  color: var(--tc-primary);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 14px;
  content: "\f0c1";
  transition: background-color var(--tc-ease), color var(--tc-ease);
}

#main .woocommerce-MyAccount-content .dashboard-links > .woocommerce-MyAccount-navigation-link--orders > a::before {
  content: "\f466";
}

#main .woocommerce-MyAccount-content .dashboard-links > .woocommerce-MyAccount-navigation-link--edit-address > a::before {
  content: "\f3c5";
}

#main .woocommerce-MyAccount-content .dashboard-links > .woocommerce-MyAccount-navigation-link--edit-account > a::before {
  content: "\f007";
}

#main .woocommerce-MyAccount-content .dashboard-links > li > a:hover {
  border-color: var(--tc-primary);
  background-color: var(--tc-bg-soft);
  color: var(--tc-primary);
}

#main .woocommerce-MyAccount-content .dashboard-links > li > a:hover::before {
  background-color: var(--tc-primary);
  color: #fff;
}

/* Bảng đơn hàng & chi tiết trong trang tài khoản. */
#main .woocommerce-MyAccount-content .touch-scroll-table {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

#main .woocommerce-MyAccount-content table.shop_table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

#main .woocommerce-MyAccount-content table.shop_table thead th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--tc-border-2);
  background-color: var(--tc-bg-soft-2);
  color: var(--tc-text-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-align: left;
}

#main .woocommerce-MyAccount-content table.shop_table tbody :is(th, td) {
  padding: 12px 14px;
  border-bottom: 1px solid var(--tc-border);
  color: var(--tc-text-2);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
}

#main .woocommerce-MyAccount-content table.shop_table :is(thead th, tbody td):last-child {
  text-align: right;
}

#main .woocommerce-MyAccount-content table.shop_table tbody tr:last-child :is(th, td) {
  border-bottom: 0;
}

#main .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number a,
#main .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-total .amount {
  color: var(--tc-primary);
  font-weight: 700;
}

#main .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-status {
  color: var(--tc-text);
  font-weight: 500;
}

#main .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--tc-primary);
  border-radius: var(--tc-r-sm);
  background-color: #fff !important;
  color: var(--tc-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
}

#main .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button:hover {
  background-color: var(--tc-primary) !important;
  color: #fff;
}

@media (max-width: 767px) {
  #main .woocommerce-MyAccount-content table.shop_table_responsive,
  #main .woocommerce-MyAccount-content table.shop_table_responsive tbody {
    display: block;
    width: 100%;
  }

  #main .woocommerce-MyAccount-content table.shop_table_responsive thead {
    display: none;
  }

  #main .woocommerce-MyAccount-content table.shop_table_responsive tbody tr {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 8px 12px;
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-r-md);
    background-color: #fff;
  }

  #main .woocommerce-MyAccount-content table.shop_table_responsive tbody tr:last-child {
    margin-bottom: 0;
  }

  #main .woocommerce-MyAccount-content table.shop_table_responsive tbody :is(th, td) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 8px;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px dashed var(--tc-border);
    text-align: right;
    overflow-wrap: normal;
    word-break: normal;
  }

  #main .woocommerce-MyAccount-content table.shop_table_responsive tbody :is(th, td)::before {
    content: attr(data-title);
    flex: none;
    margin-right: auto;
    color: var(--tc-text-2);
    font-size: 12px;
    font-weight: 600;
    text-align: left;
  }

  #main .woocommerce-MyAccount-content table.shop_table_responsive tbody td:last-child {
    justify-content: flex-end;
    padding-top: 10px;
    padding-bottom: 2px;
    border-bottom: 0;
  }

  #main .woocommerce-MyAccount-content table.shop_table_responsive tbody .woocommerce-orders-table__cell-order-actions::before {
    display: none;
  }
}

/* Thẻ địa chỉ thanh toán & giao hàng trong trang tài khoản. */
#main .woocommerce-MyAccount-content .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 0;
}

#main .woocommerce-MyAccount-content .woocommerce-Addresses::before,
#main .woocommerce-MyAccount-content .woocommerce-Addresses::after {
  content: none;
}

#main .woocommerce-MyAccount-content .woocommerce-Addresses > .woocommerce-Address {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 16px;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-r-lg);
  background-color: var(--tc-bg-soft-2);
}

#main .woocommerce-MyAccount-content .woocommerce-Address-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tc-border);
}

#main .woocommerce-MyAccount-content .woocommerce-Address-title > h3 {
  margin: 0;
  color: var(--tc-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

#main .woocommerce-MyAccount-content .woocommerce-Address-title > a.edit {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--tc-border-2);
  border-radius: var(--tc-r-sm);
  background-color: #fff;
  color: var(--tc-primary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--tc-ease), background-color var(--tc-ease), color var(--tc-ease);
}

#main .woocommerce-MyAccount-content .woocommerce-Address-title > a.edit:hover {
  border-color: var(--tc-primary);
  background-color: var(--tc-primary);
  color: #fff;
}

#main .woocommerce-MyAccount-content .woocommerce-Address > address {
  margin: 0;
  color: var(--tc-text-2);
  font-size: 14px;
  font-style: normal;
  line-height: 1.65;
}

@media (max-width: 649px) {
  #main .woocommerce-MyAccount-content .woocommerce-Addresses {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

/* Form chỉnh sửa tài khoản & địa chỉ: giới hạn bề ngang, đồng bộ nút và icon mật khẩu. */
#main .woocommerce-MyAccount-content form:is(.edit-account, :has(.woocommerce-address-fields)) {
  max-width: 600px;
}

#main .woocommerce-MyAccount-content form.edit-account fieldset {
  margin: 20px 0 16px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--tc-border);
}

#main .woocommerce-MyAccount-content form.edit-account fieldset legend {
  padding: 0 10px 0 0;
  border: 0;
  color: var(--tc-primary);
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
}

#main .woocommerce-MyAccount-content form:is(.edit-account, :has(.woocommerce-address-fields)) button[type="submit"] {
  width: auto;
  min-width: 160px;
  margin: 8px 0 0;
  padding-inline: 24px;
  font-size: 14px;
}

@media (max-width: 549px) {
  #main .woocommerce-MyAccount-content form:is(.edit-account, :has(.woocommerce-address-fields)) button[type="submit"] {
    width: 100%;
  }
}

/* Icon ẩn/hiện mật khẩu dùng Font Awesome mảnh thay icon mặc định của WooCommerce. */
#main .password-input {
  position: relative;
  display: block;
}

#main .password-input > input {
  padding-right: 40px;
}

#main .password-input > .show-password-input {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--tc-r-sm);
  background: transparent;
  color: var(--tc-muted);
  cursor: pointer;
}

#main .password-input > .show-password-input:hover {
  color: var(--tc-primary);
}

#main .password-input > .show-password-input::after {
  margin: 0;
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  content: "\f06e";
}

#main .password-input > .show-password-input.display-password::after {
  content: "\f070";
}

.livestream :is(.live-product, .live-coupon) {
  border-color: var(--tc-border);
  border-radius: var(--tc-r-lg);
}

@media (max-width: 549px) {
  body .baogia-popup :is(.baogia-header, .baogia-list, .baogia-actions) {
    padding-inline: 12px;
  }

  #main .woocommerce-MyAccount-content {
    overflow-wrap: anywhere;
  }
}

.htw-trangbaogia :is(.ltbg-mq-card, .ltbg-mq-total) {
  border-color: var(--tc-border);
  border-radius: var(--tc-r-lg);
}

.htw-trangbaogia .ltbg-mq-head {
  color: var(--tc-primary);
}

.htw-trangbaogia .ltbg-mq-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Khoảng cách và kiểu điều khiển dùng chung trên trang giỏ hàng. */
.woocommerce-cart #content {
  --tc-cart-control-height: 40px;
}

.woocommerce-cart #content .row-main > .col {
  padding-bottom: 0;
}

.woocommerce-cart :is(.cart-wrapper, .cart-sidebar, .text-center:has(.wc-empty-cart-message)) {
  padding: clamp(12px, 2vw, 16px);
  background: #fff;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-r-lg);
}

.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper:has(.message-wrapper) {
  width: 100%;
  margin: 0 0 16px;
}

.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper .message-wrapper {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-r-sm);
  background: #fff;
}
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper .woocommerce-message {
  background: var(--tc-bg-soft);
}

.woocommerce-cart .woocommerce-message .success-color {
  color: var(--tc-primary);
}

.woocommerce-cart #content .woocommerce.row-divided {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--tc-section-gap);
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

.woocommerce-cart #content .woocommerce.row-divided > .col {
  min-width: 0;
  max-width: none;
  padding-inline: 0;
  margin-top: 0;
  border: 0;
}

.woocommerce-cart #content .woocommerce.row-divided::before,
.woocommerce-cart #content .woocommerce.row-divided::after {
  content: none;
}

@media (min-width: 850px) {
  .woocommerce-cart #content .woocommerce.row-divided {
    grid-template-columns: minmax(0, 1fr) clamp(290px, 26vw, 340px);
  }
}

.woocommerce-cart .tc-cart-heading {
  margin: 0 0 12px;
  color: var(--tc-primary);
  font-size: clamp(19px, 2.2vw, 22px);
}

.woocommerce-cart .cart-wrapper .shop_table {
  margin: 0;
}

.woocommerce-cart .cart-wrapper .cart_item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(110px, max-content) 24px;
  grid-template-areas: "image name subtotal remove" "image price subtotal remove" "image quantity subtotal remove";
  align-items: start;
  gap: 4px 12px;
  margin: 0 0 8px;
  padding: 12px;
  border: 0;
  border-radius: var(--tc-r-lg);
  background: var(--tc-bg-soft-2);
}

.woocommerce-cart .cart-wrapper .cart_item > td {
  display: block;
  position: static;
  padding: 0;
  margin: 0;
  border: 0;
  text-align: start;
}

.woocommerce-cart .cart-wrapper .cart_item > td::before,
.woocommerce-cart .cart-wrapper .mobile-product-price {
  display: none !important;
}

.woocommerce-cart .cart-wrapper .cart_item .product-thumbnail {
  grid-area: image;
  min-width: 0;
  width: 100%;
}

.woocommerce-cart .cart-wrapper .cart_item .product-thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-r-sm);
}

.woocommerce-cart .cart-wrapper .cart_item .product-name { grid-area: name; }
.woocommerce-cart .cart-wrapper .cart_item .product-price { grid-area: price; }
.woocommerce-cart .cart-wrapper .cart_item .product-quantity {
  grid-area: quantity;
  margin-top: 4px;
}

.woocommerce-cart .cart-wrapper .cart_item .product-subtotal {
  grid-area: subtotal;
  text-align: end;
}

.woocommerce-cart .cart-wrapper .cart_item .product-subtotal .amount {
  color: var(--tc-primary);
  font-size: 15px;
}
.woocommerce-cart .cart-wrapper .cart_item .product-remove { grid-area: remove; }

.woocommerce-cart .cart-wrapper .cart_item .product-name > a {
  display: block;
  height: auto;
  font-size: 14px;
  font-weight: 600 !important;
  line-height: 1.4;
}

.woocommerce-cart .cart-wrapper .cart_item .quantity,
.woocommerce-cart .cart-wrapper .actions .button {
  margin-bottom: 0;
}

.woocommerce-cart .cart-wrapper .actions {
  padding: 4px 0 0;
  border: 0;
}

.woocommerce-cart .cart_totals > table:has(thead .product-name) {
  display: none;
}

.woocommerce-cart .cart_totals > h2 {
  display: block;
  margin: 0 0 10px;
  color: var(--tc-primary);
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.25;
}

.woocommerce-cart .cart_totals .shop_table {
  margin-bottom: 10px;
}

.woocommerce-cart .cart_totals .shop_table :is(th, td) {
  padding: 8px 0;
  border: 0;
  font-size: 14px;
}

.woocommerce-cart .cart_totals .shop_table tr + tr > :is(th, td) {
  border-top: 1px solid var(--tc-border);
}

.woocommerce-cart .cart_totals .order-total :is(th, td) {
  vertical-align: middle;
  font-weight: 700;
}

.woocommerce-cart .cart_totals .order-total .amount {
  font-size: 16px;
}

.woocommerce-cart .cart-sidebar .wc-proceed-to-checkout {
  margin: 12px 0 0;
}

.woocommerce-cart .cart-sidebar .ux-cart-coupon .coupon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--tc-border);
}

.woocommerce-cart .ux-cart-coupon .widget-title {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border: 0;
}

.woocommerce-cart .ux-cart-coupon :is(#coupon_code, button[name="apply_coupon"]) {
  width: 100%;
  margin: 0;
}

.woocommerce-cart :is(.cart-wrapper, .cart-sidebar, .return-to-shop) :is(
  .button-continue-shopping, .checkout-button, .wc-backward, #coupon_code, button[name="apply_coupon"]
) {
  min-height: var(--tc-cart-control-height);
  border-radius: var(--tc-r-sm);
}

.woocommerce-cart .button-continue-shopping {
  padding-inline: 14px;
  font-size: var(--tc-cart-button-font-size);
  border: 1px solid var(--tc-primary);
  background: #fff;
  color: var(--tc-primary);
}

.woocommerce-cart .button-continue-shopping:hover {
  background: var(--tc-primary);
  color: #fff;
  box-shadow: none !important;
}

.woocommerce-cart .cart_totals .checkout-button:hover {
  box-shadow: 0 2px 8px color-mix(in srgb, var(--tc-secondary) 30%, transparent) !important;
}

@media (max-width: 549px) {
  .woocommerce-cart .cart-wrapper .cart_item {
    grid-template-columns: 56px minmax(0, 1fr) max-content 24px;
    grid-template-areas: "image name name remove" "image price price ." "image quantity subtotal subtotal";
    column-gap: 8px;
    padding: 10px;
  }

  .woocommerce-cart .cart-wrapper .cart_item .product-subtotal {
    align-self: center;
    text-align: end;
  }
}

@media (max-width: 360px) {
  .woocommerce-cart .cart-wrapper .cart_item {
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    grid-template-areas: "image name remove" "image price price" "image quantity quantity" "image subtotal subtotal";
  }
}

.woocommerce-cart .cart-wrapper .cart_item .product-remove > a {
  position: static;
  margin: 0;
}

:is(.woocommerce-cart .cart-wrapper, form.checkout .woocommerce-checkout-review-order-table) .cart_item .quantity {
  display: inline-flex;
  width: auto;
  border: 1px solid var(--tc-border-3);
  border-radius: var(--tc-r-sm);
}

:is(.woocommerce-cart .cart-wrapper, form.checkout .woocommerce-checkout-review-order-table) .cart_item .quantity :is(.button, .qty) {
  min-width: 0;
  min-height: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none;
  line-height: 1;
}

:is(.woocommerce-cart .cart-wrapper, form.checkout .woocommerce-checkout-review-order-table) .cart_item .quantity .button {
  width: 32px;
  background: var(--tc-bg-soft);
  color: var(--tc-primary);
  font-size: 16px;
  font-weight: 600;
}

:is(.woocommerce-cart .cart-wrapper, form.checkout .woocommerce-checkout-review-order-table) .cart_item .quantity .button:hover {
  background: var(--tc-primary);
  color: #fff;
  box-shadow: none !important;
}

:is(.woocommerce-cart .cart-wrapper, form.checkout .woocommerce-checkout-review-order-table) .cart_item .quantity .qty {
  width: 40px !important;
  border-inline: 1px solid var(--tc-border) !important;
  color: var(--tc-text);
}

.woocommerce-cart .woocommerce > .text-center:has(.wc-empty-cart-message) {
  max-width: 540px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 44px);
}

.woocommerce-cart .wc-empty-cart-message .message-wrapper {
  margin: 0 0 16px;
  padding: 0;
  color: var(--tc-text-2);
}

.woocommerce-cart .wc-empty-cart-message + .return-to-shop,
.woocommerce-cart .return-to-shop > a {
  margin: 0;
}

/* Dùng chung cách trình bày nút áp mã ở giỏ hàng và thanh toán. */
.woocommerce-cart #content .ux-cart-coupon button[name="apply_coupon"],
.woocommerce-checkout #content .tc-order-coupon button {
  width: auto;
  min-height: var(--tc-cart-control-height, 44px);
  padding: 0 16px !important;
  margin: 0;
  border: 1px solid var(--tc-primary);
  border-radius: var(--tc-r-sm);
  background: #fff;
  color: var(--tc-primary);
  font-size: var(--tc-cart-button-font-size);
  font-weight: 600;
  white-space: nowrap;
}

.woocommerce-checkout #content .tc-order-coupon button:hover,
.woocommerce-cart #content .ux-cart-coupon button[name="apply_coupon"]:hover {
  background: var(--tc-primary);
  color: #fff;
  box-shadow: none !important;
}

.woocommerce-checkout form.checkout .woocommerce-checkout-review-order-table .tc-order-coupon-row > td {
  padding: 2px 0;
}

.woocommerce-checkout form.checkout .woocommerce-checkout-review-order-table .order-total > :is(th, td) {
  border-top: 1px solid var(--tc-border);
  padding-top: 12px;
}

.woocommerce-checkout .tc-order-coupon-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.woocommerce-checkout .tc-order-coupon input {
  min-height: 44px;
  margin: 0;
  border-radius: var(--tc-r-sm);
}

.woocommerce-checkout .tc-order-coupon-status:not(:empty) {
  margin-top: 8px;
  font-size: 14px;
}

.woocommerce-checkout .tc-order-coupon:has(input[aria-invalid="true"]) .tc-order-coupon-status {
  color: var(--fs-color-alert);
}

/* Sidebar Tin tức. */
.blog-wrapper > .row:has(> .post-sidebar) {
  --tc-blog-gap: 24px;
}

.flatsome_recent_posts .post_comments:not(:has(a)) {
  display: none;
}

@media (min-width: 850px) {
  .blog-wrapper > .row:has(> .post-sidebar) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(256px, 24vw, 320px);
    gap: var(--tc-blog-gap);
    padding-inline: 15px;
  }

  .blog-wrapper > .row:has(> .post-sidebar) > .col {
    max-width: none;
    min-width: 0;
    padding-inline: 0;
    border: 0;
  }

  .blog-wrapper > .row.row-large:has(> .post-sidebar) {
    /* Match the visible card edges of the homepage's Flatsome row-small. */
    width: calc(100% - 19.6px);
    max-width: calc(var(--tc-blog-container-width, 1080px) - 27.1px);
    margin-inline: auto;
    padding-inline: 0;
  }
}

@media (max-width: 849px) {
  .blog-wrapper > .row.row-large:has(> .post-sidebar) > .col {
    padding-inline: 9.8px;
  }
}

@media (max-width: 767px) {
  .blog-wrapper > .row.row-large:has(> .post-sidebar) > .col {
    padding-inline: 7.5px;
  }
}

.blog-wrapper .post-sidebar .widget_product_categories {
  margin-bottom: 16px;
  overflow: hidden;
}

.blog-wrapper .post-sidebar .widget_product_categories .widget-title {
  padding: 12px 16px;
  text-align: start;
}

.blog-wrapper .post-sidebar .product-categories {
  height: auto;
  max-height: min(520px, 65vh);
  margin: 0;
  padding: 4px 12px;
}

.blog-wrapper .post-sidebar .product-categories li {
  position: relative;
  margin: 0;
  padding: 0;
}

.blog-wrapper .post-sidebar .widget_product_categories .product-categories li > a {
  display: block;
  width: auto;
  padding: 9px 4px;
  border: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.blog-wrapper .post-sidebar .product-categories .cat-parent > a {
  padding-inline-end: 36px !important;
}

.blog-wrapper .post-sidebar .product-categories .toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  min-height: 36px;
  margin: 0;
}

.blog-wrapper .post-sidebar .product-categories .children {
  margin: 0 0 8px 8px;
  padding: 0 0 0 10px;
  border-inline-start: 1px solid var(--tc-border);
}

.blog-wrapper .post-sidebar .widget_product_categories .children li {
  border: 0;
}

.blog-wrapper .post-sidebar .widget_product_categories .children li > a {
  padding-block: 6px;
}

/* Khoảng đệm và độ tương phản trên trang chi tiết sản phẩm. */
.single-product .shop-container .product .short-product-detail > .col-inner {
  padding: clamp(14px, 1.6vw, 22px);
}

/* Breadcrumb trên nền sáng của trang danh mục và chi tiết sản phẩm. */
:is(.shop-page-title:not(.dark), .single-product .product-breadcrumb-container) .breadcrumbs {
  color: var(--tc-text-2);
  font-size: 14px;
  line-height: 20px;
}

:is(.shop-page-title:not(.dark), .single-product .product-breadcrumb-container) .breadcrumbs a {
  color: inherit;
}

:is(.shop-page-title:not(.dark), .single-product .product-breadcrumb-container) .breadcrumbs a:hover,
.single-product .fundiin-custom :is(.category-list, .tag-list) .tieude {
  color: var(--tc-primary);
}

.single-product .fundiin-custom :is(.category-list, .tag-list) .tieude {
  margin-bottom: 6px;
}

.single-product .short-product-detail .specifications > .col-inner {
  padding: 16px;
}

.single-product .short-product-detail .specifications > .col-inner > .product-short-description::after {
  top: auto;
  bottom: 0;
  height: 10px;
  pointer-events: none;
}

.single-product .short-product-detail .btn-specification a {
  color: var(--tc-primary);
}

body select:focus,
body :is(#main, #header, .mfp-content, .baogia-popup) select:focus,
#main :is(.ux-cart-coupon #coupon_code, .tc-order-coupon #tc-order-coupon-code):focus {
  outline: none !important;
  border-color: var(--tc-primary);
  box-shadow: none;
}

/* Mỗi dòng sản phẩm trong tóm tắt thanh toán có khung riêng. */
form.checkout .woocommerce-checkout-review-order-table {
  border-collapse: separate;
  border-spacing: 0 8px;
  margin: 0;
}

form.checkout .checkout-sidebar {
  padding-bottom: 0;
}

form.checkout .woocommerce-checkout-review-order-table thead th {
  padding-block: 4px;
  border-bottom: 0;
}

form.checkout .woocommerce-checkout-review-order-table .cart_item > td {
  padding: 10px;
  border: 0;
  background: var(--tc-bg-soft-2);
  vertical-align: top;
}

form.checkout .woocommerce-checkout-review-order-table .cart_item .product-name {
  position: relative;
  padding-inline: 34px 8px;
  border-start-start-radius: var(--tc-r-lg);
  border-end-start-radius: var(--tc-r-lg);
}

form.checkout .woocommerce-checkout-review-order-table .cart_item .product-total {
  padding-inline-start: 4px;
  border-start-end-radius: var(--tc-r-lg);
  border-end-end-radius: var(--tc-r-lg);
}

form.checkout .tc-checkout-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

form.checkout .tc-checkout-thumbnail {
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-r-sm);
}

form.checkout .tc-checkout-item-name {
  font-weight: 600;
  line-height: 1.4;
}

form.checkout .tc-checkout-item-remove {
  position: absolute;
  inset-inline-start: 8px;
  top: 10px;
}

form.checkout .tc-checkout-item-remove .remove-product {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--tc-bg-soft);
  color: var(--tc-text-2);
  line-height: 1;
}

form.checkout .tc-checkout-item-remove .remove-product:hover {
  color: var(--tc-secondary);
}

form.checkout .woocommerce-checkout-review-order-table .cart_item dl.variation {
  margin: 4px 0 0 54px;
}

form.checkout .woocommerce-checkout-review-order-table .cart_item .quantity {
  margin: 0;
  vertical-align: top;
}

form.checkout .woocommerce-checkout-review-order-table .cart_item .quantity :is(.button, .qty) {
  min-height: 30px;
  height: 30px;
}

form.checkout .woocommerce-checkout-review-order-table .cart_item .quantity .button {
  width: 28px;
}

form.checkout .woocommerce-checkout-review-order-table .cart_item .quantity .qty {
  width: 32px !important;
}

form.checkout .woocommerce-checkout-review-order-table .cart_item .quantity .minus {
  border-start-start-radius: var(--tc-r-xs) !important;
  border-end-start-radius: var(--tc-r-xs) !important;
}

form.checkout .woocommerce-checkout-review-order-table .cart_item .quantity .plus {
  border-start-end-radius: var(--tc-r-xs) !important;
  border-end-end-radius: var(--tc-r-xs) !important;
}

form.checkout .tc-checkout-line-subtotal {
  display: block;
  margin-top: 5px;
  color: var(--tc-primary);
  font-weight: 700;
}

form.checkout .woocommerce-checkout-review-order-table .order-total .amount {
  font-size: 18px;
}

@media (max-width: 549px) {
  form.checkout .woocommerce-checkout-review-order-table .cart_item .quantity :is(.button, .qty) {
    min-height: 34px;
    height: 34px;
  }

  form.checkout .tc-checkout-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  form.checkout .woocommerce-checkout-review-order-table .cart_item dl.variation {
    margin-inline-start: 0;
  }
}

/* Trạng thái focus trên trang thanh toán. */
body.woocommerce-checkout :is(a, button, input, select, textarea, [tabindex]):focus,
body.woocommerce-checkout :is(#main, #header, .mfp-content, .baogia-popup) :focus-visible {
  outline: none !important;
}

body.woocommerce-checkout #main :is(
  input:not([type="button"], [type="submit"], [type="checkbox"], [type="radio"]),
  select, textarea, .select2-selection
):focus,
body.woocommerce-checkout #main :is(.select2-container--focus, .select2-container--open) .select2-selection {
  border-color: var(--tc-primary);
  box-shadow: none;
}

body.woocommerce-checkout :is(button, .button, input[type="button"], input[type="submit"], input[type="checkbox"], input[type="radio"]):focus-visible {
  box-shadow: inset 0 0 0 2px currentColor;
}

body.woocommerce-checkout a:not(.button):focus-visible {
  text-decoration: underline;
}

/* Cả cụm số lượng dùng một đường viền khi focus. */
body.woocommerce-checkout #main .checkout-sidebar .cart_item .quantity:focus-within {
  border-color: var(--tc-primary);
}

body.woocommerce-checkout #main .checkout-sidebar .cart_item .quantity input:focus {
  outline: none !important;
  box-shadow: none !important;
}

body.woocommerce-checkout #main .checkout-sidebar .cart_item .quantity .button:focus-visible {
  background: var(--tc-primary);
  color: #fff;
}

/* Danh sách báo giá dùng chung nhịp viền và nút với giỏ hàng. */
body .baogia-popup .baogia-content:has(> .baogia-list) {
  --tc-quote-padding: clamp(12px, 2vw, 20px);
  --tc-quote-row-inset: 8px;
  width: min(680px, calc(100% - 24px));
  max-width: none;
}

body .baogia-popup .baogia-content:has(> .baogia-list) > :is(.baogia-header, .baogia-list, .baogia-actions) {
  padding: 12px var(--tc-quote-padding);
}

body .baogia-popup .baogia-list .baogia-group {
  margin-bottom: 8px;
  padding: 10px;
  border-color: var(--tc-border);
  border-radius: var(--tc-r-lg);
  box-shadow: none;
}

body .baogia-popup .baogia-list .baogia-group:last-child { margin-bottom: 0; }

body .baogia-popup .baogia-list .hinhvaten {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
}

body .baogia-popup .baogia-list .hinhvaten img {
  width: 48px;
  height: 48px;
  border-color: var(--tc-border);
  border-radius: var(--tc-r-sm);
}

body .baogia-popup .baogia-list .baogia-info > a {
  color: var(--tc-text);
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body .baogia-popup .baogia-list .baogia-item {
  padding-inline: var(--tc-quote-row-inset);
  border-color: var(--tc-border);
  border-radius: var(--tc-r-md);
}

body .baogia-popup .baogia-list .baogia-qty-wrapper {
  /* Match the padding and border on the variation rows. */
  margin-inline-end: calc(var(--tc-quote-row-inset) + 1px);
  column-gap: 6px !important;
}

body .baogia-popup .baogia-list .baogia-variant-name {
  overflow-wrap: anywhere;
}

body .baogia-popup .baogia-list .baogia-qty {
  width: 64px;
  height: 36px;
  margin: 0;
  padding-inline: 10px 6px;
  border: 1px solid var(--tc-border-3) !important;
  border-radius: var(--tc-r-sm) !important;
  text-align: start;
}

body .baogia-popup .baogia-list .baogia-qty:focus {
  outline: none !important;
  border-color: var(--tc-primary) !important;
  box-shadow: none;
}

body .baogia-popup .baogia-list .baogia-remove {
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--tc-secondary);
}

body .baogia-popup .baogia-actions {
  flex-flow: row wrap;
  align-items: center;
  gap: 8px 12px;
}

body .baogia-popup .baogia-actions .btn-xuatfile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--tc-primary);
  color: #fff !important;
  font-weight: 700;
}

body .baogia-popup .baogia-actions .baogia-clearall {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: var(--tc-r-md);
}

body .baogia-popup .baogia-actions .baogia-clearall:hover {
  background-color: var(--tc-bg-soft-2);
}

@media (max-width: 600px) {
  body .baogia-popup .baogia-content:has(> .baogia-list) {
    max-height: calc(100dvh - 32px);
  }

  body .baogia-popup .baogia-list .hinhvaten {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
  }

  body .baogia-popup .baogia-list .hinhvaten img {
    width: 44px;
    height: 44px;
  }

  body .baogia-popup .baogia-list .baogia-info:has(.baogia-qty-wrapper) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px !important;
  }

  body .baogia-popup .baogia-list .baogia-qty-wrapper {
    justify-self: end;
  }

  body .baogia-popup .baogia-list :is(.baogia-qty, .baogia-remove) {
    min-height: 44px;
  }

  body .baogia-popup .baogia-list .baogia-remove {
    width: 44px;
  }

  body .baogia-popup .baogia-actions .baogia-clearall {
    padding-inline: 8px;
    font-size: 13px;
  }
}

/* Sản phẩm khác dùng cùng khung và tiêu đề với các khối trang chủ. */
.single-product .shop-container .product :is(.short-product-detail, .des-product-detail, .technique-parameter, .related-product-detail) {
  padding-bottom: var(--tc-section-gap) !important;
}

.single-product .des-product-detail > .col-inner > :is(.woocommerce-tabs, .row):last-child,
.single-product .des-product-detail > .col-inner > .row:last-child > .col {
  padding-bottom: 0;
}

.single-product .des-product-detail :is(#youtube-gallery-container, .yottie-widget-inner, .yottie-widget-feed-section) {
  margin-bottom: 0;
}

.single-product .des-product-detail .yottie-widget-feed-section-pagination:empty {
  display: none;
}

.single-product .related-product-detail {
  margin-block: 0 !important;
}

.single-product .shop-container .product .related-product-detail > .col-inner {
  padding: 0;
  border-radius: var(--tc-r-lg);
  box-shadow: 0 2px 8px rgba(7, 37, 113, .04);
}

.single-product .related-product-detail .product-section-title-related {
  margin: 0;
  padding: 12px clamp(12px, 2vw, 20px);
  border-bottom: 1px solid var(--tc-border);
  color: var(--tc-primary);
  font-size: clamp(16px, 2vw, 20px);
  line-height: var(--tc-leading-tight);
  text-transform: none;
}

.single-product .related-product-detail .row-slider {
  width: auto;
  margin: 0 10px;
  padding-top: 20px;
}

@media (max-width: 767px) {
  .single-product .shop-container {
    --tc-product-detail-padding: 12px;
  }

  .single-product .shop-container .product :is(.short-product-detail, .des-product-detail, .technique-parameter) > .col-inner {
    padding: var(--tc-product-detail-padding);
  }

  .single-product .des-product-detail .woocommerce-tabs.container {
    padding-inline: 0;
  }

  .single-product .short-product-detail :is(.specifications-title, .specifications),
  .single-product .short-product-detail .specifications-title > .col-inner {
    padding: 0;
  }

  .single-product .short-product-detail .specifications > .col-inner {
    padding: var(--tc-product-detail-padding);
  }

  .single-product .related-product-detail .product-section-title-related {
    padding-inline: var(--tc-product-detail-padding);
  }

  .single-product .related-product-detail .row-slider {
    margin-inline: 5px;
    padding-top: var(--tc-product-detail-padding);
  }

}

@media (max-width: 849px) {
  body:has(.mfp-wrap.mfp-ready #main-menu) .shownutbaogia,
  #main-menu .nav-sidebar > .ltbg-pc-quote,
  #main-menu .nav-sidebar > .html_top_right_text:empty,
  #main-menu .nav-sidebar > .header-block:has(.header-block-block-1) {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .viewed-products:has(#htw-recently--wrap):not(:has(#htw-recently--wrap .product-small)),
  #htw-recently--wrap:not(:has(.product-small)) {
    display: none;
  }

  #htw-recently--wrap .section-title-container {
    margin-bottom: 0;
  }

  #htw-recently--wrap .section-title-normal {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 12px;
  }

  #htw-recently--wrap .section-title-normal .section-title-main {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border-bottom: 0 !important;
    color: var(--tc-primary);
    font-size: 16px;
    line-height: var(--tc-leading-tight);
    text-transform: none;
  }

  #htw-recently--wrap .section-title-normal > a {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    font-size: 12px;
    text-transform: none;
    white-space: nowrap;
  }
}

/* Giỏ hàng mobile chỉ cuộn danh sách sản phẩm. */
@media (max-width: 849px) {
  body .mfp-content.off-canvas-cart {
    background: #fff !important;
    overflow: hidden;
  }

  body:has(.mfp-ready .off-canvas-cart #cart-popup) :is(.shownutbaogia, .letu-nav) {
    display: none !important;
  }

  .off-canvas-cart #cart-popup {
    --tc-cart-drawer-header: 52px;
    height: 100%;
    background: #fff;
  }

  .off-canvas-cart #cart-popup .cart-popup-inner {
    height: 100%;
    min-height: 0;
    padding: 0;
  }

  .off-canvas-cart #cart-popup .cart-popup-title {
    display: grid;
    place-items: center;
    flex: 0 0 var(--tc-cart-drawer-header);
    padding: 0 44px;
    border-bottom: 1px solid var(--tc-border);
    color: var(--tc-primary);
    font-weight: 700;
  }

  .off-canvas-cart #cart-popup .cart-popup-title .heading-font,
  .off-canvas-cart #cart-popup .mini_cart_item > a:not(.remove) {
    color: var(--tc-primary);
  }

  .off-canvas-cart #cart-popup > .mfp-close {
    position: absolute;
    top: calc(var(--tc-cart-drawer-header) / 2) !important;
    left: 8px;
    right: auto;
    width: 36px;
    height: 36px;
    min-height: 0;
    padding: 0;
    transform: translateY(-50%);
    line-height: 1;
    color: var(--tc-text-2) !important;
    background: transparent;
  }

  .off-canvas-cart #cart-popup > .mfp-close svg {
    width: 17px;
    height: 17px;
  }

  .off-canvas-cart #cart-popup .cart-popup-title .is-divider {
    display: none;
  }

  .off-canvas-cart #cart-popup :is(.widget_shopping_cart, .widget_shopping_cart_content) {
    min-height: 0;
    margin: 0;
  }

  .off-canvas-cart #cart-popup .woocommerce-mini-cart.cart_list {
    min-height: 0;
    margin: 0;
    padding: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .off-canvas-cart #cart-popup .woocommerce-mini-cart.cart_list > li {
    flex-shrink: 0;
  }

  .off-canvas-cart #cart-popup .mini_cart_item:has(> a:not(.remove)) > :is(.variation, .quantity, .ux-mini-cart-qty) {
    margin-inline-start: 66px;
  }

  .off-canvas-cart #cart-popup .mini_cart_item > .variation {
    margin-block: 4px 0;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .off-canvas-cart #cart-popup .ux-mini-cart-footer {
    position: static;
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 12px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--tc-border);
    background: #fff;
  }

  .off-canvas-cart #cart-popup .woocommerce-mini-cart__total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 8px;
    margin: 0 0 8px;
    padding: 4px 0 8px;
    border: 0;
  }

  .off-canvas-cart #cart-popup .woocommerce-mini-cart__total strong {
    color: var(--tc-text-2);
    font-size: 14px;
    font-weight: 600;
  }

  .off-canvas-cart #cart-popup .woocommerce-mini-cart__total .amount {
    color: var(--tc-primary);
    font-size: 16px;
    font-weight: 700;
  }

  .off-canvas-cart #cart-popup .woocommerce-mini-cart__buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
  }

  .off-canvas-cart #cart-popup .woocommerce-mini-cart__buttons .button {
    display: grid;
    place-items: center;
    min-height: 44px;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--tc-primary);
    border-radius: var(--tc-r-sm);
    background: #fff !important;
    color: var(--tc-primary);
    font-size: var(--tc-cart-button-font-size);
    line-height: 1.25;
    text-align: center;
  }

  .off-canvas-cart #cart-popup .woocommerce-mini-cart__buttons .checkout {
    border-color: var(--tc-secondary);
    background: var(--tc-secondary) !important;
    color: #fff;
  }
}

/* Trạng thái không có kết quả và trang 404. */
.tc-empty-page {
  padding-block: clamp(24px, 4vw, 52px);
}

.tc-empty-state {
  padding: clamp(26px, 5vw, 58px) clamp(14px, 4vw, 40px);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.tc-empty-state__marker {
  margin-bottom: 12px;
  color: var(--tc-primary);
  font-size: 28px;
  line-height: 1;
}

.tc-empty-page .tc-empty-state__marker {
  font-size: clamp(72px, 10vw, 112px);
  font-weight: 700;
  letter-spacing: -.06em;
}

.tc-empty-state :is(h1, h2) {
  margin: 0 0 6px;
  color: var(--tc-text);
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.3;
}

.tc-empty-state p {
  max-width: 48ch;
  margin: 0 auto 18px;
  color: var(--tc-text-2);
  font-size: 14px;
  line-height: 1.5;
}

.tc-empty-state__search {
  display: flex;
  gap: 4px;
  max-width: 430px;
  margin: 0 auto;
  padding: 4px;
  border: 1px solid var(--tc-border);
  border-radius: 10px;
  background-color: var(--tc-bg-soft-2);
}

.tc-empty-state__search:focus-within {
  border-color: var(--tc-primary);
}

#main .tc-empty-state__search input[type="search"] {
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding-inline: 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}

body #main .tc-empty-state__search input[type="search"]:focus-visible {
  outline: none !important;
}

.tc-empty-state__search button {
  flex: none;
  min-height: 40px;
  margin: 0;
  padding-inline: 12px;
  border-radius: 6px;
  background-color: var(--tc-primary);
  color: #fff;
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
}

.tc-empty-state__search button:hover {
  background-color: var(--tc-navy-9);
}

.tc-empty-state__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 16px;
  font-size: 13px;
}

.tc-empty-state__links a {
  color: var(--tc-primary);
  font-weight: 600;
}

.tc-empty-state__links a:hover {
  text-decoration: underline;
}

/* Trạng thái trống của mini-cart (dropdown header và drawer mobile). */
:is(#header .cart-item .nav-dropdown, .off-canvas-cart #cart-popup) .ux-mini-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 12px !important;
}

.off-canvas-cart #cart-popup .ux-mini-cart-empty {
  margin: auto 0;
  padding: 28px 16px !important;
}

:is(#header .cart-item .nav-dropdown, .off-canvas-cart #cart-popup) .ux-mini-cart-empty-icon {
  line-height: 1;
}

:is(#header .cart-item .nav-dropdown, .off-canvas-cart #cart-popup) .ux-mini-cart-empty-icon svg {
  width: auto;
  height: 36px !important;
  color: var(--tc-primary);
  opacity: .85 !important;
}

:is(#header .cart-item .nav-dropdown, .off-canvas-cart #cart-popup) .woocommerce-mini-cart__empty-message {
  margin: 0;
  color: var(--tc-text-2);
  font-size: 14px;
  line-height: 1.5;
}

:is(#header .cart-item .nav-dropdown, .off-canvas-cart #cart-popup) .ux-mini-cart-empty .return-to-shop {
  margin: 4px 0 0;
}

:is(#header .cart-item .nav-dropdown, .off-canvas-cart #cart-popup) .ux-mini-cart-empty .return-to-shop > a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: var(--tc-r-sm);
  background-color: var(--tc-primary) !important;
  color: #fff;
  font-size: var(--tc-cart-button-font-size);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none !important;
}

:is(#header .cart-item .nav-dropdown, .off-canvas-cart #cart-popup) .ux-mini-cart-empty .return-to-shop > a.button:hover {
  background-color: var(--tc-navy-9) !important;
  color: #fff;
}

/* Đánh giá sản phẩm. */
.single-product #reviews {
  flex-direction: row;
  row-gap: 16px;
  margin-inline: 0;
}

.single-product #reviews > .col {
  padding: 0;
}

.single-product #reviews :is(#comments, #review_form_wrapper) {
  flex-basis: 100%;
  max-width: 100%;
}

.single-product #reviews .review-form-inner,
.single-product #reviews #respond {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.single-product #reviews #review_form_wrapper {
  padding-top: 16px;
  border-top: 1px solid var(--tc-border);
}

.single-product #reviews :is(.woocommerce-Reviews-title, #reply-title) {
  margin: 0 0 8px;
  color: var(--tc-text);
  font-size: 17px;
  line-height: 1.4;
}

.single-product #reviews .woocommerce-noreviews {
  margin: 0;
  color: var(--tc-text-2);
  font-size: 14px;
}

.single-product #reviews .comment-form label {
  color: var(--tc-text);
  font-size: 13px;
  font-weight: 600;
}

.single-product #reviews .comment-form :is(textarea, input:not([type="submit"])) {
  border-radius: 8px;
  background-color: var(--tc-bg-soft-2);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}

.single-product #reviews .comment-form :is(textarea, input:not([type="submit"])):focus {
  border-color: var(--tc-primary);
  outline: none !important;
  background-color: #fff;
  box-shadow: 0 0 0 2px var(--tc-bg-soft);
}

.single-product #reviews .comment-form textarea {
  width: 100%;
  min-height: 100px;
  height: 100px;
  padding: 10px 12px;
  resize: vertical;
}

.single-product #reviews #submit {
  margin: 0;
  padding-inline: 16px;
  border-radius: var(--tc-r-md);
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
}

.single-product #reviews p.stars {
  margin: 4px 0 12px;
}

.single-product #reviews p.stars > span {
  gap: 2px;
}

.single-product #reviews p.stars a {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 40px;
  margin: 0;
  border: 0;
  background: transparent;
  font-size: 0;
}

.single-product #reviews p.stars a:focus-visible {
  outline: 1px solid var(--tc-primary) !important;
  outline-offset: 1px;
}

.single-product #reviews p.stars a::after {
  margin: 0;
  content: "☆";
  color: #627084;
  font-family: Arial, sans-serif;
  font-size: 19px;
  line-height: 1;
}

.single-product #reviews p.stars a:is(:hover, :focus-visible)::after,
.single-product #reviews p.stars a:has(~ a:is(:hover, :focus-visible))::after,
.single-product #reviews p.stars:not(:has(a:is(:hover, :focus-visible))) a:is(.active, :has(~ a.active))::after {
  content: "★";
  color: #a46200;
}

/* Tiêu đề và khung ngoài của các section nội dung. */
#main :is(.section-title, .section-title-main, .page-title, .entry-title,
          .tc-shop-title, .product-section-title, .tc-cart-heading),
#footer .viewed-products :is(.section-title, .section-title-main),
#main form.checkout :is(#order_review_heading, .woocommerce-billing-fields > h3,
                        .woocommerce-shipping-fields > h3, .woocommerce-additional-fields > h3),
#main .tc-contact-head h2 {
  text-transform: none;
}

#main :is(.short-product-detail, .des-product-detail,
          .related-product-detail, .technique-parameter) > .col-inner,
#main .row-trangchu > .col > .col-inner,
#main .home-top-row .dm-noibat > .col-inner,
#main .row-video-home > .col > .col-inner,
#footer #htw-recently--wrap .row-trangchu > .col > .col-inner,
.tc-policy-page #content > .row-main > .col > .col-inner,
#main :is(#post-list, .page-inner, .blog-single article.post, .blog-single #comments .comment-respond,
          .up-sells.upsells.products, .tc-about-reg-item, .tc-about-body, .tc-about-products,
          .tc-about-close, .tc-contact-card, .tc-contact-map, .flatsome_recent_posts, .tc-empty-state),
#main :is(.danh-muc-home, .detail-category-sidebar) .sidebar-wrapper,
#main :is(#shop-sidebar, .post-sidebar, .page-right-sidebar) .widget_product_categories,
#main .category-page-row .widget.widget_layered_nav,
#main .category-page-row > .col:has(> .shop-container),
.woocommerce-account #main #content .account-container,
.woocommerce-cart #main :is(.cart-wrapper, .cart-sidebar, .cart-collaterals > .col-inner,
                           .text-center:has(.wc-empty-cart-message)),
#main form.checkout #customer_details,
.woocommerce-checkout #main form.checkout .row.pt-0 > .col:last-child .col-inner:has(> .checkout-sidebar) {
  border: 1px solid var(--tc-section-border);
  border-radius: var(--tc-r-lg);
}

.woocommerce-account #main #content .account-container {
  padding: var(--tc-section-gap);
  background: #fff;
}

/* Thu gọn khoảng cách giữa icon và chữ ở khối Liên hệ trong footer. */
#footer .icon-box-left .icon-box-img + .icon-box-text {
  padding-left: 8px;
}

/* Trang chi tiết bài viết. */
#content.blog-single article.post {
  margin-bottom: 0;
  padding: var(--tc-section-gap);
}

.blog-single > .row {
  row-gap: var(--tc-section-gap);
}

.blog-single > .row::after {
  display: none;
}

.blog-single > .row > .col {
  padding-bottom: 0;
}

.blog-single .post-sidebar .widget:last-child {
  margin-bottom: 0;
}

.blog-single #comments:not(:has(> *)) {
  display: none;
}

@media (max-width: 767px) {
  #main > #content.blog-single {
    padding-bottom: var(--tc-section-gap) !important;
  }
}

.single-post #footer > .section.viewed-products:first-child {
  padding-top: 0;
}

.blog-single .entry-header-text-top {
  padding: 0 0 14px;
}

.blog-single .entry-title {
  margin-bottom: 8px;
  color: var(--tc-primary);
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.3;
}

.blog-single .entry-content {
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.blog-single .blog-share {
  margin-top: 24px;
}

.blog-single .blog-share > .is-divider {
  width: 100%;
  max-width: none;
  height: 1px;
  margin: 0 0 16px;
  background-color: var(--tc-border);
}

.blog-single .blog-share .share-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.blog-single .blog-share .share-icons .button.icon.is-outline {
  display: inline-grid;
  place-items: center;
  width: 40px;
  min-width: 0;
  height: 40px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-r-md);
  background-color: var(--tc-bg-soft-2);
  color: var(--tc-primary);
}

.blog-single .blog-share .share-icons .button.icon.is-outline > i {
  margin: 0;
  font-size: 16px;
  line-height: 1;
}

.blog-single .blog-share .share-icons .button.icon.is-outline:hover {
  border-color: var(--tc-primary) !important;
  background-color: var(--tc-primary) !important;
  color: #fff !important;
}

.blog-single .entry-meta {
  margin-top: 18px;
  padding: 14px 0 0;
  border-top: 1px solid var(--tc-border);
  border-bottom: 0;
  color: var(--tc-text-2);
  font-size: 13px;
}

.blog-single .entry-author {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-r-md);
  background: var(--tc-bg-soft-2);
}

.blog-single .navigation-post {
  margin-top: 16px;
  padding: 12px 0 0;
  border-top: 1px solid var(--tc-border);
  border-bottom: 0;
}

.blog-single #comments .comment-respond {
  margin-top: var(--tc-section-gap);
  padding: var(--tc-section-gap);
  background: #fff;
}
