/* Shared web interface refinements. Keep logo and brochure artwork on white. */
:root {
  --muted: #526477;
  --muted-secondary: #526477;
  --line: #dbe5ec;
  --soft: #eef5f8;
  --ui-radius: 18px;
}
[data-theme="dark"] {
  --muted: #b0c0d0;
  --muted-secondary: #b0c0d0;
  --line: #334457;
  --soft: #111d2a;
}
body { font-size: 16px; line-height: 1.5; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--primary); outline-offset: 4px;
}
button { cursor: pointer; }
button:disabled { cursor: default; }
.page-width, .page-shell { width: min(1120px, calc(100% - 48px)); }
.site-header { height: auto; background: var(--paper); }
.site-header .header-inner {
  width: min(1200px, calc(100% - 48px)); min-height: 84px; height: auto;
  grid-template-columns: auto 1fr auto; gap: 28px;
}
.header-inner > .brand .brand-art { width: clamp(210px, 21vw, 270px); height: auto; max-height: 64px; object-fit: contain; }
.main-nav { justify-self: center; gap: 6px; padding: 5px; border-radius: 16px; background: var(--soft); }
.site-header .main-nav a { font-size: 14px; font-weight: 700; padding: 12px 16px; white-space: nowrap; color: var(--muted); border-radius: 12px; }
.site-header .main-nav a.active { color: var(--on-primary); background: var(--primary); }
.site-header .main-nav a:not(.active):hover { color: var(--primary); background: var(--paper); }
.header-actions { gap: 8px; }
[data-app-link][aria-disabled="true"] { cursor: default; }
.header-actions > .icon-button { width: 44px; height: 44px; border-radius: 12px; }
.header-actions > .m-search-toggle { display: grid; }
.header-actions > .exchange-button { display: none; }
.premium-button { min-height: 44px; font-size: 13px; padding-inline: 14px; border-radius: 12px; }
.market-search-section { padding-block: 24px; }
.page-kicker { font-size: 12px; letter-spacing: 1.2px; color: var(--primary); font-weight: 800; }
.market-search-section .m-market-search { display: block; padding: 0; margin: 0; background: none; border: 0; }
.search-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.market-search-section .m-search-field { display: flex; align-items: center; min-height: 60px; padding: 4px 8px 4px 18px; gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 6px 24px #014c7805; }
.m-search-field:focus-within { border-color: var(--primary); outline: 2px solid var(--primary); outline-offset: 2px; }
.market-search-section .m-search-field > svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; }
.market-search-section .m-search-field input { flex: 1; width: 100%; min-width: 0; min-height: 48px; border: 0; background: transparent; color: var(--ink); font-size: 16px; padding: 0; outline: none; }
input::placeholder { color: var(--muted); opacity: 1; }
.market-search-section .m-search-field button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 10px; background: var(--soft); color: var(--muted); }
.m-search-field button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.market-search-section #m-search-status { font-size: 13px; margin: 0; color: var(--muted); padding: 0; }
.market-search-section #m-search-status:not(:empty) { margin-top: 10px; }
.market-strip { position: static; background: var(--soft); border-color: var(--line); }
.strip-inner { min-height: 88px; height: auto; padding-block: 12px; gap: 20px; overflow: visible; }
.strip-label-copy strong { font-size: 13px; line-height: 1.35; letter-spacing: 0; }
.strip-scroll { min-width: 0; gap: 10px; }
.strip-logo + .strip-logo { margin-left: 0; }
.empty-favorites { white-space: normal; font-size: 14px; color: var(--muted); }
.strip-scroll:has(.empty-favorites) { overflow: visible; height: auto; }
.strip-scroll .empty-favorites { flex: 1; white-space: normal; line-height: 1.5; min-width: 0; }
.strip-logo { background: #fff; border: 1px solid #dbe5ec; border-radius: 12px; min-width: 88px; min-height: 52px; padding: 8px; }
.strip-logo img { max-width: 76px; max-height: 36px; }
.market-tiles { max-width: 1120px; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 26px 56px; gap: 20px; }
#anasayfa::before { pointer-events: none; opacity: .65; }
.market-tiles .market-tile, [data-theme="dark"] .market-tiles .market-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: start;
  min-height: 220px; height: auto; padding: 16px; gap: 0; background: var(--paper) !important;
  border: 1px solid var(--line); border-radius: var(--ui-radius); box-shadow: 0 3px 14px #014c7804;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.market-tile .market-logo-surface { width: 100%; display: grid; place-items: center; flex-shrink: 0; min-height: 128px; height: 128px; padding: 8px; margin-top: 24px; margin-bottom: 12px; border-radius: 12px; background: #fff; }
.market-logo-surface.is-logo-fallback::after { content: attr(data-fallback); display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: #eef5f8; color: #014c78; font-size: 25px; font-weight: 800; }
.market-tiles .market-tile img { width: 180px; max-width: 100%; height: 80px; object-fit: contain; object-position: center; filter: none; mix-blend-mode: normal; }
.market-tile-name { font-size: 15px; font-weight: 800; color: var(--ink); text-align: center; line-height: 1.4; margin-bottom: 4px; }
.market-tile-hint { font-size: 13px; color: var(--muted); }
.market-tiles .market-favorite { width: 44px; height: 44px; top: 8px; right: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 50%; color: var(--muted); z-index: 2; box-shadow: 0 2px 8px #00000008; }
.market-favorite[aria-pressed="true"], .catalog-heart[aria-pressed="true"] { color: #ba1749; background: #fff0f5; border-color: #edbfd0; }
.market-tiles .market-favorite[aria-pressed="true"] { color: #ba1749; background: #fff0f5; border-color: #edbfd0; }
.market-tiles .market-tile.is-favorite { border-color: var(--primary); }
.market-open-link { border-radius: var(--ui-radius); }
.market-tile:focus-within { box-shadow: 0 0 0 2px var(--primary); }
.m-search-empty { display: block; padding: 30px; margin-block: 24px; border: 1px dashed var(--line); background: var(--paper); border-radius: var(--ui-radius); text-align: center; }
.m-search-empty strong { font-size: 19px; }
.m-search-empty p { color: var(--muted); font-size: 15px; }
.page-shell { padding-top: 30px; padding-bottom: 60px; }
.page-main:not(.catalog-listing-page) { padding-top: 18px; }
.page-main:not(.catalog-listing-page) .page-shell { padding-top: 14px; }
.page-shell > .content-page { margin-inline: auto; }
.page-main:not(.catalog-listing-page) .page-back { margin-bottom: 8px; }
.page-shell > .shopping-page,
.page-shell > .premium-page { width: 100%; max-width: none; }
.legal-page .page-card,
.about-card,
.contact-card { width: 100%; max-width: none; }
.page-main.catalog-listing-page { background: var(--bg); }
.catalog-listing-page .catalog-page { width: 100%; margin-inline: auto; }
.catalog-listing-page .page-heading { text-align: center; }
.catalog-listing-page .page-back { display: flex; width: fit-content; margin-inline: auto; }
.catalog-listing-page .catalog-search { max-width: 760px; margin: 28px auto; }
.catalog-listing-page .catalog-storage-note { text-align: center; }
.page-heading h1 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.25; letter-spacing: -1px; }
.page-heading p { font-size: 16px; color: var(--muted); }
.page-back { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.catalog-search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, .45fr); gap: 8px 20px; margin: 24px 0 20px; }
.catalog-search label { font-size: 14px; font-weight: 700; }
.catalog-search label[for="catalog-query"] { grid-column: 1; grid-row: 1; }
.catalog-search label[for="catalog-period"] { grid-column: 2; grid-row: 1; }
.catalog-search input, .catalog-search select { width: 100%; min-width: 0; height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 16px; }
.catalog-search input { grid-column: 1; grid-row: 2; }
.catalog-search select { grid-column: 2; grid-row: 2; }
.catalog-filters { gap: 10px; margin-block: 16px; }
.catalog-filters button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; width: auto; min-width: 70px; min-height: 48px; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 700; }
.catalog-filters button img { width: 46px; height: 26px; padding: 3px; background: #fff; border-radius: 4px; object-fit: contain; }
.catalog-filters button[aria-pressed="true"] { border-color: var(--primary); background: var(--soft); color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.catalog-results { font-size: 14px; color: var(--muted); margin: 18px 0; }
.catalog-grid { gap: 20px; }
.catalog-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--ui-radius); overflow: hidden; background: var(--paper); }
.catalog-card .catalog-cover { padding: 10px; border: 0; border-radius: 0; box-shadow: none; background: #fff; }
.catalog-open { border-radius: 10px; }
.catalog-card .catalog-heart { width: 44px; height: 44px; top: 16px; right: 16px; }
.catalog-page-count { font-size: 12px; padding: 5px 10px; border-radius: 8px; }
.catalog-card-meta { padding: 18px; }
.catalog-card-market { display: none; }
.catalog-card-meta h2 { font-family: Manrope, sans-serif; font-size: 17px; line-height: 1.45; margin: 0 0 10px; letter-spacing: -.3px; }
.catalog-card-meta h2 a { display: block; }
.catalog-card-dates { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; }
.catalog-card .catalog-time { justify-content: start; font-size: 13px; font-weight: 700; margin: 12px 0 0; padding: 0; min-height: 24px; }
.catalog-time[data-state="active"] { color: #187145; }
.catalog-time[data-state="ending"] { color: #b33d17; }
.catalog-time[data-state="upcoming"] { color: #225da5; }
.catalog-time[data-state="expired"], .catalog-time[data-state="unknown"] { color: var(--muted); }
[data-theme="dark"] .catalog-time[data-state="active"] { color: #8ee3b5; }
[data-theme="dark"] .catalog-time[data-state="ending"] { color: #ffb694; }
[data-theme="dark"] .catalog-time[data-state="upcoming"] { color: #a6cdff; }
.catalog-new { display: none !important; }
.catalog-empty { border-radius: var(--ui-radius); }
.catalog-empty p, .catalog-source-note, .catalog-storage-note { font-size: 14px; line-height: 1.65; color: var(--muted); }
.bv-title { white-space: normal; text-overflow: clip; font-size: 18px; }
.bv-kicker { font-size: 11px; }
.bv-button { font-size: 14px; }
.bv-page-arrow { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 3px 16px #0002; }
.bv-page-indicator { font-size: 14px; font-weight: 800; }
.bv-pagination { background: var(--soft); }
.bv-hint { font-size: 13px; }
.bv-thumbnail { min-width: 44px; width: 44px; }
.bv-thumbnail span { font-size: 11px; min-width: 18px; }
.bv-tools { background: var(--paper); gap: 10px; }
.bv-zoom-level { font-size: 13px; }
.bv-share { color: var(--on-primary); background: var(--primary); border-color: var(--primary); }
.bv-share-panel label, .bv-share-note { font-size: 13px; }
.footer-brand p, .footer-links a, .footer-links b, .footer-social > b { font-size: 14px; line-height: 1.65; }
.footer-links a { min-height: 28px; }
.footer-bottom { font-size: 12px; }
.saved-count { position: absolute; top: 5px; left: calc(50% + 8px); min-width: 20px; padding: 1px 5px; border-radius: 10px; color: var(--on-primary); background: var(--primary); font-size: 11px; line-height: 18px; }
.shopping-page { max-width: 850px; }
.shopping-summary { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.shopping-card-actions { flex-wrap: wrap; justify-content: flex-end; }
.shopping-secondary-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 15px 0 2px; }
.shopping-secondary-actions span { color: var(--muted); font-size: 12px; }
.shopping-entry-field label span, .shopping-bulk-defaults label span { color: var(--muted); font-weight: 500; }
.shopping-entry-row select, .shopping-bulk-defaults select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.shopping-entry-row { grid-template-columns: minmax(140px, 1.35fr) minmax(105px, .8fr) minmax(130px, 1fr) minmax(145px, 1fr) auto; }
.shopping-item { grid-template-columns: 22px minmax(0, 1fr) minmax(64px, auto) auto; }
.shopping-item-details { min-width: 0; display: grid; gap: 5px; }
.shopping-item-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.shopping-item-tags small { padding: 2px 7px; border-radius: 10px; background: var(--soft); color: var(--muted-secondary); font-size: 10px; }
.shopping-item-actions { display: inline-flex; align-items: center; gap: 5px; }
.edit-shopping-item { min-height: 44px; padding: 6px 8px; border: 0; border-radius: 7px; background: var(--soft); color: var(--primary); cursor: pointer; font-size: 12px; font-weight: 700; }
.shopping-completed-heading { margin: 14px 3px 2px; color: var(--muted-secondary); font-size: 12px; font-weight: 800; }
.shopping-bulk-dialog { width: min(680px, calc(100% - 28px)); max-height: min(760px, calc(100dvh - 28px)); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px #0004; }
.shopping-bulk-dialog::backdrop { background: #061424aa; backdrop-filter: blur(4px); }
.shopping-bulk-shell { display: grid; gap: 16px; padding: 24px; }
.shopping-bulk-heading, .shopping-bulk-preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.shopping-bulk-heading h2 { margin: 5px 0 0; font-size: 23px; }
.shopping-dialog-close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--muted-secondary); cursor: pointer; font-size: 25px; line-height: 1; }
.shopping-bulk-intro, .shopping-bulk-preview-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.shopping-bulk-label, .shopping-bulk-defaults label { color: var(--ink); font-size: 13px; font-weight: 700; }
.shopping-bulk-dialog textarea { width: 100%; min-height: 145px; padding: 12px; resize: vertical; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.55; }
.shopping-bulk-dialog textarea:focus, .shopping-bulk-row input:focus, .shopping-entry-row select:focus { border-color: var(--turquoise); outline: 0; box-shadow: 0 0 0 3px rgba(0,197,212,.12); }
.shopping-bulk-defaults { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shopping-bulk-defaults > div { display: grid; gap: 7px; }
.shopping-bulk-preview-heading { align-items: center; }
.shopping-bulk-preview-heading h3 { margin: 0 0 4px; font-size: 16px; }
.shopping-bulk-preview { display: grid; gap: 7px; max-height: 270px; overflow: auto; padding: 3px; }
.shopping-bulk-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(90px, .45fr); align-items: center; gap: 8px; }
.shopping-bulk-row input[type="text"] { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; }
.shopping-bulk-empty { margin: 0; padding: 18px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; font-size: 13px; }
.shopping-bulk-actions { display: flex; justify-content: flex-end; gap: 9px; }
.shopping-bulk-actions .primary-button { min-height: 48px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.shopping-bulk-actions .primary-button:disabled { opacity: .5; cursor: not-allowed; }
.shopping-plus-button { width: 48px; height: 48px; }
.shopping-card .secondary-button, .shopping-entry-row .primary-button { min-height: 44px; font-size: 14px; }
.shopping-add-form label { font-size: 14px; }
.shopping-entry-row input { min-height: 48px; font-size: 16px; }
.shopping-list-headings { font-size: 12px; }
.shopping-item-quantity, .shopping-page .storage-note { font-size: 13px; }
.remove-shopping-item { min-height: 44px; min-width: 44px; font-size: 13px; }
.shopping-item input { width: 22px; height: 22px; }
.shopping-confirm-dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px #0004; }
.shopping-confirm-dialog::backdrop { background: #061424aa; backdrop-filter: blur(4px); }
.shopping-confirm-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff0f0; color: #b4233d; }
.shopping-confirm-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.shopping-confirm-dialog h2 { margin: 18px 0 10px; font-size: 22px; line-height: 1.35; }
.shopping-confirm-dialog p { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0; }
.shopping-confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.shopping-confirm-actions button { flex: 1; min-height: 48px; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 700; }
.shopping-confirm-delete { border: 1px solid #b4233d; background: #b4233d; color: #fff; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .market-tiles .market-tile:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 24px #014c7810; }
  .catalog-card:hover { border-color: var(--primary); }
}
@media (max-width: 1050px) and (min-width: 561px) {
  .site-header .header-inner { gap: 16px; }
  .site-header .main-nav a { padding-inline: 12px; font-size: 13px; }
  .main-nav { gap: 4px; }
  .header-inner > .brand .brand-art { width: 190px; }
}
@media (max-width: 800px) and (min-width: 561px) {
  .site-header .header-inner { grid-template-columns: auto 1fr; gap: 12px; padding-block: 10px; }
  .header-actions { justify-self: end; }
  .header-inner > .main-nav { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 800px) {
  .market-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 560px) {
  .page-width, .page-shell { width: calc(100% - 32px); }
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .site-header .header-inner { width: calc(100% - 16px); min-height: 72px; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 6px; }
  .site-header .header-inner > .brand { padding: 0; }
  .site-header .header-inner > .brand .brand-art { width: min(132px, 100%); max-height: 44px; }
  .site-header .m-menu-toggle { width: 36px; height: 44px; }
  .m-close-button { width: 44px; height: 44px; }
  .m-menu-group > a { font-size: 14px; }
  .m-drawer-nav { margin-top: 20px; }
  .m-drawer-eyebrow, .m-drawer-hero small, .m-drawer-footer, .m-drawer-footer span { font-size: 12px; }
  .site-header .header-actions { gap: 2px; }
  .site-header .header-actions > .icon-button { width: 36px; height: 44px; }
  .site-header .header-actions > .exchange-button { display: none; }
  .site-header .header-actions > .app-download, .site-header .header-actions > .premium-button { display: grid; width: 36px; height: 44px; }
  .header-actions > .icon-button svg { width: 21px; height: 21px; }
  .market-search-section { padding-block: 18px; }
  .market-search-section .m-search-field { padding-left: 12px; gap: 8px; min-height: 56px; }
  .market-search-section .m-search-field > svg { width: 20px; height: 20px; }
  
  .strip-inner { width: calc(100% - 32px); padding-inline: 0; gap: 12px; min-height: 86px; }
  .strip-label { gap: 6px; }
  .strip-label-copy strong { font-size: 12px; }
  .empty-favorites { font-size: 13px; line-height: 1.5; }
  .strip-label-spark { display: none; }
  .market-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 20px; }
  .market-tiles .market-tile, [data-theme="dark"] .market-tiles .market-tile { min-height: 204px; padding: 10px; border-radius: 16px; }
  .market-tile .market-logo-surface { min-height: 116px; height: 116px; padding: 0; margin-top: 28px; margin-bottom: 12px; }
  .market-tiles .market-tile img { width: 148px; height: 72px; }
  .market-tile-name { font-size: 14px; }
  .market-tile-hint { font-size: 12px; }
  .market-tiles .market-favorite { top: 5px; right: 5px; }
  .m-search-empty { padding: 22px 16px; }
  .mobile-bottom-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); min-height: 72px; height: auto; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px #014c7808; }
  .mobile-bottom-nav a { position: relative; min-height: 64px; gap: 5px; padding: 6px 2px; border-radius: 12px; font-size: 11px; line-height: 1.3; color: var(--muted); }
  .mobile-bottom-nav a[aria-current="page"] { background: var(--soft); color: var(--primary); font-weight: 800; }
  .mobile-bottom-nav svg { width: 24px; height: 24px; }
  .mobile-bottom-nav a > span:not(.saved-count) { display: flex; align-items: center; justify-content: center; min-height: 29px; max-width: 100%; white-space: normal; text-align: center; overflow-wrap: normal; }
  .mobile-bottom-nav { inset-inline: 8px; gap: 2px; }
  .shopping-card { padding: 18px; }
  .shopping-summary { font-size: 12px; }
  .shopping-card .page-card-heading { align-items: center; flex-wrap: wrap; gap: 12px; }
  .shopping-card-actions { margin-left: auto; }
  .shopping-add-form { padding: 14px; }
  .shopping-entry-row { grid-template-columns: 1fr; gap: 14px; }
  .shopping-list-headings, .shopping-item { grid-template-columns: 22px minmax(0, 1fr) minmax(40px, auto) auto; gap: 8px; padding-inline: 8px; }
  .shopping-item-quantity { max-width: 66px; padding: 4px 6px; font-size: 12px; }
  .empty-shopping-list { font-size: 14px; line-height: 1.65; }
  .shopping-item-actions { flex-direction: column; align-items: stretch; }
  .shopping-item-actions button { min-width: 48px; }
  .shopping-bulk-shell { padding: 18px; }
  .shopping-bulk-defaults { grid-template-columns: 1fr; }
  .shopping-bulk-row { grid-template-columns: 22px minmax(0, 1fr); }
  .shopping-bulk-row input[type="text"]:last-child { grid-column: 2; }
  .page-shell { padding-top: 20px; }
  .page-heading p { font-size: 15px; }
  .catalog-search { grid-template-columns: 1fr; gap: 8px; }
  .catalog-search label[for="catalog-period"] { grid-column: 1; grid-row: 3; margin-top: 8px; }
  .catalog-search select { grid-column: 1; grid-row: 4; }
  .catalog-filters { flex-wrap: nowrap; overflow-x: auto; padding: 5px 4px 10px; margin-inline: -4px; scrollbar-width: thin; }
  .catalog-filters button { flex: none; font-size: 13px; padding: 8px 12px; }
  .catalog-grid { gap: 14px; }
  .catalog-card .catalog-cover { padding: 6px; }
  .catalog-open { min-height: 0; }
  .catalog-card .catalog-heart { top: 10px; right: 10px; }
  .catalog-card-meta { padding: 12px; }
  .catalog-card-meta h2 { font-size: 15px; line-height: 1.4; }
  .catalog-card-dates { font-size: 12px; }
  .catalog-new { top: 10px; left: 10px; padding: 5px 8px; }
  .catalog-card .catalog-time { font-size: 12px; align-items: start; }
  .catalog-time svg { flex: none; }
  .bv-header { padding: 12px; gap: 8px; }
  .bv-title { font-size: 15px; line-height: 1.4; }
  .bv-kicker { font-size: 10px; letter-spacing: .8px; }
  .bv-close span { display: none; }
  .bv-header-actions { gap: 6px; }
  .bv-tools { padding-inline: 10px; }
  .bv-button { padding: 9px; font-size: 13px; }
  .bv-hint { font-size: 12px; }
  .footer-main { gap: 24px 16px; }
  .footer-bottom { min-height: 48px; height: auto; }
}
@media (max-width: 360px) {
  .site-header .header-inner { grid-template-columns: 44px minmax(0, 1fr); gap: 6px 12px; padding-block: 8px; }
  .site-header .header-inner > .brand { width: auto; justify-self: start; }
  .site-header .header-inner > .brand .brand-art { width: 132px; }
  .site-header .header-actions { grid-column: 1 / -1; grid-row: 2; justify-self: end; gap: 6px; }
  .site-header .m-menu-toggle, .site-header .header-actions > .icon-button, .site-header .header-actions > .premium-button { width: 44px; height: 44px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card-meta h2 { font-size: 17px; }
  .bv-tools { flex-wrap: wrap; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


/* Final responsive pass: compact one-row mobile header and requested catalog grid. */
html, body { max-width: 100%; overflow-x: hidden; }
@media (min-width: 801px) {
  .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
}
@media (max-width: 800px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
}
@media (max-width: 560px) {
  .site-header { height: 64px; min-height: 64px; }
  .site-header .header-inner { width: 100%; height: 64px; min-height: 64px; padding-inline: 10px; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; }
  .site-header .header-inner > .brand { grid-column: 2; grid-row: 1; justify-self: center; width: auto; min-width: 0; padding: 0; }
  .site-header .header-inner > .brand .brand-art { width: min(50vw, 200px); max-width: 100%; height: auto; max-height: 48px; }
  .site-header .m-menu-toggle { grid-column: 1; grid-row: 1; width: 40px; height: 42px; }
  .site-header .header-actions { grid-column: 3; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; min-width: 0; gap: 3px; }
  .site-header .header-actions > .m-search-toggle, .site-header .header-actions > .premium-button { display: none !important; }
  .site-header .header-actions > .exchange-button { display: none !important; }
  .site-header .header-actions > .icon-button, .site-header .header-actions > .app-download { width: 36px; height: 42px; flex: 0 0 36px; padding: 0; }
  .site-header .header-actions > .icon-button svg { width: 19px; height: 19px; }
  .catalog-listing-page .page-heading { text-align: left; }
  .catalog-listing-page .page-back { margin-inline: 0; }
  .catalog-listing-page .catalog-search { max-width: none; margin: 22px 0 18px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
}
@media (max-width: 360px) {
  .site-header .header-inner { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 5px; padding-inline: 7px; }
  .site-header .header-inner > .brand .brand-art { width: min(50vw, 176px); }
  .site-header .m-menu-toggle { width: 36px; }
  .site-header .header-actions > .icon-button, .site-header .header-actions > .app-download { width: 32px; height: 40px; flex-basis: 32px; }
  .site-header .header-actions { gap: 1px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
}

/* Catalog listings follow the market detail layout: heading and search stay left aligned. */
.catalog-listing-page .page-heading { text-align: left; }
.catalog-listing-page .catalog-search { max-width: 760px; margin: 28px 0 24px; }

.catalog-page-count { display: none !important; }

/* Final layout pass: keep listing pages close to the header, use the same
   background as the home view, and prevent footer/header overflow on phones. */
html, body { max-width: 100%; overflow-x: clip; }
.page-main.catalog-listing-page { background: transparent; }
.page-main.catalog-listing-page::before { background-attachment: fixed; }
.page-main.catalog-listing-page { padding-top: 18px; }
.catalog-listing-page .page-shell { padding-top: 14px; }
.catalog-listing-page .page-back { margin: 0 0 14px; }
.catalog-listing-page .page-heading { margin-bottom: 18px; text-align: left; }
.catalog-listing-page .catalog-search { margin: 18px 0 22px; }
.catalog-listing-page .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 18px; }
.footer-links > div { min-width: 0; }
.footer-links a { overflow-wrap: anywhere; }

@media (max-width: 900px) and (min-width: 561px) {
  .catalog-listing-page .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .site-header .header-inner { width: 100%; padding-inline: 8px; }
  .catalog-listing-page .page-shell { padding-top: 8px; }
  .page-main.catalog-listing-page { padding-top: 12px; }
  .catalog-listing-page .page-back { margin-bottom: 10px; }
  .catalog-listing-page .page-heading { margin-bottom: 14px; }
  .catalog-listing-page .catalog-search { margin: 14px 0 18px; }
  .catalog-listing-page .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }

  .site-footer { overflow: hidden; }
  .site-footer .footer-main { width: calc(100% - 32px); padding: 30px 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .site-footer .footer-brand { grid-column: 1 / -1; grid-row: auto; justify-self: stretch; text-align: left; }
  .site-footer .footer-brand .brand { justify-content: flex-start; margin-inline: 0; }
  .site-footer .footer-brand p { max-width: 30ch; text-align: left; }
  .site-footer .footer-links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .site-footer .footer-links > div { align-items: flex-start; justify-self: stretch; text-align: left; gap: 7px; }
  .site-footer .footer-links b, .site-footer .footer-social > b { font-size: 13px; }
  .site-footer .footer-links a { min-height: 32px; font-size: 12px; line-height: 1.4; }
  .site-footer .footer-social { grid-column: 1 / -1; grid-row: auto; justify-self: start; align-items: flex-start; text-align: left; }
  .site-footer .social-icons { justify-content: flex-start; }
  .site-footer .footer-bottom { width: calc(100% - 32px); min-height: 58px; height: auto; padding-block: 12px; gap: 5px 12px; flex-wrap: wrap; justify-content: flex-start; line-height: 1.4; }
  .site-footer .footer-bottom span { max-width: 100%; }
}

@media (max-width: 360px) {
  .site-footer .footer-main, .site-footer .footer-bottom { width: calc(100% - 24px); }
  .site-footer .footer-links { gap: 12px; }
  .site-footer .footer-links a { font-size: 11px; }
}
