/* ╔══════════════════════════════════════════════════════════════╗
   ║                   VIETTOOLS - CUSTOM CSS                    ║
   ║                                                              ║
   ║  MỤC LỤC:                                                   ║
   ║  [A] HEADER & NAVIGATION                                    ║
   ║  [B] TRANG CHỦ - CARD SẢN PHẨM                             ║
   ║  [C] TRANG CHI TIẾT SẢN PHẨM                               ║
   ║  [D] TRANG TÀI KHOẢN & ĐƠN HÀNG                           ║
   ║  [E] TRANG BÍ MẬT & ACCESS                                 ║
   ║  [F] FOOTER & MISC                                          ║
   ║  [G] LIGHT MODE OVERRIDE                                    ║
   ║  [H] MOBILE - CARD SẢN PHẨM NGANG                          ║
   ╚══════════════════════════════════════════════════════════════╝ */


/* ================================================================
   [A] HEADER & NAVIGATION
   ================================================================ */

/* A1. Header cố định trên cùng */
#header.ct-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
}

body {
  padding-top: 80px;
}

.admin-bar #header.ct-header {
  top: 32px;
}

/* A2. Khối thông tin custom trên header (ví, icon...) */
.header-custom-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* A3. Số dư ví trên header */
.custom-mini-wallet {
  padding: 12px 16px;
  border-radius: 99px;
  background-color: #3fbb4640;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  display: inline-flex !important;
  min-width: 0;

}
.custom-mini-wallet .so-du-so {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px; /* hoặc tăng lên tuỳ layout */
}

/* Đảm bảo link bên trong không wrap */
.custom-mini-wallet .woo-wallet-menu-contents {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Ngăn amount bị wrap */
.custom-mini-wallet .woocommerce-Price-amount {
  white-space: nowrap;
}
@media (max-width: 768px) {
  .custom-mini-wallet {
    padding: 6px 10px;
  }
}

.so-du-so .woocommerce-Price-amount.amount {
  color: #0bde00 !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
}

/* A4. Ẩn icon ví mặc định TeraWallet */
.woo-wallet-icon-wallet {
  display: none !important;
}

/* A5. Chặn bấm vào số dư */
.header-custom-info .custom-mini-wallet a,
.header-custom-info .so-du-so a,
.woo-wallet-menu-contents {
  pointer-events: none !important;
  cursor: text !important;
  text-decoration: none !important;
}

/* Banner Slider */
.vt-banner-slider {
  position: relative !important;
  overflow: hidden !important;
}
.vt-slider-track {
  display: flex !important;
  transition: transform 0.6s ease;
}
.vt-slider-track > .vt-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
}

