/* Shared product listing styles live in components.css; page-specific overrides go here. */
#main { overflow-x: clip; }
.cat-side { border: 1px solid var(--border); background: #fff; padding: 22px 22px 8px; }
.cat-side-title { font-size: 1.25rem; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); display: inline-block; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { border-bottom: 1px solid var(--border); }
.cat-list li:last-child { border-bottom: 0; }
.cat-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0; color: var(--navy); font-weight: 500; transition: color .25s, padding .25s; }
.cat-list a:hover, .cat-list a.active { color: var(--gold); }
.cat-list a:hover { padding-left: 6px; }
.cat-list a.active { font-weight: 700; }
.cat-count { flex: 0 0 auto; min-width: 28px; padding: 1px 8px; border-radius: 20px; background: var(--bg-alt); color: var(--text-2); font-size: .8rem; text-align: center; }
.cat-list a.active .cat-count { background: var(--gold); color: #fff; }

.prod-head { margin-bottom: 22px; }
.prod-head h2 { font-size: 1.5rem; margin-bottom: 6px; }
.prod-head p { margin: 0; color: var(--text-2); }

.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.prod-tile { display: flex; flex-direction: column; border: 1px solid var(--border); background: #fff; overflow: hidden; transition: border-color .3s, box-shadow .3s; animation: prodIn .6s ease both; }
.prod-tile:hover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.prod-tile:nth-child(3n+2) { animation-delay: .08s; }
.prod-tile:nth-child(3n+3) { animation-delay: .16s; }
.prod-tile-img { display: flex; align-items: center; justify-content: center; overflow: hidden; aspect-ratio: 1 / 1; background: #fff; padding: 12px; }
.prod-tile-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.prod-tile-img:hover img { transform: scale(1.08); }
.prod-tile-body { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 14px 20px; text-align: center; margin-top: auto; }
.prod-tile-body h3 { font-size: 1.02rem; margin: 0; line-height: 1.35; color: var(--navy); }

@keyframes prodIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 991.98px) {
    .cat-side { padding: 0; border: 0; background: none; }
    .cat-side-title { display: block; font-size: 1.15rem; margin: 0 0 14px; }
    .cat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0; }
    .cat-list li { border: 0; min-width: 0; }
    .cat-list a { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; height: 100%; padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 8px; background: #fff; font-size: .88rem; line-height: 1.3; box-shadow: 0 2px 8px rgba(24, 39, 69, .06); }
    .cat-list a:hover { padding-left: 14px; }
    .cat-list a.active { background: var(--navy); border-color: var(--navy); border-left-color: var(--gold); color: #fff; }
    .cat-list a.active .cat-count { background: var(--gold); color: #fff; }
    .cat-count { font-size: .75rem; }
}
@media (max-width: 767.98px) {
    .prod-grid { gap: 14px; }
    .prod-tile-body { padding: 14px 10px 16px; gap: 12px; }
    .prod-tile-body h3 { font-size: .94rem; }
}
@media (max-width: 575.98px) {
    .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .prod-tile-body .btn-detail { padding: 6px 12px; font-size: .76rem; gap: 5px; }
}
@media (max-width: 380px) { .prod-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .prod-tile { animation: none; } }
