/* ════════════════════════════════════════════════
   shop.css — Музейн дэлгүүр (2026-11-23: минимал, цайвар каталог)
   Brand: хар хөх #031F3E (үндсэн бичиг) + улаан #E91518 (акцент) — бусад нь саарал/цагаан.
   Хуучин хувилбар: storage/app/backups/shop.css.bak-2026-11-23
   ════════════════════════════════════════════════ */
.shop-body {
  --s-navy: #031F3E;
  --s-red: #E91518;
  --s-red-text: #C8131A;
  --s-ink: #1b2430;
  --s-muted: #6b7380;
  --s-line: #e8e8e6;
  --s-soft: #f5f4f1;
  --s-radius: 10px;
  background: #fff;
  color: var(--s-ink);
}
.shop-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.shop-body a { color: inherit; }

/* ── Header ── */
.shop-strip { background: var(--s-navy); color: rgba(255,255,255,.78); font-size: .74rem; }
.shop-strip-inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; }
.shop-strip a { text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.shop-strip a:hover { color: #fff; }
.shop-strip span { letter-spacing: .12em; text-transform: uppercase; font-size: .66rem; }

.shop-header { background: #fff; border-bottom: 1px solid var(--s-line); position: sticky; top: 0; z-index: 40; }
.shop-header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.shop-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.shop-brand img { height: 40px; width: auto; display: block; }
.shop-brand-tag { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--s-red-text); padding-left: 12px; border-left: 1px solid var(--s-line); }
.shop-search { flex: 1; max-width: 520px; margin-left: auto; position: relative; }
.shop-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--s-muted); font-size: .85rem; }
.shop-search input {
  width: 100%; height: 42px; padding: 0 16px 0 40px; border: 1px solid var(--s-line); border-radius: 999px;
  background: var(--s-soft); font: inherit; font-size: .9rem; color: var(--s-ink); outline: none; transition: border-color .2s, background .2s;
}
.shop-search input:focus { background: #fff; border-color: var(--s-navy); }
.shop-header-tel { text-decoration: none; font-size: .86rem; font-weight: 600; color: var(--s-navy); display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.shop-header-tel i { color: var(--s-red); font-size: .8rem; }

/* ── Intro ── */
.shop-intro { padding: 56px 0 28px; }
.shop-intro h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--s-navy); letter-spacing: -.01em; }
.shop-intro p { margin: 0; max-width: 640px; color: var(--s-muted); font-size: 1rem; line-height: 1.65; }

/* ── Category tabs ── */
.shop-tabs { border-bottom: 1px solid var(--s-line); }
.shop-tabs-inner { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.shop-tabs-inner::-webkit-scrollbar { display: none; }
.shop-tab {
  background: none; border: 0; padding: 14px 0; margin-bottom: -1px; cursor: pointer; white-space: nowrap;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--s-muted); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.shop-tab span { font-weight: 500; font-size: .76rem; color: #a3a8b0; margin-left: 4px; }
.shop-tab:hover { color: var(--s-navy); }
.shop-tab.is-active { color: var(--s-navy); border-bottom-color: var(--s-red); }

/* ── Layout ── */
.shop-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-top: 32px; padding-bottom: 80px; }

/* ── Sidebar ── */
.shop-sidebar { align-self: start; position: sticky; top: 96px; }
.shop-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--s-line); font-weight: 700; color: var(--s-navy); font-size: .92rem; }
.shop-link-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600; color: var(--s-muted); text-decoration: underline; text-underline-offset: 3px; }
.shop-link-btn:hover { color: var(--s-red-text); }
.shop-sidebar-close { display: none; text-decoration: none; font-size: 1rem; }
.shop-fgroup { padding: 18px 0; border-bottom: 1px solid var(--s-line); }
.shop-fgroup-title { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--s-muted); margin-bottom: 10px; }
.shop-opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .88rem; color: var(--s-ink); cursor: pointer; }
.shop-opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--s-navy); cursor: pointer; }
.shop-sidebar-backdrop { display: none; }

/* ── Toolbar ── */
.shop-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.shop-count { font-size: .88rem; color: var(--s-muted); }
.shop-count strong { color: var(--s-navy); }
.shop-sort { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--s-muted); }
.shop-sort select { font: inherit; font-size: .86rem; color: var(--s-ink); border: 1px solid var(--s-line); border-radius: 8px; padding: 7px 30px 7px 12px; background: #fff; cursor: pointer; }
.shop-filter-toggle { display: none; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--s-line); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: .86rem; font-weight: 600; color: var(--s-navy); cursor: pointer; }

/* ── Grid & cards ── */
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
.shop-card { position: relative; display: flex; flex-direction: column; }
.shop-card[hidden] { display: none; }
.shop-card-media {
  position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--s-radius); overflow: hidden;
  background: var(--s-soft); text-decoration: none;
}
.shop-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shop-card:hover .shop-card-media img { transform: scale(1.03); }
.shop-card-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #c3c7cd; font-size: 2.6rem; transition: color .3s; }
.shop-card:hover .shop-card-ph { color: var(--s-navy); }
.shop-card-ph--lg { font-size: 4.5rem; }
.shop-card-flag {
  position: absolute; top: 12px; left: 12px; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--s-navy); background: #fff; padding: 4px 9px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.shop-card-body { padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.shop-card-cat { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--s-muted); }
