/* ════════════════════════════════════════════════
   shop.css — Музейн дэлгүүр (онлайн дэлгүүр загвар)
   Brand: ХӨХ (#031F3E) + УЛААН (#E91518) — хүрэн БИШ.
   (хүрэн зөвхөн collection/exhibition хэсэгт)
   Base: index.css (vars, .container, .btn)
   prefix: shop-
   ════════════════════════════════════════════════ */

:root {
  --shop-navy: #031F3E;
  --shop-navy-2: #06294f;
  --shop-red: #E91518;
  --shop-gold: #C9A24A;
  --shop-line: #e6e9ef;
  --shop-soft: #f6f8fb;
  --shop-text: #1A2333;
  --shop-mute: #6B7280;
}

.shop-body {
  margin: 0;
  font-family: 'Montserrat', 'Noto Sans Mongolian', sans-serif;
  color: var(--shop-text);
  background: #fff;
}
.shop-body * { box-sizing: border-box; }
.shop-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ─────────── HEADER ─────────── */
.shop-topbar { position: sticky; top: 0; z-index: 40; background: var(--shop-navy); border-bottom: 3px solid var(--shop-red); }

/* utility strip */
.shop-util { background: #02152c; }
.shop-util-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 1rem; }
.shop-util-note { font-size: .78rem; color: rgba(255,255,255,.72); display: inline-flex; align-items: center; gap: .5rem; }
.shop-util-note i { color: var(--shop-gold); }
.shop-util-right { display: flex; align-items: center; gap: 1.25rem; }
.shop-util-link { font-size: .78rem; color: rgba(255,255,255,.78); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; transition: color .2s; }
.shop-util-link:hover { color: var(--shop-gold); }
.shop-util-lang { display: inline-flex; gap: .12rem; font-size: .76rem; }
.shop-util-lang a { color: rgba(255,255,255,.6); text-decoration: none; padding: 2px 7px; border-radius: 5px; cursor: pointer; transition: .15s; }
.shop-util-lang a.is-active { color: #fff; background: rgba(255,255,255,.14); font-weight: 700; }
.shop-util-lang a:hover { color: #fff; }

/* main bar */
.shop-main-inner { display: flex; align-items: center; gap: 1.75rem; height: 76px; }
.shop-logo { display: flex; align-items: center; gap: .8rem; text-decoration: none; flex-shrink: 0; }
.shop-logo img { height: 44px; width: auto; }
.shop-logo-text { display: flex; flex-direction: column; line-height: 1.18; }
.shop-logo-text b { font-size: 1.08rem; font-weight: 800; color: #fff; letter-spacing: .01em; }
.shop-logo-text span { font-size: .62rem; color: var(--shop-gold); letter-spacing: .18em; text-transform: uppercase; }

.shop-search {
  flex: 1; max-width: 620px; display: flex; align-items: stretch;
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.shop-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: .95rem; color: var(--shop-text); padding: .7rem 1.15rem;
}
.shop-search input::placeholder { color: #9aa3b2; }
.shop-search-btn {
  border: none; background: var(--shop-red); color: #fff; padding: 0 1.45rem; cursor: pointer;
  font-size: 1rem; display: grid; place-items: center; transition: background .2s;
}
.shop-search-btn:hover { background: #c81115; }

.shop-main-actions { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; flex-shrink: 0; }
.shop-action { display: inline-flex; align-items: center; gap: .55rem; color: rgba(255,255,255,.85); text-decoration: none; font-size: .85rem; font-weight: 600; transition: color .2s; }
.shop-action i { font-size: 1.2rem; color: var(--shop-gold); transition: color .2s; }
.shop-action:hover { color: #fff; }
.shop-action:hover i { color: var(--shop-red); }

@media (max-width: 820px) {
  .shop-util-note { display: none; }
  .shop-main-inner { flex-wrap: wrap; height: auto; padding: .75rem 0; gap: .75rem 1rem; }
  .shop-search { order: 3; flex-basis: 100%; max-width: none; }
  .shop-action span { display: none; }
}

/* ─────────── HERO (navy gradient, compact) ─────────── */
.shop-hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(3,31,62,.88) 0%, rgba(6,41,79,.74) 55%, rgba(3,31,62,.92) 100%),
    url('../img/shop-header.jpg') center / cover no-repeat;
  color: #fff; overflow: hidden;
  padding: 44px 0 40px;
}
.shop-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 88% 10%, rgba(201,162,74,.18), transparent 55%);
  pointer-events: none;
}
.shop-hero-inner { position: relative; z-index: 1; }
.shop-hero-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--shop-gold);
  border: 1px solid rgba(201,162,74,.5); padding: 4px 13px; border-radius: 100px; margin-bottom: 14px;
}
.shop-hero h1 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); font-weight: 800; margin: 0 0 10px; letter-spacing: -.01em; }
.shop-hero p { font-size: clamp(.95rem,1.2vw,1.05rem); color: rgba(255,255,255,.85); max-width: 640px; line-height: 1.6; margin: 0; }

