/* 희올람 스토어 — shared view pieces: page heads, sticky buy bars, store rows, stars, drawer and search. */
:root { --hd-stuck: 57px; --buybar-h: 73px; }
@media (min-width: 900px) { :root { --hd-stuck: 113px; } }
[hidden] { display: none !important; }

/* ---------- page head (map, shop) ---------- */
.pagehead { padding-block: 20px 14px; }
.pagehead__t { font-size: 22px; font-weight: 700; line-height: 1.35; letter-spacing: -0.04em; }
.pagehead__s { margin-top: 4px; font-size: 14px; color: var(--c-text-3); }
.pagehead__s b { font-weight: 700; color: var(--c-text); }
@media (min-width: 900px) {
  .pagehead { padding-block: 44px 24px; }
  .pagehead__t { font-size: 30px; }
  .pagehead__s { font-size: 15px; }
}

/* price: number and 원 stay together ("35,000원"), the gap only separates discount and list price */
.price__main { display: inline-flex; align-items: baseline; white-space: nowrap; }

/* ---------- stars, legend dots, copy button ---------- */
.stars { display: inline-flex; gap: 1px; color: #FFB400; vertical-align: middle; }
.stars .ic { width: 14px; height: 14px; }
.ic--star.is-off { color: var(--c-line-2); }
.lg { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; }
.lg:not(:first-child) { margin-left: 12px; }
.lg--partner { background: var(--c-brand); box-shadow: 0 0 0 3px rgba(240, 104, 26, .22); }
.lg--food { background: #2B2B2E; }
.lg--other { background: #A8A8AE; }
.copybtn { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 9px 0 7px; margin-left: 4px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--c-line-2); font-size: 12px; font-weight: 500; color: var(--c-text-2); vertical-align: 1px; white-space: nowrap; }
.copybtn .ic { width: 14px; height: 14px; }
.copybtn:hover { box-shadow: inset 0 0 0 1px var(--c-text-3); }

/* ---------- store row (home teaser, map list, cluster sheet) ---------- */
.srow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 10px 2px; border-bottom: 1px solid var(--c-line); text-align: left; transition: background .15s; }
.srow__ava { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--c-band); color: var(--c-text-2); font-size: 16px; font-weight: 700; }
.srow__ava.is-partner { background: var(--c-brand); color: #fff; }
.srow__ava.is-other { background: #fff; color: var(--c-text-3); box-shadow: inset 0 0 0 1px var(--c-line-2); }
.srow__main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1px 6px; }
.srow__main b { font-size: 15px; font-weight: 700; letter-spacing: -0.03em; }
.srow__main small { flex-basis: 100%; min-width: 0; font-size: 13px; color: var(--c-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow__check { flex-basis: 100%; font-size: 12px; font-style: normal; color: #8A5A00; }
.srow__year { flex: none; text-align: right; font: 600 15px/1.2 var(--font-en); color: var(--c-text); }
.srow__year small { display: block; margin-top: 2px; font: 400 11px var(--font); color: var(--c-text-4); }
.srow.is-sel { background: var(--c-brand-soft); box-shadow: inset 3px 0 0 var(--c-brand); }
@media (hover: hover) { .srow:hover { background: var(--c-band-2); } }

/* ---------- sticky buy bar (story, product detail, checkout, review) ---------- */
.buybar { display: none; }
body.has-buybar { padding-bottom: calc(var(--buybar-h) + env(safe-area-inset-bottom, 0px)); }
body.has-buybar .tabbar { display: none; }
body.has-buybar .buybar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--c-line); }
body.has-buybar .fab { bottom: calc(var(--buybar-h) + 14px + env(safe-area-inset-bottom, 0px)); }
body.has-buybar .fab__btn--kakao { display: none; }
body.has-buybar .proto-toast { bottom: calc(var(--buybar-h) + 16px + env(safe-area-inset-bottom, 0px)); }
.buybar__in { display: flex; align-items: center; gap: 8px; }
.buybar__info { flex: 1; min-width: 0; }
.buybar__t { font-size: 13px; color: var(--c-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__p { font-size: 13px; color: var(--c-text-2); }
.buybar__p b { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--c-text); }
.buybar__main { flex: 1; }
.buybar .btn--line { flex: none; padding: 0 16px; }
.heart--bar, .heart--inline { position: static; flex: none; width: 52px; height: 52px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--c-line-2); }
.heart--bar .ic, .heart--inline .ic { width: 24px; height: 24px; }
@media (min-width: 900px) {
  body.has-buybar .fab__btn--kakao { display: grid; }
  body.has-buybar { padding-bottom: 0; }
  body.has-buybar .buybar { display: none; }
  body.has-buybar .fab { bottom: 28px; }
  body.has-buybar .proto-toast { bottom: 32px; }
}

/* ---------- full menu drawer ---------- */
.sheet--left .sheet__head { padding-top: 10px; }
.sheet--left .sheet__title .wm { font-size: 19px; }
.drawer { display: grid; gap: 22px; padding-top: 6px; }
.drawer__login { padding: 18px; border-radius: var(--r-md); background: var(--c-band); font-size: 14px; color: var(--c-text-2); }
.drawer__login b { color: var(--c-text); }
.drawer__login-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.drawer__nav li + li { border-top: 1px solid var(--c-line); }
.drawer__nav button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 66px; text-align: left; }
.drawer__nav button > .ic:first-child { width: 22px; height: 22px; color: var(--c-text-2); }
.drawer__nav span { flex: 1; display: grid; }
.drawer__nav b { font-size: 16px; font-weight: 700; letter-spacing: -0.03em; }
.drawer__nav small { font-size: 13px; color: var(--c-text-3); }
.drawer__chev { width: 18px; height: 18px; color: var(--c-text-4); }
.drawer__cs { padding-top: 18px; border-top: 1px solid var(--c-line); font-size: 13px; color: var(--c-text-3); }
.drawer__cs b { font-weight: 700; color: var(--c-text); }

/* ---------- search ---------- */
.sheet--full .sheet__body { padding-top: 8px; }
.search { display: grid; gap: 28px; }
.search__box { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px; border-radius: var(--r-pill); background: var(--c-band); }
.search__box:focus-within { box-shadow: inset 0 0 0 1.5px var(--c-text); background: #fff; }
.search__box .ic { width: 20px; height: 20px; color: var(--c-text-3); }
.search__input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 16px; outline: none; }
.search__h { margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.search__h span { margin-left: 2px; color: var(--c-brand-ink); }
.search__pop { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.search__pop button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; font-size: 15px; }
.search__pop b { width: 14px; font: 600 14px var(--font-en); color: var(--c-brand-ink); }
.search__pop li:nth-child(n+4) b { color: var(--c-text-4); }
.search__res { display: grid; gap: 22px; }
.search__list button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 6px 0; text-align: left; }
.search__list img { flex: none; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.search__list span:last-child { display: grid; min-width: 0; }
.search__list b { font-size: 15px; font-weight: 500; }
.search__list small { font-size: 13px; color: var(--c-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search__ava { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--c-band); font-weight: 700; color: var(--c-text-2); }
.search__empty { padding: 36px 0; text-align: center; font-size: 14px; color: var(--c-text-3); }
