@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700&display=swap');

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

.nc360-catalog {
  --orange:      #ff6b2b;
  --orange-dim:  #c04e1a;
  --orange-glow: rgba(255,107,43,0.15);
  --green:       #2ecc71;
  --green-glow:  rgba(46,204,113,0.12);
  --surface:     #1a1a1a;
  --surface2:    #222;
  --border:      #2a2a2a;
  --border-h:    #3a3a3a;
  --text:        #f0f0f0;
  --text2:       #ccc;
  --muted:       #666;
  --radius:      14px;

  font-family: 'Outfit', sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Grid */
.nc360-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

/* Cards */
.nc360-cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all .3s;
  position: relative;
}

.nc360-cat-card:hover {
  border-color: var(--orange-dim);
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(0,0,0,.4), 0 0 0 1px rgba(255,107,43,.1);
}

.nc360-cat-thumb {
  aspect-ratio: 1/1;
  background: transparent;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.nc360-cat-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; padding: 16px;
  opacity: 0; transition: opacity .08s;
  pointer-events: none;
}

.nc360-cat-thumb img.active { opacity: 1; }

.nc360-cat-badge-360 {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
  padding: 4px 12px; border-radius: 100px;
  font-size: 10px; font-weight: 700;
  color: var(--orange); letter-spacing: 1px;
  font-family: 'Bebas Neue', sans-serif;
  border: 1px solid rgba(255,107,43,.2);
}

.nc360-cat-badge-count {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  padding: 3px 10px; border-radius: 100px;
  font-size: 10px; font-weight: 600; color: var(--green);
}

/* Hover overlay */
.nc360-cat-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}

.nc360-cat-overlay-inner {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(0,0,0,.75); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,107,43,.25);
  opacity: 0; transform: translateY(8px);
  transition: all .3s;
  font-size: 11px; font-weight: 600; color: var(--orange);
  letter-spacing: 1px; text-transform: uppercase;
}

.nc360-cat-card:hover .nc360-cat-overlay-inner {
  opacity: 1; transform: translateY(0);
}

.nc360-cat-overlay-inner svg {
  width: 14px; height: 14px; stroke: var(--orange);
  fill: none; stroke-width: 2; stroke-linecap: round;
  animation: nc360cat-spin 2s linear infinite;
}

@keyframes nc360cat-spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }

.nc360-cat-body { padding: 14px 16px 16px; }

.nc360-cat-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; letter-spacing: 1px; line-height: 1.1;
  margin-bottom: 6px; color: var(--text);
}

.nc360-cat-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px;
}

.nc360-cat-date { color: var(--muted); font-weight: 300; }

.nc360-cat-cta {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 100px;
  background: var(--orange-glow); border: 1px solid rgba(255,107,43,.2);
  color: var(--orange); font-size: 10px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase;
  transition: all .2s;
}

.nc360-cat-card:hover .nc360-cat-cta { background: var(--orange); color: #000; }

/* Empty */
.nc360-cat-empty {
  text-align: center; padding: 60px 20px;
  color: var(--muted); font-size: 14px; font-weight: 300;
}

/* ═══ VIEWER OVERLAY ═══ */
.nc360-cat-viewer-overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(0,0,0,.88); backdrop-filter: blur(12px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  font-family: 'Outfit', sans-serif;
}

.nc360-cat-viewer-overlay.open { display: flex; }

.nc360-cat-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%; max-width: 700px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  --text: #f0f0f0;
  --muted: #666;
  --orange: #ff6b2b;
  --orange-glow: rgba(255,107,43,0.15);
  --green: #2ecc71;
  --border: #2a2a2a;
  --border-h: #3a3a3a;
  --bg2: #141414;
  color: var(--text);
}

.nc360-cat-panel::-webkit-scrollbar { display: none; }

.nc360-cat-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--surface); z-index: 2;
  border-radius: 20px 20px 0 0;
}

.nc360-cat-panel-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 2px; color: var(--text);
}
.nc360-cat-panel-title span { color: var(--orange); }

.nc360-cat-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: #141414; border: 1px solid var(--border);
  color: var(--muted); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; line-height: 1;
}
.nc360-cat-close:hover { color: var(--text); }