/* hero watermark */
.shop-hero-art { position: absolute; right: -10px; bottom: -40px; font-size: 13rem; color: rgba(255,255,255,.05); z-index: 0; transform: rotate(-10deg); pointer-events: none; }

/* ─────────── CATEGORY BAR (compact tiles — их жижиг, олон багтана) ─────────── */
.shop-catbar { padding: 1.9rem 0 .4rem; }
.shop-catbar-head { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.shop-catbar-head h2 { font-size: 1.1rem; font-weight: 800; color: var(--shop-navy); margin: 0; }
.shop-catbar-head span { font-size: .82rem; color: var(--shop-mute); }

.shop-cattiles { display: flex; flex-wrap: wrap; gap: .65rem; }
.shop-cat-tile {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .95rem .45rem .5rem;
  background: #fff; border: 1px solid var(--shop-line); border-radius: 100px;
  text-decoration: none; cursor: pointer;
  transition: transform .16s, box-shadow .16s, border-color .16s, background .16s;
}
.shop-cat-tile-ic {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: .9rem; color: var(--shop-gold);
  background: linear-gradient(160deg, #06294f, #031F3E); flex-shrink: 0; transition: .16s;
}
.shop-cat-tile-tx { display: flex; flex-direction: column; line-height: 1.1; }
.shop-cat-tile-name { font-size: .9rem; font-weight: 700; color: var(--shop-navy); }
.shop-cat-tile-count { font-size: .68rem; color: var(--shop-mute); }
.shop-cat-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(3,31,62,.13); border-color: rgba(3,31,62,.22); }
.shop-cat-tile.is-active { background: var(--shop-navy); border-color: var(--shop-navy); }
.shop-cat-tile.is-active .shop-cat-tile-name { color: #fff; }
.shop-cat-tile.is-active .shop-cat-tile-count { color: rgba(255,255,255,.6); }
.shop-cat-tile.is-active .shop-cat-tile-ic { background: var(--shop-red); color: #fff; }

/* ─────────── No-purchase note ─────────── */
.shop-note {
  display: flex; align-items: center; gap: .75rem;
  background: var(--shop-soft); border: 1px solid var(--shop-line);
  border-left: 3px solid var(--shop-red);
  border-radius: 8px; padding: .85rem 1.2rem; margin: 1.75rem 0 0;
  font-size: .9rem; color: var(--shop-text); line-height: 1.5;
}
.shop-note i { color: var(--shop-red); font-size: 1.05rem; flex-shrink: 0; }

/* ─────────── LAYOUT: sidebar + products ─────────── */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; align-items: start; padding: 2rem 0 4rem; }
.shop-sidebar-backdrop { display: none; }

/* Sidebar filters */
.shop-sidebar { position: sticky; top: 90px; }
.shop-filter-card { background: #fff; border: 1px solid var(--shop-line); border-radius: 12px; overflow: hidden; }
.shop-filter-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.1rem; background: var(--shop-navy); color: #fff;
}
.shop-filter-head b { font-size: .95rem; font-weight: 700; }
.shop-filter-clear {
  appearance: none; border: none; background: transparent; color: rgba(255,255,255,.8);
  font-family: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; display: inline-flex; gap: .35rem; align-items: center;
}
.shop-filter-clear:hover { color: var(--shop-gold); }
.shop-fgroup { padding: 1.1rem; border-top: 1px solid var(--shop-line); }
.shop-fgroup:first-of-type { border-top: none; }
.shop-fgroup-title { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--shop-navy); margin-bottom: .75rem; }
.shop-opt {
  display: flex; align-items: center; gap: .6rem; padding: .35rem 0;
  font-size: .9rem; color: var(--shop-text); cursor: pointer;
}
.shop-opt input { accent-color: var(--shop-red); width: 16px; height: 16px; cursor: pointer; }
.shop-opt:hover { color: var(--shop-navy); }

/* Source radio as pills */
.shop-src-opts { display: flex; flex-direction: column; gap: .4rem; }
.shop-src-pill {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .75rem; border: 1px solid var(--shop-line); border-radius: 8px;
  font-size: .88rem; font-weight: 600; color: var(--shop-text); cursor: pointer; transition: all .15s;
}
.shop-src-pill input { display: none; }
.shop-src-pill i { width: 16px; text-align: center; color: var(--shop-mute); }
.shop-src-pill:hover { border-color: var(--shop-navy); }
.shop-src-pill:has(input:checked) { background: var(--shop-navy); border-color: var(--shop-navy); color: #fff; }
.shop-src-pill:has(input:checked) i { color: var(--shop-gold); }

/* ─────────── Product area ─────────── */
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-bottom: 1.1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--shop-line); flex-wrap: wrap;
}
.shop-count { font-size: .95rem; color: var(--shop-mute); }
.shop-count strong { color: var(--shop-navy); font-size: 1.15rem; }
.shop-filter-toggle { display: none; }
.shop-sort { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--shop-mute); }
.shop-sort select {
  font-family: inherit; font-size: .88rem; padding: .45rem .8rem; border: 1px solid var(--shop-line);
  border-radius: 8px; background: #fff; color: var(--shop-text); cursor: pointer;
}

