/* ============================================================
   WooCommerce — giao diện cửa hàng
   Cố ý KHÔNG nằm trong @layer: CSS của Woo cũng ngoài layer,
   mà rule ngoài layer luôn thắng rule trong layer.
   ============================================================ */

.vc-shop{
  --sh-gap:var(--vc-s-5);
  --sh-r:var(--vc-r-lg);
  --sh-ratio:var(--vc-ratio-product);
  --sh-ease:var(--vc-ease);
}
@media (min-width:1024px){.vc-shop{--sh-gap:var(--vc-s-6)}}
.vc-shop .vc-main--shop{padding-block:var(--vc-s-7)}

/*
 * woocommerce-general dat lai heading (dam 700) va line-height than bai (1.65)
 * bang chuoi chon rieng. Keo ve dung thang chu cua DESIGN.md.
 */
body.vc-shop h1,body.vc-shop .vc-page-title{font-weight:var(--vc-w-h1);line-height:var(--vc-lh-h1)}
body.vc-shop h2{font-weight:var(--vc-w-h2);line-height:var(--vc-lh-h2)}
body.vc-shop h3{font-weight:var(--vc-w-h3);line-height:var(--vc-lh-h3)}
body.vc-shop{line-height:var(--vc-lh-body)}

/*
 * Giỏ hàng, thanh toán, tài khoản là trang thường nên page.php bọc chúng trong
 * cột đọc hẹp. Ba trang này cần bề ngang đầy đủ như phần còn lại của cửa hàng.
 */
.vc-shop .vc-wrap--narrow{width:min(100% - 2 * var(--vc-space),var(--vc-wide))}
.vc-shop .wp-block-woocommerce-cart,
.vc-shop .wp-block-woocommerce-checkout,
.vc-shop .wc-block-cart,
.vc-shop .wc-block-checkout{max-width:none}

/* ---- Đầu trang danh mục ---- */
.vc-shop .woocommerce-products-header{margin-bottom:var(--vc-s-5)}
.vc-shop .woocommerce-products-header__title{margin:0 0 .35rem;font-size:var(--vc-step-3);font-weight:var(--vc-w-h1);letter-spacing:-.03em;text-wrap:balance}
.vc-shop .term-description{max-width:62ch;margin:0;color:var(--vc-muted);font-weight:var(--vc-w-lead)}
.vc-shop .woocommerce-notices-wrapper:empty{display:none}

/* ---- Chip danh mục, cuộn ngang ---- */
.vc-cats{margin:0 0 var(--vc-s-4)}
.vc-cats ul{display:flex;gap:.5rem;overflow-x:auto;margin:0;padding:.15rem 0 .5rem;list-style:none;scrollbar-width:none;scroll-snap-type:x proximity}
.vc-cats ul::-webkit-scrollbar{display:none}
.vc-cats li{flex:none;scroll-snap-align:start}
.vc-cats__chip{display:inline-flex;align-items:center;gap:.4rem;padding:.5rem 1rem;border:1px solid var(--vc-line);border-radius:var(--vc-r-full);color:inherit;font-size:var(--vc-step--1);font-weight:600;text-decoration:none;white-space:nowrap;transition:background-color .18s,border-color .18s,color .18s}
.vc-cats__chip span{color:var(--vc-muted);font-weight:400}
.vc-cats__chip:hover{border-color:currentColor}
.vc-cats__chip.is-on{border-color:transparent;background:var(--vc-text);color:var(--vc-bg)}
.vc-cats__chip.is-on span{color:inherit;opacity:.6}

/* ---- Thanh công cụ ---- */
.vc-shop .woocommerce-result-count,
.vc-shop .woocommerce-ordering{display:inline-block;margin:0 0 1rem;vertical-align:middle}
.vc-shop .woocommerce-result-count{color:var(--vc-muted);font-size:var(--vc-step--1)}
.vc-shop .woocommerce-ordering{float:right}
.vc-shop .woocommerce-ordering select{padding:.5rem 2.2rem .5rem .9rem;border:1px solid var(--vc-line);border-radius:var(--vc-r-full);background:var(--vc-bg);color:inherit;font:inherit;font-size:var(--vc-step--1);font-weight:600;cursor:pointer}

/* ============================================================
   Lưới sản phẩm
   ============================================================ */
/* Clearfix ::before/::after của Woo biến thành hai ô rỗng khi container là lưới */
.vc-shop ul.products::before,
.vc-shop ul.products::after{content:none}

.vc-shop ul.products{display:grid;gap:var(--vc-s-6) var(--sh-gap);grid-template-columns:repeat(2,1fr);margin:0;padding:0;list-style:none;clear:both}
@media (min-width:768px){.vc-shop ul.products.columns-3,.vc-shop ul.products.columns-4{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1024px){.vc-shop ul.products.columns-4{grid-template-columns:repeat(4,1fr)}}

/* Mỗi sản phẩm là một thẻ có viền; ảnh tràn sát mép trên, thẻ tự cắt góc */
.vc-shop ul.products li.product{position:relative;display:flex;flex-direction:column;overflow:hidden;margin:0;padding:0;width:auto;float:none;border:1px solid var(--vc-line);border-radius:var(--sh-r);background:var(--vc-bg);text-align:left;transition:border-color .18s,box-shadow .18s,transform .18s var(--sh-ease)}
.vc-shop ul.products li.product:hover{border-color:color-mix(in srgb,var(--vc-brand) 45%,var(--vc-line));box-shadow:var(--vc-shadow);transform:translateY(-2px)}

/* Ảnh vuông, tràn viền, không đệm — ảnh làm chủ đạo */
.vc-p__media{position:relative;overflow:hidden;margin:0;background:var(--vc-surface);aspect-ratio:var(--sh-ratio)}
.vc-shop ul.products li.product .vc-p__media img{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;object-fit:cover;transition:transform .55s var(--sh-ease),opacity .35s ease}
.vc-shop li.product:hover .vc-p__media img{transform:scale(1.04)}

/* Ảnh thứ hai chồng lên, hiện dần khi rê chuột */
.vc-p__alt{opacity:0}
.vc-shop li.product:hover .vc-p__alt{opacity:1}
@media (hover:none){.vc-p__alt{display:none}}

.vc-badge{position:absolute;top:.6rem;left:.6rem;z-index:3;padding:.25rem .6rem;border-radius:var(--vc-r-full);background:var(--vc-text);color:var(--vc-bg);font-size:var(--vc-step-badge);font-weight:600;letter-spacing:.01em}

/*
 * Thân thẻ là lưới hai cột: chữ bên trái, nút mua nằm cuối dòng giá bên phải.
 * Đặt hàng và cột tường minh để không phụ thuộc thứ tự Woo in ra.
 */
.vc-p__body{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--vc-s-1) var(--vc-s-2);padding:var(--vc-s-4)}
.vc-p__title{grid-column:1 / -1;grid-row:1}
.vc-shop ul.products li.product .price{grid-column:1;grid-row:2}
.vc-dots{grid-column:1 / -1;grid-row:3}

