:root {
  --mk-detail-ink: #103f36;
  --mk-detail-green: #145447;
  --mk-detail-paper: #faf8f2;
  --mk-detail-line: #e4e9e2;
  --mk-detail-muted: #65746c;
}
.context-nav { border-bottom: 1px solid var(--mk-detail-line); background: #fffdf9; }
.context-nav-inner { width: 94%; max-width: 1656px; min-height: 42px; margin: 0 auto; padding: 0; display: flex; align-items: center; gap: 10px; list-style: none; color: #778079; font-size: 12px; }
.context-nav-inner li { display: flex; align-items: center; min-width: 0; }
.context-nav-inner li + li::before { content: "/"; margin-right: 10px; color: #a2aaa2; }
.context-nav-inner a { color: #5e7168; font-weight: 600; text-decoration: none; }
.context-nav-inner a:hover { color: var(--mk-detail-green); text-decoration: underline; }
.context-nav-inner [aria-current="page"] { color: #68726b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-detail-main { width: 94%; max-width: 1656px; margin: 0 auto; padding: 30px 0 50px; color: var(--mk-detail-ink); }
.shop-detail-search { width: min(100%, 800px); display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0 0 25px; padding: 7px 8px 7px 15px; border: 1px solid #d8e3da; border-radius: 11px; background: #fff; box-shadow: 0 4px 18px #103f360a; }
.shop-detail-search:focus-within { border-color: #83b49b; box-shadow: 0 0 0 3px #1454471a; }
.shop-detail-search svg { width: 21px; height: 21px; fill: none; stroke: var(--mk-detail-green); stroke-width: 2; stroke-linecap: round; }
.shop-detail-search input { width: 100%; min-width: 0; height: 38px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--mk-detail-ink); font: inherit; font-size: 14px; }
.shop-detail-search input::placeholder { color: #84938a; }
.shop-detail-search button { min-height: 39px; padding: 8px 19px; border: 0; border-radius: 8px; background: var(--mk-detail-green); color: #fff; font-size: 13px; font-weight: 750; cursor: pointer; }
.shop-detail-search button:hover { background: #103f36; }
.shop-detail-page { display: flex; flex-direction: column; gap: 18px; }
.shop-detail-identity { display: block; }
.shop-detail-heading { min-width: 0; }
.shop-detail-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.shop-state-pill { padding: 5px 10px; border-radius: 999px; background: #fff1d5; color: #91641d; font-size: 11px; font-weight: 750; }
.shop-detail-heading h1 { margin: 0; color: var(--mk-detail-ink); font-size: clamp(34px, 3vw, 50px); line-height: 1.07; letter-spacing: -.04em; font-weight: 800; }
.shop-detail-summary { margin: 8px 0 10px; color: var(--mk-detail-muted); font-size: 16px; line-height: 1.45; }
.shop-detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #456258; font-size: 13px; font-weight: 650; }
.shop-category-chip, .shop-offering-tags span { padding: 5px 11px; border-radius: 999px; background: #edf3ee; color: #356151; font-size: 12px; font-weight: 700; }
.shop-status-notice { padding: 13px 17px; display: flex; flex-wrap: wrap; gap: 8px 16px; border: 1px solid #f1d49f; border-radius: 12px; background: #fff8e9; color: #805a1c; font-size: 13px; }
.shop-primary-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(315px, .85fr); align-items: start; gap: 20px; }
.shop-gallery { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.shop-gallery { --gallery-h: clamp(410px, 37vw, 590px); --rail-w: 116px; }
.shop-gallery-main { position: relative; height: var(--gallery-h); margin: 0; overflow: hidden; border-radius: 14px; background: #e8eee7; }
.shop-gallery-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.shop-gallery-open img { width: 100%; height: 100%; display: block; object-fit: cover; }
.shop-gallery-main figcaption, .shop-photo-count { position: absolute; z-index: 1; padding: 7px 10px; border-radius: 7px; background: #103f36df; color: #fff; font-size: 11px; font-weight: 700; pointer-events: none; }
.shop-gallery-main figcaption { top: 14px; bottom: auto; left: 14px; background: #fffdf9e8; color: #456258; }
.shop-gallery-main figcaption[hidden] { display: none; }
.shop-photo-count { bottom: 14px; left: 14px; }
.shop-gallery-arrow { position: absolute; z-index: 2; top: 50%; width: 44px; height: 52px; display: grid; place-items: center; padding: 0; transform: translateY(-50%); border: 1px solid #ffffff88; border-radius: 9px; background: #103f36a8; color: #fff; opacity: 0; cursor: pointer; transition: opacity .18s ease, background .18s ease; }
.shop-gallery-arrow-prev { left: 14px; }
.shop-gallery-arrow-next { right: 14px; }
.shop-gallery-arrow svg, .shop-lightbox-arrow svg, .shop-lightbox-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-gallery-arrow:hover { background: #103f36de; }
.shop-gallery-arrow:focus-visible { opacity: 1; outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) { .shop-gallery-main:hover .shop-gallery-arrow, .shop-gallery-main:focus-within .shop-gallery-arrow { opacity: 1; } }
.shop-gallery-secondary { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 5px; }
.shop-gallery-thumb { width: 126px; height: 80px; flex: 0 0 auto; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 9px; background: #e8eee7; cursor: pointer; }
.shop-gallery-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.shop-gallery-thumb:hover, .shop-gallery-thumb:focus-visible { border-color: #8cb7a4; }
.shop-gallery-thumb.is-active { border-color: var(--mk-detail-green); }
.shop-lightbox { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 14px; border: 0; background: #081713f7; color: #fff; overflow: hidden; }
.shop-lightbox[open] { display: flex; flex-direction: column; }
.shop-lightbox::backdrop { background: #081713ed; }
.shop-lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 8px; color: #fff; font-size: 13px; font-weight: 700; }
.shop-lightbox-close { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid #ffffff66; border-radius: 50%; background: #ffffff1a; color: #fff; cursor: pointer; }
.shop-lightbox-close:hover, .shop-lightbox-arrow:hover { background: #ffffff33; }
.shop-lightbox-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 4px 58px 16px; }
.shop-lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.shop-lightbox-arrow { position: absolute; top: 50%; width: 48px; height: 56px; display: grid; place-items: center; padding: 0; transform: translateY(-50%); border: 1px solid #ffffff55; border-radius: 9px; background: #ffffff1a; color: #fff; cursor: pointer; }
.shop-lightbox-arrow:first-child { left: 0; }
.shop-lightbox-arrow:last-child { right: 0; }
.shop-lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.shop-gallery-empty { min-height: 410px; display: grid; place-items: center; border: 1px dashed #bfd0c3; border-radius: 14px; color: #698174; background: #f3f7f1; }
.shop-primary-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.shop-contact-card, .shop-trust-card, .shop-engagement-card, .shop-info-card, .shop-secondary-card, .shop-safety-note { border: 1px solid var(--mk-detail-line); border-radius: 13px; background: #fff; }
.shop-contact-card { padding: 21px 22px 18px; }
.shop-contact-card h2, .shop-trust-card h2, .shop-engagement-card h2, .shop-info-card h2, .shop-secondary-card h2 { margin: 0; color: var(--mk-detail-ink); font-size: 18px; font-weight: 800; line-height: 1.25; }
.shop-contact-district { margin: 14px 0 5px; font-size: 15px; font-weight: 750; }
.shop-contact-district span { color: #ec8d25; margin-right: 4px; }
.shop-contact-directions { margin: 0 0 9px; color: #68766e; font-size: 13px; line-height: 1.4; white-space: pre-line; }
.shop-directions-action, .shop-card-link { color: var(--mk-detail-green); font-size: 13px; font-weight: 750; text-decoration: none; }
.shop-directions-action:hover, .shop-card-link:hover { text-decoration: underline; }
.shop-contact-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 10px; margin-top: 17px; }
.shop-contact-method { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.shop-call-action, .shop-message-action { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: max-content; max-width: 100%; padding: 8px 15px; border-radius: 8px; font-size: 13px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.shop-call-action svg, .shop-message-action svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shop-call-action { background: var(--mk-detail-green); color: #fff; }
.shop-call-action:hover { background: #103f36; color: #fff; text-decoration: none; }
.shop-message-action { border: 1px solid var(--mk-detail-green); color: var(--mk-detail-green); background: #fff; }
.shop-message-action:hover { background: #f0f6f1; text-decoration: none; }
.shop-telegram-note { max-width: 170px; margin: 0; color: #829087; font-size: 11px; line-height: 1.35; text-align: left; }
.shop-contact-extras { display: flex; flex-wrap: wrap; gap: 8px 14px; padding-top: 13px; }
.shop-contact-extras a { color: #5b7367; font-size: 12px; overflow-wrap: anywhere; }
.shop-contact-secondary { display: flex; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--mk-detail-line); color: var(--mk-detail-green); font-size: 12px; font-weight: 700; }
.shop-contact-secondary > a { color: var(--mk-detail-green); text-decoration: none; }
.shop-contact-secondary > a:hover { text-decoration: underline; }
.shop-share { position: relative; }
.shop-share summary { cursor: pointer; list-style: none; }
.shop-share summary::-webkit-details-marker { display: none; }
.shop-share-panel { position: absolute; top: 100%; left: 0; z-index: 5; width: min(340px, 80vw); padding: 15px; border: 1px solid var(--mk-detail-line); border-radius: 10px; background: #fff; box-shadow: 0 7px 25px #103f3622; }
.shop-share-panel label { display: block; margin-bottom: 7px; color: #435b50; }
.shop-share-panel textarea { width: 100%; padding: 8px; border: 1px solid var(--mk-detail-line); border-radius: 6px; background: #f7f8f5; color: #4b6054; font-size: 11px; line-height: 1.4; resize: none; }
.shop-share-panel button { margin-top: 7px; padding: 6px 13px; border-radius: 7px; background: var(--mk-detail-green); color: #fff; font-size: 12px; }
.shop-stale-alert { display: flex; flex-direction: column; gap: 3px; margin-top: 16px; padding: 10px 12px; border: 1px solid #f6deaf; border-radius: 8px; background: #fff7e8; color: #9a6514; font-size: 12px; line-height: 1.35; }
.shop-stale-alert span { color: #755d38; }
.shop-contact-note { margin: 12px 0 0; color: #79867e; font-size: 11px; line-height: 1.4; }
.shop-trust-card { padding: 17px 18px; }
.shop-trust-card h2 { font-size: 15px; margin-bottom: 12px; }
.shop-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 46px)) minmax(0, 1fr) minmax(0, 66px); align-items: start; gap: 7px; }
.shop-trust-item { position: relative; min-width: 0; }
.shop-trust-button { width: 44px; height: 44px; display: grid; place-items: center; padding: 5px; border: 1px solid #d5ded7; border-radius: 50%; background: #fff; color: #b0beb5; cursor: help; }
.shop-trust-button:hover, .shop-trust-button:focus-visible, .shop-trust-item.is-open .shop-trust-button { border-color: #91b5a1; background: #f6faf6; outline-offset: 2px; }
.shop-trust-button svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.shop-trust-item.is-verified .shop-trust-button { border-color: #accdbc; color: var(--mk-detail-green); }
.shop-trust-check-disc { fill: #e5a52d; stroke: #fff; stroke-width: 1.2; }
.shop-trust-button svg .shop-trust-check { fill: none; stroke: #fff; stroke-width: 2; }
.shop-trust-rating .shop-trust-button { width: 100%; min-width: 0; height: 44px; padding: 5px 2px; border-color: transparent; border-radius: 8px; }
.shop-rating-stars { position: relative; display: block; width: min(120px, 100%); aspect-ratio: 5; }
.shop-rating-stars svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: none; }
.shop-rating-stars-empty { fill: #d7ded8 !important; }
.shop-rating-stars-fill { fill: #e5a52d !important; clip-path: inset(0 calc(100% - var(--rating-fill)) 0 0); }
.shop-rating-detail { display: flex; flex-direction: column; align-items: center; gap: 1px; margin: 2px 0 0; text-align: center; line-height: 1.25; }
.shop-rating-detail strong { color: var(--mk-detail-ink); font-size: 13px; }
.shop-rating-detail a { color: #60756a; font-size: 11px; text-decoration: none; }
.shop-rating-detail a:hover { color: var(--mk-detail-green); text-decoration: underline; }
.shop-rating-detail.is-empty a { font-size: 10px; }
.shop-trust-popover { display: none; position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%); z-index: 6; width: 205px; padding: 10px 12px; border: 1px solid var(--mk-detail-line); border-radius: 8px; background: #fff; box-shadow: 0 6px 22px #103f3626; color: #53675b; font-size: 11px; line-height: 1.4; pointer-events: none; }
@media (hover: hover) { .shop-trust-button:hover + .shop-trust-popover { display: block; } }
.shop-trust-button:focus-visible + .shop-trust-popover, .shop-trust-item.is-open .shop-trust-popover { display: block; }
.shop-trust-item:first-child .shop-trust-popover { left: 0; transform: none; }
.shop-trust-item:last-child .shop-trust-popover { left: auto; right: 0; transform: none; }
.shop-engagement-card { padding: 17px 18px; }
.shop-engagement-card h2 { font-size: 15px; }
.shop-engagement-section { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-engagement-section + .shop-engagement-section { display: block; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--mk-detail-line); }
.shop-engagement-card .favorite-form, .shop-engagement-card .shop-follow form { margin: 0; }
.shop-engagement-card .favorite-button, .shop-follow-button, .shop-follow-telegram-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; width: max-content; max-width: 100%; padding: 8px 13px; border: 1px solid var(--mk-detail-green); border-radius: 8px; background: #fff; color: var(--mk-detail-green); font-size: 12px; font-weight: 750; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; }
.shop-engagement-card .favorite-button:hover, .shop-follow-button:hover, .shop-follow-telegram-button:hover { background: #edf5f0; color: var(--mk-detail-green); text-decoration: none; }
.shop-engagement-card .favorite-button[aria-pressed="true"], .shop-follow-button[aria-pressed="true"] { border-color: #96c5aa; background: #eaf5ee; color: #0f5c3e; }
.shop-engagement-follow-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-follower-count { margin: 3px 0 0; color: var(--mk-detail-green); font-size: 20px; font-weight: 800; line-height: 1; }
.shop-follow-state { display: inline-block; margin: 10px 0 0; color: var(--mk-detail-green); font-size: 12px; font-weight: 750; }
.shop-follow-telegram { margin: 8px 0 0; color: #5e7668; font-size: 11px; line-height: 1.4; }
.shop-follow-telegram a { color: var(--mk-detail-green); text-decoration: underline; }
.shop-follow-telegram-button { min-height: 34px; margin-top: 9px; padding: 6px 11px; font-size: 11px; }
.shop-follow-note { margin: 8px 0 0; color: #77867d; font-size: 11px; line-height: 1.4; }
.shop-info-grid { display: grid; grid-template-columns: 1.1fr .9fr 1.05fr; gap: 14px; }
.shop-info-card, .shop-secondary-card { min-width: 0; padding: 18px 20px; }
.shop-info-card > p { margin: 9px 0 0; color: #617168; font-size: 13px; line-height: 1.45; white-space: pre-line; }
.shop-offering-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.shop-info-card .shop-card-link { display: inline-block; margin-top: 13px; }
.shop-hours-today { color: var(--mk-detail-green) !important; font-weight: 750; }
.shop-hours-current { margin-top: 2px !important; color: #526a5a !important; font-size: 12px !important; }
.shop-weekly-hours { margin: 9px 0 0; padding: 0; list-style: none; }
.shop-weekly-hours li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; color: #68776e; font-size: 12px; }
.shop-weekly-hours li.is-today { color: var(--mk-detail-green); font-weight: 800; }
.shop-weekly-hours li span:last-child { text-align: right; }
.shop-lower-grid { display: grid; grid-template-columns: 1.25fr 1fr 1.05fr .85fr; gap: 14px; align-items: stretch; }
.shop-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.shop-review-disclosure { position: relative; }
.shop-review-disclosure summary, .shop-review-login { display: inline-block; padding: 6px 9px; border-radius: 6px; background: #eaf3ef; color: var(--mk-detail-green); font-size: 11px; font-weight: 750; text-decoration: none; cursor: pointer; list-style: none; white-space: nowrap; }
.shop-review-disclosure summary::-webkit-details-marker { display: none; }
.shop-review-disclosure form { position: absolute; z-index: 5; top: 100%; right: 0; width: min(330px, 78vw); display: grid; gap: 7px; padding: 15px; border: 1px solid var(--mk-detail-line); border-radius: 9px; background: #fff; box-shadow: 0 7px 25px #103f3622; }
.shop-review-disclosure label { color: #41584c; font-size: 12px; font-weight: 700; }
.shop-review-disclosure select, .shop-review-disclosure textarea { width: 100%; padding: 8px; border: 1px solid #bdcfc1; border-radius: 6px; background: #fff; color: var(--mk-detail-ink); font-size: 13px; }
.shop-review-disclosure button { padding: 8px 10px; border-radius: 7px; background: var(--mk-detail-green); color: #fff; font-size: 12px; font-weight: 700; }
.shop-rating-total { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 !important; }
.shop-rating-total strong { color: var(--mk-detail-ink); font-size: 27px; }
.shop-rating-total small { color: #718078; font-size: 11px; }
.shop-card-empty { color: #829087 !important; font-size: 12px !important; }
.shop-review { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--mk-detail-line); }
.shop-review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; color: #314a3e; font-size: 11px; }
.shop-review-meta span { color: #e89824; }
.shop-review-meta time { color: #8b978e; }
.shop-review p { margin: 5px 0 0; color: #5b6b61; font-size: 12px; line-height: 1.4; }
.shop-owner-reply { margin-top: 9px; padding: 9px; border-radius: 8px; background: #f5f8f5; color: #455e50; font-size: 11px; }
.shop-owner-reply p { margin-top: 4px; }
.shop-promotion { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; padding: 9px; border: 1px solid var(--mk-detail-line); border-radius: 8px; color: #36584a; text-decoration: none; font-size: 12px; }
.shop-promotion:hover { border-color: #9bbbab; background: #f7faf7; text-decoration: none; }
.shop-promotion span { color: #7d8b80; }
.shop-additional-card dl { margin: 9px 0 0; }
.shop-additional-card dl div { padding: 7px 0; border-bottom: 1px solid var(--mk-detail-line); }
.shop-additional-card dt { color: #7b887d; font-size: 11px; }
.shop-additional-card dd { margin: 3px 0 0; color: #4c6154; font-size: 12px; overflow-wrap: anywhere; }
.shop-additional-card a { color: var(--mk-detail-green); }
.shop-claim-card { background: #fffaf0; border-color: #f4d49a; }
.shop-secondary-card p { margin: 8px 0; color: #5f6f64; font-size: 13px; }
.shop-safety-note { padding: 17px 21px; color: #66746a; font-size: 12px; line-height: 1.45; }
.shop-safety-note strong { color: #475c4e; }
.shop-safety-note ul { margin: 7px 0 0; padding-left: 18px; }
@media (max-width: 1150px) {
  .shop-lower-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-primary-grid { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); }
}
@media (max-width: 820px) {
  .context-nav-inner, .shop-detail-main { width: calc(100% - 32px); }
  .shop-detail-main { padding-top: 24px; }
  .shop-primary-grid, .shop-info-grid { grid-template-columns: 1fr; }
  .shop-gallery-main { height: auto; aspect-ratio: 1.55; }
}
@media (max-width: 620px) {
  .context-nav-inner { min-height: 38px; }
  .shop-detail-heading h1 { font-size: 33px; }
  .shop-detail-summary { font-size: 14px; }
  .shop-gallery-main { aspect-ratio: 1.28; }
  .shop-lower-grid { grid-template-columns: 1fr; }
  .shop-contact-card, .shop-trust-card, .shop-engagement-card, .shop-info-card, .shop-secondary-card { padding: 17px; }
  .shop-detail-search { gap: 7px; padding-left: 10px; }
  .shop-detail-search button { padding-inline: 12px; }
  .shop-trust-popover { width: min(205px, 68vw); }
}

.shop-phone-number { color: #506e5e; font-size: 11px; white-space: nowrap; user-select: text; }
.shop-offering-list { margin: 13px 0 0; padding-left: 19px; list-style: disc; color: #5b6b61; font-size: 13px; line-height: 1.65; }
.shop-offering-list li::marker { color: #e9982e; }

@media (hover: none) {
  .shop-gallery-arrow, .shop-lightbox-arrow { display: none; }
}
@media (max-width: 620px) {
  .shop-gallery-secondary { gap: 7px; }
  .shop-gallery-thumb { width: 86px; height: 61px; }
  .shop-lightbox { padding: 8px; }
  .shop-lightbox-stage { padding: 4px 0 16px; }
  .shop-trust-grid { grid-template-columns: repeat(3, minmax(0, 42px)) minmax(0, 1fr); gap: 5px; }
  .shop-trust-button { width: 40px; height: 40px; }
  .shop-trust-button svg { width: 28px; height: 28px; }
  .shop-rating-stars svg { width: 100%; height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-gallery-arrow { transition: none; }
}

/* Quick actions over the main photo: favorite heart and follow bell (shop-engagement.js). */
.shop-gallery { position: relative; }
.shop-gallery-actions { position: absolute; top: 14px; right: 14px; z-index: 5; display: flex; align-items: flex-start; gap: 10px; }
.shop-round-btn { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; padding: 0 10px; border: 0; border-radius: 22px; background: #fffdf9f2; color: #456258; box-shadow: 0 2px 10px #103e3633; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, transform .15s; }
.shop-round-btn:hover { background: #fff; color: var(--mk-detail-green); transform: scale(1.06); text-decoration: none; }
.shop-round-btn:focus-visible { outline: 2px solid var(--mk-detail-green); outline-offset: 2px; }
.shop-round-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.shop-heart.is-on { color: #d23c3c; }
.shop-heart.is-on svg { fill: currentColor; }
.shop-fav-form, .shop-bell-follow { margin: 0; display: block; }
.shop-bell { position: relative; }
.shop-bell[data-following="0"] .shop-bell-menu, .shop-bell[data-following="1"] .shop-bell-follow { display: none; }
.shop-bell-summary { list-style: none; color: var(--mk-detail-green); }
.shop-bell-summary::-webkit-details-marker { display: none; }
.shop-bell-summary .shop-bell-on { fill: currentColor; }
.shop-bell-summary .shop-bell-chevron { width: 15px; height: 15px; stroke-width: 2.4; }
.shop-bell-menu[open] .shop-bell-chevron { transform: rotate(180deg); }
.shop-bell-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 6; width: 300px; padding: 8px; border: 1px solid var(--mk-detail-line); border-radius: 14px; background: #fff; box-shadow: 0 10px 32px #103f3633; color: var(--mk-detail-ink); }
.shop-bell-panel form { margin: 0; }
.shop-bell-title { margin: 4px 8px 6px; color: var(--mk-detail-muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.shop-bell-item { width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.shop-bell-item:hover, .shop-bell-item:focus-visible { background: #f2f7f3; outline: none; }
.shop-bell-item b { display: block; font-size: 14px; font-weight: 750; }
.shop-bell-item small { display: block; margin-top: 1px; color: var(--mk-detail-muted); font-size: 11.5px; line-height: 1.35; font-weight: 500; }
.shop-bell-item small a { color: var(--mk-detail-green); text-decoration: underline; }
.shop-bell-check { width: 16px; flex: none; color: transparent; font-size: 14px; font-weight: 800; line-height: 1.3; }
.shop-bell-item[aria-checked="true"] .shop-bell-check { color: var(--mk-detail-green); }
.shop-bell-unfollow { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--mk-detail-line); }
.shop-bell-leave .shop-bell-check { color: #a3392f; }
.shop-bell-leave b { color: #a3392f; }
.shop-bell-note { display: none; margin: 6px 10px 4px; font-size: 11.5px; line-height: 1.4; }
.shop-bell-note a { color: var(--mk-detail-green); text-decoration: underline; }
.shop-bell[data-tg="unlinked"] .shop-bell-note[data-tg-note="unlinked"] { display: block; }
.shop-trust-followers .shop-trust-button { width: 100%; min-width: 0; height: 44px; border-color: transparent; border-radius: 8px; color: var(--mk-detail-green); cursor: help; }
.shop-followers-detail { display: flex; flex-direction: column; align-items: center; gap: 1px; margin: 2px 0 0; text-align: center; line-height: 1.25; }
.shop-followers-detail strong { color: var(--mk-detail-ink); font-size: 13px; }
.shop-followers-detail span { color: #60756a; font-size: 11px; }
@media (max-width: 620px) {
  .shop-gallery-actions { top: 10px; right: 10px; gap: 8px; }
  .shop-round-btn { min-width: 40px; height: 40px; }
  .shop-bell-panel { position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto; width: auto; max-height: 75vh; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) { .shop-round-btn { transition: none; } }

/* Vertical thumbnail rail beside the main photo (wide screens); horizontal strip below otherwise */
@media (min-width: 1100px) {
  .shop-gallery-rail { grid-template-columns: minmax(0, 1fr) var(--rail-w); align-items: start; }
  .shop-gallery-rail .shop-gallery-secondary { flex-direction: column; height: var(--gallery-h); overflow-x: hidden; overflow-y: auto; padding: 2px 4px 2px 2px; scrollbar-width: thin; scrollbar-color: #b9cdc0 transparent; overscroll-behavior: contain; }
  .shop-gallery-rail .shop-gallery-thumb { width: 100%; height: auto; aspect-ratio: 1.45; }
  .shop-gallery-rail .shop-gallery-actions { right: calc(var(--rail-w) + 24px); }
}

/* Shop page search: query + city + district + category */
.shop-detail-search { width: 100%; grid-template-columns: minmax(180px, 1.7fr) repeat(3, minmax(130px, 1fr)) auto; padding: 7px 8px 7px 12px; }
.shop-detail-search-query { min-width: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 8px; }
.shop-detail-search-field { min-width: 0; display: block; }
.shop-detail-search-field select { width: 100%; min-width: 0; height: 39px; padding: 0 28px 0 10px; border: 1px solid #d8e3da; border-radius: 8px; background-color: #f7faf6; color: var(--mk-detail-ink); font: inherit; font-size: 13px; text-overflow: ellipsis; cursor: pointer; }
.shop-detail-search-field select:focus-visible { outline: 2px solid #83b49b; outline-offset: 1px; }
@media (max-width: 980px) {
  .shop-detail-search { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-detail-search-query { grid-column: 1 / -1; }
  .shop-detail-search button { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .shop-detail-search { grid-template-columns: 1fr; }
}

/* Review history follows the existing shop card and form vocabulary. */
.shop-reviews-page{width:min(94%,1000px);margin:2rem auto;display:grid;gap:1rem}
.shop-reviews-page textarea{display:block;width:100%;min-height:6rem;border:1px solid #cbd5e1;border-radius:.5rem;padding:.75rem;margin:.5rem 0}
.shop-reviews-page button{padding:.6rem 1rem;border-radius:.5rem;background:#174b3b;color:#fff}
.shop-review-version{border-top:1px solid #e2e8f0;padding-top:.75rem;margin-top:.75rem;overflow-wrap:anywhere}
.shop-rating-explanation{font-size:.85rem;color:#475569;line-height:1.6}
