main {
  padding: 18px 0;
}
.grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
}
@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr; }
}

/* Sidebar trái */
aside.left {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(2,6,23,.06), 0 6px 8px rgba(2,6,23,.04);
}
.left .head {
  padding: 14px;
  border-bottom: 1px solid #eef2f7;
  font-weight: 900;
  color: #0b2a6a;
}
.left .nav {
  display: flex;
  flex-direction: column;
  padding: 8px;
}
.left .nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  color: #0b2a6a;
  font-weight: 600;
  cursor: pointer;
}
.left .nav a:hover { background: #f1f5ff; }
.left .nav a.active { background: #eef4ff; }

/* Cột phải */
section.right {
  display: grid;
  gap: 16px;
}

.chip-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 720px) {
  .chip-row { grid-template-columns: 1fr 1fr; }
}
.chip {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  font-weight: 800;
  color: #0b2a6a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Sản phẩm */
.section {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.section .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #eef2f7;
}
.section .h {
  font-size: 18px;
  font-weight: 900;
  color: #0b2a6a;
}

.products {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 14px;
  overflow-x: auto;
  padding: 14px 16px 22px;
}

.card {
  background: #fff;
  border: 1px solid #e5eaf3;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.thumb {
  aspect-ratio: 1/1;
  background: #f2f6ff;
  display: grid;
  place-items: center;
}
.thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.meta {
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}
.title {
  font-size: 14px;
  font-weight: 700;
  color: #0b2a6a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price {
  font-weight: 900;
  color: #0652ff;
}
.small {
  font-size: 12px;
  color: #64748b;
}
.badge-off {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #fee2e2;
  color: #b91c1c;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
}
.strike {
  color: #94a3b8;
  text-decoration: line-through;
}
/* === Nav full-width, các mục chia đều === */
.nav .nav-inner{
  display: grid;
  grid-auto-flow: column;     /* xếp theo cột, tự dàn ngang */
  grid-auto-columns: 1fr;     /* mỗi mục chiếm đều 1 phần */
  align-items: center;
  gap: 0;                      /* bỏ khoảng cách để căng sát đều */
}

.nav .nav-link{
  text-align: center;          /* chữ ở giữa */
  padding: 0 8px;              /* đệm nhẹ để dễ bấm */
  white-space: nowrap;         /* không xuống dòng mỗi mục */
}

/* Viền active nếu bạn đang dùng border-bottom */
.nav .nav-link.active{
  border-bottom: 2px solid var(--brand);
  color: var(--brand);
}

/* Mobile: cho phép kéo ngang danh mục */
@media (max-width: 960px){
  .nav .nav-inner{
    display: flex;             /* về flex để kéo ngang mượt hơn */
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .nav .nav-link{
    flex: 0 0 auto;            /* mỗi mục co giãn theo nội dung */
  }
}
