/*
Theme Name: Vua Đồ Câu
Theme URI: https://vuadocau.com
Author: DevVN
Author URI: https://levantoan.com
Description: Theme WordPress chính thức cho website Vua Đồ Câu — cửa hàng đồ câu chính hãng. Tích hợp WooCommerce, ACF/SCF Flexible Content, theme options, widget footer động.
Version: 1.0.1
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vuadocau
Tags: e-commerce, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* =========================================================================
   WordPress integration overrides (appended to main brand CSS in css/style.css)
   ========================================================================= */

/* Admin bar offset */
body.admin-bar {
  padding-top: 0;
}
@media (max-width: 782px) {
  body.admin-bar {
    padding-top: 0;
  }
}

/* Default WP/Gutenberg content wrapper (the_content output) */
.entry-content {
  word-wrap: break-word;
}
.entry-content > *:first-child {
  margin-top: 0;
}
.entry-content > *:last-child {
  margin-bottom: 0;
}
.entry-content p {
  margin: 0 0 1em;
  line-height: 1.7;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin: 1.5em 0 0.6em;
  line-height: 1.3;
}
.entry-content h2 {
  font-size: 22px;
}
.entry-content h3 {
  font-size: 18px;
}
.entry-content h4 {
  font-size: 16px;
}
.entry-content ul,
.entry-content ol {
  margin: 0 0 1em;
  padding-left: 22px;
  list-style: revert;
}
.entry-content li {
  margin-bottom: 0.4em;
}
.entry-content img {
  height: auto;
  max-width: 100%;
  border-radius: 8px;
}
.entry-content a {
  color: var(--green);
  text-decoration: underline;
}
.entry-content blockquote {
  margin: 1em 0;
  padding: 0.6em 1em;
  border-left: 4px solid var(--green);
  background: var(--green-light);
  color: var(--text-2);
  font-style: italic;
}
.entry-content blockquote > :last-child {
  margin-bottom: unset;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
.entry-content table th,
.entry-content table td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
}
.entry-content .aligncenter {
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.entry-content .alignleft {
  float: left;
  margin: 0 1.2em 0.6em 0;
}
.entry-content .alignright {
  float: right;
  margin: 0 0 0.6em 1.2em;
}
.entry-content .wp-caption,
.entry-content figure {
  max-width: 100%;
  margin: 1em 0;
}
.entry-content .wp-caption-text,
.entry-content figcaption {
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
  margin-top: 6px;
}

/* WooCommerce safety nets */
.woocommerce-page img {
  height: auto;
}
.header img.logo-img,
body .header .logo img {
  height: auto;
  max-height: 50px;
  width: auto;
}

/* Hide WC default messages inside our mini cart drawer (they appear in main shop area) */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 8px;
}

/* Mini cart drawer integration (WC) */
#cartDrawer .widget_shopping_cart_content {
  padding: 12px;
}
#cartDrawer .woocommerce-mini-cart {
  list-style: none;
  padding: 0;
  margin: 0;
}
#cartDrawer .woocommerce-mini-cart li.mini_cart_item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
#cartDrawer .woocommerce-mini-cart li.mini_cart_item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}
#cartDrawer .woocommerce-mini-cart li.mini_cart_item a:not(.remove) {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  flex: 1;
}
#cartDrawer .woocommerce-mini-cart li.mini_cart_item .quantity {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}
#cartDrawer .woocommerce-mini-cart li.mini_cart_item .remove {
  position: absolute;
  top: 10px;
  right: 0;
  color: #999;
  font-size: 16px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
}
#cartDrawer .woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
#cartDrawer .woocommerce-mini-cart__buttons.buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
#cartDrawer .woocommerce-mini-cart__buttons a {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}
#cartDrawer .woocommerce-mini-cart__buttons a.button {
  background: #fff;
  border: 1px solid var(--green);
  color: var(--green);
}
#cartDrawer .woocommerce-mini-cart__buttons a.checkout {
  background: var(--green);
  color: #fff;
}
#cartDrawer .woocommerce-mini-cart__empty-message {
  padding: 30px 12px;
  text-align: center;
  color: var(--text-3);
}

/* =========================================================================
   WooCommerce product loop → match the static `.product` mockup
   -------------------------------------------------------------------------
   WC renders each card with its OWN native markup/classes (no .product-img /
   .product-info wrappers). We restyle those native classes to look like the
   design. Structure produced by content-product.php:

     article.product (or li.product)
       a.woocommerce-loop-product__link  (wraps image + title + price)
         span.onsale
         img.attachment-woocommerce_thumbnail
         h2.woocommerce-loop-product__title
         span.price  ( .amount / del / ins )
       [.star-rating]
       a.button.add_to_cart_button
   ========================================================================= */

/* ----- Grid wrapper (non-slider). Slider uses .vdc-products-slider + owl ----- */
ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
ul.products::before,
ul.products::after {
  content: none !important;
  display: none !important;
} /* kill WC clearfix */
ul.products.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}
ul.products.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}
ul.products.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}
ul.products.columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

/* ----- Card container ----- */
ul.products li.product,
.vdc-products-slider .product {
  width: auto;
  float: none;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.18s;
  text-align: left;
}
.woocommerce span.onsale {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
  min-height: unset;
  line-height: 1.5;
  min-width: unset;
  letter-spacing: unset;
}
ul.products li.product::before,
ul.products li.product::after {
  content: none;
}
ul.products li.product:hover,
.vdc-products-slider .product:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* ----- Link (image + title + price) ----- */
.product a.woocommerce-loop-product__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
}

/* ----- Image ----- */
.product a.woocommerce-loop-product__link img,
.product img.attachment-woocommerce_thumbnail {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  margin: 0;
  transition: transform 0.3s;
}

/* ----- Sale flash → badge top-left ----- */
.product .onsale {
  position: absolute;
  top: 8px;
  left: 8px;
  margin: 0;
  min-height: 0;
  min-width: 0;
  padding: 4px 8px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 4px;
  z-index: 2;
}

/* ----- Title ----- */
.product .woocommerce-loop-product__title {
  margin: 0;
  padding: 12px 14px 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.35em + 12px);
}
.product:hover .woocommerce-loop-product__title {
  color: var(--green);
}
.woocommerce .products .star-rating {
  margin-bottom: unset;
  font-size: 11px;
}
.woocommerce .star-rating span::before {
  font-size: 11px;
}
/* ----- Price ----- */
.product .price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
}
.product .price .amount {
  color: inherit;
}
.product .price ins {
  text-decoration: none;
  color: var(--red);
  order: 1;
}
.product .price del {
  color: var(--text-3);
  opacity: 1;
  font-weight: 400;
  font-size: 12.5px;
  order: 2;
}
.product .price del .amount {
  color: var(--text-3);
}

/* ----- Star rating ----- */
.product .star-rating {
  margin: 0 14px 10px;
  font-size: 14px;
  color: #f7b500;
}

/* ----- Add to cart / choose options button ----- */
.product .button,
.product a.add_to_cart_button,
.product a.added_to_cart {
  display: block;
  margin: 0 14px 14px;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}
.product .button:hover,
.product a.add_to_cart_button:hover,
.product a.added_to_cart:hover {
  background: var(--green-dark);
  color: #fff;
}
.product a.added_to_cart {
  background: var(--green-dark);
}
.product .button.loading {
  opacity: 0.7;
}

/* ----- Owl nav for our product sliders (mirror .product-slider styling) ----- */
.vdc-products-slider .owl-nav {
  margin: 0 !important;
}
.vdc-products-slider .owl-nav button {
  position: absolute;
  top: 38%;
  transform: translateY(-50%) scale(0.95);
  width: 38px;
  height: 38px;
  background: #fff !important;
  color: var(--green-dark) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  border: 1px solid var(--line) !important;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.2s,
    color 0.2s;
  z-index: 5;
}
.vdc-products-slider:hover .owl-nav button,
.hot-tabs:hover .vdc-products-slider .owl-nav button {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.vdc-products-slider .owl-nav button:hover {
  background: var(--green) !important;
  color: #fff !important;
}
.vdc-products-slider .owl-nav .owl-prev {
  left: -16px;
}
.vdc-products-slider .owl-nav .owl-next {
  right: -16px;
}
.vdc-products-slider .owl-nav button.disabled {
  opacity: 0 !important;
  pointer-events: none;
}

/* ----- Responsive grid ----- */
@media (max-width: 1024px) {
  ul.products,
  ul.products.columns-5,
  ul.products.columns-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 678px) {
  ul.products,
  ul.products.columns-5,
  ul.products.columns-4,
  ul.products.columns-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product .woocommerce-loop-product__title {
    font-size: 12.5px;
  }
  .products .item.product .price {
    font-size: 12px;
    padding-bottom: 5px;
    gap: 1px;
  }
  .product .price {
    font-size: 14px;
    padding-bottom: 12px;
  }
  .vdc-products-slider .owl-nav button {
    width: 28px;
    height: 28px;
    opacity: 1;
  }
  .vdc-products-slider .owl-nav .owl-prev {
    left: 2px;
  }
  .vdc-products-slider .owl-nav .owl-next {
    right: 2px;
  }
}

/* Footer widget areas — match theme footer columns */
.footer .widget {
  margin: 0 0 0 0;
}
.footer .footer-col .widget_nav_menu ul,
.footer .footer-col .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer .footer-col .widget_nav_menu li a,
.footer .footer-col .widget li a {
  display: block;
  padding: 4px 0;
  color: rgba(0, 0, 0, 0.75);
}
.footer .footer-col .widget_nav_menu li a:hover,
.footer .footer-col .widget li a:hover {
  color: var(--green);
}
.footer .footer-col h3.widget-title,
.footer .footer-col .widget-title {
  display: block;
  margin: 0 0 12px;
  font-size: 14px;
  text-transform: uppercase;
  color: #000;
  font-weight: 700;
}

/* Search-form fallback */
.search-form-wrap {
  width: 100%;
}
body.search {
  max-width: 100%;
}
/* No-results / 404 */
.page-empty {
  max-width: 600px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}
.page-empty h1 {
  font-size: 56px;
  color: var(--green);
  margin-bottom: 16px;
}
.page-empty p {
  color: var(--text-2);
  margin-bottom: 20px;
}
.page-empty .btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
}

/* Single page / post wrapper */
.single-wrap {
  max-width: var(--container);
  margin: 24px auto;
  padding: 0 20px;
}
.single-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.single-card .post-title {
  font-size: 26px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.single-card .post-meta {
  color: var(--text-3);
  font-size: 13px;
  margin-bottom: 18px;
}
.single-card .post-thumb {
  margin-bottom: 18px;
  border-radius: 8px;
  overflow: hidden;
}
.single-card .post-thumb img {
  width: 100%;
  height: auto;
}

/* Archive list */
.archive-grid {
  max-width: var(--container);
  margin: 24px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Page title */
.page-banner {
  background: var(--bg);
  padding: 20px 0;
  margin-bottom: 24px;
}
.page-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.page-banner h1 {
  font-size: 22px;
  color: var(--green-dark);
}
.page-banner .breadcrumb,
.page-banner .woocommerce-breadcrumb {
  font-size: 13px;
  color: var(--text-3);
}
.page-banner .breadcrumb a,
.page-banner .woocommerce-breadcrumb a {
  color: var(--green);
}

/* SVG icon wrapper (admin pasted raw <svg>) */
.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.svg-icon svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

/* Search no-results */
.search-no-results {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}
.search-no-results h2 {
  margin-bottom: 12px;
}
.search-no-results .search-form {
  margin: 18px 0;
}
.item.product .product-img:hover .button.product_type_variable,
.item.product .product-img:hover .button.product_type_simple,
.item.product .product-img:hover .button.add_to_cart_button {
  opacity: 1;
  pointer-events: all;
}
.item.product .product-img .button.product_type_variable,
.item.product .product-img .button.product_type_simple,
.item.product .product-img .button.add_to_cart_button {
  margin: unset;
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 5px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s all ease;
}

.item.product .product-img .button.product_type_variable,
.item.product .product-img .button.product_type_simple {
  background: var(--green-dark);
}

.item.product .product-img .button.add_to_cart_button svg,
.item.product .product-img .button.product_type_variable svg,
.item.product .product-img .button.product_type_simple svg {
  stroke: #fff;
}

.product-meta .rating-count {
  font-style: italic;
  position: relative;
  font-size: 11px;
  top: 1px;
  color: #f7b500;
}

.combo-banner-card:nth-child(1) .combo-cta {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.combo-banner-card:nth-child(1):hover .combo-cta {
  background: #fff;
  color: var(--green);
}

.woocommerce-products-header {
  padding-top: 24px;
}

.woocommerce-products-header__title.page-title {
  margin-bottom: unset;
}

ul.woocommerce-widget-layered-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

ul.woocommerce-widget-layered-nav-list
  li.woocommerce-widget-layered-nav-list__item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 4px !important;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  border-radius: 4px;
  transition: background 0.12s;
}

ul.woocommerce-widget-layered-nav-list li a:before {
  content: "";
  width: 15px;
  height: 15px;
  margin: 2px 3px !important;
  border: 1px solid #4a4a4a;
  border-radius: 100%;
  display: inline-block;
  min-width: 15px;
}

.woocommerce
  .woocommerce-widget-layered-nav-list
  .woocommerce-widget-layered-nav-list__item
  a {
  flex: 1;
  display: flex;
  gap: 9px;
  line-height: 18px;
  position: relative;
}
.woocommerce .widget_rating_filter ul li.chosen a::before,
ul.woocommerce-widget-layered-nav-list
  li.woocommerce-widget-layered-nav-list__item--chosen.chosen
  a:before {
  border-color: var(--green);
  content: "" !important;
}
.woocommerce .widget_rating_filter ul li.chosen a::after,
ul.woocommerce-widget-layered-nav-list
  li.woocommerce-widget-layered-nav-list__item--chosen.chosen
  a:after {
  content: "";
  background-color: var(--green);
  position: absolute;
  width: 9px;
  height: 9px;
  display: block;
  border-radius: 100%;
  left: 6px;
  top: 6px;
}
.woocommerce
  .woocommerce-widget-layered-nav-list
  .woocommerce-widget-layered-nav-list__item
  span.count {
  font-style: normal;
  font-size: 11.5px;
  color: var(--text-3);
}
ul.woocommerce-widget-layered-nav-list li:before,
ul.woocommerce-widget-layered-nav-list li:after {
  clear: none;
  position: absolute;
}

.widget_vdc_brand_filter
  ul.woocommerce-widget-layered-nav-list
  li.chosen
  a:before,
.widget_vdc_cat_filter
  ul.woocommerce-widget-layered-nav-list
  li.chosen
  a:before {
  background-color: var(--green);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("./images/check.svg");
}
.widget_vdc_brand_filter ul.woocommerce-widget-layered-nav-list li a:before,
.widget_vdc_cat_filter ul.woocommerce-widget-layered-nav-list li a:before {
  border-radius: 3px;
}

.woocommerce .widget_layered_nav_filters ul li a::before {
  margin: unset;
  color: var(--green);
}

.woocommerce .widget_layered_nav_filters ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.widget_layered_nav_filters ul li {
  padding: unset;
}

.woocommerce .widget_layered_nav_filters ul li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  background: var(--green-light);
  color: var(--green);
  border-radius: 999px;
}

.woocommerce .widget_rating_filter ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.woocommerce .widget_rating_filter ul li {
  padding: 6px 4px;
}
.woocommerce .widget_rating_filter ul li a {
  letter-spacing: 1px;
  font-style: normal;
  font-size: 11.5px;
  color: var(--text-3);
  justify-content: space-between;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.12s;
  position: relative;
}

.woocommerce .shop-sidebar .widget_rating_filter ul li .star-rating {
  height: 14px;
}
.woocommerce .widget_rating_filter ul li .star-rating {
  color: #f5a623;
  font-size: 14px;
  flex-grow: 1;
}

.woocommerce .widget_rating_filter ul li a:before {
  content: "";
  width: 15px;
  height: 15px;
  margin: 2px 3px !important;
  border: 1px solid #4a4a4a;
  border-radius: 100%;
  display: inline-block;
}

.toolbar-info .woocommerce-result-count {
  margin: unset;
}

.woocommerce .woocommerce-ordering {
  margin: unset;
}

.toolbar-info .woocommerce-result-count b {
  color: #000;
}

.shop-layout.archive-layout .archive-main {
  padding-bottom: 40px;
}
.woocommerce nav.woocommerce-pagination {
  display: none;
}
.woocommerce #content div.product div.images,
.woocommerce div.product div.images,
.woocommerce-page #content div.product div.images,
.woocommerce-page div.product div.images {
  width: 100%;
  float: none;
}

.woocommerce #content div.product div.summary,
.woocommerce div.product div.summary,
.woocommerce-page #content div.product div.summary,
.woocommerce-page div.product div.summary {
  width: auto;
}

.single-product .product.content-single-prod {
  border: unset;
  border-radius: unset;
  overflow: visible;
  padding-bottom: 30px;
}
.single-product .product.content-single-prod:hover {
  box-shadow: unset;
  transform: unset;
}
.item.product .product-img .added_to_cart.wc-forward {
  display: none;
}

.item.product .product-img .button.added svg {
  display: none;
}

.item.product .product-img .button.added:after {
  margin: unset;
}
.pd-layout {
  padding-top: 20px;
  padding-bottom: 5px;
}
.woocommerce div.product div.summary {
  padding: 25px 20px 5px;
  margin-bottom: unset;
  background: #f5f8fa;
  border-radius: 12px;
}
.product_title.entry-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.woocommerce div.product .pd-meta .woocommerce-product-rating {
  margin-bottom: unset;
  display: flex;
    align-items: center;
}

.woocommerce
  div.product
  .pd-meta
  .woocommerce-product-rating
  .woocommerce-review-link {
  display: none;
}

.woocommerce div.product .pd-meta .woocommerce-product-rating .product-meta {
  margin: unset;
}

.woocommerce div.product .pd-meta .woocommerce-product-rating::before {
  display: none;
}

/* Số điểm đánh giá trung bình hiển thị cạnh dải sao. */
.woocommerce div.product .pd-meta .woocommerce-product-rating .rating-average {
  margin-left: 6px;
  font-size: 12px;
  line-height: 1;
  color: var(--text);
  vertical-align: middle;
}

.woocommerce
  div.product
  .pd-info.summary.entry-summary
  .pd-meta
  .woocommerce-product-rating
  .star-rating {
  font-size: 12px;
}
.woocommerce
  div.product
  .pd-meta
  .woocommerce-product-rating
  .product-meta
  .star-rating {
  margin: unset;
  font-size: 12px;
}

.woocommerce
  div.product
  .pd-meta
  .woocommerce-product-rating
  .product-meta
  span.rating-count {
  font-style: normal;
  color: var(--text-3);
  font-style: normal;
  margin-left: 2px;
  font-size: 12px;
}
.woocommerce div.product div.summary p.price {
  /* padding: 14px 18px; */
  padding: 10px 0;
  border-radius: var(--radius);
  margin-bottom: 16px;
  margin-top: unset;
  color: var(--red);
  font-size: 26px;
  font-weight: 800;
}
.woocommerce-product-details__short-description {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0 0 18px;
  text-align: justify;
}

.woocommerce-product-details__short-description span {
  font-size: 13.5px !important;
}

.woocommerce-product-details__short-description p {
  margin-bottom: 5px;
  margin-top: unset;
}
.woocommerce div.product div.images .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}

