/*
 * KZYAO Storefront Child - Task 23 mobile UI redesign.
 * ALL rules below live inside @media (max-width: 767px); desktop (>=768px)
 * stays untouched. New feature classes use the kzyao-m-* prefix.
 * Only appearance / layout / interaction is changed; no copy, price, MOQ,
 * variant or product data is modified anywhere.
 */
/* Mobile-only template blocks (home product-card price alignment, task 24).
   Hidden above the phone breakpoint so desktop renders exactly as before. */
.kzyao-m-price,
.kzyao-m-moq { display: none; }

@media (max-width: 767px) {

/* ================================================================
   1. CookieYes (cookie-law-info lite) — slim mobile bottom bar.
   Functionality untouched (Accept / Reject / Customise all still work).
   ================================================================ */
  .cky-consent-container {
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
    transform: none !important;
    box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.16) !important;
  }
  .cky-consent-container .cky-consent-bar {
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 0 !important;
    border-width: 1px 0 0 !important;
    border-color: #e2e8f0 !important;
  }
  .cky-consent-bar .cky-title { display: none !important; }
  .cky-notice-group { display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; gap: 6px !important; }
  .cky-notice-group .cky-notice-des { flex: 0 0 auto !important; min-width: 0; margin: 0 !important; padding: 0 !important; }
  .cky-notice-group .cky-notice-des p {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    color: #334155 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
    text-overflow: ellipsis;
  }
  .cky-notice-btn-wrapper {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .cky-notice-btn-wrapper .cky-btn {
    min-height: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 6px 10px !important;
    border-radius: 8px;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 600;
    box-shadow: none !important;
  }
  .cky-notice-btn-wrapper .cky-btn-accept {
    order: 1 !important;
    flex: 1.35 1 0% !important;
    min-width: 0 !important;
    background: #0f172a !important;
    border: 1px solid #0f172a !important;
    color: #ffffff !important;
  }
  .cky-notice-btn-wrapper .cky-btn-reject {
    order: 2 !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
  }
  .cky-notice-btn-wrapper .cky-btn-customize {
    order: 3 !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 30%;
    margin: 0 !important;
    padding: 6px 2px !important;
    background: transparent !important;
    border: 0 !important;
    color: #64748b !important;
    text-decoration: underline;
    font-size: 11.5px !important;
    font-weight: 500;
  }

/* ================================================================
   2. Announcement bar + header compaction (<=56px goal for the nav
      band once the wrapping announcement bar is single-line).
   ================================================================ */
  .kv2-topbar {
    height: 26px;
    line-height: 26px;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    font-size: 11px;
    letter-spacing: 0.01em;
    padding: 0 16px;
  }
  .kv2-topbar::-webkit-scrollbar { display: none; }
  .kv2-topbar b { font-size: 11px; }

  #masthead { padding-top: 6px; padding-bottom: 6px; }
  #masthead > .col-full { margin: 0; }
  .site-header .site-branding {
    float: left;
    width: auto;
    max-width: 46%;
    padding: 0;
  }
  .site-branding .beta.site-title { font-size: 20px; line-height: 1.15; padding: 0; }
  .site-branding .beta.site-title a { letter-spacing: 0.01em; }

  .storefront-primary-navigation .col-full { margin: 0; padding: 0; }
  #site-navigation { min-height: 44px; }
  #site-navigation .menu-toggle,
  #site-navigation .kzy-search-toggle {
    float: right;
    height: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  #site-navigation .menu-toggle {
    width: auto;
    min-width: 88px;
    padding: 0 16px 0 38px;
    font-size: 0.9rem;
    border-radius: 8px;
  }
  #site-navigation .menu-toggle::before,
  #site-navigation .menu-toggle::after,
  #site-navigation .menu-toggle span::before { left: 12px; width: 15px; }
  #site-navigation .kzy-search-toggle {
    width: 44px;
    margin-right: 6px;
  }
  .site-header .site-search { display: none; }
  .site-header .site-description { display: none; }

