
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-400.woff2") format("woff2"), url("fonts/SpaceGrotesk-Variable.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-500.woff2") format("woff2"), url("fonts/SpaceGrotesk-Variable.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-600.woff2") format("woff2"), url("fonts/SpaceGrotesk-Variable.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-400.woff2") format("woff2"), url("fonts/JetBrainsMono-Variable.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-600.woff2") format("woff2"), url("fonts/JetBrainsMono-Variable.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c0907;
  --bg-elevated: #17100c;
  --bg-soft: #24160f;
  --text: #f6f0ea;
  --muted: #c8b7ac;
  --accent: #f2b880;
  --accent-strong: #ff9c66;
  --stroke: rgba(246, 240, 234, 0.08);
  --shadow: 0 25px 55px rgba(6, 3, 1, 0.6);
  font-family: "Space Grotesk", "JetBrains Mono", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 15% 20%, rgba(242, 184, 128, 0.12), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(255, 156, 102, 0.08), transparent 35%),
    linear-gradient(135deg, #0b0705, #140d09 55%, #1b120c);
  color: #f6f0ea;
  color: var(--text);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.25rem clamp(1.25rem, 5vw, 3rem) 4rem;
}

.app-shell {
  display: flex;
  gap: 2rem;
}

.sidebar {
  width: 260px;
  background: #120b08;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 25px 60px rgba(5, 2, 0, 0.65);
  position: sticky;
  top: 1.5rem;
  height: calc(100vh - 3rem);
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.sidebar-close {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #c8b7ac;
  color: var(--muted);
  border-radius: 12px;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  display: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-link {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: #c8b7ac;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  padding: 0.85rem 1.1rem;
  border-radius: 22px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.sidebar-link:hover {
  color: #f6f0ea;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}

.sidebar-link.active {
  color: #2b1b13;
  border-color: transparent;
  background: linear-gradient(120deg, #f2b880, #ff9c66);
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 35px rgba(242, 184, 128, 0.35);
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.4rem 0 0.6rem;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.content {
  flex: 1;
  min-width: 0;
}

.sidebar-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  color: #f6f0ea;
  color: var(--text);
  padding: 0.6rem 1rem;
  border-radius: 16px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9;
}

.sidebar-overlay.active {
  display: block;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-mark {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: 1px solid #f2b880;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #f2b880;
  color: var(--accent);
  background: rgba(51, 252, 208, 0.05);
  box-shadow: 0 0 30px rgba(51, 252, 208, 0.35);
}

.logo-copy {
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
  letter-spacing: 0.35em;
}

.brand-name {
  font-weight: 600;
}

.brand-note {
  font-size: 0.75rem;
  color: #c8b7ac;
  color: var(--muted);
  letter-spacing: 0.25em;
}

.hero-tagline {
  margin: 0;
  max-width: 640px;
  color: #c8b7ac;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.category-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scroll-snap-type: x proximity;
  mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
}

.category-nav-wrap {
  position: relative;
}

.cat-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  display: grid;
  place-items: center;
  color: #f6f0ea;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.cat-arrow:hover { opacity: 1; }
.cat-arrow:disabled { opacity: 0.25; cursor: default; }

.cat-arrow.left {
  left: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.45), rgba(0,0,0,0.0));
}

.cat-arrow.right {
  right: 0;
  background: linear-gradient(270deg, rgba(0,0,0,0.45), rgba(0,0,0,0.0));
}

.category-nav-wrap .category-nav {
  padding: 0.5rem 52px 0.5rem 52px; /* leave space for arrows */
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav button {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(246, 240, 234, 0.04);
  color: #c8b7ac;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.category-nav button:hover {
  color: #f6f0ea;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(246, 240, 234, 0.08);
}

.category-nav button.active {
  color: #2b1b13;
  border-color: transparent;
  background: linear-gradient(120deg, #f2b880, #ff9c66);
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  box-shadow: 0 15px 30px rgba(242, 184, 128, 0.25);
}

.status {
  margin-top: 2rem;
  color: #c8b7ac;
  color: var(--muted);
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status.hidden {
  display: none;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.category-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.category-heading {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.95rem;
  color: #c8b7ac;
  color: var(--muted);
}

.card {
  background: linear-gradient(145deg, #17100c, #24160f);
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-soft));
  border: 1px solid rgba(246, 240, 234, 0.08);
  border: 1px solid var(--stroke);
  border-radius: 26px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 25px 55px rgba(6, 3, 1, 0.6);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: fade-up 0.4s ease both;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 184, 128, 0.45);
  box-shadow: 0 28px 65px rgba(10, 5, 3, 0.85);
}

.card-image {
  width: 100%;
  height: 190px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #24160f;
  background: var(--bg-soft);
}

.card-title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-description {
  margin: 0;
  font-size: 0.85rem;
  color: #c8b7ac;
  color: var(--muted);
  line-height: 1.6;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #c8b7ac;
  color: var(--muted);
}

.accent-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f2b880;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(242, 184, 128, 0.75);
}

.price-tag {
  color: #f6f0ea;
  color: var(--text);
  letter-spacing: 0.08em;
  white-space: nowrap; /* ������ ���� � ���� ������ */
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.open { display: flex; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.lightbox-stage {
  position: relative;
  max-width: 96vw;
  max-height: 92vh;
  display: grid;
  place-items: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  touch-action: none; /* enable manual pan/zoom handling */
  cursor: grab;
  transform-origin: center center;
}

.lightbox-controls {
  position: absolute;
  right: 0.25rem;
  top: 0.25rem;
  display: flex;
  gap: 0.5rem;
}

.lightbox-controls button {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.4);
  color: #f6f0ea;
  color: var(--text);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  #app {
    padding: 1.5rem 1.25rem 3rem;
  }

  .hero {
    gap: 0.75rem;
  }

  .logo-copy {
    letter-spacing: 0.2em;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card-image {
    height: 220px;
  }
}

@media (max-width: 1024px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-radius: 0 24px 24px 0;
    z-index: 12;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .content {
    margin-left: 0;
  }
}

@media (min-width: 1025px) {
  .sidebar-overlay {
    display: none !important;
  }
}
