/* Loaded only from 1024px. Mobile and tablet rules are the unmodified v4 CSS. */
@media (min-width: 1024px) {
  :root { --page-gutter: clamp(24px, 2.5vw, 44px); }
  body[data-theme="dark"] {
    --feed: #24262b;
    --card: #2d3037;
    --nav: #24262b;
    --text: #f4f3f8;
    --muted: #aaaab6;
    --line: #ffffff12;
    --productBg: #eeebf0;
  }
  body[data-theme="light"] {
    --feed: #f7f7fa;
    --card: #ffffff;
    --nav: #f7f7fa;
    --text: #282433;
    --muted: #777281;
    --line: #32264312;
    --productBg: #f1eef5;
  }
  .app-shell { max-width: 1760px; }

  /* One practical row: identity, catalog, search, favorites, cart, theme. */
  .bottom-nav {
    display: grid;
    grid-template-columns: 170px 112px minmax(170px, 1fr) 92px 84px 42px;
    align-items: center;
    gap: 12px;
    height: 88px;
    padding: 18px var(--page-gutter);
    border-bottom: 0;
  }
  .desktop-brand { margin: 0; padding: 0; gap: 8px; font-size: 23px; letter-spacing: -.65px; }
  .desktop-brand .brand-mark { width: 28px; height: 28px; color: #bba0ed; }
  .bottom-nav > .nav-item[data-nav="home"] { display: none; }
  .bottom-nav > .nav-item[data-nav="catalog"] {
    grid-column: 2; grid-row: 1;
    flex-direction: row; gap: 8px; height: 48px; padding: 0 12px;
    color: #302040; background: #cdb8f4; font-weight: 750; font-size: 14px;
    border: 1px solid #cdb8f4;
  }
  .bottom-nav > .nav-item[data-nav="favs"] { grid-column: 4; grid-row: 1; }
  .bottom-nav > .nav-item[data-nav="cart"] { grid-column: 5; grid-row: 1; }
  .bottom-nav > .nav-item {
    flex-direction: column; gap: 4px; padding: 4px 0;
    font-size: 11px; height: 48px; min-height: 0; border-radius: 12px;
  }
  .bottom-nav > .nav-item.active { background: transparent; }
  .bottom-nav > .nav-item[data-nav="catalog"].active { background: #cdb8f4; }
  .nav-count { left: calc(50% + 9px); top: -1px; }
  .desktop-header-search {
    grid-column: 3; grid-row: 1;
    display: flex; height: 48px; width: 100%; max-width: none;
    min-width: 0; gap: 0; border: 2px solid #b69adf; border-radius: 14px;
    overflow: hidden; background: var(--card);
  }
  .desktop-header-search:focus-within { border-color: #d0b6fa; }
  .desktop-header-search .search-menu { display: none; }
  .desktop-header-search .search-wrap { border-radius: 0; background: transparent; color: var(--text); padding: 0 14px; }
  .desktop-header-search .search-input { color: var(--text); font-size: 16px; }
  .desktop-header-search .search-input::placeholder { color: var(--muted); }
  .desktop-header-search .search-wrap .icon { color: var(--muted); }
  .desktop-header-search .search-options {
    width: 48px; flex-shrink: 0; border: 0; border-radius: 0;
    background: #cdb8f4; color: #302040;
  }
  .desktop-theme {
    grid-column: 6; grid-row: 1;
    display: grid; place-items: center; width: 42px; height: 42px;
    border: 1px solid var(--line); border-radius: 50%;
    background: var(--card); color: var(--text);
    transition: transform 160ms var(--ease-press), background-color 240ms ease;
  }
  .desktop-theme:active { transform: scale(.97); }

  /* Compact category and address line, then three independent story banners. */
  .masthead {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 18px 24px;
    padding: 0 var(--page-gutter) 6px;
    background: transparent; border-radius: 0;
  }
  .masthead::before, .masthead .headbar { display: none; }
  .shortcuts {
    grid-column: 1; grid-row: 1;
    display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-start;
    min-width: 0; align-self: center;
  }
  .shortcut { flex-direction: row; gap: 7px; padding: 8px 10px; color: var(--text); border-radius: 10px; }
  .shortcut-icon { width: 22px; height: 22px; background: transparent; color: #b7a0d9; border-radius: 0; }
  .shortcut-icon .icon { width: 19px; height: 19px; }
  .shortcut-name { font-size: 13px; font-weight: 600; }
  .address-btn { grid-column: 2; grid-row: 1; padding: 6px 0; max-width: none; background: transparent; color: var(--text); }
  .address-btn .addr-icon { background: transparent; color: #b7a0d9; }
  .address-btn .chevron { color: var(--muted); }
  .addr-overline { display: none; }
  .addr-main { font-size: 12px; font-weight: 600; }
  .promo-area { grid-column: 1 / -1; grid-row: 2; }
  .promo-scroll { gap: 18px; }
  .promo { height: 190px; border-radius: 20px; border: 0; }
  .promo-copy { top: 20px; left: 22px; right: 30%; }
  .promo-title { font-size: 27px; line-height: 1.03; letter-spacing: -.8px; margin: 9px 0; }
  .promo-eyebrow { font-size: 9px; }
  .promo-subtitle { font-size: 12px; max-width: 210px; }
  .promo-link { margin-top: 12px; padding: 8px 11px; font-size: 12px; }

  .feed { padding-top: 26px; }
  .section-heading { font-size: 27px; letter-spacing: -.7px; }
  .section-title-line { margin-bottom: 3px; }
  .section-caption { font-size: 11px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.3px; }
  .products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 18px; margin-top: 18px; }
  .product { background: transparent; border: 0; border-radius: 16px; box-shadow: none; overflow: visible; }
  .photo-btn { border-radius: 16px; aspect-ratio: .88; }
  .product-details { padding: 12px 2px 0; gap: 4px; }
  .price-row { order: -1; margin: 0; min-height: 29px; gap: 7px; }
  .price { font-size: 24px; letter-spacing: -.65px; }
  .old-price { font-size: 12px; }
  .product-name { font-size: 14px; font-weight: 550; min-height: 38px; line-height: 1.35; }
  .product-meta { font-size: 11px; }
  .card-controls { height: 38px; margin-top: 7px; }
  .counter button { width: 40px; }
  .add-button { font-size: 12px; border-radius: 10px; }
  .counter { border-radius: 10px; }
  .heart-btn { top: 9px; right: 9px; width: 32px; height: 32px; }
  .sale-tag { top: 10px; left: 10px; font-size: 10px; padding: 5px 6px; }

  .inner-header { background: transparent; padding-top: 18px; padding-bottom: 12px; }
  .inner-title { font-size: 28px; }
  .inner-actions [data-theme] { display: none; }
  .feed--catalog { display: block; padding-top: 14px; }
  .catalog-toolbar { justify-content: flex-end; max-width: none; }
  .toolbar-select { flex: 0 1 235px; }
  .cat-chips { margin-top: 12px; }
  .cat-chip { padding: 9px 16px; background: var(--card); color: var(--text); border-color: var(--line); }
  .cat-chip.active { background: #cdb8f4; color: #302040; }
  body[data-theme="light"] .cat-chip.active { background: #cdb8f4; color: #302040; }
  .feed--cart .cart-summary { top: 108px; }
  .mid-banner { min-height: 155px; margin-top: 34px; }
  .collection-header { margin-top: 0; }

  @media (min-width: 1280px) {
    .bottom-nav { grid-template-columns: 185px 120px minmax(240px, 1fr) 94px 88px 42px; gap: 16px; }
    .products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  }
  @media (min-width: 1600px) {
    .products { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .promo { height: 210px; }
    .promo-title { font-size: 31px; }
  }
  @media (hover: hover) and (pointer: fine) {
    .shortcut:hover { background: var(--card); }
    .shortcut:hover .shortcut-icon { background: transparent; }
    .bottom-nav > .nav-item[data-nav="catalog"]:hover { background: #dbcaf8; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }
}
