.storefront-topbar {
  background: white;
  color: var(--ink);
  border-bottom: 1px solid #e8efeb;
}
.storefront-topbar .topbar-main { min-height: 57px; padding-block: 3px; }
.storefront-topbar .actions .icon { background: #e8faef; color: var(--action); border: 1px solid #a5eabd; }

.home-discovery { position: relative; padding: 0 var(--gutter) 11px; }
.home-search {
  display: flex;
  min-height: 46px;
  padding: 3px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: white;
}
.home-search label { display: flex; align-items: center; flex: 1; min-width: 0; gap: 8px; padding: 0 6px 0 10px; }
.home-search svg { width: 20px; height: 20px; color: var(--action); }
.home-search input { width: 100%; min-width: 0; height: 100%; padding: 0; background: none; border: 0; font-size: 16px; color: inherit; line-height: 1.4; letter-spacing: -.01em; }
.home-search input::placeholder { color: #5b665e; opacity: 1; }
.home-search:focus-within { border-color: var(--action); box-shadow: 0 0 0 2px #03c75a37; }
.home-search input:focus-visible { outline: none; }
.home-search button { min-width: 60px; padding-inline: 10px; border-radius: 8px; background: var(--accent); color: #082618; font-size: 15px; font-weight: 750; }

.home-search-preview {
  position: absolute;
  z-index: 2;
  top: calc(100% - 6px);
  inset-inline: var(--gutter);
  max-height: min(560px, calc(100dvh - 185px));
  padding: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #a5eabd;
  border-radius: 14px;
  background: white;
  box-shadow: 0 12px 30px #10281625;
}
.preview-brand, .preview-listing { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; line-height: 1.32; }
.preview-brand { background: #e8faef; border-radius: 8px; margin-block: 3px; }
.preview-brand img { width: 44px; height: 32px; object-fit: contain; }
.preview-listing img { width: 56px; height: 43px; border-radius: 5px; object-fit: cover; }
.home-search-preview strong, .home-search-preview small { display: block; }
.home-search-preview strong { font-size: 14px; font-weight: 690; overflow-wrap: anywhere; }
.home-search-preview small { color: var(--action); font-size: 12px; }
.home-search-preview svg { width: 16px; height: 16px; color: var(--action); }
.preview-heading { font-size: 12px; font-weight: 650; color: var(--muted); padding: 8px 8px 3px; }
.preview-empty { font-size: 14px; padding: 5px 8px 10px; }
.preview-results { display: grid; gap: 4px; }
:is(.home-search-preview, .finder-preview) .preview-result { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 16px; padding: 12px; border: 0; border-radius: 10px; line-height: 1.5; }
.preview-result:is(:hover, :focus-visible) { background: #f0faf4; }
.preview-result:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
:is(.home-search-preview, .finder-preview) .preview-result > img, .preview-no-image { width: 100px; height: 78px; border-radius: 8px; background: #f3f7f4; object-fit: cover; }
:is(.home-search-preview, .finder-preview) .preview-model > img { object-fit: contain; }
.preview-no-image { display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.preview-result-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; min-width: 0; }
.preview-result-copy > :is(strong, small) { grid-column: 1; }
:is(.home-search-preview, .finder-preview) .preview-maker { font-size: 12px; color: var(--muted); }
:is(.home-search-preview, .finder-preview) .preview-result strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; font-weight: 730; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
:is(.home-search-preview, .finder-preview) .preview-state { color: var(--muted); font-size: 12px; }
.preview-price-line, .preview-result-copy > .preview-price { grid-column: 2; grid-row: 2 / 4; align-self: center; text-align: right; }
.preview-price-line + .preview-price-line { grid-row: 4; }
.preview-price { color: var(--action); font-size: 17px; font-weight: 750; word-break: keep-all; }
.preview-price-line small { font-size: 11px; color: var(--muted); }
@media (max-width: 560px) {
  :is(.home-search-preview, .finder-preview) .preview-result { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 10px 5px; }
  :is(.home-search-preview, .finder-preview) .preview-result > img, .preview-no-image { width: 72px; height: 68px; }
  .preview-result-copy { grid-template-columns: minmax(0, 1fr); }
  .preview-price-line, .preview-result-copy > .preview-price { grid-column: 1; grid-row: auto; text-align: left; }
  .preview-price-line + .preview-price-line { grid-row: auto; }
  :is(.home-search-preview, .finder-preview) .preview-result strong { font-size: 15px; }
  .preview-price { font-size: 15px; }
}

@media (any-pointer: fine) {
  [data-home-drag], [data-home-drag] :is(a, img, button:not(.save)) { cursor: grab; }
  .storefront [data-home-drag].is-dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; scroll-behavior: auto; }
  [data-home-drag].is-dragging * { cursor: grabbing; }
}

.gear-links, .service-links {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(8px, 1.5vw, 13px);
  min-width: 0;
  overflow: auto hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
  padding: 3px 2px 8px;
}
.gear-link, .service-link { display: grid; justify-items: center; min-width: 0; line-height: 1.2; text-align: center; word-break: keep-all; }
.gear-link { flex: 1 0 88px; gap: 7px; align-content: start; scroll-snap-align: start; }
.gear-link strong { font-size: clamp(12px, 3.4vw, 16px); font-weight: 720; white-space: nowrap; }
.gear-link small { font-size: 12px; color: #505c55; }
.gear-image {
  position: relative;
  display: block;
  width: clamp(65px, 13vw, 94px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(ellipse at 44% 26%, #f9fcfa, #eaf4ee);
}
.gear-link:nth-child(even) .gear-image { background: radial-gradient(ellipse at 44% 26%, #fcfbf8, #f2eee6); }
.gear-image img { position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: contain; }
.gear-link:focus-visible { outline-offset: -2px; }
.home-shortcuts { margin-top: 8px; padding: 8px 0 0; border-top: 1px solid #e1ede4; }
.shortcut-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 6px; }
.shortcut-header h2 { font-size: 17px; font-weight: 750; letter-spacing: -.025em; }
.shortcut-customize { min-width: 48px; min-height: 36px; padding-inline: 10px; border: 1px solid #d2ecdd; border-radius: 8px; color: var(--action); font-size: 13px; font-weight: 750; }
.shortcut-customize:hover { background: #e2f9ec; }
.service-link { flex: 1 0 73px; min-height: 72px; gap: 6px; padding: 6px 2px; align-content: center; border-radius: 9px; background: #f5faf6; color: #143a27; font-size: clamp(11px, 3.1vw, 15px); font-weight: 690; white-space: nowrap; scroll-snap-align: start; }
.service-link:hover { background: #e2f9ec; }
.service-icon { display: grid; place-items: center; width: 39px; height: 38px; border-radius: 11px; background: #dff4e8; color: #075237; }
.service-icon svg { width: 26px; height: 26px; stroke-width: 1.65; }
.shortcut-tint { fill: #66d69a; stroke: none; }
.shortcut-editor-main { max-height: min(68dvh, 505px); padding: 0 3px 2px; overflow-y: auto; overscroll-behavior: contain; }
.shortcut-editor-main h2 { display: flex; align-items: baseline; justify-content: space-between; padding-block: 7px; font-size: 17px; }
.shortcut-editor-main h2 span { color: var(--action); font-size: 14px; }
.shortcut-editor-main p { margin-bottom: 7px; color: var(--muted); font-size: 14px; }
.shortcut-editor-main ol, .shortcut-editor-main ul { display: grid; gap: 4px; margin: 0 0 12px; padding: 0; list-style: none; }
.shortcut-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shortcut-add { display: flex; align-items: center; gap: 4px; width: 100%; min-height: 44px; padding: 0 7px; border: 1px solid #d7e8dd; border-radius: 7px; background: #f2f8f4; color: #143a27; text-align: left; }
.shortcut-add:disabled { opacity: .53; }
.shortcut-add > span:last-child { flex: none; font-size: 17px; font-weight: 650; }
.shortcut-row { display: flex; align-items: center; gap: 4px; min-height: 48px; padding-inline: 8px 3px; border-radius: 9px; background: #f2f8f4; }
.shortcut-row-label { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; font-size: 14px; font-weight: 690; }
.shortcut-row-label svg { width: 17px; height: 17px; flex: none; color: var(--action); }
.shortcut-row button { min-width: 38px; min-height: 40px; padding-inline: 5px; border: 1px solid #d7e8dd; border-radius: 7px; background: white; color: #143a27; font-size: 13px; font-weight: 650; }
.shortcut-row button:disabled { opacity: .47; }
.shortcut-editor-footer { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.shortcut-editor-footer button { min-height: 44px; }
.shortcut-save-error { grid-column: 1 / -1; color: #992b22; font-size: 14px; }
.shortcut-save-error:empty { display: none; }

.home-section { margin-bottom: 24px; scroll-margin-top: 117px; }
.home-section .section-head { min-height: 44px; margin-bottom: 7px; }
.home-section .section-head h2 { font-size: clamp(22px, 5.8vw, 30px); font-weight: 740; letter-spacing: -.025em; }
.home-section .text-link { display: inline-flex; gap: 2px; align-items: center; color: var(--action); font-size: 13px; font-weight: 650; }
.home-section .text-link svg { width: 15px; height: 15px; }
.storefront .cards { gap: 12px; }
.storefront .card { display: flex; border: 1px solid #e7eee9; border-radius: 12px; overflow: hidden; background: white; }
.storefront .card > a { display: flex; flex-direction: column; width: 100%; }
.storefront .card-photo { aspect-ratio: 1.48; border-radius: 0; }
.storefront .card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 9px 10px 10px; }
.storefront .card-copy h3 { font-weight: 680; min-height: 0; }
.storefront .card-brand { color: #485e51; font-size: 12px; font-weight: 650; }
.storefront .card-copy small { font-size: 12px; color: #59635c; }
.storefront .card-equipment span { color: #295240; background: var(--mint); }
.storefront .card-copy .price { margin-top: 5px; color: #096740; }
.storefront .card-sold .price { color: #59635c; }
.storefront .card .save { right: 3px; top: 3px; width: 44px; height: 44px; background: transparent; }
.storefront .card .save svg { width: 32px; height: 32px; border-radius: 50%; background: white; padding: 6px; }
.storefront .card .save[aria-pressed=true] { color: var(--action); }
.storefront .card > a:focus-visible { outline-offset: -3px; }
.feed-page .chips [aria-current=page] { background: var(--mint); color: var(--action); border-color: #ade5c2; }
.sale-price-label { display: block; margin-bottom: 2px; color: var(--action); font-size: 12px; font-weight: 740; }
.sell-art { display: block; width: 100%; height: 100%; background: #d8c5a4 url("/media/studio-sell.webp") center / cover; }
.budget-pills .chip:not([aria-pressed=true]) { border-color: #a4debc; color: var(--action); }

@media (max-width: 550px) {
  .gear-image { width: min(100%, 68px); }
}

@media (max-width: 340px) {
  .gear-link strong { font-size: 13px; white-space: nowrap; }
  .shortcut-add .shortcut-row-label { gap: 4px; font-size: 13px; }
}