/* Hai nút cuối dòng giá: thêm vào giỏ (icon) và mua ngay. Viền mảnh, không tô nền. */
.vc-p__acts{grid-column:2;grid-row:2;display:flex;gap:var(--vc-s-2);align-items:center}
/* Cao đúng ngưỡng chạm 44px; nút giỏ vuông 44×44 nên bo tròn ra hình tròn thật */
.vc-shop ul.products li.product .vc-p__cart,
.vc-shop ul.products li.product .vc-p__buy{position:relative;z-index:2;display:grid;place-items:center;height:var(--vc-btn-h);min-height:var(--vc-btn-h);margin:0;border:1px solid var(--vc-line);border-radius:var(--vc-r-full);background:none;color:var(--vc-text);font-size:var(--vc-step--1);font-weight:600;line-height:1;transition:border-color .18s,background-color .18s,color .18s}
.vc-shop ul.products li.product .vc-p__cart{width:var(--vc-btn-h);padding:0}
.vc-shop ul.products li.product .vc-p__cart svg{width:22px;height:22px}
.vc-shop ul.products li.product .vc-p__buy{padding:0 var(--vc-s-4);border-color:color-mix(in srgb,var(--vc-brand) 40%,var(--vc-line));color:var(--vc-brand)}
.vc-shop ul.products li.product .vc-p__cart:hover{border-color:var(--vc-text);background:var(--vc-surface);color:var(--vc-text)}
.vc-shop ul.products li.product .vc-p__buy:hover{border-color:transparent;background:var(--vc-brand);color:var(--vc-brand-ink)}
.vc-shop ul.products li.product .vc-p__cart.loading,
.vc-shop ul.products li.product .vc-p__buy.is-busy{opacity:.5}
.vc-shop ul.products li.product .added_to_cart{display:none}
.vc-p__title{margin:0;font-size:var(--vc-step-0);font-weight:var(--vc-w-h3);line-height:1.35}
.vc-p__link{color:inherit;text-decoration:none}
/* Liên kết trải rộng: cả thẻ bấm được mà nút mua vẫn bấm riêng được */
.vc-p__link::after{content:"";position:absolute;inset:0;z-index:1}
.vc-shop ul.products .star-rating{margin:.1rem 0;font-size:var(--vc-step-badge);color:var(--vc-accent)}
.vc-shop ul.products li.product .price{margin:.05rem 0 0;color:var(--vc-text);font-size:var(--vc-step-0);font-weight:600}
.vc-shop ul.products .price del{margin-right:.4rem;color:var(--vc-muted);font-weight:400}
.vc-shop ul.products .price ins{background:none;text-decoration:none}

/*
 * Mobile: khe giữa hai thẻ hẹp lại, và hai nút xuống hàng riêng dưới cùng —
 * chiều ngang thẻ chỉ còn một nửa màn hình nên không đủ chỗ đứng cạnh giá.
 * Chuyển thân thẻ sang flex để thứ tự chạy theo DOM, khỏi khai lại hàng cột.
 */
@media (max-width:639px){
  .vc-shop ul.products{gap:var(--vc-s-4) var(--vc-s-3)}
  .vc-p__body{display:flex;flex-direction:column;align-items:stretch;gap:var(--vc-s-1);padding:var(--vc-s-3)}
  .vc-p__acts{margin-top:var(--vc-s-2)}
  .vc-shop ul.products li.product .vc-p__buy{flex:1}
}

/* Chấm màu các phiên bản trên thẻ */
.vc-dots{display:flex;gap:.28rem;align-items:center;margin-top:.35rem}
.vc-dots__d{width:11px;height:11px;border:1px solid rgba(0,0,0,.16);border-radius:50%}
.vc-dots__more{font-size:var(--vc-step--2);color:var(--vc-muted)}

/*
 * ---- Phân trang ----
 * Woo nhắm bằng `.woocommerce nav.woocommerce-pagination ul li a` nên phải bám
 * sát ít nhất bằng đó mới ghi đè được khung viền và màu tím mặc định của nó.
 */
body.vc-shop nav.woocommerce-pagination{margin:var(--vc-s-7) 0 0;text-align:center}
body.vc-shop nav.woocommerce-pagination ul{display:inline-flex;gap:var(--vc-s-2);margin:0;padding:0;border:0;list-style:none}
body.vc-shop nav.woocommerce-pagination ul li{margin:0;border:0;overflow:visible}
/* Phẳng hoàn toàn: vòng tròn viền mảnh, không tô nền, kể cả trang đang xem. */
body.vc-shop nav.woocommerce-pagination ul li a,
body.vc-shop nav.woocommerce-pagination ul li span{display:grid;place-items:center;width:40px;height:40px;min-width:40px;padding:0;border:1px solid var(--vc-line);border-radius:var(--vc-r-full);background:none;color:var(--vc-muted);font-size:var(--vc-step--1);font-weight:400;line-height:1;text-decoration:none;transition:border-color .18s,color .18s}
body.vc-shop nav.woocommerce-pagination ul li a:hover{border-color:var(--vc-text);color:var(--vc-text)}
body.vc-shop nav.woocommerce-pagination ul li span.current{border-color:var(--vc-text);color:var(--vc-text);font-weight:600}
body.vc-shop nav.woocommerce-pagination ul li span.dots{border-color:transparent}

/*
 * Mũi tên là SVG đặt trong mask, khung nhìn ôm sát nét vẽ (8×14, nét 2, đầu tròn)
 * nên tâm hình trùng tâm khung — cân giữa theo hình học, không phải bù thủ công.
 * Cách cũ dùng hai cạnh ô vuông rồi xoay luôn lệch vì trọng tâm nhìn thấy nằm
 * về phía mũi nhọn, mà transform lại xoay cả hệ toạ độ nên bù rất khó đoán.
 * Dùng mask thay background để mũi tên đổi màu theo currentColor khi rê chuột.
 */
