/* ===== SHOP CATALOG — Product Grid Enhancements ===== */

/* Product Card */
.product-card {
  position: relative;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card:hover {
  border-color: var(--olive);
  transform: translateY(-2px);
}

.product-card-img-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark3);
  border-radius: 4px;
  margin-bottom: 4px;
}

.product-card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card h3 {
  font-size: 0.82rem;
  color: var(--white);
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.product-card .sku {
  font-size: 0.68rem;
  color: var(--light-gray);
  font-family: var(--font-mono);
}

.product-card .product-desc {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.4;
  margin: 0;
}

.product-card .price {
  font-size: 1.05rem;
  color: var(--olive-light);
  font-weight: 700;
  margin-top: auto;
}

.product-card .price.oos {
  color: var(--light-gray);
  font-weight: 400;
  font-size: 0.8rem;
}



/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 40px;
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Category Navigation Bar */
.catalog-nav {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 70px;
  z-index: 50;
}

.cat-nav-scroll {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.cat-nav-scroll a {
  flex-shrink: 0;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.2s;
}

.cat-nav-scroll a:hover,
.cat-nav-scroll a.active {
  color: var(--white);
  background: var(--dark3);
}

.cat-nav-scroll a.active {
  border: 1px solid var(--olive);
}

/* Category Section Headers */
.category-section {
  padding: 40px 0;
}

.category-section + .category-section {
  border-top: 1px solid var(--border);
}

.subcat-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.subcat-title .count {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Back link */
.back-link {
  color: var(--olive-light);
  text-decoration: none;
  font-size: 0.85rem;
}

.back-link:hover {
  color: var(--sand);
}

/* Category grid on shop index */
.shop-header p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.category-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 8px;
}
