.shop-page { padding-top: 24px; padding-bottom: 12px; }
.shop-breadcrumb { display: flex; gap: 11px; font-size: 13px; color: var(--muted); margin-bottom: 34px; }
.shop-breadcrumb a:hover { color: var(--text); }
.shop-heading { display: flex; gap: 40px; align-items: center; justify-content: flex-start; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.shop-heading .eyebrow { font-size: 11px; letter-spacing: .1em; }
.shop-heading h1 { font-size: clamp(34px, 4.5vw, 62px); line-height: 1.08; letter-spacing: -.045em; margin: 12px 0 15px; }
.shop-heading h1>span { color: var(--accent); }
.shop-heading p { font-size: 16px; max-width: 570px; line-height: 1.6; }
.shop-profile { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.shop-profile img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.shop-profile strong,.shop-profile span,.shop-profile small { display: block; }
.shop-profile strong { font-size: 18px; margin-bottom: 4px; }
.shop-profile span { font-size: 14px; color: var(--muted); }
.shop-profile small { font-size: 12px; color: var(--muted); margin-top: 8px; }
.shop-toolbar { display: flex; gap: 20px; justify-content: space-between; align-items: center; margin: 26px 0 20px; }
.shop-search { display: flex; align-items: center; gap: 12px; width: 430px; max-width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.shop-search .icon { width: 19px; height: 19px; flex-shrink: 0; color: var(--muted); }
.shop-search input { min-width: 0; width: 100%; color: var(--text); background: transparent; border: 0; font: 14px Arial,sans-serif; outline-offset: 5px; }
.shop-search input::placeholder { color: var(--muted); }
.shop-sort { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 13px; color: var(--muted); }
.shop-sort label { flex-shrink: 0; white-space: nowrap; }
.shop-sort select { min-width: 0; max-width: 100%; padding: 11px 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 6px; font: 14px Arial,sans-serif; cursor: pointer; }
.shop-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.shop-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-filters button { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; white-space: nowrap; }
.shop-filters button span { margin-left: 6px; opacity: .65; }
.shop-filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.shop-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.shop-filters [hidden] { display: none; }
.shop-card-instant,.shop-card-progress-label { font-family: inherit; font-size: 12px; font-weight: 400; line-height: 1.55; color: var(--muted); }
.shop-card-instant { margin: 18px 0; }
.shop-card[data-store="home"] .progress-track i { background: linear-gradient(90deg, #ba8643, #f6dc8e); }
.shop-card[data-store="beauty"] .progress-track i { background: linear-gradient(90deg, #afbddb, #e5a6bb); }
.shop-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.shop-card { min-width: 0; position: relative; }
.shop-card>a { display: block; height: 100%; }
.shop-card>a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 6px; }
.shop-card-photo { position: relative; aspect-ratio: 3/4; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface2); }
.shop-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; transition: transform .35s ease; }
@media (hover: hover) and (pointer: fine) {
  .shop-grid:not(.is-placing-badges) .shop-card>a:hover .shop-card-photo img { transform: scale(1.00875); }
}
.shop-badge-layer { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 3/4; pointer-events: none; }
.shop-card-badge { position: absolute; isolation: isolate; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: center; left: 7px; top: 7px; width: 108px; height: 48px; padding: 0; border: 0; background: transparent; border-radius: 10px; color: #172020; font: 13px/1.3 Arial,sans-serif; letter-spacing: .01em; white-space: nowrap; text-align: center; opacity: 1; }
.shop-card-badge>span { display: block; pointer-events: none; }
.shop-card-badge:not(.is-complete)::before { filter: saturate(.82) brightness(.86); }
.shop-card-badge::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--collection-progress, var(--progress-botanical)); }
.shop-card[data-store="beauty"] .shop-card-badge:not(.is-complete)::before { background: linear-gradient(90deg, #afbddb, #e5a6bb); }
.shop-card[data-store="digital"] .shop-card-badge:not(.is-complete)::before { background: linear-gradient(115deg, #8fe3ff 0%, #adc7ff 48%, #d2b3f5 100%); }
.shop-card[data-store="food"] .shop-card-badge:not(.is-complete)::before { background: linear-gradient(115deg, #f2d093 0%, #d8c184 48%, #a5b580 100%); }
.shop-card-badge[data-shape="circle"],.shop-card-badge[data-shape="oval"] { border-radius: 50%; }
.shop-card-badge[data-shape="strip"] { border-radius: 999px; flex-direction: row; gap: .3em; }
.shop-card-badge[data-shape="triangle"],.shop-card-badge[data-shape="diamond"],.shop-card-badge[data-shape="ticket"] { border-radius: 0; }
.shop-card-badge[data-shape="triangle"]::before { clip-path: polygon(50% 0,100% 100%,0 100%); }
.shop-card-badge[data-shape="triangle"] { padding-top: 2.8em; }
.shop-card-badge[data-shape="triangle"]>span { transform: translateY(.6em); }
.shop-card-badge[data-shape="diamond"]::before { clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
.shop-card-badge[data-shape="ticket"]::before { clip-path: polygon(0 0,90% 0,100% 50%,90% 100%,0 100%,8% 50%); }
.is-placing-badges .shop-card-badge { pointer-events: auto; cursor: grab; touch-action: none; user-select: none; }
.shop-card-badge.is-dragging { cursor: grabbing; filter: drop-shadow(0 3px 7px #0004); }
.shop-card-badge.is-selected { outline: 1px dashed #17202088; outline-offset: 4px; }
.shop-card-badge:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.shop-badge-editor { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 16px 18px; margin: -3px 0 24px; color: var(--text); }
.badge-editor-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.badge-editor-heading strong { font-size: 15px; }
.badge-editor-heading span { color: var(--muted); font-size: 12px; margin-left: 14px; }
.shop-badge-editor button { border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px; font: 12px Arial,sans-serif; color: var(--text); background: var(--bg); }
.shop-badge-editor button:hover { border-color: var(--text); }
.shop-badge-editor button:focus-visible,.shop-badge-editor select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.badge-editor-heading button { background: var(--text); color: var(--bg); white-space: nowrap; }
.badge-editor-settings { display: flex; align-items: end; flex-wrap: wrap; gap: 20px; margin-top: 18px; }
.badge-editor-settings label,.badge-corner-control { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--muted); }
.badge-editor-settings select { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 7px; font: 13px Arial,sans-serif; padding: 8px 10px; min-width: 175px; }
.badge-size-control { position: relative; width: 190px; }
.badge-size-control output { position: absolute; right: 0; top: 0; color: var(--text); }
.badge-size-control input { width: 100%; height: 34px; margin: 0; accent-color: var(--accent); }
.badge-corner-control>div { display: flex; gap: 5px; }
.badge-corner-control button { font-size: 18px; line-height: 18px; padding: 7px 11px; }
.badge-shape-options { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
.badge-shape-options button { display: inline-flex; align-items: center; gap: 8px; }
.badge-shape-options button[aria-pressed="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.badge-shape-icon { display: inline-block; width: 20px; height: 15px; background: var(--progress-botanical); border-radius: 4px; }
.badge-shape-icon[data-shape="circle"] { width: 17px; height: 17px; border-radius: 50%; }
.badge-shape-icon[data-shape="oval"] { border-radius: 50%; }
.badge-shape-icon[data-shape="strip"] { height: 7px; border-radius: 99px; }
.badge-shape-icon[data-shape="triangle"] { border-radius: 0; clip-path: polygon(50% 0,100% 100%,0 100%); }
.badge-shape-icon[data-shape="diamond"] { border-radius: 0; clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
.badge-shape-icon[data-shape="ticket"] { border-radius: 0; clip-path: polygon(0 0,85% 0,100% 50%,85% 100%,0 100%,10% 50%); }
.badge-editor-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.badge-editor-footer>span { color: var(--muted); font-size: 11px; }
.badge-editor-footer>div { display: flex; gap: 7px; flex-wrap: wrap; }
@media(max-width: 600px) {
  .shop-badge-editor { padding: 14px; }
  .badge-editor-heading span { display: block; margin: 6px 0 0; line-height: 1.5; }
  .badge-editor-settings { gap: 12px; }
  .badge-size-control { width: 150px; }
}
.shop-card-info { padding: 17px 1px 0; }
.shop-card-credit { display: none; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.shop-card h2 { font-family: Manrope, Arial, sans-serif; font-size: 18px; font-weight: 600; line-height: 1.4; min-height: 2.8em; letter-spacing: -.015em; margin: 0; }
.shop-card-price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 8px; }
.shop-card-price-row strong { font-size: 22px; letter-spacing: -.025em; }
.shop-card-price-row small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.shop-card-price-note { font-size: 11px; color: var(--muted); min-height: 32px; margin: 0; line-height: 1.5; }
.shop-card-progress-label { display: flex; justify-content: space-between; gap: 5px; margin: 15px 0 8px; }
.shop-card-progress-label strong { color: var(--text); font-size: 12px; white-space: nowrap; }
.shop-card .progress-track { height: 5px; }
.shop-card[data-route="city"] { --collection-progress: var(--progress-iris); }
.shop-card[data-route="lines"],.shop-card[data-route="backpack"] { --collection-progress: var(--progress-sand); }
.shop-card[data-route="common"] { --collection-progress: var(--progress-code); }
.shop-card-open { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-top: 18px; padding: 13px 0; border-top: 1px solid var(--line); }
.shop-card-open .icon { width: 18px; height: 18px; }
.shop-empty { padding: 70px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 7px; }
.shop-empty h2 { font-size: 25px; margin-bottom: 12px; }
.shop-empty p { font-size: 15px; margin-bottom: 22px; }
.shop-how { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; margin-top: 40px; padding: 30px 0; border-top: 1px solid var(--line); }
.shop-how>div { padding-left: 31px; position: relative; }
.shop-how>div>span { position: absolute; left: 0; top: 2px; color: var(--muted); font-size: 11px; }
.shop-how h2 { font-size: 16px; margin-bottom: 9px; }
.shop-how p { font-size: 13px; line-height: 1.6; }
.main-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 7px; }
@media (max-width: 1100px) {
  .shop-heading { align-items: flex-start; gap: 25px; }
  .shop-profile small { max-width: 170px; }
  .shop-grid { gap: 14px; }
  .shop-card h2 { font-size: 18px; }
  .shop-card-price-row { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 18px; }
  .shop-profile { border: 0; padding-left: 0; }
  .shop-heading { flex-wrap: wrap; }
  .shop-profile small { max-width: none; }
  .shop-card-price-row { align-items: center; flex-direction: row; }
}
@media (max-width: 600px) {
  .shop-page { padding-top: 18px; }
  .shop-breadcrumb { margin-bottom: 25px; }
  .shop-heading h1 { font-size: 37px; }
  .shop-heading p { font-size: 14px; }
  .shop-profile img { width: 52px; height: 52px; }
  .shop-profile strong { font-size: 16px; }
  .shop-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .shop-search { width: 100%; }
  .shop-sort { justify-content: space-between; }
  .shop-sort select { flex: 1; }
  .shop-filter-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .shop-filters { gap: 6px; }
  .shop-filters button { padding: 8px 11px; font-size: 12px; }
  .shop-grid { gap: 25px 12px; }
  .shop-card h2 { font-size: 17px; }
  .shop-card-photo { aspect-ratio: 3/4; }
  .shop-card-price-row { flex-direction: column; align-items: flex-start; }
  .shop-card-price-row strong { font-size: 21px; }
  .shop-card-info { padding-top: 12px; }
  .shop-card-progress-label { flex-wrap: wrap; }
  .shop-card-instant,.shop-card-progress-label { font-size: 11px; }
  .shop-card-open { font-size: 12px; gap: 5px; }
  .shop-how { grid-template-columns: 1fr; gap: 22px; }
}

.creator-badge-controls-only { margin-top: 26px; }
.creator-badge-controls-only .badge-editor-heading { align-items: flex-start; }
.creator-badge-controls-only .badge-editor-heading span { display: block; margin: 6px 0 0; }
.creator-badge-controls-only .badge-editor-settings { gap: 14px; }
.creator-badge-controls-only .badge-size-control { width: 160px; }
.shop-card-badge.is-complete { color:#fff; }
.shop-card-badge.is-complete::before { background:rgba(46,50,50,.65); }

/* Lift the whole product card; the badge and image keep their shared geometry. */
#shopGrid .shop-card {
  --shop-glow: linear-gradient(115deg,#8fe3ff,#adc7ff 48%,#d2b3f5);
  isolation: isolate;
  z-index: 0;
  border-radius: 12px;
  transform-origin: 50% 48%;
  transition: transform .32s cubic-bezier(.2,.7,.2,1);
}
#shopGrid .shop-card::before,
#shopGrid .shop-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity .32s ease, transform .32s ease;
}
#shopGrid .shop-card::before {
  inset: -4.5px -4.5px -1.5px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg,#ffffff12,transparent 65%),var(--surface);
  box-shadow: 0 6.3px 12.6px -4.9px #17202027,0 2.1px 4.2px -2.1px #17202018;
}
#shopGrid .shop-card::after {
  inset: 48% -4px -8.5px;
  z-index: -2;
  border-radius: 28px;
  background: var(--shop-glow);
  filter: blur(12px);
  transform: translateY(3px) scale(.97);
}
#shopGrid:not(.is-placing-badges) .shop-card:focus-within {
  z-index: 2;
  transform: perspective(1200px) translateY(-2.45px) rotateX(.35deg) rotateY(-.245deg);
}
#shopGrid:not(.is-placing-badges) .shop-card:focus-within::before { opacity: 1; }
#shopGrid:not(.is-placing-badges) .shop-card:focus-within::after { opacity: .266; transform: translateY(3.5px) scale(1); }
@media (hover: hover) and (pointer: fine) {
  #shopGrid:not(.is-placing-badges) .shop-card:hover {
    z-index: 2;
    transform: perspective(1200px) translateY(-2.45px) rotateX(.35deg) rotateY(-.245deg);
  }
  #shopGrid:not(.is-placing-badges) .shop-card:hover::before { opacity: 1; }
  #shopGrid:not(.is-placing-badges) .shop-card:hover::after { opacity: .266; transform: translateY(3.5px) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #shopGrid .shop-card,
  #shopGrid .shop-card::before,
  #shopGrid .shop-card::after,
  #shopGrid .shop-card-photo img { transition: none; }
  #shopGrid:not(.is-placing-badges) .shop-card:is(:hover,:focus-within),
  #shopGrid:not(.is-placing-badges) .shop-card>a:hover .shop-card-photo img { transform: none; }
}

/* Owner controls and shared favorites */
.blogger-shop-nav { min-width:0; flex-shrink:0; }
.blogger-shop-nav-row { display:flex; align-items:stretch; min-height:48px; }
.blogger-sidebar .blogger-shop-disclosure { display:grid; place-items:center; flex:0 0 38px; width:38px; padding:0; border-radius:4px; color:var(--muted); }
.blogger-shop-disclosure svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; transition:transform .18s; }
.blogger-shop-disclosure[aria-expanded=true] svg { transform:rotate(180deg); }
.blogger-sidebar .blogger-shop-nav-row>a { display:flex; align-items:center; flex:1; min-width:0; padding:10px 10px 10px 1px; border-radius:4px; color:var(--muted); font-size:16px; line-height:1.4; }
.blogger-sidebar .blogger-shop-disclosure:hover,.blogger-sidebar .blogger-shop-disclosure[aria-expanded=true],.blogger-sidebar .blogger-shop-nav-row>a:hover { background:var(--surface2); color:var(--text); }
.blogger-shop-submenu { display:grid; margin:5px 0 7px 14px; padding-left:12px; border-left:1px solid var(--line); }
.blogger-shop-submenu[hidden] { display:none; }
.blogger-sidebar .blogger-shop-edit { min-height:42px; padding:9px 10px; border-radius:5px; text-align:left; color:var(--muted); font-size:13px; line-height:1.4; }
.blogger-sidebar .blogger-shop-edit:hover { background:var(--surface2); color:var(--text); }
.blogger-shop-disclosure:focus-visible,.blogger-shop-nav-row>a:focus-visible,.blogger-shop-edit:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
@media(max-width:1100px) { .blogger-sidebar .blogger-shop-nav-row>a { font-size:14px; } }
@media(max-width:760px) { .blogger-shop-nav { width:210px; } .blogger-shop-nav-row { min-height:40px; } }
@media(prefers-reduced-motion:reduce) { .blogger-shop-disclosure svg { transition:none; } }
.shop-badge-editor[hidden]{display:none!important}
.shop-badge-editor{scroll-margin-top:100px}
.shop-heading{gap:18px;flex-wrap:wrap}
.shop-card>.card-heart{z-index:5;border-radius:50%;width:38px;height:38px;top:12px;right:12px}
html[data-theme]{--favorite-color:#f07a72}
html[data-theme=light]{--favorite-color:#b8423f}
html[data-theme] :is([data-favorite-route],#favoritesOpen){color:var(--favorite-color)}
body:has(#page-home:not([hidden])) #favoritesOpen{--favorite-color:#b8423f}
html[data-theme] .card-heart[data-favorite-route]{--favorite-color:#b8423f;background:#fffaf5f2;border-radius:50%;box-shadow:0 1px 5px #0003}
html[data-theme] :is([data-favorite-route],#favoritesOpen) .icon{stroke:currentColor;stroke-width:1.8;fill:none;fill-opacity:1}
html[data-theme] :is([data-favorite-route],#favoritesOpen)[aria-pressed=true] .icon{fill:currentColor}
html[data-theme] :is([data-favorite-route],#favoritesOpen):hover .icon{filter:brightness(.88)}
html[data-theme] :is([data-favorite-route],#favoritesOpen):focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:50%}
.favorite-result-row{display:flex;align-items:center;gap:10px}.favorite-result-row .search-result{flex:1;min-width:0}
.collab-order-note{color:var(--muted);font-size:13px;margin:14px 0 5px}.collab-product-link{display:inline-block;font-size:14px;margin:4px 0 18px}
#homePreorder:disabled{background:var(--line);color:var(--muted);box-shadow:none;cursor:default}