/* ---- Video sản phẩm: slide chính ---- */
.woocommerce-product-gallery__image--video .vdc-video-slide {
  position: relative;
  display: block;
}

.woocommerce-product-gallery__image--video .vdc-video-slide img {
  display: block;
  width: 100%;
}

.woocommerce-product-gallery__image--video .vdc-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding-left: 4px; /* cân thị giác cho icon tam giác */
  transition:
    background 0.15s,
    transform 0.15s;
  z-index: 2;
}

.woocommerce-product-gallery__image--video
  .vdc-video-slide:hover
  .vdc-video-play {
  background: rgba(0, 0, 0, 0.75);
  transform: translate(-50%, -50%) scale(1.06);
}

/* Khi đã bấm play: ẩn poster + nút, hiện player phủ kín khung. */
.vdc-video-slide.is-playing img,
.vdc-video-slide.is-playing .vdc-video-play {
  visibility: hidden;
}

.vdc-video-slide .vdc-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  z-index: 3;
}

/* ---- Video sản phẩm: nút play nhỏ trên thumbnail đầu tiên ---- */
.woocommerce
  div.product
  div.images.has-product-video
  .flex-control-thumbs
  li:first-child {
  position: relative;
}

.woocommerce
  div.product
  div.images.has-product-video
  .flex-control-thumbs
  li:first-child::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);
  /* tam giác play trắng */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 55% center;
  background-size: 14px 14px;
  pointer-events: none;
}

/* Đang hiển thị ảnh biến thể thay cho video: ẩn nút play (slide chính) + badge play (thumbnail đầu). */
.woocommerce-product-gallery.vdc-variation-image
  .woocommerce-product-gallery__image--video
  .vdc-video-play {
  display: none;
}
.woocommerce
  div.product
  div.images.has-product-video.vdc-variation-image
  .flex-control-thumbs
  li:first-child::after {
  display: none;
}

.woocommerce div.product div.images .flex-control-thumbs li {
  width: auto;
}

.woocommerce div.product div.images.woocommerce-product-gallery {
  margin-bottom: unset;
}

.woocommerce div.product div.images.woocommerce-product-gallery .flex-viewport {
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
}

.woocommerce div.product div.images .flex-control-thumbs li img {
  opacity: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.15s,
    transform 0.15s;
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
  border-color: var(--green);
}

.woocommerce
  div.product
  div.images
  .woocommerce-product-gallery__trigger::before {
  border: unset;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("./images/search_plus.svg");
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger span {
  display: none;
}

.woocommerce
  div.product
  div.images
  .woocommerce-product-gallery__trigger:after {
  display: none;
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
  bottom: 104px;
  top: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a4a4a;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
}
.woocommerce div.product form.cart .variations td.label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.5;
}

.woocommerce div.product form.cart table td.value .attribute-swatch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.woocommerce
  div.product
  form.cart
  table
  td.value
  .attribute-swatch
  .swatchinput
  span.belowtext {
  font-size: 11px !important;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.2;
  word-break: break-word;
  display: block;
}

.woocommerce
  div.product
  form.cart
  table
  td.value
  .attribute-swatch
  .swatchinput {
  padding: unset;
}

.woocommerce div.product form.cart .variations .swatchinput {
  width: 100px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px !important;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.woocommerce div.product form.cart .variations label.wcva_image_label {
  border: unset !important;
  box-shadow: unset !important;
  outline: unset !important;
}

.woocommerce div.product form.cart .reset_variations {
  position: absolute !important;
  right: 0;
  top: 0;
  color: #e02d2d;
}

.woocommerce div.product form.cart .variations {
  position: relative;
  margin-bottom: 18px;
}
.woocommerce div.product form.cart .variations .swatchinput.active-swatch {
  box-shadow: inset 0 0 0 1px var(--green);
  border-color: var(--green);
  background: var(--green-light);
}
.single_variation_wrap div.woocommerce-variation .woocommerce-variation-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0 !important;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
  padding: unset;
}
.single_variation_wrap
  div.woocommerce-variation
  .woocommerce-variation-price
  .price {
  color: var(--red);
  font-size: 28px;
  font-weight: 800;
}
.single_variation_wrap div.woocommerce-variation {
  margin: unset !important;
}

.single_variation_wrap
  div.woocommerce-variation
  .woocommerce-variation-availability
  p.stock.out-of-stock {
  margin-bottom: 18px;
  margin-top: unset;
  font-size: 14px;
  font-weight: 600;
}
.woocommerce div.product form.cart div.quantity {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  /* overflow: hidden; */
  background: #fff;
  transition: border-color 0.15s;
  margin: unset;
  margin-left: 100px;
  position: relative;
}

.quantity button.qty-btn {
  width: 36px;
  height: 40px;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.12s,
    background 0.12s;
}
.woocommerce-variation-add-to-cart.variations_button {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.woocommerce div.product form.cart button.single_add_to_cart_button.button.alt {
  flex: 1;
  min-width: 200px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition:
    background 0.15s,
    transform 0.12s,
    box-shadow 0.15s;
  white-space: nowrap;
}

.woocommerce div.product form.cart div.quantity label.screen-reader-text {
  clip: unset;
  height: auto;
  width: auto;
  clip-path: inherit;
  font-size: 14px;
  color: #000;
  font-weight: 600;
  letter-spacing: 0.2px;
  left: -100px;
  text-transform: uppercase;
  top: 12px;
}
.woocommerce .quantity .qty {
  width: 38px;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
  padding: 0;
  justify-content: center;
}
.woocommerce div.product form.cart div.quantity label.screen-reader-text:after {
  content: ":";
}
.woocommerce
  div.product
  form.cart
  button.single_add_to_cart_button.button.alt:hover {
  box-shadow: 0 6px 18px rgba(32, 83, 80, 0.28);
  background: var(--green-dark);
  transform: translateY(-1px);
}

.woocommerce div.product form.cart button.single_add_to_cart_button.button.alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.woocommerce div.product form.cart:not(.variations_form) {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.woocommerce div.product div.summary .price del .amount {
  color: var(--text-3);
  font-size: 15px;
}
.woocommerce
  div.product
  form.cart
  button.single_add_to_cart_button.button.alt::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("images/cart.svg");
}

/* "Mua ngay" (buy now) — sits beside the add-to-cart button inside form.cart */
.woocommerce
  div.product
  form.cart
  button.single_add_to_cart_button.vdc-buy-now {
  flex: 1;
  min-width: 200px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--orange, #ff8a00), #ff6a00);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition:
    filter 0.15s,
    transform 0.12s,
    box-shadow 0.15s;
}
.woocommerce
  div.product
  form.cart
  button.single_add_to_cart_button.vdc-buy-now:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(255, 106, 0, 0.32);
  transform: translateY(-1px);
}
.woocommerce
  div.product
  form.cart
  button.single_add_to_cart_button.vdc-buy-now.disabled,
.woocommerce
  div.product
  form.cart
  button.single_add_to_cart_button.vdc-buy-now:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Loading spinner for "Mua ngay" (buy now) — shown while the form submits */
.woocommerce
  div.product
  form.cart
  button.single_add_to_cart_button.vdc-buy-now.is-loading {
  color: transparent !important;
  pointer-events: none;
  position: relative;
  transform: none;
}
.woocommerce
  div.product
  form.cart
  button.single_add_to_cart_button.vdc-buy-now.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vdcSpin 0.6s linear infinite;
}

/* Loading spinner for the bottom-nav "Mua ngay" tap target */
.bottom-nav a.is-loading {
  pointer-events: none;
  position: relative;
}
.bottom-nav a.is-loading > * {
  visibility: hidden;
}
.bottom-nav a.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(32, 83, 80, 0.25);
  border-top-color: var(--green, #205350);
  border-radius: 50%;
  animation: vdcSpin 0.6s linear infinite;
}
@keyframes vdcSpin {
  to {
    transform: rotate(360deg);
  }
}
.swal-modal {
  padding: 20px;
}
/* ============================================
   PRODUCT CONTENT (mÃ´ táº£ + Ä‘Ã¡nh giÃ¡)
   File riÃªng Ä‘á»ƒ dá»… thay/swap sau nÃ y
   ============================================ */

/* ============================================
   1) WYSIWYG-LIKE PRODUCT DESCRIPTION
   ============================================ */
.pd-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
}
.pd-content > *:first-child {
  margin-top: 0;
}
.pd-content > *:last-child {
  margin-bottom: 0;
}

.pd-content h2,
.pd-content h3,
.pd-content h4 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
  margin: 24px 0 10px;
}
.pd-content h2 {
  font-size: 20px;
}
.pd-content h3 {
  font-size: 17px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-light);
  display: inline-block;
  padding-right: 18px;
}
.pd-content h4 {
  font-size: 15px;
  color: var(--green-dark);
  margin-top: 18px;
}

.pd-content p {
  margin: 0 0 12px;
}
.pd-content strong {
  color: var(--text);
  font-weight: 700;
}
.pd-content em {
  color: var(--text-3);
}

.pd-content ul,
.pd-content ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
.pd-content ul {
  list-style: none;
  padding-left: 0;
}
.pd-content ul li {
  position: relative;
  padding: 4px 0 4px 26px;
}
.pd-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  background: var(--green-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23205350' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.pd-content ol li {
  padding: 4px 0;
}

.pd-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pd-content a:hover {
  color: var(--green-dark);
}

.pd-content figure {
  margin: 18px 0;
}
.pd-content figure .placeholder-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1f3a4d, #0a1a2e);
  color: rgba(255, 255, 255, 0.5);
}
.pd-content figcaption {
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.pd-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 14px 0;
}
.pd-content table thead {
  background: var(--green);
  color: #fff;
}
.pd-content table thead th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #000;
}
.pd-content table tbody tr {
  border-top: 1px solid var(--line);
}
.pd-content table tbody tr:nth-child(even) {
  background: var(--bg);
}
.pd-content table tbody th,
.pd-content table tbody td {
  text-align: left;
  padding: 10px 14px;
  vertical-align: top;
  color: var(--text);
}
.pd-content table tbody th {
  width: 32%;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-2);
  border-right: 1px solid var(--line);
}

@media (max-width: 768px) {
  .pd-content {
    padding: 16px;
    font-size: 13.5px;
    line-height: 1.65;
  }
  .pd-content h2 {
    font-size: 17px;
  }
  .pd-content h3 {
    font-size: 15px;
  }
  .pd-content h4 {
    font-size: 14px;
  }
  .pd-content table {
    display: block;
    overflow-x: auto;
  }
}

/* ============================================
   2) REVIEWS BLOCK
   ============================================ */
.reviews-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.reviews-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.reviews-title span {
  color: var(--green);
}

/* devvn star icon helper */
.devvn-star {
  display: inline-block;
  color: #f5a623;
  font-style: normal;
  margin-left: 2px;
  font-size: 1em;
}

/* summary box: average | bars | CTA */
.star_box {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
}
.star-average {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 12px;
}
.star-average .star_average {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: #f5a623;
  line-height: 1;
  margin-bottom: 4px;
}
.star-average strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.reviews_bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.devvn_review_row {
  display: grid;
  grid-template-columns: 36px 1fr 130px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.devvn_stars_value {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  color: var(--text);
}
.devvn_rating_bar {
  display: block;
  height: 10px;
}
.devvn_scala_rating {
  display: block;
  width: 100%;
  height: 100%;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}
.devvn_perc_rating {
  display: block;
  height: 100%;
  background: #f5a623;
  border-radius: 999px;
  transition: width 0.4s ease;
}
.devvn_num_reviews {
  font-size: 12px;
  color: var(--text-3);
}
.devvn_num_reviews b {
  color: #f5a623;
  font-weight: 700;
}

.btn-reviews-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: #1e88e5;
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition:
    background 0.15s,
    transform 0.12s;
  white-space: nowrap;
}
.btn-reviews-now:hover {
  background: #0d6fc7;
  transform: translateY(-1px);
  color: #fff;
}

/* filter chips */
.devvn_reviews_filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.devvn_filter_btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.15s;
}
.devvn_filter_btn:hover {
  border-color: var(--green);
  color: var(--green);
}
.devvn_filter_btn.active {
  background: #1e88e5;
  border-color: #1e88e5;
  color: #fff;
}
.devvn_filter_btn.active .devvn-star {
  color: #fff;
}

