/* Products page pixel-precision styles */
.products .section { padding: 48px 0; }
@media (min-width: 640px) { .products .section { padding: 64px 0; } }
@media (min-width: 1024px) { .products .section { padding: 80px 0; } }

/* Category tabs bar */
.products .tabs { display: flex; gap: 24px; justify-content: center; align-items: center; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; background: #fff; }
.products .tabs a { color: #111827; font-weight: 700; font-size: 14px; padding: 14px 8px; text-decoration: none; }
.products .tabs a.active { color: #ef4444; }

/* Mobile-only: make tabs horizontally scrollable and left-aligned */
@media (max-width: 640px) {
  .products .tabs { justify-content: flex-start; gap: 16px; padding: 10px 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .products .tabs::-webkit-scrollbar { display: none; }
  .products .tabs { scrollbar-width: none; }
  .products .tabs a { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; font-size: 13px; padding: 10px 6px; }
}

/* Filters sidebar */
.products .filters { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.products .filters .heading { font-size: 16px; font-weight: 700; color: #374151; }
.products .filters .divider { height: 1px; background: #e5e7eb; margin: 12px 0; }
.products .filters label { display: flex; align-items: center; gap: 10px; padding: 8px 4px; cursor: pointer; }
.products .filters input[type="checkbox"] { width: 18px; height: 18px; border: 1px solid #d1d5db; border-radius: 3px; accent-color: #ef4444; }

/* Search bar */
.products .search { position: relative; }
.products .search input { width: 100%; height: 40px; padding: 0 14px 0 44px; border-radius: 9999px; border: none; box-shadow: 0 1px 0 0 #e5e7eb, 0 1px 6px rgba(0,0,0,0.06); }
.products .search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; opacity: .6; }

/* Product cards grid */
.products .grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .products .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products .grid { grid-template-columns: repeat(3, 1fr); } }
.products .card { background: #fff; border: 1px solid #e5e7eb; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: box-shadow .15s; }
.products .card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.products .card img { width: 100%; height: 240px; object-fit: cover; }
@media (max-width: 640px) { .products .card img { height: 190px; } }
.products .card .meta { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid #eef0f4; }
.products .card .title { color: #101223; font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; line-height: 1.4; }
.products .card .no_new { color: #101223; font-size: 16px; font-weight: 800; text-transform: none; letter-spacing: 0; line-height: 3.4; }
.products .card .title::before { content: none; }
.products .card .tag { color: #bf2026; font-size: 16px; font-weight: 700; text-decoration: none; }
.products .card .title p { margin-top: 6px; font-size: 13px; font-weight: 400; color: #6b7280; text-transform: none; }
.products .card .title::before { content: 'New'; display: block; color: #bf2026; font-size: 12px; font-weight: 700; margin-bottom: 6px; }

/* Layout structure */
.products .main { display: flex; gap: 24px; }
.products .sidebar { width: 28rem; max-width: 32rem; flex-shrink: 0; }
@media (max-width: 1023.98px) { .products .main { flex-direction: column; } .products .sidebar { width: 100%; max-width: 100%; } }