/* ════════════════════════════════════════════════════════════════════
   YUNGLIT ARCHIVE — MINIMALIST GRID STYLESHEET
   Pure White / Off-White #F5F5F3 / Black Ink #000000 / Sharp 0px Edges
   ════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --tile: #f5f5f3;
  --tile-hover: #eeeeea;
  --fg: #000000;
  --muted: #767672;
  --line: #e4e4df;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --cols: 4;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
  color: inherit;
}

/* ═══ STICKY MINIMAL TOPBAR ═══ */
.yz-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.yz-topbar {
  height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.yz-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.yz-brand a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.yz-logo-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.yz-brand .slash {
  color: var(--muted);
  font-weight: 400;
}

.yz-cats {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}
.yz-cats::-webkit-scrollbar { display: none; }

.yz-cat {
  background: transparent;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 1.5px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.yz-cat:hover {
  color: var(--fg);
}
.yz-cat.active {
  color: var(--fg);
  font-weight: 700;
  border-bottom-color: var(--fg);
}

.yz-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.yz-search {
  border: 0;
  border-bottom: 1px solid #ccc;
  background: transparent;
  padding: 3px 2px;
  width: 110px;
  font-size: 11px;
  text-transform: uppercase;
  outline: none;
}
.yz-search:focus {
  border-bottom-color: #000;
}

.yz-zoom {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
}
.yz-zoom button {
  background: #fff;
  border: 0;
  width: 24px;
  height: 22px;
  cursor: pointer;
  font-weight: 700;
}
.yz-zoom button:hover {
  background: #000;
  color: #fff;
}
.yz-zoom span {
  padding: 0 6px;
  font-size: 10px;
  color: var(--muted);
}

.yz-nav-sound {
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid #000;
  white-space: nowrap;
}
.yz-nav-sound:hover {
  background: #000;
  color: #fff;
}

.yz-subbar {
  padding: 6px 18px;
  border-top: 1px solid #f0f0ec;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

.yz-kol-btn {
  border: 1px solid #000000;
  background: #000000;
  color: #ffffff;
  padding: 3px 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
}

.yz-kol-btn:hover {
  background: #ffffff;
  color: #000000;
}

/* ═══ EDGE-TO-EDGE PRODUCT GRID ═══ */
.yz-main {
  padding: 18px;
  min-height: calc(100vh - 140px);
}

.yz-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 16px;
}

.yz-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
}

.yz-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--tile);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color 0.16s ease;
}

.yz-card:hover .yz-thumb {
  background: var(--tile-hover);
}

.yz-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.yz-card:hover .yz-thumb img {
  transform: scale(1.045);
}

.yz-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 5px;
  background: #fff;
  border: 1px solid #d5d5cf;
  color: #000;
  text-transform: uppercase;
}

.yz-tag.is-pass, .yz-tag.is-free {
  background: #000;
  border-color: #000;
  color: #fff;
}

.yz-meta {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yz-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yz-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.yz-price {
  font-weight: 700;
}

.yz-retail {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 10px;
}

.yz-empty {
  grid-column: 1 / -1;
  padding: 64px 16px;
  text-align: center;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ═══ MINIMAL FOOTER ═══ */
.yz-footer {
  border-top: 1px solid var(--line);
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.yz-footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.yz-footer-links a:hover {
  color: #000;
  text-decoration: underline;
}

/* ═══ BRUTALIST PRODUCT MODAL (SHARP 0PX RECTANGLE) ═══ */
.yz-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.yz-modal.open {
  display: flex;
}

.yz-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(4px);
}

.yz-dialog {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #000000;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.yz-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-left: 1px solid #000;
  border-bottom: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
}
.yz-close:hover {
  background: #000;
  color: #fff;
}

.yz-modal-img {
  background: var(--tile);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 360px;
}
.yz-modal-img img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.yz-modal-img.kol-mode {
  background: #32303f;
}

.yz-modal-img.kol-mode img {
  object-fit: contain;
  max-height: 520px;
}

.yz-modal-body {
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.m-clip {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-right: 28px;
}

.m-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 6px 0 10px;
}

.m-price-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.m-price-main {
  font-size: 15px;
  font-weight: 700;
}
.m-price-old {
  font-size: 11px;
  color: var(--muted);
  text-decoration: line-through;
}

.m-fit {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.m-fit-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.m-fit p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #222;
}

.m-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yz-btn {
  display: block;
  width: 100%;
  padding: 12px 14px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  border: 1px solid #000;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.yz-btn.primary {
  background: #000;
  color: #fff;
}
.yz-btn.primary:hover {
  background: #222;
}

.yz-btn.ghost {
  background: #fff;
  color: #000;
}
.yz-btn.ghost:hover {
  background: #000;
  color: #fff;
}

.lead-form-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lead-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #000;
  background: #fff;
  font-size: 11.5px;
  outline: none;
}

.checklist-unlocked {
  border: 1px solid #000;
  background: #f9f9f6;
  padding: 12px;
  font-size: 11px;
  line-height: 1.5;
  max-height: 220px;
  overflow-y: auto;
}
.checklist-unlocked b {
  display: block;
  margin-bottom: 6px;
}
.checklist-unlocked ol {
  margin: 0;
  padding-left: 16px;
}

/* ═══ RESPONSIVE ═══ */
@media screen and (max-width: 900px) {
  :root {
    --cols: 2;
  }
  .yz-topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .yz-cats {
    order: 3;
    width: 100%;
    border-top: 1px solid #f0f0ec;
    padding-top: 8px;
  }
  .yz-subbar {
    padding: 6px 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .yz-main {
    padding: 12px;
  }
  .yz-grid {
    gap: 10px;
  }
  .yz-dialog {
    grid-template-columns: 1fr;
  }
  .yz-close {
    position: sticky;
    top: 0;
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    z-index: 5;
  }
  .yz-modal-img {
    grid-column: 1;
    grid-row: 1;
    min-height: 240px;
  }
}
