/* Phone layouts use the existing Libanco type, surfaces and controls. */
@media (max-width:760px) {
  .wrap {padding-left:20px;padding-right:20px}
  .top .header-tools {gap:10px;align-items:center}
  .header-tools .language-toggle,.top .phone-button {width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;display:grid;place-items:center;line-height:1;border-radius:50%;flex-shrink:0}
  .top nav[aria-label="Main navigation"] {gap:24px!important;justify-content:center}
  .top nav[aria-label="Main navigation"] a {min-height:44px;display:inline-flex;align-items:center;font-size:16px!important}
  :is(.product-detail-page,.account-page,.owner-page,.company-page)>.top {background:var(--bg);color:var(--ink)}
  :is(.product-detail-page,.account-page,.owner-page,.company-page) .top>.wrap {padding:0 20px}
  :is(.product-detail-page,.account-page,.owner-page,.company-page) .top header:has(nav[aria-label="Main navigation"]) {display:grid;grid-template-columns:1fr auto;gap:12px;height:auto;border:0;padding:20px 0}
  :is(.product-detail-page,.account-page,.owner-page,.company-page) .top .identity {grid-column:1;grid-row:1}
  :is(.product-detail-page,.account-page,.owner-page,.company-page) .top .libanco-logo {filter:none}
  :is(.product-detail-page,.account-page,.owner-page,.company-page) .top .logo-lockup small {color:var(--muted)}
  body:is(.product-detail-page,.account-page,.owner-page,.company-page) .top .header-tools {position:static;grid-column:2;grid-row:1}
  :is(.product-detail-page,.account-page,.owner-page,.company-page) .top .header-tools>:not(.profile-menu) {background:white;color:var(--ink);border-color:var(--line)}
  body:is(.product-detail-page,.account-page,.owner-page,.company-page) .top nav[aria-label="Main navigation"] {grid-column:1/-1;grid-row:2;margin:0;padding:0;width:100%}
  :is(.product-detail-page,.account-page,.owner-page,.company-page) .top nav a {position:relative;background:transparent!important;color:var(--ink);border:0;border-radius:0;padding:12px 4px}
  :is(.product-detail-page,.account-page,.owner-page,.company-page) .top nav a:after {content:'';position:absolute;left:4px;right:4px;bottom:7px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform 220ms ease-out}
  :is(.product-detail-page,.account-page,.owner-page,.company-page) .top nav a:is(:hover,:focus-visible):after {transform:scaleX(1)}
  .homepage .trade-hero {min-height:300px}
  .homepage .top header {padding-top:20px;gap:12px}
  .homepage .trade-intro {padding-top:28px;padding-bottom:24px;gap:16px}
  .homepage .trade-intro h2 {font-size:28px;line-height:1.2}
  .homepage .trade-intro p {font-size:16px;line-height:1.65}
  .section-title {gap:16px;align-items:center}
  .section-title h2 {font-size:23px}
  .section-title a {min-height:44px;display:flex;align-items:center;flex-shrink:0}
  .home-next a,.trade-account .primary {width:100%;min-height:48px}
  .signin-page .top header:has(nav[aria-label="Main navigation"]) {grid-template-columns:1fr auto;gap:12px;height:72px}
  .signin-page .top nav[aria-label="Main navigation"] {grid-column:1;gap:18px!important}
  .signin-page .header-tools {grid-column:2}
  .signin-page .login-page {padding-top:12px}
  .login-card {padding:26px 22px}
  .login-help,.login-catalog-link {min-height:44px;display:flex;align-items:center;justify-content:center}
  .signup-page .register-page {padding:8px 16px 28px}
  .signup-page .register-card {padding:26px 20px}
  .signup-page .register-card form label {font-size:14px}
  .signup-page .register-card input,.signup-page .register-card textarea {font-size:16px}
  #register-form .register-fields,#register-form .business-fields .register-fields {grid-template-columns:1fr;gap:18px}
  .delivery-notes summary {min-height:44px;display:flex;align-items:center}
  .delivery-notes summary:before {content:'+';margin-right:8px;font-size:20px}
  .delivery-notes[open] summary:before {content:'−'}
  .confirmation-card {padding:28px 22px}
  .confirmation-actions {gap:12px}
  .catalog-page .portal-head {padding-top:12px;padding-bottom:20px}
  .portal-head h1 {font-size:28px;line-height:1.2}
  .portal-head p {font-size:14px;line-height:1.6}
  .portal-head .search {margin-top:16px;min-height:48px}
  .portal-head .search input {font-size:16px;min-width:0}
  .portal .categories {margin:0 -20px 12px;padding:0 20px 8px;scroll-padding:20px;scrollbar-width:none}
  .portal .categories .category {min-height:44px;font-size:14px;padding:10px 16px}
  .portal .categories .category span {font-size:12px}
  .portal .results-bar {gap:12px;flex-wrap:wrap;font-size:14px;margin-bottom:16px}
  .results-bar select {min-height:44px;font-size:14px;max-width:180px}
  .portal .grid {grid-template-columns:minmax(0,1fr);gap:16px}
  .portal .product {display:grid;grid-template-columns:100px minmax(0,1fr);column-gap:16px;align-content:start;padding:16px;background:var(--surface);border-radius:12px}
  .portal .product-view {grid-column:1;grid-row:1/5;align-self:center}
  .portal .product .photo {height:124px;margin:0;border-radius:8px}
  .portal .product .photo img {height:110px;width:100%;max-width:94%;object-fit:contain}
  .portal .product .brand {grid-column:2;margin:0 0 4px;font-size:11px;line-height:1.4}
  .portal .product h3 {grid-column:2;font-size:16px;line-height:1.4;min-height:0;margin:0 0 8px}
  .portal .product .details {grid-column:2;margin:0;align-self:end;gap:10px;flex-wrap:wrap}
  .portal .product .size {font-size:14px}
  .portal .product .price {font-size:20px}
  .portal .product .barcode {grid-column:2;margin:4px 0 0;font-size:11px;overflow-wrap:anywhere}
  .portal .product .order-control {grid-column:1/-1;display:grid;grid-template-columns:132px minmax(0,1fr);gap:12px;margin:16px 0 0}
  .order-control .quantity-stepper {grid-template-columns:44px minmax(0,1fr) 44px;height:48px}
  .quantity-stepper input {font-size:16px!important;text-align:center}
  .order-control .quantity-stepper button {height:46px}
  .order-control>button {font-size:14px;min-height:48px;white-space:normal;padding:8px 12px;border-radius:8px}
  .mobile-order-nav {gap:12px;padding:10px 20px calc(10px + env(safe-area-inset-bottom));align-items:center}
  .mobile-order-nav a {min-height:48px;display:flex;align-items:center;font-size:14px}
  .mobile-order-nav #mobile-basket {min-height:48px;font-size:14px;flex:1;border-radius:8px}
  body:has(.mobile-order-nav) {padding-bottom:88px}
  .basket-item {grid-template-columns:44px minmax(0,1fr);gap:14px}
  .basket-item img {width:44px;height:60px}
  .basket-item h3 {font-size:15px;line-height:1.4}
  .basket-item p {font-size:13px}
  .basket-quantity {flex-wrap:wrap;gap:12px}
  .basket-quantity button {min-width:44px;min-height:44px}
  #portal-dialog {max-height:calc(100dvh - 32px);width:calc(100% - 32px);padding:24px;overflow:auto}
  #portal-dialog .primary {width:100%;margin-top:12px;min-height:48px}
  .review-lines li {gap:16px;align-items:start}
  .review-lines li span {min-width:0}
  .review-lines li strong {white-space:nowrap}
  #mobile-basket-sheet {position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:88dvh;padding:0;border-radius:18px 18px 0 0;overflow:auto;color:var(--ink)}
  #mobile-basket-sheet::backdrop {background:rgb(0 0 0 / .45)}
  .basket-sheet-header {position:sticky;top:0;background:var(--surface);display:flex;justify-content:space-between;align-items:center;padding:12px 20px;border-bottom:1px solid var(--line);z-index:1}
  .basket-sheet-header h2 {font-size:20px;margin:0}
  .basket-sheet-header button {width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:transparent;font-size:22px;color:var(--ink)}
  #mobile-basket-sheet .basket {position:static;margin:0;padding:20px 20px calc(24px + env(safe-area-inset-bottom));border-radius:0;max-height:none}
  #mobile-basket-sheet .basket-title h2 {display:none}
  body:has(dialog[open]) {overflow:hidden}
  .product-page {padding-top:12px}
  .breadcrumbs {flex-wrap:wrap;gap:8px;font-size:13px}
  .product-page-grid {gap:24px}
  .product-stage {height:240px;padding:20px}
  .product-stage img {height:200px;max-width:100%}
  .product-info {display:flex;flex-direction:column}
  .product-info>.brand,.product-info>h1,.product-info>.product-size,.product-info>.product-pricing {order:0}
  .product-info>.product-purchase {order:1;margin-top:20px}
  .product-info>.product-description {order:2;margin:20px 0 0}
  .product-info>.product-specs {order:3}
  .product-info h1 {font-size:28px}
  .product-size {margin-bottom:12px;font-size:16px}
  .purchase-row {grid-template-columns:132px minmax(0,1fr)}
  .purchase-row .quantity-stepper {grid-template-columns:44px minmax(0,1fr) 44px}
  .product-purchase .text-link {display:inline-flex;align-items:center;min-height:44px}
  .product-purchase #detail-feedback:empty {display:none}
  .app-title {align-items:center;gap:12px;margin-bottom:20px}
  .app-title h1 {font-size:28px;margin:0}
  .app-title p {font-size:14px;line-height:1.6;margin:10px 0 0}
  .owner-page .app-title {flex-wrap:wrap}
  .owner-page .app-title>div {flex:1 1 220px}
  .owner-tabs {gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:12px}
  .owner-tabs button {flex:1;min-height:48px;font-size:15px;padding:10px 12px;white-space:nowrap}
  .app-main input:not([type=checkbox]),.app-main textarea,.app-main select {font-size:16px;min-width:0;max-width:100%}
  .owner-search input {width:100%;min-height:48px}
  .inventory-row {gap:14px;padding:16px 0}
  .inventory-row img {width:54px;height:64px;flex-shrink:0}
  .inventory-row>span:nth-child(2) {min-width:0;overflow-wrap:anywhere}
  .inventory-row small {line-height:1.6}
  .inventory-row>span:last-child {flex-shrink:0}
  .customer-row .actions {flex-wrap:wrap}
  .customer-row .status-tag {margin-bottom:12px}
  .customer-row .actions>* {flex:1;min-height:48px}
  .account-summary {padding:12px 0 28px}
  .account-summary p,.customer-row p,.order-record p {overflow-wrap:anywhere;font-size:15px;line-height:1.65}
  .order-record ul {list-style:none;padding:0}
  .order-record li {display:flex;flex-wrap:wrap;gap:8px 16px;justify-content:space-between}
  .order-record li strong {margin-left:0;white-space:nowrap}
  .app-main #product-editor {max-height:calc(100dvh - 24px);width:calc(100% - 24px);padding:0 20px 24px}
  .editor-heading {position:sticky;top:0;background:var(--surface);z-index:1;padding:16px 0;gap:12px}
  .editor-heading h2 {margin:0;font-size:23px}
  #product-form button[type=submit] {width:100%}
  #product-form input[type=file] {padding:8px;font-size:14px}
  .support-main {padding-top:20px}
  .support-intro .back-link {min-height:44px;align-items:center;margin-bottom:16px}
  .support-account {display:inline-flex;align-items:center;min-height:44px}
  .support-lead {margin-bottom:12px}
  .support-method strong {font-size:18px}
  .support-questions summary {min-height:48px}
  .footer-grid {grid-template-columns:1fr 1fr;gap:28px 20px}
  .footer-grid>div:first-child {grid-column:1/-1}
  .footer-grid>div:last-child {grid-column:1/-1}
  .footer-grid a:not(.logo) {font-size:14px;min-height:44px;display:inline-flex;align-items:center;line-height:1.5}
  .footer-grid>div:not(:first-child)>a {display:flex;margin:0}
  .footer-grid h3 {font-size:15px;margin-bottom:8px}
  .footer-bottom {flex-direction:column;gap:8px;line-height:1.6}
}
/* Landscape phones and small tablets keep ordering out of cramped columns. */
@media (min-width:761px) and (max-width:1100px) {
  .portal-layout {display:block}
  .portal .grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  .portal .side h3,.portal .side-note,.portal .side .account-links {display:none}
  .portal .categories {flex-direction:row;overflow:auto;padding-bottom:16px;margin-bottom:16px}
  .portal .category {white-space:nowrap;gap:12px;min-height:44px}
  .mobile-order-nav {display:flex;position:fixed;bottom:0;left:0;right:0;z-index:10;gap:20px;align-items:center;background:var(--surface);border-top:1px solid var(--line);padding:10px 24px calc(10px + env(safe-area-inset-bottom))}
  .mobile-order-nav>* {min-height:48px;font-size:16px}
  .mobile-order-nav a {display:flex;align-items:center}
  #mobile-basket {flex:1;background:var(--ink);color:var(--surface);border:0;border-radius:8px;padding:12px}
  body:has(.mobile-order-nav) {padding-bottom:88px}
  #mobile-basket-sheet {position:fixed;inset:auto 0 0;margin:0 auto;width:min(640px,100%);max-width:none;max-height:88dvh;padding:0;border-radius:18px 18px 0 0;overflow:auto}
  #mobile-basket-sheet::backdrop {background:rgb(0 0 0 / .45)}
  .basket-sheet-header {position:sticky;top:0;background:var(--surface);display:flex;justify-content:space-between;align-items:center;padding:12px 24px;border-bottom:1px solid var(--line);z-index:1}
  .basket-sheet-header h2 {margin:0;font-size:22px}
  .basket-sheet-header button {width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:transparent;font-size:22px}
  #mobile-basket-sheet .basket {position:static;margin:0;padding:24px;border-radius:0;max-height:none}
  #mobile-basket-sheet .basket-title h2 {display:none}
  .basket-quantity button {min-width:44px;min-height:44px}
  body:has(dialog[open]) {overflow:hidden}
}
@media(max-width:360px) {
  .wrap {padding-left:16px;padding-right:16px}
  .top .libanco-logo {width:130px}
  .top nav[aria-label="Main navigation"] {gap:20px!important}
  .signin-page .top nav[aria-label="Main navigation"] {gap:8px!important}
  .signin-page .top nav[aria-label="Main navigation"] a {font-size:14px!important}
  .portal .product {grid-template-columns:80px minmax(0,1fr);gap:0 12px;padding:14px}
  .portal .product .photo {height:110px}
  .portal .product .photo img {height:98px}
  .portal .product .order-control {grid-template-columns:126px minmax(0,1fr);gap:8px}
  .portal .categories {margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}
  body:has(.mobile-order-nav) {padding-bottom:110px}
  .order-control .quantity-stepper {grid-template-columns:42px minmax(0,1fr) 42px}
  .support-panel {padding:4px 16px}
  .support-method {gap:10px;grid-template-columns:32px minmax(0,1fr) 12px}
  .support-method strong {font-size:16px}
}
@media(prefers-reduced-motion:reduce) {.top nav a:after {transition:none!important}}
.auth-home-back {display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--ink);flex-shrink:0}
.auth-home-back svg {width:20px;height:20px}
.auth-home-back:hover {background:var(--bg)}
.signin-page .auth-home-back {grid-column:1;grid-row:1;justify-self:start}
.signup-page .auth-home-back {margin-right:auto}
@media(max-width:760px) {
  .signin-page .top header:has(.auth-home-back) {grid-template-columns:44px minmax(0,1fr) 44px;height:auto;min-height:112px;padding:12px 0!important;gap:4px 12px}
  .signin-page .top header:has(.auth-home-back) .header-tools {grid-column:3;grid-row:1}
  .signin-page .top header:has(.auth-home-back) nav[aria-label="Main navigation"] {grid-column:1/-1;grid-row:2;width:100%;gap:24px!important}
}
#mobile-site-nav,.mobile-hero-login {display:none}
.auth-page .top .phone-button {display:none}
@media(max-width:760px), (max-width:1100px) and (pointer:coarse) {
  body.mobile-shell {padding-bottom:calc(96px + env(safe-area-inset-bottom))}
  body.mobile-shell:has(.mobile-order-nav) {padding-bottom:calc(104px + env(safe-area-inset-bottom))}
  .mobile-shell .top nav[aria-label="Main navigation"],.mobile-shell .top .identity,.mobile-shell .top .auth-home-back {display:none!important}
  body.mobile-shell .top>.wrap {padding:0 20px}
  body.mobile-shell .top header,body.mobile-shell .top header:has(nav[aria-label="Main navigation"]),body.mobile-shell .top header:has(.auth-home-back) {
    display:flex;height:72px;min-height:72px;justify-content:flex-end;align-items:center;padding:12px 0!important;gap:0;border:0;
  }
  body.mobile-shell .top .header-tools {display:flex;position:static!important;align-items:center;gap:10px;justify-self:end;margin-left:auto}
  body.mobile-shell .header-tools .language-toggle,body.mobile-shell .top .phone-button {width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;display:grid;place-items:center;padding:0!important;border-radius:50%}
  .mobile-shell .login-page {min-height:calc(100svh - 72px);padding-top:8px}
  .mobile-shell .support-main,.mobile-shell .app-main:not(.login-page) {padding-top:16px}
  .mobile-shell .mobile-order-nav {
    position:fixed;bottom:calc(82px + env(safe-area-inset-bottom));left:16px;right:16px;padding:0;border:0;background:transparent;z-index:25;
  }
  .mobile-shell .mobile-order-nav>a {display:none}
  .mobile-shell .mobile-order-nav #mobile-basket {width:100%;min-height:44px;border-radius:12px;box-shadow:0 3px 12px rgb(0 0 0 / .08)}
  #mobile-site-nav:not([hidden]) {
    position:fixed;left:50%;top:0;bottom:auto;--nav-safe-bottom:env(safe-area-inset-bottom,0px);transform:translate(-50%,var(--mobile-dock-y,calc(100svh - 78px - env(safe-area-inset-bottom))));
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:0;
    width:calc(100% - 24px);max-width:420px;min-height:58px;padding:5px;margin:0;
    border:1px solid rgb(255 255 255 / .8);border-radius:999px;
    background:rgb(215 218 220 / .74);color:#252a2d;
    -webkit-backdrop-filter:blur(22px) saturate(135%);backdrop-filter:blur(22px) saturate(135%);
    box-shadow:inset 0 1px 0 rgb(255 255 255 / .6),0 4px 18px rgb(0 0 0 / .1);
    isolation:isolate;z-index:30;
  }
  .mobile-tab-indicator {
    position:absolute;top:5px;bottom:5px;left:5px;width:calc((100% - 10px)/4);border-radius:999px;
    background:rgb(255 255 255 / .8);border:1px solid rgb(255 255 255 / .8);
    box-shadow:0 2px 7px rgb(0 0 0 / .055),inset 0 1px 0 white;
    transform:translateX(calc(var(--selected-tab,0)*100%));
    transition:transform 450ms cubic-bezier(.22,1,.36,1);pointer-events:none;z-index:-1;
  }
  #mobile-site-nav a {
    position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:46px;
    padding:8px 2px;color:inherit;font-size:14px;font-weight:500;line-height:1.3;border:0;background:transparent;border-radius:999px;
    transition:transform 160ms ease-out;
  }
  #mobile-site-nav a[aria-current=page] {font-weight:650}
  #mobile-site-nav a:active {transform:scale(.96)}
  #mobile-site-nav a:focus-visible {outline:2px solid var(--ink);outline-offset:-3px}
  html[lang=el] #mobile-site-nav a {font-size:12px}
  .mobile-shell .mobile-hero-login {display:block;position:relative;z-index:1;padding:94px 24px 28px;color:white}
  .mobile-hero-login h1 {font-size:30px;line-height:1.18;letter-spacing:-.025em;font-weight:600;margin:0 0 12px;max-width:300px;text-wrap:balance}
  .mobile-hero-login p {font-size:15px;line-height:1.6;margin:0 0 20px}
  .mobile-hero-login .primary {min-height:46px;min-width:150px;background:white;color:var(--ink);border-radius:10px;font-size:16px}
  .mobile-shell .trade-hero {justify-content:start;min-height:300px}
}
@media(max-width:360px) {#mobile-site-nav a {font-size:13px}html[lang=el] #mobile-site-nav a {font-size:11px}}
@media(hover:none), (pointer:coarse), (max-width:760px) {
  .brand-window:hover .brand-belt,.brand-window:has(a:focus-visible) .brand-belt,.brand-belt.paused {animation-play-state:running!important}
}
@media(prefers-reduced-motion:reduce) {.mobile-tab-indicator,#mobile-site-nav a {transition:none}}

@media(max-width:760px), (max-width:1100px) and (pointer:coarse) {
  .mobile-shell .mobile-order-nav {display:none}
  .mobile-basket-badge:not([hidden]) {
    position:absolute;right:4px;bottom:76px;z-index:1;
    display:flex;align-items:center;justify-content:center;width:64px;height:64px;
    padding:4px;border:1px solid rgb(255 255 255 / .85);border-radius:50%;
    background:var(--ink);color:var(--surface);cursor:pointer;
    box-shadow:0 3px 14px rgb(0 0 0 / .15);
  }
  .mobile-basket-badge span {font-size:12px;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
  .mobile-basket-badge:focus-visible {outline:2px solid var(--ink);outline-offset:3px}
  .mobile-shell.catalog-page .portal .grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .mobile-shell.catalog-page .portal .product {display:flex;flex-direction:column;gap:0;padding:12px;min-width:0;border-radius:12px}
  .mobile-shell.catalog-page .portal .product-view {align-self:stretch}
  .mobile-shell.catalog-page .portal .product .photo {height:128px;padding:4px;margin:0 0 10px}
  .mobile-shell.catalog-page .portal .product .photo img {height:120px;max-width:100%;width:100%}
  .mobile-shell.catalog-page .portal .product .brand {font-size:10px;margin:0 0 4px}
  .mobile-shell.catalog-page .portal .product h3 {font-size:14px;line-height:1.35;min-height:38px;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .mobile-shell.catalog-page .portal .product .details {display:flex;flex-direction:column;align-items:flex-start!important;text-align:left;gap:2px;margin:0}
  .mobile-shell.catalog-page .portal .product .size {font-size:12px}
  .mobile-shell.catalog-page .portal .product .price {font-size:20px}
  .mobile-shell.catalog-page .portal .product .barcode {display:none}
  .mobile-shell.catalog-page .portal .product .order-control {display:grid;grid-template-columns:1fr;gap:8px;margin:12px 0 0;width:100%;margin-top:auto;padding-top:12px}
  .mobile-shell.catalog-page .order-control .quantity-stepper {grid-template-columns:40px minmax(0,1fr) 40px;height:44px;width:100%}
  .mobile-shell.catalog-page .order-control .quantity-stepper button {height:42px;min-width:0;padding:0}
  .mobile-shell.catalog-page .order-control>button {min-height:44px;font-size:13px;padding:6px}
  .mobile-shell.catalog-page>footer {display:none}
}

/* The mobile home retains the same unframed wordmark as desktop. */
@media(max-width:760px), (max-width:1100px) and (pointer:coarse) {
  body.homepage.mobile-shell .top .identity {display:flex!important;margin-right:auto;min-height:44px}
  body.homepage.mobile-shell .top .libanco-logo {width:132px;height:auto;display:block}
  body.homepage.mobile-shell .top .logo-lockup small {display:none}
  body.homepage.mobile-shell .top header {justify-content:space-between}
}
.brand-welcome {position:fixed;inset:0;z-index:40;pointer-events:none;background:rgb(25,29,32)}
.brand-welcome img {position:absolute;object-fit:contain;filter:brightness(0) invert(1);transform-origin:top left}
.logo-arriving {visibility:hidden}
@media(prefers-reduced-motion:reduce) {.brand-welcome {display:none}.logo-arriving {visibility:visible}}

.mobile-basket-badge {display:none}
.dialog-close {position:absolute;top:12px;right:12px;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--ink);font-size:24px;display:grid;place-items:center;cursor:pointer}
#portal-dialog {padding-top:68px}
#portal-dialog .dialog-back {display:block;position:sticky;bottom:0;width:100%;min-height:48px;padding:10px 16px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:10px;margin-top:20px;font-size:15px;cursor:pointer}
.checkout-login {text-align:center;max-width:420px}
.checkout-login h2 {font-size:26px;line-height:1.25;text-wrap:balance}
.checkout-login #dialog-content>p {font-size:15px;line-height:1.7;margin:0 0 24px}
.checkout-actions {display:grid;gap:12px}
#portal-dialog .checkout-actions a {width:100%;min-height:48px;margin:0;border-radius:10px;font-size:15px}
@media(max-width:760px), (max-width:1100px) and (pointer:coarse) {
  .mobile-shell .mobile-basket-badge:not([hidden]) {position:static;display:flex;flex-shrink:0;width:52px;height:52px;min-width:52px;margin:0;box-shadow:none}
  .mobile-shell .top .header-tools:has(.mobile-basket-badge) {gap:8px}
  #portal-dialog {padding:68px 24px 24px;max-height:calc(100dvh - 40px)}
  .mobile-shell.support-page .support-main {padding:12px 20px 32px}
  .mobile-shell.support-page .support-layout {display:block}
  .mobile-shell.support-page .support-intro .back-link {margin-bottom:16px}
  .mobile-shell.support-page .support-eyebrow {font-size:12px;margin-bottom:10px;color:var(--muted)}
  .mobile-shell.support-page .support-intro h1 {font-size:32px;margin-bottom:12px;line-height:1.2}
  .mobile-shell.support-page .support-lead {font-size:15px;line-height:1.6;margin-bottom:24px}
  .mobile-shell.support-page .support-account {display:none}
  .mobile-shell.support-page .support-panel {padding:0;border:0;background:transparent}
  .mobile-shell.support-page .support-method {display:block;border:1px solid var(--line);border-radius:14px;padding:20px;margin-bottom:12px;background:var(--surface)}
  .mobile-shell.support-page .support-method:first-child {background:var(--ink);color:var(--surface);border-color:var(--ink)}
  .mobile-shell.support-page .support-method strong {font-size:20px;margin:6px 0 8px}
  .mobile-shell.support-page .support-method:first-child .support-label,.mobile-shell.support-page .support-method:first-child .support-caption {color:inherit}
  .mobile-shell.support-page .support-location {padding:20px 4px 0}
  .mobile-shell.support-page .support-faq,.mobile-shell.support-page>footer {display:none}
}

.product-stage {position:static}
.product-media {min-width:0}
.product-barcode {margin:16px 0 0;padding:12px;background:white;border-radius:12px;text-align:center}
.product-barcode svg {display:block;width:auto;max-width:100%;height:auto;margin:auto}
.product-barcode figcaption {font-size:14px;color:var(--muted)}
.product-editor-note {font-size:13px;line-height:1.6;color:var(--muted)}

.product-barcode img {display:block;max-width:100%;height:auto;margin:auto}
.product-top-back {display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--ink);margin-right:16px}
.product-top-back svg {width:22px;height:22px}
.basket-flight {position:fixed;width:12px;height:12px;background:#171b1e;border-radius:50%;pointer-events:none;z-index:35}
@media(max-width:760px), (max-width:1100px) and (pointer:coarse) {
  .mobile-shell .mobile-basket-badge:not([hidden]) {position:fixed;top:calc(14px + env(safe-area-inset-top));right:20px;bottom:auto;z-index:32;box-shadow:0 2px 8px rgb(0 0 0 / .12)}
  .mobile-shell:has(.mobile-basket-badge) .top .header-tools {margin-right:60px}
  .mobile-shell .product-top-back {margin-right:auto}
}
@media(prefers-reduced-motion:reduce) {.basket-flight {display:none}}

/* Product identity, unit pricing and expiry batches. */
.price-group{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.unit-price{display:block;font-size:12px;font-weight:400;line-height:1.5;color:var(--muted);letter-spacing:0}
.portal .product .details{margin-top:0;padding-top:0;align-items:flex-start}
.portal .product h3{min-height:42px;margin-bottom:8px}
.item-number,.card-expiry{font-size:11px;color:var(--muted);line-height:1.5;margin:5px 5px 0;text-align:center;overflow-wrap:anywhere}
.card-expiry{margin-top:5px;margin-bottom:0}
.portal .product .barcode{margin-top:2px}
.portal .product .order-control{margin-top:10px}
.product-media>.item-number{margin-top:18px;font-size:13px}
.product-pricing>.unit-price{flex-basis:100%;font-size:14px}
.detail-expiry{font-size:14px;color:var(--muted);margin:16px 0}
.expiry-batches:empty{display:none}
.expiry-batches{margin:18px 0;display:flex;flex-wrap:wrap;gap:8px}
.expiry-batches h2{width:100%;font-size:16px;margin:0 0 4px}
.expiry-batches a{font-size:13px;min-height:40px}
.range-categories{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 26px}
.range-categories a{font-size:14px;text-decoration:none;background:white;border:1px solid var(--line);border-radius:999px;padding:10px 18px;min-height:44px}
.range-categories a:hover,.range-categories a:focus-visible{background:var(--ink);color:white}
.featured-products .unit-price{margin-top:4px}
/* Clearly separate pricing, product references and availability on catalog cards. */
.portal .product .details{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;gap:8px;margin:0 4px 10px;padding:0}
.portal .product .price-group{align-items:flex-end;text-align:right}
.portal .product .size{padding-top:4px}
.portal .product .card-facts{margin:0 4px;padding:9px 0;border-block:1px solid var(--line);font-size:11px;line-height:1.5}
.card-facts>div{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;padding:3px 0;align-items:baseline}
.card-facts dt{color:var(--muted);font-weight:400}
.card-facts dd{margin:0;text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;color:var(--ink)}
.portal .product .card-stock{display:flex;align-items:center;gap:6px;margin:10px 4px 0;font-size:12px;font-weight:600;line-height:1.5}
.card-stock.stock-empty{color:#b42318}
.card-stock.stock-available{color:#167345}
.stock-dot{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:currentColor}
.signin-page #login-form .remember-login{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:14px;margin:8px 0 22px;cursor:pointer}
.remember-copy{display:flex;flex-direction:column;gap:3px;font-size:14px;font-weight:500}
.remember-copy small{font-size:12px;color:var(--muted);font-weight:400}
.remember-control{position:relative;width:38px;height:24px;flex:0 0 38px}
.signin-page #login-form .remember-control input{position:absolute;inset:0;margin:0;width:38px;height:24px;min-height:0;padding:0;opacity:0;z-index:1;cursor:pointer}
.remember-track{display:block;width:38px;height:24px;border-radius:999px;background:#dce0e4;transition:background .15s ease}
.remember-track:after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .15s ease}
.remember-control input:checked+.remember-track{background:var(--ink)}
.remember-control input:checked+.remember-track:after{transform:translateX(14px)}
.remember-control input:focus-visible+.remember-track{outline:2px solid #547797;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.remember-track,.remember-track:after{transition:none}}
.portal .order-control>button:disabled,.product-purchase .primary:disabled{background:#e2e5e8;color:#656b72;cursor:not-allowed;opacity:1}
.portal .quantity-stepper:has(input:disabled),.product-purchase .quantity-stepper:has(input:disabled){background:#f0f1f3;color:#858a90}
.portal .quantity-stepper input:disabled,.product-purchase .quantity-stepper input:disabled{background:transparent;color:#858a90}
.quantity-stepper button:disabled,.basket-quantity button:disabled{color:#9b9fa5;cursor:not-allowed;opacity:.5}
@media(min-width:1101px){
 .catalog-page .portal-layout{grid-template-columns:152px minmax(0,1fr) 250px;gap:24px}
 .catalog-page .portal .grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 18px}
 .catalog-page .portal .photo{height:205px;padding:10px}
 .catalog-page .portal .photo img{height:181px}
 .catalog-page .order-control{display:grid;grid-template-columns:1fr;gap:7px}
 .catalog-page .order-control .quantity-stepper{width:100%}
 .catalog-page .order-control>button{width:100%}
}
@media(min-width:1600px){
 .catalog-page .order-control{grid-template-columns:minmax(90px,.8fr) minmax(0,1.2fr)}
 .catalog-page .order-control .quantity-stepper{grid-template-columns:28px minmax(22px,1fr) 28px}
}
@media(max-width:1100px){
 .mobile-shell.catalog-page .portal .product .item-number,.mobile-shell.catalog-page .portal .product .card-expiry{margin-left:0;margin-right:0;text-align:left;font-size:10px}
 .mobile-shell.catalog-page .portal .product .barcode{display:block;text-align:left;font-size:10px;overflow-wrap:anywhere;margin-left:0;margin-right:0}
 .mobile-shell.catalog-page .portal .product .price-group{align-items:flex-start}
 .mobile-shell.catalog-page .portal .product .unit-price{font-size:11px}
 .mobile-shell.catalog-page .portal .product .order-control{margin-top:10px;padding-top:0}
 .range-categories{gap:8px}
 .range-categories a{padding:9px 14px;font-size:13px}
}
@media(max-width:1100px){
 .mobile-shell.catalog-page .portal .product .details{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start!important;margin:0 0 10px;gap:8px}
 .mobile-shell.catalog-page .portal .product .price-group{align-items:flex-end}
 .mobile-shell.catalog-page .portal .product .card-facts{margin:0;font-size:10px;width:100%}
 .mobile-shell.catalog-page .portal .product .card-stock{margin:9px 0 0;font-size:11px}
}
@media(max-width:480px){
 .mobile-shell.catalog-page .card-facts>div{display:block;padding:4px 0}
 .mobile-shell.catalog-page .card-facts dd{text-align:left;font-size:11px}
}

/* Phone browsing: even category rows and shorter product cards. */
@media(max-width:760px), (max-width:1100px) and (pointer:coarse){
 .homepage .range-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 18px}
 .homepage .range-categories a{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:44px;padding:10px 12px;border-radius:10px;font-size:12px;line-height:1.35;text-align:left}
 .homepage .range-categories a:after{content:'›';font-size:18px;font-weight:400;color:var(--muted)}
 .homepage .range-categories a:first-child{background:var(--ink);border-color:var(--ink);color:white}
 .homepage .range-categories a:first-child:after{color:inherit}
 .mobile-shell.catalog-page .portal .grid{gap:14px 10px}
 .mobile-shell.catalog-page .portal .product{padding:10px}
 .mobile-shell.catalog-page .portal .product .photo{height:104px;margin-bottom:7px;padding:3px}
 .mobile-shell.catalog-page .portal .product .photo img{height:98px}
 .mobile-shell.catalog-page .portal .product .brand{font-size:10px;margin:0 0 3px}
 .mobile-shell.catalog-page .portal .product h3{font-size:13px;line-height:1.35;min-height:35px;margin-bottom:6px}
 .mobile-shell.catalog-page .portal .product .details{margin-bottom:6px;gap:4px}
 .mobile-shell.catalog-page .portal .product .price{font-size:18px}
 .mobile-shell.catalog-page .portal .product .size{font-size:10px;padding-top:3px}
 .mobile-shell.catalog-page .portal .product .unit-price{font-size:10px}
 .mobile-shell.catalog-page .portal .product .card-facts{padding:5px 0;font-size:10px;line-height:1.5}
 .mobile-shell.catalog-page .portal .product .card-facts>div{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px;padding:2px 0}
 .mobile-shell.catalog-page .portal .product .card-facts dd{text-align:right;font-size:10px}
 .mobile-shell.catalog-page .portal .product .card-stock{margin-top:6px;font-size:10px}
 .mobile-shell.catalog-page .portal .product .order-control{margin-top:7px;gap:6px;padding:0}

 .mobile-shell.catalog-page .portal .product .order-control>button{min-height:40px;height:40px;font-size:12px}
}

/* Keep phone pricing and purchase controls together. */
.mobile-card-expiry{display:none}
@media(max-width:760px), (max-width:1100px) and (pointer:coarse){
 .top .header-tools .profile-trigger{width:44px;height:44px;min-width:44px;min-height:44px;flex-shrink:0;box-sizing:border-box}
 .mobile-shell.catalog-page .portal .product .details .size-group{display:flex;flex-direction:column;align-items:flex-start;min-width:0;flex:1;text-align:left}
 .mobile-shell.catalog-page .portal .product .details .size{align-self:flex-start;line-height:24px;padding:0}
 .mobile-shell.catalog-page .portal .product .mobile-card-expiry{display:block;font-size:10px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere;margin-top:2px}
 .mobile-shell.catalog-page .portal .product .card-facts .expiry-fact{display:none}
 .mobile-shell.catalog-page .portal .product .order-control{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:4px}
 .mobile-shell.catalog-page .portal .product .order-control .quantity-stepper{display:grid;grid-template-columns:18px minmax(0,1fr) 18px;width:100%;min-width:0;height:40px}
 .mobile-shell.catalog-page .portal .product .order-control .quantity-stepper button{height:38px;min-height:38px;width:18px;min-width:0;padding:0;font-size:15px}
 .mobile-shell.catalog-page .portal .product .order-control .quantity-stepper input{width:100%;min-width:0;height:38px;padding:0;font-size:16px!important;appearance:textfield;-moz-appearance:textfield}
 .mobile-shell.catalog-page .quantity-stepper input::-webkit-inner-spin-button,.mobile-shell.catalog-page .quantity-stepper input::-webkit-outer-spin-button{appearance:none;margin:0}
 .mobile-shell.catalog-page .portal .product .order-control>button{width:100%;padding:3px;font-size:10px;line-height:1.2;min-width:0}
}

@media(max-width:760px), (max-width:1100px) and (pointer:coarse){.mobile-shell.catalog-page .portal .product .details{width:100%;align-self:stretch}}

/* Quantity taps stay visually separate from the dark order action. */
.quantity-stepper button{appearance:none;-webkit-appearance:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.order-control .quantity-stepper button:is(:hover,:focus,:active),.purchase-row .quantity-stepper button:is(:hover,:focus,:active){background:transparent;color:var(--ink);box-shadow:none}
.quantity-stepper button:focus-visible{outline:2px solid #547797;outline-offset:-3px}

/* Prevent iPhone focus zoom and accidental double-tap zoom. */
@media(max-width:760px), (max-width:1100px) and (pointer:coarse){
 html{touch-action:manipulation}
 input,textarea,select{font-size:16px!important}
}
/* Consistent sort menu on desktop and phones. */
.sort-control{display:flex;align-items:center;gap:8px;min-width:0}
.sort-picker{position:relative}
#sort-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);font:inherit;font-size:13px;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#sort-trigger:focus{outline:none}#sort-trigger:focus-visible{outline:2px solid #547797;outline-offset:2px}
#sort-options{position:absolute;right:0;top:calc(100% + 6px);z-index:20;min-width:190px;padding:6px;margin:0;list-style:none;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px #20242718;color:var(--ink)}
#sort-options[hidden]{display:none}
#sort-options li{padding:11px 12px;min-height:42px;border-radius:7px;font-size:13px;cursor:pointer;white-space:nowrap}
#sort-options li[aria-selected=true]{font-weight:600;background:#edf0f2}
#sort-options li.highlighted{background:#f2f4f6}
@media(hover:hover){#sort-options li:hover{background:#edf0f2}}
@media(max-width:760px){.sort-control{gap:5px;font-size:12px}#sort-trigger{font-size:12px;gap:8px;padding:7px 8px}}
/* Keep the all-products action above a moving, swipeable category row. */
.homepage .range-categories{display:block;min-width:0;margin:0 0 24px}
.homepage .range-categories .range-all-products{display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:44px;padding:10px 18px;margin-bottom:12px;background:var(--ink);color:white;border-color:var(--ink);border-radius:999px;font-size:14px}
.homepage .range-categories a:after{content:none}
.range-category-window{position:relative;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;cursor:grab;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.range-category-window::-webkit-scrollbar{display:none}
.range-category-window.dragging{cursor:grabbing;user-select:none}
.range-category-track{position:relative;display:flex;width:max-content;gap:10px;padding:2px 0}
.range-category-group{display:flex;align-items:center;gap:10px;flex-shrink:0}
.homepage .range-category-window a{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:44px;padding:10px 18px;border-radius:999px;background:white;color:var(--ink);border:1px solid var(--line);font-size:14px;line-height:1.35;white-space:nowrap}
.homepage .range-category-window a:focus-visible{outline:2px solid #547797;outline-offset:-3px;background:#edf0f2}
@media(max-width:760px){.homepage .range-category-window a{font-size:12px;padding:10px 14px}.homepage .range-categories .range-all-products{font-size:13px;padding:10px 16px}}

.range-category-group[hidden]{display:none}
