.product-toolbar {
  margin: -10px 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.product-filters { display: flex; flex-wrap: wrap; gap: 9px; }
.product-filter {
  min-height: 39px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: .25s;
}
.product-filter:hover,
.product-filter.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}
.product-count { color: var(--muted); font-size: 12px; }
.product-count strong { color: var(--ink); font-size: 18px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,254,250,.7);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(214,163,69,.72);
  box-shadow: 0 22px 55px rgba(33,38,35,.1);
}
.product-card[hidden] { display: none; }
.product-card__media {
  position: relative;
  aspect-ratio: 1.5;
  overflow: hidden;
  display: block;
  background: #dad6ca;
}
.product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(16,21,20,.25));
  pointer-events: none;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__badge {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(16,21,20,.84);
  color: var(--amber-light);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  backdrop-filter: blur(10px);
}
.product-card__body {
  min-height: 215px;
  padding: 21px 20px 19px;
  display: flex;
  flex-direction: column;
}
.product-card__meta {
  margin-bottom: 10px;
  color: #9a742b;
  font: 800 9px/1 Arial, sans-serif;
  letter-spacing: .14em;
}
.product-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.42;
  letter-spacing: -.025em;
}
.product-card h3 a { transition: color .2s; }
.product-card h3 a:hover { color: #9a742b; }
.product-card p {
  margin: 10px 0 19px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-card__link {
  margin-top: auto;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
}
.product-card__link span { color: #9a742b; }

.product-page { background: var(--paper); }
.detail-header .main-nav { margin-left: auto; }
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 78px;
  color: var(--white);
  background: var(--ink);
}
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
}
.breadcrumb {
  position: relative;
  margin-bottom: 35px;
  color: rgba(255,255,255,.42);
  font-size: 11px;
}
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb span { margin: 0 9px; }
.detail-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  gap: 62px;
}
.detail-cover {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background: #252b29;
  box-shadow: 0 35px 85px rgba(0,0,0,.28);
}
.detail-cover img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.detail-cover::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); border-radius: inherit; }
.detail-summary .section-index { color: var(--amber); }
.detail-summary h1 {
  margin: 0;
  max-width: 690px;
  font-size: clamp(38px, 4.1vw, 58px);
  line-height: 1.16;
  letter-spacing: -.05em;
}
.detail-summary__desc {
  max-width: 670px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.59);
  font-size: 15px;
  line-height: 1.85;
}
.detail-summary__tags { margin: 25px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.detail-summary__tags span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 7px; color: rgba(255,255,255,.58); font-size: 10px; }
.detail-summary__actions { margin-top: 32px; display: flex; align-items: center; gap: 25px; }
.detail-summary__note { color: rgba(255,255,255,.38); font-size: 11px; }
.detail-main { padding: 82px 0 110px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 55px; align-items: start; }
.detail-article {
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}
.detail-article__label {
  margin-bottom: 28px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
  color: #9a742b;
  font: 800 10px/1 Arial, sans-serif;
  letter-spacing: .15em;
}
.product-content { color: #454c48; font-size: 15px; line-height: 1.95; }
.product-content p { margin: 0 0 22px; }
.product-content strong { color: var(--ink); }
.product-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(16,21,20,.08);
}
.product-content a { color: #9a742b; text-decoration: underline; }
.detail-side { position: sticky; top: 112px; display: grid; gap: 16px; }
.side-card { padding: 27px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,254,250,.75); }
.side-card--dark { color: var(--white); background: var(--ink-2); border-color: var(--ink-2); }
.side-card > span { color: #9a742b; font: 800 9px/1 Arial, sans-serif; letter-spacing: .15em; }
.side-card--dark > span { color: var(--amber); }
.side-card h2, .side-card h3 { margin: 15px 0 10px; font-size: 20px; line-height: 1.4; }
.side-card p { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.side-card--dark p { color: rgba(255,255,255,.5); }
.side-card .button { width: 100%; }
.side-card__nav { display: flex; flex-direction: column; }
.side-card__nav a { padding: 12px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 12px; }
.side-card__nav a:last-child { border-bottom: 0; }

@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-hero__grid { grid-template-columns: 1fr; }
  .detail-cover { max-width: 650px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .product-toolbar { align-items: flex-start; flex-direction: column; }
  .product-count { display: none; }
  .product-filters { flex-wrap: nowrap; width: calc(100vw - 16px); padding-right: 20px; overflow-x: auto; scrollbar-width: none; }
  .product-filter { flex: 0 0 auto; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card__body { min-height: 195px; }
  .detail-hero { padding: 48px 0 58px; }
  .detail-hero__grid { gap: 35px; }
  .detail-summary h1 { font-size: 38px; }
  .detail-summary__actions { align-items: stretch; flex-direction: column; }
  .detail-summary__note { text-align: center; }
  .detail-main { padding: 50px 0 80px; }
  .detail-article { padding: 25px 20px; }
  .product-content { font-size: 14px; }
  .detail-side { grid-template-columns: 1fr; }
}