.shop-card-name { margin: 0; font-size: .98rem; font-weight: 600; line-height: 1.35; color: var(--s-ink); }
.shop-card-name a { text-decoration: none; }
.shop-card-name a::after { content: ''; position: absolute; inset: 0; } /* карт бүхэлдээ дарагдана */
.shop-card:hover .shop-card-name { color: var(--s-navy); text-decoration: underline; text-underline-offset: 3px; }
.shop-card-meta { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.shop-card-price { font-size: .98rem; font-weight: 700; color: var(--s-navy); }
.shop-card-mat { font-size: .78rem; color: var(--s-muted); }
.shop-empty { padding: 40px 0; text-align: center; color: var(--s-muted); font-size: .95rem; }

/* ── Product detail ── */
.shop-pd-page { padding-top: 28px; padding-bottom: 80px; }
.shop-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--s-muted); margin-bottom: 28px; }
.shop-breadcrumb a { text-decoration: none; }
.shop-breadcrumb a:hover { color: var(--s-navy); text-decoration: underline; }
.shop-breadcrumb .cur { color: var(--s-ink); font-weight: 600; }
.shop-pd { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.shop-pd-media { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--s-soft); }
.shop-pd-media img { width: 100%; height: 100%; object-fit: contain; }
.shop-pd-info { padding-top: 6px; }
.shop-pd-title { margin: 8px 0 12px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; line-height: 1.2; color: var(--s-navy); }
.shop-pd-price { font-size: 1.5rem; font-weight: 700; color: var(--s-navy); margin-bottom: 18px; }
.shop-pd-price small { font-size: .74rem; font-weight: 500; color: var(--s-muted); margin-left: 6px; }
.shop-pd-desc { font-size: .98rem; line-height: 1.7; color: #3a4250; margin-bottom: 22px; }
.shop-pd-specs { margin: 0 0 26px; border-top: 1px solid var(--s-line); }
.shop-pd-specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--s-line); font-size: .9rem; }
.shop-pd-specs dt { color: var(--s-muted); }
.shop-pd-specs dd { margin: 0; font-weight: 600; text-align: right; }
.shop-pd-specs dd a { text-decoration: none; color: var(--s-navy); }
.shop-pd-buy { background: var(--s-soft); border-radius: var(--s-radius); padding: 20px 22px; }
.shop-pd-buy strong { display: block; color: var(--s-navy); margin-bottom: 6px; }
.shop-pd-buy p { margin: 0 0 14px; font-size: .9rem; line-height: 1.6; color: #3a4250; }
.shop-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--s-navy); color: #fff !important; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 10px 18px; border-radius: 999px; transition: background .2s; }
.shop-btn:hover { background: var(--s-red); }
.shop-btn i { font-size: .8rem; }
.shop-related { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--s-line); }
.shop-related h2 { margin: 0 0 24px; font-size: 1.25rem; font-weight: 800; color: var(--s-navy); }
.shop-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── Footer ── */
.shop-footer { background: var(--s-soft); border-top: 1px solid var(--s-line); color: var(--s-muted); font-size: .86rem; }
.shop-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
.shop-footer-brand img { height: 40px; width: auto; display: block; margin-bottom: 14px; }
.shop-footer-brand p { margin: 0; max-width: 260px; line-height: 1.6; }
.shop-footer h4 { margin: 0 0 12px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--s-navy); }
.shop-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.shop-footer a { text-decoration: none; }
.shop-footer a:hover { color: var(--s-navy); text-decoration: underline; }
.shop-footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid var(--s-line); font-size: .78rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-layout { gap: 32px; }
}
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filter-toggle { display: inline-flex; }
  .shop-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: #fff; z-index: 60;
    padding: 20px 22px; overflow-y: auto; transform: translateX(-100%); transition: transform .3s ease; box-shadow: 0 0 40px rgba(0,0,0,.15);
  }
  .shop-sidebar.is-open { transform: none; }
  .shop-sidebar-close { display: inline-block; }
  .shop-sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(3,31,62,.35); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .shop-sidebar-backdrop.is-open { opacity: 1; pointer-events: auto; }
  .shop-pd { grid-template-columns: 1fr; gap: 28px; }
  .shop-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .shop-wrap { padding: 0 16px; }
  .shop-header-inner { gap: 14px; min-height: 64px; }
  .shop-brand img { height: 32px; }
  .shop-brand-tag, .shop-header-tel { display: none; }
  .shop-strip span { display: none; }
  .shop-intro { padding: 36px 0 20px; }
  .shop-grid, .shop-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .shop-sort span { display: none; }
  .shop-footer-top { grid-template-columns: 1fr; }
}

/* Сайтын ерөнхий (index.css) section padding / text-align-аас тусгаарлана */
.shop-body .shop-products, .shop-body .shop-pd, .shop-body .shop-related { padding-left: 0; padding-right: 0; }
.shop-body .shop-products, .shop-body .shop-pd { padding-top: 0; padding-bottom: 0; }
.shop-body .shop-related { padding-bottom: 0; }
.shop-card, .shop-card-body { text-align: left; }
.shop-card-media { width: 100%; }
.shop-products, .shop-sidebar { min-width: 0; }
@media (max-width: 860px) { .shop-layout { grid-template-columns: minmax(0, 1fr); } .shop-toolbar { flex-wrap: wrap; gap: 10px; } }
.shop-card-flag { white-space: nowrap; }
@media (max-width: 640px) { .shop-card-flag { font-size: .56rem; letter-spacing: .04em; top: 8px; left: 8px; padding: 3px 7px; } }
