/* Phone experience. Loaded last. Everything phone-only sits under the 900px query. */

/* ---------- All screens: root causes ---------- */
html { overflow-x: clip; }
/* Hidden WooCommerce labels are absolutely positioned; inside a scrolling row they escaped and stretched the page. */
.wgl-zone__row, .wgl-zone__card, .wgl-scroll-row, .wgl-scroll-row .wgl-product-grid, .wgl-scroll-row ul.products,
.shop-cat-pills, .sprod__thumbs, .mkt-compare-wrap, .financial-calendar, .trust-bar__inner { position: relative; }

span[id^="woocommerce_loop_add_to_cart_link_describedby"] { position: fixed !important; top: 0; left: 0; }
.home-app-rail { position: relative; }
/* Off-screen panels must not cast a shadow onto the page */
.mobile-menu:not(.is-open), .wgl-cart-drawer:not(.is-open) .wgl-cart-drawer__panel { box-shadow: none !important; }

.btn--gold, .single_add_to_cart_button, .wgl-bulk-view { background-color: #d42f3c; border-color: #d42f3c; }
.wgl-section-label { color: #d42f3c; }
.mkt-hero__badge-lbl, .mkt-hero__badge small, .mkt-hero small { color: #fff !important; }
.sprod__stock--in { color: #166534 !important; }
.wgl-zone__cat { color: #1a7a54; }

@view-transition { navigation: auto; }

.wgl-tabs, .wgl-buybar, .wgl-search-sheet, .wgl-back, .wgl-load-more, .wgl-pillars { display: none; }
.wgl-join-strip { display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 10px 0 0; padding: 8px 14px; border-radius: 14px; background: #191919; color: #fff !important; text-decoration: none; font-size: 14px; flex-wrap: wrap; }
.wgl-join-strip span { opacity: .85; flex: 1 1 auto; }
.wgl-deals-strip { background: #d42f3c; }
.wgl-join-strip b { font-size: 18px; }

@media (max-width: 900px) {
  :root {
    --wgl-tabs-h: 58px;
    --wgl-safe-b: env(safe-area-inset-bottom, 0px);
    --header-h: 56px;
  }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 68px; }
  body { -webkit-tap-highlight-color: transparent; padding-bottom: calc(var(--wgl-tabs-h) + var(--wgl-safe-b)); }
  a, button, input, select, textarea, label, summary { touch-action: manipulation; }
  body.wgl-sheet-open, body.wgl-cart-open { overflow: hidden; }

  /* Fields at 16px, or iOS zooms the page when one is tapped */
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px !important; }

  /* The promo bar becomes the header's Sell link in the menu: no strip on phones */
  .wgl-community-bar { display: none !important; }

  /* Press feedback */
  .btn, .button, button, .wgl-product-card, .wgl-zone__card { transition: transform .12s ease, opacity .12s ease; }
  .btn:active, .button:active, .wgl-tab:active, .wgl-buybar__cta:active, .wgl-load-more:active { transform: scale(.97); opacity: .88; }

  /* ---------- Header ---------- */
  .site-header { top: 0; padding-top: env(safe-area-inset-top, 0px); }
  .nav__inner { height: 56px !important; min-height: 56px; gap: .25rem !important; padding-inline: 8px !important; }
  .site-logo { flex: 1 1 auto; min-width: 0; gap: .5rem; padding-left: 8px; }
  .wgl-has-back .site-logo { padding-left: 0; }
  .site-logo__group { font-size: 9px; }
  .nav__sell-btn, .nav__account { display: none !important; }
  .nav__cart-btn { display: none !important; }
  .wgl-product-page .nav__cart-btn { display: flex !important; width: 44px; height: 44px; align-items: center; justify-content: center; }
  .nav__hamburger { flex: 0 0 44px; }
  .wgl-back { display: flex; flex: 0 0 44px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; padding: 0; color: #191919; cursor: pointer; }

  /* ---------- Tab bar ---------- */
  .wgl-tabs {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 860;
    height: calc(var(--wgl-tabs-h) + var(--wgl-safe-b)); padding-bottom: var(--wgl-safe-b);
    background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid #e8e8e8;
  }
  .wgl-tab {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-width: 0; height: var(--wgl-tabs-h); padding: 0; background: none; border: 0; cursor: pointer;
    color: #5f6368; font: 600 11px/1.1 var(--font-inter, Inter, system-ui, sans-serif); text-decoration: none;
  }
  .wgl-tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .wgl-tab.is-active, .wgl-tab.is-open { color: #d42f3c; }
  .wgl-tab.is-active svg, .wgl-tab.is-open svg { stroke-width: 2.4; }
  .wgl-tab__count {
    position: absolute; top: 5px; left: calc(50% + 5px); min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
    border-radius: 9px; background: #d42f3c; color: #fff; font: 700 11px/18px var(--font-inter, Inter, system-ui, sans-serif); text-align: center;
  }
  .wgl-tab__count[hidden] { display: none; }
  .wgl-product-page .wgl-tabs { display: none; }
  /* One tab bar on every page: this replaces the home page's own */
  .home-app-bottomnav { display: none !important; }
  .mobile-menu { padding-bottom: calc(var(--wgl-safe-b) + 16px); }
  .mobile-menu__close { min-width: 44px !important; min-height: 44px !important; display: flex !important; align-items: center; justify-content: center; font-size: 28px !important; }
  .mobile-menu a { min-height: 44px; }

  /* Floating chat: clear of the bars, smaller, and out of the way while scrolling or in a panel */
  .wgl-whatsapp, body > button[style*="2147483000"] {
    bottom: calc(var(--wgl-tabs-h) + var(--wgl-safe-b) + 12px) !important;
    width: 46px !important; height: 46px !important; padding: 0 !important; justify-content: center;
    transition: transform .2s ease, opacity .2s ease;
  }
  .wgl-whatsapp { right: 12px !important; }
  body > button[style*="2147483000"] { left: 12px !important; }
  .wgl-product-page .wgl-whatsapp, .wgl-product-page > button[style*="2147483000"] { bottom: calc(68px + var(--wgl-safe-b) + 12px) !important; }
  .wgl-scrolling-down .wgl-whatsapp, .wgl-scrolling-down > button[style*="2147483000"],
  .wgl-sheet-open .wgl-whatsapp, .wgl-sheet-open > button[style*="2147483000"],
  .wgl-cart-open .wgl-whatsapp, .wgl-cart-open > button[style*="2147483000"],
  body:has(.mobile-menu.is-open) .wgl-whatsapp, body:has(.mobile-menu.is-open) > button[style*="2147483000"],
  body:has(.shop-sidebar.is-open) .wgl-whatsapp, body:has(.shop-sidebar.is-open) > button[style*="2147483000"] {
    opacity: 0; pointer-events: none; transform: translateY(16px);
  }

  .wgl-tab--sell svg { width: 34px; height: 34px; padding: 6px; box-sizing: border-box; margin-top: -8px; border-radius: 50%; background: #d42f3c; color: #fff; stroke: #fff; stroke-width: 2.6; box-shadow: 0 3px 10px rgba(212,47,60,.35); }

  /* ---------- Home: the four things WGL does, on the first screen ---------- */
  .home-app-hero { padding-top: calc(var(--header-h) + 12px) !important; padding-bottom: 16px !important; }
  .home-app-hero h1 { font-size: 1.75rem !important; line-height: 1.15 !important; margin-block: 10px 0 !important; }
  .home-app-hero__lead, .home-app-hero__actions, .home-app-hero__visual { display: none !important; }
  .home-app-search { margin-top: 12px !important; }
  .home-app-search button { font-size: 13px; }
  .wgl-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
  .wgl-pillar { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; align-items: center; min-height: 68px; padding: 10px 12px; border: 1px solid #ececec; border-radius: 16px; background: #fff; color: #191919; text-decoration: none; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
  .wgl-pillar:active { transform: scale(.97); }
  .wgl-pillar svg { grid-row: 1 / span 2; width: 40px; height: 40px; padding: 9px; box-sizing: border-box; border-radius: 12px; background: #fdeeef; fill: none; stroke: #d42f3c; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .wgl-pillar strong { font: 800 15px/1.2 var(--font-inter, Inter, system-ui, sans-serif); align-self: end; }
  .wgl-pillar span { font: 500 12px/1.25 var(--font-inter, Inter, system-ui, sans-serif); color: #5f6368; align-self: start; }
  .home-app-trust { display: none !important; }

  /* ---------- Search sheet ---------- */
  .wgl-search-sheet { position: fixed; inset: 0; z-index: 2147483100; flex-direction: column; background: #fff; padding-top: env(safe-area-inset-top, 0px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .wgl-search-sheet:not([hidden]) { display: flex; }
  .wgl-search-sheet__top { display: flex; align-items: center; gap: 4px; padding: 8px 12px 8px 4px; border-bottom: 1px solid #eee; position: sticky; top: 0; background: #fff; z-index: 2; }
  .wgl-search-sheet__close { flex: 0 0 44px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: #191919; }
  .wgl-search-sheet .wgl-search-wrap { flex: 1 1 auto; min-width: 0; position: static; }
  .wgl-search-sheet .wgl-search-bar { display: flex; align-items: center; height: 44px; padding: 0 2px 0 14px; border: 1.5px solid #d9d9d9; border-radius: 22px; background: #f7f7f7; box-shadow: none; }
  .wgl-search-sheet .wgl-search-input { flex: 1 1 auto; min-width: 0; height: 40px; border: 0; background: none; outline: 0; padding: 0; box-shadow: none; }
  .wgl-search-sheet .wgl-search-submit { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #d42f3c; color: #fff; border: 0; }
  .wgl-search-sheet .wgl-search-dropdown { position: fixed; top: calc(61px + env(safe-area-inset-top, 0px)); left: 0; right: 0; bottom: 0; width: auto; max-height: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; overflow-y: auto; background: #fff; z-index: 3; }
  .wgl-search-sheet__quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }
  .wgl-search-sheet__quick a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; background: #f3f3f3; color: #191919; font: 600 14px var(--font-inter, Inter, system-ui, sans-serif); text-decoration: none; }

  /* ---------- Product page ---------- */
  .wgl-buybar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 860;
    padding: 10px 12px calc(10px + var(--wgl-safe-b)); background: #fff; border-top: 1px solid #e8e8e8; box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  }
  .wgl-buybar__price { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .wgl-buybar__price strong { font: 800 17px/1.2 var(--font-inter, Inter, system-ui, sans-serif); color: #191919; white-space: nowrap; }
  .wgl-buybar__price span { font: 500 12px/1.3 var(--font-inter, Inter, system-ui, sans-serif); color: #5f6368; white-space: nowrap; }
  .wgl-buybar__cta { flex: 0 1 56%; min-height: 48px; border: 0; border-radius: 24px; background: #d42f3c; color: #fff; font: 700 15px var(--font-inter, Inter, system-ui, sans-serif); cursor: pointer; }
  .wgl-buybar__cta:disabled { opacity: .6; }
  .wgl-product-page { padding-bottom: calc(68px + var(--wgl-safe-b)); }
  .single_add_to_cart_button.is-busy { opacity: .6; pointer-events: none; }

  /* The back button and the Search tab replace these two strips */
  .single-product .wgl-breadcrumb, .single-product .sprod-search { display: none !important; }
  .sprod__title { font-size: 1.25rem !important; line-height: 1.3; }

  .quantity.wgl-stepper { display: inline-flex !important; align-items: stretch; width: auto !important; max-width: none !important; flex: 0 0 auto; border: 1.5px solid #d9d9d9; border-radius: 24px; overflow: hidden; height: 48px; padding: 0 !important; background: #fff; }
  .wgl-stepper__btn { flex: 0 0 48px; width: 48px !important; min-width: 48px !important; height: 100% !important; min-height: 44px; padding: 0 !important; border: 0; background: #f7f7f7; color: #191919; font: 600 22px/1 var(--font-inter, Inter, system-ui, sans-serif) !important; cursor: pointer; }
  .wgl-stepper input.qty { width: 64px !important; height: 100% !important; border: 0 !important; border-radius: 0 !important; text-align: center; background: #fff; -moz-appearance: textfield; appearance: textfield; margin: 0 !important; }
  .wgl-stepper input.qty::-webkit-outer-spin-button, .wgl-stepper input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

  /* One row of add-ons on a product page, not four */
  .sprod .wgl-zoning .wgl-zone ~ .wgl-zone { display: none; }

  /* ---------- Listings: products first ---------- */
  main:has(> .shop-layout) { display: flex; flex-direction: column; }
  main:has(> .shop-layout) > * { order: 6; min-width: 0; }
  main:has(> .shop-layout) > .shop-banner { order: 1; }
  main:has(> .shop-layout) > .shop-cat-pills-wrap { order: 2; }
  main:has(> .shop-layout) > .shop-layout { order: 3; }
  main:has(> .shop-layout) > .shop-cat-intro { order: 4; }
  .shop-layout { padding-top: 8px !important; }
  .shop-banner { padding-block: calc(var(--header-h) + 8px) 0 !important; border-bottom: 0 !important; }
  .shop-banner__inner { min-height: 0 !important; padding: 0 !important; gap: 0 !important; }
  .shop-layout .wgl-product-card__badge { background: rgba(25,25,25,.78) !important; color: #fff !important; border-radius: 10px; padding: 2px 8px !important; font-weight: 700; line-height: 16px; }
  .shop-toolbar { display: flex !important; flex-direction: row !important; flex-wrap: nowrap; align-items: center; gap: 8px; padding: 8px !important; margin-bottom: 12px !important; }
  .shop-toolbar__left, .shop-toolbar__right { display: flex !important; flex: 1 1 0; min-width: 0; margin: 0 !important; gap: 8px; }
  .shop-toolbar__count, .shop-view-toggle { display: none !important; }
  .shop-filter-toggle { flex: 1 1 auto; justify-content: center; min-height: 44px; }
  .shop-toolbar .woocommerce-ordering { flex: 1 1 auto; min-width: 0; margin: 0 !important; }
  .shop-toolbar select.orderby { width: 100%; min-height: 44px; }
  .shop-layout .wgl-product-grid:not(.wgl-product-grid--list) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .shop-layout .wgl-product-card { min-width: 0; }
  .wgl-product-card__cat { display: none !important; }
  .shop-layout .wgl-product-card__title { font-size: 14px !important; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .shop-layout .wgl-product-card__body { padding: 10px !important; }
  .shop-layout .wgl-product-card__price { font-size: 16px !important; }
  .shop-layout .wgl-product-card__pricing { flex-wrap: wrap; height: auto !important; }
  .shop-layout a.wgl-bulk-view { position: static !important; flex: 0 0 100% !important; width: 100% !important; max-width: none !important; height: auto !important; min-height: 44px; padding: 0 8px !important; margin: 6px 0 0 !important; display: flex !important; align-items: center; justify-content: center; border-radius: 22px !important; background: #d42f3c !important; color: #fff !important; font-size: 13px !important; font-weight: 700; line-height: 1.2; text-indent: 0 !important; overflow: visible; white-space: nowrap; }
  .shop-layout a.wgl-bulk-view::before, .shop-layout a.wgl-bulk-view::after { content: none !important; }
  .shop-layout .wgl-origin-badge { max-width: 100%; letter-spacing: 0 !important; text-transform: none !important; white-space: nowrap; }
  .shop-sidebar__close { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 28px; }

  /* Cart + checkout: nothing floating over the form, no empty bands */
  .woocommerce-checkout .wgl-whatsapp, .woocommerce-checkout > button[style*="2147483000"],
  .woocommerce-cart .wgl-whatsapp, .woocommerce-cart > button[style*="2147483000"] { display: none !important; }
  .woocommerce-checkout, .woocommerce-cart { padding-bottom: var(--wgl-safe-b); }
  .woocommerce-checkout .page-hero--compact, .woocommerce-cart .page-hero--compact { padding: calc(var(--header-h) + 8px) 0 4px !important; border: 0 !important; }
  .woocommerce-checkout main .section, .woocommerce-cart main .section { padding-top: 0 !important; }
  .woocommerce-checkout .wp-block-woocommerce-checkout { padding-top: 4px !important; }
  .shop-banner__search, .shop-breadcrumb { display: none !important; }
  .shop-banner__title { font-size: 1.375rem !important; margin: 0 !important; }
  .shop-banner__desc, .shop-cat-intro__text {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; line-height: 1.45; margin: 4px 0 0;
  }
  .shop-savings-bar { display: none; }
  .shop-cat-intro { padding-block: 8px !important; }
  .shop-cat-pills-wrap { position: sticky; top: var(--header-h); z-index: 40; background: #fff; }
  .shop-cat-pills { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-block: 8px; }
  .shop-cat-pills::-webkit-scrollbar { display: none; }
  .shop-cat-pill { flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; }

  .wgl-load-more { display: block; width: calc(100% - 32px); margin: 24px 16px; min-height: 48px; border: 1.5px solid #d42f3c; border-radius: 24px; background: #fff; color: #d42f3c; font: 700 15px var(--font-inter, Inter, system-ui, sans-serif); cursor: pointer; }
  .wgl-pagination-numbers { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

  /* ---------- Finger-size targets ---------- */
  .wgl-zone__see-all, .division-card__link, .home-app-head__link, .home-link-gold, .news-card__read-more, .site-footer a[href^="mailto:"], .site-footer a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; }
  .fbt__check { width: 24px; height: 24px; }

  /* ---------- Nothing under 12px that people need to read ---------- */
  .wgl-origin-badge, .wgl-product-card__badge, .wgl-product-card__cat, .shop-cat-pill__count, .flash-card__cat,
  .home-app-service__label, .home-app-service__meta, .home-cat-chip__name, .home-app-btn, .mkt-cat-card__count, .wgl-zone__cat,
  .sprod__price-label, .sprod__saving-pill, .sprod__saving-pill *, .wgl-trust-label, .wgl-trust-note, .fbt__cat, .home-app-eyebrow, .home-app-head__link, .wgl-section-label, .wgl-connect__step, main time, main small,
  .pay-badge, .wgl-pay-icon, .wgl-foot-toggle, .site-footer a, .site-footer label, .site-footer span:not(.site-logo__group) { font-size: 12px !important; }
  .wgl-zone__card-footer .button, .wgl-product-card .add_to_cart_button { min-width: 44px !important; min-height: 44px !important; display: inline-flex; align-items: center; justify-content: center; }
  .page-numbers a, .page-numbers span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .footer-links a, .footer-legal a { display: flex; align-items: center; min-height: 44px; }
  .footer-social a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .wgl-product-card__title a { display: block; }

  /* ---------- Footer folds ---------- */
  .footer-col__title { margin: 0 !important; }
  .wgl-foot-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer; }
  .wgl-foot-toggle::after { content: '+'; font-size: 20px; font-weight: 400; line-height: 1; }
  .wgl-foot-toggle[aria-expanded="true"]::after { content: '\2212'; }
  .footer-col.is-folded .footer-links { display: none; }
  .footer-main__grid { display: block !important; }
  .footer-col { border-bottom: 1px solid rgba(127,127,127,.25); padding-block: 2px !important; }
  .footer-col--brand { border-bottom: 0; padding-bottom: 16px !important; }

  /* ---------- Paint smoothness on long pages ---------- */
  .site-faq, .footer-main, .footer-payments { content-visibility: auto; contain-intrinsic-size: auto 500px; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .btn, .button, button { transition: none !important; }
}