/* Buttons */
.vt-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  font-size: 20px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.vt-slider-btn:hover { background: #fff; }
.vt-slider-btn.prev { left: 12px; }
.vt-slider-btn.next { right: 12px; }

/* Dots */
.vt-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}
.vt-slider-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.vt-slider-dots span.active { background: #fff; }
@media (max-width: 767px) {
  .vt-slider-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .vt-slider-btn.prev { left: 6px; }
  .vt-slider-btn.next { right: 6px; }
}
/* ================================================================
   [B] TRANG CHỦ - CARD SẢN PHẨM (mặc định cả 2 mode)
   ================================================================ */

/* B1. Ẩn mô tả ngắn trên desktop (chỉ hiện trên mobile) */
@media (min-width: 768px) {
  .woocommerce ul.products li.product .product-loop-desc {
    display: none !important;
  }
}

/* B2. Rating + Đã bán → cùng hàng, căn giữa */
.woocommerce ul.products li.product .ct-woo-card-rating {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Đảm bảo (x) count luôn cạnh sao, sold count luôn cuối */
.woocommerce ul.products li.product .ct-woo-card-rating .vt-sold-count {
  order: 10;
}

/* Sold count trên card sản phẩm */
.vt-sold-count {
  font-size: 0.85em;
  color: #aaa;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vt-sold-sep {
  color: #555;
  font-weight: 300;
  margin-right: 2px;
}

/* Light mode override */
html.vt-light .vt-sold-count {
  color: #666 !important;
}

html.vt-light .vt-sold-sep {
  color: #bbb !important;
}


/* ================================================================
   [C] TRANG CHI TIẾT SẢN PHẨM
   ================================================================ */

/* C1. Khung bọc ảnh sản phẩm */
.product-entry-wrapper {
  background-color: #252728;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid #444;
}

div.woocommerce-product-gallery {
  border-radius: 12px;
}

/* C2. Giá sản phẩm (trang chi tiết) */
.single-product .summary .woocommerce-Price-amount.amount {
  color: #00de00 !important;
  font-size: 36px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 15px;
  background-color: #2e4d32;
}

/* C3. Khung mô tả ngắn */
.woocommerce-product-details__short-description {
  background-color: #483600 !important;
  padding: 10px !important;
  border-radius: 9px !important;
  border: 1px #999 dashed;
}

.woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0 !important;
}

/* C4. Khoảng trống dưới rating */
.woocommerce-product-rating {
  padding-bottom: 8px;
}

/* C5. Link "Xem đánh giá" */
.woocommerce-review-link {
  font-size: 0 !important;
}

.woocommerce-review-link .count {
  font-size: 16px;
}

.woocommerce-review-link .count::before {
  content: "Xem ";
  font-size: 16px;
  padding-left: 10px;
}

.woocommerce-review-link .count::after {
  content: " đánh giá";
  font-size: 16px;
}

.woocommerce-review-link::before {
  content: "|";
  font-size: 16px;
  color: #999;
  margin-right: 2px;
}

/* C5b. "Đã bán: xx" trên trang chi tiết sản phẩm */
.vt-sold-count-single {
  font-size: 16px;
  color: inherit;
  white-space: nowrap;
  margin-left: 2px;
}

.vt-sold-count-single::before {
  content: "|";
  font-size: 16px;
  color: #999;
  margin-right: 10px;
}

html.vt-light .vt-sold-count-single {
  color: inherit !important;
}

/* C6. Tabs mô tả / đánh giá */
.woocommerce div.product div.woocommerce-tabs ul.tabs {
  font-size: 15px;
}

.woocommerce div.product div.woocommerce-tabs ul.tabs li a {
  padding: 1.3em 3.5em;
  background-color: #333;
}

.woocommerce div.product div.woocommerce-tabs ul.tabs li.active a {
  background-color: #1559ed;
  color: #fff;
}

/* C7. Icon cho từng tab */
.wc-tabs li a::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 5px;
  vertical-align: middle;
  margin-top: -4px;
}

/* Tab Mô tả */
#tab-title-description a::before {
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Tab Thông tin bổ sung */
#tab-title-additional_information a::before {
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Tab Đánh giá (icon sao vàng) */
#tab-title-reviews a::before {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F5D627'%3E%3Cpath d='M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* C8. Khu vực review */
.woocommerce-Reviews {
  background-color: #252728;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid #444;
}

/* C9. Khung mô tả dài */
.mo-ta-sp {
  background-color: #252728;
  border-radius: 15px;
  padding: 20px;
  border: 1px solid #444;
}

