.cat {
    --ink:       #04000b;
    --text:      #787878;
    --muted:     #9a9a9a;
    --line:      #e7e7e7;
    --line-soft: #f1f1f1;
    --surface:   #fafafa;
    --amber:     #ffb731;
    --amber-dk:  #e09c17;
    --green:     #49a760;

    padding: 50px 0 70px;
}

.cat a { text-decoration: none; }

.cat-crumbs {
    border-bottom: 1px solid #e7e7e7;
    background: #fafafa;
    padding: 12px 0;
    font-size: 13px;
}
.cat-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.cat-crumbs li { color: #9a9a9a; }
.cat-crumbs li + li::before { content: "›"; margin: 0 9px; color: #c4c4c4; }
.cat-crumbs a { color: #787878; }
.cat-crumbs a:hover { color: #04000b; }
.cat-crumbs li[aria-current] { color: #04000b; }

.cat-title { font-size: 28px; line-height: 1.3; color: #04000b; font-weight: 600; margin: 0 0 16px; }

.cat-head { margin-bottom: 26px; }
.cat-head h1 { font-size: 34px; line-height: 1.2; color: var(--ink); font-weight: 600; margin: 0 0 6px; }
.cat-head .count { font-size: 14px; color: var(--muted); }

.cat-search {
    display: flex; margin: 0 0 8px;
    border: 2px solid var(--ink); border-radius: 3px; overflow: hidden; background: #fff;
}
.cat-search input {
    flex: 1; border: 0; padding: 15px 18px;
    font-family: inherit; font-size: 16px; color: var(--ink); outline: none;
}
.cat-search input::placeholder { color: #b5b5b5; }
.cat-search button {
    border: 0; background: var(--ink); color: #fff;
    padding: 0 32px; font-family: inherit; font-size: 15px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
}
.cat-search button:hover { background: #241f2b; }
.cat-search-hint { font-size: 13px; color: var(--muted); margin: 0 0 30px; }

.cat-layout { display: grid; grid-template-columns: 228px 1fr; gap: 36px; align-items: start; }

.cat-nav { font-size: 14px; }
.cat-nav h3 {
    font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
    color: var(--muted); font-weight: 600; margin: 0 0 14px;
    padding-bottom: 9px; border-bottom: 1px solid var(--line);
}
.cat-nav ul { list-style: none; margin: 0; padding: 0; }
.cat-nav li { line-height: 1.45; }
.cat-nav li a {
    display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
    padding: 9px 12px; color: var(--text);
    border-left: 3px solid transparent;
}
.cat-nav li a:hover { background: var(--surface); color: var(--ink); }
.cat-nav li.on a {
    color: var(--ink); font-weight: 600;
    background: var(--surface); border-left-color: var(--amber);
}
.cat-nav li .n { color: #c4c4c4; font-size: 13px; font-weight: 400; }

.cat-toolbar {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding-bottom: 12px; border-bottom: 1px solid var(--line);
    font-size: 14px; color: var(--muted);
}
.cat-toolbar .sort { margin-left: auto; display: flex; gap: 16px; }
.cat-toolbar .sort a { color: var(--text); }
.cat-toolbar .sort a.on { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--amber); }

.cat-row {
    display: grid; grid-template-columns: 78px 1fr 158px 172px;
    gap: 20px; align-items: center;
    padding: 18px 0; border-bottom: 1px solid var(--line-soft);
}
.cat-row:hover { background: #fcfcfc; }

.cat-thumb { display: block; width: 78px; height: 78px; }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); background: var(--surface); }

.cat-thumb.empty {
    display: flex; align-items: center; justify-content: center; text-align: center;
    border: 1px solid var(--line); background: var(--surface);
    font-size: 11px; line-height: 1.25; color: #a8a8a8; font-weight: 600;
    word-break: break-all; padding: 4px;
}

.cat-name { font-size: 16px; line-height: 1.45; color: var(--ink); font-weight: 500; margin: 0 0 4px; display: block; }
.cat-row:hover .cat-name { color: #000; }
.cat-meta { font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.cat-meta .art { font-weight: 600; color: var(--text); }

.cat-stock { font-size: 13px; }
.stock-in    { color: var(--green); font-weight: 600; }
.stock-order { color: var(--muted); }

.cat-buy { text-align: right; }
.cat-price { font-size: 19px; color: var(--ink); font-weight: 600; white-space: nowrap; line-height: 1.2; }
.cat-price .unit { font-size: 13px; color: var(--muted); font-weight: 400; }

.cat-btn {
    display: inline-block; margin-top: 8px;
    background: var(--amber); color: var(--ink);
    padding: 8px 18px; font-size: 14px; font-weight: 600;
    border: 0; border-radius: 3px; cursor: pointer; font-family: inherit;
}
.cat-btn:hover { background: var(--amber-dk); color: var(--ink); }
.cat-btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); font-weight: 500; }
.cat-btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }

.cat-pager { display: flex; gap: 6px; padding-top: 30px; font-size: 14px; }
.cat-pager a, .cat-pager span {
    min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); color: var(--text);
}
.cat-pager .on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.cat-pager a:hover { border-color: var(--ink); color: var(--ink); }

.cat-card { display: grid; grid-template-columns: 420px 1fr; gap: 46px; align-items: start; }

.cat-gal-main {
    border: 1px solid var(--line); background: var(--surface);
    aspect-ratio: 1; overflow: hidden;
}
.cat-gal-main img { width: 100%; height: 100%; object-fit: cover; }
.cat-gal-main.empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; padding: 20px; text-align: center;
}
.cat-gal-main.empty .art {
    font-size: 21px; letter-spacing: .04em; font-weight: 700; color: #c6c6c6;
    word-break: break-all; line-height: 1.2;
}
.cat-gal-main.empty .cap { font-size: 13px; color: #b5b5b5; }
.cat-gal-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.cat-gal-thumbs img {
    width: 66px; height: 66px; object-fit: cover;
    border: 1px solid var(--line); background: var(--surface); cursor: pointer;
}
.cat-gal-thumbs img.on { border-color: var(--ink); }

.cat-card h1 { font-size: 27px; line-height: 1.3; color: var(--ink); font-weight: 600; margin: 0 0 14px; }

.cat-art {
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
    font-size: 15px; letter-spacing: .04em; color: var(--ink); font-weight: 600;
    padding: 10px 0; margin-bottom: 22px;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cat-art .lab { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.cat-art .alt { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: auto; }

.cat-buybox { background: var(--surface); border: 1px solid var(--line); padding: 22px 24px; margin-bottom: 28px; }
.cat-buybox .price { font-size: 30px; color: var(--ink); font-weight: 700; line-height: 1.1; }
.cat-buybox .price .unit { font-size: 14px; color: var(--muted); font-weight: 400; }
.cat-buybox .stock { font-size: 14px; margin: 8px 0 18px; }
.cat-buybox .cat-btn { padding: 12px 30px; font-size: 15px; margin: 0; }
.cat-buybox .note { font-size: 13px; color: var(--muted); margin-top: 14px; }

.cat-blk { margin-bottom: 32px; }
.cat-blk h2 {
    font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
    color: var(--muted); font-weight: 600; margin: 0 0 14px;
    padding-bottom: 8px; border-bottom: 1px solid var(--line);
}

.cat-fits { display: flex; flex-wrap: wrap; gap: 7px; }
.cat-fits span { border: 1px solid var(--line); padding: 5px 13px; font-size: 14px; color: var(--ink); background: #fff; }

.cat-specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.cat-specs td { padding: 9px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.cat-specs td:first-child { color: var(--muted); width: 45%; }
.cat-specs td:last-child { color: var(--ink); }

.cat-descr { font-size: 15px; line-height: 1.75; color: var(--text); }
.cat-descr p { margin: 0 0 12px; }

.cat-related { border-top: 1px solid var(--line); padding-top: 26px; }
.cat-related h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.cat-related p { font-size: 14px; margin: 0; }

.cat-note {
    border-left: 3px solid var(--amber); background: #fffaf0;
    padding: 14px 18px; font-size: 13px; line-height: 1.6; color: #8a6a1f;
    margin: 30px 0 0; max-width: 780px;
}

@media (max-width: 991px) {
    .cat-layout { grid-template-columns: 1fr; }
    .cat-card { grid-template-columns: 1fr; gap: 28px; }
    .cat-gal-main.empty { aspect-ratio: auto; min-height: 150px; }
}
@media (max-width: 575px) {
    .cat-row { grid-template-columns: 58px 1fr; row-gap: 10px; gap: 14px; }
    .cat-thumb { width: 58px; height: 58px; }
    .cat-stock, .cat-buy { grid-column: 2; text-align: left; }
    .cat-buy { display: flex; align-items: center; gap: 16px; }
    .cat-btn { margin-top: 0; }
}

.cat-disclaimer {
    margin: 34px 0 0;
    padding: 14px 18px 15px;
    background: #f5f5f5;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.65;
    color: var(--muted);
}
.cat-disclaimer a { color: inherit; text-decoration: underline; }