/* review list */
.commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.commentlist > li.review {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.commentlist > li.review:last-child {
  border-bottom: none;
}
.devvn_review_box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.devvn_review_avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.devvn_review_avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.devvn_review_avatar .avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-weight: 800;
  font-size: 16px;
}
.comment-text {
  flex: 1;
  min-width: 0;
}
.devvn_review_top .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 4px;
}
.woocommerce-review__author {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}
.woocommerce-review__verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-style: normal;
  color: var(--green);
}
.woocommerce-review__verified svg {
  color: var(--green);
}
.devvn_review_mid {
  margin: 2px 0;
}
.devvn_star_rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.woocommerce .star-rating {
  display: inline-block;
  position: relative;
  width: 70px;
  height: 11px;
  /* background: linear-gradient(to right, #e2e2e2 0 100%); */
  font-size: 14px;
  line-height: 1;
  letter-spacing: 2px;
  overflow: hidden;
}
.star-rating::before {
  content: "â˜…â˜…â˜…â˜…â˜…";
  position: absolute;
  inset: 0;
  color: #e2e2e2;
}
.star-rating span {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #f5a623;
  text-indent: 0;
  white-space: nowrap;
  font-size: 0;
}
.wc-layered-nav-rating .star-rating span::before {
  font-size: 14px;
  letter-spacing: 2px;
}
.description {
  font-size: 13.5px;
  color: var(--text-2);
}
.description p {
  margin: 4px 0;
}
.devvn_review_bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
}
.devvn_review_bottom .reply a {
  color: var(--green);
  font-weight: 600;
}
.devvn_review_bottom .reply a:hover {
  text-decoration: underline;
}

/* ----- review form ----- */
.review-form-block {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 20px;
}
.rf-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.comment-form-comment textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  resize: vertical;
  min-height: 100px;
  outline: none;
  transition: border-color 0.15s;
}
.comment-form-comment textarea:focus {
  border-color: var(--green);
}


.comment-form-rating {
  margin-bottom: 14px;
}
.comment-form-rating label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.comment-form-rating .stars {
  display: inline-flex;
  gap: 4px;
  margin: 0;
}
.comment-form-rating .stars a {
  font-size: 26px;
  color: #e2e2e2;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition:
    color 0.12s,
    transform 0.12s;
}
.comment-form-rating .stars a:hover {
  transform: scale(1.15);
}
.comment-form-rating .stars a.active,
.comment-form-rating .stars a.active ~ a {
  color: #e2e2e2;
}
.comment-form-rating .stars.selected a {
  color: #f5a623;
}
.comment-form-rating .stars.selected a.active ~ a {
  color: #e2e2e2;
}

.comment-form-phone input {
  width: 100%;
  max-width: 280px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  outline: none;
  margin-bottom: 12px;
}
.comment-form-phone input:focus {
  border-color: var(--green);
}

.submit-review {
  background: var(--green);
  color: #fff;
  padding: 11px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.submit-review:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 18px rgba(32, 83, 80, 0.28);
}
.woocommerce div.product .woocommerce-tabs .panel {
  padding: 20px 0;
  margin: unset;
}
section#tab-reviews .pd-content {
  border: unset;
  padding: unset;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme))
  div.product
  span.price {
  color: var(--red);
}
section.related.related-products {
  padding: 20px 0;
}
.entry-content h2.section-title {
  font-size: 19px;
  margin-bottom: 18px;
}
.woocommerce div.product div.summary .star-rating {
  margin: unset;
  width: 75px;
  height: 14px;
}
.related.related-products .product .price {
  font-size: 15px;
  gap: 4px;
}
.woocommerce div.product div.summary .star-rating span::before {
  font-size: 12px;
}
.post-share .post-share-btn:hover {
  background: var(--green-light);
}
.post-share .post-share-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green-soft);
  background: #fff;
  border-radius: 50%;
  color: var(--green);
  cursor: pointer;
  transition: background 0.15s ease;
}

#reply-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}

.comment-form-comment textarea {
  margin-bottom: unset;
  border: 1px solid var(--green-soft);
  height: 100px;
}

form#commentform p.comment-form-author,
form#commentform p.comment-form-email {
  flex-grow: 1;
  width: auto;
}

form#commentform p.comment-form-comment {
  width: 100%;
}

form#commentform p.form-submit input#submit {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.single-layout.post-detail-layout {
  padding-bottom: 40px;
}
form.search.search_form_post input {
  padding: 9px 56px 9px 12px;
  font-size: 13px;
  height: 34px;
}

form.search.search_form_post button {
  width: 44px;
  height: 34px;
  top: 0;
  right: 0;
}
.widget_categories ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 13.5px;
  color: var(--text);
  text-decoration: none;
  transition:
    color 0.15s ease,
    padding 0.15s ease;
}

.widget_categories ul li a em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--green-light);
  color: var(--green);
  padding: 2px 8px;
  border-radius: 10px;
}

.widget_categories ul li {
  border-bottom: 1px dashed var(--green-soft);
}

.widget_categories ul li:last-child {
  border-bottom: unset;
}

.widget_categories ul li a:hover {
  color: var(--green);
  padding-left: 6px;
}

.widget_tag_cloud .tagcloud {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.widget_tag_cloud .tagcloud a {
  display: inline-block;
  font-size: 12px !important;
  padding: 4px 10px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 4px;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.post-sidebar .widget:last-child {
  background: linear-gradient(135deg, var(--green) 0%, #2a6f6b 100%) !important;
  border-color: var(--green) !important;
  color: #fff;
}

.post-sidebar .widget:last-child .widget-title {
  color: #fff;
}

.post-sidebar .widget:last-child .custom-html-widget p {
  margin: unset;
}

.post-sidebar .widget:last-child .widget-cta-btn {
  margin-top: 12px;
}

.post-sidebar .widget:last-child .custom-html-widget {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}
.widget_tag_cloud .tagcloud a:hover {
  background: var(--green);
  color: #fff;
}
.ab-logo a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 88%;
  max-height: 100%;
  height: 80px;
}
.single-wrap.page-default {
  padding-bottom: 30px;
}

form.wpcf7-form .form-row p {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

form.wpcf7-form .form-row p label > span,
form.wpcf7-form > p span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  display: block;
}

form.wpcf7-form .form-row p label,
form.wpcf7-form > p label.full {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wpcf7 input[type="url"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="text"],
.wpcf7 select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--green-soft);
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  transition: border-color 0.15s ease;
}

form.wpcf7-form > p {
  margin: unset;
}

form.wpcf7-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--green-soft);
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  transition: border-color 0.15s ease;
  resize: vertical;
  height: 120px;
}

form.wpcf7-form > p label.checkbox label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}

form.wpcf7-form > p span.wpcf7-list-item.first.last {
  margin: unset;
}

form.wpcf7-form > p label.checkbox {
  display: flex;
  margin-bottom: 14px;
}
span.devvnpvc-ajax-counter {
  display: none;
}
.block_newsletter_form form.wpcf7-form input.wpcf7-form-control.wpcf7-email {
  height: 50px;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
}

.block_newsletter_form form.wpcf7-form span.wpcf7-not-valid-tip {
  color: #f00;
  padding-top: 5px;
}

.block_newsletter_form form.wpcf7-form button {
  position: absolute;
  background: var(--green-dark);
  color: #fff;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: background 0.15s;
  height: 38px;
  right: 6px;
  top: 6px;
}
.block_newsletter_form form.wpcf7-form p br {
  display: none;
}
.block_newsletter_form .wpcf7 form .wpcf7-response-output {
  margin-top: 10px;
}
.block_newsletter_form form.wpcf7-form p {
  position: relative;
}
/* ============================================
   VUA ĐỒ CÂU - Cart & Checkout page styles
   .woocommerce-cart-form & .cart-collaterals
   CHỈ áp dụng cho trang Giỏ hàng + Thanh toán
   (mọi selector đều bọc trong body.woocommerce-cart / .woocommerce-checkout)
   Dán vào: Giao diện > Tùy biến > CSS bổ sung
   ============================================ */

