/* Zazzle-style category catalog */
.zz-cat {
    --zz-ink: #16316b;
    --zz-muted: #5b6b8c;
    --zz-line: #e5e7eb;
    --zz-soft: #f7f7f5;
    --zz-blue: #245dea;
    --zz-red: #cd0301;
    background: #fff;
    color: var(--zz-ink);
    padding: 28px 0 64px;
}

.zz-cat .container,
.zz-cat__wrap {
    max-width: 1280px;
}

.zz-cat__hero {
    text-align: center;
    padding: 8px 12px 8px;
}

.zz-cat__hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.85rem, 3.4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px;
    color: #111827;
}

.zz-cat__hero p {
    margin: 0 auto;
    max-width: 42rem;
    color: var(--zz-muted);
    font-size: 15px;
    font-weight: 500;
}

.zz-cat__mantle {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
    gap: 20px 16px;
    overflow: visible;
    padding: 28px 4px 16px;
}

.zz-cat__mantle-item {
    width: auto;
    text-align: center;
    text-decoration: none;
    color: var(--zz-ink);
}

.zz-cat__mantle-img {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    border-radius: 18px;
    overflow: hidden;
    background: var(--zz-soft);
    border: 1px solid var(--zz-line);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.zz-cat__mantle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zz-cat__mantle-img i {
    font-size: 2rem;
    color: #94a3b8;
}

.zz-cat__mantle-item span {
    display: block;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
}

.zz-cat__mantle-item:hover span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.zz-cat__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    overflow: visible;
    padding: 10px 4px 6px;
    scrollbar-width: thin;
}

.zz-cat__chip {
    flex: 0 0 112px;
    width: 112px;
    text-align: center;
    text-decoration: none;
    color: var(--zz-ink);
}

.zz-cat__chip-img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--zz-soft);
    border: 1px solid var(--zz-line);
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zz-cat__chip-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zz-cat__chip span {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.zz-cat__chip:hover span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.zz-cat__catalog {
    margin-top: 28px;
    padding-top: 8px;
}

.zz-cat__catalog-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 16px;
    margin-bottom: 8px;
}

.zz-cat__catalog-head h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.zz-cat__count {
    color: var(--zz-muted);
    font-size: 14px;
    font-weight: 600;
}

.zz-cat__crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    color: var(--zz-muted);
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.zz-cat__crumbs a {
    color: var(--zz-muted);
    text-decoration: none;
    font-weight: 600;
}

.zz-cat__crumbs a:hover { color: var(--zz-blue); }
.zz-cat__crumbs .sep { opacity: .5; }
.zz-cat__crumbs .current { color: #111827; }

.zz-cat__body {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.zz-cat__body--full {
    grid-template-columns: 1fr;
}

.zz-cat__filters {
    border-top: 1px solid var(--zz-line);
    padding-top: 12px;
}

.zz-cat__filter-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #111827;
}

.zz-cat__filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zz-cat__filter-list a {
    display: block;
    padding: 6px 0;
    color: var(--zz-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 550;
}

.zz-cat__filter-list a:hover,
.zz-cat__filter-list a.is-active {
    color: var(--zz-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.zz-cat__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
}

.zz-cat__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
    flex: 1 1 220px;
    min-width: 0;
    max-width: 420px;
    border: 1px solid var(--zz-line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.zz-cat__search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    outline: none;
}
.zz-cat__search button {
    border: 0;
    background: var(--zz-blue);
    color: #fff;
    padding: 0 14px;
    font-size: 14px;
}
.zz-cat__sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.zz-cat__toolbar label { color: var(--zz-muted); }
.zz-cat__toolbar select {
    border: 1px solid var(--zz-line);
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: 650;
    color: var(--zz-ink);
    background: #fff;
}

.zz-cat__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 14px;
}

.zz-cat-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.zz-cat-card__img {
    position: relative;
    aspect-ratio: 1;
    background: var(--zz-soft);
    border: 1px solid var(--zz-line);
    border-radius: 4px;
    overflow: hidden;
    cursor: zoom-in;
}

.zz-cat-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    transform: scale(1);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
    .zz-cat-card__img:hover img,
    .zz-cat-card__img.is-zooming img {
        transform: scale(1.72);
    }
}

.zz-cat-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--zz-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
}

.zz-cat-card__name {
    margin: 10px 0 4px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zz-cat-card:hover .zz-cat-card__name {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.zz-cat-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.zz-cat-card__sale {
    color: var(--zz-red);
    font-weight: 750;
    font-size: 15px;
}

.zz-cat-card__was {
    color: #9ca3af;
    font-size: 13px;
    text-decoration: line-through;
}

.zz-cat-card__col {
    margin-top: 4px;
    font-size: 12px;
    color: var(--zz-muted);
    font-weight: 600;
}

.zz-cat__empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--zz-muted);
}

.zz-cat__pager {
    margin-top: 28px;
}

.zz-cat__seo {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--zz-line);
    color: var(--zz-muted);
    font-size: 14px;
    line-height: 1.65;
}
.zz-cat__seo p { margin: 0 0 10px; }
.zz-cat__seo a { color: var(--zz-blue); font-weight: 600; text-decoration: none; }
.zz-cat__seo a:hover { text-decoration: underline; }

@media (max-width: 1199px) {
    .zz-cat__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .zz-cat__body { grid-template-columns: 1fr; }
    .zz-cat__filters { display: none; }
    .zz-cat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zz-cat__mantle { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 16px 12px; }
    .zz-cat__search { max-width: none; flex-basis: 100%; }
    .zz-cat__sort { width: 100%; justify-content: flex-end; }
}

@media (max-width: 575px) {
    .zz-cat__mantle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
