/* Category shortcuts use live WooCommerce terms and the editable catalogue order. */
html body .komar-subcategories { clear:both; margin:24px 0 32px; }
html body .komar-subcategories ul {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:12px;
    margin:0;
    padding:0;
    list-style:none;
}
html body .komar-subcategories li { margin:0; padding:0; list-style:none; min-width:0; }
html body .komar-subcategories a {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    height:100%;
    min-height:60px;
    box-sizing:border-box;
    padding:15px 18px;
    border:1px solid var(--km-line);
    border-radius:4px;
    background:#fff;
    color:var(--km-ink);
    font-size:16px;
    font-weight:600;
    line-height:1.4;
    letter-spacing:0;
    text-decoration:none;
    transition:background-color .15s,border-color .15s,color .15s;
}
.komar-subcategories a span { min-width:0; overflow-wrap:anywhere; }
.komar-subcategories a svg { flex:0 0 18px; color:#708265; }
html body .komar-subcategories a:hover,
html body .komar-subcategories a:focus-visible { background:#f1f5eb; border-color:#9dab90; color:var(--km-forest); }

/* The seeded cart and checkout pages use Shoppe's full-width page layout. */
html body:is(.woocommerce-cart,.woocommerce-checkout) #body {
    width:calc(100% - 80px)!important;
    max-width:1120px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding:42px 0 64px!important;
    box-sizing:border-box;
}
html body:is(.woocommerce-cart,.woocommerce-checkout) #content {
    float:none;
    width:100%;
    min-width:0;
    padding:0;
    box-sizing:border-box;
}
html body:is(.woocommerce-cart,.woocommerce-checkout) #layout {
    width:100%;
    max-width:100%;
    margin:0;
}
html body:is(.woocommerce-cart,.woocommerce-checkout) #body .page-title {
    font-size:clamp(32px,3.5vw,46px);
    text-align:left!important;
    margin:0 0 32px;
}

@media(max-width:760px) {
    /* The archive already has its outer gutter on #body. Avoid nested gutters. */
    html body.woocommerce.archive #layout { width:100%; max-width:100%; margin:0; }
    html body.woocommerce.archive #content { padding:0; }
    html body .komar-subcategories { margin:20px 0 26px; }
    html body .komar-subcategories ul { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    html body .komar-subcategories a { padding:13px 12px; min-height:58px; font-size:15px; gap:10px; }
    html body:is(.woocommerce-cart,.woocommerce-checkout) #body { width:calc(100% - 36px)!important; padding:28px 0 42px!important; }
    html body:is(.woocommerce-cart,.woocommerce-checkout) #body .page-title { margin-bottom:24px; }
}
@media(max-width:360px) {
    html body .komar-subcategories ul { grid-template-columns:minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) {
    html body .komar-subcategories a { transition:none; }
}
