/* ============================================================
   pgy6.com Mobile H5 App Shell & Global Polish Styles (v2)
   - Desktop >768px header/tabbar/footer padding remain 100% untouched
   - Slim 56px mobile header + safe-area drawer + 44x44 touch targets
   - Fixed bottom frosted 5-tab H5 navigation bar with elevated Trial CTA
   - Seamless dark #262119 footer under bottom tabbar (zero light seam)
   - Floating Back-to-Top button (.pgy-back-top)
   - One-tap WeChat copy + accessible toast + Contact map nav bar
   - Native <dialog closedby="any"> poster lightbox for /products 6-domain cards
   ============================================================ */

/* Hidden by default on desktop (>768px) */
.pgy-h5-tabbar,
.pgy-poster-zoom-btn {
  display: none;
}

/* ---------- Screen-reader live region utility ---------- */
.pgy-sr-live {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Floating Back-to-Top Button (all viewports) ---------- */
.pgy-back-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 115;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(217, 119, 87, 0.32);
  color: var(--primary-deep, #B04E2F);
  box-shadow: 0 6px 20px rgba(42, 38, 34, 0.12), 0 2px 6px rgba(217, 119, 87, 0.14);
  cursor: pointer;
  touch-action: manipulation;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.pgy-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.pgy-back-top:hover {
  background: #FFF9F3;
  border-color: var(--primary, #D97757);
  transform: translateY(-2px);
}

.pgy-back-top:active {
  transform: scale(0.95);
}

.pgy-back-top:focus-visible {
  outline: 2px solid var(--primary-deep, #B04E2F);
  outline-offset: 2px;
}

.pgy-back-top svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* ---------- Clickable Phone & One-Tap Copy WeChat Button ---------- */
.pgy-wx-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.pgy-tel-link {
  display: inline;
  color: var(--primary-deep, #B04E2F);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(176, 78, 47, 0.42);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.pgy-tel-link:hover {
  color: var(--primary, #D97757);
  text-decoration-color: var(--primary, #D97757);
}

.pgy-copy-wx-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(217, 119, 87, 0.11);
  border: 1px solid rgba(217, 119, 87, 0.34);
  color: var(--primary-deep, #B04E2F);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.pgy-copy-wx-btn:hover {
  background: rgba(217, 119, 87, 0.18);
  border-color: var(--primary, #D97757);
}

.pgy-copy-wx-btn:active {
  transform: scale(0.96);
}

.pgy-copy-wx-btn:focus-visible {
  outline: 2px solid var(--primary-deep, #B04E2F);
  outline-offset: 2px;
}

.pgy-copy-wx-btn.is-copied {
  background: rgba(46, 125, 79, 0.14);
  border-color: rgba(46, 125, 79, 0.42);
  color: #1F6B3E;
}

/* Dark footer variant for clickable tel & Copy WeChat */
#app .site-footer .footer-col .pgy-wx-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

#app .site-footer .footer-col .pgy-tel-link {
  display: inline;
  line-height: inherit;
  color: #F2C6A0;
  text-decoration-color: rgba(242, 198, 160, 0.45);
}

#app .site-footer .footer-col .pgy-tel-link:hover {
  color: #FFE1C6;
  text-decoration-color: #FFE1C6;
}

#app .site-footer .footer-col .pgy-copy-wx-btn {
  background: rgba(232, 168, 124, 0.16);
  border-color: rgba(232, 168, 124, 0.44);
  color: #F7D9BC;
}

#app .site-footer .footer-col .pgy-copy-wx-btn:hover {
  background: rgba(232, 168, 124, 0.26);
  border-color: #E8A87C;
  color: #FFFFFF;
}

#app .site-footer .footer-col .pgy-copy-wx-btn.is-copied {
  background: rgba(74, 184, 118, 0.22);
  border-color: rgba(114, 214, 152, 0.55);
  color: #C8F5D8;
}

/* ---------- /contact Direct Map Navigation Bar ---------- */
.map-card:has(.pgy-map-nav-bar) > .map-address,
.map-card:has(.pgy-map-nav-bar) > .map-link {
  display: none;
}

.pgy-map-nav-bar {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-3, #F5F1EA);
  border: 1px solid rgba(42, 38, 34, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pgy-map-nav-addr-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--title, #1F1B17);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
}

.pgy-map-nav-pin {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary-deep, #B04E2F);
}

.pgy-map-nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pgy-map-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pgy-map-nav-btn--amap {
  background: var(--grad-main, linear-gradient(135deg, #E2694F 0%, #E8A87C 100%));
  color: #1F1B17;
  border: 1px solid rgba(176, 78, 47, 0.22);
  box-shadow: 0 4px 14px rgba(217, 119, 87, 0.22);
}

.pgy-map-nav-btn--amap:hover {
  box-shadow: 0 6px 18px rgba(217, 119, 87, 0.34);
}

.pgy-map-nav-btn--baidu {
  background: var(--bg-2, #FFFFFF);
  color: var(--primary-deep, #B04E2F);
  border: 1px solid rgba(217, 119, 87, 0.36);
}

.pgy-map-nav-btn--baidu:hover {
  background: #FFF8F2;
  border-color: var(--primary, #D97757);
}

.pgy-map-nav-btn:focus-visible {
  outline: 2px solid var(--primary-deep, #B04E2F);
  outline-offset: 2px;
}

/* ---------- Non-Blocking Toast Notification (popover="manual" + fallback) ---------- */
.pgy-toast-region {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 32px;
  z-index: 260;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-inline: 16px;
  pointer-events: none;
}

.pgy-toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 360px);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(232, 168, 124, 0.4);
  background: rgba(31, 27, 23, 0.94);
  color: #FAF9F5;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, display 0.22s ease, overlay 0.22s ease;
  transition-behavior: allow-discrete;
}

.pgy-toast[popover] {
  position: fixed;
  inset: auto 0 32px 0;
  margin: 0 auto;
  width: fit-content;
}

.pgy-toast.is-shown,
.pgy-toast[popover]:is(:popover-open, .\:popover-open) {
  display: inline-flex;
  opacity: 1;
  transform: translateY(0);
}

@starting-style {
  .pgy-toast[popover]:is(:popover-open, .\:popover-open) {
    opacity: 0;
    transform: translateY(8px);
  }
}

.pgy-toast-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 4px;
  border-radius: 999px;
  color: rgba(250, 249, 245, 0.8);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.pgy-toast-close:hover,
.pgy-toast-close:focus-visible {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- Native <dialog> Poster Lightbox (Top Layer) ---------- */
dialog.pgy-poster-lightbox {
  margin: auto;
  padding: 0;
  border: 1px solid rgba(232, 168, 124, 0.45);
  border-radius: 16px;
  width: min(96dvw, 960px);
  max-width: 96dvw;
  max-height: 90dvh;
  background: var(--bg, #FAF9F5);
  color: var(--title, #1F1B17);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

dialog.pgy-poster-lightbox[open] {
  display: flex;
  flex-direction: column;
}

dialog.pgy-poster-lightbox:modal {
  overscroll-behavior: contain;
}

dialog.pgy-poster-lightbox::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(24, 20, 17, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.pgy-plb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-3, #F5F1EA);
  border-bottom: 1px solid rgba(74, 68, 60, 0.12);
  flex-shrink: 0;
}

.pgy-plb-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--title, #1F1B17);
  line-height: 1.35;
  min-width: 0;
  flex: 1;
  overflow-wrap: break-word;
}

.pgy-plb-close-form {
  flex-shrink: 0;
  margin: 0;
}

.pgy-plb-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--bg-2, #FFFFFF);
  border: 1px solid rgba(74, 68, 60, 0.22);
  color: var(--text, #4A443C);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  touch-action: manipulation;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.pgy-plb-close:hover,
.pgy-plb-close:active {
  border-color: var(--primary, #D97757);
  color: var(--primary-deep, #B04E2F);
  background: #FFF9F4;
}

.pgy-plb-close:focus-visible {
  outline: 2px solid var(--primary-deep, #B04E2F);
  outline-offset: 2px;
}

.pgy-plb-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #FAF5EC;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.pgy-plb-body picture {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.pgy-plb-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(90dvh - 84px);
  object-fit: contain;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .pgy-back-top,
  .pgy-toast,
  .pgy-copy-wx-btn,
  .pgy-map-nav-btn {
    transition: none;
    transform: none;
  }
}

@media (forced-colors: active) {
  .pgy-back-top,
  .pgy-copy-wx-btn,
  .pgy-map-nav-btn,
  .pgy-toast {
    border: 1px solid ButtonText;
  }
}

/* ============================================================
   Mobile H5 Shell Rules — STRICTLY <= 768px
   ============================================================ */
@media (max-width: 768px) {
  /* 1. Safe scroll padding & seamless dark footer bottom clearance */
  html {
    scroll-padding-top: 66px;
    scroll-padding-top: calc(66px + env(safe-area-inset-top, 0px));
    scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  /* Keep body clearance only when no .site-footer is present;
     otherwise .site-footer provides seamless dark #262119 padding under tabbar */
  body:not(:has(.site-footer)) {
    padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  }

  #app .site-footer {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  /* Mobile Floating Back-to-Top position clear of bottom tabbar */
  .pgy-back-top {
    right: 14px;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  /* Mobile Toast position clear of bottom tabbar */
  .pgy-toast-region {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .pgy-toast[popover] {
    inset: auto 0 calc(76px + env(safe-area-inset-bottom, 0px)) 0;
  }

  /* Mobile 44px touch target for Copy WeChat button */
  .pgy-copy-wx-btn {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 12.5px;
  }

  .pgy-copy-wx-btn::after {
    content: "";
    position: absolute;
    inset: -4px;
  }

  /* Mobile 2-column 44px touch buttons for Map Navigation Bar */
  .pgy-map-nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .pgy-map-nav-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 10px;
    font-size: 13.5px;
  }

  /* 2. Slim Mobile Top Header (56px + safe-area-inset-top) */
  header.site-header {
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    background: rgba(255, 253, 249, 0.92);
    border-bottom: 1px solid rgba(42, 38, 34, 0.08);
  }

  header.site-header.scrolled {
    background: rgba(255, 253, 249, 0.97);
  }

  header.site-header .container.header-inner {
    height: 56px;
    padding-inline: 14px;
    gap: 10px;
  }

  header.site-header .logo {
    min-width: 0;
    flex-shrink: 1;
    gap: 8px;
  }

  header.site-header .logo-img {
    height: 32px;
    max-width: 148px;
  }

  header.site-header .logo-mark svg {
    width: 32px;
    height: 32px;
  }

  header.site-header .logo-sub {
    display: none;
  }

  header.site-header .header-right {
    gap: 8px;
    flex-shrink: 0;
  }

  /* Keep Vue .trial-btn mounted & clickable programmatically via .click()
     while visually hidden and non-interactive on mobile (replaced by center tab CTA) */
  header.site-header .trial-btn {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
  }

  /* Crisp 44x44px touch target for Hotline button */
  header.site-header .hotline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    gap: 0;
    border-radius: 12px;
    background: rgba(217, 119, 87, 0.1);
    border: 1px solid rgba(217, 119, 87, 0.25);
    color: var(--primary-deep, #B04E2F);
    touch-action: manipulation;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  header.site-header .hotline svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
  }

  header.site-header .hotline:active {
    background: rgba(217, 119, 87, 0.18);
    border-color: var(--primary, #D97757);
  }

  header.site-header .hotline-num {
    display: none;
  }

  /* Crisp 44x44px touch target for Menu Toggle button */
  header.site-header .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    gap: 5px;
    border-radius: 12px;
    background: rgba(42, 38, 34, 0.04);
    border: 1px solid rgba(42, 38, 34, 0.1);
    touch-action: manipulation;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  header.site-header .menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--title, #1F1B17);
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  header.site-header .menu-toggle:active {
    background: rgba(42, 38, 34, 0.1);
  }

  header.site-header.open .menu-toggle {
    background: rgba(217, 119, 87, 0.1);
    border-color: rgba(217, 119, 87, 0.28);
  }

  header.site-header.open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  header.site-header.open .menu-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  header.site-header.open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile Nav Dropdown positioned flush under 56px header, never colliding with bottom tabbar */
  header.site-header .nav {
    top: 56px;
    top: calc(56px + env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - 56px - 66px);
    max-height: calc(100dvh - 56px - 66px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: rgba(250, 249, 245, 0.98);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    padding: 8px 16px 14px;
    box-shadow: 0 14px 36px rgba(42, 38, 34, 0.14);
  }

  header.site-header .nav .nav-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 12px;
    font-size: 15.5px;
    border-radius: 8px;
  }

  header.site-header .nav .nav-link.active {
    color: var(--primary-deep, #B04E2F);
    font-weight: 700;
    background: rgba(217, 119, 87, 0.08);
  }

  /* 3. Mobile H5 Bottom Navigation Bar */
  .pgy-h5-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    background: rgba(255, 253, 249, 0.95);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(42, 38, 34, 0.09);
    box-shadow: 0 -6px 24px rgba(42, 38, 34, 0.07), 0 -1px 4px rgba(217, 119, 87, 0.06);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    -webkit-tap-highlight-color: transparent;
  }

  .pgy-h5-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 58px;
    min-height: 58px;
    min-width: 0;
    padding: 4px 2px 3px;
    color: #5C554C;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    transition: color 0.18s ease;
  }

  .pgy-h5-tab:focus-visible {
    outline: 2px solid var(--primary-deep, #B04E2F);
    outline-offset: -3px;
    border-radius: 10px;
  }

  .pgy-h5-tab-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 26px;
    border-radius: 999px;
    transition: background-color 0.2s ease, transform 0.18s ease;
  }

  .pgy-h5-tab-icon {
    width: 21px;
    height: 21px;
    display: block;
    flex-shrink: 0;
  }

  .pgy-h5-tab-label {
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.2px;
    white-space: nowrap;
  }

  /* Active route indicator: color + top indicator bar + tinted pill + bolder weight (WCAG 1.4.1) */
  .pgy-h5-tab.is-active,
  .pgy-h5-tab[aria-current="page"] {
    color: var(--primary-deep, #B04E2F);
  }

  .pgy-h5-tab.is-active::before,
  .pgy-h5-tab[aria-current="page"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--primary-deep, #B04E2F);
  }

  .pgy-h5-tab.is-active .pgy-h5-tab-icon-wrap,
  .pgy-h5-tab[aria-current="page"] .pgy-h5-tab-icon-wrap {
    background: rgba(217, 119, 87, 0.13);
  }

  .pgy-h5-tab.is-active .pgy-h5-tab-icon,
  .pgy-h5-tab[aria-current="page"] .pgy-h5-tab-icon {
    stroke-width: 2.2;
  }

  .pgy-h5-tab.is-active .pgy-h5-tab-label,
  .pgy-h5-tab[aria-current="page"] .pgy-h5-tab-label {
    font-weight: 700;
  }

  /* Center Elevated Trial CTA */
  .pgy-h5-tab--cta {
    justify-content: flex-end;
    padding-bottom: 5px;
    gap: 1px;
    color: var(--primary-deep, #B04E2F);
  }

  .pgy-h5-cta-orb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--grad-main, linear-gradient(135deg, #E2694F 0%, #E8A87C 100%));
    color: #FFFFFF;
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(217, 119, 87, 0.42), 0 0 0 3px rgba(255, 253, 249, 0.96);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .pgy-h5-cta-icon {
    width: 20px;
    height: 20px;
    display: block;
  }

  .pgy-h5-tab--cta .pgy-h5-tab-label {
    margin-top: -4px;
    color: var(--primary-deep, #B04E2F);
    font-weight: 700;
    font-size: 11.5px;
  }

  .pgy-h5-tab--cta:active .pgy-h5-cta-orb {
    transform: translateY(-5px) scale(0.95);
    box-shadow: 0 4px 12px rgba(217, 119, 87, 0.36), 0 0 0 3px rgba(255, 253, 249, 0.96);
  }

  /* 4. Mobile Poster Zoom Button on /products 6-domain cards */
  .products .product-card.is-six-domain .product-card-cover .pgy-poster-zoom-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 36px;
    min-width: 58px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(31, 27, 23, 0.78);
    color: #FAF9F5;
    border: 1px solid rgba(255, 255, 255, 0.24);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 0.2s ease, transform 0.15s ease;
  }

  /* Extend hit area to >=44x44px while staying within 8px inset of cover */
  .products .product-card.is-six-domain .product-card-cover .pgy-poster-zoom-btn::after {
    content: "";
    position: absolute;
    inset: -4px;
  }

  .products .product-card.is-six-domain .product-card-cover .pgy-poster-zoom-btn:active {
    background: rgba(176, 78, 47, 0.92);
    transform: scale(0.96);
  }

  .products .product-card.is-six-domain .product-card-cover .pgy-poster-zoom-btn:focus-visible {
    outline: 2px solid var(--primary, #D97757);
    outline-offset: 2px;
  }

  /* Reduced motion support */
  @media (prefers-reduced-motion: reduce) {
    header.site-header .menu-toggle span,
    .pgy-h5-tab,
    .pgy-h5-tab-icon-wrap,
    .pgy-h5-cta-orb,
    .products .product-card.is-six-domain .product-card-cover .pgy-poster-zoom-btn {
      transition: none;
    }
  }

  /* High-contrast / Forced Colors support */
  @media (forced-colors: active) {
    .pgy-h5-tabbar {
      border-top: 2px solid CanvasText;
    }
    .pgy-h5-tab.is-active::before,
    .pgy-h5-tab[aria-current="page"]::before {
      background: Highlight;
    }
    .pgy-h5-cta-orb {
      border: 2px solid ButtonText;
    }
  }
}
