/* ══════════════════════════════════════
   NS PRODUCTS ARCHIVE
══════════════════════════════════════ */

.ns-archive-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  align-items: start;
  font-family: 'Outfit', sans-serif;
}

/* ── SIDEBAR ── */
.ns-sidebar {
  padding: 40px 36px 40px 0;
  border-right: 1px solid rgba(255,255,255,0.07);
}

.ns-sidebar-sticky {
  position: sticky;
  top: 100px;
}

.ns-filter-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ns-filter-section:last-of-type {
  border-bottom: none;
  margin-bottom: 16px;
  padding-bottom: 0;
}

.ns-filter-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #0873EA;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ns-filter-label::before {
  content: '';
  width: 16px;
  height: 1px;
  background: #0873EA;
  flex-shrink: 0;
}

.ns-search-wrap {
  position: relative;
}

.ns-search-wrap > svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  color: rgba(255,255,255,0.3);
  pointer-events: none;
}

.ns-search-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 10px 12px 10px 34px;
  color: white;
  font-size: 12px;
  font-family: 'Outfit', sans-serif;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  letter-spacing: 0.04em;
}

.ns-search-input::placeholder {
  color: rgba(255,255,255,0.22);
}

.ns-search-input:focus {
  border-color: rgba(8,115,234,0.4);
  background: rgba(8,115,234,0.04);
}

.ns-cat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ns-cat-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
  letter-spacing: 0.04em;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: 'Outfit', sans-serif;
}

.ns-cat-pill:hover {
  border-color: rgba(255,255,255,0.07);
  color: white;
  background: rgba(255,255,255,0.04);
}

.ns-cat-pill.active {
  border-color: rgba(8,115,234,0.3);
  color: white;
  background: rgba(8,115,234,0.08);
  font-weight: 500;
}

.ns-cat-count {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  font-family: 'Cormorant Garamond', serif;
}

.ns-cat-pill.active .ns-cat-count {
  color: #0873EA;
}

.ns-check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ns-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
  user-select: none;
}

.ns-check-item:hover {
  color: white;
}

.ns-check-item input {
  display: none;
}

.ns-check-box {
  width: 15px;
  height: 15px;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.ns-check-item input:checked + .ns-check-box {
  background: #0873EA;
  border-color: #0873EA;
}

.ns-check-box svg {
  width: 9px;
  height: 9px;
  opacity: 0;
  transition: opacity 0.2s;
}

.ns-check-item input:checked + .ns-check-box svg {
  opacity: 1;
}

.ns-clear-btn {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.25s;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.ns-clear-btn:hover {
  border-color: #0873EA;
  color: #0873EA;
}

.ns-clear-btn svg {
  width: 11px;
  height: 11px;
}

/* ── MAIN ── */
.ns-archive-main {
  padding: 40px 0 80px 44px;
}

.ns-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ns-result-count {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
}

.ns-result-count strong {
  color: white;
  font-weight: 600;
}

.ns-view-btns {
  display: flex;
  gap: 8px;
}

.ns-view-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: rgba(255,255,255,0.35);
}

.ns-view-btn:hover,
.ns-view-btn.active {
  border-color: #0873EA;
  background: rgba(8,115,234,0.1);
  color: white;
}

.ns-view-btn svg {
  width: 14px;
  height: 14px;
}

/* ── PRODUCT GRID ── */
.ns-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* ── PRODUCT CARD ── */
.ns-p-card {
  background: #081230;
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s;
  opacity: 0;
  transform: translateY(18px);
  animation: nsCardIn 0.5s ease forwards;
}

@keyframes nsCardIn {
  to { opacity: 1; transform: translateY(0); }
}

.ns-p-card:hover {
  border-color: rgba(8,115,234,0.35);
}

.ns-p-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #0873EA;
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
  z-index: 3;
}

.ns-p-card:hover::before {
  transform: scaleX(1);
}

/* Image */
.ns-p-img {
  height: 240px;
  overflow: hidden;
  position: relative;
  background: #060e22;
}

.ns-p-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82) saturate(0.9);
  transition: transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.4s;
  display: block;
}

.ns-p-card:hover .ns-p-img img {
  transform: scale(1.07);
  filter: brightness(1) saturate(1);
}

.ns-p-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.1);
}

.ns-p-img-placeholder svg {
  width: 48px;
  height: 48px;
}

/* Badges */
.ns-p-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.ns-p-badge {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  display: inline-block;
}