/* C10. Khung lưu ý (đỏ) */
.luu-y-sp {
  background-color: #7f2a2a;
  padding: 20px 10px;
  border-radius: 12px;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* C11. Khung ưu điểm (xanh lá) */
.uu-diem-sp {
  background-color: #048000;
  padding: 20px 10px;
  border-radius: 12px;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* C12. Thankyou page */
.woocommerce-thankyou-order-received {
  --background-color: #333;
}


/* ================================================================
   [D] TRANG TÀI KHOẢN & ĐƠN HÀNG
   ================================================================ */

/* D1. Nút chat ở trang cảm ơn */
.btn-message-custom {
  background: #00BB15;
  color: #ffffff;
  padding: 1px 10px;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-message-custom:hover {
  background: #046A10;
  transform: translateY(-2px);
}

/* D2. Icon box shadow */
.icon-box {
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.08);
}
/* D2. ẩn thông báo đơn hàng thành công */
.woocommerce-thankyou-order-received {
    display: none !important;
}

/* ================================================================
   [E] TRANG BÍ MẬT & ACCESS
   ================================================================ */

/* E1. Xử lý chiều rộng tổng thể, trả lại margin top/bottom cho theme */
.responsive-group {
    max-width: 750px !important; /* Thu hẹp nội dung trên Desktop */
    margin-left: auto !important; /* Chỉ căn giữa trái */
    margin-right: auto !important; /* Chỉ căn giữa phải */
    padding-left: 5px !important; /* Cách mép trái cực ít trên Mobile */
    padding-right: 5px !important; /* Cách mép phải cực ít trên Mobile */
    width: 100%;
}

/* E2. Bao bọc thẻ Card (Màu kem) */
.vt-card {
    background-color: #fff2cc;
    border-radius: 12px;
    padding: 20px;
}
.vt-card-helium {
    background-color: #033973;
    border-radius: 12px;
    padding: 20px;
}
.vt-card-envato {
    background-color: #fff5ec;
    border-radius: 12px;
    padding: 20px;
}
/* E3. Khu vực Logo */
.vt-header {
    text-align: center;
    margin-bottom: 20px;
}

.vt-header img {
    max-height: 45px;
    width: auto;
}

/* E4. Khu vực các bước (Nền xanh) */
.vt-steps-box {
    background-color: #93c47d;
    border-radius: 8px;
    overflow: hidden;
}

/* Cấu trúc Grid thông minh */
.vt-step-row {
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid #fff;
}

/* Bước không có nút bấm */
.vt-step-row.vt-no-btn {
    grid-template-columns: max-content 1fr;
}

/* Thiết kế Badge "Bước" */
.vt-badge {
    background-color: #fff;
    padding: 8px 14px;
    border-radius: 99px;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    white-space: nowrap;
}

.vt-text {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    line-height: 1.4;
}

/* Thiết kế nút bấm "Click" */
.vt-action a {
    background-color: #007cba;
    color: #fff !important;
    padding: 8px 22px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    transition: 0.2s ease;
}

.vt-action a:hover {
    background-color: #00AAFF;
}

/* Dòng ghi chú dưới các bước */
.vt-note {
    text-align: center;
    color: #00470a;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 15px 20px 15px;
    line-height: 1.6;
}

/* E5. Khu vực Lưu ý (Nền vàng) */
.vt-warning-box {
    background-color: #ffc42e;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.vt-warning-box h2 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #111;
    font-weight: bold;
}



.vt-warning-item p {
    margin: 0;
    font-size: 16px;
    color: #000;
    line-height: 1.5;
    padding-top:10px;
    font-weight:500;
}

/* --- Tối ưu kích thước trên Mobile (Dưới 600px) --- */
@media (max-width: 600px) {
    .vt-card {
        padding: 15px 10px !important; /* Giảm độ dày lề bên trong thẻ card để có thêm không gian cho chữ */
    }
    .vt-step-row {
        gap: 10px;
        padding: 10px;
    }
    .vt-badge {
        padding: 6px 10px;
        font-size: 14px;
    }
    .vt-text {
        font-size: 16px;
    }
    .vt-action a {
        padding: 6px 15px;
        font-size: 14px;
    }
    .vt-warning-box {
        padding: 15px 10px;
    }
}


/* ================================================================
   [F] FOOTER & MISC
   ================================================================ */

/* (Thêm CSS footer hoặc linh tinh vào đây) */


/* ================================================================
   [G] LIGHT MODE OVERRIDE
   ================================================================ */

/* --- G0. CSS Variables --- */
html.vt-light {
  --theme-palette-color-8: #ffffff;
  --theme-palette-color-7: #f8f9fa;
  --theme-palette-color-6: #eee;
  --theme-palette-color-5: #ddd;
  --theme-text-color: #1a1a1a;
  --theme-headings-color: #000000;
  --theme-palette-color-1: #2872fa;
  --theme-palette-color-2: #1559ed;
  --theme-palette-color-3: #000000;
  --theme-border-color: #ddd;
  --theme-form-field-border-initial-color: #ddd;
  --theme-link-initial-color: #1559ed;
  --theme-link-hover-color: #2872fa;
  --theme-button-background-initial-color: #2872fa;
  --theme-button-background-hover-color: #1559ed;
  --theme-button-text-initial-color: #ffffff;
  --theme-button-text-hover-color: #ffffff;
  --theme-selection-background-color: #2872fa;
  --theme-selection-text-color: #ffffff;
  --theme-form-selection-field-initial-color: #666666;
  --theme-form-selection-field-active-color: #2872fa;
  --theme-form-field-border-focus-color: #2872fa;
}

/* --- G1. Nền & chữ chung --- */
html.vt-light body {
  background-color: #ffffff !important;
}

html.vt-light body,
html.vt-light p,
html.vt-light span,
html.vt-light div:not(.price),
html.vt-light h1,
html.vt-light h2,
html.vt-light h3,
html.vt-light h4,
html.vt-light h5,
html.vt-light h6 {
  color: #1a1a1a !important;
}

/* --- G2. Admin bar (giữ nguyên dark) --- */
html.vt-light #wpadminbar {
  background: #23282d !important;
}

html.vt-light #wpadminbar,
html.vt-light #wpadminbar *,
html.vt-light #wpadminbar a {
  color: #eee !important;
}

