/* Trang chủ (Fix web 11/2026): hero video, tab sản phẩm, ô danh mục, banner. */

/* Hero: video nền full-width */
.vcl-hero { position: relative; width: 100%; overflow: hidden; background: #000; aspect-ratio: 16 / 9; max-height: calc(100vh - 100px); }
.vcl-hero__poster, .vcl-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcl-hero__video { opacity: 0; transition: opacity .6s ease; }
.vcl-hero.is-playing .vcl-hero__video { opacity: 1; }
@media (max-width: 767px) {
	.vcl-hero { aspect-ratio: 9 / 16; max-height: calc(100svh - 56px); }
}
/* Nút phát/dừng góc phải dưới của hero (có chữ cho trình đọc màn hình); ẩn tới khi JS bật. */
.vcl-hero__toggle { position: absolute; z-index: 3; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); background: rgba(0,0,0,.45); color: #fff; cursor: pointer; padding: 0; display: grid; place-items: center; }
.vcl-hero__toggle[hidden] { display: none; }
.vcl-hero__toggle::before { content: ""; width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.vcl-hero__toggle.is-paused::before { width: 0; height: 0; border: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
/* Astra paints button:hover/:focus red: keep the control neutral in every state */
.vcl-hero__toggle:focus, .vcl-hero__toggle:active { background-color: rgba(0,0,0,.45); color: #fff; box-shadow: none; }
.vcl-hero__toggle:hover { background: rgba(0,0,0,.7); }
.vcl-hero__toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Tab sản phẩm */
.vcl-tabs { max-width: 1400px; margin: 0 auto; padding: 40px 20px 20px; }
.vcl-tabs__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: nowrap; margin-bottom: 24px; }
.vcl-tabs__title { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 700; }
.vcl-tabs__nav { display: flex; gap: 28px; flex-wrap: nowrap; flex: 1 1 0; min-width: 0; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.vcl-tabs__title { flex: 0 0 auto; }
.vcl-tabs__tab { white-space: nowrap; }
@media (max-width: 1024px) { .vcl-tabs__nav { gap: 18px; } .vcl-tabs__tab { font-size: 16px; } .vcl-tabs__title { font-size: 24px; } }
.vcl-tabs__tab { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 18px; color: #555; cursor: pointer; border-bottom: 2px solid transparent; border-radius: 0; text-transform: none; }
.vcl-tabs__tab:hover, .vcl-tabs__tab:focus-visible { color: #000; background: none; }
.vcl-tabs__tab.is-active { color: #000; border-bottom-color: #000; background: none; }
.vcl-tabs__more, .vcl-tiles__more { color: #000; text-decoration: none; border-bottom: 2px solid #000; padding-bottom: 2px; font-size: 18px; white-space: nowrap; }
.vcl-tabs__panel[hidden] { display: none; }
.vcl-tabs__empty { text-align: center; padding: 60px 0; color: #777; margin: 0; }
.vcl-tabs__viewport { overflow: hidden; }
.vcl-tabs .vcl-home-track { display: flex; flex-wrap: nowrap; gap: 14px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.vcl-tabs .vcl-home-track::-webkit-scrollbar { display: none; }
.vcl-tabs .vcl-home-track > li.product { flex: 0 0 calc((100% - 42px) / 4); width: auto; max-width: none; margin: 0; scroll-snap-align: start; float: none; }
@media (max-width: 1024px) {
	.vcl-tabs .vcl-home-track > li.product { flex-basis: calc((100% - 28px) / 3); }
}
@media (max-width: 767px) {
	.vcl-tabs { padding: 28px 12px 12px; }
	.vcl-tabs__head { flex-wrap: wrap; }
	.vcl-tabs__title { font-size: 22px; flex: 1 1 100%; }
	.vcl-tabs__nav { justify-content: flex-start; gap: 16px; order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.vcl-tabs__tab { font-size: 14px; white-space: nowrap; }
	.vcl-tabs__more { font-size: 13px; position: absolute; right: 12px; margin-top: 4px; }
	.vcl-tabs__head { position: relative; margin-bottom: 14px; gap: 10px; }
	.vcl-tabs .vcl-home-track { gap: 8px; }
	.vcl-tabs .vcl-home-track > li.product { flex-basis: calc((100% - 16px) / 3); }
}

/* Ô danh mục 2 cột */
.vcl-tiles { max-width: 1400px; margin: 30px auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.vcl-tiles__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; }
.vcl-tiles__head h2 { margin: 0; font-size: 26px; font-weight: 700; }
.vcl-tiles__img { display: block; overflow: hidden; aspect-ratio: 1 / 1; }
.vcl-tiles__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.vcl-tiles__img:hover img { transform: scale(1.04); }
@media (max-width: 767px) {
	.vcl-tiles { padding: 0 12px; margin: 20px auto; }
	.vcl-tiles__head h2 { font-size: 16px; }
	.vcl-tiles__more { font-size: 12px; }
}

/* Banner Crocodile (ảnh tạm) */
.vcl-banner { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 340px; margin: 30px 0; text-decoration: none; color: #d8b45f; background: radial-gradient(ellipse at center, #3a2a1c 0%, #120d09 75%); text-align: center; }
.vcl-banner__t { font-size: clamp(36px, 7vw, 84px); letter-spacing: .06em; font-weight: 700; line-height: 1; }
.vcl-banner__s { font-size: clamp(22px, 4vw, 48px); font-style: italic; margin-top: 6px; }
.vcl-banner:hover { color: #f0cf7e; }
@media (max-width: 767px) { .vcl-banner { min-height: 180px; margin: 16px 0; } }

/* --- Chỉnh theo góp ý (12/11/2026) --- */
/* Tab: chữ đậm, giãn cách rộng hơn; không hiện chấm màu ở trang chủ */
.vcl-tabs__nav { gap: 56px; }
.vcl-tabs__tab { font-weight: 600; color: #000; opacity: .72; }
.vcl-tabs__tab.is-active, .vcl-tabs__tab:hover, .vcl-tabs__tab:focus-visible { font-weight: 700; opacity: 1; color: #000; }
.vcl-tabs__more { font-weight: 500; }
.vcl-tabs .vcl-dots { display: none !important; }
@media (max-width: 1024px) { .vcl-tabs__nav { gap: 32px; } }
@media (max-width: 767px) { .vcl-tabs__nav { gap: 20px; } }

/* Ô danh mục: full-width như mockup, nút "Xem thêm" dạng khung nhỏ */
.vcl-tiles { max-width: none; padding: 0; margin: 40px 0; gap: 4px; }
.vcl-tiles__head { padding: 16px 24px; gap: 16px; }
.vcl-tiles__head h2 { font-weight: 700; }
.vcl-tiles__more { border: 1px solid #000; padding: 3px 12px; font-size: 13px; line-height: 1.4; border-bottom-width: 1px; }
.vcl-tiles__more:hover { background: #000; color: #fff; }
@media (max-width: 767px) {
	.vcl-tiles { margin: 20px 0; gap: 2px; }
	.vcl-tiles__head { padding: 10px 12px; }
	.vcl-tiles__more { font-size: 11px; padding: 2px 8px; white-space: nowrap; }
	.vcl-tiles__head h2 { font-size: 14px; white-space: nowrap; }
}

/* --- Góp ý 12/11 (2): nút Xem thêm đậm nghiêng, hover ảnh kiểu phoebevietnam, tab không bị lấp --- */
.vcl-tiles__more { font-weight: 700; font-style: italic; }

/* Hover ảnh sản phẩm (tham khảo phoebevietnam.com): ảnh trong khung cắt, mờ dần sang ảnh thứ hai và phóng nhẹ, chậm và mượt. */
.vcl-tabs li.product .astra-shop-thumbnail-wrap { position: relative; overflow: hidden; }
.vcl-tabs li.product .astra-shop-thumbnail-wrap img { display: block; width: 100%; height: auto; transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform 1.2s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.vcl-tabs li.product .astra-shop-thumbnail-wrap img.show-on-hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 1; }
@media (hover: hover) {
	.vcl-tabs li.product:hover .astra-shop-thumbnail-wrap img { transform: scale(1.03); }
	.vcl-tabs li.product:hover .astra-shop-thumbnail-wrap img.show-on-hover { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .vcl-tabs li.product .astra-shop-thumbnail-wrap img { transition: none; transform: none !important; } }

/* Tablet và mobile: hàng 1 = tiêu đề + Xem thêm, hàng 2 = các tab trải đủ chiều rộng (không bị cắt) */
@media (max-width: 1024px) {
	.vcl-tabs__head { flex-wrap: wrap; position: static; gap: 10px 16px; margin-bottom: 16px; }
	.vcl-tabs__title { flex: 1 1 auto; order: 1; }
	.vcl-tabs__more { order: 2; position: static; margin: 0; font-size: 15px; }
	.vcl-tabs__nav { order: 3; flex: 1 1 100%; justify-content: flex-start; gap: 28px; overflow-x: auto; padding-bottom: 2px; }
	.vcl-tabs__tab { font-size: 16px; flex: 0 0 auto; }
}
@media (max-width: 767px) {
	.vcl-tabs__title { font-size: 22px; }
	.vcl-tabs__more { font-size: 13px; }
	.vcl-tabs__nav { gap: 22px; }
	.vcl-tabs__tab { font-size: 15px; }
}

/* --- Góp ý 12/11 (3): thẻ sản phẩm chỉ ảnh + tên trong khung, tên căn giữa; ô danh mục đúng tỉ lệ mockup --- */
.vcl-tabs li.product .vcl-card-meta,
.vcl-tabs li.product .price,
.vcl-tabs li.product .button,
.vcl-tabs li.product .ast-on-card-button,
.vcl-tabs li.product .astra-shop-summary-wrap .vcl-contact,
.vcl-tabs li.product .astra-shop-summary-wrap > :not(a) { display: none !important; }
.vcl-tabs .vcl-home-track { padding: 2px 1px 6px; }
.vcl-tabs li.product { background: #fff; border: 1px solid #ececec; box-shadow: 0 1px 6px rgba(0,0,0,.05); padding: 0 !important; display: flex; flex-direction: column; }
.vcl-tabs li.product .astra-shop-summary-wrap { padding: 0; margin: 0; flex: 1 1 auto; display: flex; }
.vcl-tabs li.product .ast-loop-product__link { display: flex; align-items: center; justify-content: center; width: 100%; padding: 14px 10px; text-decoration: none; }
.vcl-tabs li.product .woocommerce-loop-product__title { margin: 0; padding: 0; text-align: center; font-size: 13px; line-height: 1.4; font-weight: 600; min-height: 2.8em; display: flex; align-items: center; justify-content: center; }
@media (max-width: 767px) {
	.vcl-tabs li.product .ast-loop-product__link { padding: 8px 4px; }
	.vcl-tabs li.product .woocommerce-loop-product__title { font-size: 11px; }
}
.vcl-tiles__img { aspect-ratio: 478 / 527; }

/* Mobile: hàng 1 = tiêu đề, hàng 2 = các tab + "Xem thêm" cùng một hàng */
@media (max-width: 1024px) {
	.vcl-tabs__head { flex-wrap: wrap; align-items: center; gap: 8px 12px; }
	.vcl-tabs__title { order: 1; flex: 1 1 100%; }
	.vcl-tabs__nav { order: 2; flex: 1 1 0; min-width: 0; gap: 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.vcl-tabs__nav::-webkit-scrollbar { display: none; }
	.vcl-tabs__tab { font-size: 13px; padding: 4px 0; flex: 0 0 auto; }
	.vcl-tabs__more { order: 3; flex: 0 0 auto; font-size: 12px; white-space: nowrap; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.vcl-tabs__nav { gap: 28px; }
	.vcl-tabs__tab { font-size: 15px; }
	.vcl-tabs__more { font-size: 14px; }
}

/* Tên sản phẩm trong thẻ: nhỏ hơn và cân đối ở tablet/mobile (Astra đang phóng chữ lên ở các cỡ này) */
@media (max-width: 1024px) {
	.vcl-tabs li.product .woocommerce-loop-product__title { font-size: 13px !important; line-height: 1.35 !important; min-height: 2.7em; }
	.vcl-tabs li.product .ast-loop-product__link { padding: 10px 8px; }
}
@media (max-width: 767px) {
	.vcl-tabs li.product .woocommerce-loop-product__title { font-size: 11px !important; }
	.vcl-tabs li.product .ast-loop-product__link { padding: 8px 4px; }
}

/* Ô danh mục: hai ô luôn thẳng hàng dù tiêu đề (EN "Leather Jackets") xuống 2 dòng */
.vcl-tiles { grid-template-rows: auto auto; }
.vcl-tiles__item { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.vcl-tiles__head { align-items: center; align-self: stretch; }
@media (max-width: 1024px) { .vcl-tiles__head h2 { font-size: 22px; line-height: 1.2; } }
@media (max-width: 767px) { .vcl-tiles__head h2 { font-size: 14px; white-space: normal; } }

/* Banner Crocodile bằng ảnh (cắt từ mockup, thay bằng file gốc của khách khi có) */
.vcl-banner--img { display: block; min-height: 0; background: none; margin: 30px 0; }
.vcl-banner--img img { display: block; width: 100%; height: auto; }
@media (max-width: 767px) { .vcl-banner--img { margin: 16px 0; } }

/* Fix kích thước 13/11: nội dung trang chủ rộng gần hết bề ngang như mockup (trước đây khung 1400px chừa nhiều khoảng trắng) */
.vcl-tabs { max-width: min(1840px, calc(100% - 48px)); padding-left: 0; padding-right: 0; }
body.home .elementor-top-section.elementor-section-boxed > .elementor-container { max-width: min(1840px, calc(100% - 48px)) !important; }
@media (max-width: 1024px) {
	.vcl-tabs { max-width: calc(100% - 24px); }
	body.home .elementor-top-section.elementor-section-boxed > .elementor-container { max-width: calc(100% - 20px) !important; }
}

/* Ô danh mục: không để tiêu đề dài (EN "Leather Jackets") làm tràn ngang trên mobile */
.vcl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vcl-tiles__head { min-width: 0; flex-wrap: wrap; }
.vcl-tiles__head h2 { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 767px) { .vcl-tiles__head h2 { white-space: normal; font-size: 13px; } .vcl-tiles__head { padding: 10px 8px; gap: 6px; } }
