/* ═══════════════════════════════════════
   AKMB Shop Archive — shop.css
   ═══════════════════════════════════════ */

/* ── TITLE AREA breadcrumb (absolute) ── */
.sh-title__container {
  position: relative;
}
.sh-title__breadcrumb {
  position: absolute;
  top: 14px;
  left: 10px;
  display: flex;
  align-items: center;
  font-size: .72rem;
  color: #999;
  z-index: 3;
}
.sh-title__breadcrumb a { color: #999; text-decoration: none; transition: color .15s; }
.sh-title__breadcrumb a:hover { color: var(--c-green); }
.sh-title__breadcrumb .sep { margin: 0 6px; opacity: .5; }

/* ── TITLE AREA ── */
.sh-title {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 32px;
}
.sh-title__img {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 58%;
  object-fit: cover;
  object-position: left center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.5) 22%, #000 50%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.5) 22%, #000 50%);
}
.sh-title__text {
  position: relative;
  z-index: 2;
  padding: 44px 0;
  max-width: 54%;
}
.sh-title__h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.3;
  color: var(--c-text);
  margin-bottom: 14px;
}
.sh-title__lead {
  font-size: .875rem;
  color: #666;
  line-height: 1.8;
}

/* ── LAYOUT ── */
.sh-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
  padding-bottom: 64px;
}

/* ── SEARCH BAR ── */
.sh-search {
  display: flex;
  align-items: flex-end;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.sh-search__group { flex: 1; padding: 0 16px; }
.sh-search__group:first-child { padding-left: 0; }
.sh-search__group:last-child  { padding-right: 0; }
.sh-search__group--kw { flex: 1.4; }
.sh-search__label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  color: var(--c-muted);
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.sh-search__kw-wrap { display: flex; }
.sh-search__input {
  flex: 1;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 9px 12px;
  font-size: .875rem;
  color: var(--c-text);
  background: #fafafa;
  outline: none;
  min-width: 0;
}
.sh-search__input:focus { border-color: var(--c-green); background: #fff; }
.sh-search__btn {
  background: var(--c-green);
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sh-search__select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 9px 28px 9px 12px;
  font-size: .875rem;
  color: var(--c-text);
  background: #fafafa;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.sh-search__select:focus { border-color: var(--c-green); }
.sh-search__checks { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 9px 0; }
.sh-search__checks label {
  font-size: .83rem;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: var(--c-text);
  white-space: nowrap;
}
.sh-search__checks input[type="checkbox"] { accent-color: var(--c-green); }
.sh-search__div {
  width: 1px;
  background: var(--c-border);
  align-self: stretch;
  flex-shrink: 0;
  margin: 0;
}

/* ── LIST HEAD ── */
.sh-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-border);
}
.sh-list-count { font-size: .875rem; color: var(--c-text); }
.sh-list-count strong { font-weight: 800; }
.sh-sort {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 28px 6px 10px;
  font-size: .8rem;
  color: var(--c-text);
  background: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  outline: none;
}

/* ── CARD GRID ── */
.sh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ── SHOP CARD ── */
.sh-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--c-text);
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.sh-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-3px);
  text-decoration: none;
}
.sh-card--closed { opacity: .55; }