/* ================================================================
   3. Drawer menu (replaces the old inline handheld expansion on
      phones). Opens when #site-navigation.toggled (same toggle the
      Menu button already drives).
   ================================================================ */
  body.kzyao-m-drawer-open { overflow: hidden; }
  body.kzyao-m-drawer-open .tw-wa-float { display: none !important; }
  body.kzyao-m-drawer-open .storefront-handheld-footer-bar { display: none !important; }

  #site-navigation .handheld-navigation {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 999950;
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #0f172a 0%, #16213b 60%, #1e293b 100%);
    border: 0;
    border-radius: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    opacity: 0;
    transform: translateX(6%);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.24s ease, visibility 0s linear 0.24s;
  }
  #site-navigation.toggled .handheld-navigation {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition-delay: 0s;
  }
  #site-navigation .handheld-navigation .kzyao-m-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 8px;
  }
  #site-navigation .handheld-navigation .kzyao-m-drawer-top .kzyao-m-drawer-brand {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  .kzyao-m-drawer-close {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    border-radius: 10px;
    cursor: pointer;
  }
  .kzyao-m-drawer-close:hover,
  .kzyao-m-drawer-close:focus { background: rgba(255, 255, 255, 0.16); }

  #site-navigation .handheld-navigation ul.menu {
    display: block;
    margin: 0;
    padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
    list-style: none;
    max-width: 560px;
  }
  #site-navigation .handheld-navigation ul.menu > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  #site-navigation .handheld-navigation ul.menu > li:last-child { border-bottom: 0; }
  #site-navigation .handheld-navigation ul.menu > li > a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 8px 4px;
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
  }
  #site-navigation .handheld-navigation ul.menu > li > a:active { color: #7dd3fc; }
  #site-navigation .handheld-navigation ul.menu > li.menu-item-has-children > a { padding-right: 8px; }

  /* Categories under "Shop" become two big card links. */
  #site-navigation .handheld-navigation .sub-menu {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
  }
  #site-navigation .handheld-navigation .sub-menu li { margin: 0; }
  #site-navigation .handheld-navigation .sub-menu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
  }
  #site-navigation .handheld-navigation .sub-menu li a:active {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
  }
  #site-navigation .handheld-navigation .dropdown-toggle { display: none !important; }

  /* WhatsApp CTA pinned at the bottom of the drawer. */
  #site-navigation .handheld-navigation li.tw-nav-cta {
    position: static;
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
  }
  #site-navigation .handheld-navigation li.tw-nav-cta a.tw-nav-cta-a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 52px;
    padding: 12px 14px;
    background: #25d366;
    border-radius: 12px;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: normal;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
  }
  #site-navigation .handheld-navigation li.tw-nav-cta a.tw-nav-cta-a:active { background: #1eb95a; }

  /* Make sure the old Storefront toggle is never double-printed by CSS. */
  #site-navigation .primary-navigation { display: none !important; }/* ================================================================
   4. Mobile product search (existing kzy toggle + bar, restyled as a
      drop-down layer under the compact header with popular chips).
   ================================================================ */
  #site-navigation { position: relative; }
  #site-navigation .kzy-mobile-search {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 999900;
    display: none;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.35);
    padding: 12px 16px 14px;
  }
  #site-navigation .kzy-mobile-search.is-open { display: block; }
  #site-navigation .kzy-mobile-search form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
  }
  #site-navigation .kzy-mobile-search .search-field {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 46px;
    margin: 0;
    padding: 0 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.3;
  }
  #site-navigation .kzy-mobile-search .search-field::placeholder { color: #94a3b8; opacity: 1; }
  #site-navigation .kzy-mobile-search-submit {
    flex: 0 0 auto;
    height: 46px;
    padding: 0 16px;
    background: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
  }
  #site-navigation .kzy-search-close { display: none; }
  #site-navigation .kzy-mobile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }
  .kzy-mobile-chips .kzyao-m-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: transparent;
    color: #cbd5e1;
    font-size: 0.82rem;
    text-decoration: none;
  }
  .kzy-mobile-chips .kzyao-m-chip:active { background: rgba(255, 255, 255, 0.14); color: #fff; }
  .kzy-mobile-chips .kzyao-m-chip-label {
    color: #64748b;
    font-size: 0.78rem;
    width: 100%;
    margin: 0 0 2px;
  }

/* ================================================================
   5. Homepage compaction (<=767px). Every rule keeps existing copy
      visible/reachable; sections become shorter or scroll sideways.
   ================================================================ */
  .kv2-inner { padding-inline: 16px; }
  .kv2-sec { padding-top: 22px; padding-bottom: 22px; }
  .kv2-sec-head { margin-bottom: 12px; }
  .kv2-sec-head h2 { font-size: 1.35rem; line-height: 1.25; }
  .kv2-sec-head p { font-size: 0.9rem; line-height: 1.45; margin: 4px 0 0; }
  .kv2-eyebrow { font-size: 0.72rem; letter-spacing: 0.08em; }

  /* Hero: cap its height so the first screen shows the headline + CTAs. */
  .kv2-hero { min-height: 0; }
  .kv2-hero-slideshow { height: 58vh; max-height: 520px; min-height: 430px; }
  .kv2-hero-slideshow .kv2-hero-copy { padding: 18px 0 0; }
  .kv2-hero h1 { font-size: 1.55rem; line-height: 1.2; }
  .kv2-hero-sub { font-size: 0.95rem; line-height: 1.45; }
  .kv2-hero-ctas { gap: 10px; }
  .kv2-hero-ctas .kv2-btn { min-height: 46px; font-size: 0.95rem; }
  .kv2-hero-dots { bottom: 10px; }
  .kv2-hero-dot { width: 10px; height: 10px; }

  /* Trust chips: one horizontal swipeable row. */
  .kv2-trustbar { padding: 0; }
  .kv2-trustbar ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    margin: 0;
    padding: 8px 16px 6px;
    scroll-snap-type: x proximity;
  }
  .kv2-trustbar li {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  /* Free-shipping banner: compact card, text clamps to two lines. */
  .kv2-fs { padding: 16px 0; }
  .kv2-fs-inner { gap: 10px; }
  .kv2-fs-eyebrow { font-size: 0.7rem; }
  .kv2-fs h2 { font-size: 1.15rem; line-height: 1.3; margin: 4px 0; }
  .kv2-fs-body { font-size: 0.9rem; line-height: 1.5; margin: 4px 0; }
  .kv2-fs-note { font-size: 0.8rem; margin: 4px 0 0; }
  .kv2-fs-cta { margin-top: 6px; }
  .kv2-fs-cta .kv2-btn { min-height: 44px; }

  /* Categories: always two cards on phones. */
  .kv2-cat-grid, .kv2-cat-grid--two { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kv2-cat-card { border-radius: 14px; overflow: hidden; }
  .kv2-cat-body { padding: 10px 12px 14px; }
  .kv2-cat-body h3 { font-size: 1rem; margin: 0 0 4px; }
  .kv2-cat-meta { font-size: 0.82rem; }
  .kv2-cat-thumb img { aspect-ratio: 1 / 1; object-fit: cover; }

  /* Why-us: 2x2 grid instead of a tall single column. */
  .kv2-why-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kv2-why-card { padding: 16px 14px; border-radius: 14px; }
  .kv2-why-icon { width: 42px; height: 42px; }
  .kv2-why-icon svg { width: 22px; height: 22px; }
  .kv2-why-card h3 { font-size: 0.95rem; line-height: 1.3; margin: 8px 0 4px; }
  .kv2-why-card p { font-size: 0.8rem; line-height: 1.45; margin: 0; }

  /* Policy strip: compact chips that wrap into at most two rows. */
  .kv2-policy { padding: 14px 0; }
  .kv2-policy ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .kv2-policy li {
    flex: 1 1 45%;
    min-width: 150px;
    font-size: 0.82rem;
    line-height: 1.4;
    padding: 2px 0;
  }
  .kv2-policy small { font-size: 0.75rem; }

  /* Best-seller product cards: 2 columns, single primary CTA each.
     The old "Quote" secondary button is hidden on phones (its job moves
     to the product page / WhatsApp entry points) so no buttons stack. */
  .kv2-prod-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kv2-prod-card { border-radius: 14px; overflow: hidden; }
  .kv2-prod-thumb img { aspect-ratio: 1 / 1; object-fit: cover; }
  .kv2-moq-tag { font-size: 0.68rem; padding: 3px 7px; border-radius: 999px; }
  .kv2-prod-body { padding: 10px 12px 14px; }
  .kv2-prod-body h3, .kv2-prod-title {
    font-size: 0.92rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 6px;
  }
  .kv2-prod-price { margin: 0 0 8px; }
  /* Same price story as the Shop cards: retail on top, wholesale line under
     it, MOQ demoted to the smallest grey text (display only). */
  .kv2-prod-price .kv2-price,
  .kv2-prod-price .kv2-moq-text { display: none; }
  .kv2-prod-price .kzyao-m-price { display: block; flex: 1 1 100%; }
  .kv2-prod-price .kzyao-m-price .kzyao-tier-loop-retail { font-size: 1.12rem; font-weight: 800; }
  .kv2-prod-price .kzyao-m-price .kzyao-tier-wholesale-from { font-size: 0.74rem; }
  .kv2-prod-price .kzyao-m-moq { display: block; flex: 1 1 100%; font-size: 0.68rem; font-weight: 500; color: #94a3b8; margin-top: 2px; }
  .kv2-prod-actions { padding-top: 0; }
  .kv2-prod-actions .kv2-btn { min-height: 46px; font-size: 0.9rem; }
  .kv2-prod-actions .kv2-btn-outline { display: none; }

  /* Real delivery records: single swipeable strip. */
  .kv2-delivery-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    margin: 0 -16px;
    padding: 0 16px 6px;
    scroll-snap-type: x proximity;
  }
  .kv2-delivery-grid .kv2-dl-card {
    flex: 0 0 172px;
    scroll-snap-align: start;
    border-radius: 14px;
    padding: 14px;
  }
  .kv2-delivery-grid .kv2-dl-card h3 { font-size: 0.95rem; }
  .kv2-delivery-grid .kv2-dl-card p { font-size: 0.82rem; }
  .kv2-dl-note, .kv2-dl-policy { font-size: 0.78rem; line-height: 1.45; }

  /* Delivery photo cards: horizontal swipe. */
  .kv2-tcards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin: 0 -16px;
    padding: 2px 16px 8px;
    scroll-snap-type: x mandatory;
  }
  .kv2-tcards .kv2-tcard {
    flex: 0 0 78%;
    scroll-snap-align: center;
    border-radius: 16px;
  }
  .kv2-tcard blockquote p {
    font-size: 0.92rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .kv2-tcard blockquote::before, .kv2-tcard blockquote::after { display: none; }
  .kv2-tcard-cite, .kv2-tcard-name, .kv2-tcard-where { font-size: 0.85rem; }
  /* OEM: horizontal swipe cards. */
  .kv2-oem { padding: 22px 0; }
  .kv2-oem-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin: 0 -16px;
    padding: 0 16px 6px;
    scroll-snap-type: x mandatory;
  }
  .kv2-oem-card { flex: 0 0 80%; scroll-snap-align: center; border-radius: 16px; padding: 18px 16px; }
  .kv2-oem-card h3 { font-size: 1.02rem; }
  .kv2-oem-card p { font-size: 0.88rem; line-height: 1.5; }
  .kv2-oem-note { margin-top: 14px; }
  .kv2-oem-note .kv2-btn { min-height: 48px; }

  /* Order steps: 2x2 grid. */
  .kv2-steps { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .kv2-step { padding-top: 2rem; }
  .kv2-step::before { font-size: 0.95rem; width: 26px; height: 26px; line-height: 26px; }
  .kv2-step h3 { font-size: 1rem; margin: 0 0 4px; }
  .kv2-step p { font-size: 0.85rem; line-height: 1.5; margin: 0; }

  /* Buy with confidence: compact 2-col grid. */
  .kv2-bwc { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kv2-bwc-card { padding: 14px 12px; border-radius: 14px; }
  .kv2-bwc-ico { font-size: 1.3rem; }
  .kv2-bwc-card h3 { font-size: 0.95rem; margin: 6px 0 2px; }
  .kv2-bwc-card p { font-size: 0.8rem; line-height: 1.45; margin: 0; }

  /* Home FAQ: big rows, JS closes all but the first by default. */
  .kv2-faq details { border-radius: 12px; }
  .kv2-faq summary {
    min-height: 50px;
    padding: 12px 44px 12px 14px;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
  }
  .kv2-faq details p { font-size: 0.9rem; line-height: 1.55; padding: 0 14px 14px; }
  .kv2-faq-more { min-height: 44px; }

  /* Bottom CTA block. */
  .kv2-final .kv2-hero-ctas .kv2-btn { min-height: 48px; }

  /* ---- Mobile fold rows: narrative sections collapse to their heading.
     Default state is folded (content stays in the SSR DOM; tapping the
     heading expands it). Applied to phones only. ---- */
  section.kv2-fs:not(.kzyao-m-open) > .kv2-inner > .kv2-fs-copy > :not(.kv2-fs-eyebrow):not(h2),
  section.kv2-fs:not(.kzyao-m-open) > .kv2-inner > .kv2-fs-cta,
  section.kv2-sec.kv2-why:not(.kzyao-m-open) > .kv2-inner > :not(.kv2-sec-head),
  section.kv2-sec.kv2-oem:not(.kzyao-m-open) > .kv2-inner > :not(.kv2-sec-head),
  section.kv2-sec.kv2-bwc-sec:not(.kzyao-m-open) > .kv2-inner > :not(.kv2-sec-head),
  section.kv2-sec:has(> .kv2-inner > .kv2-steps):not(.kzyao-m-open) > .kv2-inner > :not(.kv2-sec-head) {
    display: none;
  }
  section.kv2-fs:not(.kzyao-m-open),
  section.kv2-sec.kv2-why:not(.kzyao-m-open),
  section.kv2-sec.kv2-oem:not(.kzyao-m-open),
  section.kv2-sec.kv2-bwc-sec:not(.kzyao-m-open),
  section.kv2-sec:has(> .kv2-inner > .kv2-steps):not(.kzyao-m-open) {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  section.kv2-fs h2::after,
  section.kv2-sec.kv2-why .kv2-sec-head h2::after,
  section.kv2-sec.kv2-oem .kv2-sec-head h2::after,
  section.kv2-sec.kv2-bwc-sec .kv2-sec-head h2::after,
  section.kv2-sec:has(> .kv2-inner > .kv2-steps) .kv2-sec-head h2::after {
    content: "+";
    display: inline-block;
    margin-left: 8px;
    font-size: 1.1em;
    font-weight: 700;
    color: #2563eb;
    vertical-align: 1px;
    text-decoration: none;
  }
  section.kv2-fs.kzyao-m-open h2::after,
  section.kv2-sec.kv2-why.kzyao-m-open .kv2-sec-head h2::after,
  section.kv2-sec.kv2-oem.kzyao-m-open .kv2-sec-head h2::after,
  section.kv2-sec.kv2-bwc-sec.kzyao-m-open .kv2-sec-head h2::after,
  section.kv2-sec:has(> .kv2-inner > .kv2-steps).kzyao-m-open .kv2-sec-head h2::after {
    content: "\2013";
  }
  section.kv2-fs .kv2-fs-copy,
  section.kv2-fs .kv2-fs-copy h2,
  section.kv2-sec.kv2-why .kv2-sec-head,
  section.kv2-sec.kv2-oem .kv2-sec-head,
  section.kv2-sec.kv2-bwc-sec .kv2-sec-head,
  section.kv2-sec:has(> .kv2-inner > .kv2-steps) .kv2-sec-head {
    cursor: pointer;
  }
  section.kv2-fs .kv2-fs-copy h2,
  section.kv2-sec.kv2-why .kv2-sec-head,
  section.kv2-sec.kv2-oem .kv2-sec-head,
  section.kv2-sec.kv2-bwc-sec .kv2-sec-head,
  section.kv2-sec:has(> .kv2-inner > .kv2-steps) .kv2-sec-head {
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.15);
  }
  section.kv2-sec.kv2-oem:not(.kzyao-m-open) .kv2-sec-head p { display: none; }
  section.kv2-sec.kv2-oem .kv2-sec-head p { font-size: 0.85rem; }
  section.kv2-sec.kv2-oem.kzyao-m-open { padding-top: 22px; }
  section.kv2-fs:not(.kzyao-m-open) .kv2-fs-eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    padding: 3px 10px;
    margin-bottom: 6px;
  }
  section.kv2-fs:not(.kzyao-m-open) .kv2-fs-copy h2 {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
  }
  /* Tighter home FAQ rows (already accordion; shrink closed-row chrome). */
  .kv2-faq details { padding: 0; margin-bottom: 10px; }
  .kv2-faq summary { min-height: 46px; padding: 11px 42px 11px 12px; font-size: 0.92rem; line-height: 1.35; }
  .kv2-faq details p { margin: 0; padding: 0 12px 13px; font-size: 0.88rem; line-height: 1.5; }
  .kv2-faq-more { min-height: 44px; margin-top: 2px; }

  /* Delivery records + testimonials: keep visible as swipe strips but slim. */
  section.kv2-sec:has(> .kv2-inner > .kv2-delivery-grid) { padding-top: 14px; padding-bottom: 16px; }
  section.kv2-sec:has(> .kv2-inner > .kv2-delivery-grid) .kv2-sec-head { margin-bottom: 8px; }
  section.kv2-sec:has(> .kv2-inner > .kv2-delivery-grid) .kv2-sec-head p { margin-top: 2px; font-size: 0.85rem; }
  .kv2-delivery-grid .kv2-dl-card { padding: 10px 12px; }
  .kv2-delivery-grid .kv2-dl-flag { font-size: 24px; line-height: 1; }
  .kv2-delivery-grid .kv2-dl-card h3 { margin: 4px 0 0; }
  .kv2-delivery-grid .kv2-dl-card p { margin: 2px 0 0; }
  .kv2-dl-note {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 4px 0 0;
  }
  .kv2-dl-policy {
    margin: 4px 0 0;
    overflow-wrap: break-word;
  }
  section.kv2-sec.kv2-tsec { padding-top: 16px; padding-bottom: 16px; }
  section.kv2-sec.kv2-tsec .kv2-sec-head { margin-bottom: 8px; }
  section.kv2-sec.kv2-tsec .kv2-sec-head p { margin-top: 2px; font-size: 0.85rem; }
  .kv2-tcard { padding: 12px 14px; }
  .kv2-tcard blockquote p { -webkit-line-clamp: 2; font-size: 0.9rem; }
  .kv2-tcard .kv2-tstars { font-size: 0.95rem; }
  .kv2-tseeall { margin-top: 8px; }
  .kv2-tseeall .kv2-btn { min-height: 44px; }
  section.kv2-sec.kv2-tsec .kv2-chip { font-size: 0.72rem; }
  .kv2-tcard-cite .kv2-tcard-name, .kv2-tcard-cite .kv2-tcard-where { display: inline; }
  .kv2-tcard-cite .kv2-tcard-prod { display: block; }

/* ================================================================
   6. Product page (mobile).
   ================================================================ */
  .single-product .site-header .site-search { display: none; }

  /* Gallery: keep WooCommerce FlexSlider's native layout on mobile.
     Do NOT add display:flex / flex-basis overrides to the wrapper: FlexSlider
     sizes slides with inline widths (wrapper 800%, slide ~345px), and
     flex-basis:100% inflates every slide to ~2758px (giant crops / blank main image). */
  .single-product .flex-viewport { overflow: hidden; }
  .single-product .woocommerce-product-gallery__wrapper img { width: 100%; }

  /* Thumbnails: small squares (beat Storefront's columns-N sizing) */
  .single-product .flex-control-thumbs { margin: 8px 0 0; padding: 0; }
  .single-product div.product .woocommerce-product-gallery[class*="columns-"] .flex-control-thumbs li { width: 56px !important; margin: 0 6px 0 0 !important; }
  .single-product div.product .woocommerce-product-gallery[class*="columns-"] .flex-control-thumbs img { width: 56px !important; height: 56px !important; max-width: none !important; object-fit: cover; border-radius: 8px; }

  /* Title + price block hierarchy. */
  .single-product .summary.entry-summary h1.product_title {
    font-size: 1.3rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 4px 0 10px;
  }
  .kzyao-tier-price-wrap { margin: 0 0 8px; }
  p.kzyao-tier-retail { font-size: 1.45rem; line-height: 1.25; }
  p.kzyao-tier-retail strong { color: #0f172a; }
  p.kzyao-tier-wholesale { font-size: 0.95rem; }
  p.kzyao-sold { font-size: 0.82rem; margin: 4px 0 8px; }
  p.kzyao-sold strong { font-size: 0.95rem; }
  p.kzyao-tier-note { font-size: 0.82rem; line-height: 1.5; margin: 0 0 12px; }
  .woocommerce-product-details__short-description p { font-size: 0.95rem; line-height: 1.55; }

  /* Variation picks: full-width selects with large touch areas. */
  .single-product form.variations_form table.variations { margin: 0 0 8px; }
  .single-product form.variations_form table.variations tbody,
  .single-product form.variations_form table.variations tr,
  .single-product form.variations_form table.variations td,
  .single-product form.variations_form table.variations th { display: block; width: 100%; }
  .single-product form.variations_form table.variations tr { margin-bottom: 12px; }
  .single-product form.variations_form th.label { padding: 0 0 4px; }
  .single-product form.variations_form th.label label { font-size: 0.95rem; font-weight: 700; color: #0f172a; }
  .single-product form.variations_form td.value { padding: 0; }
  .single-product form.variations_form select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.2;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5L7 7.5L13 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
  }
  .single-product form.variations_form .reset_variations { display: inline-block; margin: 6px 0 0; font-size: 0.85rem; }

  /* Quantity + Add to cart live in the sticky bar on phones; hide the
     in-flow copy so there is exactly one visible CTA. The real form
     fields stay in the DOM and the sticky bar drives the same submit. */
  .single-product .summary form.cart .quantity,
  .single-product .summary form.cart .single_add_to_cart_button { display: none; }
  .single-product .summary form.cart .woocommerce-variation-add-to-cart { min-height: 0; }
  .single-product .summary form.cart { padding-bottom: 0; }

  /* Tabs become stacked accordion rows (same WC switching logic). */
  .single-product .woocommerce-tabs { margin-top: 18px; }
  .single-product .woocommerce-tabs ul.tabs {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
  }
  .single-product .woocommerce-tabs ul.tabs li {
    display: block;
    float: none;
    margin: 0;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
    background: #ffffff;
  }
  .single-product .woocommerce-tabs ul.tabs li:last-child { border-bottom: 0; }
  .single-product .woocommerce-tabs ul.tabs li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 10px 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    border: 0;
  }
  .single-product .woocommerce-tabs ul.tabs li a::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 400;
    color: #2563eb;
    line-height: 1;
  }
  .single-product .woocommerce-tabs ul.tabs li.active a { color: #2563eb; }
  .single-product .woocommerce-tabs ul.tabs li.active a::after { content: "\2013"; }
  .single-product .woocommerce-Tabs-panel {
    border: 1px solid #e2e8f0;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    padding: 14px;
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .single-product .woocommerce-Tabs-panel h2 { font-size: 1.1rem; }
  /* Description read-more toggle (expanded by the JS class below). */
  .single-product #tab-description p {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .single-product #tab-description.kzyao-m-desc-open p { -webkit-line-clamp: unset; overflow: visible; display: block; }
  .kzyao-m-readmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 18px;
    margin: 10px 0 0;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
  }

  /* Related products: horizontal swipe. */
  .single-product .related { margin-top: 22px; }
  .single-product .related ul.products {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin: 0 -16px;
    padding: 2px 16px 8px;
    scroll-snap-type: x mandatory;
  }
  .single-product .related ul.products li.product {
    flex: 0 0 64%;
    max-width: 64%;
    scroll-snap-align: center;
    margin: 0;
    float: none;
  }

  /* Sticky purchase bar (single product, phones only). */
  .single-product .storefront-handheld-footer-bar { display: none; }
  .single-product .tw-wa-float { display: none; }
  /* The rendered bar is 61px tall (8 + 44 + 8 + 1px border). Clear it on the
     last flow element (the footer) so the page tail is never covered, and keep
     the in-content clearance in sync. */
  .single-product .site-footer { padding-bottom: calc(77px + env(safe-area-inset-bottom, 0px)); }
  .single-product .site-footer .col-full { padding-bottom: calc(1em + env(safe-area-inset-bottom, 0px)); }
  .single-product #content { padding-bottom: calc(77px + env(safe-area-inset-bottom, 0px)); }

  .kzyao-m-pbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999000;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 61px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.14);
    box-sizing: border-box;
  }
  .kzyao-m-pbar-info { flex: 1 1 auto; min-width: 0; }
  .kzyao-m-pbar-label { display: block; font-size: 0.56rem; line-height: 1.3; color: #64748b; text-transform: uppercase; letter-spacing: 0; white-space: nowrap; }
  .kzyao-m-pbar-price { display: block; font-size: 0.9rem; line-height: 1.25; font-weight: 800; color: #0f172a; white-space: nowrap; }
  .kzyao-m-pbar-qty { flex: 0 0 auto; display: flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 10px; overflow: hidden; }
  .kzyao-m-pbar-qty button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    background: #f8fafc;
    border: 0;
    border-radius: 0;
    color: #0f172a;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
  }
  .kzyao-m-pbar-qty button:active { background: #e2e8f0; }
  .kzyao-m-pbar-qty .kzyao-m-pbar-qty-val {
    width: 32px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
  }
  .kzyao-m-pbar-add {
    flex: 1 1 auto;
    min-width: 120px;
    min-height: 44px;
    padding: 6px 10px;
    white-space: nowrap;
    background: #0f172a;
    border: 1px solid #0f172a;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
  }
  .kzyao-m-pbar-add:disabled { background: #94a3b8; border-color: #94a3b8; }
  .kzyao-m-pbar-wa {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    border-radius: 10px;
  }
  .kzyao-m-pbar-wa svg { display: block; }

/* ================================================================
   7. Shop / category / loop cards.
   ================================================================ */
  .woocommerce ul.products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 -16px;
    padding: 0 16px;
  }
  /* Storefront's clearfix ::before/::after on ul.products are laid out as
     grid items and push the first card into column 2 - remove them. */
  .woocommerce ul.products::before,
  .woocommerce ul.products::after {
    display: none !important;
    content: none !important;
  }
  .woocommerce ul.products li.product {
    width: 100% !important;
    max-width: none;
    margin: 0;
    float: none;
    clear: none;
  }
  .woocommerce ul.products li.product a img { border-radius: 12px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.92rem;
    line-height: 1.35;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .woocommerce ul.products li.product .price { margin: 4px 0 8px; }
  .kzyao-tier-loop-retail { font-size: 1.1rem; font-weight: 800; }
  .kzyao-tier-wholesale-from { font-size: 0.72rem; }
  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product .added_to_cart {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    font-size: 0.85rem;
    box-sizing: border-box;
    border-radius: 10px;
  }
  .woocommerce ul.products li.product .added_to_cart { margin-top: 6px; }
  .woocommerce .woocommerce-result-count { font-size: 0.9rem; margin: 0 0 12px; }
  .woocommerce .woocommerce-ordering select { min-height: 46px; font-size: 1rem; border-radius: 10px; }
  /* Storefront prints the result count + ordering pair twice (above and below
     the grid). Keep the top one; the bottom copy stays in the DOM so the
     pagination that shares that wrapper is untouched. */
  .woocommerce ul.products ~ .storefront-sorting .woocommerce-ordering,
  .woocommerce ul.products ~ .storefront-sorting .woocommerce-result-count {
    display: none !important;
  }
  .woocommerce nav.woocommerce-pagination ul li a,
  .woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

/* ================================================================
   8. FAQ page accordion (structure added by JS; big touch rows).
   ================================================================ */
  .page-id-15 .entry-content > p:first-child { display: none; }
  .page-id-15 .entry-content h2 { font-size: 1.35rem; }
  details.kzyao-m-faq-item {
    margin: 0 0 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
  }
  details.kzyao-m-faq-item[open] { border-color: #bfdbfe; }
  details.kzyao-m-faq-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 10px 14px;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
  }
  details.kzyao-m-faq-item > summary::-webkit-details-marker { display: none; }
  details.kzyao-m-faq-item > summary::after {
    content: "+";
    flex: 0 0 auto;
    margin-left: 10px;
    font-size: 1.35rem;
    color: #2563eb;
    line-height: 1;
  }
  details.kzyao-m-faq-item[open] > summary::after { content: "\2013"; }
  details.kzyao-m-faq-item > div { padding: 0 14px 14px; }
  details.kzyao-m-faq-item > div p { font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* ================================================================
   9. Footer + floating elements + touch safety.
   ================================================================ */
  .kv2-footer { padding: 22px 0 30px; }
  .kv2-footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .kv2-footer-grid .kv2-footer-brand { grid-column: 1 / -1; }
  .kv2-footer-logo { font-size: 1.4rem; }
  .kv2-footer-grid h4 { font-size: 0.85rem; margin: 0 0 8px; }
  .kv2-footer-grid a { font-size: 0.85rem; line-height: 1.4; margin: 0 0 7px; }
  .kv2-footer-contact a { font-size: 0.85rem; }
  .site-info { font-size: 0.8rem; }
  .kv2-footer-legal { font-size: 0.78rem; }
  .kv2-footer { padding: 14px 0 22px; }
  .kv2-footer-grid { gap: 16px 12px; }
  .kv2-footer-grid h4 { font-size: 0.8rem; margin: 0 0 6px; }
  .kv2-footer-grid a { font-size: 0.82rem; line-height: 1.3; margin: 0 0 4px; }
  .kv2-footer-logo { font-size: 1.3rem; }
  .kv2-footer-brand p { font-size: 0.8rem; line-height: 1.5; margin: 6px 0 8px; max-width: 300px; }
  .kv2-footer-contact a { font-size: 0.82rem; line-height: 1.4; }
  .kv2-footer-legal { font-size: 0.74rem; }
  .kv2-final { padding-top: 16px; padding-bottom: 18px; }
  .kv2-final p { margin: 0.5rem auto 1.1rem; }
  body:not(.single-product) .tw-wa-float {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    right: 12px;
    width: 54px;
    height: 54px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
  body:not(.single-product) .storefront-handheld-footer-bar { z-index: 999940; }

  .kv2-prod-actions .kv2-btn,
  .kv2-hero-ctas .kv2-btn,
  .kv2-cat-card .kv2-btn,
  .kv2-btn { text-align: center; }

  /* The floating WhatsApp ball is pinned to the bottom-right corner of the
     phone viewport; keep the hero / closing CTA buttons out of its column so
     the two rects never intersect (P1-6). */
  .kv2-hero-ctas { margin-right: 72px; }

  :focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
}