.ns-badge-blue   { background: #0873EA; color: white; }
.ns-badge-gold   { background: #c9a84c; color: #04091a; }
.ns-badge-new    { background: #0db87a; color: white; }
.ns-badge-outline{ border: 1px solid rgba(255,255,255,0.3); color: white; }

/* Hover overlay */
.ns-p-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: linear-gradient(0deg, rgba(4,9,26,0.8) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
}

.ns-p-card:hover .ns-p-overlay {
  opacity: 1;
}

.ns-p-actions {
  width: 100%;
  transform: translateY(8px);
  transition: transform 0.3s ease;
  opacity: 0;
}

.ns-p-card:hover .ns-p-actions {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.05s;
}

.ns-p-btn-view {
  display: block;
  width: 100%;
  padding: 10px;
  background: white;
  color: #04091a;
  text-align: center;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.ns-p-btn-view:hover {
  background: #0873EA;
  color: white;
}

/* Card body */
.ns-p-body {
  padding: 20px 20px 22px;
}

.ns-p-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ns-p-cat {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0873EA;
  font-weight: 600;
}

.ns-p-stars {
  color: #c9a84c;
  font-size: 12px;
  letter-spacing: 1px;
}

.ns-star { display: inline; }
.ns-star-half { opacity: 0.5; }

.ns-p-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
  line-height: 1.2;
  transition: color 0.25s;
}

.ns-p-card:hover .ns-p-name {
  color: rgba(255,255,255,0.9);
}

.ns-p-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 16px;

  min-height: calc(1.65em * 4);

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ns-p-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
  gap: 8px;
}

.ns-p-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, gap 0.2s;
}

.ns-p-details-btn:hover {
  color: white;
  gap: 10px;
}

.ns-p-details-btn svg {
  transition: transform 0.2s;
}

.ns-p-details-btn:hover svg {
  transform: translateX(3px);
}

.ns-p-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: #0873EA;
  color: white;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.25s;
  white-space: nowrap;
  flex-shrink: 0;
}

.ns-p-buy-btn:hover {
  background: #2d8fff;
  color: white;
}

/* Empty state */
.ns-empty-state {
  grid-column: 1 / -1;
  padding: 80px 40px;
  text-align: center;
}

.ns-empty-state svg {
  width: 48px;
  height: 48px;
  color: rgba(255,255,255,0.15);
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.ns-empty-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.ns-empty-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ══ FIXES ══ */

/* 1. Remove specifications section entirely */
.ns-filter-section:has(.ns-check-list) {
  display: none !important;
}

/* 2. Search icon spacing fix */
.ns-search-input {
  padding: 10px 12px 10px 36px !important;
}

.ns-search-wrap > svg {
  left: 12px !important;
  color: rgba(255,255,255,0.4) !important;
  width: 14px !important;
  height: 14px !important;
}

/* 3. View buttons — fix SVG icons showing */
.ns-view-btn svg {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    min-height: 15px !important;
    display: block !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
}

.ns-view-btn svg rect {
    stroke: currentColor !important;
    fill: none !important;
}

.ns-view-btn {
  color: rgba(255,255,255,0.4) !important;
}

.ns-view-btn.active,
.ns-view-btn:hover {
  color: white !important;
  border-color: #0873EA !important;
  background: rgba(8,115,234,0.1) !important;
}

/* 4. Clear button — remove pink, match theme */
.ns-clear-btn {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  color: rgba(255,255,255,0.35) !important;
  font-family: 'Outfit', sans-serif !important;
}

.ns-clear-btn {
  position: relative;
  overflow: hidden;
  transition:
    border-color .35s ease,
    color .35s ease,
    background .35s ease,
    transform .35s ease;
}

.ns-clear-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #0873EA;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.ns-clear-btn:hover {
  border-color: rgba(8,115,234,.4) !important;
  color: #ffffff !important;
  background: rgba(8,115,234,.08) !important;
  transform: translateY(-2px);
}

.ns-clear-btn:hover::before {
  transform: scaleX(1);
}

.ns-clear-btn svg {
  transition: transform .35s ease;
}

.ns-clear-btn:hover svg {
  transform: rotate(90deg);
}

/* Remove any inherited pink/red button styles from theme */
.ns-archive-wrap .ns-clear-btn,
.ns-archive-wrap button.ns-clear-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  background-color: transparent !important;
  color: rgba(255,255,255,0.35) !important;
  border-color: rgba(255,255,255,0.07) !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .ns-archive-wrap {
    grid-template-columns: 1fr;
  }
  .ns-sidebar {
    display: none;
  }
  .ns-archive-main {
    padding: 32px 0 60px;
  }
}

/* 5. Hide view buttons on tablet and mobile */
@media (max-width: 1024px) {
  .ns-view-btns {
    display: none !important;
  }

  /* Force single column on mobile */
  .ns-products-grid {
    grid-template-columns: 1fr !important;
  }

  /* Show 2 columns on tablet */
  @media (min-width: 600px) {
    .ns-products-grid {
      grid-template-columns: repeat(2, 1fr) !important;
    }
  }
}

@media (max-width: 768px) {
  .ns-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 599px) {
  .ns-products-grid {
    grid-template-columns: 1fr !important;
  }

  .ns-toolbar {
    justify-content: flex-start !important;
  }
}

@media (max-width: 480px) {
  .ns-products-grid {
    grid-template-columns: 1fr !important;
  }
  .ns-p-img {
    height: 200px;
  }
}