/* ============================================================
   collection_v2.css — Side rail + centered logo + maroon-heavy
   Brandbook: #3B0002 maroon, #C9A24A gold, #031F3E navy accent
   ============================================================ */

:root {
  --header-h: 96px;
  --strip-h: 64px;
}

body.v2-body {
  background: #e2e2e2;
  margin: 0;
}

/* Hide the default site-header from index.css since v2 uses its own */
body.v2-body .site-header {  }

/* ============================================================
   MAIN CONTENT — full width (no side rail)
   ============================================================ */
.v2-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   TOP HEADER — 5 tamgas evenly spaced (logo removed)
   ============================================================ */
/* Дээд зурвас — Үндсэн сайт руу холбоос (дэд сайт бүрд) */
.v2-topbar {
  background: #280001;
  color: rgba(255,255,255,.7);
  font-size: .72rem;
  border-bottom: 1px solid rgba(201,162,74,.18);
  height: 35px;
}
.v2-topbar-inner {
  width: 100%;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.v2-topbar-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.v2-topbar-home i { color: var(--gold); transition: transform .25s ease; }
.v2-topbar-home:hover { color: var(--gold); }
.v2-topbar-home:hover i { transform: translateX(-5px); }
.v2-topbar-sub { color: rgba(255,255,255,.45); letter-spacing: .04em; }
@media (max-width: 600px) {
  .v2-topbar-inner { padding: 0 16px; height: 30px; }
  .v2-topbar-sub { display: none; }
}

.v2-header {
  position: relative;
  height: var(--header-h);
  background: linear-gradient(180deg, #3B0002 0%, #4a0205 50%, #3B0002 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
  isolation: isolate;
}

.v2-header-pattern {
  position: absolute;
  inset: 0;
  background-image: url('../img/tamga-pattern.png');
  background-size: 220px;
  background-repeat: repeat;
  opacity: 0.06;
  filter: invert(1) sepia(1) hue-rotate(15deg) saturate(2);
  z-index: -1;
}

/* Single centered row of 5 tamgas, evenly spaced */
.v2-header-tamgas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
  z-index: 1;
  width: 100%;
  max-width: 980px;
}
.v2-header-tamgas img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
  opacity: .94;
  transition: transform .3s ease, opacity .3s ease;
  flex-shrink: 0;
}
.v2-header-tamgas img:hover {
  transform: translateY(-2px) scale(1.1);
  opacity: 1;
}


/* ============================================================
   SECTION STRIP — sticky/fixed, holds search
   ============================================================ */
.v2-section-strip {
  background: #fff;
  height: var(--strip-h);
  border-bottom: 1px solid #e8e0cc;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(59, 0, 2, .08);
}
.v2-section-strip-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.v2-strip-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.v2-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: transparent;
  text-decoration: none;
  transition: transform .25s ease;
  flex-shrink: 0;
  padding: 0;
  border: none;
}
.v2-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.v2-back:hover { transform: scale(1.08); }

.v2-section-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--maroon-deep);
  white-space: nowrap;
}
.v2-section-tag {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .25em;
  color: #fff;
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}

/* STRIP SEARCH — pill bar, takes flex space */
.v2-strip-search {
  flex: 1;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e2e2e2;
  border: 1px solid #e8e0cc;
  border-radius: 100px;
  padding: 4px 6px 4px 18px;
  transition: all .2s;
}
.v2-strip-search:focus-within {
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 74, .15);
}
.v2-strip-search > i {
  color: var(--maroon);
  font-size: .9rem;
  flex-shrink: 0;
}
.v2-strip-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: .88rem;
  color: var(--text);
  padding: 8px 4px;
  min-width: 0;
}
.v2-strip-search input::placeholder { color: var(--muted); font-weight: 500; }
.v2-strip-search-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
.v2-strip-search-btn:hover {
  background: var(--gold);
  color: var(--maroon-deep);
  transform: rotate(-15deg);
}

/* MENU TRIGGER (right) — opens slide-out panel */
.v2-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--maroon);
  color: #fff;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  border: none;
  padding: 10px 22px 10px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all .2s;
}
.v2-menu-trigger:hover {
  background: var(--gold);
  color: var(--maroon-deep);
}
.v2-menu-trigger:hover .v2-menu-lines span { background: var(--maroon-deep); }