/* Viewer box */
.nc360-cat-vbox {
  margin: 14px; border-radius: 12px;
  background: transparent; border: 1px solid var(--border);
  aspect-ratio: 4/3; overflow: hidden; position: relative;
  cursor: grab; user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.nc360-cat-vbox:active { cursor: grabbing; }

.nc360-cat-vinner {
  position: absolute; inset: 0;
  transform-origin: center;
  transition: transform .15s ease;
}
.nc360-cat-vinner.no-t { transition: none; }

.nc360-cat-vbox img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; padding: 14px;
  opacity: 0; transition: opacity .06s;
  pointer-events: none; -webkit-user-drag: none;
}
.nc360-cat-vbox img.active { opacity: 1; }

.nc360-cat-vbadge {
  position: absolute; top: 10px; left: 12px;
  font-family: 'Bebas Neue', sans-serif; font-size: 13px;
  color: var(--orange); background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px); padding: 4px 12px;
  border-radius: 100px; border: 1px solid rgba(255,107,43,.2);
  letter-spacing: 1px; z-index: 2;
}

.nc360-cat-vring {
  position: absolute; top: 8px; right: 10px;
  width: 36px; height: 36px; z-index: 2;
}
.nc360-cat-vring circle { fill: none; stroke-width: 2.5; }
.nc360-cat-vring .track { stroke: rgba(255,255,255,.06); }
.nc360-cat-vring .fill { stroke: var(--orange); stroke-linecap: round; transition: stroke-dashoffset .15s ease; transform: rotate(-90deg); transform-origin: center; }

.nc360-cat-vhint {
  position: absolute; bottom: 10px; right: 12px;
  font-size: 9px; color: rgba(255,255,255,.3);
  letter-spacing: 1.5px; text-transform: uppercase;
  display: flex; align-items: center; gap: 5px; z-index: 2;
}
.nc360-cat-vhint svg { width:14px; height:14px; stroke:rgba(255,255,255,.25); fill:none; stroke-width:1.5; stroke-linecap:round; animation: nc360cat-swipe 2.5s ease-in-out infinite; }
@keyframes nc360cat-swipe { 0%,100%{transform:translateX(0)} 30%{transform:translateX(4px)} 60%{transform:translateX(-4px)} }

/* Dots */
.nc360-cat-vdots {
  display: flex; justify-content: center; gap: 6px;
  padding: 10px 0 4px;
}
.nc360-cat-vdot { width:8px; height:8px; border-radius:50%; background:var(--border); cursor:pointer; transition:all .2s; }
.nc360-cat-vdot:hover { background:var(--orange-dim); }
.nc360-cat-vdot.active { background:var(--orange); box-shadow:0 0 8px rgba(255,107,43,.35); transform:scale(1.2); }

/* Controls */
.nc360-cat-vcontrols {
  display: flex; justify-content: center; gap: 8px;
  padding: 0 14px 8px; flex-wrap: wrap;
}
.nc360-cat-vctrl {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; background: #141414;
  border: 1px solid var(--border); border-radius: 100px;
  color: var(--muted); font-family: 'Outfit', sans-serif;
  font-size: 11px; font-weight: 500; cursor: pointer;
  transition: all .2s;
}
.nc360-cat-vctrl:hover { border-color: var(--border-h); color: var(--text); }
.nc360-cat-vctrl.active { border-color: var(--orange); color: var(--orange); background: var(--orange-glow); }
.nc360-cat-vctrl svg { width:13px; height:13px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* Thumbs */
.nc360-cat-vthumbs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 6px 14px 16px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.nc360-cat-vthumbs::-webkit-scrollbar { height: 3px; }
.nc360-cat-vthumbs::-webkit-scrollbar-thumb { background: var(--orange-dim); border-radius: 10px; }

.nc360-cat-vthumb {
  flex-shrink: 0; width: 60px; height: 76px;
  border-radius: 9px; overflow: hidden;
  border: 2px solid var(--border); cursor: pointer;
  transition: all .2s; position: relative;
  background: transparent; scroll-snap-align: center;
}
.nc360-cat-vthumb:hover { border-color: var(--border-h); }
.nc360-cat-vthumb.active { border-color: var(--orange); box-shadow: 0 0 10px rgba(255,107,43,.2); }
.nc360-cat-vthumb img { width:100%; height:100%; object-fit:contain; display:block; }
.nc360-cat-vthumb-lbl { position:absolute; bottom:0; left:0; right:0; background:rgba(0,0,0,.75); color:var(--orange); font-size:7px; font-weight:700; text-align:center; padding:2px; font-family:'Bebas Neue',sans-serif; letter-spacing:1px; }

@media (max-width:600px) {
  .nc360-cat-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .nc360-cat-panel { max-width: 100%; border-radius: 16px 16px 0 0; }
  .nc360-cat-viewer-overlay { align-items: flex-end; padding: 0; }
}