html.vt-light #wpadminbar #wp-admin-bar-woocommerce-site-visibility-badge a {
  color: inherit !important;
  background: inherit !important;
}

/* --- G3. Header --- */
html.vt-light header,
html.vt-light .ct-header,
html.vt-light [data-row*="top"],
html.vt-light [data-row*="middle"],
html.vt-light [data-row*="bottom"] {
  background-color: #ffffff !important;
}

html.vt-light .ct-header-search {
  background-color: #dddddd !important;
}

html.vt-light .ct-header-search .ct-icon {
  fill: #333333 !important;
}

html.vt-light .site-title a {
  color: #1559ed !important;
}

/* --- G4. Menu --- */
html.vt-light .menu-item a {
  color: #1a1a1a !important;
}

html.vt-light .menu-item a:hover {
  color: #2872fa !important;
}

html.vt-light .header-menu-1 .current-menu-item > a,
html.vt-light .header-menu-1 .current_page_item > a {
  color: #1559ed !important;
}

/* --- G5. Ví & số dư --- */
html.vt-light .header-custom-info .icon-vi {
  color: #fff !important;
}

html.vt-light .custom-mini-wallet {
  background-color: #00BB15;
}

html.vt-light .custom-mini-wallet svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

html.vt-light .so-du-so .woocommerce-Price-amount.amount {
  color: #fff !important;
}

html.vt-light .custom-mini-wallet .woocommerce-Price-currencySymbol,
html.vt-light .so-du-so .woocommerce-Price-currencySymbol {
  color: #ffffff !important;
}

/* --- G6. Trang chi tiết sản phẩm --- */
html.vt-light .product-entry-wrapper {
  background-color: #fff;
  border: 1px solid #ddd;
}

html.vt-light .single-product .summary .woocommerce-Price-amount.amount {
  color: #ff0000 !important;
  background-color: #fff;
}

html.vt-light .entry-summary .price,
html.vt-light .entry-summary .woocommerce-Price-amount,
html.vt-light .entry-summary .woocommerce-Price-currencySymbol {
  color: #ff0000 !important;
}

html.vt-light .woocommerce-product-details__short-description {
  background-color: #efe1ab !important;
}

html.vt-light .woocommerce-thankyou-order-received {
  --background-color: #fff;
}

html.vt-light .woocommerce div.product div.woocommerce-tabs ul.tabs li a {
  background-color: #fff;
}

html.vt-light .woocommerce div.product div.woocommerce-tabs ul.tabs li.active a {
  background-color: #1559ed;
  color: #fff !important;
}

html.vt-light .woocommerce-Reviews {
  background-color: #fff;
  border: 1px solid #ddd;
}

html.vt-light .mo-ta-sp {
  background-color: #fff;
  border: 1px solid #ddd;
}

html.vt-light .luu-y-sp {
  background-color: #F5AFAF;
}

html.vt-light .uu-diem-sp {
  background-color: #C5D89D;
}

/* --- G7. Giá ngoài trang chủ / shop --- */
html.vt-light .price,
html.vt-light .price .woocommerce-Price-amount,
html.vt-light .price .woocommerce-Price-currencySymbol {
  color: #ff0000 !important;
}

/* --- G8. Trang tài khoản --- */
html.vt-light .ct-acount-nav,
html.vt-light .woocommerce-MyAccount-navigation {
  background-color: #aaa;
}

html.vt-light .woocommerce-MyAccount-navigation ul li a {
  color: #000 !important;
  background-color: #fff;
}

html.vt-light .woocommerce-MyAccount-navigation ul li a:hover,
html.vt-light .woocommerce-MyAccount-navigation ul li.is-active a {
  color: #ffffff !important;
  background-color: #1559ed !important;
}

html.vt-light .woocommerce-orders-table__cell-order-actions a,
html.vt-light .woocommerce-button.view {
  color: #ffffff !important;
}