.v2-menu-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.v2-menu-lines span {
  display: block;
  height: 2px;
  background: #fff;
  transition: background .2s;
  border-radius: 2px;
}
.v2-menu-lines span:nth-child(1) { width: 100%; }
.v2-menu-lines span:nth-child(2) { width: 70%; }
.v2-menu-lines span:nth-child(3) { width: 100%; }

/* ============================================================
   RIGHT SLIDE-OUT PANEL
   ============================================================ */
.v2-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 0, 1, .6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
  z-index: 1500;
}
.v2-panel-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.v2-side-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 460px;
  max-width: 92vw;
  background: linear-gradient(180deg, #3B0002 0%, #270203 100%);
  color: #fff;
  z-index: 1600;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.22, .61, .36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .5);
  border-left: 3px solid var(--gold);
  isolation: isolate;
  overflow: hidden;
}
.v2-side-panel.open { transform: translateX(0); }

.v2-side-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/tamga-pattern.png');
  background-size: 240px;
  opacity: 0.05;
  filter: invert(1);
  z-index: -1;
  pointer-events: none;
}

.v2-side-panel::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  background: url('../img/door-gold.png') center/contain no-repeat;
  opacity: .08;
  z-index: -1;
  pointer-events: none;
}

/* Panel header */
.v2-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px 22px;
  border-bottom: 1px solid rgba(201, 162, 74, .25);
}
.v2-panel-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.v2-panel-title h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: .02em;
}
.v2-panel-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201, 162, 74, .12);
  border: 1px solid rgba(201, 162, 74, .35);
  color: var(--gold-light);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.v2-panel-close:hover {
  background: var(--gold);
  color: var(--maroon-deep);
  border-color: var(--gold);
  transform: rotate(90deg);
}

/* Panel scroll area */
.v2-panel-nav {
  flex: 1;
  overflow-y: auto;
  padding: 26px 32px 36px;
}
.v2-panel-nav::-webkit-scrollbar { width: 6px; }
.v2-panel-nav::-webkit-scrollbar-thumb {
  background: rgba(201, 162, 74, .3);
  border-radius: 3px;
}

.v2-panel-group {
  margin-bottom: 32px;
}
.v2-panel-group-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 162, 74, .2);
}

.v2-panel-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Main nav items (numbered) */
.v2-panel-group-main li {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding-bottom: 10px;
  margin-bottom: 4px;
}
.v2-panel-group-main li:last-child {
  border-bottom: none;
}
.v2-panel-group-main a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 4px;
  color: #fff;
  text-decoration: none;
  transition: color .2s;
}
.v2-panel-group-main a:hover { color: var(--gold-light); }
.v2-panel-group-main a:hover .v2-panel-num { color: var(--gold); }
.v2-panel-group-main a:hover i { transform: translateX(4px); }

.v2-panel-num {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: rgba(201, 162, 74, .55);
  font-family: 'Courier New', monospace;
  transition: color .2s;
}
.v2-panel-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.v2-panel-group-main a i {
  font-size: .75rem;
  color: var(--gold);
  transition: transform .2s;
}
.v2-panel-sub {
  padding: 0 4px 4px 38px;
  font-size: .76rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.5;
}

/* Subdomain quick links */
.v2-panel-subdomains a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 600;
  transition: all .2s;
}
.v2-panel-subdomains a:hover {
  background: rgba(201, 162, 74, .12);
  color: var(--gold-light);
  transform: translateX(4px);
}
.v2-panel-subdomains i {
  width: 22px;
  text-align: center;
  color: var(--gold);
  font-size: .95rem;
}

/* CTA buttons in panel — at top */
.v2-panel-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(201, 162, 74, .2);
}
.v2-panel-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s;
  border: 1px solid transparent;
}
.v2-panel-cta .btn-primary {
  background: var(--gold);
  color: var(--maroon-deep);
}
.v2-panel-cta .btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 74, .35);
}
.v2-panel-cta .btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, .85);
  border-color: rgba(201, 162, 74, .35);
}
.v2-panel-cta .btn-ghost:hover {
  background: #fff;
  color: var(--maroon-deep);
  border-color: #fff;
}
.v2-panel-cta .btn-ghost:hover i { color: var(--maroon-deep); }