body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce {
  --c-green: var(--green, #205350);
  --c-green-dark: var(--green-dark, #143836);
  --c-green-light: var(--green-light, #e6efee);
  --c-orange: var(--orange, #ff8a00);
  --c-red: var(--red, #e02d2d);
  --c-line: var(--line, #e5e7eb);
  --c-text: var(--text, #1a1a1a);
  --c-text-2: var(--text-2, #4a4a4a);
  --c-rad: var(--radius-lg, 12px);
}

body.woocommerce-cart .woocommerce {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* ---------- Bảng sản phẩm trong giỏ ---------- */
body.woocommerce-cart .woocommerce-cart-form {
  flex-basis: calc(70% - 14px);
  min-width: 0;
  max-width: calc(70% - 14px);
  border: 1px solid var(--c-line);
  border-radius: var(--c-rad);
}
body.woocommerce-cart .woocommerce-cart-form .button[name="update_cart"] {
  display: none;
}
body.woocommerce-cart .woocommerce .return-to-shop,
body.woocommerce-cart .woocommerce .wc-empty-cart-message,
body.woocommerce-cart .woocommerce .woocommerce-notices-wrapper {
  width: 100%;
}
body.woocommerce-cart .woocommerce .return-to-shop {
  text-align: center;
}
body.woocommerce-cart .woocommerce-cart-form table.shop_table {
  border: 1px solid var(--c-line);
  border-radius: var(--c-rad);
  border-collapse: collapse;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  /* box-shadow: var(--shadow, 0 4px 16px rgba(0, 0, 0, 0.06)); */
  margin: 0;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table thead th {
  color: #000;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  padding: 16px 18px;
  border: 0;
  margin-bottom: unset;
  text-align: center;
  white-space: nowrap;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table td {
  padding: 15px;
  border: unset;
  vertical-align: middle;
  border-top: 1px solid var(--c-line);
  color: var(--c-text);
  margin: unset;
  line-height: normal;
  display: table-cell;
}
body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table
  td.product-quantity,
body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-price,
body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table
  td.product-subtotal {
  text-align: center;
}

body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table
  tbody
  tr:hover
  td {
  background: var(--c-green-light);
}

/* Ảnh sản phẩm */
body.woocommerce-cart .woocommerce-cart-form .product-thumbnail img {
  width: 72px;
  min-width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--c-line);
}

/* Tên & giá */
body.woocommerce-cart .woocommerce-cart-form .product-name a {
  color: var(--c-text);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
body.woocommerce-cart .woocommerce-cart-form .product-name a:hover {
  color: var(--c-green);
}
body.woocommerce-cart .woocommerce-cart-form .product-price,
body.woocommerce-cart .woocommerce-cart-form .product-subtotal {
  font-weight: 700;
  color: var(--c-orange);
}

/* Nút xoá sản phẩm */
body.woocommerce-cart .woocommerce-cart-form .product-remove a.remove {
  width: 26px;
  height: 26px;
  line-height: 24px;
  font-size: 18px;
  color: var(--c-red) !important;
  border: unset;
  border-radius: 50%;
  background: #fff !important;
  transition: all 0.2s ease;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.woocommerce-cart .woocommerce-cart-form .product-remove a.remove:hover {
  color: #fff !important;
  background: var(--c-red) !important;
  border-color: var(--c-red);
}

/* Ô số lượng (stepper − [ ] +) */
body.woocommerce-cart .woocommerce-cart-form .quantity {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
body.woocommerce-cart .woocommerce-cart-form .quantity .qty-btn {
  width: 38px;
  border: 0;
  background: var(--bg-2, #fafafa);
  color: var(--c-green);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
body.woocommerce-cart .woocommerce-cart-form .quantity .qty-btn:hover {
  background: var(--c-green);
  color: #fff;
}
body.woocommerce-cart .woocommerce-cart-form .quantity input.qty {
  width: 52px;
  height: 40px;
  text-align: center;
  border: 0;
  border-left: 1px solid var(--c-line);
  border-right: 1px solid var(--c-line);
  border-radius: 0;
  background: #fff;
  color: var(--c-text);
  font-weight: 600;
  -moz-appearance: textfield;
  appearance: textfield;
}
body.woocommerce-cart
  .woocommerce-cart-form
  .quantity
  input.qty::-webkit-outer-spin-button,
body.woocommerce-cart
  .woocommerce-cart-form
  .quantity
  input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
body.woocommerce-cart .woocommerce-cart-form .quantity input.qty:focus {
  outline: none;
}
body.woocommerce-cart .woocommerce-cart-form .quantity:focus-within {
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(32, 83, 80, 0.15);
}

/* ---------- Hàng coupon + cập nhật ---------- */
body.woocommerce-cart .woocommerce-cart-form td.actions {
  padding: 16px 18px;
}
body.woocommerce-cart .woocommerce-cart-form .coupon {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
body.woocommerce-cart .woocommerce-cart-form .coupon input#coupon_code {
  height: 44px;
  min-width: 180px;
  padding: 0 14px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
}
body.woocommerce-cart .woocommerce-cart-form .coupon input#coupon_code:focus {
  border-color: var(--c-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(32, 83, 80, 0.15);
}

/* Nút trong cart form */
body.woocommerce-cart .woocommerce-cart-form .button {
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
/* Áp dụng mã giảm giá */
body.woocommerce-cart .woocommerce-cart-form .coupon .button {
  background: var(--c-green);
  color: #fff;
}
body.woocommerce-cart .woocommerce-cart-form .coupon .button:hover {
  background: var(--c-green-dark);
}
/* Cập nhật giỏ hàng: kiểu phụ */
body.woocommerce-cart .woocommerce-cart-form .button[name="update_cart"] {
  background: #fff;
  color: var(--c-green);
  border: 1px solid var(--c-green);
}
body.woocommerce-cart
  .woocommerce-cart-form
  .button[name="update_cart"]:hover:not([disabled]) {
  background: var(--c-green);
  color: #fff;
}
body.woocommerce-cart .woocommerce-cart-form .button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Cart totals (bên phải) ---------- */
body.woocommerce-cart .cart-collaterals {
  max-width: calc(30% - 14px);
  flex-basis: calc(30% - 14px);
}
body.woocommerce-cart .cart-collaterals .cart_totals {
  /* width: 100%; */
  background: #fff;
  border: 1px solid var(--c-line, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  /* box-shadow: var(--shadow, 0 4px 16px rgba(0, 0, 0, 0.06)); */
  overflow: hidden;
  width: 100%;
}
body.woocommerce-cart .cart-collaterals .cart_totals h2 {
  margin: 0;
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  border-bottom: 1px solid var(--c-line);
  text-transform: uppercase;
}
body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table {
  border: 0;
  margin: 0;
  width: 100%;
  border-collapse: collapse;
}
body.woocommerce-cart .cart-collaterals .cart_totals table th,
body.woocommerce-cart .cart-collaterals .cart_totals table td {
  padding: 14px 20px;
  border-top: 1px solid var(--line, #e5e7eb);
  text-align: left;
}
body.woocommerce-cart .cart-collaterals .cart_totals table th {
  font-weight: 600;
  color: var(--text-2, #4a4a4a);
  padding-right: unset;
}
body.woocommerce-cart .cart-collaterals .cart_totals tr:first-child th,
body.woocommerce-cart .cart-collaterals .cart_totals tr:first-child td {
  border-top: 0;
}
body.woocommerce-cart .cart-collaterals .cart_totals .order-total th,
body.woocommerce-cart .cart-collaterals .cart_totals .order-total td {
  font-size: 18px;
  font-weight: 800;
}
body.woocommerce-cart .cart-collaterals .cart_totals .order-total .amount {
  color: var(--red);
}

/* Dòng phí vận chuyển */
body.woocommerce-cart
  .cart-collaterals
  .cart_totals
  .shipping
  ul#shipping_method {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.woocommerce-cart
  .cart-collaterals
  .cart_totals
  .shipping
  ul#shipping_method
  li {
  display: flex;
  align-items: center;
  gap: 8px;
}
body.woocommerce-cart .cart-collaterals .cart_totals .shipping label {
  font-weight: 600;
  color: var(--text, #1a1a1a);
}
body.woocommerce-cart
  .cart-collaterals
  .cart_totals
  .shipping
  .woocommerce-shipping-destination {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3, #8a8a8a);
}

/* Nút tiến hành thanh toán */
body.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout {
  padding: 18px 20px;
}
body.woocommerce-cart
  .cart-collaterals
  .wc-proceed-to-checkout
  a.checkout-button {
  display: flex;
  width: 100%;
  text-align: center;
  height: auto;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #fff !important;
  border: 0;
  border-radius: 10px;
  /* background: linear-gradient(135deg, var(--orange, #ff8a00), #ff6a00); */
  /* box-shadow: 0 6px 16px rgba(255, 138, 0, 0.35); */
  transition: all 0.2s ease;
  justify-content: center;
  align-items: center;
  background: var(--green);
  gap: 12px;
  line-height: 1.5;
}
body.woocommerce-cart
  .cart-collaterals
  .cart_totals
  tr.woocommerce-shipping-totals.shipping {
  display: none;
}

body.woocommerce-cart .cart-collaterals .cart_totals table th {
  white-space: nowrap;
  color: #000;
}

body.woocommerce-cart .cart-collaterals .cart_totals table td {
  text-align: right;
}

body.woocommerce-cart .cart-collaterals .cart_totals table td .amount {
  font-weight: 700;
}

body.woocommerce-cart .cart-collaterals .cart_totals table tr.order-total th {
  text-transform: uppercase;
}

body.woocommerce-cart
  .cart-collaterals
  .wc-proceed-to-checkout
  a.checkout-button
  small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  text-transform: none;
  opacity: 0.9;
  margin-top: 2px;
}

body.woocommerce-cart
  .cart-collaterals
  .wc-proceed-to-checkout
  a.checkout-button
  span {
  text-align: left;
}

body.woocommerce-cart
  .cart-collaterals
  .wc-proceed-to-checkout
  a.checkout-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 138, 0, 0.45);
}

/* ---------- Responsive (chỉ trang giỏ hàng) ---------- */
@media (max-width: 768px) {
  body.woocommerce-cart .woocommerce {
    flex-direction: column;
  }
  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals {
    flex: 1 1 100%;
    max-width: 100%;
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table thead {
    display: none;
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr {
    display: block;
    border-bottom: 8px solid var(--bg, #f6f7f9);
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    border-top: 1px solid var(--line, #e5e7eb);
    flex-wrap: wrap;
  }
  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    td[data-title]::before {
    content: attr(data-title);
    font-weight: 600;
    color: var(--text-2, #4a4a4a);
  }
  /* Ảnh canh giữa, nút xoá nằm góc phải trên */
  body.woocommerce-cart .woocommerce-cart-form .product-thumbnail {
    justify-content: center;
    border-top: 0;
  }
  body.woocommerce-cart .woocommerce-cart-form .product-remove {
    justify-content: flex-end;
    border-top: 0;
    padding-bottom: 0;
  }
  body.woocommerce-cart .woocommerce-cart-form .product-thumbnail img {
    width: 110px;
    height: 110px;
  }
  body.woocommerce-cart .woocommerce-cart-form td.actions {
    display: block;
  }
  body.woocommerce-cart .woocommerce-cart-form .coupon {
    display: flex;
    width: 100%;
    margin-bottom: 12px;
  }
  body.woocommerce-cart .woocommerce-cart-form .coupon input#coupon_code {
    flex: 1;
    min-width: 0;
  }
  body.woocommerce-cart .woocommerce-cart-form .button[name="update_cart"] {
    width: 100%;
  }
}

body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table
  td.product-remove {
  text-align: center;
}

body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table
  td.product-thumbnail {
  text-align: center;
  aspect-ratio: 1;
}

body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table
  td.product-thumbnail
  a {
  display: inline-block;
}
/* ============================================
   VUA ĐỒ CÂU - Checkout page styles
   CHỈ áp dụng cho trang Thanh toán (body.woocommerce-checkout)
   Dán vào: Giao diện > Tùy biến > CSS bổ sung
   ============================================ */

/* ---------- Form coupon trên cùng ---------- */
body.woocommerce-checkout form.checkout_coupon {
  border: 1px solid var(--line, #e5e7eb);
  border-left: 4px solid var(--orange, #ff8a00);
  border-radius: var(--radius-lg, 12px);
  background: var(--bg-2, #fafafa);
  padding: 18px 20px;
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
}
body.woocommerce-checkout form.checkout_coupon .input-text {
  height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
}
body.woocommerce-checkout form.checkout_coupon .button {
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  color: #fff;
  background: var(--green, #205350);
  cursor: pointer;
  transition: background 0.2s ease;
}
body.woocommerce-checkout form.checkout_coupon .button:hover {
  background: var(--green-dark, #143836);
}

/* ---------- Bố cục 2 cột ---------- */
body.woocommerce-checkout .col2-set#customer_details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
  flex-direction: column;
  /* border: 1px solid var(--line, #e5e7eb); */
  /* padding: 22px 24px; */
  /* border-radius: var(--radius-lg, 12px); */
  max-width: calc(60% - 15px);
  flex-basis: calc(60% - 15px);
}
.woocommerce-checkout #payment .form-row.place-order {
  margin-bottom: unset;
}

body.woocommerce-checkout .col2-set#customer_details .col-1 {
  /* flex: 1 1 55%; */
  min-width: 0;
  float: none;
  width: auto;
}
body.woocommerce-checkout .col2-set#customer_details .col-2 {
  min-width: 0;
  float: none;
  width: auto;
}

/* Khối field dạng card */
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-additional-fields {
  background: #fff;
  /* border: 1px solid var(--line, #e5e7eb); */
  /* border-radius: var(--radius-lg, 12px); */
  /* box-shadow: var(--shadow, 0 4px 16px rgba(0, 0, 0, 0.06)); */
  /* padding: 22px 24px; */
}
body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-additional-fields h3,
body.woocommerce-checkout #order_review_heading {
  margin: 0 0 18px;
  padding-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--green, #205350);
  border-bottom: 2px solid var(--green-light, #e6efee);
}

/* ---------- Trường nhập liệu ---------- */
body.woocommerce-checkout .form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text, #1a1a1a);
}
body.woocommerce-checkout .form-row label .required {
  color: var(--red, #e02d2d);
  text-decoration: none;
}
body.woocommerce-checkout .form-row label .optional {
  font-weight: 400;
  color: var(--text-3, #8a8a8a);
}
body.woocommerce-checkout .form-row .input-text,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .form-row select {
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
  background: #fff;
  color: var(--text, #1a1a1a);
  font-size: 15px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
body.woocommerce-checkout .form-row textarea {
  height: auto;
  min-height: 80px;
  padding: 12px 14px;
  line-height: 1.5;
}
body.woocommerce-checkout .form-row .input-text:focus,
body.woocommerce-checkout .form-row textarea:focus,
body.woocommerce-checkout .form-row select:focus {
  border-color: var(--green, #205350);
  outline: none;
  box-shadow: 0 0 0 3px rgba(32, 83, 80, 0.15);
}
/* Trường lỗi / hợp lệ */
body.woocommerce-checkout .form-row.woocommerce-invalid .input-text {
  border-color: var(--red, #e02d2d);
}
body.woocommerce-checkout .form-row.woocommerce-validated .input-text {
  border-color: #88c4a0;
}

/* Select2 (dropdown quốc gia) đồng bộ chiều cao */
body.woocommerce-checkout .select2-container .select2-selection--single {
  height: 46px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
}
body.woocommerce-checkout
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 32px;
  padding-left: 14px;
  color: var(--text, #1a1a1a);
}
body.woocommerce-checkout
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 44px;
}
body.woocommerce-checkout .select2-container--open .select2-selection--single {
  border-color: var(--green, #205350);
  box-shadow: 0 0 0 3px rgba(32, 83, 80, 0.15);
}
body.woocommerce-checkout .select2-dropdown {
  border-color: var(--green, #205350);
  border-radius: 8px;
  overflow: hidden;
}
body.woocommerce-checkout .select2-results__option--highlighted[aria-selected] {
  background: var(--green, #205350);
}

/* ---------- Bảng đơn hàng (order review) ---------- */
body.woocommerce-checkout #order_review {
  margin-top: 8px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table {
  width: 100%;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  border-collapse: collapse;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  /* box-shadow: var(--shadow, 0 4px 16px rgba(0, 0, 0, 0.06)); */
  margin-bottom: unset;
}
form.checkout.woocommerce-checkout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 20px;
}

form.checkout.woocommerce-checkout .customer_info_prod {
  max-width: calc(40% - 15px);
  flex-basis: calc(40% - 15px);
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot {
  border-bottom: 1px solid var(--line, #e5e7eb);
}

body.woocommerce-checkout
  .woocommerce-checkout-review-order-table
  thead
  th.product-name {
  border-right: 1px solid var(--line, #e5e7eb);
  margin: unset;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
  /* background: linear-gradient(135deg, var(--green-dark, #143836), var(--green, #205350)); */
  color: #000 !important;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
  border: 0;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody td {
  padding: 14px 18px;
  border-top: 1px solid var(--line, #e5e7eb);
  vertical-align: top;
  display: table-cell;
}
body.woocommerce-checkout
  .woocommerce-checkout-review-order-table
  .product-quantity {
  color: var(--text-3, #8a8a8a);
  font-weight: 600;
}
body.woocommerce-checkout
  .woocommerce-checkout-review-order-table
  .product-total {
  text-align: right;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  white-space: nowrap;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
  padding: 13px 18px;
  border-top: 1px solid var(--line, #e5e7eb);
  text-align: left;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
  text-align: right;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th {
  font-weight: 600;
  color: var(--text-2, #4a4a4a);
}
body.woocommerce-checkout
  .woocommerce-checkout-review-order-table
  .shipping
  ul#shipping_method {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.woocommerce-checkout
  .woocommerce-checkout-review-order-table
  .shipping
  label {
  font-weight: 600;
  color: var(--text, #1a1a1a);
}
body.woocommerce-checkout
  .woocommerce-checkout-review-order-table
  .order-total
  th,
body.woocommerce-checkout
  .woocommerce-checkout-review-order-table
  .order-total
  td {
  font-size: 18px;
  font-weight: 800;
}
body.woocommerce-checkout
  .woocommerce-checkout-review-order-table
  .order-total
  .amount {
  color: var(--red, #e02d2d);
}

/* ---------- Phương thức thanh toán ---------- */
body.woocommerce-checkout #payment {
  background: #fff;
  border-top: 1px solid var(--line, #e5e7eb);
  border-radius: unset;
  /* box-shadow: var(--shadow, 0 4px 16px rgba(0, 0, 0, 0.06)); */
  padding: 22px 24px;
}
body.woocommerce-checkout #payment ul.payment_methods {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  border: 0;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
body.woocommerce-checkout
  #payment
  ul.payment_methods
  li.wc_payment_method:has(input:checked) {
  border-color: var(--green, #205350);
  background: var(--green-light, #e6efee);
}
body.woocommerce-checkout #payment ul.payment_methods li label {
  display: inline;
  font-weight: 600;
  color: var(--text, #1a1a1a);
  cursor: pointer;
}
body.woocommerce-checkout #payment .payment_box {
  margin-top: 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2, #4a4a4a);
}
body.woocommerce-checkout #payment .payment_box p {
  margin: 0;
}

/* Điều khoản / bảo mật */
body.woocommerce-checkout .woocommerce-privacy-policy-text p,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3, #8a8a8a);
}

/* Nút Đặt hàng */
body.woocommerce-checkout #payment #place_order {
  display: block;
  width: 100%;
  height: auto;
  padding: 16px 20px;
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: var(--green);
  /* box-shadow: 0 6px 16px rgba(255, 138, 0, 0.35); */
  transition: all 0.2s ease;
}
body.woocommerce-checkout #payment #place_order:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 138, 0, 0.45);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  body.woocommerce-checkout .col2-set#customer_details {
    flex-direction: column;
  }
  aside#menuDrawer form.search.devvn_form_quicksearch button {
    height: 34px;
  }
  body.woocommerce-checkout .form-row-first,
  body.woocommerce-checkout .form-row-last {
    width: 100%;
    float: none;
    margin-right: 0;
  }
}

body.woocommerce-checkout form.checkout_coupon p.form-row.form-row-first {
  flex-grow: 1;
}

body.woocommerce-checkout form.checkout_coupon p.form-row.form-row-last {
  width: auto;
}

body.woocommerce-checkout form.checkout_coupon p {
  margin: unset;
  padding: unset;
}

body.woocommerce-checkout form.checkout_coupon .clear {
  display: none;
}

body.woocommerce-checkout .col2-set#customer_details:before,
body.woocommerce-checkout .col2-set#customer_details:after {
  display: none;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table thead tr {
  /* background: linear-gradient(
    135deg,
    var(--green-dark, #143836),
    var(--green, #205350)
  ); */
}
.entry-content .wc-tab-section-content.pd-content span {
  font-size: 14px !important;
}
#add_payment_method #payment div.payment_box::before,
.woocommerce-cart #payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::before {
  border-color: #0000 #0000 #fff #0000;
}
.block_newsletter_form form.wpcf7-form input.wpcf7-form-control.wpcf7-email {
  padding-right: 170px;
}
.entry-content .wc-tab-section-content.pd-content span {
  font-size: 14px !important;
}

.entry-content .wc-tab-section-content.pd-content span::before {
  font-size: 14px;
}

.entry-content .wc-tab-section-content.pd-content .star-rating {
  width: 84px;
  margin-left: unset;
  height: 16px;
  margin-bottom: unset;
  margin-right: 5px;
}
.woocommerce .woocommerce-error .button,
.woocommerce .woocommerce-info .button,
.woocommerce .woocommerce-message .button,
.woocommerce-page .woocommerce-error .button,
.woocommerce-page .woocommerce-info .button,
.woocommerce-page .woocommerce-message .button {
  background: var(--green);
  color: #fff;
  border-radius: 99px;
}
/* ============================================
   VUA ĐỒ CÂU - Product variations (table.variations)
   CHỈ áp dụng cho trang sản phẩm (body.single-product)
   Dán vào: Giao diện > Tùy biến > CSS bổ sung
   ============================================ */

body.single-product table.variations {
  width: 100%;
  margin: 0 0 18px;
  border: 0;
  border-collapse: collapse;
}
body.single-product table.variations tr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
}
body.single-product table.variations tr:last-child {
  margin-bottom: 0;
}

/* Nhãn (Size, Màu...) */
body.single-product table.variations th.label {
  width: auto;
  min-width: 70px;
  padding: 0;
  text-align: left;
  vertical-align: middle;
}
body.single-product table.variations th.label label {
  margin: 0;
  font-weight: 600;
  color: var(--text, #1a1a1a);
}

/* Ô chứa select */
body.single-product table.variations td.value {
  flex: 1;
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Dropdown */
body.single-product table.variations select {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  background-color: #fff;
  color: var(--text, #1a1a1a);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Mũi tên tuỳ chỉnh màu teal */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23205350' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  margin-right: unset !important;
}
body.single-product table.variations select:hover {
  border-color: var(--green-soft, #c7dcda);
}
body.single-product table.variations select:focus {
  outline: none;
  border-color: var(--green, #205350);
  box-shadow: 0 0 0 3px rgba(32, 83, 80, 0.15);
}

/* Link "Xóa" lựa chọn */
body.single-product .reset_variations {
  font-size: 13px;
  font-weight: 600;
  color: var(--red, #e02d2d);
  text-decoration: none;
  white-space: nowrap;
}
body.single-product .reset_variations:hover {
  text-decoration: underline;
}
.tax-shop-by-brand-categories .brand-hero,
.tax-brand-categories .brand-hero {
  padding-bottom: 30px;
}
.woocommerce .prod_labels span.onsale {
  position: unset;
}
.woocommerce
  div.product
  .pd-meta
  .woocommerce-product-rating
  span.devvn_average_rate {
  display: none;
}

.woocommerce div.product .pd-meta .woocommerce-product-rating span.devvn_sold {
  display: none;
}
.woocommerce .prod_labels .product-badge {
  position: unset;
}
.product-badge.not_new {
  background-color: #ff6a00;
}
.product-badge.hot {
  background: linear-gradient(135deg, #ff512f, #dd2476);
}
.woocommerce .prod_labels {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  text-transform: uppercase;
}
iframe {
  max-width: 100%;
}
.woocommerce td.product-name .wc-item-meta dd,
.woocommerce td.product-name dl.variation dd {
  font-weight: 400;
  font-size: inherit;
}

.woocommerce td.product-name .wc-item-meta,
.woocommerce td.product-name dl.variation {
  font-size: 12px;
  color: var(--text-3);
}

.woocommerce td.product-name .wc-item-meta dd p,
.woocommerce td.product-name dl.variation dd p {
  line-height: normal;
  font-size: 12px;
  display: inline-block;
  color: var(--text-3);
}

.woocommerce td.product-name .wc-item-meta dt,
.woocommerce td.product-name dl.variation dt {
  font-weight: 400;
}

.woocommerce td.product-name .wc-item-meta dt,
.woocommerce td.product-name dl.variation dt,
.woocommerce td.product-name .wc-item-meta dd,
.woocommerce td.product-name dl.variation dd {
  padding-bottom: 5px;
}
/* ============================================
   VUA ĐỒ CÂU - Trang "Đơn hàng đã nhận" (Thank you)
   CHỈ áp dụng cho body.woocommerce-order-received
   Dán vào: Giao diện > Tùy biến > CSS bổ sung
   ============================================ */

body.woocommerce-order-received .woocommerce-order {
  margin: 0 auto;
}

/* ---------- Thông báo nhận đơn thành công ---------- */
body.woocommerce-order-received .woocommerce-thankyou-order-received {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  margin-bottom: 24px;
  font-size: 17px;
  font-weight: 700;
  color: var(--green-dark, #143836);
  background: var(--green-light, #e6efee);
  border: 1px solid var(--green-soft, #c7dcda);
  border-left: 4px solid var(--green, #205350);
  border-radius: var(--radius-lg, 12px);
}
body.woocommerce-order-received .woocommerce-thankyou-order-received::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--green, #205350);
  color: #fff;
  font-size: 16px;
}

/* ---------- Tổng quan đơn hàng (mã, ngày, email...) ---------- */
body.woocommerce-order-received ul.woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow, 0 4px 16px rgba(0, 0, 0, 0.06));
  overflow: hidden;
  border-collapse: collapse;
}
body.woocommerce-order-received ul.woocommerce-order-overview li {
  flex: 1 1 33%;
  min-width: 160px;
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid var(--line, #e5e7eb);
  border-right: 1px solid var(--line, #e5e7eb);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-3, #8a8a8a);
  margin: unset;
}
body.woocommerce-order-received ul.woocommerce-order-overview li strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text, #1a1a1a);
}
body.woocommerce-order-received ul.woocommerce-order-overview li.total strong,
body.woocommerce-order-received ul.woocommerce-order-overview li.total .amount {
  color: var(--orange, #ff8a00);
  font-weight: 800;
}

/* ---------- Tiêu đề section ---------- */
body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-order-received .woocommerce-column__title {
  margin: 0 0 16px;
  padding-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--green, #205350);
  border-bottom: 2px solid var(--green-light, #e6efee);
}

/* ---------- Bảng chi tiết đơn hàng ---------- */
body.woocommerce-order-received .woocommerce-table--order-details {
  width: 100%;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  border-collapse: collapse;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow, 0 4px 16px rgba(0, 0, 0, 0.06));
  margin-bottom: 32px;
}
body.woocommerce-order-received .woocommerce-table--order-details thead th {
  /* background: linear-gradient(135deg, var(--green-dark, #143836), var(--green, #205350)); */
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
  border: 0;
}
body.woocommerce-order-received .woocommerce-table--order-details tbody td {
  padding: 16px 18px;
  border-top: 1px solid var(--line, #e5e7eb);
  vertical-align: top;
}
body.woocommerce-order-received
  .woocommerce-table--order-details
  .product-name
  a {
  color: var(--text, #1a1a1a);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
body.woocommerce-order-received
  .woocommerce-table--order-details
  .product-name
  a:hover {
  color: var(--green, #205350);
}
body.woocommerce-order-received
  .woocommerce-table--order-details
  .product-quantity {
  color: var(--text-3, #8a8a8a);
  font-weight: 600;
}
body.woocommerce-order-received
  .woocommerce-table--order-details
  .product-total {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: var(--text, #1a1a1a);
}

/* Meta "Mua kèm:" */
body.woocommerce-order-received .wc-item-meta {
  margin: 8px 0 0;
  padding: 8px 12px;
  list-style: none;
  background: var(--bg-2, #fafafa);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2, #4a4a4a);
}
body.woocommerce-order-received .wc-item-meta li {
  display: flex;
  gap: 6px;
  margin: 0;
}
body.woocommerce-order-received .wc-item-meta p {
  margin: 0;
}
body.woocommerce-order-received .wc-item-meta-label {
  color: var(--green, #205350);
}

/* Chân bảng (tổng phụ, ship, tổng cộng) */
body.woocommerce-order-received .woocommerce-table--order-details tfoot th,
body.woocommerce-order-received .woocommerce-table--order-details tfoot td {
  padding: 13px 18px;
  border-top: 1px solid var(--line, #e5e7eb);
}
body.woocommerce-order-received .woocommerce-table--order-details tfoot th {
  text-align: left;
  font-weight: 600;
  color: var(--text-2, #4a4a4a);
}
body.woocommerce-order-received .woocommerce-table--order-details tfoot td {
  text-align: right;
  white-space: nowrap;
}
body.woocommerce-order-received
  .woocommerce-table--order-details
  tfoot
  .shipped_via {
  display: block;
  font-size: 12px;
  color: var(--text-3, #8a8a8a);
}
body.woocommerce-order-received
  .woocommerce-table--order-details
  tfoot
  tr:last-child
  th,
body.woocommerce-order-received
  .woocommerce-table--order-details
  tfoot
  tr:last-child
  td {
  background: var(--green-light, #e6efee);
  font-size: 18px;
  font-weight: 800;
  color: var(--green-dark, #143836);
}
body.woocommerce-order-received
  .woocommerce-table--order-details
  tfoot
  tr:last-child
  td
  .amount {
  color: var(--orange, #ff8a00);
}

/* ---------- Đoạn ghi chú COD ---------- */
body.woocommerce-order-received .woocommerce-order > p {
  padding: 14px 18px;
  background: var(--bg-2, #fafafa);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2, #4a4a4a);
  margin-bottom: 24px;
}

/* ---------- Địa chỉ khách hàng ---------- */
body.woocommerce-order-received .woocommerce-customer-details address {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow, 0 4px 16px rgba(0, 0, 0, 0.06));
  font-style: normal;
  line-height: 1.8;
  color: var(--text, #1a1a1a);
}
body.woocommerce-order-received .woocommerce-customer-details--phone,
body.woocommerce-order-received .woocommerce-customer-details--email {
  margin: 6px 0 0;
  color: var(--text-2, #4a4a4a);
}

body.woocommerce-order-received ul.woocommerce-order-overview li:nth-child(3) {
  border-right: unset;
}

body.woocommerce-order-received .woocommerce-table--order-details tbody td,
body.woocommerce-order-received .woocommerce-table--order-details thead th {
  display: table-cell;
}

body.woocommerce-order-received .woocommerce-table--order-details thead tr {
  background: linear-gradient(
    135deg,
    var(--green-dark, #143836),
    var(--green, #205350)
  );
}

body.woocommerce-order-received .wc-item-meta li,
body.woocommerce-order-received .wc-item-meta li p {
  font-size: 12px;
}
.return-to-shop .button.wc-backward {
  background-color: var(--green);
  color: #fff;
  border-radius: 99px;
}
div#reviews.woocommerce-Reviews,
.devvn_prod_cmt {
  max-width: 100%;
}
div#reviews.woocommerce-Reviews.style-v2 {
  background: #fff;
  padding: 0 0 10px;
  margin-bottom: unset;
  border-radius: unset;
}

div#reviews.woocommerce-Reviews .woocommerce-Reviews-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

div#reviews.woocommerce-Reviews .woocommerce-Reviews-title span {
  color: var(--green);
}

.entry-content .reviews_bar span.devvn_num_reviews {
  font-size: 12px !important;
  color: var(--text-3);
}

.entry-content .wc-tab-section-content .reviews_bar .devvn_stars_value {
  font-size: 12.5px !important;
}

.entry-content .reviews_bar .devvn_rating_bar .devvn_scala_rating {
  height: 10px;
  border-radius: 99px;
  text-align: left;
}

.entry-content
  .reviews_bar
  .devvn_rating_bar
  .devvn_scala_rating
  span.devvn_perc_rating {
  height: 10px;
  border-radius: 99px;
  margin-bottom: 2px;
}

#comments a.btn-reviews-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: #1e88e5;
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition:
    background 0.15s,
    transform 0.12s;
  white-space: nowrap;
}

.style-v2 .star_box_left {
  border: unset;
  padding: unset;
}

.style-v2 .star_box {
  padding: 18px;
}

body .style-v2 .star-average .woocommerce-product-rating {
  padding-right: unset;
}

.woocommerce
  div.product
  .style-v2
  .woocommerce-product-rating
  span.star_average {
  font-size: 30px !important;
  padding-bottom: 4px;
}

.woocommerce
  div.product
  .style-v2
  .woocommerce-product-rating
  span.star_average
  i.devvn-star {
  font-size: 28px;
  top: -1px;
}

span.devvn_num_reviews {
  min-width: 120px !important;
}
.pd-content .devvn_filter_btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.15s;
  text-decoration: unset;
  margin-right: unset;
  margin-bottom: unset;
}

.pd-content .devvn_filter_btn:hover {
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.woocommerce #reviews #comments > ol.commentlist {
  padding-left: unset;
}

.devvn-style2 .devvn_review_avatar {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-weight: 800;
  font-size: 16px;
  width: 40px;
  margin-right: unset;
}

.devvn_review_bottom .comment-edit-link {
  display: none;
}
.woocommerce #reviews .star-rating span:before {
  font-size: 11px;
}

.woocommerce
  .entry-content
  .wc-tab-section-content.pd-content
  #reviews
  .rating-count {
  display: none;
}

.woocommerce #reviews .prod-rating-wrap.product-meta {
  margin-top: unset;
  margin-bottom: 8px;
}

body.woocommerce #reviews #comments ol.commentlist li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin: unset;
}
.bottom-nav a[data-open="buynow"]:before {
  background: linear-gradient(135deg, var(--orange, #ff8a00), #ff6a00);
  border-radius: 8px;
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 0;
  bottom: 0;
  z-index: -1;
}

.bottom-nav a[data-open="buynow"] {
  position: relative;
  color: #fff;
}

body.woocommerce #reviews #comments ol.commentlist li:last-child {
  border-bottom: unset;
}

body .devvn_review_mid .description p {
  font-size: 13.5px;
}

.devvn-style2 .devvn_review_bottom {
  margin-top: unset;
  font-size: 12px;
  line-height: 1.4;
}

.devvn-style2 .devvn_review_bottom .comment-reply-link {
  text-decoration: none;
}

.devvn-style2 .devvn_review_top .woocommerce-review__verified.verified {
  margin-bottom: unset;
  background-position: 0px 1px;
  padding-left: 16px;
  background-size: 12px;
  font-size: 12px;
}

.devvn-style2 .devvn_review_top strong.woocommerce-review__author {
  margin: unset;
}

body.woocommerce #reviews #comments ol.commentlist li .comment-text p.meta {
  line-height: normal;
  margin-bottom: 5px;
}
.bottom-nav a {
  text-align: center;
}
.single_add_to_cart_button::after {
  left: 50%;
  width: 30px;
  height: 30px;
  top: 50% !important;
  color: #000;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -15px;
  margin-top: -15px;
}

.single_add_to_cart_button {
  position: relative;
}
.woocommerce
  div.product
  form.cart
  button.single_add_to_cart_button.vdc-buy-now:before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("./images/lock.svg");
  position: relative;
  top: -2px;
}
/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .star_box_right {
    width: 160px;
  }

  .woocommerce div.product form.cart button.single_add_to_cart_button {
    max-width: calc(50% - 7px);
    flex-basis: calc(50% - 7px) !important;
  }

  .woocommerce div.product form.cart div.quantity {
    margin-right: 50%;
  }
  .star-average {
    border-right: unset;
  }
  .woocommerce div.product form.cart .variations .swatchinput {
    width: calc((100% - 32px) / 5) !important;
  }

  .woocommerce div.product form.cart table td.value .attribute-swatch {
    width: 100%;
  }
}
@media (min-width: 601px) {
  body.woocommerce-order-received
    ul.woocommerce-order-overview
    li:nth-child(4) {
    border-bottom: unset;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1140px) {
  /* menu sát phải màn hình */
  .container > ul > li:nth-last-child(-n + 2) > .sub-menu {
    left: auto;
    right: 0;
  }
}
@media (max-width: 768px) {
  .header-main form.search.devvn_form_quicksearch {
    max-width: 100%;
  }
  #menu-menu-mobile .menu-item > .menu-sub li.menu-item span.menu-text {
    flex-grow: 1;
  }
  #menu-menu-mobile .menu-item.active > .menu-link .menu-ico img {
    filter: brightness(0) saturate(100%) invert(28%) sepia(33%) saturate(700%)
      hue-rotate(130deg) brightness(85%) contrast(90%);
  }
  .woocommerce div.product .woocommerce-tabs .panel {
    order: 3;
  }

  .woocommerce div.product .woocommerce-tabs #tab-description {
    order: 2;
  }

  .woocommerce div.product .woocommerce-tabs #tab-vdc_info_base {
    order: 1;
  }
  #menu-menu-mobile .menu-item > .menu-sub li.menu-item > a {
    display: flex;
  }

  #menu-menu-mobile .menu-item > .menu-sub li.menu-item > a span.chev {
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }
  .reviews_bar .devvn_review_row {
    grid-template-columns: 30px 1fr 115px;
  }
  div#reviews.woocommerce-Reviews.style-v2 {
    padding: 15px 15px 5px;
  }
  div#reviews .devvn_reviews_filter {
    flex-direction: row;
  }
  .reviews-wrap {
    padding: 14px;
  }
  .reviews-title {
    font-size: 13px;
  }
  .block_newsletter_form form.wpcf7-form button {
    font-size: 10px;
    padding: 0 10px;
  }
  .header-main .search button:not(.cart-btn) {
    height: 32px;
    width: 40px;
  }
  .woocommerce div.product form.cart {
    margin-bottom: unset;
  }
  .block_newsletter_form form.wpcf7-form input.wpcf7-form-control.wpcf7-email {
    padding-right: 115px;
  }
  .product_title.entry-title {
    font-size: 18px;
  }

  .woocommerce div.product div.summary p.price {
    font-size: 20px;
  }

  .single_variation_wrap
    div.woocommerce-variation
    .woocommerce-variation-price
    .price {
    font-size: 20px;
  }
  .star_box {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
    text-align: center;
  }
  .star-average {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 10px;
  }
  .devvn_review_row {
    grid-template-columns: 30px 1fr 100px;
    font-size: 11.5px;
    gap: 6px;
  }
  .devvn_num_reviews {
    font-size: 11px;
  }
  .devvn_filter_btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  .devvn_review_avatar {
    width: 36px;
    height: 36px;
  }
  .woocommerce-review__author {
    font-size: 13px;
  }
  .review-form-block {
    padding: 14px;
  }
  .comment-form-rating .stars a {
    font-size: 22px;
  }
}
@media (max-width: 600px) {
  body.single-product table.variations tr {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  body.single-product table.variations td.value {
    width: 100%;
  }

  body.woocommerce-order-received ul.woocommerce-order-overview li {
    flex: 1 1 100%;
    border-right: 0;
  }
}
@media (max-width: 549px) {
  form.wpcf7-form .form-row p {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   WOOCOMMERCE — MY ACCOUNT + ENDPOINTS
   Đồng bộ theme Vua Đồ Câu — scope kín trong body.woocommerce-account
   Phủ: my-account, orders, view-order, downloads, edit-account,
        edit-address, payment-methods, add-payment-method, lost-password
   ========================================================= */

/* ---- Bảng màu theme (chỉ áp dụng trong scope) ---- */
body.woocommerce-account {
  --green: #205350;
  --green-dark: #143836;
  --green-light: #e6efee;
  --green-soft: #c7dcda;
  --orange: #ff8a00;
  --red: #e02d2d;
  --text: #1a1a1a;
  --text-2: #4a4a4a;
  --text-3: #8a8a8a;
  --line: #e5e7eb;
  --bg: #f6f7f9;
  --bg-2: #fafafa;
}

/* ---- Khung tổng ---- */
body.woocommerce-account .woocommerce {
  /* max-width: 1140px; */
  margin: 0 auto;
  color: var(--text);
}

/* =========================================================
   1. LAYOUT (sidebar + nội dung)
   ========================================================= */
body.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 24%;
}
body.woocommerce-account .woocommerce-MyAccount-content {
  width: 72%;
}

@media (max-width: 768px) {
  body.woocommerce-account .woocommerce-MyAccount-navigation,
  body.woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
    float: none;
  }
  #menuDrawer .drawer-search form.search.search_form_post input {
    height: 42px;
  }

  #menuDrawer .drawer-search form.search.search_form_post button {
    top: 5px;
    right: 5px;
    height: 32px;
    width: 40px;
  }
}

/* ---- Menu điều hướng ---- */
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  margin: 2px 0;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--text-2);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--green-light);
  color: var(--green-dark);
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: linear-gradient(135deg, var(--green) 0%, #2a6f6b 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(32, 83, 80, 0.25);
}
body.woocommerce-account
  .woocommerce-MyAccount-navigation
  ul
  li--customer-logout
  a:hover {
  background: #fdeaea;
  color: var(--red);
}

/* =========================================================
   2. FORM & INPUT (login, register, edit-account, address...)
   ========================================================= */
body.woocommerce-account form .form-row label,
body.woocommerce-account label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: inline-block;
}
body.woocommerce-account .required {
  color: var(--red);
}

body.woocommerce-account form .form-row input[type="text"],
body.woocommerce-account form .form-row input[type="email"],
body.woocommerce-account form .form-row input[type="password"],
body.woocommerce-account form .form-row input[type="tel"],
body.woocommerce-account form .form-row select,
body.woocommerce-account form .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--green-soft);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text);
  font-size: 15px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
body.woocommerce-account form .form-row input:focus,
body.woocommerce-account form .form-row select:focus,
body.woocommerce-account form .form-row textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(32, 83, 80, 0.15);
}

/* Khối form (login/register) */
body.woocommerce-account .col-1,
body.woocommerce-account .col-2 {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Tiêu đề khối */
body.woocommerce-account h2,
body.woocommerce-account h3 {
  color: var(--green-dark);
  font-weight: 700;
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-light);
}

body.woocommerce-account .woocommerce-LostPassword a {
  color: var(--green);
  font-weight: 600;
}
body.woocommerce-account .woocommerce-LostPassword a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}
form.woocommerce-EditAccountForm fieldset {
  margin-bottom: 15px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

body.woocommerce-account
  :where(.woocommerce)
  .select2-container
  .select2-selection--single
  .select2-selection__rendered {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text);
  font-size: 15px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
body.woocommerce-account
  table.shop_table
  tbody
  td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions {
  text-align: center;
  padding: 10px;
}
body.woocommerce-account
  :where(.woocommerce)
  .select2-container
  .select2-dropdown,
:where(.woocommerce) .select2-container .select2-selection {
  border: 1px solid var(--green-soft);
  border-radius: 10px;
}

body.woocommerce-account .woocommerce-address-fields__field-wrapper {
  margin-bottom: 15px;
}
/* =========================================================
   3. NÚT BẤM (chính = teal, CTA quan trọng = cam .alt)
   ========================================================= */
body.woocommerce-account .button,
body.woocommerce-account button[type="submit"],
body.woocommerce-account input[type="submit"] {
  display: inline-block;
  background: linear-gradient(135deg, var(--green) 0%, #2a6f6b 100%);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  box-shadow: 0 4px 12px rgba(32, 83, 80, 0.22);
}
body.woocommerce-account .button:hover,
body.woocommerce-account button[type="submit"]:hover,
body.woocommerce-account input[type="submit"]:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(32, 83, 80, 0.3);
  color: var(--green) !important;
}
body.woocommerce-account .button.alt {
  background: linear-gradient(135deg, var(--orange), #ff6a00);
  box-shadow: 0 4px 12px rgba(255, 138, 0, 0.28);
}

/* =========================================================
   4. THÔNG BÁO (message / info / error)
   ========================================================= */
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info {
  border-top: 3px solid var(--green);
  background: var(--green-light);
  border-radius: 8px;
  color: var(--green-dark);
}
body.woocommerce-account .woocommerce-message::before,
body.woocommerce-account .woocommerce-info::before {
  color: var(--green);
}
body.woocommerce-account .woocommerce-error li {
  border-top: 3px solid var(--red);
  background: #fdeaea;
  border-radius: 8px;
  color: var(--red);
}

/* Link nội dung */
body.woocommerce-account .woocommerce-MyAccount-content a {
  color: var(--green);
  font-weight: 600;
}
body.woocommerce-account .woocommerce-MyAccount-content a:hover {
  color: var(--green-dark);
}

/* =========================================================
   5. BẢNG (orders, downloads, address)
   ========================================================= */
body.woocommerce-account table.shop_table,
body.woocommerce-account .woocommerce-orders-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  /* overflow: hidden; */
  border-collapse: collapse;
  border-spacing: 0;
}
body.woocommerce-account table.shop_table thead th {
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 700;
  padding: 14px;
  border: none;
  display: table-cell;
}
body.woocommerce-account table.shop_table tbody td {
  padding: 14px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  display: table-cell;
}
body.woocommerce-account table.shop_table tbody tr:hover {
  background: var(--bg);
}

/* Khối địa chỉ */
body.woocommerce-account .woocommerce-Address {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
body.woocommerce-account .woocommerce-Address address {
  color: var(--text-2);
  line-height: 1.7;
}
body.woocommerce-account .edit {
  color: var(--green);
  font-weight: 600;
}

.archive-main .load-more-wrap,
.fishcat-archive .load-more-wrap {
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Nút "Xem thêm" chế độ AJAX là <button> (không có URL đích thật) — reset các
   mặc định của form control để trông giống hệt biến thể <a>. */
button.load-more {
  font-family: inherit;
  cursor: pointer;
}
button.load-more[disabled] {
  opacity: 0.65;
  cursor: default;
}

.catalog-product-list__total .catalog_total-count {
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-3);
}

.catalog-product-list__total progress.plp-product-list__progress {
  margin: 0 auto;
  display: block;
  height: 5px;
}

span.pd-soldin-box {
  display: none;
}

.item.product .product-info .pd-soldin-box {
  display: block;
  text-align: right;
  flex-grow: 1;
}

.woocommerce div.product form.cart {
  margin-bottom: unset;
}

.pd-summary-text .pd-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.pd-summary-text .pd-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: #fff;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    filter 0.15s ease,
    box-shadow 0.15s ease;
}

.pd-summary-text .pd-contact-btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.pd-summary-text .pd-contact-btn:hover {
  filter: brightness(0.96);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pd-summary-text .pd-contact-messenger {
  color: #0084ff;
}

.pd-summary-text .pd-contact-call {
  color: #ec1c5e;
}

.pd-summary-text .pd-contact-zalo {
  color: #0068ff;
}

.woocommerce div.product div.summary .pd-summary-text {
  width: 100%;
  display: inline-block;
  background: #fffbf4;
  padding: 10px;
  border: 1px dashed #f8830c;
  border-radius: 8px;
  margin-bottom: 10px;
}

.pd-summary-text .content p {
  margin-top: 5px;
  margin-bottom: 15px;
}

.pd-summary-text .pd-contact {
  margin-bottom: 5px;
}
.pd-content .prod-info-base table {
  margin-top: unset;
  border: unset;
}

.pd-content .prod-info-base > :last-child {
  margin-bottom: unset;
}
.woocommerce div.product .woocommerce-tabs {
  display: flex;
  column-gap: 30px;
  flex-wrap: wrap;
}
section#tab-description .wc-tab-section-content.pd-content {
  background: #f5f8fa;
  text-align: justify;
}
.woocommerce
  div.product
  .woocommerce-tabs:has(#tab-vdc_info_base)
  #tab-vdc_info_base
  .wc-tab-section-content.pd-content {
  position: sticky;
  top: 0;

  padding: unset;
  border: unset;
  text-align: justify;
}
.woocommerce
  div.product
  .woocommerce-tabs:has(#tab-vdc_info_base)
  #tab-description {
  width: calc(60% - 15px);
}

.woocommerce
  div.product
  .woocommerce-tabs:has(#tab-vdc_info_base)
  #tab-vdc_info_base {
  width: calc(40% - 15px);
}

/* Khi không có vdc_info_base thì description full */
.woocommerce div.product .woocommerce-tabs #tab-description {
  width: 100%;
}

/* reviews nếu có */
.woocommerce
  div.product
  .woocommerce-tabs
  .panel:not(#tab-description, #tab-vdc_info_base) {
  width: 100%;
  flex-basis: 100%;
}

/* ===== Technology tab: ảnh slide không bị cắt =====
   Khung ảnh cao cố định + object-fit:contain để owl-carousel đo đúng
   chiều cao ngay từ đầu (không phụ thuộc thời điểm ảnh tải xong). */
.tech-block .tech-slide .tech-img {
  height: 305px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
}
.tech-block .tech-slide .tech-img img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}
.tech-slider.owl-carousel .owl-nav button svg {
  width: 45px;
  height: 45px;
}
.tech-block {
  max-width: 1185px;
  margin: 0 auto;
  padding-top: 30px;
}

.tech-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

.tech-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 56px;
  padding: 8px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.5;
  transition:
    opacity 0.15s ease,
    border-color 0.15s ease;
}

.tech-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tech-thumb:hover {
  opacity: 1;
}

.tech-thumb.active {
  opacity: 1;
  border-color: #ddd;
  border-bottom: 2px solid #111;
}

.tech-slider.owl-carousel {
  position: relative;
}

.tech-slide {
  display: flex;
  gap: 25px;
  align-items: center;
}

.tech-slide .tech-img {
  flex: 0 0 305px;
  max-width: 305px;
}

.tech-slide .tech-img img {
  display: block;
  width: 100%;
  height: auto;
}

.tech-info {
  flex: 1;
  min-width: 0;
}
.tech-block-title strong {
  font-weight: 800;
}
.tech-block-title {
  font-size: 19px;

  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 20px;
}
.tech-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tech-desc {
  line-height: 1.8;
  color: #444;
}

.tech-slider.owl-carousel .owl-nav button.owl-prev,
.tech-slider.owl-carousel .owl-nav button.owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  background: transparent;
  border: 0;
  margin: 0;
}

.tech-slider.owl-carousel .owl-nav button.owl-prev {
  left: -30px;
}

.tech-slider.owl-carousel .owl-nav button.owl-next {
  right: -30px;
}

.tech-slider.owl-carousel .owl-nav button.owl-prev:hover,
.tech-slider.owl-carousel .owl-nav button.owl-next:hover {
  color: #000;
  background: transparent;
}
/* Khung ảnh — kiểu thẻ sản phẩm sạch sẽ */
.vdc_technology_section .tech-img {
  flex: 0 0 40%;
  max-width: 40%;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1; /* khung vuông đều nhau giữa các slide */
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}

.vdc_technology_section .tech-img img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0; /* bỏ bo góc trên ảnh, để khung lo phần bo */
  display: block;
}

#tab-vdc_technology .pd-content {
  padding: 30px 0 15px;
  border: unset;
}
/* ===== Bottom-sheet "Mua ngay" (mobile, kiểu Shopee) ===== */
.buy-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  z-index: 1200;
}
.buy-sheet-overlay.open {
  opacity: 1;
  visibility: visible;
}
.buy-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1201;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.buy-sheet.open {
  transform: translateY(0);
}
.buy-sheet-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid #eee;
}
.buy-sheet-media {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  /* margin-top: -42px; */
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.buy-sheet-media img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  display: block;
}
.buy-sheet-info {
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
}
.buy-sheet-price {
  font-size: 18px;
  font-weight: 700;
  color: #d70018;
}
.buy-sheet-price del {
  margin-left: 6px;
  font-size: 15px;
  font-weight: 400;
  color: #999;
}
.buy-sheet-price ins {
  text-decoration: none;
}
.buy-sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #888;
  cursor: pointer;
}
.buy-sheet-body {
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* Form mua hàng khi nằm trong sheet */
.buy-sheet-body form.cart {
  margin: 0;
}
body.no-scroll {
  overflow: hidden;
}
.buy-sheet-text {
  color: #999;
  padding-top: 3px;
}
body.single-product div#buySheetBody .reset_variations {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

body.single-product div#buySheetBody table.variations {
  position: relative;
  margin-bottom: 10px;
}

body.single-product div#buySheetBody table.variations td {
  padding: unset;
}

div#buySheetBody .quantity {
  width: 100%;
}

div#buySheetBody button.single_add_to_cart_button.button.alt {
  display: none;
}

div#buySheetBody button.single_add_to_cart_button.vdc-buy-now.button {
  width: 100%;
  margin: unset;
  font-size: 14px;
  padding: 11px;
  line-height: normal;
}

div#buySheetBody .woocommerce-variation-add-to-cart.variations_button {
  margin: unset;
  border-top: 1px solid #eee;
}

body.single-product div#buySheetBody table.variations label.wcvaswatchlabel {
  box-shadow: unset !important;
  border: unset !important;
  outline: unset !important;
}

body.single-product div#buySheetBody table.variations .attribute-swatch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.single-product
  div#buySheetBody
  table.variations
  .attribute-swatch
  .swatchinput {
  padding: unset;
  border: 1.5px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px !important;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

body.single-product
  div#buySheetBody
  table.variations
  .attribute-swatch
  .swatchinput
  span {
  font-size: 11px !important;
}
@media (max-width: 960px) {
  .woocommerce
    div.product
    .woocommerce-tabs:has(#tab-vdc_info_base)
    #tab-description,
  .woocommerce
    div.product
    .woocommerce-tabs:has(#tab-vdc_info_base)
    #tab-vdc_info_base {
    width: 100%;
  }
}
@media (max-width: 768px) {
  #cartDrawer .cart-head .cart-head-title {
    padding: 12px;
    font-size: 16px;
  }

  #cartDrawer .cart-items {
    overflow-y: unset;
  }

  #cartDrawer {
    overflow-y: auto;
  }

  #cartDrawer .cart-row.total,
  #cartDrawer .btn-cod,
  #cartDrawer .btn-view-cart {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  #cartDrawer .cart-items .cart-item:last-child {
    border-bottom: unset;
  }
  body.single-product
    div#buySheetBody
    table.variations
    .attribute-swatch
    .swatchinput.active-swatch {
    box-shadow: inset 0 0 0 1px var(--green);
    border-color: var(--green);
    background: var(--green-light);
  }

  div#buySheetBody .quantity label.screen-reader-text {
    clip: unset;
    height: auto;
    overflow: visible;
    width: auto;
    left: 0;
    clip-path: unset;
    top: 20px;
    font-size: 14px;
  }

  div#buySheetBody
    button.single_add_to_cart_button.vdc-buy-now.button:not(.disabled) {
    background: linear-gradient(135deg, var(--orange, #ff8a00), #ff6a00);
    color: #fff;
  }
  body.single-product div#buySheetBody table.variations td.label {
    font-size: 13px;
  }

  body.single-product
    div#buySheetBody
    table.variations
    td.label
    .swatchtitlelabel {
    text-transform: uppercase;
  }
  body.single-product div#buySheetBody .reset_variations {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
  }
  body.single-product
    div#buySheetBody
    .single_variation_wrap
    div.woocommerce-variation
    .woocommerce-variation-price {
    padding-top: 15px;
    margin-bottom: 15px !important;
  }
  body.single-product div#buySheetBody table.variations {
    position: relative;
    margin-bottom: 10px;
  }

  body.single-product div#buySheetBody table.variations td {
    padding: unset;
  }

  div#buySheetBody .quantity {
    width: 112px;
    display: flex;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    margin-top: 14px;
    margin-left: auto;
  }

  div#buySheetBody button.single_add_to_cart_button.button.alt {
    display: none;
  }

  div#buySheetBody button.single_add_to_cart_button.vdc-buy-now.button {
    width: 100%;
    margin: unset;
    font-size: 14px;
    padding: 11px;
    line-height: normal;
    border-radius: 99px;
    text-transform: uppercase;
    text-shadow: unset;
    min-height: 45px;
  }

  div#buySheetBody .woocommerce-variation-add-to-cart.variations_button {
    margin: unset;
    border-top: 1px solid #eee;
    position: relative;
  }

  body.single-product div#buySheetBody table.variations .swatchinput label {
    box-shadow: unset !important;
    border: unset !important;
    outline: unset !important;
  }

  body.single-product div#buySheetBody table.variations .attribute-swatch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  body.single-product
    div#buySheetBody
    table.variations
    .attribute-swatch
    .swatchinput {
    padding: unset;
    border: 1.5px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px !important;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
  }

  body.single-product
    div#buySheetBody
    table.variations
    .attribute-swatch
    .swatchinput
    span {
    font-size: 11px !important;
  }
  .pd-summary-text .pd-contact-btn {
    font-size: 13px;
  }
  footer.footer .footer-grid {
    margin-bottom: 20px;
  }
  .footer .footer-col .widget-title {
    display: flex;
    margin-bottom: 0;
  }
  .footer .footer-col .widget.widget_nav_menu > div {
    display: none;
  }
  .woocommerce div.product .woocommerce-tabs #tab-vdc_technology {
    padding-bottom: unset;
  }
  .tech-block .tech-slide .tech-img {
    height: 180px;
  }
  .tech-slider.owl-carousel .owl-nav button.owl-prev,
  .tech-slider.owl-carousel .owl-nav button.owl-next {
    top: 90px;
    bottom: auto;
    transform: translateY(-20px);
  }

  .tech-slider.owl-carousel .owl-nav button.owl-next {
    right: -25px;
  }

  .tech-slider.owl-carousel .owl-nav button.owl-prev {
    left: -25px;
  }
  .footer .widget.widget_vdc_social {
    margin-bottom: 15px;
  }
  .tech-slide {
    flex-direction: column;
    gap: 18px;
  }

  .tech-slide .tech-img {
    flex: none;
    max-width: 100%;
  }
}

/* ===== Nút liên hệ nổi (floating contact) ===== */
.vdc-float-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.vdc-fc-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  width: 300px;
  pointer-events: none;
  position: absolute;
    bottom: 80px;
    right: 0;
}
.vdc-float-contact.open .vdc-fc-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.vdc-fc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #222;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.vdc-fc-item:hover {
  color: #000;
}
.vdc-fc-ico {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.vdc-fc-ico svg {
  width: 20px;
  height: 20px;
}
.vdc-fc-call .vdc-fc-ico {
  background: #25a55f;
}
.vdc-fc-mess .vdc-fc-ico {
  background: #0084ff;
}
.vdc-fc-zalo .vdc-fc-ico {
  background: #0068ff;
}

/* Nút FAB chính (đã gộp position:relative) */
.vdc-fc-toggle {
  position: relative;
  align-self: flex-end;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: #16794f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease;
}
.vdc-fc-toggle .vdc-fc-open .vdc-fc-cyc {
  border-radius: 100%;
  color: #16794f;
}

.vdc-fc-toggle:hover {
  transform: scale(1.06);
}
.vdc-fc-toggle svg {
  width: 26px;
  height: 26px;
}
.vdc-fc-toggle span {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vdc-fc-toggle .vdc-fc-close {
  display: none;
}
.vdc-float-contact.open .vdc-fc-toggle .vdc-fc-open {
  display: none;
}
.vdc-float-contact.open .vdc-fc-toggle .vdc-fc-close {
  display: flex;
}

/* ===== Sóng lan tỏa khi đóng ===== */
@keyframes vdc-fc-pulse {
  0% {
    box-shadow:
      0 8px 22px rgba(0, 0, 0, 0.24),
      0 0 0 0 rgba(22, 121, 79, 0.45);
  }
  70% {
    box-shadow:
      0 8px 22px rgba(0, 0, 0, 0.24),
      0 0 0 16px rgba(22, 121, 79, 0);
  }
  100% {
    box-shadow:
      0 8px 22px rgba(0, 0, 0, 0.24),
      0 0 0 0 rgba(22, 121, 79, 0);
  }
}
.vdc-float-contact:not(.open) .vdc-fc-toggle {
  animation: vdc-fc-pulse 1.8s ease-out infinite;
}

/* ===== Icon đổi luân phiên: chat -> phone -> messenger -> zalo ===== */
.vdc-fc-toggle .vdc-fc-open {
  position: relative;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 100%;
  background-color: #fff;
}
.vdc-fc-toggle .vdc-fc-open .vdc-fc-cyc {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.vdc-fc-toggle .vdc-fc-open .vdc-fc-cyc svg {
  width: 26px;
  height: 26px;
}

.vdc-float-contact:not(.open) .vdc-fc-toggle .vdc-fc-open .vdc-fc-cyc {
  animation: vdc-fc-cycle 8s ease-in-out infinite;
}
.vdc-float-contact:not(.open)
  .vdc-fc-toggle
  .vdc-fc-open
  .vdc-fc-cyc:nth-child(1) {
  animation-delay: 0s;
}
.vdc-float-contact:not(.open)
  .vdc-fc-toggle
  .vdc-fc-open
  .vdc-fc-cyc:nth-child(2) {
  animation-delay: 2s;
}
.vdc-float-contact:not(.open)
  .vdc-fc-toggle
  .vdc-fc-open
  .vdc-fc-cyc:nth-child(3) {
  animation-delay: 4s;
}
.vdc-float-contact:not(.open)
  .vdc-fc-toggle
  .vdc-fc-open
  .vdc-fc-cyc:nth-child(4) {
  animation-delay: 6s;
}

@keyframes vdc-fc-cycle {
  0% {
    opacity: 0;
    transform: translateX(140%);
  }
  4% {
    opacity: 1;
    transform: translateX(0);
  }
  25% {
    opacity: 1;
    transform: translateX(0);
  }
  29% {
    opacity: 0;
    transform: translateX(-140%);
  }
  100% {
    opacity: 0;
    transform: translateX(-140%);
  }
}
/* ===== Nút đóng bottom-sheet liên hệ (chỉ mobile) ===== */
.vdc-fc-sheet-close {
  display: none;
}
.filter-btn span.num {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--green);
  border-radius: 100%;
  font-size: 10px;
}
/* `display` ở trên đè thuộc tính [hidden] của HTML -> badge rỗng vẫn hiện. */
.filter-btn span.num[hidden] {
  display: none;
}
.hot-tabs .tab-btn {
  order: 3;
}

.hot-tabs .tab-btn:nth-child(1) {
  order: 2;
}

.hot-tabs .tab-btn:nth-child(2) {
  order: 1;
}
/* ===== Tôn trọng prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  .vdc-float-contact .vdc-fc-toggle,
  .vdc-fc-open .vdc-fc-cyc {
    animation: none !important;
  }
  .vdc-fc-open .vdc-fc-cyc:first-child {
    opacity: 1 !important;
  }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .vdc-float-contact {
    right: 12px;
    bottom: 72px;
  }
  .vdc-fc-toggle {
    width: 50px;
    height: 50px;
  }
  .vdc-fc-toggle svg {
    width: 24px;
    height: 24px;
  }

  .vdc-float-contact .vdc-fc-toggle {
    display: none;
  }
  .vdc-float-contact {
    right: 0;
    left: 0;
    bottom: 0;
    align-items: stretch;
    gap: 0;
  }
  .vdc-float-contact::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease;
    z-index: 1290;
  }
  .vdc-float-contact.open::before {
    opacity: 1;
    visibility: visible;
  }
  .vdc-float-contact .vdc-fc-list {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1300;
    width: 100%;
    flex-direction: column;
    gap: 6px;
    border-radius: 16px 16px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    opacity: 1;
    visibility: visible;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .vdc-float-contact.open .vdc-fc-list {
    transform: translateY(0);
  }
  .vdc-float-contact .vdc-fc-item {
    padding: 10px 6px;
  }

  .vdc-fc-sheet-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    z-index: 2;
  }
  .vdc-fc-sheet-close svg {
    width: 18px;
    height: 18px;
  }
  .vdc-fc-sheet-close:hover {
    background: #e2e2e2;
  }
  .hot-tabs .tab-btn:nth-child(2) {
    display: none;
  }

  .hot-tabs .tab-panel:nth-child(3) {
    display: none;
  }
}

/* ===== Widget sidebar Shop: lưới số cột (mobile mặc định, desktop >=769px) ===== */

/* 1 rule grid duy nhất, số cột lấy từ biến --vdc-cols */
.widget[class*="vdc-cols-m-"] > ul,
.widget[class*="vdc-cols-m-"] > nav > ul,
.widget[class*="vdc-cols-m-"] > div > ul {
  display: grid;
  grid-template-columns: repeat(
    var(--vdc-cols, 1),
    minmax(0, 1fr)
  ); /* minmax(0,1fr): chống tràn */
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

/* Số cột MOBILE */
.widget.vdc-cols-m-1 {
  --vdc-cols: 1;
}
.widget.vdc-cols-m-2 {
  --vdc-cols: 2;
}
.widget.vdc-cols-m-3 {
  --vdc-cols: 3;
}
.widget.vdc-cols-m-4 {
  --vdc-cols: 4;
}
.widget.vdc-cols-m-5 {
  --vdc-cols: 5;
}

/* Số cột DESKTOP (ghi đè biến, không cần lặp lại rule grid) */
@media (min-width: 769px) {
  .widget.vdc-cols-d-1 {
    --vdc-cols: 1;
  }
  .widget.vdc-cols-d-2 {
    --vdc-cols: 2;
  }
  .widget.vdc-cols-d-3 {
    --vdc-cols: 3;
  }
  .widget.vdc-cols-d-4 {
    --vdc-cols: 4;
  }
  .widget.vdc-cols-d-5 {
    --vdc-cols: 5;
  }
}

/* ===== Kiểu nút lưới (áp dụng khi KHÔNG phải 1 cột desktop) ===== */
.widget[class*="vdc-cols-m-"]:not(.vdc-cols-d-1) > ul li a:before,
.widget[class*="vdc-cols-m-"]:not(.vdc-cols-d-1) > ul li span.count {
  display: none;
}

.widget[class*="vdc-cols-m-"]:not(.vdc-cols-d-1)
  > ul
  li.woocommerce-widget-layered-nav-list__item {
  padding: 0 !important;
  min-width: 0; /* bắt buộc để ô con co trong grid, không đẩy tràn */
  position: relative;
}
.widget[class*="vdc-cols-m-"]:not(.vdc-cols-d-1)
  > ul
  li.woocommerce-widget-layered-nav-list__item.chosen
  a {
  border-color: var(--green);
  background: var(--green-light);
}
.widget[class*="vdc-cols-m-"]:not(.vdc-cols-d-1)
  > ul
  li.woocommerce-widget-layered-nav-list__item.chosen
  a:after {
  content: "";
  position: absolute;
  background-color: var(--green);
  width: 7px;
  height: 7px;
  border-radius: 100%;
}
.widget[class*="vdc-cols-m-"]:not(.vdc-cols-d-1) > ul li.chosen a::after {
  left: auto;
  right: 4px;
  top: 4px;
}
.widget[class*="vdc-cols-m-"]:not(.vdc-cols-d-1)
  > ul
  li.woocommerce-widget-layered-nav-list__item
  a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: center;
  white-space: normal; /* cho chữ dài xuống dòng */
  overflow-wrap: anywhere; /* mã kiểu "1631FF-2 - Dài 1m91" không phá khung */
}

/* ===== Box Newsletter trước footer (3 cột: Tin tức / Form / Follow us) ===== */
.vdc-nl-box {
  background: #f7f7f7;
  border-top: 1px solid #ececec;
  padding: 38px 0;
}
.vdc-nl-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 34px;
  align-items: center;
}
.vdc-nl-title {
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.vdc-nl-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vdc-nl-post {
  display: flex;
  gap: 12px;
}
.vdc-nl-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
}
.vdc-nl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vdc-nl-post-body {
  min-width: 0;
}
.vdc-nl-post-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #222;
  text-decoration: none;
}
.vdc-nl-post-title:hover {
  color: #16794f;
}
.vdc-nl-date {
  font-size: 12px;
  color: #888;
}
.vdc-nl-desc {
  margin: 0 0 14px;
  line-height: 1.6;
}
.vdc-nl-form .newsletter-form {
  display: flex;
  gap: 8px;
  padding: 5px;
  box-shadow: unset;
  position: relative;
}
.vdc-nl-form .newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 14px;
}
.vdc-nl-form .newsletter-form button {
  padding: 11px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  position: inherit;
    width: unset;
    height: unset;
    top: unset;
    right: unset;
}
.vdc-nl-follow .socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.vdc-nl-follow .socials a img,
.vdc-nl-follow .socials a svg {
  display: block;
}
.vdc-nl-follow-extra {
  margin-top: 14px;
}
.vdc-nl-col.vdc-nl-follow {
  display: flex;
  gap: 15px;
}
.vdc-nl-follow .socials a {
  border-radius: 100%;
  width: 36px;
  height: 36px;
  overflow: hidden;
}
.vdc-nl-col.vdc-nl-follow .vdc-nl-title {
  margin: unset;
}
.newsletter .vdc-nl-title {
  margin-bottom: unset;
}
article.item.product .product-info .product-meta {
  margin-top: unset;
  margin-bottom: 6px;
}
/* ===== Badge HẾT HÀNG phủ ảnh sản phẩm (vòng lặp shop) ===== */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  position: relative;
  display: block;
}
.vdc-out-of-stock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}
.vdc-out-of-stock span {
  width: 100%;
  text-align: center;
  padding: 9px 0;
  background: rgba(58, 90, 150, 0.82);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
@media (min-width: 767px) {
  .vdc-nl-col.vdc-nl-follow {
    justify-content: flex-end;
  }
}
@media (max-width: 1200px) {
  .vdc-nl-grid {
    gap: 25px;
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table thead th,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 1140px) {
  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals {
    max-width: 100%;
    flex-basis: 100%;
  }
}
@media (max-width: 992px) {
  .vdc-nl-grid {
    grid-template-columns: 1fr 1fr;
  }
  .vdc-nl-col.vdc-nl-news {
    order: 1;
  }

  .vdc-nl-col.vdc-nl-form {
    order: 3;
    grid-column: 1 / -1;
  }

  .vdc-nl-col.vdc-nl-follow {
    order: 2;
  }
}
@media (max-width: 768px) {
  .vdc-nl-col.vdc-nl-follow .vdc-nl-title {
    font-size: 18px;
  }

  .vdc-nl-follow .socials a {
    width: 30px;
    height: 30px;
  }

  .vdc-nl-follow .socials a svg,
  .vdc-nl-follow .socials a img {
    width: 100%;
    height: 100%;
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td {
    border: unset;
    padding: 10px;
    background: transparent;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    td[data-title]::before {
    display: none;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td::before {
    display: none;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    td.product-thumbnail {
    position: absolute;
    left: 0;
    top: 0;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    td.product-remove {
    position: absolute;
    right: 0;
    top: 0;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    padding-left: 130px;
    min-height: 130px;
    justify-content: space-between;
    background-color: #fff;
    border-bottom: 1px solid var(--bg, #f6f7f9);
    align-items: center;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    td.product-name {
    padding-right: 46px;
    width: 100%;
    align-items: flex-start;
    min-height: unset;
    font-size: 14px;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table {
    width: 100%;
  }

  body.woocommerce-cart .woocommerce-cart-form .quantity .qty-btn {
    width: 30px;
    height: 30px;
  }

  body.woocommerce-cart .woocommerce-cart-form .quantity input.qty {
    height: 30px;
    font-size: 12px;
  }

  body.woocommerce-cart .woocommerce-cart-form .quantity {
    border-radius: 5px;
  }

  body.woocommerce-cart .woocommerce {
    align-items: inherit;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr td.actions {
    width: 100%;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr:last-child {
    padding-left: unset;
    min-height: unset;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    tr
    td.actions
    button[name="update_cart"] {
    display: none;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    tr
    td.actions
    .coupon {
    margin-bottom: unset;
    padding-top: 7px;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    tr
    td.actions
    .coupon
    button[name="apply_coupon"] {
    width: auto;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    td.product-subtotal {
    font-size: 14px;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td {
    text-align: left !important;
  }
}
@media (max-width: 600px) {
  .vdc-nl-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .pd-summary-text .pd-contact-btn {
    padding: 5px;
    font-size: 12px;
    gap: 5px;
  }
  .woocommerce div.product div.summary {
    padding-left: 10px;
    padding-right: 10px;
  }
  .pd-summary-text .pd-contact-btn svg {
    width: 16px;
    height: 16px;
  }

  .pd-summary-text .pd-contact {
    gap: 5px;
  }
}
@media (max-width: 550px) {
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td,
  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    td.product-subtotal {
    font-size: 12px;
  }

  body.woocommerce-cart .woocommerce-cart-form .quantity input.qty {
    width: 35px;
  }

  body.woocommerce-cart .woocommerce-cart-form .quantity .qty-btn {
    width: 25px;
    font-size: 14px;
  }
  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    td.product-thumbnail {
    max-width: 100px;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    td.product-thumbnail
    img {
    aspect-ratio: 1;
    width: 100%;
    height: auto;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    tr:not(:last-child) {
    padding-left: 90px;
    min-height: 100px;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    td.product-name {
    padding-right: 34px;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    td.product-remove {
    padding: 4px;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    td.product-quantity,
  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    td.product-subtotal,
  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    td.product-price {
    padding-top: unset;
  }
}
@media (max-width: 430px) {
  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    td.product-subtotal {
    display: none;
  }
  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    td.product-quantity {
    padding-left: unset;
  }

  body.woocommerce-cart .woocommerce-cart-form .quantity .qty-btn {
    width: 20px;
  }
  body.woocommerce-cart .woocommerce-cart-form .quantity input.qty {
    width: 30px;
  }
  body.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout,
  body.woocommerce-cart .cart-collaterals .cart_totals table td,
  body.woocommerce-cart .cart-collaterals .cart_totals h2 {
    padding: 15px 10px;
  }
  section.block.vdc-cart-products .section-head .see-all {
    font-size: 12px;
  }

  section.block.vdc-cart-products .section-head h2 {
    gap: 6px;
  }

  section.block.vdc-cart-products .section-head h2:before {
    display: none;
  }
}

/* ===== Search overlay (Tìm kiếm phổ biến + Danh mục nhanh) ===== */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform 0.28s ease,
    visibility 0.28s ease;
}
.search-modal.open {
  transform: translateX(0);
  visibility: visible;
}
.sm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
}
.sm-head .sm-back,
.sm-head .sm-close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #444;
  cursor: pointer;
  padding: 0;
}
.sm-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}
.sm-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 14px;
  padding: 0 14px;
  background: #f3f4f6;
  border-radius: 999px;
}
.sm-form-ico {
  color: #888;
  display: flex;
}
.sm-form input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 14px;
  outline: none;
}
.sm-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 14px calc(20px + env(safe-area-inset-bottom));
}
.sm-section {
  margin-top: 14px;
}
.sm-section-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #000;
  text-transform: uppercase;
}
.sm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sm-tag {
  display: inline-block;
  padding: 8px 14px;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  transition: background 0.15s ease;
}
.sm-tag:hover {
  background: #e7e9ec;
}
.sm-cats {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sm-cats li {
  border-bottom: 1px solid #f1f1f1;
}
.sm-cats a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 4px;
  text-decoration: none;
  color: #222;
}
.sm-cat-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #205350;
}
.sm-cat-ico img,
.sm-cat-ico svg {
  max-width: 100%;
  max-height: 100%;
  display: block;
}
.sm-cat-label {
  flex: 1;
  font-size: 14px;
}
.sm-cat-chev {
  color: #555;
  display: flex;
}
body.search-open {
  overflow: hidden;
}
.sm-body .sm-section:nth-child(2) {
  margin-top: 30px;
}
.sm-results .sm-section:not(:nth-child(1)) {
  margin-top: 30px;
}

.sm-results .sm-section ul.sm-cats li a {
  font-weight: 500;
}
.sm-body .sm-section:nth-child(2) .sm-section-title {
  margin-bottom: 5px;
}
.quick-search-results
  .quicksearch_item_wrap
  span.quicksearch_info
  span.price
  .amount {
  font-size: 13px;
}

.quick-search-results .quicksearch_item_wrap span.quicksearch_info span.price {
  padding-top: 5px;
  display: block;
  color: red;
  font-weight: 600;
}
@media (max-width: 1024px) {
  form.checkout.woocommerce-checkout .customer_info_prod,
  body.woocommerce-checkout .col2-set#customer_details {
    max-width: 100%;
    flex-basis: 100%;
    margin-bottom: unset;
  }
}
@media (min-width: 768px) {
  .search-modal {
    max-width: 430px;
    left: auto;
    right: 0;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  }

  body.woocommerce-checkout #customer_details .col-1,
  body.woocommerce-checkout #customer_details .col-2 {
    width: 100%;
    float: unset;
    flex: initial;
  }
}

/* ===== Search overlay: live-search (goi y san pham + danh muc) ===== */
.sm-clear {
  border: 0;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.sm-prods {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sm-prods li {
  border-bottom: 1px solid #f1f1f1;
}
.sm-prods a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  text-decoration: none;
  color: #222;
}
.sm-prod-img {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}
.sm-prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
}
.sm-prod-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sm-prod-name {
  font-size: 14px;
  line-height: 1.4;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
}
.sm-prod-price {
  font-size: 14px;
  font-weight: 700;
  color: #16794f;
}
.sm-prod-price del {
  color: #999;
  font-weight: 400;
  font-size: 13px;
  margin-right: 4px;
}
.sm-prod-price ins {
  text-decoration: none;
}
.sm-loading,
.sm-empty {
  padding: 18px 4px;
  color: #999;
  font-size: 14px;
  text-align: center;
}

/* Tat dropdown quick-search-results cua plugin trong overlay tim kiem (dung live-search rieng) */
#searchModal .quick-search-results,
.sm-form .quick-search-results {
  display: none !important;
}
body.search-open .quick-search-results {
  display: none !important;
}
.woocommerce
  div.product
  form.cart
  button.single_add_to_cart_button.button.alt:not(.loading):after,
.woocommerce div.product form.cart .added_to_cart.wc-forward {
  display: none;
}
.woocommerce-notices-wrapper .woocommerce-message {
  margin-top: 10px;
}
/* ===== WooCommerce notices: đồng bộ giao diện ===== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 18px;
  background: #f6f8f3;
  border: 1px solid #e4ebd6;
  border-left: 4px solid #7cb305; /* dải nhấn bên trái */
  border-radius: 8px; /* bo góc đều 4 cạnh */
  color: #3f4a2e;
  font-size: 14px;
  font-style: normal; /* bỏ in nghiêng */
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Bỏ marker ::before mặc định của Woo (thường là dấu ✓/ⓘ font icon lệch) */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  position: static;
  margin: 0;
  font-size: 16px;
  line-height: 1;
  color: #7cb305;
  top: auto;
  left: auto;
}

/* Nút trong notice (View cart / Đăng nhập...) canh phải */
.woocommerce-message .button,
.woocommerce-info .button {
  margin-left: auto;
  flex: 0 0 auto;
}

/* Biến thể info (xanh dương nhạt) */
.woocommerce-info {
  background: #eef5fb;
  border-color: #d4e6f5;
  border-left-color: #2f80ed;
  color: #234b6e;
}
.woocommerce-info::before {
  color: #2f80ed;
}

/* Biến thể error (đỏ) */
.woocommerce-error {
  background: #fdf0f0;
  border-color: #f5d4d4;
  border-left-color: #d64545;
  color: #6e2323;
  list-style: none;
}
.woocommerce-error::before {
  color: #d64545;
}
.pd-tab {
  border: 1px solid #e8eef2;
  background-color: #fff;
  flex-grow: 1;
  text-align: center;
}
.pd-tab:not(:last-child) {
  border-right: unset;
}

body.woocommerce-checkout #payment #place_order:before {
  content: "";
  width: 26px;
  height: 26px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  position: relative;
  top: 15px;
  margin-right: 10px;
  background-image: url("images/truck.svg");
}

body.woocommerce-checkout #payment #place_order:after {
  content: "Thanh toán khi nhận hàng";
  display: block;
  font-weight: 500;
  font-size: 11.5px;
  opacity: 0.9;
  margin-top: 2px;
  line-height: 1.6;
  padding-left: 20px;
}

body.woocommerce-checkout #payment #place_order {
  font-size: 15px;
  padding-top: 10px;
}
.woocommerce div.product form.cart .variations label.wcva_single_textblock {
  background: transparent;
}
div#breadcrumbs nav.rank-math-breadcrumb p {
  margin: unset;
}

div#breadcrumbs nav.rank-math-breadcrumb p span.last {
  color: #000;
  font-weight: 600;
}
@media (max-width: 549px) {
  .pd-summary-text .pd-contact-btn {
    flex-direction: column;
    font-weight: 600;
    flex-grow: 1;
  }

  .pd-summary-text .pd-contact-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Nut Goi bottom-nav (.bn-call): icon xoay vong nhu .vdc-fc-open */
.bn-call .vdc-fc-open {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 36px;
  overflow: hidden;
  background-color: #fff;
  border-radius: 100%;
  color: var(--green);
}
.bn-call .vdc-fc-open .vdc-fc-cyc {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: vdc-fc-cycle 8s ease-in-out infinite;
}
.bn-call .vdc-fc-open .vdc-fc-cyc svg {
  width: 22px;
  height: 22px;
}
.bn-call .vdc-fc-open .vdc-fc-cyc:nth-child(2) {
  animation-delay: 2s;
}
.bn-call .vdc-fc-open .vdc-fc-cyc:nth-child(3) {
  animation-delay: 4s;
}
.bn-call .vdc-fc-open .vdc-fc-cyc:nth-child(4) {
  animation-delay: 6s;
}
@media (prefers-reduced-motion: reduce) {
  .bn-call .vdc-fc-open .vdc-fc-cyc {
    animation: none !important;
  }
  .bn-call .vdc-fc-open .vdc-fc-cyc:first-child {
    opacity: 1 !important;
  }
}

.woocommerce
  div.product
  form.cart
  .variations
  label.wcva_single_textblock.selectedswatch {
  color: #000;
  box-shadow: inset 0 0 0 1px var(--green);
  border-color: var(--green);
  background: var(--green-light);
}

.woocommerce div.product form.cart .variations label.wcva_single_textblock {
  width: calc(100% + 10px);
  border-radius: 8px;
  height: calc(100% + 10px);
  text-align: center;
  margin-top: -5px;
  margin-bottom: -5px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.pd-info.summary .tra-gop {
  margin-bottom: 20px;
}

.pd-info.summary .tra-gop ul li {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}

.pd-info.summary .tra-gop ul li svg {
  width: 20px;
  height: 20px;
  position: relative;
  top: 1px;
}

table.shop_table td .amount {
  color: var(--red);
}
table.shop_table td .amount {
  color: var(--red);
}

.cart-item .ci-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.cart-item .ci-info .ci-price {
  margin-bottom: unset;
}

/* <768px: KHÔNG dùng slider, hiển thị .products dưới dạng hàng (row) cuộn ngang.
   Owl base CSS ẩn .owl-carousel khi chưa .owl-loaded → override display ở đây. */
@media (min-width: 769px) and (max-width: 1024px) {
  header.header nav.nav {
    display: block;
  }

  header.header .nav .menu > li > a {
    padding: 10px;
  }
}
@media (max-width: 768px) {
  .addon-slider.owl-carousel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .addon-slider.owl-carousel > .addon-product .product-link {
    width: 80px;
  }

  .addon-slider.owl-carousel > .addon-product .product-info {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }

  .addon-slider.owl-carousel > .addon-product .product-info .product-name {
    min-height: unset;
    width: 100%;
    margin-bottom: unset;
  }

  .addon-slider.owl-carousel
    > .addon-product
    .product-info
    .product-variant-select {
    width: auto;
    margin: unset;
  }

  .addon-slider.owl-carousel
    > .addon-product
    .product-info
    .product-price-line {
    margin: unset;
  }

  .addon-slider.owl-carousel
    > .addon-product
    .addon-check
    .addon-check-box::after {
    left: 5px;
    top: 2px;
  }
  .addon-slider.owl-carousel > .addon-product {
    width: 100%;
    /* scroll-snap-align: start; */
    flex-direction: row;
    align-items: flex-start;
  }
  .addon-slider .owl-nav,
  .addon-slider .owl-dots {
    display: none !important;
  }
  .addon-foot {
    justify-content: space-between;
  }
}
.item.product .product-img .button.add_to_cart_button {
  display: none;
}
.woocommerce
  div.product
  .woocommerce-tabs:has(#tab-vdc_info_base)
  #tab-vdc_info_base
  .inner {
  position: sticky;
  top: 15px;
  padding: unset;
  border: unset;
}

.admin-bar.woocommerce
  div.product
  .woocommerce-tabs:has(#tab-vdc_info_base)
  #tab-vdc_info_base
  .inner {
  top: 47px;
}

/* =========================================================
   PAGE - LOÀI CÁ (taxonomy fish-categories) — lưới card
   Template: page-loai_ca.php
   ========================================================= */
.fishcat-archive {
  padding: 28px 0 56px;
}
.fishcat-archive .container {
  max-width: var(--container);
  margin: 0 auto;
}

.fishcat-head {
  text-align: center;
  margin-bottom: 28px;
}
.fishcat-head h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--green, #205350);
  letter-spacing: 0.2px;
}
.fishcat-head-desc {
  max-width: 720px;
  margin: 10px auto 0;
  color: var(--text-2, #4a4a4a);
  font-size: 15px;
  line-height: 1.6;
}

/* ----- Lưới ----- */
.fishcat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.fishcat-item {
  margin: 0;
}

/* ----- Card ----- */
.fishcat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}
.fishcat-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lg, 0 10px 30px rgba(0, 0, 0, 0.1));
}

/* ----- Ảnh ----- */
.fishcat-thumb {
  position: relative;
  /* display: block; */
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fishcat-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.28) 100%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.fishcat-card:hover .fishcat-thumb::after {
  opacity: 1;
}
.fishcat-thumb img {
  width: auto;
  height: auto;
  /* object-fit: cover; */
  display: block;
  transition: transform 0.5s ease;
  max-height: 100%;
  display: block;
  margin: auto;
}
.fishcat-card:hover .fishcat-thumb img {
  transform: scale(1.06);
}

/* ----- Nút Shop Now (overlay góc dưới) ----- */
.fishcat-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--green, #205350);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(20, 56, 54, 0.35);
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}
.fishcat-btn svg {
  transition: transform 0.25s ease;
}
.fishcat-card:hover .fishcat-btn {
  background: var(--orange, #ff9800);
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4);
}
.fishcat-card:hover .fishcat-btn svg {
  transform: translateX(3px);
}

/* ----- Thông tin ----- */
.fishcat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
}
.fishcat-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.35;
  transition: color 0.25s ease;
}
.fishcat-card:hover .fishcat-name {
  color: var(--green, #205350);
}
.fishcat-count {
  font-size: 12.5px;
  color: var(--text-3, #8a8a8a);
}

/* ----- Trạng thái rỗng ----- */
.fishcat-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-2, #4a4a4a);
}

/* ----- Nội dung page (dưới lưới) ----- */
.fishcat-foot {
  margin-top: 36px;
  color: var(--text-2, #4a4a4a);
  line-height: 1.7;
}
.brand-hero-meta {
  margin: 10px 0 0;
}
/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .fishcat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}
@media (max-width: 680px) {
  .fishcat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .fishcat-btn {
    right: 8px;
    bottom: 8px;
    padding: 7px 11px;
    font-size: 12px;
  }
  .fishcat-info {
    padding: 12px 12px 14px;
  }
  .fishcat-name {
    font-size: 13.5px;
  }
}
@media (max-width: 400px) {
  .fishcat-grid {
    grid-template-columns: 1fr;
  }
}

span.rating-count {
  font-style: italic;
  position: relative;
  font-size: 11px;
  top: 1px;
  color: #f7b500;
}
.drloop_item {
  display: flex;
  align-items: center;
}

.vdc-products-slider.vdc-products-slider-lazyload {
  opacity: 0;
  height: 500px;
}