/* ==========================================================================
   Shop by category — [cc_categories]
   ========================================================================== */

.savvo-cats{
    --o:#FE803C;
    --r1:#FF3830;
    --p:#FF114F;
    --bg:#fff7f2;
    --ink:#1a1111;
    --mut:#6b5b5b;
    --card:#fff;
    --line:#f1ddd2;
    --g:linear-gradient(120deg,#FE803C,#FF3830 45%,#FF114F);

    background:var(--bg);
    color:var(--ink);
    font-family:'DM Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
    padding:72px 0;
    box-sizing:border-box;
    width:100%;
}
.savvo-cats *,
.savvo-cats *::before,
.savvo-cats *::after{ box-sizing:border-box; }

@media (prefers-color-scheme: dark){
    .savvo-cats:not([data-theme="light"]){
        --bg:#0d0707; --ink:#fff3ee; --mut:#b9a59e;
        --card:#1a0f0f; --line:#3a2321;
    }
}
.savvo-cats[data-theme="dark"]{
    --bg:#0d0707; --ink:#fff3ee; --mut:#b9a59e;
    --card:#1a0f0f; --line:#3a2321;
}

.savvo-cats .cc-w{
    max-width:1160px;
    margin:0 auto;
    padding:0 20px;
    width:100%;
}

/* Section head */
.savvo-cats .cc-hd{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:16px;
    margin-bottom:28px;
    flex-wrap:wrap;
}
.savvo-cats .cc-hd h2{
    font-family:'Bricolage Grotesque',Georgia,serif;
    font-size:clamp(28px, 4vw, 42px);
    font-weight:800;
    letter-spacing:-1px;
    line-height:1.05;
    margin:0;
    color:var(--ink);
}
.savvo-cats .cc-hd a{
    font-weight:700;
    color:var(--r1);
    text-decoration:none;
    font-size:15px;
    transition:color .2s ease;
}
.savvo-cats .cc-hd a:hover{ color:var(--p); }

/* Grid */
.savvo-cats .cc-cats{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(130px, 1fr));
    gap:12px;
}
@media (min-width:900px){
    .savvo-cats .cc-cats{
        grid-template-columns:repeat(var(--cc-cols, 6), minmax(0, 1fr));
    }
}

/* Individual card */
.savvo-cats .cc-cat{
    display:block;
    background:var(--card);
    border:1px solid var(--line);
    border-radius:16px;
    padding:18px 14px;
    text-align:center;
    font-weight:700;
    color:var(--ink);
    text-decoration:none;
    transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    min-width:0;
}
.savvo-cats .cc-cat:hover{
    transform:translateY(-3px);
    border-color:var(--o);
    box-shadow:0 12px 28px rgba(254,128,60,.15);
}

/* Icon badge */
.savvo-cats .cc-cat-ico{
    display:grid;
    place-items:center;
    width:46px;
    height:46px;
    margin:0 auto 10px;
    border-radius:14px;
    background:var(--g);
    font-size:22px;
    line-height:1;
    color:#fff;
    text-align:center;
}

/* Name */
.savvo-cats .cc-cat-name{
    display:block;
    font-size:15px;
    font-weight:700;
    color:var(--ink);
    line-height:1.3;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

/* Count */
.savvo-cats .cc-cat small{
    display:block;
    margin-top:2px;
    color:var(--mut);
    font-weight:400;
    font-size:13px;
}

/* Responsive */
@media (max-width:560px){
    .savvo-cats{ padding:56px 0; }
    .savvo-cats .cc-hd{ margin-bottom:22px; }
    .savvo-cats .cc-hd h2{ font-size:26px; }
    .savvo-cats .cc-cats{ gap:10px; }
    .savvo-cats .cc-cat{ padding:16px 10px; }
    .savvo-cats .cc-cat-ico{ width:40px; height:40px; font-size:19px; }
    .savvo-cats .cc-cat-name{ font-size:14px; }
}

@media (prefers-reduced-motion: reduce){
    .savvo-cats *,
    .savvo-cats *::before,
    .savvo-cats *::after{ transition:none !important; }
    .savvo-cats .cc-cat:hover{ transform:none; }
}