/* Active subdomain in panel */
.v2-panel-subdomains a.active {
  background: var(--gold);
  color: var(--maroon-deep);
  font-weight: 700;
  pointer-events: none;
}
.v2-panel-subdomains a.active i { color: var(--maroon-deep); }

/* ============================================================
   HERO override (no top tamgas — they live in header now)
   Hero has no search — moved to sticky strip
   ============================================================ */
.v2-hero { padding-top: 50px; }
.v2-hero .tamgas-row { display: none; }
.v2-hero .coll-hero-tag {
  background: rgba(201, 162, 74, .15);
}
.v2-hero .coll-hero-desc { margin-bottom: 50px; }

/* ============================================================
   SECTION light — alternate light bg between sections
   ============================================================ */
.v2-section-light { background: #e2e2e2; }

/* Override navy icons → maroon for v2 (more brand-color) */
.v2-main .cat-icon {
  background: linear-gradient(135deg, #3B0002 0%, #5A0407 100%);
}
.v2-main .cat-icon i { color: var(--gold-light); }
.v2-main .cat-icon svg { width: 24px; height: 24px; color: var(--gold-light); }

/* Categories — single row of 7 (responsive: scroll on tablet/mobile) */
.v2-main .cat-grid {
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}
.v2-main .cat-card {
  padding: 26px 14px 22px;
}
.v2-main .cat-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 14px;
}
.v2-main .cat-icon i { font-size: 1.15rem; }
.v2-main .cat-name {
  font-size: .92rem;
  line-height: 1.25;
}
.v2-main .cat-count {
  font-size: .72rem;
}

/* Below 1100px: horizontal scroll for the row */
@media (max-width: 1100px) {
  .v2-main .cat-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    gap: 12px;
    padding: 4px 4px 14px;
    margin: 0 -4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 162, 74, .4) transparent;
  }
  .v2-main .cat-grid::-webkit-scrollbar { height: 6px; }
  .v2-main .cat-grid::-webkit-scrollbar-thumb {
    background: rgba(201, 162, 74, .4);
    border-radius: 3px;
  }
  .v2-main .cat-card {
    flex: 0 0 150px;
    scroll-snap-align: start;
  }
}

.v2-main .section-tag { color: var(--maroon); }
.v2-main .section-line { background: var(--gold); }
.v2-main .section-title { color: var(--maroon-deep); }

/* art-card hover & accents tinted to gold/maroon */
.v2-main .art-card:hover { border-color: var(--gold); box-shadow: 0 14px 32px rgba(59, 0, 2, .15); }
.v2-main .art-cat { color: var(--maroon); }
.v2-main .art-title { color: var(--maroon-deep); }
.v2-main .art-meta i { color: var(--gold-deep); }

/* page-btn active in maroon */
.v2-main .page-btn.active {
  background: var(--maroon);
  border-color: var(--maroon);
}

/* sort/select tinted */
.v2-main .sort-label select:focus { border-color: var(--maroon); }
.v2-main .filter-input:focus { border-color: var(--maroon); }
.v2-main .filter-list label:hover { color: var(--maroon); }
.v2-main .filter-list input[type="checkbox"] { accent-color: var(--maroon); }
.v2-main .filter-group h4 { color: var(--maroon-deep); border-bottom-color: var(--gold); }

.v2-main .btn-ghost:hover { color: var(--maroon); border-color: var(--maroon); }

/* search button maroon */
.v2-main .coll-search-btn { background: var(--maroon); }
.v2-main .coll-search-btn:hover { background: var(--bb-red); }

/* ============================================================
   FOOTER — maroon variant
   ============================================================ */
