/* lp-ph-v1.css (8 Nov 2026, BUGS-3/4/5): phone header and phone menu. Phones and small tablets only (max-width 991.98px); desktop untouched.
   Header: row 1 = menu, logo, basket; row 2 = full-width search bar that never hides the logo (same pattern as Topps Tiles / Tile Mountain).
   Menu: full-height panel built by lp-ph-v1.js from the existing menu links, big tap rows, back button, slide in. Old markup stays as the no-JS fallback. */
:root { --lp-ph-ink: #18232c; --lp-ph-line: #ece8e1; --lp-ph-or: #e95125; --lp-ph-f: "Laporsa Manrope", "Segoe UI", system-ui, Arial, sans-serif; }
.lp-ph-search, .lp-ph-sicon, .lp-ph-menu { display: none; }

@media (max-width: 991.98px) {
  /* ---------- header grid ---------- */
  html body #header .lp-responsive-header .main-header .header-wrapper { display: grid !important; grid-template-columns: 44px minmax(0, 1fr) 44px 44px !important; grid-template-rows: 44px auto !important; grid-template-areas: "m l i c" "s s s s" !important; gap: 8px 6px !important; padding: 6px 0 10px !important; align-items: center; position: relative; min-height: 0 !important; }
  html.lp-condensed body #header .lp-responsive-header .main-header .header-wrapper { grid-template-rows: 44px !important; padding-bottom: 6px !important; }
  html body #header .lp-responsive-header .main-header .header-wrapper > .lp-mobile-menu { grid-area: m !important; grid-column: auto; grid-row: auto; }
  html body #header .lp-responsive-header .main-header .header-wrapper > .header-logo { grid-area: l !important; text-align: left !important; margin: 0 !important; min-width: 0; }
  html body #header .lp-responsive-header .main-header .header-wrapper .header-logo img { max-height: 32px !important; max-width: 150px !important; width: auto; height: auto; margin: 0 !important; display: block; }
  html body #header .lp-responsive-header .main-header .header-wrapper .header-logo a { min-height: 44px; display: inline-flex; align-items: center; }
  html body #header .lp-responsive-header .main-header .header-wrapper .shopping-cart-module { grid-area: c !important; grid-column: auto; grid-row: auto; width: 44px; height: 44px; margin: 0 !important; padding: 0 !important; position: relative; display: block !important; visibility: visible !important; }
  html body #header .lp-responsive-header .searchbar-wrapper, html body #header .lp-responsive-header .main-header .header-wrapper .searchbar-wrapper { display: none !important; }
  html body #header .lp-responsive-header .customer-signin-module, html body #header .lp-responsive-header .lp-v4-checkout, html body #header .lp-responsive-header .lp-wa--head { display: none !important; }

  /* burger: plain 44px target, no box */
  html body .lp-header .lp-mobile-menu-toggle { width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; padding: 0 !important; border: 0 !important; background: transparent !important; border-radius: 10px; display: flex !important; align-items: center; justify-content: center; color: var(--lp-ph-ink) !important; }
  html body .lp-header .lp-mobile-menu-toggle span { font-size: 28px !important; line-height: 1 !important; color: var(--lp-ph-ink) !important; }

  /* basket: icon only, 44px target, badge only when something is in it */
  html body #header .lp-responsive-header .shopping-cart-module .blockcart, html body #header .lp-responsive-header .shopping-cart-module ul, html body #header .lp-responsive-header .shopping-cart-module li { margin: 0 !important; padding: 0 !important; list-style: none; }
  html body #header .lp-responsive-header .shopping-cart-module a.cart-link { position: relative; width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; padding: 0 !important; margin: 0 !important; display: flex !important; align-items: center; justify-content: center; background: transparent !important; border: 0 !important; box-shadow: none !important; color: var(--lp-ph-ink) !important; border-radius: 10px; }
  html body #header .lp-responsive-header .shopping-cart-module .cart-total-value { display: none !important; }
  html body #header .lp-responsive-header .shopping-cart-module .cart-design { position: static; display: block; width: 28px; height: 28px; }
  html body #header .lp-responsive-header .shopping-cart-module .cart-design i { display: flex !important; width: 28px !important; height: 28px !important; align-items: center; justify-content: center; background: transparent !important; color: var(--lp-ph-ink) !important; }
  html body #header .lp-responsive-header .shopping-cart-module .cart-design svg { width: 28px !important; height: 28px !important; stroke: var(--lp-ph-ink) !important; stroke-width: 1.8 !important; }
  html body #header .lp-responsive-header .shopping-cart-module .cart-products-count { position: absolute !important; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border: 0 !important; border-radius: 9px; background: var(--lp-ph-or) !important; color: #fff !important; font: 800 11px/18px var(--lp-ph-f) !important; text-align: center; transform: none !important; }
  html body #header .lp-responsive-header .shopping-cart-module a.cart-link[aria-label$=", 0 items"] .cart-products-count { display: none !important; }

  /* search: row 2 at the top of the page */
  html body #header .lp-responsive-header .main-header .header-wrapper > .lp-ph-search { grid-area: s !important; display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0; position: relative; }
  html body #header .lp-ph-search .lp-ph-field { position: relative; flex: 1 1 auto; min-width: 0; }
  html body #header .lp-ph-search .lp-ph-q { display: block; width: 100%; box-sizing: border-box; height: 44px; margin: 0; padding: 0 48px 0 16px; border: 1.5px solid #d9d4cb; border-radius: 22px; background: #f6f4f0; color: var(--lp-ph-ink); font: 500 16px/1 var(--lp-ph-f); -webkit-appearance: none; appearance: none; box-shadow: none; }
  html body #header .lp-ph-search .lp-ph-q::placeholder { color: #6a7378; opacity: 1; }
  html body #header .lp-ph-search .lp-ph-q:focus, html body #header .lp-ph-search .lp-ph-q:focus-visible { outline: 0 !important; box-shadow: none !important; border-color: var(--lp-ph-ink); background: #fff; }
  html body #header .lp-ph-search, html body #header .lp-ph-search * { -webkit-tap-highlight-color: transparent; }
  html body #header .lp-ph-search .lp-ph-go { position: absolute; right: 0; top: 0; width: 46px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--lp-ph-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
  html body #header .lp-ph-search .lp-ph-cancel { display: none; flex: 0 0 auto; min-height: 44px; padding: 0 4px 0 2px; border: 0; background: transparent; color: var(--lp-ph-ink); font: 700 15px/1 var(--lp-ph-f); cursor: pointer; }
  html body #header .lp-ph-search:focus-within .lp-ph-cancel { display: block; }
  html body #header .lp-ph-search svg, html body #header .lp-ph-sicon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

  /* once the page is scrolled the header is slimmer: search becomes an icon beside the basket; tapping it drops the bar under the row */
  html.lp-condensed body #header .lp-responsive-header .main-header .header-wrapper > .lp-ph-search { display: none; }
  html.lp-condensed.lp-ph-sopen body #header .lp-responsive-header .main-header .header-wrapper > .lp-ph-search { display: flex; position: absolute; left: -12px; right: -12px; top: 100%; z-index: 40; padding: 8px 12px 10px; background: #fff; box-shadow: 0 6px 14px rgba(24, 35, 44, .14); }
  html.lp-condensed body #header .lp-responsive-header .main-header .header-wrapper > .lp-ph-sicon { display: flex; grid-area: i !important; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--lp-ph-ink); align-items: center; justify-content: center; cursor: pointer; }
}

/* ---------- phone menu ---------- */
@media (max-width: 991.98px) {
  html.lp-ph-lock, html.lp-ph-lock body { overflow: hidden !important; }
  html body .lp-ph-menu { display: block; position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 100000; background: #fff; font-family: var(--lp-ph-f); color: var(--lp-ph-ink); visibility: hidden; transform: translate3d(-100%, 0, 0); transition: transform .17s ease-out, visibility 0s linear .17s; will-change: transform; contain: layout paint; }
  html body .lp-ph-menu.is-open { visibility: visible; transform: none; transition: transform .17s ease-out; }
  .lp-ph-bar { position: absolute; left: 0; right: 0; top: 0; height: 56px; display: flex; align-items: center; padding: 0 4px; border-bottom: 1px solid var(--lp-ph-line); background: #fff; z-index: 2; }
  .lp-ph-title { flex: 1 1 auto; text-align: center; font: 800 17px/1 var(--lp-ph-f); }
  .lp-ph-back, .lp-ph-x { flex: 0 0 auto; min-width: 56px; height: 56px; padding: 0 12px; border: 0; background: transparent; color: var(--lp-ph-ink); font: 700 15px/1 var(--lp-ph-f); cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .lp-ph-back[hidden] { display: block; visibility: hidden; }
  .lp-ph-back::before { content: ""; width: 9px; height: 9px; margin-right: 6px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); }
  .lp-ph-x { font-size: 26px; font-weight: 400; }
  .lp-ph-views { position: absolute; left: 0; right: 0; top: 56px; bottom: 0; overflow: hidden; }
  .lp-ph-view { position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #fff; transform: translate3d(100%, 0, 0); visibility: hidden; transition: transform .17s ease-out, visibility 0s linear .17s; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .lp-ph-view.is-active { transform: none; visibility: visible; transition: transform .17s ease-out; }
  .lp-ph-view.is-left { transform: translate3d(-28%, 0, 0); }
  .lp-ph-row { display: flex; align-items: center; justify-content: space-between; box-sizing: border-box; width: 100%; min-height: 58px; padding: 0 20px; border: 0; border-bottom: 1px solid var(--lp-ph-line); background: #fff; color: var(--lp-ph-ink) !important; font: 700 17px/1.25 var(--lp-ph-f); text-align: left; text-decoration: none !important; cursor: pointer; -webkit-tap-highlight-color: rgba(233, 81, 37, .12); }
  .lp-ph-row:active { background: #f6f4f0; }
  .lp-ph-row--go::after { content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-left: 12px; border-right: 2.5px solid #7b838a; border-top: 2.5px solid #7b838a; transform: rotate(45deg); }
  .lp-ph-row--head { min-height: 46px; margin-top: 4px; background: #f6f4f0; color: #5b6670 !important; font: 800 12px/1 var(--lp-ph-f); letter-spacing: .08em; text-transform: uppercase; }
  .lp-ph-row--sale { color: var(--lp-ph-or) !important; }
  .lp-ph-row--small { min-height: 50px; font-weight: 600; font-size: 15px; color: #4a545b !important; }
  .lp-ph-lbl { display: block; padding: 16px 20px 8px; font: 800 12px/1 var(--lp-ph-f); letter-spacing: .08em; text-transform: uppercase; color: #5b6670; }
  .lp-ph-pop { display: flex; gap: 10px; padding: 0 20px 14px; scroll-padding: 0 20px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .lp-ph-pop::-webkit-scrollbar { display: none; }
  .lp-ph-pop a { flex: 0 0 128px; scroll-snap-align: start; display: block; text-decoration: none !important; color: var(--lp-ph-ink) !important; border-radius: 12px; overflow: hidden; background: #f6f4f0; }
  .lp-ph-pop img { display: block; width: 128px; height: 96px; object-fit: cover; background: #f0ede7; }
  .lp-ph-pop span { display: block; padding: 7px 9px 9px; font: 800 13px/1.2 var(--lp-ph-f); }
  .lp-ph-cta { display: flex; gap: 10px; padding: 18px 20px 4px; }
  .lp-ph-cta a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 6px 10px; border-radius: 12px; text-align: center; text-decoration: none !important; font: 800 15px/1.2 var(--lp-ph-f); }
  .lp-ph-cta a:first-child { background: var(--lp-ph-or); color: #fff !important; }
  .lp-ph-cta a:last-child { border: 2px solid var(--lp-ph-ink); color: var(--lp-ph-ink) !important; }
}
@media (prefers-reduced-motion: reduce) { .lp-ph-menu, .lp-ph-view { transition: none !important; } }
