/* ===== v2 UX overrides ===== */
/* 1. Sticky offsets follow the real header height */
:root body .product-section-nav { top: var(--header-h, 78px); }
html { scroll-padding-top: calc(var(--header-h, 78px) + 70px); }

/* 2. Touch targets >= 44px and readable functional text */
:root body .menu-toggle { min-width: 44px; min-height: 44px; padding: 10px; margin-right: -10px; display: none; place-items: center; }
@media (max-width: 900px) { :root body .menu-toggle { display: grid; } }
:root body .text-link, :root body .reset-filter, :root body .detail-call, :root body .product-bottom a, :root body .desktop-nav a, :root body .breadcrumb a, :root body .product-breadcrumbs a { min-height: 44px; display: inline-flex; align-items: center; }

:root body .reset-filter { padding: 8px 12px; font-size: .875rem; }
:root body .product-bottom > span, :root body .catalog-meta, :root body .catalog-total, :root body .category-top, :root body .category-card p, :root body .product-category, :root body .post-meta, :root body .hero-note, :root body .quick-specs dd, :root body .gallery-bottom, :root body .gallery-bottom p, :root body .gallery-bottom p span, :root body .model-tag, :root body .product-breadcrumbs, :root body .benefit-grid article > span, :root body .advice-card ul, :root body .advice-card .eyebrow, :root body .header-phone, :root body .header-phone span, :root body .trust-grid span, :root body .eyebrow, :root body .hero .eyebrow, :root body .product-identity .eyebrow, :root body #lightbox-position, :root body .lightbox-top button, :root body #product-lightbox > p, :root body .detail-spec-table { font-size: max(.75rem, 12px); }
:root body .catalog-meta, :root body .hero-note, :root body .product-bottom > span, :root body .advice-card ul, :root body .quick-specs dd, :root body .detail-spec-table, :root body .product-breadcrumbs, :root body .gallery-bottom p { font-size: .875rem; }
:root body .hero-actions .button, :root body .header-cta { font-size: max(.8125rem, 13px); }
:root body .header-phone { font-size: .875rem; }
:root body .header-phone span { font-size: .75rem; }
:root body .product-section-nav a { font-size: .875rem; min-height: 44px; }
:root body .lightbox-top button { min-height: 44px; padding: 10px 14px; }

/* 3. Secondary contact action (hotline); Zalo lives in the floating buttons */
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact-alt { min-height: 44px; display: inline-flex; align-items: center; }

/* 5. Quote link inside the sticky section nav (desktop only) */
:root body .product-section-nav .section-quote { margin-left: auto; color: #fff; background: var(--blue); padding: 0 18px; height: 44px; align-self: center; border-bottom: 0; font-size: .875rem; font-weight: 600; }
:root body .product-section-nav .section-quote:hover { color: #fff; background: #1857b0; }
@media (max-width: 900px) { :root body .product-section-nav .section-quote { display: none; } }

/* 6. Lightbox: allow vertical scroll + pinch, swipe handled in JS */
.lightbox-image img, .gallery-stage { touch-action: pan-y pinch-zoom; }
.detail-actions { flex-wrap: wrap; }
:root body .detail-call { border: 1px solid var(--line); padding: 8px 16px; justify-content: center; color: var(--ink); }
:root body .detail-call:hover { border-color: var(--blue); color: var(--blue); }
:root body .detail-call { align-self: stretch; }
@media (max-width: 900px) {
  :root body .detail-actions { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  :root body .detail-actions .button { flex: 1 1 100%; width: 100%; }
  :root body .detail-call { flex: 1 1 calc(50% - 5px); }
}

/* 7. Gallery: button no longer overflows its stage (zoom hint sat on top of the thumbnails on mobile) */
:root body .gallery-stage { overflow: hidden; }
:root body .gallery-zoom { box-sizing: border-box; }
:root body .gallery-zoom { padding: 0; }
:root body .gallery-zoom > img { position: absolute; inset: 0; width: 100%; height: 100%; box-sizing: border-box; padding: 46px 20px 42px; object-fit: contain; }

/* Featured product grid on the v2 landing page; the cards themselves live in public/site/product-card.css. */
.featured-products .section-heading { margin-bottom: 28px; }
.featured-products .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) {
  .featured-products .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .featured-products .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