.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.shop-grid.is-empty::after {
  content: "Тохирох бүтээгдэхүүн олдсонгүй."; grid-column: 1 / -1; text-align: center;
  color: var(--shop-mute); padding: 3rem 0;
}

/* Product card */
.shop-card {
  background: #fff; border: 1px solid var(--shop-line); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.shop-card[hidden] { display: none; }
.shop-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(3,31,62,.13); border-color: rgba(3,31,62,.2); }

.shop-thumb {
  position: relative; aspect-ratio: 4/3; display: grid; place-items: center;
  font-size: 2.6rem; color: rgba(255,255,255,.92);
  background: linear-gradient(160deg, var(--shop-navy) 0%, var(--shop-navy-2) 100%);
}
.shop-thumb--handicraft { background: linear-gradient(160deg, #06294f, #031F3E); }
.shop-thumb--books      { background: linear-gradient(160deg, #0a3a6b, #06294f); }
.shop-thumb--stationery { background: linear-gradient(160deg, #08305c, #04223f); }
.shop-thumb--fashion    { background: linear-gradient(160deg, #062a52, #031c38); }
.shop-thumb--jewelry    { background: linear-gradient(160deg, #0a3a6b, #06294f); }
.shop-thumb--souvenir   { background: linear-gradient(160deg, #08305c, #04223f); }
.shop-thumb i { opacity: .9; }

/* Source badge — Музейн мерч vs Гаднаас */
.shop-src-badge {
  position: absolute; top: .7rem; left: .7rem;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .66rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 100px;
}
.shop-src-badge--museum { background: var(--shop-red); color: #fff; }
.shop-src-badge--external { background: #fff; color: var(--shop-navy); border: 1px solid var(--shop-line); }

.shop-card-body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.shop-cat { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--shop-gold); }
.shop-name { font-size: 1rem; font-weight: 700; color: var(--shop-navy); margin: 0; line-height: 1.3; }
.shop-desc { font-size: .85rem; color: var(--shop-mute); line-height: 1.55; margin: 0; flex: 1; }
.shop-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin-top: .55rem; padding-top: .75rem; border-top: 1px solid var(--shop-line);
}
.shop-price { font-size: 1.12rem; font-weight: 800; color: var(--shop-navy); }
.shop-mat { font-size: .76rem; color: var(--shop-mute); display: inline-flex; align-items: center; gap: .35rem; }

/* ─────────── FOOTER (navy) ─────────── */
.shop-footer { background: var(--shop-navy); color: rgba(255,255,255,.8); margin-top: 0; }
.shop-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.shop-footer-brand img { height: 54px; margin-bottom: 1rem; }
.shop-footer-brand p { font-size: .88rem; line-height: 1.6; color: rgba(255,255,255,.6); max-width: 260px; }
.shop-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 1rem; }
.shop-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.shop-footer a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .88rem; transition: color .2s; }
.shop-footer a:hover { color: var(--shop-gold); }
.shop-footer li i { width: 18px; color: var(--shop-gold); }
.shop-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  font-size: .8rem; color: rgba(255,255,255,.55);
}

/* ─────────── Responsive ─────────── */
@media (max-width: 980px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 86vw; z-index: 60;
    background: #fff; padding: 1rem; overflow-y: auto; transform: translateX(-100%);
    transition: transform .25s ease; box-shadow: 0 0 40px rgba(0,0,0,.25);
  }
  .shop-sidebar.is-open { transform: none; }
  .shop-filter-toggle {
    display: inline-flex; align-items: center; gap: .5rem; background: var(--shop-navy); color: #fff;
    border: none; font-family: inherit; font-weight: 600; font-size: .88rem; padding: .55rem 1.1rem;
    border-radius: 8px; cursor: pointer;
  }
  .shop-sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 55; opacity: 0; visibility: hidden; transition: .2s; }
  .shop-sidebar-backdrop.is-open { opacity: 1; visibility: visible; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .shop-footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .shop-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════
   PRODUCT DETAIL (бүтээгдэхүүний дэлгэрэнгүй)
   ════════════════════════════════════════════════ */
.shop-breadcrumb { padding: 1.4rem 0 0; font-size: .82rem; color: var(--shop-mute); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.shop-breadcrumb a { color: var(--shop-mute); text-decoration: none; }
.shop-breadcrumb a:hover { color: var(--shop-red); }
.shop-breadcrumb i { font-size: .58rem; opacity: .5; }
.shop-breadcrumb .cur { color: var(--shop-navy); font-weight: 600; }

.shop-pd { padding: 1.5rem 0 3rem; }
.shop-pd-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.75rem; align-items: start; }

/* gallery */
.shop-pd-main {
  position: relative; aspect-ratio: 1/1; border-radius: 20px; display: grid; place-items: center;
  font-size: 6.5rem; color: rgba(255,255,255,.92);
  background: linear-gradient(160deg, #06294f 0%, #031F3E 100%);
}
.shop-pd-thumbs { display: flex; gap: .7rem; margin-top: .85rem; }
.shop-pd-thumb {
  width: 74px; height: 74px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.45rem; color: var(--shop-gold); background: linear-gradient(160deg, #06294f, #031F3E);
  cursor: pointer; border: 2px solid transparent; opacity: .65; transition: .15s;
}
.shop-pd-thumb.is-active, .shop-pd-thumb:hover { opacity: 1; border-color: var(--shop-red); }

/* info */
.shop-pd-cat { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--shop-gold); }
.shop-pd-badges { display: flex; gap: .5rem; margin-bottom: .6rem; }
/* Дэлгэрэнгүй хуудсанд badge нь картын адил absolute биш — мөрөндөө байрлана */
.shop-pd-badges .shop-src-badge { position: static; }
.shop-pd-title { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 800; color: var(--shop-navy); margin: .35rem 0 .5rem; line-height: 1.2; }
.shop-pd-price { font-size: 1.85rem; font-weight: 800; color: var(--shop-navy); margin: .4rem 0 1.1rem; }
.shop-pd-price small { font-size: .8rem; font-weight: 600; color: var(--shop-mute); margin-left: .4rem; }
.shop-pd-lead { font-size: .98rem; color: var(--shop-text); line-height: 1.75; margin: 0 0 1.5rem; }
.shop-pd-specs { list-style: none; padding: 1.2rem 1.35rem; margin: 0 0 1.4rem; background: var(--shop-soft); border: 1px solid var(--shop-line); border-radius: 14px; display: grid; gap: .7rem; }
.shop-pd-spec { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; padding-bottom: .7rem; border-bottom: 1px solid var(--shop-line); margin: 0; }
.shop-pd-spec:last-child { border: none; padding: 0; }
.shop-pd-spec dt { color: var(--shop-mute); }
.shop-pd-spec dd { color: var(--shop-navy); font-weight: 600; margin: 0; text-align: right; }
.shop-pd-note { display: flex; gap: .75rem; align-items: flex-start; background: rgba(201,162,74,.1); border: 1px solid rgba(201,162,74,.4); border-radius: 12px; padding: 1rem 1.2rem; font-size: .88rem; line-height: 1.55; color: var(--shop-text); }
.shop-pd-note i { color: #8C6A1F; font-size: 1.05rem; flex-shrink: 0; margin-top: .1rem; }
.shop-pd-actions { display: flex; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.shop-pd-btn { display: inline-flex; align-items: center; gap: .55rem; font-size: .9rem; font-weight: 700; padding: .75rem 1.4rem; border-radius: 10px; text-decoration: none; cursor: pointer; transition: .2s; border: 1px solid transparent; }
.shop-pd-btn--primary { background: var(--shop-navy); color: #fff; }
.shop-pd-btn--primary:hover { background: var(--shop-red); }
.shop-pd-btn--ghost { background: #fff; color: var(--shop-navy); border-color: var(--shop-line); }
.shop-pd-btn--ghost:hover { border-color: var(--shop-navy); }

/* sections */
.shop-pd-section { padding: 2.5rem 0; border-top: 1px solid var(--shop-line); }
.shop-pd-section h2 { font-size: 1.3rem; color: var(--shop-navy); margin: 0 0 1.1rem; font-weight: 800; }
.shop-pd-section p { font-size: .95rem; line-height: 1.85; color: var(--shop-text); margin: 0 0 1rem; max-width: 780px; }
.shop-pd-section ul { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--shop-text); line-height: 1.8; font-size: .95rem; }

/* card → detail link (stretched) */
.shop-card { position: relative; }
.shop-card-go { position: absolute; inset: 0; z-index: 1; }
.shop-card .shop-name { transition: color .2s; }
.shop-card:hover .shop-name { color: var(--shop-red); }

@media (max-width: 820px) {
  .shop-pd-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .shop-pd-main { font-size: 5rem; }
}