.sh-card__thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f0ec;
}
.sh-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.sh-card:hover .sh-card__thumb img { transform: scale(1.04); }
.sh-card__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sh-card__body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* badges */
.sh-card__badges { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 4px; }
.sh-badge {
  font-size: .62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  line-height: 1.6;
  border: 1px solid currentColor;
}
.sh-badge--phys   { color: var(--c-green); background: rgba(41,83,25,.06); }
.sh-badge--online { color: #2563eb; background: rgba(37,99,235,.06); }
.sh-badge--closed { color: #aaa; border-color: #ddd; background: #f5f5f5; }

.sh-card__name {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-text);
  margin-bottom: 2px;
}
.sh-card__meta {
  font-size: .72rem;
  color: var(--c-muted);
  display: flex;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.55;
}
.sh-card__icon { flex-shrink: 0; line-height: 1.55; }
.sh-card__desc {
  font-size: .75rem;
  color: #777;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-top: 4px;
}
.sh-card__more {
  font-size: .75rem;
  font-weight: 700;
  color: var(--c-text);
  margin-top: 10px;
  display: block;
}

/* ── PAGINATION ── */
.sh-pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 32px 0 0;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
}
.sh-pagination a,
.sh-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: .83rem;
  color: var(--c-text);
  text-decoration: none;
  background: #fff;
  transition: all .15s;
}
.sh-pagination a:hover { background: #f5f8f4; border-color: var(--c-green); color: var(--c-green); }
.sh-pagination .current { background: var(--c-green); color: #fff; border-color: var(--c-green); font-weight: 700; }
.sh-pagination .dots { border: none; background: none; }

/* ── SIDEBAR ── */
.sh-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }
.sh-sidebar__box { border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden; background: #fff; }
.sh-sidebar__heading {
  font-size: .78rem;
  font-weight: 800;
  color: var(--c-text);
  padding: 10px 14px;
  border-left: 3px solid var(--c-green);
  border-bottom: 1px solid #e8e8e8;
  background: #f5f8f4;
  letter-spacing: .03em;
}

/* Region accordion */
.sh-region-list { list-style: none; padding: 0; margin: 0; }

.sh-region-list__btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  border-bottom: 1px solid #e8e8e8;
  font-size: .83rem;
  color: var(--c-text);
  cursor: pointer;
  text-align: left;
  transition: background .15s;
  font-family: inherit;
}
.sh-region-list__btn:hover { background: #f5f8f4; }
.sh-region-list__item:last-child > .sh-region-list__btn { border-bottom: none; }
.sh-region-list__item.is-active > .sh-region-list__btn {
  background: #f0f6ec;
  color: var(--c-green);
  font-weight: 700;
}

.sh-region-list__chevron {
  font-size: .8rem;
  opacity: .4;
  display: inline-block;
  transition: transform .2s;
  flex-shrink: 0;
}
.sh-region-list__btn[aria-expanded="true"] .sh-region-list__chevron { transform: rotate(90deg); opacity: .6; }
.sh-region-list__item.is-active .sh-region-list__chevron { opacity: .6; }

/* Prefecture sublist */
.sh-pref-list { list-style: none; padding: 0; margin: 0; background: #f8faf7; }
.sh-pref-list[hidden] { display: none; }
.sh-pref-list__item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 8px 22px;
  font-size: .78rem;
  color: var(--c-text);
  text-decoration: none;
  border-bottom: 1px solid #eef0ee;
  transition: background .12s;
}
.sh-pref-list__item:last-child a { border-bottom: none; }
.sh-pref-list__item a:hover { background: #eaf2e6; color: var(--c-green); }
.sh-pref-list__item.is-current a { color: var(--c-green); font-weight: 700; }
.sh-pref-list__count { font-size: .68rem; color: var(--c-muted); flex-shrink: 0; }

/* Sidebar type checkboxes */
.sh-sidebar__types { padding: 10px 14px; display: flex; flex-direction: column; gap: 10px; }
.sh-sidebar__types label {
  font-size: .83rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--c-text);
  padding: 4px 0;
}
.sh-sidebar__types input[type="checkbox"] { accent-color: var(--c-green); }

/* Popular areas */
.sh-popular-list { list-style: none; padding: 4px 14px; margin: 0; }
.sh-popular-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: .83rem;
}
.sh-popular-list li:last-child { border-bottom: none; }
.sh-popular-list a { color: var(--c-text); text-decoration: none; }
.sh-popular-list a:hover { color: var(--c-green); }
.sh-popular-list span { color: var(--c-muted); font-size: .78rem; font-weight: 600; }

.sh-no-results { text-align: center; padding: 60px 0; color: var(--c-muted); font-size: .9rem; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .sh-grid { grid-template-columns: repeat(2, 1fr); }
  .sh-title__text { max-width: 60%; }
  .sh-title__img  { width: 44%; }
}
@media (max-width: 768px) {
  .sh-layout { grid-template-columns: 1fr; }
  .sh-sidebar { position: static; }
  .sh-search { flex-direction: column; gap: 14px; }
  .sh-search__group { padding: 0; }
  .sh-search__div { width: 100%; height: 1px; }
  .sh-title__text { max-width: 100%; padding: 32px 0; }
  .sh-title__img  { display: none; }
}
@media (max-width: 480px) {
  .sh-grid { grid-template-columns: 1fr; }
}