body.vc-shop nav.woocommerce-pagination ul li a.prev,
body.vc-shop nav.woocommerce-pagination ul li a.next{font-size:0}
body.vc-shop nav.woocommerce-pagination ul li a.prev::before,
body.vc-shop nav.woocommerce-pagination ul li a.next::before{
  content:"";display:block;width:7px;height:12px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M1 1 7 7 1 13' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M1 1 7 7 1 13' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
body.vc-shop nav.woocommerce-pagination ul li a.prev::before{transform:scaleX(-1)}

/* ============================================================
   Trang sản phẩm
   ============================================================ */
/* .vc-top chỉ chứa ảnh và cột thông tin — nhờ vậy sticky dừng đúng chỗ */
.vc-shop .vc-top{display:grid;gap:clamp(1.25rem,3vw,3rem);align-items:start}
@media (min-width:1024px){
  .vc-shop .vc-top{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
  .vc-shop .vc-top>.summary{position:sticky;top:calc(var(--vc-header-h) + 24px)}
}

/* ---- Thư viện ảnh ---- */
.vc-gal{display:grid;gap:.6rem;margin:0}
.vc-gal__stage{position:relative;display:flex;overflow-x:auto;border-radius:var(--sh-r);background:var(--vc-surface);scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.vc-gal__stage::-webkit-scrollbar{display:none}
.vc-gal__slide{flex:0 0 100%;margin:0;aspect-ratio:1;scroll-snap-align:center}
.vc-gal__slide img{display:block;width:100%;height:100%;object-fit:cover}

.vc-gal__rail{display:none}
.vc-gal__thumb{padding:0;border:0;border-radius:10px;background:none;cursor:pointer;opacity:.5;transition:opacity .18s,outline-color .18s;outline:2px solid transparent;outline-offset:2px}
.vc-gal__thumb img{display:block;width:100%;height:100%;border-radius:10px;object-fit:cover}
.vc-gal__thumb.is-on{opacity:1;outline-color:var(--vc-text)}
.vc-gal__thumb:hover{opacity:1}

.vc-gal__dots{display:flex;gap:.35rem;justify-content:center}
.vc-gal__dot{width:6px;height:6px;border-radius:50%;background:var(--vc-line);transition:background-color .2s,width .2s}
.vc-gal__dot.is-on{width:18px;border-radius:var(--vc-r-full);background:var(--vc-text)}

@media (min-width:1024px){
  .vc-gal--many{grid-template-columns:72px minmax(0,1fr);grid-template-areas:"rail stage"}
  .vc-gal--many .vc-gal__rail{grid-area:rail;display:grid;gap:.5rem;align-content:start}
  .vc-gal--many .vc-gal__stage{grid-area:stage}
  .vc-gal__thumb{aspect-ratio:1}
  .vc-gal__dots{display:none}
}

/* ---- Cột thông tin ---- */
/* Giá đứng trước tên: người mua tìm giá đầu tiên */
.vc-shop .summary .price{order:-1}
.vc-shop .summary{display:flex;flex-direction:column}
.vc-shop .summary .product_title{margin:0 0 .35rem;font-size:var(--vc-step-2);font-weight:var(--vc-w-h2);line-height:var(--vc-lh-h2);letter-spacing:var(--vc-ls-h2);text-wrap:balance}

/* Mã sản phẩm kèm nút chép */
.vc-sku{display:flex;gap:.35rem;align-items:center;margin:0 0 1.1rem;color:var(--vc-muted);font-size:var(--vc-step--1);letter-spacing:.02em}
.vc-sku__copy{display:grid;place-items:center;width:26px;height:26px;padding:0;border:0;border-radius:6px;background:none;color:inherit;cursor:pointer}
.vc-sku__copy:hover{background:var(--vc-surface);color:var(--vc-text)}
.vc-sku__i{width:15px;height:15px}
.vc-sku__copy.is-done{color:var(--vc-support)}
.vc-shop .summary .woocommerce-product-rating{margin:0 0 .7rem;font-size:var(--vc-step--1)}
.vc-shop .summary .star-rating{color:var(--vc-accent)}
/* Woo tô giá bằng chuỗi chọn dài hơn (.woocommerce div.product p.price), phải bám sát mới thắng */
body.vc-shop div.product .summary .price,
body.vc-shop div.product .woocommerce-variation-price .price{display:flex;flex-wrap:wrap;gap:.5rem;align-items:baseline;margin:0 0 1rem;color:var(--vc-text);font-size:clamp(1.75rem,1.35rem + 1.25vw,2.25rem);font-weight:var(--vc-w-h1);line-height:var(--vc-lh-h2);letter-spacing:var(--vc-ls-h2)}
body.vc-shop div.product .summary .price ins{background:none;color:var(--vc-text);text-decoration:none}
body.vc-shop div.product .summary .price del{color:var(--vc-muted);font-size:.6em;font-weight:400}
.vc-shop .woocommerce-product-details__short-description{margin-bottom:1.3rem;max-width:56ch;color:var(--vc-muted);font-size:var(--vc-step-lead);font-weight:var(--vc-w-lead);line-height:1.55;text-wrap:pretty}
.vc-shop .stock.in-stock{color:var(--vc-support);font-size:var(--vc-step--1);font-weight:600}
.vc-shop .stock.out-of-stock{color:#b32d2e;font-size:var(--vc-step--1);font-weight:600}

/* ---- Chọn biến thể ---- */
.vc-sw{display:grid;gap:1.1rem;margin-bottom:1.2rem}
/* form.cart là flex nên khối swatch phải chiếm trọn hàng, nếu không nó chen cạnh nút mua */
.vc-shop form.cart .vc-sw,
.vc-shop form.cart .woocommerce-variation{flex:1 0 100%;width:100%}
.vc-shop form.cart .woocommerce-variation-add-to-cart{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;flex:1 0 100%}
.vc-sw__head{display:flex;gap:.6rem;align-items:baseline;justify-content:space-between;margin-bottom:.5rem}
.vc-sw__label{color:var(--vc-muted);font-size:var(--vc-step--1)}
.vc-sw__label b{margin-left:.3rem;color:var(--vc-text);font-weight:600;text-transform:uppercase}
.vc-sw__guide{flex:none;color:var(--vc-brand);font-size:var(--vc-step--1);text-decoration:none}
.vc-sw__guide:hover{text-decoration:underline}
.vc-sw__opts{display:flex;flex-wrap:wrap;gap:.6rem}

/* Chấm màu to như các shop thời trang, vòng nhấn khi chọn */
.vc-sw__dot{width:46px;height:46px;padding:4px;border:1.5px solid transparent;border-radius:50%;background:none;cursor:pointer;transition:border-color .18s}
.vc-sw__dot span{display:block;width:100%;height:100%;border:1px solid rgba(0,0,0,.14);border-radius:50%}
.vc-sw__dot.is-on{border-color:var(--vc-text)}

/* Ô kích thước hình tròn; các thuộc tính khác giữ dạng viên chữ nhật */
.vc-sw__pill{min-width:46px;min-height:46px;padding:.45rem 1rem;border:1px solid var(--vc-line);border-radius:10px;background:var(--vc-bg);color:inherit;font:inherit;font-size:var(--vc-step--1);font-weight:600;cursor:pointer;transition:border-color .18s,background-color .18s,color .18s}
.vc-sw__row--size .vc-sw__pill{padding:0;border-radius:50%;text-transform:uppercase}
.vc-sw__pill:hover{border-color:var(--vc-text)}
.vc-sw__pill.is-on{border-color:var(--vc-brand);background:var(--vc-bg);color:var(--vc-text);box-shadow:inset 0 0 0 1px var(--vc-brand)}

/* Hết hàng: mờ đi và gạch một đường chéo, vẫn bấm được để xem */
.vc-sw__dot.is-off,.vc-sw__pill.is-off{position:relative;overflow:hidden;opacity:.45}
.vc-sw__dot.is-off::after,.vc-sw__pill.is-off::after{content:"";position:absolute;top:50%;left:-10%;width:120%;height:1px;background:currentColor;transform:rotate(-45deg)}
.vc-sw__dot.is-off::after{color:var(--vc-text)}

/* Có swatch rồi thì giấu bảng select gốc, nhưng vẫn để trong DOM cho Woo dùng */
.vc-shop form.cart.has-swatch .variations{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.vc-shop .variations{width:100%;margin:0 0 1rem;border:0}
.vc-shop .variations th,.vc-shop .variations td{padding:.3rem 0;border:0;text-align:left}
.vc-shop .variations label{font-weight:600;font-size:var(--vc-step--1)}
.vc-shop .variations select{width:100%;max-width:320px;padding:.6rem .9rem;border:1px solid var(--vc-line);border-radius:10px;background:var(--vc-bg);color:inherit;font:inherit}
.vc-shop .reset_variations{font-size:var(--vc-step--1);color:var(--vc-muted)}
.vc-shop .woocommerce-variation-price{margin-bottom:.8rem;font-size:var(--vc-step-1);font-weight:600}

/* ---- Số lượng và nút mua ---- */
.vc-shop form.cart{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin:0 0 1.2rem}
.vc-shop .quantity{display:inline-flex;align-items:center;overflow:hidden;border:1px solid var(--vc-line);border-radius:var(--vc-r-full)}
.vc-qty__btn{width:42px;height:48px;border:0;background:none;color:inherit;font-size:1.05rem;line-height:1;cursor:pointer}
.vc-qty__btn:hover{background:var(--vc-surface)}
.vc-shop .quantity input.qty{width:40px;height:48px;padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:600;text-align:center;-moz-appearance:textfield}
.vc-shop .quantity input.qty::-webkit-inner-spin-button,
.vc-shop .quantity input.qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

.vc-shop .button,
.vc-shop button.button,
.vc-shop a.button,
.vc-shop input.button,
.vc-shop .button.alt{display:inline-flex;align-items:center;justify-content:center;min-height:var(--vc-btn-h);padding:var(--vc-btn-pad);border:0;border-radius:var(--vc-r);background:var(--vc-brand);color:var(--vc-brand-ink);font:inherit;font-size:var(--vc-step-btn);font-weight:var(--vc-w-btn);line-height:1.2;text-decoration:none;cursor:pointer;transition:transform .15s var(--sh-ease),opacity .15s}
.vc-shop .button:hover{transform:translateY(-1px);opacity:.92;background:var(--vc-brand);color:var(--vc-brand-ink)}
.vc-shop form.cart .single_add_to_cart_button{flex:1;min-width:180px}

/* Woo tô nút .alt bằng màu tím riêng với chuỗi chọn dài; phải cụ thể hơn mới thắng */
body.vc-shop a.button.alt,
body.vc-shop button.button.alt,
body.vc-shop input.button.alt,
body.vc-shop a.button.alt.disabled,
body.vc-shop button.button.alt.disabled,
body.vc-shop button.button.alt:disabled,
body.vc-shop button.button.alt:disabled[disabled],
body.vc-shop a.button.alt:hover,
body.vc-shop button.button.alt:hover{background-color:var(--vc-brand);color:var(--vc-brand-ink)}
body.vc-shop .button.disabled,
body.vc-shop button.button:disabled,
body.vc-shop button.button:disabled[disabled]{opacity:.4;cursor:not-allowed}
body.vc-shop .button.disabled:hover,
body.vc-shop button.button:disabled:hover{transform:none}

/* ---- Cam kết, dạng thẻ hai cột ---- */
.vc-trust{margin:0 0 1.2rem;padding:1.2rem 0 0;border-top:1px solid var(--vc-line)}
.vc-trust__head{display:flex;gap:.4rem;align-items:center;margin:0 0 .8rem;font-size:var(--vc-step-0);font-weight:600}
.vc-trust__seal{width:18px;height:18px;color:var(--vc-support)}
.vc-trust__grid{display:grid;gap:.7rem;grid-template-columns:1fr}
@media (min-width:640px){.vc-trust__grid{grid-template-columns:repeat(2,1fr)}}
.vc-trust__card{display:flex;gap:.7rem;align-items:flex-start;padding:.9rem;border:1px solid var(--vc-line);border-radius:12px}
.vc-trust__i{flex:none;width:22px;height:22px;padding:0;color:var(--vc-brand)}
.vc-trust__card b{display:block;font-size:var(--vc-step--1);font-weight:600;line-height:1.35}
.vc-trust__card span{display:block;margin-top:.15rem;color:var(--vc-muted);font-size:var(--vc-step--2);line-height:1.4}
.vc-trust__card a{display:inline-block;margin-top:.2rem;color:var(--vc-brand);font-size:var(--vc-step--2);text-decoration:none}
.vc-trust__card a:hover{text-decoration:underline}

.vc-shop .product_meta{padding-top:1rem;border-top:1px solid var(--vc-line);color:var(--vc-muted);font-size:var(--vc-step--1)}
.vc-shop .product_meta>span{display:block;margin-bottom:.2rem}
.vc-shop .product_meta a{color:inherit}

/* ---- Accordion thay cho tab ---- */
.vc-acc{margin-top:clamp(2rem,5vw,3.5rem);border-top:1px solid var(--vc-line)}
.vc-acc__item{border-bottom:1px solid var(--vc-line)}
.vc-acc__q{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.15rem 0;font-size:var(--vc-step-1);font-weight:var(--vc-w-h3);cursor:pointer;list-style:none}
.vc-acc__q::-webkit-details-marker{display:none}
.vc-acc__q::after{content:"";flex:none;width:9px;height:9px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .22s var(--sh-ease)}
.vc-acc__item[open] .vc-acc__q::after{transform:rotate(-135deg) translateY(-2px)}
.vc-acc__a{padding:0 0 1.6rem;max-width:70ch;color:var(--vc-muted)}
.vc-acc__a>:first-child{margin-top:0}
.vc-acc__a>:last-child{margin-bottom:0}
.vc-acc__a table{width:100%;border-collapse:collapse}
.vc-acc__a th,.vc-acc__a td{padding:.6rem 0;border-bottom:1px solid var(--vc-line);text-align:left;vertical-align:top}
.vc-acc__a th{width:34%;color:var(--vc-text);font-weight:600}

/* ---- Sản phẩm liên quan: dải cuộn ngang ---- */
.vc-shop .related,.vc-shop .upsells{margin-top:clamp(2.5rem,6vw,4rem)}
.vc-shop .related>h2,.vc-shop .upsells>h2{margin:0 0 1.2rem;font-size:var(--vc-step-2);font-weight:var(--vc-w-h2);letter-spacing:-.02em}
@media (max-width:1279px){
  .vc-shop .related ul.products,
  .vc-shop .upsells ul.products{display:flex;gap:var(--sh-gap);overflow-x:auto;padding-bottom:.5rem;scroll-snap-type:x proximity;scrollbar-width:none}
  .vc-shop .related ul.products::-webkit-scrollbar,
  .vc-shop .upsells ul.products::-webkit-scrollbar{display:none}
  .vc-shop .related ul.products li.product,
  .vc-shop .upsells ul.products li.product{flex:0 0 min(64%,240px);scroll-snap-align:start}
}

/*
 * ---- Cột mua ghim mép trái trên mobile ----
 * Ghim trái chứ KHÔNG dính đáy: đáy màn hình thuộc về dock của plugin, đặt phần
 * tử fixed ở đó là phá hợp đồng ghi trong CLAUDE.md mục 3. Ghim sẵn chứ không
 * chờ cuộn — ở trang sản phẩm thì mua hàng là việc duy nhất đáng làm.
 */
/*
 * Ngồi ngay trên dock, dùng đúng biến dock của plugin; dự phòng 0px để plugin
 * tắt thì cột tự tụt sát đáy. Cùng công thức với cụm liên hệ nên hai bên thẳng hàng.
 */
.vc-buybar{position:fixed;left:0;bottom:calc(var(--vtg-dock-height,0px) + var(--vtg-dock-bottom,0px) + var(--vtg-contact-dock-gap,var(--vc-s-3)) + env(safe-area-inset-bottom));z-index:60;display:grid;gap:var(--vc-s-3);justify-items:center;width:7rem;padding:var(--vc-s-3) var(--vc-s-2);border:1px solid var(--vc-line);border-left:0;border-radius:0 var(--vc-r-lg) var(--vc-r-lg) 0;background:color-mix(in srgb,var(--vc-bg) 92%,transparent);backdrop-filter:saturate(180%) blur(16px);box-shadow:0 4px 18px rgb(0 0 0/.10)}
.vc-buybar__info{display:grid;gap:2px;width:100%;min-width:0;line-height:1.3;text-align:center}
/* Hai dòng: cột hẹp, cắt một dòng thì tên chỉ còn vài chữ cái */
.vc-buybar__info b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:var(--vc-step--2);font-weight:600}
/* Giá gãy dòng giữa số sẽ đọc thành hai số; nhỏ một bậc cho vừa giá hàng chục triệu */
.vc-buybar__info span{font-size:var(--vc-step--2);font-weight:600;color:var(--vc-text);white-space:nowrap}
/* Cột hẹp: giá gạch xuống dòng riêng */
.vc-buybar__info del{display:block;margin:0;font-size:var(--vc-step--2);color:var(--vc-muted);font-weight:400;white-space:nowrap}
.vc-buybar__info ins{text-decoration:none;white-space:nowrap}

.vc-buybar__acts{display:grid;gap:var(--vc-s-2);justify-items:center}
.vc-buybar__cart,
.vc-buybar__buy{display:grid;place-items:center;width:var(--vc-btn-h);height:var(--vc-btn-h);padding:0;border-radius:var(--vc-r-full);font:inherit;cursor:pointer}
.vc-buybar__cart{border:1px solid var(--vc-line);background:none;color:var(--vc-text)}
.vc-buybar__cart:active{background:var(--vc-surface)}
.vc-buybar__buy{border:0;background:var(--vc-brand);color:var(--vc-brand-ink)}
.vc-buybar__cart svg,
.vc-buybar__buy svg{width:22px;height:22px}

/* Desktop có nút mua ngay trong cột thông tin nên không cần cột này */
@media (min-width:1024px){.vc-buybar{display:none}}

/* Đã bỏ hai rule cũ (giấu dock, chừa padding đáy): cột mua không còn ở đáy nữa. */

/* ============================================================
   Giỏ hàng, thanh toán, tài khoản — template cổ điển
   ============================================================ */
.vc-shop .shop_table{width:100%;border:0;border-collapse:collapse}
.vc-shop .shop_table th,.vc-shop .shop_table td{padding:1rem .6rem;border:0;border-bottom:1px solid var(--vc-line);background:none;text-align:left;vertical-align:middle}
.vc-shop .shop_table th{color:var(--vc-muted);font-size:var(--vc-step--1);font-weight:600;letter-spacing:.02em;text-transform:uppercase}
.vc-shop .shop_table .product-thumbnail img{width:64px;height:64px;border-radius:10px;background:var(--vc-surface);object-fit:cover}
.vc-shop .shop_table .product-name a{color:inherit;font-weight:600;text-decoration:none}
.vc-shop .product-remove a.remove{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--vc-surface);color:var(--vc-muted)!important;font-size:1.1rem;line-height:1;text-decoration:none}
.vc-shop .product-remove a.remove:hover{background:#b32d2e;color:#fff!important}

.vc-shop .cart-collaterals{display:grid;gap:1.4rem;margin-top:2rem}
@media (min-width:1024px){.vc-shop .cart-collaterals{grid-template-columns:1fr minmax(0,380px);justify-content:end}}
.vc-shop .cart_totals,
.vc-shop #order_review{padding:1.5rem;border:1px solid var(--vc-line);border-radius:var(--sh-r);background:var(--vc-surface)}
.vc-shop .cart_totals h2{margin:0 0 1rem;font-size:var(--vc-step-1);font-weight:var(--vc-w-h3)}
.vc-shop .cart_totals .order-total{font-size:var(--vc-step-1);font-weight:600}
.vc-shop .wc-proceed-to-checkout .button{width:100%}
.vc-shop .coupon{display:flex;gap:.5rem;flex-wrap:wrap}
.vc-shop .cart-empty{font-size:var(--vc-step-lead);font-weight:var(--vc-w-lead)}

.vc-shop form.checkout{display:grid;gap:clamp(1.5rem,4vw,3rem)}
@media (min-width:1024px){
  .vc-shop form.checkout{grid-template-columns:minmax(0,1fr) minmax(0,420px);align-items:start}
  .vc-shop form.checkout #customer_details{grid-column:1}
  .vc-shop form.checkout #order_review_heading,
  .vc-shop form.checkout #order_review{grid-column:2}
}
.vc-shop #order_review_heading{margin:0 0 1rem;font-size:var(--vc-step-1);font-weight:var(--vc-w-h3)}
.vc-shop #payment .payment_methods{margin:0;padding:0;list-style:none}
.vc-shop #payment .payment_methods li{padding:.7rem 0;border-bottom:1px solid var(--vc-line)}
.vc-shop #payment .payment_box{margin:.5rem 0 0;padding:.8rem 1rem;border-radius:10px;background:var(--vc-bg);color:var(--vc-muted);font-size:var(--vc-step--1)}
.vc-shop #payment .payment_box::before{display:none}
.vc-shop #place_order{width:100%;margin-top:1rem}

.vc-shop .form-row{display:grid;gap:.3rem;margin:0 0 1rem;padding:0}
.vc-shop .form-row label{font-size:var(--vc-step--1);font-weight:600}
.vc-shop .input-text,
.vc-shop select,
.vc-shop textarea{width:100%;padding:.75rem .95rem;border:1px solid var(--vc-line);border-radius:10px;background:var(--vc-bg);color:inherit;font:inherit}
.vc-shop .input-text:focus,
.vc-shop select:focus,
.vc-shop textarea:focus{border-color:var(--vc-brand);outline:2px solid color-mix(in srgb,var(--vc-brand) 25%,transparent);outline-offset:1px}
.vc-shop .woocommerce-billing-fields>h3,
.vc-shop .woocommerce-shipping-fields>h3,
.vc-shop .woocommerce-additional-fields>h3{margin:0 0 1rem;font-size:var(--vc-step-1);font-weight:var(--vc-w-h3)}

.vc-shop .woocommerce-MyAccount-navigation ul{display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 2rem;padding:0;list-style:none;border-bottom:1px solid var(--vc-line)}
.vc-shop .woocommerce-MyAccount-navigation a{display:block;padding:.6rem 1rem;border-radius:var(--vc-r-full) 999px 0 0;color:var(--vc-muted);font-size:var(--vc-step--1);font-weight:600;text-decoration:none}
.vc-shop .woocommerce-MyAccount-navigation li.is-active a{background:var(--vc-surface);color:var(--vc-text)}

/* ---- Thông báo ---- */
.vc-shop .woocommerce-message,
.vc-shop .woocommerce-info,
.vc-shop .woocommerce-error{display:flex;gap:.8rem;flex-wrap:wrap;align-items:center;margin:0 0 1.5rem;padding:1rem 1.2rem;border:0;border-left:3px solid var(--vc-brand);border-radius:10px;background:var(--vc-surface);color:inherit;list-style:none}
.vc-shop .woocommerce-message::before,
.vc-shop .woocommerce-info::before,
.vc-shop .woocommerce-error::before{display:none}
.vc-shop .woocommerce-error{border-left-color:#b32d2e}
.vc-shop .woocommerce-message .button,
.vc-shop .woocommerce-info .button{margin-left:auto;min-height:36px;padding:.4rem 1.1rem}

/* ============================================================
   Giỏ hàng và thanh toán dạng block
   Nút của khối mang lớp .wp-element-button vốn lấy màu từ global styles —
   mà module Trình soạn thảo cổ điển đã gỡ global styles, nên tự tô lại.
   ============================================================ */
.vc-shop .wc-block-components-button:not(.is-link),
.vc-shop .wp-element-button{display:inline-flex;align-items:center;justify-content:center;min-height:var(--vc-btn-h);padding:var(--vc-btn-pad);border:0;border-radius:var(--vc-r);background-color:var(--vc-brand);color:var(--vc-brand-ink);font:inherit;font-size:var(--vc-step-btn);font-weight:var(--vc-w-btn);line-height:1.2;text-align:center;text-decoration:none;cursor:pointer}
.vc-shop .wc-block-components-button:not(.is-link):hover,
.vc-shop .wp-element-button:hover{background-color:var(--vc-brand);color:var(--vc-brand-ink);opacity:.92}
.vc-shop .wc-block-cart__submit-button,
.vc-shop .wc-block-components-checkout-place-order-button{width:100%}
.vc-shop .wc-block-components-button.is-link{color:var(--vc-brand)}
/*
 * Khối tóm tắt đơn hàng: có viền thì phải có đệm, nếu không chữ dính sát vào
 * viền đúng 1px và nhìn như tràn ra khỏi hộp.
 */
.vc-shop .wc-block-components-sidebar .wc-block-components-panel,
.vc-shop .wp-block-woocommerce-checkout-order-summary-block{border:1px solid var(--vc-line);border-radius:var(--sh-r);background:var(--vc-surface)}
.vc-shop .wp-block-woocommerce-checkout-order-summary-block{padding:var(--vc-s-4)}
.vc-shop .wc-block-components-sidebar .wc-block-components-panel{padding:var(--vc-s-3) var(--vc-s-4)}
/* Panel gập/mở nằm LỒNG trong khối — để cả hai có viền sẽ thành khung trong khung */
.vc-shop .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-panel{padding-inline:0;border:0;border-radius:0;background:none}
.vc-shop .wc-block-components-text-input input,
.vc-shop .wc-block-components-form .wc-blocks-components-select__container{border-radius:10px}
.vc-shop .wc-block-components-product-name{color:inherit;font-weight:600;text-decoration:none}
.vc-shop .wc-block-components-totals-item__value{font-weight:600}
.vc-shop .wc-block-components-notice-banner{border-radius:10px}
.vc-shop .wc-block-components-product-image img{border-radius:8px}

/* ---- Trang thanh toán dạng block ---- */
/*
 * Markup của WooCommerce để lọt nút văn bản khoảng trắng giữa các thẻ. Trong khối
 * chỉ chứa phần tử, mỗi nút như vậy vẫn sinh ra một dòng cao ~29px — cộng lại mất
 * hơn 140px chiều cao rỗng. Triệt line-height ở vỏ khối rồi trả lại cho phần tử con.
 */
body.vc-shop div[class*="wp-block-woocommerce-checkout"],
body.vc-shop div[class*="wp-block-woocommerce-cart"],
body.vc-shop .wc-block-components-checkout-step__content,
body.vc-shop .wc-block-components-checkout-order-summary__content{line-height:0}
body.vc-shop div[class*="wp-block-woocommerce-checkout"]>*,
body.vc-shop div[class*="wp-block-woocommerce-cart"]>*,
body.vc-shop .wc-block-components-checkout-step__content>*,
body.vc-shop .wc-block-components-checkout-order-summary__content>*{line-height:1.55}

/* Khối phí và giảm giá vẫn chiếm chỗ dù rỗng ruột */
body.vc-shop .wc-block-components-totals-wrapper:not(:has(*)){display:none}
body.vc-shop .wp-block-woocommerce-checkout-order-summary-totals-block{padding-bottom:0}

body.vc-shop .wc-block-components-checkout-step{margin:0 0 1.5rem;padding:0;border:0}
body.vc-shop .wc-block-components-checkout-step__heading-container{margin:0 0 .55rem}
body.vc-shop .wc-block-components-checkout-step__heading{margin:0}
body.vc-shop .wc-block-components-checkout-step__title{margin:0;color:inherit;font-size:var(--vc-step-1);font-weight:600;line-height:1.25}
body.vc-shop .wc-block-components-checkout-step__description{margin:.25rem 0 0;color:var(--vc-muted);font-size:var(--vc-step--1);line-height:1.4}
body.vc-shop .wc-block-components-checkout-step__content{padding:0;margin:0}
/* Woo đã có lưới riêng cho form địa chỉ, chỉ nới khoảng cách dòng — đặt display
   ở đây sẽ phá bố cục hai cột của họ. */
body.vc-shop .wc-block-components-address-form{row-gap:.6rem}
body.vc-shop .wc-block-components-text-input input,
body.vc-shop .wc-block-components-address-form input,
body.vc-shop .wc-block-components-form textarea,
body.vc-shop .wc-blocks-components-select__select{min-height:48px;border:1px solid var(--vc-line);border-radius:12px;background:var(--vc-bg);color:inherit;font:inherit}
body.vc-shop .wc-block-components-text-input input:focus,
body.vc-shop .wc-blocks-components-select__select:focus{border-color:var(--vc-brand);outline:2px solid color-mix(in srgb,var(--vc-brand) 22%,transparent);outline-offset:1px;box-shadow:none}
body.vc-shop .wc-block-components-text-input label,
body.vc-shop .wc-blocks-components-select__label{color:var(--vc-muted)}
body.vc-shop .wc-block-checkout__no-payment-methods-notice,
body.vc-shop .wc-block-components-notice-banner{border:0;border-left:3px solid var(--vc-brand);border-radius:10px;background:var(--vc-surface);color:inherit}
body.vc-shop .wc-block-components-notice-banner.is-error,
body.vc-shop .wc-block-checkout__no-payment-methods-notice{border-left-color:#b32d2e}
body.vc-shop .wc-block-checkout__terms{margin:1.2rem 0;color:var(--vc-muted);font-size:var(--vc-step--1)}
body.vc-shop .wc-block-checkout__actions{padding-top:.5rem}

/* ---- Tấm tóm tắt đơn hàng ---- */
body.vc-shop .wc-block-components-checkout-order-summary__title{margin:0 0 .3rem;padding:0}
body.vc-shop .wc-block-components-checkout-order-summary__title-text{font-size:var(--vc-step-1);font-weight:600;line-height:1.3}

/* Dòng hàng gọn lại; mô tả sản phẩm là thừa trong bảng tóm tắt */
body.vc-shop .wc-block-components-order-summary-item{padding:.85rem 0;border:0}
body.vc-shop .wc-block-components-order-summary-item+.wc-block-components-order-summary-item{border-top:1px solid var(--vc-line)}
body.vc-shop .wc-block-components-order-summary-item__image{width:60px;padding-right:.85rem}
body.vc-shop .wc-block-components-order-summary-item__image img{width:56px;height:56px;border-radius:10px;background:var(--vc-bg);object-fit:cover}
body.vc-shop .wc-block-components-order-summary-item__quantity{top:-6px;right:2px;min-width:20px;height:20px;border:0;border-radius:var(--vc-r-full);background:var(--vc-text);color:var(--vc-bg);font-size:var(--vc-step-badge);font-weight:600;box-shadow:none}
body.vc-shop .wc-block-components-order-summary-item .wc-block-components-product-metadata__description{display:none}
body.vc-shop .wc-block-components-order-summary-item .wc-block-components-product-name{font-size:var(--vc-step--1);font-weight:600;line-height:1.35}
body.vc-shop .wc-block-components-order-summary-item .wc-block-cart-item__prices{margin-top:.1rem;color:var(--vc-muted);font-size:var(--vc-step--2)}
body.vc-shop .wc-block-components-order-summary-item__total-price{font-size:var(--vc-step--1);font-weight:600}
/* Số tiền tiết kiệm nói bằng màu chữ, không cần đóng khung */
body.vc-shop .wc-block-components-sale-badge{margin-top:.15rem;padding:0;border:0;background:none;color:var(--vc-support);font-size:var(--vc-step--2);font-weight:600}

/* Mã giảm giá là hành động phụ — không được nổi hơn dòng tổng tiền */
body.vc-shop .wc-block-components-totals-coupon{border:0;background:none}
body.vc-shop .wc-block-components-totals-coupon .wc-block-components-panel__button{padding:0 24px 0 0;color:var(--vc-brand);font-size:var(--vc-step--1);font-weight:600}
body.vc-shop .wc-block-components-totals-coupon__form{display:flex;gap:.5rem;align-items:stretch;margin:.6rem 0 0}
body.vc-shop .wc-block-components-totals-coupon__form .wc-block-components-text-input{flex:1;margin:0}
body.vc-shop .wc-block-components-totals-coupon__form input{min-height:44px;border-radius:10px}
/* Cụ thể hơn quy tắc nút chung ở trên, nếu không nút này sẽ thành viên đặc màu thương hiệu */
body.vc-shop .wc-block-components-totals-coupon .wc-block-components-totals-coupon__button{flex:none;min-height:44px;padding:.5rem 1.1rem;border:1px solid var(--vc-brand);border-radius:10px;background-color:transparent;color:var(--vc-brand);font-size:var(--vc-step--1);font-weight:600}
body.vc-shop .wc-block-components-totals-coupon .wc-block-components-totals-coupon__button:hover{background-color:var(--vc-brand);color:var(--vc-brand-ink);opacity:1}

/* Cộng tiền: chỉ một đường kẻ, ngay trước dòng tổng */
body.vc-shop .wc-block-components-totals-wrapper{padding:.6rem 0;border:0}
body.vc-shop .wc-block-components-totals-wrapper:has(.wc-block-components-totals-footer-item){margin-top:.4rem;padding-top:.9rem;border-top:1px solid var(--vc-line)}
body.vc-shop .wc-block-components-totals-item__label{color:var(--vc-muted);font-size:var(--vc-step--1)}
body.vc-shop .wc-block-components-totals-footer-item .wc-block-components-totals-item__label{color:inherit;font-size:inherit;font-weight:600}
/* Đường kẻ đứt trước dòng tổng, phần giảm giá tô xanh */
body.vc-shop .wc-block-components-totals-wrapper:has(.wc-block-components-totals-footer-item){border-top-style:dashed}
body.vc-shop .wc-block-components-totals-discount .wc-block-components-totals-item__value,
body.vc-shop .wc-block-components-totals-discount .wc-block-components-totals-item__label{color:var(--vc-support)}
body.vc-shop .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{font-size:1.15em;letter-spacing:-.01em}

/* ---- Dải trấn an dưới giỏ hàng và thanh toán ---- */
.vc-assure{display:grid;gap:.6rem;margin-top:1.6rem;padding-top:1.2rem;border-top:1px solid var(--vc-line)}
@media (min-width:768px){.vc-assure{grid-template-columns:repeat(2,1fr);gap:.6rem 1.6rem}}
.vc-assure__row{display:flex;gap:.6rem;align-items:center;color:var(--vc-muted);font-size:var(--vc-step--1);line-height:1.45}
.vc-assure__row b{color:var(--vc-text);font-weight:600}
.vc-assure__i{flex:none;width:20px;height:20px;color:var(--vc-brand)}
.vc-assure__row--ship{grid-column:1 / -1;padding:.7rem .9rem;border-radius:10px;background:var(--vc-surface)}
.vc-assure__row--ship .vc-assure__i{color:var(--vc-support)}

/* ---- Gợi ý mua kèm: dải cuộn ngang ---- */
.vc-shop .wc-block-cart__cross-sells{margin-top:1.6rem;padding-top:1.2rem;border-top:1px solid var(--vc-line)}
.vc-shop .wc-block-cart__cross-sells .wc-block-grid__products,
.vc-shop .cross-sells ul.products{display:flex;gap:var(--sh-gap);overflow-x:auto;padding-bottom:.5rem;scroll-snap-type:x proximity;scrollbar-width:none}
.vc-shop .wc-block-cart__cross-sells .wc-block-grid__products::-webkit-scrollbar,
.vc-shop .cross-sells ul.products::-webkit-scrollbar{display:none}
.vc-shop .wc-block-cart__cross-sells .wc-block-grid__product,
.vc-shop .cross-sells ul.products li.product{flex:0 0 min(46%,170px);scroll-snap-align:start}

/* ---- Bố cục giỏ hàng ---- */
@media (min-width:1024px){
  .vc-shop .wc-block-cart.is-large{display:grid;grid-template-columns:minmax(0,1fr) 372px;gap:clamp(1.5rem,3vw,3rem);align-items:start}
  .vc-shop .wc-block-cart.is-large>.wc-block-cart__main{width:auto;max-width:none;padding:0}
  .vc-shop .wc-block-cart.is-large>.wc-block-cart__sidebar{position:sticky;top:calc(var(--vc-header-h) + 24px);width:auto;max-width:none}
}

/*
 * Dòng hàng dựng bằng lưới thay vì bảng. Theme có rule .vc-entry table{display:block}
 * cho bảng trong bài viết, và table-layout tự động chia cột rất khó đoán ở đây.
 */
.vc-shop .wc-block-cart-items,
.vc-shop .wc-block-cart-items tbody{display:block;width:100%;overflow:visible;white-space:normal}
.vc-shop .wc-block-cart-items thead,
.vc-shop .wc-block-cart-items caption{display:none}
.vc-shop .wc-block-cart-items__row{display:grid;grid-template-columns:100px minmax(0,1fr) auto;gap:0 1.2rem;align-items:start;padding:1.4rem 0}
body.vc-shop .wc-block-cart-items,
body.vc-shop .wc-block-cart-items tbody,
body.vc-shop .wc-block-cart-items__row td{border:0}
body.vc-shop .wc-block-cart-items__row td{padding:0;background:none;white-space:normal}
body.vc-shop .wc-block-cart-items__row+.wc-block-cart-items__row{border-top:1px solid var(--vc-line)}
.vc-shop .wc-block-cart-items__row:first-child{padding-top:0}

/* Danh sách hàng nằm trong một tấm riêng, giống lối các shop trong nước */
@media (min-width:1024px){
  .vc-shop .wc-block-cart.is-large>.wc-block-cart__main{padding:1.5rem;border:1px solid var(--vc-line);border-radius:var(--sh-r)}
}
.vc-shop .wc-block-cart-item__image img{width:100px;height:100px;border-radius:12px;background:var(--vc-surface);object-fit:cover}

/* Biến thể hiện thành chip thay vì dòng chữ mờ */
.vc-shop .wc-block-components-product-details{display:flex;flex-wrap:wrap;gap:.35rem;margin:.35rem 0 0;padding:0;list-style:none}
.vc-shop .wc-block-components-product-details__name{display:none}
.vc-shop .wc-block-components-product-details li{margin:0;padding:.25rem .6rem;border:1px solid var(--vc-line);border-radius:var(--vc-r-full);color:var(--vc-muted);font-size:var(--vc-step--2)}
.vc-shop .wc-block-cart-item__wrap{display:grid;gap:.2rem}
.vc-shop .wc-block-components-product-name{color:inherit;font-size:var(--vc-step-0);font-weight:600;line-height:1.35;text-decoration:none}
.vc-shop .wc-block-components-product-metadata{order:2;color:var(--vc-muted);font-size:var(--vc-step--1)}
.vc-shop .wc-block-components-product-metadata p{margin:0}
.vc-shop .wc-block-cart-item__prices{order:3;color:var(--vc-muted);font-size:var(--vc-step--1)}
.vc-shop .wc-block-cart-item__prices .price{font-size:inherit}
.vc-shop .wc-block-cart-item__total{text-align:right;font-size:var(--vc-step-0);font-weight:600}

/* Ô số lượng: cùng kiểu viên bo tròn với trang sản phẩm. Thứ tự DOM là input,
   trừ, cộng nên phải sắp lại bằng order. */
.vc-shop .wc-block-cart-item__quantity{order:4;display:flex;gap:.9rem;align-items:center;margin-top:.7rem}
.vc-shop .wc-block-components-quantity-selector{display:inline-flex;align-items:center;width:auto;min-width:0;overflow:hidden;border:1px solid var(--vc-line);border-radius:var(--vc-r-full);background:none}
.vc-shop .wc-block-components-quantity-selector::after{display:none}
.vc-shop .wc-block-components-quantity-selector__input{order:2;width:34px;min-width:0;padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:600;text-align:center}
.vc-shop .wc-block-components-quantity-selector__button{order:1;width:36px;height:40px;padding:0;border:0;background:none;color:inherit;font-size:1rem;opacity:1}
.vc-shop .wc-block-components-quantity-selector__button--plus{order:3}
.vc-shop .wc-block-components-quantity-selector__button:hover{background:var(--vc-surface)}
.vc-shop .wc-block-cart-item__remove-link{color:var(--vc-muted);font-size:var(--vc-step--1)}
.vc-shop .wc-block-cart-item__remove-link:hover{color:#b32d2e}

/* Cột tổng gộp về một tấm duy nhất */
.vc-shop .wc-block-cart__sidebar{padding:1.5rem;border:1px solid var(--vc-line);border-radius:var(--sh-r);background:var(--vc-surface)}
.vc-shop .wc-block-cart__sidebar>div{padding:0;border:0;background:none}
body.vc-shop .wc-block-cart__totals-title{margin:0 0 .9rem;padding:0;color:inherit;font-size:var(--vc-step-1);font-weight:600;line-height:1.3;letter-spacing:0;text-transform:none}
.vc-shop .wc-block-components-totals-wrapper{padding:.75rem 0;border-color:var(--vc-line)}
.vc-shop .wc-block-components-totals-item__label{color:var(--vc-muted)}
.vc-shop .wc-block-components-totals-item__value{font-weight:600}
.vc-shop .wc-block-components-totals-footer-item{font-size:var(--vc-step-1)}
.vc-shop .wc-block-cart__submit{padding-top:1rem}
body.vc-shop .wc-block-cart__sidebar .wc-block-components-totals-coupon.wc-block-components-panel{border:0;background:none}
body.vc-shop .wc-block-components-panel__button{padding:0 24px 0 0;color:var(--vc-brand);font-size:var(--vc-step--1);font-weight:600}
body.vc-shop .wc-block-components-panel__button svg{fill:currentColor}

/* Màn hẹp: ảnh chiếm hai hàng, tổng tiền xuống dưới phần chữ */
@media (max-width:639px){
  .vc-shop .wc-block-cart-items__row{grid-template-columns:76px minmax(0,1fr);gap:0 1rem}
  .vc-shop .wc-block-cart-item__image{grid-row:span 2}
  .vc-shop .wc-block-cart-item__image img{width:76px;height:76px}
  .vc-shop .wc-block-cart-item__total{margin-top:.5rem;text-align:left}
}

/* ---- Giỏ rỗng và lưới gợi ý ---- */
.vc-shop .wp-block-woocommerce-empty-cart-block{padding-block:1rem;text-align:center}
.vc-shop .wp-block-woocommerce-empty-cart-block>.wp-block-separator{margin-block:2.5rem;border:0;border-top:1px solid var(--vc-line)}
.vc-shop .wc-block-grid__products{display:grid;gap:var(--vc-s-6) var(--sh-gap);grid-template-columns:repeat(2,1fr);margin:0;padding:0;list-style:none;text-align:left}
@media (min-width:768px){.vc-shop .wc-block-grid__products{grid-template-columns:repeat(4,1fr)}}
.vc-shop .wc-block-grid__product{margin:0;padding:0;width:auto;max-width:none}
.vc-shop .wc-block-grid__product-link{color:inherit;text-decoration:none}
.vc-shop .wc-block-grid__product-image{display:block;overflow:hidden;margin:0 0 .7rem;border-radius:var(--sh-r);background:var(--vc-surface);aspect-ratio:var(--sh-ratio)}
.vc-shop .wc-block-grid__product-image img{width:100%;height:100%;object-fit:cover}
.vc-shop .wc-block-grid__product-title{margin:0;font-size:var(--vc-step-0);font-weight:var(--vc-w-h3);line-height:1.35}
.vc-shop .wc-block-grid__product-price{display:block;margin-top:.15rem;font-size:var(--vc-step-0);font-weight:600}
.vc-shop .wc-block-grid__product-price del{margin-right:.35rem;color:var(--vc-muted);font-weight:400}
.vc-shop .wc-block-grid__product-price ins{background:none;text-decoration:none}
.vc-shop .wc-block-grid__product-add-to-cart{margin-top:.6rem}
.vc-shop .wc-block-grid__product-onsale{position:absolute;top:.6rem;left:.6rem;padding:.25rem .6rem;border:0;border-radius:var(--vc-r-full);background:var(--vc-text);color:var(--vc-bg);font-size:var(--vc-step-badge);font-weight:600}

@media (prefers-reduced-motion:reduce){
  .vc-shop *,.vc-buybar{transition:none!important}
  .vc-shop li.product:hover .vc-p__media img{transform:none}
  .vc-shop .button:hover{transform:none}
  .vc-gal__stage{scroll-behavior:auto}
}
