/*!
 * Zacom-shop — WooCommerce styles (card, shop, product, cart, checkout, order, account, notices).
 *
 * Mục lục: 1. Notices, forms, tables · 2. Lưới + thẻ sản phẩm (+ slider) · 3. Cửa hàng / danh mục
 * 4. Trang sản phẩm (gallery, summary, chính sách, tab, đánh giá, thanh mua dính) · 5. Giỏ hàng
 * 6. Thanh toán · 7. Đặt hàng thành công · 8. Block (chính sách, FAQ, menu danh mục) · 9. Popup mua nhanh + toast
 * 10. Responsive (woo) · 11. Tương thích plugin (biến thể, flash sale, bộ lọc)
 */

/* ------------------------------------------------------------------ *
 * 1. Notices, forms, tables
 * ------------------------------------------------------------------ */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice { list-style: none; margin: 0 0 16px; padding: 12px 16px; border-radius: var(--zc-radius); border: 1px solid var(--zc-green-line); background: var(--zc-green-soft); color: var(--zc-green-dark); font-size: .875rem; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.woocommerce-message .button, .woocommerce-info .button { margin-left: auto; }
.woocommerce-error { background: #FDECEE; border-color: #F5C2C7; color: #9B1C28; display: block; }
.woocommerce-error li { margin: 2px 0; }
.woocommerce-info { background: #F0F6FF; border-color: #C9DDFB; color: #1E4FA3; }

.woocommerce form .form-row { margin: 0 0 12px; padding: 0; }
.woocommerce form .form-row label, .woocommerce-checkout .form-row label { display: block; font-size: .75rem; color: var(--zc-muted); margin-bottom: 5px; }
.woocommerce form .form-row .required { color: var(--zc-red); text-decoration: none; border: 0; }
.woocommerce input.input-text, .woocommerce textarea, .woocommerce select, .woocommerce-page input.input-text, .woocommerce .select2-container--default .select2-selection--single { width: 100%; border: 1px solid var(--zc-line-2); border-radius: var(--zc-radius); padding: 12px; font-size: .875rem; background: #fff; color: var(--zc-text); min-height: 46px; }
.woocommerce .select2-container--default .select2-selection--single { display: flex; align-items: center; padding: 0 12px; }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.4; color: var(--zc-text); }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; right: 8px; }
.woocommerce input.input-text:focus, .woocommerce textarea:focus, .woocommerce select:focus { outline: 2px solid var(--zc-green); outline-offset: -2px; }
.woocommerce form .form-row.woocommerce-invalid input.input-text, .woocommerce form .form-row.woocommerce-invalid select { border-color: var(--zc-red); }
.woocommerce form .form-row input[type="checkbox"], .woocommerce form .form-row input[type="radio"] { accent-color: var(--zc-green); width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; }
.woocommerce form .form-row .checkbox, .woocommerce form .form-row label.checkbox { display: flex; align-items: center; gap: 0; font-size: .7813rem; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce #respond input#submit { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; background: var(--zc-green); color: #fff; border: 0; border-radius: var(--zc-radius); font: 700 .875rem var(--zc-font); }
.woocommerce .button:hover, .woocommerce a.button:hover { background: var(--zc-green-dark); color: #fff; }
.woocommerce .button.disabled, .woocommerce .button:disabled { opacity: .5; cursor: not-allowed; }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--zc-line); vertical-align: top; font-size: .875rem; }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.woocommerce-MyAccount-navigation ul { list-style: none; background: #fff; border: 1px solid var(--zc-line); border-radius: var(--zc-radius); }
.woocommerce-MyAccount-navigation li a { display: block; padding: 11px 16px; border-bottom: 1px solid var(--zc-line); color: var(--zc-text-2); font-size: .875rem; }
.woocommerce-MyAccount-navigation li.is-active a { color: var(--zc-green); font-weight: 700; }
.woocommerce-MyAccount-content { background: #fff; border: 1px solid var(--zc-line); border-radius: var(--zc-radius); padding: 20px; }
.woocommerce-account .woocommerce:not(:has(.woocommerce-MyAccount-navigation)) { display: block; max-width: 460px; }
.u-columns .u-column1, .u-columns .u-column2 { background: #fff; border: 1px solid var(--zc-line); border-radius: var(--zc-radius); padding: 20px; }

/* ------------------------------------------------------------------ *
 * 2. Lưới + thẻ sản phẩm (khoảng cách thẻ thống nhất 10px theo khối Flash Sale)
 * ------------------------------------------------------------------ */
ul.products, .zc-grid { --zc-cols: 4; list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; grid-template-columns: repeat(var(--zc-cols), minmax(0, 1fr)); }
ul.products.zc-grid--6 { --zc-cols: 6; }
ul.products.zc-grid--5 { --zc-cols: 5; }
/* Khối lưới sản phẩm: số cột theo màn hình lấy từ tuỳ chọn block (desktop / tablet / mobile). */
ul.products.zc-grid.zc-grid--resp { --zc-cols: var(--zc-cols-d, 6) !important; }
.zc-card { position: relative; background: #fff; border: 1px solid var(--zc-line); border-radius: var(--zc-radius); overflow: hidden; display: flex; flex-direction: column; margin: 0; }
.zc-card:hover { border-color: var(--zc-green-line); }
.zc-card__media { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #fff; }
.zc-card__img { position: absolute; inset: 0; display: block; }
.zc-card__img img { width: 100%; height: 100%; object-fit: contain; }
.zc-badge { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--zc-red); color: #fff; font-size: .6875rem; font-weight: 700; padding: 2px 8px; border-radius: var(--zc-radius); }
.zc-card__body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.zc-card__title { margin: 0; font: 400 .7813rem/1.45 var(--zc-font); height: 2.9em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.zc-card__title a { color: var(--zc-text-2); }
.zc-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.zc-card:hover .zc-card__title a { color: var(--zc-red); }
.zc-card__specs { margin: -3px 0 0; font-size: .6875rem; line-height: 1.4; color: var(--zc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zc-card__price { margin-top: auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 7px; font-family: var(--zc-font); }
.price { color: var(--zc-red); font-weight: 800; }
.price ins { order: 1; text-decoration: none; background: none; font-weight: 800; }
.price del { order: 2; color: var(--zc-faint); font-weight: 400; font-size: .75em; opacity: 1; }
.zc-card__price .price, .zc-card__price { font-size: 1rem; }
.zc-card__price del { font-size: .7188rem; }
.zc-price-contact { font: 700 .875rem var(--zc-font); color: var(--zc-red); }
.zc-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 2; }
.zc-card__meta { display: flex; align-items: center; gap: 5px; font-size: .7188rem; color: var(--zc-faint); min-width: 0; }
.zc-card__meta b { color: var(--zc-text-2); font-weight: 600; }
.zc-card__meta .zc-star { color: #FFB200; }
.zc-sep { color: #E1E4E1; font-style: normal; }
.zc-card__cart { flex: 0 0 auto; }
/* Nút thêm giỏ → ô vuông 28px, chữ chỉ cho trình đọc màn hình; hover nền xanh, icon trắng. */
.zc-card__cart .button, .zc-card__cart a.zc-card__btn { display: block; box-sizing: border-box; width: 28px; height: 28px; min-height: 0; padding: 0; overflow: hidden; font-size: 0; line-height: 0; border: 1px solid var(--zc-green); border-radius: var(--zc-radius); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23067A33' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.2 10.2a2 2 0 0 0 2 1.6h7.6a2 2 0 0 0 2-1.6L20 7H6'/%3E%3Ccircle cx='10' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3C/svg%3E") center / 15px no-repeat; color: transparent; }
.zc-card__cart .button:not(.smtwpc-contact-button):hover, .zc-card__cart .button:not(.smtwpc-contact-button):focus-visible { background: var(--zc-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.2 10.2a2 2 0 0 0 2 1.6h7.6a2 2 0 0 0 2-1.6L20 7H6'/%3E%3Ccircle cx='10' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3C/svg%3E") center / 15px no-repeat !important; border-color: var(--zc-green); }
.zc-card__cart .button.loading { opacity: .5; }
.zc-card__cart .button.added { background-color: var(--zc-green-soft); }
.zc-card__cart .added_to_cart { display: none; }
/* Nút "Liên hệ" của smt-wp-customize: dạng chữ (mặc định) hoặc ô vuông icon điện thoại (tuỳ chọn trong plugin). */
.zc-card__cart a.button.smtwpc-contact-button { display: inline-flex !important; align-items: center; justify-content: center; box-sizing: border-box; width: auto !important; height: 28px !important; min-height: 0 !important; padding: 0 10px !important; font-size: .75rem !important; line-height: 1 !important; font-weight: 700; white-space: nowrap; color: #fff !important; border: 0 !important; background: var(--zc-green) !important; border-radius: var(--zc-radius); overflow: visible; }
.zc-card__cart a.button.smtwpc-contact-button:hover { background: var(--zc-green-dark) !important; }
.zc-card__cart a.button.smtwpc-contact-button--icon { width: 28px !important; padding: 0 !important; border: 1px solid var(--zc-green) !important; background: #fff !important; color: var(--zc-green) !important; }
.zc-card__cart a.button.smtwpc-contact-button--icon:hover { background: var(--zc-green) !important; color: #fff !important; }
.zc-card__cart .smtwpc-contact-button--icon .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Slider sản phẩm (block Lưới sản phẩm › bố cục "Trượt ngang") */
.zc-slider { position: relative; }
ul.products.zc-slider__track { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - (var(--zc-cols) - 1) * 10px) / var(--zc-cols)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.zc-slider__track::-webkit-scrollbar { display: none; }
.zc-slider__track > li { scroll-snap-align: start; min-width: 0; }
.zc-slider__nav { position: absolute; top: 40%; z-index: 5; width: 28px; height: 28px; border-radius: 999px; background: #fff; border: 1px solid var(--zc-line); color: var(--zc-faint); font-size: .875rem; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; }
.zc-slider__nav:hover:not(:disabled) { color: var(--zc-green); border-color: var(--zc-green); }
.zc-slider__nav:disabled { opacity: .35; cursor: default; }
.zc-slider__nav--prev { left: 4px; }
.zc-slider__nav--next { right: 4px; }
.zc-slider.is-static .zc-slider__nav { display: none; }

/* ------------------------------------------------------------------ *
 * 3. Cửa hàng / danh mục
 * ------------------------------------------------------------------ */
.zc-shop__layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 24px; align-items: start; }
/* Sidebar bộ lọc: 1 khung trắng duy nhất, các panel của SMT Product Filter ngăn bằng đường kẻ. */
.zc-filters { display: flex; flex-direction: column; gap: 0; align-self: start; background: #fff; border: 1px solid var(--zc-line); border-radius: var(--zc-radius); padding: 4px 14px; }
.zc-filters .zc-panel__title { font-size: .875rem; }
.zc-filters ul { list-style: none; }
.zc-filters li { font-size: .7813rem; padding: 4px 0; }
.zc-filters a { color: var(--zc-text-2); }
.zc-filters a:hover { color: var(--zc-red); }
.zc-filters .chosen a, .zc-filters .current-cat > a { color: var(--zc-green); font-weight: 600; }
.zc-filters input[type="number"], .zc-filters input[type="text"] { border: 1px solid var(--zc-line-2); border-radius: var(--zc-radius); padding: 8px 10px; font-size: .7813rem; width: 100%; }
.zc-filters input[type="checkbox"], .zc-filters input[type="radio"] { accent-color: var(--zc-green); }
.zc-filters .widget + .widget { border-top: 1px solid var(--zc-line); }
.zc-filters .smtpf-panel { border: 0; margin: 0; background: none; }
.zc-filters .smtpf-panel + .smtpf-panel { border-top: 1px solid var(--zc-line); }
.zc-filters .smtpf-panel__head { padding: 12px 0; border-bottom: 0; font-size: .8125rem; letter-spacing: .02em; }
.zc-filters .smtpf-list__item { border: 0; }
.zc-filters .smtpf-option { padding: 6px 0; }
.zc-filters .smtpf-form--price { padding: 0 0 14px; }
.zc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--zc-line); border-radius: var(--zc-radius); padding: 12px 14px; margin-bottom: 14px; }
.zc-toolbar__filter { display: none; }
.zc-toolbar .woocommerce-result-count { margin: 0; font-size: .8125rem; color: var(--zc-muted); flex: 1; }
.zc-toolbar .woocommerce-ordering { margin: 0; }
.zc-toolbar select.orderby { min-height: 36px; padding: 6px 28px 6px 12px; font-size: .7813rem; font-weight: 600; width: auto; }
/* Sắp xếp dạng nút chọn */
.zc-sort { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.zc-sort__label { font-size: .8125rem; color: var(--zc-muted); margin-right: 2px; }
.zc-sort__chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--zc-line-2); border-radius: var(--zc-radius); background: #fff; color: var(--zc-text-2); font-size: .8125rem; font-weight: 600; white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.zc-sort__chip:hover { border-color: var(--zc-green); color: var(--zc-green); }
.zc-sort__chip.is-active { background: var(--zc-green); border-color: var(--zc-green); color: #fff; }
/* Bộ lọc dạng bottom sheet (mobile / tablet) */
.zc-filters__head, .zc-filters__foot, .zc-filters-backdrop, .zc-loadmore { display: none; }
.zc-shop__main > .zc-seo { margin-top: 28px; }
.zc-seo { background: #fff; border: 1px solid var(--zc-line); border-radius: var(--zc-radius); padding: 26px clamp(18px, 3vw, 30px); font-size: .875rem; line-height: 1.75; color: var(--zc-text-2); }
.zc-seo h2 { font-weight: 800; font-size: 1.1875rem; margin: 0 0 12px; }
.zc-seo h3 { font-size: .9375rem; margin: 22px 0 10px; }
.zc-seo ul { padding-left: 20px; }
.zc-faq { display: flex; flex-direction: column; gap: 8px; }
.zc-faq__item { border: 1px solid #F0F1EF; border-radius: var(--zc-radius); padding: 14px 16px; }
.zc-faq__item summary { list-style: none; position: relative; padding-right: 22px; font-weight: 700; font-size: .8438rem; color: var(--zc-text); cursor: pointer; }
.zc-faq__item summary::-webkit-details-marker { display: none; }
.zc-faq__item summary::after { content: '+'; position: absolute; right: 0; top: 0; color: var(--zc-green); font-weight: 700; }
.zc-faq__item[open] summary::after { content: '−'; }
.zc-faq__item p { margin: 8px 0 0; font-size: .8125rem; color: var(--zc-muted); }
.woocommerce-no-products-found .woocommerce-info { display: block; text-align: center; padding: 32px; }

/* ------------------------------------------------------------------ *
 * 4. Trang sản phẩm
 * ------------------------------------------------------------------ */
.zc-single { background: #fff; }
body.single-product { background: #fff; }
.zc-pdp__top { display: grid; grid-template-columns: var(--zc-pdp-left, 40%) minmax(0, 1fr); gap: 18px; align-items: start; }
.zc-pdp__left { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* Gallery: ảnh lớn bên trái, tính năng bên phải, dải ảnh nhỏ nằm trong khung ở đáy. */
.zc-pdp__panel { --zc-thumb-gap: 8px; --zc-thumb: 64px; --zc-gal-h: 300px; position: relative; background: var(--zc-bg-2); border: 1px solid var(--zc-line); border-radius: var(--zc-radius); padding: 16px; }
.zc-pdp__badge { position: absolute; top: 12px; left: 16px; z-index: 5; background: var(--zc-green); color: #fff; font-size: .7188rem; font-weight: 700; padding: 4px 10px; border-radius: var(--zc-radius); }
.zc-pdp__panelgrid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: center; min-height: var(--zc-gal-h); }
.zc-pdp__panelgrid.is-solo { grid-template-columns: minmax(0, 1fr); }
/* Cột ảnh hẹp (40%): ô "tính năng nổi bật" xuống dưới ảnh thay vì chia đôi panel. */
.zc-pdp-ratio-40 .zc-pdp__panelgrid { grid-template-columns: minmax(0, 1fr); }
/* Ảnh thứ 2 trở đi: ẩn "Tính năng nổi bật", ảnh chiếm trọn khung. */
.zc-pdp__panelgrid.is-hl-off { grid-template-columns: minmax(0, 1fr) !important; }
.zc-pdp__panelgrid.is-hl-off .zc-pdp__highlights { display: none; }
.zc-pdp__panelgrid.is-solo .zc-pdp__gallery, .zc-pdp__panelgrid.is-hl-off .zc-pdp__gallery { max-width: 560px; width: 100%; margin: 0 auto; }
.zc-pdp__gallery .woocommerce-product-gallery { position: relative; margin: 0; }
.zc-pdp__gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.zc-pdp__gallery .flex-viewport, .zc-pdp__gallery .woocommerce-product-gallery__image { background: transparent; border: 0; border-radius: var(--zc-radius); overflow: hidden; }
/* Khung ảnh cố định mọi cỡ màn hình: đổi ảnh không kéo cao viewport. */
.zc-pdp__gallery { min-width: 0; max-width: 100%; }
.zc-pdp__gallery .flex-viewport { height: var(--zc-gal-h) !important; max-height: var(--zc-gal-h) !important; }
.zc-pdp__gallery .woocommerce-product-gallery__image { height: var(--zc-gal-h); }
.zc-pdp__gallery .woocommerce-product-gallery__image > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.zc-pdp__gallery .woocommerce-product-gallery__image img { width: auto !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain; border-radius: var(--zc-radius); }
.zc-thumbnav { position: relative; margin-top: 10px; }
.zc-thumbnav__btn { display: none; position: absolute; top: 50%; z-index: 3; width: 28px; height: 28px; margin-top: -14px; padding: 0; border: 1px solid var(--zc-line); border-radius: 50%; background: rgba(255, 255, 255, .92); color: #222; box-shadow: 0 1px 4px rgba(0, 0, 0, .16); font: 700 1.125rem/1 var(--zc-font); cursor: pointer; align-items: center; justify-content: center; }
.zc-thumbnav.is-scroll .zc-thumbnav__btn { display: flex; }
.zc-thumbnav__btn:hover:not(:disabled) { border-color: var(--zc-green); color: var(--zc-green); }
.zc-thumbnav__btn:disabled { opacity: .35; cursor: default; }
.zc-thumbnav__btn.is-prev { left: 4px; }
.zc-thumbnav__btn.is-next { right: 4px; }
.zc-pdp__gallery .flex-control-thumbs { list-style: none; display: flex; flex-wrap: nowrap; gap: var(--zc-thumb-gap); width: 100%; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.zc-pdp__gallery .flex-control-thumbs::-webkit-scrollbar { display: none; }
.zc-pdp__gallery .flex-control-thumbs li { flex: 0 0 var(--zc-thumb); width: var(--zc-thumb); height: var(--zc-thumb); margin: 0; }
.zc-pdp__gallery .flex-control-thumbs img { width: 100%; height: 100%; object-fit: contain; background: #fff; border: 1px solid #E4E6E4; border-radius: 4px; opacity: .72; cursor: pointer; transition: opacity .15s, border-color .15s; }
.zc-pdp__gallery .flex-control-thumbs img.flex-active, .zc-pdp__gallery .flex-control-thumbs img:hover { border-color: #222; opacity: 1; }
.zc-pdp__gallery .woocommerce-product-gallery__trigger { position: absolute; bottom: 14px; left: 14px; z-index: 5; width: 32px; height: 32px; background: #fff; border: 1px solid var(--zc-line); border-radius: var(--zc-radius); font-size: 0; text-indent: -9999px; overflow: hidden; }
.zc-pdp__gallery .woocommerce-product-gallery__trigger::before { content: ''; position: absolute; inset: 8px; border: 2px solid var(--zc-muted); border-radius: 50%; }
.zc-pdp__hl-head { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 6px; }
.zc-pdp__hl-head h2 { font-size: .8438rem; letter-spacing: .08em; text-transform: uppercase; margin: 0; text-align: center; }
.zc-pdp__hl-head .zc-linkbtn { align-self: flex-end; }
.zc-pdp__hl-body { margin-top: 12px; font-size: .8125rem; line-height: 1.6; color: var(--zc-text-2); max-height: 300px; overflow-y: auto; }
.zc-pdp__hl-body ul, .zc-pdp__hl-body ol { padding-left: 18px; }
.zc-pdp__hl-body li { margin-bottom: 8px; }
.zc-pdp__hl-body p { margin: 0 0 8px; }
/* Bộ đếm ảnh gallery */
.zc-gal-count { position: absolute; right: 8px; bottom: 8px; z-index: 6; padding: 2px 9px; border-radius: 999px; background: rgba(18, 22, 26, .6); color: #fff; font-size: .6875rem; font-weight: 600; line-height: 1.6; pointer-events: none; }
.zc-gal-count:empty { display: none; }
/* Tư vấn nhanh dưới chính sách */
.zc-pdp__help { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--zc-line-2); font-size: .8125rem; color: var(--zc-muted); }
.zc-pdp__help a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--zc-line-2); border-radius: 999px; background: #fff; font-weight: 700; color: var(--zc-text-2); }
.zc-pdp__help a:hover { border-color: var(--zc-green); color: var(--zc-green); }
.zc-tabtitle { display: inline-block; font: 800 1.125rem var(--zc-font-head); padding-bottom: 9px; border-bottom: 2.5px solid var(--zc-red); margin: 0; }
/* Desktop: dải ảnh nhỏ bám đáy khung. Chiều cao ảnh đã khóa ở --zc-gal-h cho mọi cỡ màn hình. */
@media (min-width: 901px) {
	.zc-pdp__panel:has(.flex-control-thumbs) { padding-bottom: calc(16px + var(--zc-thumb) + 14px); }
	.zc-pdp__panelgrid { min-height: var(--zc-gal-h); align-items: center; }
	.zc-pdp__panelgrid.is-hl-off .zc-pdp__gallery { max-width: none; }
	/* Ảnh nhỏ bám đáy khung, trải hết chiều ngang (không chỉ cột ảnh trái). */
	.zc-pdp__gallery,
	.zc-pdp__gallery .woocommerce-product-gallery { position: static; }
	.zc-pdp__gallery .flex-viewport { position: relative; }
	.zc-pdp__gallery .zc-thumbnav { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; margin: 0; }
	.zc-pdp__gallery .flex-control-thumbs { position: static; width: 100%; }
}

/* Summary */
.zc-pdp__summary { min-width: 0; }
.zc-pdp__summary .product_title { font: 800 1.625rem/1.3 var(--zc-font-head); margin: 12px 0 0; }
.zc-pdp__summary .woocommerce-product-rating { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.zc-pdp__proof { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.zc-pdp__proof .woocommerce-product-rating { margin-top: 12px; }
.zc-pdp__social, .zc-pdp__sold { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: .8125rem; color: var(--zc-muted); }
.zc-pdp__social b { color: var(--zc-text); }
.star-rating { position: relative; display: inline-block; width: 5.4em; height: 1em; line-height: 1; font-size: .9375rem; overflow: hidden; letter-spacing: .1em; font-family: serif; color: #D6D9D6; }
.star-rating::before { content: '★★★★★'; position: absolute; left: 0; top: 0; }
.star-rating span { position: absolute; left: 0; top: 0; overflow: hidden; padding-top: 1.5em; color: var(--zc-green); }
.star-rating span::before { content: '★★★★★'; position: absolute; left: 0; top: 0; }
.woocommerce-review-link { font-size: .8125rem; color: var(--zc-green); }
.zc-pdp__summary p.price, .zc-pdp__summary .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 14px 0 0; font: 800 1.6875rem var(--zc-font); }
.zc-pdp__summary .price del { font-size: .9375rem; }
.zc-pdp__summary .price .screen-reader-text { position: absolute; }
.zc-pdp__summary form.cart { margin-top: 16px; }
.zc-pdp__summary table.variations { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.zc-pdp__summary table.variations th, .zc-pdp__summary table.variations td { display: block; padding: 0; text-align: left; border: 0; }
.zc-pdp__summary table.variations th.label label { font-size: .8125rem; font-weight: 700; color: var(--zc-text); margin: 10px 0 6px; display: block; }
.zc-pdp__summary a.reset_variations { font-size: .75rem; color: var(--zc-faint); }
.zc-pdp__summary .product_meta { display: none; }
.zc-pdp__summary .single_variation_wrap .woocommerce-variation-price { display: none; }
.woocommerce-variation-price .price { margin: 8px 0; padding: 0; background: none; border: 0; font-size: 1.1rem; }
.woocommerce-variation-add-to-cart, form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-top: 18px; }
.single_variation_wrap { width: 100%; }
.woocommerce-variation-add-to-cart { margin-top: 12px; }
.zc-pdp .quantity, .zc-cart-item .quantity, .zc-qb .quantity { display: inline-flex; align-items: center; border: 1px solid var(--zc-line-2); border-radius: var(--zc-radius); height: 52px; overflow: hidden; background: #fff; }
.zc-qty__btn { width: 38px; height: 100%; border: 0; background: transparent; font-size: 1.0625rem; color: var(--zc-muted); }
.zc-qty__btn:hover { color: var(--zc-green); background: var(--zc-bg-2); }
.zc-qty input.qty { width: 44px; border: 0 !important; min-height: 0 !important; padding: 0 !important; text-align: center; font: 700 .9375rem var(--zc-font); -moz-appearance: textfield; background: transparent; outline: 0 !important; }
.zc-qty input.qty::-webkit-outer-spin-button, .zc-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.single_add_to_cart_button { flex: 1; min-width: 200px; height: 52px; gap: 9px; background: #fff !important; color: var(--zc-red) !important; border: 1.5px solid var(--zc-red) !important; font-size: .875rem !important; letter-spacing: .04em; text-transform: uppercase; }
.single_add_to_cart_button:hover { background: var(--zc-red) !important; color: #fff !important; }
.single_add_to_cart_button.zc-buynow { background: var(--zc-orange) !important; border-color: var(--zc-orange) !important; color: #fff !important; text-transform: none; letter-spacing: 0; font-size: .9375rem !important; }
.single_add_to_cart_button.zc-buynow:hover { background: #d9561a !important; }
/* Nút "Thêm vào giỏ": icon giỏ hàng có dấu +. */
.single_add_to_cart_button:not(.zc-buynow) { display: inline-flex; align-items: center; justify-content: center; }
.single_add_to_cart_button:not(.zc-buynow)::before { content: ''; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 3.5h2.2l2 10.2a2 2 0 0 0 2 1.6h7.3a2 2 0 0 0 2-1.5L19.5 8'/%3E%3Ccircle cx='9.5' cy='19.5' r='1.3'/%3E%3Ccircle cx='16.5' cy='19.5' r='1.3'/%3E%3Cpath d='M15 3v6M12 6h6'/%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 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 3.5h2.2l2 10.2a2 2 0 0 0 2 1.6h7.3a2 2 0 0 0 2-1.5L19.5 8'/%3E%3Ccircle cx='9.5' cy='19.5' r='1.3'/%3E%3Ccircle cx='16.5' cy='19.5' r='1.3'/%3E%3Cpath d='M15 3v6M12 6h6'/%3E%3C/svg%3E") center / contain no-repeat; }
.zc-pdp__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.zc-pdp__cta .zc-btn { flex: 1; min-width: 170px; }
.zc-cta--stack { flex-direction: column; }
.zc-cta--stack .zc-btn { flex: 0 0 auto; width: 100%; }
.stock { font-size: .8125rem; color: var(--zc-green); margin: 10px 0 0; }
.stock.out-of-stock { color: var(--zc-red); }

/* Chính sách mua hàng trong summary: một dải mỏng, icon nhỏ + chữ ngắn, ngăn bằng chấm — kiểu Shopee/Lazada. */
.zc-pdp__policy { padding: 0; border: 0; background: none; }
.zc-pdp__summary .zc-pdp__policy { margin-top: 10px; }
.zc-policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 15px; }
.zc-pdp__policy .zc-policy-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0; padding: 6px 10px; background: #f6f7f6; border-radius: 8px; }
.zc-policy { display: flex; align-items: center; gap: 12px; border: 1px solid var(--zc-line); border-radius: var(--zc-radius); padding: 12px 15px; font-size: .8125rem; line-height: 1.5; color: var(--zc-text-2); }
.zc-pdp__policy .zc-policy { flex: 0 0 auto; gap: 4px; width: auto; height: auto; min-width: 0; padding: 2px 0; border: 0; border-radius: 0; background: transparent; font-size: .75rem; line-height: 1.25; color: var(--zc-text-2); white-space: nowrap; }
.zc-pdp__policy .zc-policy + .zc-policy::before { content: ''; width: 3px; height: 3px; margin: 0 8px; border-radius: 50%; background: #c5c8c5; flex: 0 0 auto; }
.zc-policy__ico { width: 38px; height: 38px; flex: 0 0 auto; border-radius: var(--zc-radius); background: #F4F7FB; color: var(--zc-green); display: flex; align-items: center; justify-content: center; }
.zc-pdp__policy .zc-policy__ico { width: auto; height: auto; background: none; color: var(--zc-green); }
.zc-pdp__policy .zc-policy__ico svg { width: 14px; height: 14px; }
.zc-pdp__policy .zc-policy__ico img { width: 16px; height: 16px; object-fit: contain; display: block; }

/* Tab nội dung: dính ngay dưới header dính (52px) + thanh admin khi đăng nhập. */
.zc-tabs { position: sticky; top: 52px; z-index: 20; background: #fff; border-bottom: 1px solid var(--zc-line); margin-top: 40px; }
.admin-bar .zc-tabs { top: 84px; }
.zc-tabs__in { display: flex; gap: 6px; overflow-x: auto; }
.zc-tabs__link { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 14px 18px; font: 700 .875rem var(--zc-font-head); color: var(--zc-muted); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.zc-tabs__link.is-active { color: var(--zc-green); border-bottom-color: var(--zc-green); }
.zc-tabs__link:hover { color: var(--zc-red); }
.zc-pdp__bottom { margin-top: 26px; }
.zc-pdp__section { scroll-margin-top: 120px; margin-bottom: 44px; }
.zc-pdp__section .zc-tabtitle { margin-bottom: 14px; }
.zc-specs table { width: 100%; max-width: 760px; border-collapse: collapse; border: 1px solid var(--zc-line); margin-top: 16px; }
.zc-specs th, .zc-specs td { border: 1px solid var(--zc-line); padding: 11px 13px; font-size: .8125rem; line-height: 1.6; text-align: left; vertical-align: top; }
.zc-specs th { width: 26%; background: var(--zc-bg-2); font-weight: 700; color: var(--zc-text); }
.zc-related ul.products, .upsells ul.products { --zc-cols: 6; }
.upsells, .related { margin-bottom: 44px; }
.upsells > h2 { font: 800 1.125rem var(--zc-font-head); }

/* Đánh giá sản phẩm (WooCommerce + Customer Reviews for WooCommerce) */
.woocommerce-Reviews-title { font: 700 .9375rem var(--zc-font-head); margin: 0 0 12px; }
#reviews ol.commentlist { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 0 0 20px; }
#reviews .comment_container { display: flex; gap: 12px; border: 1px solid var(--zc-line); border-radius: var(--zc-radius); padding: 14px 16px; }
#reviews .comment_container img.avatar { width: 36px; height: 36px; flex: none; border-radius: 999px; }
#reviews .comment-text { flex: 1; font-size: .875rem; }
#reviews .meta { font-size: .75rem; color: var(--zc-faint); margin: 0 0 6px; }
#reviews .woocommerce-review__author { color: var(--zc-text); font-weight: 700; }
#reviews .star-rating { color: var(--zc-line-2); font-size: .8125rem; }
#reviews .star-rating span { color: #F5A623; }
#reviews .woocommerce-review__verified { font-style: normal; font-size: .6875rem; font-weight: 700; color: var(--zc-green); background: var(--zc-green-soft); border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
#reviews .woocommerce-review__dash { display: none; }
#reviews .woocommerce-review__published-date { margin-left: 6px; }
#reviews .description p { margin: 0; color: var(--zc-text-2); line-height: 1.6; }
#reviews .comment-reply-title { display: block; font: 700 1rem var(--zc-font-head); margin: 22px 0 10px; }
.cr-summaryBox-wrap { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); gap: 24px; align-items: center; background: var(--zc-bg); border-radius: var(--zc-radius); padding: 18px 22px; margin: 0 0 18px; }
#reviews .cr-summaryBox-wrap { display: grid !important; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); }
#reviews .cr-summaryBox-wrap .ivole-summaryBox { width: 100% !important; max-width: none !important; margin: 0 !important; }
.cr-overall-rating-wrap { text-align: center; }
.cr-average-rating span { font: 800 2.5rem/1 var(--zc-font-head); color: var(--zc-text); }
.cr-average-rating-stars { display: flex; justify-content: center; margin: 6px 0 4px; }
.crstar-rating-svg { color: #F5A623; }
.cr-total-rating-count { font-size: .8125rem; color: var(--zc-muted); }
.ivole-histogramRow { display: grid; grid-template-columns: 34px 1fr 40px; gap: 10px; align-items: center; margin: 5px 0; }
.ivole-histogramCell1, .ivole-histogramCell3 { width: auto !important; font-size: .75rem; color: var(--zc-muted); }
.ivole-histogramCell3 { text-align: right; }
.ivole-histogramCell2 { width: auto !important; }
.ivole-meter { height: 8px !important; border: 0 !important; border-radius: 999px !important; background: var(--zc-line-2) !important; box-shadow: none !important; overflow: hidden; }
.ivole-meter-bar { height: 100% !important; border: 0 !important; border-radius: 999px !important; background: #F5A623 !important; box-shadow: none !important; font-size: 0 !important; color: transparent !important; }
.cr-histogram-rating-label { display: inline-flex; align-items: center; gap: 3px; }
#review_form label { font-size: .8125rem; font-weight: 600; color: var(--zc-text-2); }
#review_form .comment-form-rating, #review_form .comment-form-comment { margin: 0 0 12px; }
#review_form .comment-form-rating select { display: none !important; }
#review_form textarea { width: 100%; min-height: 110px; border: 1px solid var(--zc-line-2); border-radius: var(--zc-radius); padding: 10px 12px; font: inherit; }
#review_form textarea:focus { outline: 0; border-color: var(--zc-green); }
#review_form p.stars { margin: 4px 0 0; line-height: 1; }
#review_form p.stars span { display: inline-flex; gap: 4px; }
#review_form p.stars a { position: relative; display: block; width: 28px; height: 28px; overflow: hidden; text-indent: -999px; font-size: 0; }
#review_form p.stars a::before { content: '\2605'; position: absolute; inset: 0; text-indent: 0; font: 28px/28px serif; color: var(--zc-line-2); }
#review_form p.stars:hover a::before, #review_form p.stars.selected a::before { color: #F5A623; }
#review_form p.stars a:hover ~ a::before { color: var(--zc-line-2); }
#review_form p.stars.selected a.active ~ a::before { color: var(--zc-line-2); }
#review_form .form-submit .submit { background: var(--zc-green); color: #fff; border: 0; border-radius: var(--zc-radius); padding: 10px 22px; font-weight: 700; cursor: pointer; }
#review_form .form-submit .submit:hover { background: var(--zc-green-dark); }

/* Thanh mua cố định (desktop: hiện khi cuộn qua form; mobile: luôn hiện [Danh mục] [Mua ngay] [Tài khoản]). */
.zc-sticky-atc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--zc-line); transform: translateY(110%); transition: transform .22s ease; }
.zc-sticky-atc.is-on { transform: none; }
.zc-sticky-atc__in { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.zc-sticky-atc__info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.zc-sticky-atc__img { width: 46px; height: 46px; flex: 0 0 auto; border: 1px solid var(--zc-line); border-radius: var(--zc-radius); overflow: hidden; background: #fff; }
.zc-sticky-atc__img img { width: 100%; height: 100%; object-fit: contain; }
.zc-sticky-atc__name { font-size: .8125rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zc-sticky-atc__price { font-size: .9375rem; }
.zc-sticky-atc__price .price { font-size: .9375rem; display: inline-flex; gap: 8px; align-items: baseline; }
.zc-sticky-atc__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.zc-sticky-atc .zc-btn { min-height: 44px; }
.zc-sticky-atc__m { display: none; }

/* ------------------------------------------------------------------ *
 * 5. Giỏ hàng
 * ------------------------------------------------------------------ */
.zc-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.zc-cart-box { padding: 4px 18px 0; }
.zc-cart-item { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #F0F1EF; }
.zc-cart-item__img { width: 78px; flex: 0 0 78px; aspect-ratio: 1 / 1; border: 1px solid var(--zc-line); border-radius: var(--zc-radius); background: #fff; overflow: hidden; }
.zc-cart-item__img img { width: 100%; height: 100%; object-fit: contain; }
.zc-cart-item__info { flex: 1; min-width: 140px; font-size: .8438rem; line-height: 1.45; }
.zc-cart-item__info > a { color: var(--zc-text); }
.zc-cart-item__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 5px; }
.zc-cart-item__tags dl.variation { display: contents; }
.zc-cart-item__tags dl.variation dt { display: none; }
.zc-cart-item__tags dl.variation dd { margin: 0; font-size: .7188rem; color: #fff; background: var(--zc-text); border-radius: var(--zc-radius); padding: 2px 8px; }
.zc-cart-item__tags dl.variation dd p { margin: 0; }
.zc-tag { font-size: .7188rem; color: #fff; background: var(--zc-text); border-radius: var(--zc-radius); padding: 2px 8px; }
.zc-instock { font-size: .7188rem; color: var(--zc-green); }
.zc-cart-item__price { margin-top: 6px; font-size: .875rem; }
.zc-cart-item .quantity { height: 40px; }
.zc-cart-item .zc-qty__btn { width: 34px; }
.zc-cart-item .zc-qty input.qty { width: 34px; font-size: .875rem; }
.zc-cart-item__total { min-width: 104px; text-align: right; }
.zc-cart-item__total .product-subtotal { font-weight: 800; font-size: .9375rem; }
.zc-remove { display: inline-flex; align-items: center; gap: 5px; font-size: .7188rem; color: var(--zc-faint); margin-top: 4px; }
.zc-remove:hover { color: var(--zc-red); }
.zc-cart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 0; }
.zc-cart-actions .coupon { display: flex; gap: 10px; flex: 1; min-width: 240px; max-width: 360px; }
.zc-cart-actions .coupon .input-text { flex: 1; min-width: 120px; }
.zc-cart-actions .coupon .zc-btn { min-height: 46px; }
.zc-cart-actions .zc-more { margin-left: auto; }
.zc-cart-actions .zc-update-cart { position: absolute; left: -9999px; }
.zc-cart-sum { position: sticky; top: 84px; padding: 18px; }
.zc-freeship { margin: 14px 0; padding: 12px; border: 1px solid #F6DCC6; background: #FFF8F2; border-radius: var(--zc-radius); }
.zc-freeship.is-reached { border-color: var(--zc-green-line); background: var(--zc-green-soft); }
.zc-freeship__msg { display: flex; align-items: center; gap: 8px; font-size: .7813rem; line-height: 1.5; color: var(--zc-orange); }
.zc-freeship.is-reached .zc-freeship__msg, .zc-freeship.is-reached .zc-bar > span { color: var(--zc-green); }
.zc-freeship.is-reached .zc-bar > span { background: var(--zc-green); }
.zc-freeship__msg span { color: var(--zc-text); }
.zc-totals { width: 100%; }
.zc-totals th { font-weight: 400; color: var(--zc-muted); padding: 5px 0 !important; border: 0 !important; font-size: .8438rem !important; }
.zc-totals td { text-align: right !important; padding: 5px 0 !important; border: 0 !important; font-size: .8438rem !important; }
.zc-totals tr.cart-discount td, .zc-totals tr.cart-discount th { color: var(--zc-green); }
.zc-totals .woocommerce-remove-coupon { color: var(--zc-faint); font-size: .75rem; margin-left: 6px; }
.zc-totals tr.order-total th, .zc-totals tr.order-total td { border-top: 1px solid var(--zc-line) !important; padding-top: 14px !important; }
.zc-totals tr.order-total th { font: 700 .9375rem var(--zc-font-head) !important; color: var(--zc-text); }
.zc-totals tr.order-total td { font: 800 1.375rem var(--zc-font) !important; color: var(--zc-red); }
.zc-totals ul#shipping_method { list-style: none; text-align: right; }
.zc-totals ul#shipping_method li { margin: 0 0 4px; }
.zc-totals ul#shipping_method input { accent-color: var(--zc-green); margin-right: 6px; }
.zc-totals .zc-ship-name { display: block; font-size: .7188rem; color: var(--zc-faint); margin-top: 1px; }
.zc-ship-contact { color: var(--zc-orange); font-weight: 600; }
/* Tạm tính nổi bật như các giá khác: đỏ, đậm. */
.cart_totals .cart-subtotal td, .woocommerce-checkout-review-order-table .cart-subtotal td { font-family: var(--zc-font-head); font-weight: 800; font-size: 1rem !important; color: var(--zc-red); }
.cart_totals .cart-subtotal td .amount, .woocommerce-checkout-review-order-table .cart-subtotal td .amount { color: inherit; }
.wc-proceed-to-checkout { margin-top: 16px; }
.wc-proceed-to-checkout .checkout-button, .woocommerce a.checkout-button { display: flex !important; width: 100%; height: 50px; font-size: .9375rem !important; margin: 0; }
/* Thanh thanh toán dính đáy (giỏ hàng mobile) */
.zc-cartbar { display: none; }
.zc-ssl { display: flex; align-items: center; gap: 7px; justify-content: center; font-size: .7188rem; color: var(--zc-faint); margin: 10px 0 0; }
.zc-cart-sum .shop_table_responsive td::before { display: none; }

/* ------------------------------------------------------------------ *
 * 6. Thanh toán
 * ------------------------------------------------------------------ */
body.zc-checkout-minimal { background: #fff; }
.zc-checkout-page { padding: 0 !important; }
.zc-co-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.zc-co-left { padding: 0 clamp(16px, 4vw, 56px) 56px; }
.zc-co-leftin { max-width: 560px; margin-left: auto; width: 100%; }
.zc-co-right { background: #FAFAF9; border-left: 1px solid var(--zc-line); padding: 0 clamp(16px, 4vw, 56px) 56px; }
.zc-co-rightin { max-width: 440px; margin-right: auto; width: 100%; position: sticky; top: 24px; padding-top: 28px; }
.zc-co-rightin .woocommerce-message, .zc-co-rightin .woocommerce-error { margin: 12px 0 0; font-size: .75rem; }
.zc-co-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 18px; }
.zc-co-ssl { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--zc-muted); }
.zc-co-ssl svg { color: var(--zc-green); }
.zc-co-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid #F0F1EF; font-size: .7813rem; }
.zc-co-steps a { color: var(--zc-faint); }
.zc-co-steps__sep { color: #C9CEC9; font-size: .6875rem; }
.zc-co-steps__btn { background: none; border: 0; padding: 0; font-size: .7813rem; color: var(--zc-faint); font-weight: 500; }
.zc-co-steps__btn.is-done { color: var(--zc-green); }
.zc-co-steps__btn.is-active { color: var(--zc-text); font-weight: 700; }
/* Thanh gập "Xem thông tin đơn hàng": tắt — mobile hiện cột tóm tắt đầy đủ bên dưới form. */
.zc-co-mobsum { display: none; border-bottom: 1px solid #F0F1EF; }
.zc-co-mobsum__bar { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 14px 0; background: none; border: 0; font-size: .8438rem; font-weight: 600; color: var(--zc-green); }
.zc-co-mobsum__bar span { display: flex; align-items: center; gap: 8px; }
.zc-co-mobsum__bar strong { color: var(--zc-text); font-weight: 800; font-size: 1rem; }
.zc-co-mobsum__body { padding-bottom: 16px; }
.zc-step { padding-top: 24px; }
.zc-co-login { text-align: right; margin: 0 0 8px; font-size: .7813rem; font-weight: 600; }
.zc-co-fields h3 { font: 700 .9375rem var(--zc-font-head); margin: 18px 0 12px; }
.zc-co-fields .woocommerce-billing-fields__field-wrapper, .zc-co-fields .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.zc-co-fields .form-row { grid-column: 1 / -1; width: 100% !important; float: none !important; }
.zc-co-fields .form-row-first, .zc-co-fields .form-row-last { grid-column: auto; }
.zc-co-fields #ship-to-different-address { font: 400 .7813rem var(--zc-font); margin: 14px 0; }
.zc-co-fields #ship-to-different-address label { display: flex; align-items: center; gap: 9px; }
.zc-co-fields .woocommerce-additional-fields h3 { display: none; }
.zc-co-h { font: 700 .9375rem var(--zc-font-head); margin: 26px 0 12px; }
.zc-rows { border: 1px solid var(--zc-line); border-radius: var(--zc-radius); }
.zc-rows__row { display: flex; align-items: flex-start; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--zc-line); }
.zc-rows__row:last-child { border-bottom: 0; }
.zc-rows__label { width: 64px; flex: 0 0 auto; font-size: .7813rem; color: var(--zc-faint); }
.zc-rows__val { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: .8438rem; line-height: 1.45; }
.zc-rows .zc-linkbtn { color: var(--zc-green); }

/* Danh sách phương thức vận chuyển (bước thanh toán, cột tóm tắt, popup). */
.zc-ship-table, .zc-ship-table tbody { display: block; width: 100%; }
.zc-ship-table { border: 1px solid var(--zc-line-2); border-radius: var(--zc-radius); overflow: hidden; }
.zc-ship-table tr, .zc-ship-table th, .zc-ship-table td { display: block; border: 0; padding: 0; }
.zc-ship-table th { display: none; }
.zc-ship-table ul#shipping_method { list-style: none; margin: 0; }
.zc-ship-table ul#shipping_method li { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--zc-line); margin: 0; }
.zc-ship-table ul#shipping_method li:last-child { border-bottom: 0; }
.zc-ship-table ul#shipping_method li:has(input:checked) { background: var(--zc-green-soft); }
.zc-ship-table ul#shipping_method label { flex: 1; display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: .8438rem; font-weight: 600; color: var(--zc-text); cursor: pointer; }
.zc-ship-table input.shipping_method { accent-color: var(--zc-green); width: 18px; height: 18px; margin: 0; }
.zc-ship-table .smt-whsm-note, .zc-ship-table .smt-whsm-free-notice { font-size: .75rem; color: var(--zc-muted); padding: 0 16px 12px; }
/* Thông báo "còn X nữa là miễn phí vận chuyển": padding đều, chữ căn giữa dọc. */
.zc-co-summary .smt-whsm-free-notice-row td { padding: 0 !important; }
.zc-co-summary .smt-whsm-free-notice, .zc-ship-table .smt-whsm-free-notice { display: flex; align-items: center; min-height: 40px; box-sizing: border-box; padding: 10px 14px !important; margin: 4px 0 0; line-height: 1.4; font-size: .75rem; }
/* Cột tóm tắt: chọn lại vận chuyển ngay tại chỗ, không viền/nền bao quanh bảng. */
.zc-co-summary .zc-shipping-choose td { padding: 0 0 6px !important; }
.zc-co-summary .zc-ship-table, .woocommerce .zc-co-summary table.zc-ship-table.shop_table { border: 0 !important; border-radius: 0; background: transparent; }
.zc-co-summary .zc-ship-table ul#shipping_method li { padding: 9px 12px; gap: 10px; }
.zc-co-summary .zc-ship-table ul#shipping_method label { font-size: .8125rem; font-weight: 600; }
.zc-co-summary .zc-ship-table ul#shipping_method label .woocommerce-Price-amount { font-weight: 700; }
.zc-co-summary .zc-ship-table input.shipping_method { width: 16px; height: 16px; }
/* Popup chọn phương thức vận chuyển. */
.zc-ship-change { margin-left: 8px; font-size: .75rem; font-weight: 700; color: var(--zc-green); }
.zc-ship-change:hover { color: var(--zc-red); }
.zc-totals th .zc-ship-change { margin-left: 0; vertical-align: baseline; }
.zc-ship-sep { color: var(--zc-faint); margin: 0 4px 0 2px; }
.zc-shipmodal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.zc-shipmodal[hidden] { display: none; }
.zc-shipmodal__overlay { position: absolute; inset: 0; background: rgba(18, 22, 26, .55); }
.zc-shipmodal__dialog { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: var(--zc-radius); padding: 20px; }
.zc-shipmodal__x { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border: 0; background: transparent; font-size: 1.75rem; line-height: 1; color: var(--zc-faint); }
.zc-shipmodal__title { font: 700 1rem var(--zc-font-head); margin: 0 28px 14px 0; }
.zc-shipmodal .zc-ship-table { border: 0 !important; background: transparent; margin-bottom: 14px; }
@media (max-width: 480px) { .zc-shipmodal { align-items: flex-end; padding: 0; } .zc-shipmodal__dialog { max-width: none; border-radius: 10px 10px 0 0; } }

/* Phương thức thanh toán: cả dòng bấm được, khung mô tả không thụt lề; VietQR ẩn lưới logo ngân hàng. */
#payment { border: 1px solid var(--zc-line-2); border-radius: var(--zc-radius); overflow: hidden; background: #fff; }
#payment ul.payment_methods { list-style: none; margin: 0; padding: 0; }
#payment ul.payment_methods > li { border-bottom: 1px solid var(--zc-line); padding: 12px 14px; }
#payment ul.payment_methods > li:last-child { border-bottom: 0; }
#payment ul.payment_methods > li > label { display: inline; font-size: .8438rem; font-weight: 600; line-height: 1.4; color: var(--zc-text); cursor: pointer; margin: 0; }
#payment ul.payment_methods input[type="radio"] { accent-color: var(--zc-green); margin-right: 10px; width: 17px; height: 17px; vertical-align: -3px; }
#payment .payment_box { background: #FAFAF9; margin: 8px 0 0; padding: 8px 12px; border-radius: var(--zc-radius); font-size: .7813rem; color: var(--zc-muted); line-height: 1.5; }
#payment .payment_box p { margin: 0; }
#payment .payment_box p + p { margin-top: 6px; }
#payment .payment_methods img { display: inline; max-height: 24px; margin-left: 8px; }
#payment .place-order { padding: 14px; background: #fff; border-top: 1px solid var(--zc-line); }
#payment .woocommerce-terms-and-conditions-wrapper { font-size: .7813rem; color: var(--zc-muted); margin-bottom: 10px; }
#payment .vietqr-row, #payment .list-bank { display: none !important; }
#payment .wc_payment_method, ul#shipping_method li { cursor: pointer; }
#payment .wc_payment_method .payment_box { cursor: default; }
#payment .wc_payment_method > label, ul#shipping_method li > label { cursor: pointer; }
#place_order { width: 100%; height: 52px; font-size: .9375rem !important; float: none; }

.zc-co-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid #F0F1EF; }
.zc-co-back { display: flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; }
.zc-co-help { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 14px; border: 1px solid var(--zc-line); border-radius: var(--zc-radius); background: #FAFAF9; font-size: .7813rem; color: var(--zc-muted); }
.zc-co-help a { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .8125rem; }
.zc-co-trust { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; margin-top: 22px; font-size: .75rem; color: var(--zc-muted); }
.zc-co-trust li { display: flex; align-items: center; gap: 7px; }
.zc-co-trust svg { color: var(--zc-green); }
.zc-co-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; }
.zc-co-item__img { position: relative; width: 64px; height: 64px; flex: 0 0 auto; border: 1px solid var(--zc-line); border-radius: var(--zc-radius); background: #fff; }
.zc-co-item__img img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--zc-radius); }
.zc-co-item__qty { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--zc-text); color: #fff; font-size: .6875rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.zc-co-item__info { flex: 1; }
.zc-co-item__name { font-size: .8125rem; line-height: 1.4; }
.zc-co-item__var { font-size: .7188rem; color: var(--zc-faint); margin-top: 3px; }
.zc-co-item__var dl { margin: 0; display: flex; gap: 4px; }
.zc-co-item__var dt, .zc-co-item__var dd { margin: 0; }
.zc-co-item__var p { margin: 0; }
.zc-co-item__total { font-size: .8438rem; font-weight: 700; }
.zc-co-summary .zc-totals { margin-top: 8px; border-top: 1px solid var(--zc-line); padding-top: 8px; }
.zc-co-coupon { display: flex; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--zc-line); }
.zc-co-coupon .input-text { flex: 1; }
.zc-co-coupon.is-loading { opacity: .6; pointer-events: none; }

/* ------------------------------------------------------------------ *
 * 7. Đặt hàng thành công
 * ------------------------------------------------------------------ */
.woocommerce-order-received .zc-page { max-width: 1000px; }
.zc-order__hero { text-align: center; padding: 8px 0 24px; }
.zc-order__tick { width: 64px; height: 64px; border-radius: var(--zc-radius); background: var(--zc-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.zc-order__title { font-weight: 800; font-size: 1.375rem; margin: 0 0 6px; }
.zc-track { --zc-progress: 0%; position: relative; display: flex; list-style: none; padding: 20px 0 8px; margin-bottom: 20px; }
.zc-track::before, .zc-track::after { content: ''; position: absolute; left: 12.5%; top: 36px; height: 3px; border-radius: 999px; }
.zc-track::before { right: 12.5%; background: var(--zc-line); }
.zc-track::after { width: var(--zc-progress); background: var(--zc-green); }
.zc-track__step { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: .75rem; font-weight: 600; color: #B3B8BC; text-align: center; }
.zc-track__dot { width: 34px; height: 34px; border-radius: 999px; background: #fff; border: 2px solid #E7E9EA; display: flex; align-items: center; justify-content: center; }
.zc-track__step.is-done { color: var(--zc-text); }
.zc-track__step.is-done .zc-track__dot { background: var(--zc-green); border-color: var(--zc-green); color: #fff; }
.zc-order__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.zc-panel--green { background: var(--zc-green-soft); border-color: transparent; }
.zc-panel--green .zc-panel__title { display: flex; align-items: center; gap: 8px; }
.zc-dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: .8125rem; color: var(--zc-muted); margin-bottom: 8px; }
.zc-dl dt, .zc-dl dd { margin: 0; }
.zc-dl dd { color: var(--zc-text); text-align: right; }
.zc-dl dd.zc-red { color: var(--zc-red); }
.zc-order__items { margin-bottom: 24px; }
.woocommerce-order-details, .woocommerce-customer-details { display: none; }
.woocommerce-order-received .woocommerce-bacs-bank-details { margin-bottom: 16px; }

/* ------------------------------------------------------------------ *
 * 8. Block: chính sách, liên hệ nhanh, FAQ, nội dung giới thiệu, menu danh mục
 * ------------------------------------------------------------------ */
.zc-policy-block { margin-top: 24px; }
.zc-policy-block .zc-tabtitle { margin-bottom: 14px; }
.zc-policy-block .zc-policy-grid { grid-template-columns: repeat(var(--zc-pol-cols, 2), minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.zc-policy-block .zc-policy { gap: 9px; padding: 4px 0; border: 0; background: transparent; font-size: .75rem; line-height: 1.4; }
.zc-policy-block .zc-policy__ico { width: 28px; height: 28px; }
.zc-policy-block .zc-policy__ico svg { width: 16px; height: 16px; }
.zc-faqblock.zc-seo { margin-top: 28px; }
.zc-faqblock:not(.zc-seo) .zc-faq__item { background: #fff; }
.zc-seo__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.zc-seo__card { border: 1px solid #F0F1EF; border-radius: var(--zc-radius); padding: 14px 16px; }
.zc-seo__card strong { display: block; font-size: .8438rem; color: var(--zc-text); }
.zc-seo__card p { margin: 6px 0 0; font-size: .8125rem; line-height: 1.65; color: var(--zc-muted); }
.zc-seo__note { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid #F0F1EF; font-size: .7813rem; line-height: 1.7; color: var(--zc-faint); }
.zc-infocards { margin-top: 28px; }
.zc-catnav--block { position: relative; z-index: 40; background: #fff; border: 1px solid var(--zc-line); border-radius: var(--zc-radius); padding: 6px 0; }
.zc-catnav--block .zc-catnav__link { min-height: 28px; padding: 5px 14px; font-size: .7813rem; line-height: 1.3; }
.zc-catnav--block .zc-catnav__link .zc-grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zc-catnav__title { padding: 8px 14px 6px; font: 700 .75rem var(--zc-font); letter-spacing: .06em; text-transform: uppercase; color: var(--zc-faint); }
.zc-catnav--noflyout .zc-flyout { display: none !important; }

/* ------------------------------------------------------------------ *
 * 9. Popup mua nhanh + toast
 * ------------------------------------------------------------------ */
html.zc-qb-open { overflow: hidden; }
.zc-qb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.zc-qb[hidden] { display: none; }
.zc-qb__overlay { position: absolute; inset: 0; background: rgba(18, 22, 26, .55); }
.zc-qb__dialog { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: var(--zc-radius); padding: 16px; }
.zc-qb__close { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border: 0; background: transparent; font-size: 1.75rem; line-height: 1; color: var(--zc-faint); }
.zc-qb__close:hover { color: var(--zc-text); }
.zc-qb__loading { padding: 40px 0; text-align: center; color: var(--zc-faint); }
.zc-qb__content.is-busy { opacity: .6; pointer-events: none; }
.zc-qb__head { display: flex; gap: 12px; align-items: flex-start; padding-right: 28px; margin-bottom: 10px; }
.zc-qb__meta:not(:has(.price)) .zc-qb__title { margin-bottom: 0; }
.zc-qb__img { width: 88px; height: 88px; flex: 0 0 auto; border: 1px solid var(--zc-line); border-radius: var(--zc-radius); background: #fff; overflow: hidden; }
.zc-qb__img img { width: 100%; height: 100%; object-fit: contain; }
.zc-qb__title { font: 600 .9375rem/1.4 var(--zc-font-head); margin: 0 0 6px; }
.zc-qb__price { font-size: 1.125rem; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.zc-qb__desc { margin: 0 0 14px; padding: 10px 12px; background: var(--zc-bg-2); border-radius: var(--zc-radius); font-size: .8125rem; line-height: 1.55; color: var(--zc-text-2); max-height: 120px; overflow-y: auto; }
.zc-qb__desc p { margin: 0 0 6px; }
.zc-qb__desc p:last-child { margin-bottom: 0; }
.zc-qb__desc ul, .zc-qb__desc ol { margin: 0; padding-left: 18px; }
.zc-qb__form form.cart { margin: 0; }
.zc-qb__form .woocommerce-variation-add-to-cart, .zc-qb__form form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.zc-qb__form .quantity { flex: 0 0 auto; height: 52px; }
.zc-qb__form .single_add_to_cart_button { flex: 1 1 0; min-width: 0; height: 52px; white-space: nowrap; }
.zc-qb__form .woocommerce-variation-price .price { font-size: 1.1rem; }
.zc-qb__form table.variations { width: 100%; }
.zc-qb__form .smt-inv-frontend-stock, .zc-qb__form .woocommerce-variation-availability { display: none; }
.zc-qb__error { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--zc-radius); background: #FDECEE; color: #9B1C28; font-size: .8125rem; list-style: none; display: block; }
.zc-toast { position: fixed; left: 50%; bottom: 24px; z-index: 100001; transform: translate(-50%, 20px); opacity: 0; transition: .25s; background: var(--zc-text); color: #fff; padding: 12px 18px; border-radius: var(--zc-radius); font-size: .875rem; }
.zc-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.zc-toast a { color: #8FE3A8; margin-left: 8px; font-weight: 700; }

/* ------------------------------------------------------------------ *
 * 10. Responsive (woo)
 * ------------------------------------------------------------------ */
@media (max-width: 1200px) {
	ul.products.zc-grid--6, ul.products.zc-grid--5, .zc-related ul.products, .upsells ul.products { --zc-cols: 4; }
	ul.products.zc-slider__track { --zc-cols: 4 !important; }
	.zc-shop__layout { grid-template-columns: 232px minmax(0, 1fr); gap: 18px; }
	.zc-cart-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
	.zc-pdp__top { grid-template-columns: min(var(--zc-pdp-left, 40%), 48%) minmax(0, 1fr); }
}
@media (max-width: 1080px) {
	.zc-cart-layout { grid-template-columns: minmax(0, 1fr); }
	.zc-cart-sum { position: static; }
}
@media (max-width: 1024px) {
	ul.products, ul.products.zc-grid--6, ul.products.zc-grid--5, .zc-grid, .zc-related ul.products, .upsells ul.products { --zc-cols: 3; }
	ul.products.zc-slider__track { --zc-cols: 3 !important; }
	ul.products.zc-grid.zc-grid--resp { --zc-cols: var(--zc-cols-t, 3) !important; }
	.zc-pdp__top { grid-template-columns: minmax(0, 1fr); }
	.zc-sticky-atc__actions .zc-btn--outline-red { display: none; }
}
@media (max-width: 900px) {
	.zc-shop__layout { grid-template-columns: minmax(0, 1fr); }
	.zc-shop__main, .zc-toolbar, .smtwpc-price-filter { min-width: 0; max-width: 100%; }
	.smtwpc-price-filter__list { max-width: 100%; overflow-x: auto; }
	.zc-filters { display: none; }
	.zc-filters.is-open { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100003; max-height: 86vh; overflow-y: auto; border: 0; border-radius: 14px 14px 0 0; padding: 0 16px calc(76px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 28px rgba(18, 22, 26, .18); animation: zc-sheet-up .22s ease; }
	.zc-filters__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: 0 -16px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--zc-line); }
	.zc-filters__head b { font: 700 1rem var(--zc-font-head); }
	.zc-filters__head button { width: 36px; height: 36px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--zc-faint); }
	.zc-filters__foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--zc-line); }
	.zc-filters.is-open .zc-filters__foot { display: block; }
	.zc-filters.is-open .zc-filters__head { display: flex; }
	.zc-filters-backdrop { position: fixed; inset: 0; z-index: 100002; background: var(--zc-overlay); }
	.zc-filters-backdrop.is-on { display: block; }
	.zc-toolbar .zc-sort { order: 3; flex: 1 1 100%; min-width: 0; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 2px -2px 0; padding: 2px; touch-action: pan-x; }
	.zc-toolbar .zc-sort::-webkit-scrollbar { display: none; }
	.zc-toolbar .zc-sort__label { display: none; }
	.zc-toolbar__filter { display: inline-flex; min-height: 44px; align-items: center; }
	.zc-co-shell { grid-template-columns: minmax(0, 1fr); }
	.zc-co-leftin { max-width: 640px; margin: 0 auto; }
	.zc-co-right { border-left: 0; border-top: 1px solid var(--zc-line); padding-bottom: 32px; }
	.zc-co-rightin { position: static; padding-top: 20px; }
	.zc-pdp__panelgrid { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr); }
	.zc-toast { bottom: 84px; max-width: calc(100% - 32px); text-align: center; }
}
@media (max-width: 860px) {
	.zc-tabs { top: 50px; }
	.admin-bar .zc-tabs { top: 96px; }
}
@media (max-width: 720px) {
	.zc-order__grid { grid-template-columns: 1fr; }
	.zc-sticky-atc__actions .zc-btn--orange span { display: none; }
}
@media (max-width: 640px) {
	body.woocommerce-cart { padding-bottom: calc(148px + env(safe-area-inset-bottom)); }
	.woocommerce input.input-text, .woocommerce textarea, .woocommerce select { font-size: 1rem; }
	body.single-product .smt-wpc-contact-float { bottom: calc(86px + env(safe-area-inset-bottom)) !important; }
	.zc-sort__chip { min-height: 44px; }
	.zc-card__cart a.button.smtwpc-contact-button { height: 44px !important; min-height: 44px !important; }
	.zc-card__cart .button, .zc-card__cart a.zc-card__btn, .zc-card__cart a.button.smtwpc-contact-button--icon { position: relative; }
	.zc-card__cart .button::before, .zc-card__cart a.zc-card__btn::before, .zc-card__cart a.button.smtwpc-contact-button--icon::before { content: ""; position: absolute; inset: -8px; }
	ul.products, ul.products.zc-grid--6, ul.products.zc-grid--5, .zc-grid, .zc-related ul.products, .upsells ul.products { --zc-cols: 2; }
	ul.products.zc-slider__track { --zc-cols: 2 !important; }
	ul.products.zc-grid.zc-grid--resp { --zc-cols: var(--zc-cols-m, 2) !important; }
	.zc-slider__nav { display: none; }
	/* Danh mục: nút "Xem thêm" thay phân trang số (phân trang vẫn nằm trong HTML cho SEO). */
	.zc-loadmore { display: flex; margin: 16px 0 0; }
	.zc-loadmore ~ .zc-pagination { display: none; }
	.zc-policy-grid, .zc-policy-block .zc-policy-grid { grid-template-columns: 1fr; }
	.zc-co-fields .woocommerce-billing-fields__field-wrapper, .zc-co-fields .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
	.zc-co-fields .smt-vcac-col-1-2, .zc-co-fields .form-row-first, .zc-co-fields .form-row-last { grid-column: 1 / -1 !important; width: 100% !important; max-width: 100% !important; float: none !important; flex: 1 1 100% !important; }
	.cr-summaryBox-wrap { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
	#reviews .cr-summaryBox-wrap { grid-template-columns: 1fr; }

	/* Giỏ hàng: thanh Tổng cộng + Thanh toán nằm trên thanh tab đáy */
	.zc-cartbar { position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 94; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--zc-line); box-shadow: 0 -4px 16px rgba(18, 22, 26, .08); transform: translateY(160%); transition: transform .22s ease; }
	.zc-cartbar.is-on { transform: none; }
	.zc-cartbar__sum { display: flex; flex-direction: column; line-height: 1.2; }
	.zc-cartbar__sum small { font-size: .6875rem; color: var(--zc-muted); }
	.zc-cartbar__sum strong { font: 800 1.125rem var(--zc-font); color: var(--zc-red); }
	.zc-cartbar .zc-btn { min-height: 44px; padding: 0 22px; }

	/* Trang sản phẩm */
	.zc-pdp__summary .product_title { font-size: 1.25rem; }
	.zc-pdp__summary .price, .zc-pdp__summary p.price { font-size: 1.375rem; }
	.zc-pdp__panel { background: transparent; border: 0; padding: 0; }
	.zc-pdp__gallery .zc-thumbnav { position: static; left: auto; right: auto; bottom: auto; margin-top: 10px; }
	.zc-pdp__panel .zc-pdp__gallery .woocommerce-product-gallery__image img { max-height: 100%; border-radius: var(--zc-radius); }
	.zc-pdp__badge { top: 10px; left: 10px; }
	/* Nút phóng to ảnh: góc trên phải khung ảnh (mặc định ở góc dưới trái → đè lên khung Tính năng nổi bật). */
	.zc-pdp__gallery .woocommerce-product-gallery__trigger { top: 10px; right: 10px; bottom: auto; left: auto; }
	.zc-pdp__highlights { background: var(--zc-bg-2); border-radius: var(--zc-radius); padding: 12px 14px; }
	.zc-pdp__hl-head h2 { text-align: left; font-size: .75rem; }
	.zc-pdp__hl-body { max-height: 160px; }
	/* Tab nội dung: hiện đủ 4 mục (icon trên, chữ dưới), không cuộn ngang; dính ngay dưới header. */
	.zc-tabs, .admin-bar .zc-tabs { top: var(--zc-sticky-top, 58px); margin-top: 24px; }
	.zc-tabs__in { display: grid !important; grid-template-columns: repeat(var(--zc-tab-n, 4), minmax(0, 1fr)); overflow: visible !important; gap: 0 !important; }
	.zc-tabs__link { flex-direction: column; justify-content: center; gap: 3px !important; padding: 8px 2px !important; font-size: .6875rem !important; line-height: 1.2; text-align: center; white-space: normal !important; min-width: 0; }
	.zc-tabs__link svg { width: 18px; height: 18px; }
	/* Thanh mua dính đáy: [Danh mục] [Mua ngay + giá] [Tài khoản], thay thanh tab. */
	body.single-product { padding-bottom: 72px; }
	body.single-product .zc-tabbar { display: none; }
	.zc-sticky-atc { transform: none !important; z-index: 96; padding-bottom: env(safe-area-inset-bottom); }
	.zc-sticky-atc__info, .zc-sticky-atc__actions { display: none; }
	.zc-sticky-atc__in { padding: 10px 16px; }
	.zc-sticky-atc__m { display: flex; gap: 10px; align-items: center; width: 100%; }
	.zc-sticky-atc__side { width: 48px; height: 44px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; border: 0; background: none; color: var(--zc-text-2); }
	.zc-sticky-atc__side span { font-size: .5625rem; font-weight: 600; line-height: 1; }
	.zc-sticky-atc__side:hover { color: var(--zc-green); }
	.zc-sticky-atc__buy { flex: 1; height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--zc-radius); background: var(--zc-green); color: #fff; padding: 0 10px; }
	.zc-sticky-atc__buy span { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
	.zc-sticky-atc__buy b { font-size: .8438rem; }
	.zc-sticky-atc__buy small { font-size: .6875rem; opacity: .9; }

	/* Giỏ hàng: item gọn kiểu app */
	.zc-cart-item { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img info info" "img qty total"; gap: 8px 12px; align-items: center; padding: 12px 0; }
	.zc-cart-item__img { grid-area: img; width: 72px; flex: none; align-self: start; }
	.zc-cart-item__info { grid-area: info; min-width: 0; padding-right: 28px; font-size: .8125rem; line-height: 1.4; }
	.zc-cart-item__info > a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; }
	.zc-cart-item__info .smt-fs-cart-notice { font-size: .6875rem; margin-top: 3px; }
	.zc-cart-item__tags { gap: 6px; margin-top: 4px; }
	.zc-cart-item__tags .zc-tag, .zc-cart-item__tags dl.variation dd { font-size: .625rem; padding: 1px 6px; }
	.zc-cart-item__tags .zc-instock { font-size: .6875rem; }
	.zc-cart-item__price { display: none; }
	.zc-cart-item__qty { grid-area: qty; }
	.zc-cart-item .quantity { height: 44px; background: #F4F5F3; border-color: transparent; }
	.zc-cart-item .zc-qty__btn { width: 40px; }
	.zc-cart-item .zc-qty input.qty { width: 36px; font-size: 1rem; font-weight: 700; background: transparent; }
	.zc-cart-item__total { grid-area: total; min-width: 0; margin: 0; text-align: right; }
	.zc-cart-item__total .product-subtotal { font-size: .9375rem; color: var(--zc-red); }
	.zc-cart-item__total .zc-remove { position: absolute; top: 8px; right: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 0; color: var(--zc-faint); }
	.zc-cart-item__total .zc-remove::before { content: ""; position: absolute; inset: -6px; }
	.zc-cart-item__total .zc-remove svg { width: 15px; height: 15px; }
	.zc-cart-item__total .zc-remove:hover { color: var(--zc-red); }

	/* Popup mua nhanh: bottom sheet full chiều ngang, hàng số lượng + nút ghim đáy (kiểu Shopee). */
	.zc-qb { align-items: flex-end; padding: 0; }
	.zc-qb__dialog { max-width: none; width: 100%; border-radius: 10px 10px 0 0; max-height: 88vh; padding-bottom: 84px; }
	.zc-qb__desc { max-height: 84px; }
	.zc-qb__form .woocommerce-variation-add-to-cart, .zc-qb__form form.cart:not(.variations_form) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; background: #fff; margin: 0; padding: 10px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--zc-line); flex-wrap: nowrap; gap: 8px; }
	.zc-qb__form .quantity { flex: 0 0 104px; width: 104px; height: 46px; }
	.zc-qb__form .single_add_to_cart_button { height: 46px; min-width: 0; padding: 0 8px; gap: 6px; letter-spacing: 0 !important; text-transform: none !important; font-size: .8125rem !important; }
	.zc-qb__form .single_add_to_cart_button:not(.zc-buynow)::before { display: none; }
	.zc-qb__form .smt-vrb-variations { grid-template-columns: 1fr 1fr !important; gap: 8px; }
	.zc-qb__form .smt-vrb-variation { padding: 8px !important; }
	.zc-qb__form .smt-vrb-variation-image { flex: 0 0 36px !important; width: 36px !important; height: 36px !important; }
	.zc-qb__form .smt-vrb-variation-image img { width: 36px !important; height: 36px !important; }
	.zc-qb__form .smt-vrb-variation-info { min-width: 0; }
	.zc-qb__form .smt-vrb-variation-selector { display: none; }
}

@media (prefers-reduced-motion: reduce) { .zc-cartbar { transition: none; } }
@keyframes zc-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .zc-filters.is-open { animation: none; } }
html.zc-lock { overflow: hidden; }

/* ------------------------------------------------------------------ *
 * 11. Tương thích plugin
 * ------------------------------------------------------------------ */
/* SMT Variations Radio Buttons — mobile (trang sản phẩm + popup): giữ 2 cột, ảnh đại diện nhỏ 36px để chữ đủ chỗ. */
@media (max-width: 640px) {
	.smt-vrb-variations.smt-vrb-variations-grid-2 { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
	.smt-vrb-variations:not(.smt-vrb-variations-popup) .smt-vrb-variation { gap: 8px !important; padding: 8px !important; align-items: center; }
	.smt-vrb-variations:not(.smt-vrb-variations-popup) .smt-vrb-variation-image { flex: 0 0 36px !important; width: 36px !important; height: 36px !important; }
	.smt-vrb-variations:not(.smt-vrb-variations-popup) .smt-vrb-variation-image img { width: 36px !important; height: 36px !important; object-fit: contain; }
	.smt-vrb-variations:not(.smt-vrb-variations-popup) .smt-vrb-variation-info { min-width: 0; flex: 1; }
	.smt-vrb-variations:not(.smt-vrb-variations-popup) .smt-vrb-variation-name, .smt-vrb-variations:not(.smt-vrb-variations-popup) .smt-vrb-variation-name label { font-size: .75rem !important; line-height: 1.35; }
	.smt-vrb-variations:not(.smt-vrb-variations-popup) .smt-vrb-variation-meta { flex-wrap: wrap; gap: 2px 6px; font-size: .75rem; }
	.smt-vrb-variations:not(.smt-vrb-variations-popup) .smt-vrb-variation-availability p { margin: 0; font-size: .6875rem; }
}
/* Cột thông tin hẹp (tỷ lệ 55/45, 60/40): ô biến thể gọn, ảnh 40px (không áp cho selector Popup). */
.zc-pdp-ratio-55 .zc-pdp__summary .smt-vrb-variations:not(.smt-vrb-variations-popup) .smt-vrb-variation, .zc-pdp-ratio-60 .zc-pdp__summary .smt-vrb-variations:not(.smt-vrb-variations-popup) .smt-vrb-variation { gap: 8px !important; padding: 8px 10px !important; align-items: center; }
.zc-pdp-ratio-55 .zc-pdp__summary .smt-vrb-variations:not(.smt-vrb-variations-popup) .smt-vrb-variation-image, .zc-pdp-ratio-60 .zc-pdp__summary .smt-vrb-variations:not(.smt-vrb-variations-popup) .smt-vrb-variation-image { flex: 0 0 40px !important; width: 40px !important; height: 40px !important; }
.zc-pdp-ratio-55 .zc-pdp__summary .smt-vrb-variations:not(.smt-vrb-variations-popup) .smt-vrb-variation-image img, .zc-pdp-ratio-60 .zc-pdp__summary .smt-vrb-variations:not(.smt-vrb-variations-popup) .smt-vrb-variation-image img { width: 40px !important; height: 40px !important; object-fit: contain; }
.zc-pdp-ratio-55 .zc-pdp__summary .smt-vrb-variations:not(.smt-vrb-variations-popup) .smt-vrb-variation-info, .zc-pdp-ratio-60 .zc-pdp__summary .smt-vrb-variations:not(.smt-vrb-variations-popup) .smt-vrb-variation-info { min-width: 0; flex: 1; }
.zc-pdp-ratio-55 .zc-pdp__summary .smt-vrb-variations:not(.smt-vrb-variations-popup) .smt-vrb-variation-meta, .zc-pdp-ratio-60 .zc-pdp__summary .smt-vrb-variations:not(.smt-vrb-variations-popup) .smt-vrb-variation-meta { flex-wrap: wrap; gap: 2px 8px; }

/* Popup: plugin làm mờ mọi tile data-purchasable="no". Còn hàng mà giá 0/trống vẫn chọn được để xem "Liên hệ", không làm mờ. Hết hàng giữ mờ. */
.smt-vrb-variations.smt-vrb-variations-popup .smt-vrb-variation[data-purchasable="no"][data-availability*="in-stock"] { background: #fff; }
.smt-vrb-variations.smt-vrb-variations-popup .smt-vrb-variation[data-purchasable="no"][data-availability*="in-stock"] .smt-vrb-variation-image { opacity: 1; }
.smt-vrb-variations.smt-vrb-variations-popup .smt-vrb-variation[data-purchasable="no"][data-availability*="in-stock"] .smt-vrb-variation-name,
.smt-vrb-variations.smt-vrb-variations-popup .smt-vrb-variation[data-purchasable="no"][data-availability*="in-stock"] .smt-vrb-variation-name label { color: #222; }
.smt-vrb-variations.smt-vrb-variations-popup .smt-vrb-variation.smt-vrb-variation-active[data-purchasable="no"][data-availability*="in-stock"] { background: #fff5f5; border-color: #e2473c; }
.smt-vrb-variations.smt-vrb-variations-popup .smt-vrb-variation.smt-vrb-variation-active[data-purchasable="no"][data-availability*="in-stock"] .smt-vrb-variation-name,
.smt-vrb-variations.smt-vrb-variations-popup .smt-vrb-variation.smt-vrb-variation-active[data-purchasable="no"][data-availability*="in-stock"] .smt-vrb-variation-name label { color: #e2473c; }

/* SMT Flash Sale trong theme: đồng bộ với khối "Sản phẩm nổi bật" (thẻ zc-card, khoảng cách 10px, không nền xám bọc ngoài). */
.smt-fs-widget { --smt-gap: 10px; border: 0; border-radius: 0; overflow: visible; margin: 28px 0 0; }
.smt-fs-widget .smt-fs-widget-header { border-radius: var(--zc-radius); padding: 10px 16px; }
.smt-fs-widget .smt-fs-widget-title { font: 800 1.0625rem var(--zc-font-head); }
.smt-fs-widget .smt-fs-products-wrap { background: transparent; border-radius: 0; }
.smt-fs-widget.smt-fs-layout-slider .smt-fs-products-wrap { padding: 0; }
.zc-blocks .smt-fs-widget.smt-fs-layout-slider .smt-fs-products-wrap, .smt-fs-widget.smt-fs-layout-slider .smt-fs-products-wrap[class] { padding: 0; background: transparent; }
.smt-fs-widget .smt-fs-slider--slider { padding: 14px 0 2px; }
.smt-fs-widget.smt-fs-layout-row .smt-fs-slider--row { padding: 14px 0 2px; }
.smt-fs-widget .smt-fs-slider-track > .zc-card { height: auto; align-self: stretch; }
.smt-fs-widget .smt-fs-slider-nav { width: 34px; height: 34px; box-shadow: 0 2px 8px rgba(18, 22, 26, .12); }
.smt-fs-widget .smt-fs-slider-prev { left: -6px; }
.smt-fs-widget .smt-fs-slider-next { right: -6px; }
@media (max-width: 640px) { .smt-fs-widget .smt-fs-slider-prev { left: 2px; } .smt-fs-widget .smt-fs-slider-next { right: 2px; } }

/* Trang sản phẩm: ẩn lớp phủ loading (blockUI) của WooCommerce trên form biến thể — đổi biến thể gần như tức thì nên lớp phủ chỉ gây nhấp nháy khi tải (rõ hơn ở sản phẩm nhiều biến thể). */
body.single-product form.variations_form .blockUI.blockOverlay { display: none !important; }
