.compact-home .home-before-feed>.catrow { margin:0; padding:0 0 8px; }
.ch-banner { display:grid; grid-template-columns:minmax(0,1.55fr) repeat(2,minmax(0,1fr)); gap:10px; }
.ch-hero,.ch-service { position:relative; border-radius:14px; overflow:hidden; min-height:76px; }
.ch-hero { display:flex; align-items:center; padding:12px 16px; background:linear-gradient(110deg,#0b1b4d,#174398); color:white; }
.ch-hero img { position:absolute; inset:0 0 0 auto; width:32%; max-width:138px; height:100%; object-fit:cover; object-position:50% 23%; mask-image:linear-gradient(90deg,transparent,#000 25%); }
.ch-hero>div { position:relative; max-width:72%; }
.ch-hero h1,.ch-browse h2,#compactHomeMenu h2 { margin:0; font-size:clamp(18px,1.7vw,24px); line-height:1.2; letter-spacing:-.035em; }
.ch-hero p { margin:4px 0 0; font-size:13px; color:#e2eaff; }
.ch-service { display:flex; align-items:center; gap:12px; text-align:left; padding:12px 16px; border:1px solid var(--line); background:var(--surface); font-weight:800; color:var(--ink); }
.ch-service svg { box-sizing:content-box; flex:none; width:22px; height:22px; padding:10px; background:var(--sky); color:var(--blue); border-radius:12px; }
.ch-service small { display:block; color:var(--muted); font-weight:600; margin-top:3px; }
.ch-links,.ch-filters { display:flex; align-items:center; gap:6px; overflow:auto; scrollbar-width:none; }
.ch-links { border-block-end:1px solid var(--line); }
.ch-links button,.ch-filters button { flex:none; min-height:40px; padding:0 12px; color:var(--ink); font-size:14px; font-weight:650; white-space:nowrap; }
.ch-links button:last-child { margin-inline-start:auto; color:var(--blue); }
.ch-browse { display:flex; align-items:center; gap:16px; margin:12px 0 6px; }
.ch-filters button { border:1px solid var(--line); border-radius:24px; background:var(--surface); }
.ch-filters [aria-pressed=true] { background:var(--blue); border-color:var(--blue); color:white; }
.compact-home .home-before-feed>.toolbar { padding:2px 0 8px; margin:0; position:static; }
#compactHomeMenu { box-sizing:border-box; padding:0; width:min(500px,calc(100% - 24px)); max-height:80dvh; margin:auto; border:1px solid var(--line); border-radius:20px; background:var(--surface); color:var(--ink); }
#compactHomeMenu::backdrop { background:rgba(11,27,77,.48); }
.ch-panel { padding:16px; }
.ch-panel header { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.ch-close { width:44px; height:44px; font-size:24px; }
.ch-menu-content { display:grid; gap:6px; }
.ch-menu-content>a,.ch-menu-content>button { padding:12px 14px; text-align:left; border-radius:10px; background:var(--sky); font-weight:700; }
.ch-menu-content p { margin:8px 0; }
.ch-menu-content .bc-heading { display:none; }
#ch-tools { display:none; position:fixed; z-index:44; bottom:max(24px,calc(var(--tabH,60px) + env(safe-area-inset-bottom) + 12px)); right:14px; border:1px solid var(--line); border-radius:24px; overflow:hidden; background:var(--surface); color:var(--blue); box-shadow:0 3px 14px #0b1b4d20; }
body.compact-home #ch-tools:not([hidden]) { display:flex; }
#ch-tools button { display:grid; min-width:44px; min-height:44px; place-items:center; padding:0 10px; font-weight:800; }
/* Desktop uses the catalog's existing page and product dimensions on both views. */
@media(max-width:719px) {
  .compact-home #main { max-width:1440px; padding-inline:clamp(12px,2vw,32px); }
  .compact-home #main>.grid:not(.feed):not(.cols3) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:0; width:100%; }
  .compact-home #main>.grid .prod { border-radius:14px; }
  .compact-home #main>.grid .prod-img { aspect-ratio:1.16; }
  .compact-home #main>.grid .prod-img img { object-fit:contain; }
  .compact-home #main>.grid .prod-body { padding:10px; gap:6px; }
  .compact-home #main>.grid .prod-name { font-size:14px; }
  .ch-banner { display:block; }
  .ch-hero { min-height:56px; padding:8px 12px; }
  .ch-service { display:none; }
  .ch-hero img { width:88px; }
  .ch-browse { flex-wrap:wrap; gap:6px; margin-block:8px 4px; }
  .ch-links button,.ch-filters button { font-size:13px; padding-inline:9px; }
  #compactHomeMenu { width:100%; max-width:100%; margin:auto 0 0; border-radius:18px 18px 0 0; padding-bottom:env(safe-area-inset-bottom); }
}
@media(prefers-reduced-motion:no-preference) {
  #compactHomeMenu[open] { animation:m-in var(--m-base) var(--e-out); }
  #compactHomeMenu[open]::backdrop { animation:m-fade var(--m-base) var(--e-out); }
  /* Keep native dialog focus and Escape handling while the top layer fades out. */
  @supports (overlay:auto) and (transition-behavior:allow-discrete) {
    #compactHomeMenu, #compactHomeMenu::backdrop {
      transition:opacity var(--m-fast) var(--e-in), transform var(--m-fast) var(--e-in),
        overlay var(--m-fast) allow-discrete, display var(--m-fast) allow-discrete;
      opacity:0; pointer-events:none;
    }
    #compactHomeMenu { transform:translateY(8px); }
    #compactHomeMenu[open], #compactHomeMenu[open]::backdrop {
      opacity:1; pointer-events:auto; animation:none;
      transition-duration:var(--m-base); transition-timing-function:var(--e-out);
    }
    #compactHomeMenu[open] { transform:none; }
    @starting-style {
      #compactHomeMenu[open], #compactHomeMenu[open]::backdrop { opacity:0; }
      #compactHomeMenu[open] { transform:translateY(8px); }
    }
  }
  @media(hover:hover) and (pointer:fine) {
    .ch-service:hover { transform:translateY(-2px); }
    .ch-links button:hover, .ch-filters button:not([aria-pressed=true]):hover,
    .ch-menu-content :is(a,button):not(.bc-tile):hover { background-color:var(--sky); color:var(--blue); }
  }
}
.ch-links button:focus-visible,.ch-filters button:focus-visible {
  outline:2px solid var(--blue); outline-offset:-3px;
}
.ch-filters [aria-pressed=true]:focus-visible { outline-color:white; }
.compact-home #mobileViewSwitch { display:none; }

.ch-flight { position:fixed; z-index:93; display:grid; width:26px; height:26px; border-radius:50%; place-items:center; font-size:16px; line-height:1; color:white; background:var(--blue); box-shadow:0 2px 10px #0b1b4d24; pointer-events:none; }
.compact-home .ch-browse { justify-content:space-between; }
@media (min-width:720px) { .compact-home .ch-browse { justify-content:flex-start; } }

@media(min-width:1024px) {
  .compact-home .home-before-feed { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; }
  .compact-home .home-before-feed>* { grid-column:1/-1; }
  .compact-home .home-before-feed>.catrow {
    display:grid;
    grid-template-columns:repeat(6,minmax(min-content,1fr));
    align-items:stretch;
    gap:8px;
    padding-block:4px 12px;
    overflow:visible;
  }
  .compact-home .catchip {
    height:auto;
    min-height:44px;
    padding:6px 8px;
    border-radius:12px;
    font-size:clamp(16px,.9vw,17px);
    line-height:1.25;
    white-space:normal;
    text-wrap:balance;
    overflow-wrap:break-word;
  }
  .compact-home .catchip::before { inset:0; }
  .compact-home .catchip .ci { width:22px; height:22px; flex-basis:22px; }
  .compact-home .ch-banner { gap:16px; }
  .compact-home :is(.ch-hero,.ch-service) {
    min-height:clamp(112px,7.5vw,144px);
    padding:16px clamp(16px,1.5vw,28px);
    border-radius:16px;
  }
  .compact-home .ch-hero img {
    width:34%;
    max-width:256px;
    object-position:50% 18%;
    mask-image:linear-gradient(90deg,transparent,#000 22%);
  }
  .compact-home .ch-hero>div { max-width:68%; }
  .compact-home .ch-hero h1 { font-size:clamp(26px,2.1vw,40px); line-height:1.12; }
  .compact-home .ch-hero p { margin-top:8px; font-size:clamp(16px,1vw,19px); line-height:1.35; }
  .compact-home .ch-service { gap:clamp(12px,1vw,20px); font-size:clamp(19px,1.35vw,25px); line-height:1.2; }
  .compact-home .ch-service svg { width:clamp(24px,1.6vw,30px); height:auto; aspect-ratio:1; padding:12px; }
  .compact-home .ch-service small { margin-top:6px; font-size:clamp(15px,.95vw,18px); line-height:1.35; }
  .compact-home .ch-links { gap:12px; padding-block:4px; }
  .compact-home .ch-links button { min-height:44px; padding-inline:12px; font-size:clamp(16px,1vw,18px); }
  .compact-home .home-before-feed>.ch-browse { grid-column:1; }
  .compact-home .home-before-feed>.toolbar { grid-column:2; grid-row:auto; justify-self:end; padding:6px 0; }
}

@media(min-width:1800px) {
  .compact-home .home-before-feed>.catrow { display:flex; flex-wrap:wrap; }
  .compact-home .catchip { flex:1 0 min-content; max-width:16rem; gap:6px; overflow-wrap:normal; }
}

.compact-home.has-cartbar #ch-tools { bottom:96px; }
@media(max-width:719px) {
  .compact-home.has-cartbar #ch-tools { bottom:calc(150px + env(safe-area-inset-bottom)); }
  html.mobile-controls-hidden .compact-home.has-cartbar #ch-tools { bottom:calc(16px + env(safe-area-inset-bottom)); }
}
