.gallery-navigation { display:flex; align-items:center; gap:6px; margin:0 0 24px; padding:4px; width:max-content; max-width:100%; border:1px solid var(--border); border-radius:11px; background:var(--surface); }
.gallery-navigation a { display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:9px 18px; border-radius:7px; color:var(--secondary-foreground); font-size:13px; font-weight:600; text-decoration:none; }
.gallery-navigation a[aria-current="page"] { background:var(--accent-soft); color:var(--accent-text); }
.gallery-navigation .icon { width:16px; height:16px; }
.shop-gallery-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:0 0 28px; }
.shop-gallery-heading h1 { margin:0 0 9px; font-size:28px; letter-spacing:-.03em; line-height:1.3; }
.shop-gallery-heading p { margin:0; color:var(--muted-foreground); font-size:13px; line-height:1.8; }
.shop-gallery-heading .button { flex-shrink:0; }
.shop-gallery-tools { display:flex; align-items:flex-end; flex-wrap:wrap; gap:12px; margin-bottom:24px; padding:18px 20px; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.shop-gallery-search { flex:1 1 260px; min-width:0; max-width:560px; }
.shop-gallery-field-label { display:block; margin-bottom:8px; color:var(--secondary-foreground); font-size:12px; font-weight:500; }
.explore .shop-gallery-tools .search-box { position:relative; display:block; width:100%; min-width:0; }
.explore .shop-gallery-tools .search-box input { width:100%; height:44px; padding:10px 14px 10px 42px; border:1px solid var(--border); border-radius:10px; color:var(--foreground); background:var(--explore-theme-inset, #1b1c1e); font-size:13px; transition:border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease; }
.explore .shop-gallery-tools .search-box input::placeholder { color:var(--muted-foreground); }
.explore .shop-gallery-tools .search-box input:hover { border-color:var(--border-strong); }
.explore .shop-gallery-tools .search-box input:focus { border-color:var(--accent-text); outline:2px solid var(--accent-border); outline-offset:2px; background:var(--explore-theme-panel, #222326); }
.explore .shop-gallery-tools .search-box > .icon { position:absolute; left:14px; top:50%; width:17px; height:17px; color:var(--muted-foreground); transform:translateY(-50%); pointer-events:none; }
.shop-gallery-platform { flex:0 1 180px; min-width:150px; }
.shop-gallery-platform select { width:100%; min-height:44px; padding:10px 34px 10px 14px; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--foreground); font:inherit; font-size:13px; }
.shop-gallery-tools > .button { min-height:44px; }
#shopGalleryCount { display:flex; align-items:center; min-height:44px; margin-left:auto; color:var(--muted-foreground); font-size:12px; white-space:nowrap; font-variant-numeric:tabular-nums; }
/* Shop cards: platform first, compact inventory and two clear actions. */
.shop-gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; align-items:stretch; }
.shop-gallery-card { --shop-platform-ink:#b5c9ec; --shop-platform-tint:#252f40; display:flex; flex-direction:column; min-width:0; padding:18px; border:1px solid var(--border); border-radius:14px; background:var(--surface); transition:transform 200ms cubic-bezier(.2,.75,.3,1), border-color 180ms ease, box-shadow 200ms ease; }
.shop-gallery-card[data-platform="ldxp"] { --shop-platform-ink:#e5b3b9; --shop-platform-tint:#38292e; }
.shop-gallery-card[data-platform="16688"] { --shop-platform-ink:#d4c5a0; --shop-platform-tint:#332f26; }
:root[data-theme="light"] .shop-gallery-card { --shop-platform-ink:#365b92; --shop-platform-tint:#edf3fd; }
:root[data-theme="light"] .shop-gallery-card[data-platform="ldxp"] { --shop-platform-ink:#a33c4b; --shop-platform-tint:#fff0f1; }
:root[data-theme="light"] .shop-gallery-card[data-platform="16688"] { --shop-platform-ink:#795e22; --shop-platform-tint:#fbf5e6; }
.shop-gallery-card .shop-gallery-card-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 16px; }
.shop-gallery-platform-name { display:inline-flex; align-items:center; gap:7px; padding:6px 9px; border-radius:6px; color:var(--shop-platform-ink); background:var(--shop-platform-tint); font-size:13px; font-weight:650; line-height:1.2; white-space:nowrap; }
.shop-gallery-platform-name .icon { width:15px; height:15px; }
.explore .shop-gallery-platform-name .platform-pill { display:inline-flex; align-items:center; gap:7px; min-height:0; margin:0; padding:0; border:0; border-radius:0; color:inherit; background:transparent; font-size:inherit; font-weight:inherit; line-height:inherit; }
.explore .shop-gallery-platform-name .platform-mark { display:grid; place-items:center; width:19px; height:19px; border:1px solid currentColor; border-radius:4px; color:inherit; background:transparent; font-size:10px; line-height:1; opacity:.9; }
.shop-gallery-shop-status { color:var(--muted-foreground); font-size:11px; white-space:nowrap; }
.shop-gallery-card-main { display:flex; align-items:center; gap:11px; min-height:44px; }
.shop-gallery-card-identity { min-width:0; flex:1; }
.shop-gallery-card h2 { margin:0; font-size:15px; font-weight:650; line-height:1.55; overflow-wrap:anywhere; }
.shop-gallery-card h2 a { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; text-decoration:none; color:var(--foreground); transition:color 160ms ease; }
.shop-gallery-card h2 a:hover { color:var(--accent-text); }
.shop-gallery-card :is(a,button):focus-visible { outline:2px solid var(--accent-text); outline-offset:4px; border-radius:5px; }
.shop-gallery-avatar { position:relative; display:grid; place-items:center; flex-shrink:0; width:52px; height:52px; overflow:hidden; border:1px solid var(--border); border-radius:12px; color:var(--muted-foreground); background:var(--background); }
.shop-gallery-card .shop-gallery-avatar { width:42px; height:42px; border-radius:10px; }
.shop-gallery-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.shop-gallery-avatar.large { width:76px; height:76px; border-radius:16px; }
.shop-gallery-description { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:1; overflow:hidden; margin:10px 0 0; color:var(--muted-foreground); font-size:12px; line-height:1.65; overflow-wrap:anywhere; }
.shop-gallery-specialties { margin:12px 0 0; }
.shop-gallery-section-label { display:block; margin-bottom:7px; color:var(--muted-foreground); font-size:11px; }
.shop-gallery-categories { display:flex; flex-wrap:nowrap; gap:5px; max-height:25px; overflow:hidden; }
.shop-gallery-categories span { min-width:0; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:4px 7px; border:1px solid var(--border); border-radius:5px; font-size:11px; color:var(--secondary-foreground); background:var(--explore-theme-inset, #1b1c1e); }
.shop-gallery-profile dl { display:flex; gap:36px; margin:0 0 20px; padding:18px 0; border-top:1px solid var(--border); }
.shop-gallery-profile dt { color:var(--muted-foreground); font-size:11px; }
.shop-gallery-profile dd { margin:8px 0 0; font-size:24px; font-weight:650; font-variant-numeric:tabular-nums; line-height:1.2; }
.shop-gallery-card .shop-gallery-card-metrics { display:flex; align-items:center; gap:20px; margin:auto 0 0; padding:16px 0 14px; border:0; }
.shop-gallery-card-metrics > div { display:flex; align-items:baseline; gap:8px; min-width:0; }
.shop-gallery-card-metrics dt { color:var(--muted-foreground); font-size:11px; white-space:nowrap; }
.shop-gallery-card-metrics dd { margin:0; font-size:20px; font-weight:650; letter-spacing:-.025em; line-height:1.2; font-variant-numeric:tabular-nums; }
.shop-gallery-card-metrics dd small { margin-left:3px; color:var(--muted-foreground); font-size:10px; font-weight:400; }
.shop-gallery-card footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding-top:13px; border-top:1px solid var(--border); }
.shop-gallery-sync { display:flex; align-items:center; gap:6px; min-width:0; color:var(--muted-foreground); font-size:10px; line-height:1.6; }
.shop-gallery-sync > .icon { flex-shrink:0; width:13px; height:13px; }
.shop-gallery-sync-date { display:block; color:var(--secondary-foreground); font-size:11px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.shop-gallery-card-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-left:auto; }
.shop-gallery-card :is(.shop-gallery-enter,.shop-gallery-copy) { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:36px; margin:0; padding:8px 10px; border:1px solid var(--border); border-radius:7px; color:var(--secondary-foreground); background:transparent; font:inherit; font-size:11px; font-weight:550; line-height:1.5; text-decoration:none; white-space:nowrap; cursor:pointer; transition:color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
.shop-gallery-card .shop-gallery-copy { background:var(--explore-theme-inset, #1b1c1e); }
.shop-gallery-card :is(.shop-gallery-enter,.shop-gallery-copy):hover { color:var(--foreground); border-color:var(--border-strong); background:var(--surface-hover); }
.shop-gallery-card .shop-gallery-copy:disabled { opacity:.6; cursor:default; }
.shop-gallery-card .shop-gallery-copy[aria-busy="true"] { cursor:wait; }
.shop-gallery-card .shop-gallery-copy[data-copied="true"] { color:var(--explore-theme-success, #8fc9ad); border-color:var(--explore-theme-success-border, #405c4e); }
.shop-gallery-card-actions .icon { flex-shrink:0; width:14px; height:14px; }
.shop-gallery-enter .icon { transition:transform 180ms cubic-bezier(.2,.75,.3,1); }
.shop-gallery-enter:hover .icon,.shop-gallery-enter:focus-visible .icon { transform:translateX(2px); }
.shop-gallery-feedback { color:var(--secondary-foreground); font-size:11px; line-height:1.6; overflow-wrap:anywhere; }
.shop-gallery-feedback label { display:grid; gap:7px; min-width:0; }
.explore .shop-gallery-feedback textarea[readonly] { display:block; box-sizing:border-box; width:100%; min-width:0; max-width:100%; min-height:60px; margin:0; padding:8px 10px; resize:vertical; white-space:pre-wrap; border:1px solid var(--border-strong); border-radius:7px; color:var(--foreground); background:var(--explore-theme-inset, #1b1c1e); font:inherit; font-size:13px; user-select:all; -webkit-user-select:all; cursor:text; }
.explore .shop-gallery-feedback textarea[readonly]:focus { outline:2px solid var(--accent-border); outline-offset:2px; border-color:var(--accent-text); }
.shop-gallery-feedback:empty { display:none; }
.shop-gallery-feedback:not(:empty) { margin-top:10px; }
@media(hover:hover) and (prefers-reduced-motion:no-preference) { .shop-gallery-card:hover { transform:translateY(-2px); border-color:var(--border-strong); box-shadow:0 8px 22px rgb(0 0 0 / 7%); } }
.shop-gallery-card:focus-within { border-color:var(--border-strong); }
@media(max-width:1179px) { .shop-gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:767px) { .shop-gallery-grid { grid-template-columns:minmax(0,1fr); gap:14px; } }
.shop-gallery-empty { grid-column:1/-1; width:100%; }
.shop-gallery-profile { margin:20px 0 32px; padding:28px; background:var(--surface); border:1px solid var(--border); border-radius:14px; }
.shop-gallery-profile-identity { display:flex; align-items:center; gap:20px; }
.shop-gallery-profile h1 { margin:10px 0 0; max-width:900px; font-size:26px; line-height:1.5; overflow-wrap:anywhere; }
.shop-gallery-profile>p { max-width:850px; margin:22px 0; color:var(--muted-foreground); font-size:13px; line-height:1.9; white-space:pre-line; overflow-wrap:anywhere; }
.shop-gallery-profile dl { flex-wrap:wrap; margin-bottom:0; padding-bottom:0; }
.shop-gallery-profile dd.shop-gallery-time { font-size:17px; }
.shop-gallery-products-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 20px; }
.shop-gallery-products-heading h2 { margin:0 0 8px; font-size:19px; }
.shop-gallery-products-heading p,.shop-gallery-products-heading>span { margin:0; color:var(--muted-foreground); font-size:12px; line-height:1.8; }
.offer-retail-price { display:flex; align-items:baseline; gap:7px; margin:10px 0 0; color:var(--muted-foreground); font-size:11px; font-variant-numeric:tabular-nums; }
.offer-retail-price+.offer-metrics { margin-top:6px; }
.detail-price .detail-retail-price { display:block; margin-bottom:12px; font-size:14px; font-weight:400; color:var(--muted-foreground); }
.shop-gallery-product { border:1px solid var(--border); border-radius:12px; overflow:hidden; background:var(--surface); }
.shop-gallery-product>a { display:block; aspect-ratio:1; background:var(--background); }
.shop-gallery-product>a>img { width:100%; height:100%; object-fit:contain; }
.shop-gallery-product>div { padding:16px; }
.shop-gallery-product h3 { margin:0 0 12px; font-size:14px; line-height:1.6; }
.shop-gallery-product h3 a { text-decoration:none; }
.shop-gallery-wholesale { font-size:12px; color:var(--muted-foreground); }
.shop-gallery-wholesale strong { margin-left:5px; font-size:20px; color:var(--foreground); }
.shop-gallery-product-placeholder { display:grid; place-items:center; height:100%; color:var(--muted-foreground); }
.shop-gallery-product-placeholder .icon { width:48px; height:48px; }
.market-header .market-entry-button[aria-current="page"] { color:var(--accent-text); background:var(--accent-soft); }
@media(max-width:650px) {
  .shop-gallery-heading { align-items:flex-start; gap:16px; }
  .shop-gallery-heading h1 { font-size:24px; }
  .shop-gallery-heading p { font-size:12px; }
  .shop-gallery-tools { gap:12px; padding:16px; }
  .shop-gallery-search { flex-basis:100%; max-width:none; }
  .shop-gallery-platform { flex:1; min-width:130px; }
  #shopGalleryCount { width:100%; min-height:0; padding-top:2px; }
  .shop-gallery-grid { grid-template-columns:minmax(0,1fr); gap:14px; }
  .shop-gallery-card { padding:18px; }
  .shop-gallery-card h2 { font-size:15px; }
  .shop-gallery-profile { padding:20px; }
  .shop-gallery-profile h1 { font-size:20px; }
  .shop-gallery-profile-identity { gap:14px; align-items:flex-start; }
  .shop-gallery-avatar.large { width:56px; height:56px; }
  .shop-gallery-products-heading { align-items:flex-start; }
  .shop-gallery-offers { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(prefers-reduced-motion:reduce) { .shop-gallery-card,.shop-gallery-card :is(.shop-gallery-copy,.shop-gallery-enter),.shop-gallery-enter .icon,.explore .shop-gallery-tools .search-box input { transition:none; } .shop-gallery-enter:hover .icon,.shop-gallery-enter:focus-visible .icon { transform:none; } }