.v2-footer {
  position: relative;
  background: linear-gradient(180deg, #3B0002 0%, #270203 100%);
  color: #fff;
  margin-top: auto;
  isolation: isolate;
  border-top: 3px solid var(--gold);
}

.v2-footer-pattern {
  position: absolute;
  inset: 0;
  background-image: url('../img/tamga-pattern.png');
  background-size: 200px;
  opacity: 0.04;
  filter: invert(1);
  z-index: -1;
  pointer-events: none;
}

.v2-footer-top {
  max-width: 1440px;
  margin: 0 auto;
  padding: 70px 32px 50px;
  display: grid;
  grid-template-columns: 0.7fr 3fr;
  gap: 50px;
}

.v2-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.v2-footer-brand img {
  width: 200px;
  height: auto;
}
.v2-footer-quote {
  font-size: .92rem;
  line-height: 1.6;
  color: rgba(255,255,255,.75);
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  margin-top: 8px;
  max-width: 360px;
}

.v2-footer-cols {
  display: grid;
  grid-template-columns: 0.8fr 0.9fr 1.3fr;
  gap: 40px;
}

.v2-footer .footer-col h4 {
  color: var(--gold-light);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 162, 74, .25);
}
.v2-footer .footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v2-footer .footer-col li {
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.v2-footer .footer-col li i { color: var(--gold); width: 16px; }
.v2-footer .footer-col a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.v2-footer .footer-col a:hover { color: var(--gold-light); }
.v2-footer .footer-col a i.fa-arrow-up-right-from-square {
  font-size: .65rem;
  opacity: .7;
}

.v2-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.v2-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 74, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  transition: all .2s;
  text-decoration: none;
}
.v2-socials a:hover {
  background: var(--gold);
  color: var(--maroon-deep);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.v2-footer-bottom {
  border-top: 1px solid rgba(201, 162, 74, .15);
  padding: 20px 32px;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --header-h: 84px; }
  .v2-header-tamgas { gap: clamp(20px, 5vw, 50px); }
  .v2-header-tamgas img { width: 48px; height: 48px; }

  .v2-footer-top { grid-template-columns: 1fr; gap: 40px; padding: 50px 28px 32px; }
  .v2-footer-cols { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

@media (max-width: 768px) {
  :root { --header-h: 72px; --strip-h: auto; }

  .v2-header { padding: 0 14px; height: var(--header-h); }
  .v2-header::before, .v2-header::after { display: none; }
  .v2-header-tamgas { gap: clamp(14px, 4vw, 30px); }
  .v2-header-tamgas img { width: 40px; height: 40px; }

  .v2-section-strip { height: auto; }
  .v2-section-strip-inner {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .v2-strip-left { order: 1; flex: 1; min-width: 0; }
  .v2-section-name { font-size: .82rem; letter-spacing: .08em; gap: 8px; }
  .v2-section-tag { font-size: .52rem; padding: 3px 7px; }
  .v2-back { width: 40px; height: 40px; }
  .v2-menu-trigger { order: 2; padding: 8px 14px; font-size: .68rem; }
  .v2-menu-text { display: none; }
  .v2-strip-search {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
    padding: 3px 4px 3px 14px;
  }
  .v2-strip-search input { font-size: .82rem; padding: 7px 4px; }
  .v2-strip-search-btn { width: 32px; height: 32px; font-size: .78rem; }

  .v2-side-panel { width: 100%; }
  .v2-panel-header { padding: 20px 22px 16px; }
  .v2-panel-title h3 { font-size: 1.3rem; }
  .v2-panel-nav { padding: 20px 22px 28px; }

  .v2-footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .v2-footer-bottom { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
}

@media (max-width: 480px) {
  :root { --header-h: 64px; }
  .v2-header-tamgas { gap: 10px; }
  .v2-header-tamgas img { width: 34px; height: 34px; }
  .v2-back { width: 36px; height: 36px; }
}

/* Breadcrumb bar — бүх collection хуудсанд жигд (саарал, голлосон) */
.cd-breadcrumb-bar { background:#f7f5f0; font-size:.82rem; }
.cd-breadcrumb-bar .container { padding:0px 0 10px; }
.cd-breadcrumb-bar ol { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; list-style:none; margin:0; padding:0; }
.cd-breadcrumb-bar a { color:#7a6a55; text-decoration:none; }
.cd-breadcrumb-bar a:hover { color:#3b0002; }
.cd-breadcrumb-bar li[aria-current] { color:#3b0002; font-weight:600; }
.cd-breadcrumb-bar li i { font-size:.62em; color:#b0a48f; }
