/* Store Service public page — extends activity-store visual; page-local only. */

.ett-store-service .chip--scope {
  background: var(--sage-light, #edf4ef);
  color: var(--primary, #26352f);
}

/* Audience tags aligned with list cards (peer-only / peer-ok). */
.ett-store-service .chip--peer-only {
  background: #FFE0B2;
  color: #8A4300;
}
.ett-store-service .chip--peer-ok {
  background: #C8F4F1;
  color: #155E63;
}

/* Location pin — same red asset / 14×14 / gap as agency review pages. */
.ett-store-service .merchant-meta__loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ett-store-service .merchant-meta__pin {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  object-fit: contain;
  display: block;
}

/* Remove activity gold left rule; frameless section icons via <img>. */
.ett-store-service .section-heading {
  border-left: 0;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ett-store-service .section-heading--icon::before {
  content: none;
  display: none;
}
.ett-store-service .section-heading__icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.ett-store-service .svc-section[id] {
  scroll-margin-top: 28px;
}
.ett-store-service .svc-section {
  margin-top: 28px;
  padding-bottom: 4px;
  max-width: 100%;
  min-width: 0;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.ett-store-service .svc-section .section-heading h2 {
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 24px;
  line-height: 1.3;
  margin: 0;
  color: #15261f;
}
.ett-store-service .svc-prose {
  font-size: 15px;
  line-height: 1.8;
  color: #4f514d;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ett-store-service .svc-expertise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.ett-store-service .svc-expertise-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 14px;
  border-radius: 999px;
  background: #f1f1ed;
  border: 1px solid var(--border, #e7e1d7);
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal, #2e2e2b);
}

/* Merchant nav — ring SVGs already include frame; no CSS border stack. */
.ett-store-service .merchant-nav-chip[data-ett-nav="service"]::before,
.ett-store-service .merchant-nav-chip[data-ett-nav="menu"]::before,
.ett-store-service .merchant-nav-chip[data-ett-nav="photos"]::before {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background-color: transparent;
  background-size: 45px 45px;
}
.ett-store-service .merchant-nav-chip[data-ett-nav="service"]::before {
  background-image: url("/view/img/ett_agency/service-person-ring-v2.svg");
}
.ett-store-service .merchant-nav-chip[data-ett-nav="menu"]::before {
  background-image: url("/view/img/ett_agency/menu-ring.svg");
}
.ett-store-service .merchant-nav-chip[data-ett-nav="photos"]::before {
  background-image: url("/view/img/ett_agency/photos-ring.svg");
}
.ett-store-service .merchant-nav-chip[data-ett-nav="expertise"]::before {
  background-image: url("/view/img/ett_agency/icon-shield.svg");
}

/* Social above share — agency-style icon chips. */
.ett-store-service .svc-share-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin: 0 0 10px;
  max-width: 100%;
}
.ett-store-service .svc-share-social__link {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border, #e7e1d7);
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
  padding: 0;
  text-decoration: none;
  flex: 0 0 30px;
}
.ett-store-service .svc-share-social__link:hover {
  border-color: var(--sage, #8faf9d);
}
.ett-store-service .svc-share-social__link:focus-visible {
  outline: 2px solid var(--gold, #b89a63);
  outline-offset: 2px;
}
/* YouTube / Threads / X — frameless (keep hit area + focus). */
.ett-store-service .svc-share-social__link[data-social="youtube"],
.ett-store-service .svc-share-social__link[data-social="threads"],
.ett-store-service .svc-share-social__link[data-social="x"] {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.ett-store-service .svc-share-social__link[data-social="youtube"]:hover,
.ett-store-service .svc-share-social__link[data-social="threads"]:hover,
.ett-store-service .svc-share-social__link[data-social="x"]:hover {
  border-color: transparent;
}
.ett-store-service .svc-share-social__link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.ett-store-service .svc-share-social__link[data-social="youtube"] img,
.ett-store-service .svc-share-social__link[data-social="threads"] img,
.ett-store-service .svc-share-social__link[data-social="x"] img {
  border-radius: 0;
}

/* Carousel — D4 / T2 / M1 */
.svc-carousel {
  --svc-visible: 4;
  --svc-frame-h: 248px;
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  grid-template-rows: auto auto;
  gap: 10px 8px;
  align-items: center;
  max-width: 100%;
}
.svc-carousel__track {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  border: 0;
  touch-action: pan-y;
  min-height: var(--svc-frame-h);
  outline: none;
}
.svc-carousel__track:focus-visible {
  box-shadow: 0 0 0 2px var(--gold, #b89a63);
}
.svc-carousel__strip {
  display: flex;
  width: 100%;
  transition: transform .35s ease;
  will-change: transform;
}
.svc-carousel__slide {
  display: block;
  margin: 0;
  flex: 0 0 calc(100% / var(--svc-visible));
  max-width: calc(100% / var(--svc-visible));
  padding: 0 5px;
  box-sizing: border-box;
}
.svc-carousel__open {
  display: block;
  width: 100%;
  height: var(--svc-frame-h);
  margin: 0;
  padding: 0;
  border: 1px solid var(--border, #e7e1d7);
  border-radius: 10px;
  background: #f4f1ea;
  cursor: zoom-in;
  overflow: hidden;
}
.svc-carousel__open img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #f4f1ea;
}
.svc-carousel__nav {
  grid-row: 1;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(38, 53, 47, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--primary, #26352f);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(38, 53, 47, .06);
}
.svc-carousel__nav--prev { grid-column: 1; }
.svc-carousel__nav--next { grid-column: 3; }
.svc-carousel__nav[hidden] { display: none !important; }
.svc-carousel__nav:hover,
.svc-carousel__nav:focus-visible {
  border-color: var(--gold, #b89a63);
  outline: none;
}
.svc-carousel__counter {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted, #746f67);
}

/* Lightbox */
.svc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 24, 22, .88);
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.svc-lightbox[hidden] { display: none !important; }
.svc-lightbox__figure {
  margin: 0;
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.svc-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 36px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.svc-lightbox__counter {
  margin: 0;
  color: rgba(250, 248, 243, .85);
  font-size: 13px;
}
.svc-lightbox__close,
.svc-lightbox__nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
}
.svc-lightbox__close {
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
}
.svc-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.svc-lightbox__nav--prev { left: max(10px, env(safe-area-inset-left)); }
.svc-lightbox__nav--next { right: max(10px, env(safe-area-inset-right)); }
.svc-lightbox__nav[hidden] { display: none !important; }
body.svc-lightbox-open { overflow: hidden; }

@media (max-width: 1100px) {
  .svc-carousel {
    --svc-visible: 2;
    --svc-frame-h: 236px;
  }
}
@media (max-width: 760px) {
  .svc-carousel {
    --svc-visible: 1;
    --svc-frame-h: 220px;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 8px 4px;
  }
  .svc-carousel__nav { width: 34px; height: 34px; }
  .ett-store-service .svc-section { margin-top: 22px; }
  .ett-store-service .svc-section .section-heading h2 { font-size: 21px; }
  .ett-store-service .svc-section[id] { scroll-margin-top: 20px; }
  .ett-store-service .svc-share-social { justify-content: flex-start; }
}

/* Invalid LINE contact uses <button class="line-primary"> — match anchor look (page-local). */
.ett-store-service button.line-primary {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}