html.vt-light .woocommerce-pagination a.button,
html.vt-light .woocommerce-Pagination a.button,
html.vt-light .woocommerce-button--next,
html.vt-light .woocommerce-button--previous {
  color: #ffffff !important;
  background-color: #2872fa !important;
}

html.vt-light .order-again a.button {
  color: #ffffff !important;
}

/* --- G9. Wallet buttons --- */
html.vt-light .vt-wallet__btn,
html.vt-light .vt-wallet__btn .vt-wallet__btnhint {
  color: #ffffff !important;
}

/* --- G10. Footer --- */
html.vt-light footer,
html.vt-light .ct-footer,
html.vt-light [data-footer*="row"] {
  background-color: #ffffff !important;
}

/* --- G11. Offcanvas mobile menu --- */
html.vt-light #offcanvas.ct-panel {
  background-color: transparent !important;
}


/* ================================================================
   [H] MOBILE - CARD SẢN PHẨM NGANG
   Dùng CSS Grid trên HTML mặc định của Blocksy, không cần override template.
   ================================================================ */

@media (max-width: 767px) {

  /* H0. Giảm padding 2 bên trang (khoảng trống đỏ/xanh)
     Thử chỉnh trong Blocksy Customizer trước:
     → Giao diện → Tùy biến → General → Layout → Content Area Spacing
     Nếu vẫn chưa đủ, bật dòng dưới: */
  /* .site-main, .ct-container { padding-left: 10px !important; padding-right: 10px !important; } */

  /* H1. Product grid → 1 cột */
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  /* H2. Mỗi card → CSS Grid 2 cột */
  .woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 6px !important;
    display: grid !important;
    grid-template-columns: 130px 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 2px 12px;
    align-items: start;
    text-align: left !important;
    background: #2e2e2e;
    border-radius: 10px;
    
    overflow: hidden;
  }
  html.vt-light .woocommerce ul.products li.product {
  background: rgba(241, 244, 250, 0.6);
}

  /* H3. Ảnh sản phẩm → cột trái, span tất cả hàng */
  /* H3. Ảnh sản phẩm → cột trái, span tất cả hàng */
.woocommerce ul.products li.product > figure {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  margin: 0 !important;
  border-radius: 0px !important;
  overflow: hidden;
}

.woocommerce ul.products li.product > figure a.ct-media-container {
  border-radius: 0px !important;
  overflow: hidden;
}

.woocommerce ul.products li.product > figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px !important;
  display: block;
}
.woocommerce ul.products li.product > figure *,
.woocommerce ul.products li.product > figure {
  border-radius: 0px !important;
}

  /* H4. Tên sản phẩm → cột phải, hàng 1, căn trái */
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    grid-column: 2;
    grid-row: 1;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* H5. Star rating → cột phải, hàng 2 */
  .woocommerce ul.products li.product .ct-woo-card-rating {
    grid-column: 2;
    grid-row: 2;
    margin: 0 !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .woocommerce ul.products li.product .ct-woo-card-rating .star-rating {
    font-size: 12px !important;
    margin: 0 !important;
  }

  .woocommerce ul.products li.product .vt-sold-count {
    font-size: 11px;
  }

  /* H6. Mô tả ngắn → cột phải, hàng 3 */
.woocommerce ul.products li.product .product-loop-desc {
    grid-column: 2;
    grid-row: 3;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}
.woocommerce ul.products li.product .product-loop-desc .desc-line {
    display: block;
    font-size: 12px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

  /* H7. Giá → cột phải, hàng 4, căn trái */
  .woocommerce ul.products li.product > .price {
    grid-column: 2;
    grid-row: 4;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: left !important;
    margin: 4px 0 0 0 !important;
  }

  /* H8. Ẩn nút Add to cart trên mobile */
  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product .add_to_cart_button {
    display: none !important;
  }
.vt-tabs-wrapper {
        padding-left: 5px !important;
        padding-right: 5px !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
    .vt-tabs-wrapper2 {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
}
/* Ẩn ảnh Desktop khi ở màn hình Mobile (kích thước dưới 768px) 
@media (max-width: 767px) {
    .hide-on-mobile {
        display: none !important;
    }
}

 Ẩn ảnh Mobile khi ở màn hình Desktop/Tablet (kích thước từ 768px trở lên)
@media (min-width: 768px) {
    .hide-on-desktop {
        display: none !important;
    }
}*/