/* ============================================================
   SUPERGIRL EC-CUBE PRODUCT LIST V5.3
   This stylesheet is intentionally scoped to body.sg-product-list-page.
   It does not change the homepage, detail page, cart or member pages.
   ============================================================ */

html:has(body.sg-product-list-page),
body.sg-product-list-page {
    background: #000;
}

body.sg-product-list-page {
    margin: 0;
    overflow-x: hidden;
    color: #fff;
    font-family: Inter, "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

body.sg-product-list-page #main-wrapper,
body.sg-product-list-page .ec-layoutRole,
body.sg-product-list-page .ec-layoutRole__contents,
body.sg-product-list-page .ec-layoutRole__main,
body.sg-product-list-page .ec-layoutRole__mainWithColumn,
body.sg-product-list-page .ec-layoutRole__mainBetweenColumn,
body.sg-product-list-page .ec-layoutRole__mainTop,
body.sg-product-list-page .ec-layoutRole__mainBottom,
body.sg-product-list-page .ec-layoutRole__contentBottom,
body.sg-product-list-page .sg-list-page {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: #000;
}

body.sg-product-list-page .ec-layoutRole__contents {
    display: block !important;
}

body.sg-product-list-page .ec-layoutRole__left,
body.sg-product-list-page .ec-layoutRole__right {
    display: none !important;
}

body.sg-product-list-page *,
body.sg-product-list-page *::before,
body.sg-product-list-page *::after {
    box-sizing: border-box;
}

body.sg-product-list-page img,
body.sg-product-list-page svg,
body.sg-product-list-page video {
    max-width: 100%;
}

body.sg-product-list-page a {
    text-decoration: none;
}

.sg-list-shell {
    width: min(92%, 1540px);
    min-width: 0;
    margin: 0 auto;
}

.sg-list-search-form {
    display: none;
}

/* ---------- Compact category heading ---------- */
.sg-list-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 38px 0 46px;
    border-top: 1px solid rgba(255, 255, 255, .05);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    background:
        radial-gradient(circle at 18% 0%, rgba(239, 100, 64, .24), transparent 34%),
        linear-gradient(135deg, #111 0%, #050505 56%, #121212 100%);
}

.sg-list-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -100px;
    bottom: -135px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(239, 100, 64, .20);
    border-radius: 50%;
    box-shadow:
        0 0 0 42px rgba(239, 100, 64, .035),
        0 0 0 92px rgba(239, 100, 64, .02);
}

.sg-list-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-bottom: 24px;
    color: #8f8f8f;
    font-size: 18px;
    line-height: 1.6;
}

.sg-list-breadcrumb a,
.sg-list-breadcrumb span {
    min-width: 0;
    color: #a5a5a5;
    overflow-wrap: anywhere;
}

.sg-list-breadcrumb a:hover,
.sg-list-breadcrumb span[aria-current="page"] {
    color: #ef6440;
}

.sg-list-breadcrumb i {
    color: #555;
    font-size: 8px;
}

.sg-list-hero__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.sg-list-eyebrow {
    margin: 0 0 8px;
    color: #ef6440;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    display: none;
}

.sg-list-hero h1 {
    max-width: 1080px;
    margin: 0;
    color: #fff;
    font-family: "Maven Pro", Inter, "Noto Sans JP", sans-serif;
    font-size: clamp(30px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.sg-list-result-count {
    display: flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 7px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
    color: #bdbdbd;
    white-space: nowrap;
}

.sg-list-result-count strong {
    color: #ef6440;
    font-size: 23px;
    line-height: 1;
}

.sg-list-result-count span {
    font-size: 12px;
}

/* ---------- Results toolbar ---------- */
.sg-list-content {
    padding: 42px 0 82px;
    background: #000;
}

.sg-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 8px;
    background: #101010;
}

.sg-list-toolbar__summary {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.sg-list-toolbar__summary span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-list-toolbar__mark {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef6440;
    box-shadow: 0 0 0 5px rgba(239, 100, 64, .13);
}

.sg-list-toolbar__controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.sg-list-toolbar__select {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #8f8f8f;
    font-size: 11px;
}

.sg-list-toolbar select {
    width: auto;
    min-width: 126px;
    height: 42px;
    margin: 0;
    padding: 0 38px 0 13px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #080808;
    color: #fff;
    font-size: 12px;
    outline: none;
}

.sg-list-toolbar select:focus {
    border-color: #ef6440;
    box-shadow: 0 0 0 3px rgba(239, 100, 64, .12);
}

/* ---------- Static product grid: never converted to a carousel ---------- */
.sg-list-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 34px 18px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sg-list-card {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.sg-list-card__inner {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    color: #fff;
}

.sg-list-card__media {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
}

.sg-list-card__image-link {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5.25;
    overflow: hidden;
}

.sg-list-card__image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), filter .35s ease;
}

.sg-list-card:hover .sg-list-card__image-link img {
    transform: scale(1.035);
    filter: brightness(.91);
}

.sg-list-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 3px;
    background: #0f0f0f;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
}

.sg-list-card__badge--pr {
    background: #ef6440;
}

.sg-list-card__view {
    position: absolute;
    z-index: 3;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(15, 15, 15, .94);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .32s ease, transform .35s ease, background .25s ease;
}

.sg-list-card:hover .sg-list-card__view,
.sg-list-card:focus-within .sg-list-card__view {
    opacity: 1;
    transform: translateY(0);
}

.sg-list-card__view:hover {
    background: #ef6440;
}

.sg-list-card__content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 14px 1px 0;
}

.sg-list-card__title {
    display: -webkit-box;
    min-height: 47px;
    margin: 0 0 7px;
    overflow: hidden;
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color .25s ease;
}

.sg-list-card__title:hover {
    color: #ef6440 !important;
}

.sg-list-card__description {
    display: -webkit-box;
    min-height: 39px;
    margin: 0 0 9px;
    overflow: hidden;
    color: #8b8b8b;
    font-size: 11px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sg-list-card__price {
    display: flex;
    min-height: 23px;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 6px;
    color: #fff;
    font-size: 13px;
    line-height: 1.55;
}

.sg-list-card__old-price {
    color: #707070;
    font-size: 11px;
    text-decoration: line-through;
}

.sg-list-card__current-price {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.sg-list-card__rating {
    display: flex;
    min-height: 18px;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 11px;
}

.sg-list-card__stars {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    font-family: Arial, "Noto Sans JP", sans-serif;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .6px;
    white-space: nowrap;
}

.sg-list-card__stars-active {
    color: #ef6440;
}

.sg-list-card__stars-inactive {
    color: #535353;
}

.sg-list-card__review-count {
    color: #aaa;
    white-space: nowrap;
}

/* ---------- Original EC-CUBE purchase functionality ---------- */
.sg-list-card__purchase {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.sg-list-card__form {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.sg-list-card__select,
.sg-list-card__quantity-row {
    min-width: 0;
}

.sg-list-card__select select {
    width: 100%;
    min-width: 0;
    height: 38px;
    margin: 0;
    padding: 0 32px 0 10px;
    border: 1px solid #303030;
    border-radius: 4px;
    background-color: #0b0b0b;
    color: #fff;
    font-size: 11px;
    outline: none;
}

.sg-list-card__select select:focus {
    border-color: #ef6440;
}

.sg-list-card__quantity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #8c8c8c;
    font-size: 11px;
}

.sg-list-card__quantity {
    width: 62px !important;
    min-width: 0 !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 7px !important;
    border: 1px solid #303030 !important;
    border-radius: 4px !important;
    background: #0b0b0b !important;
    color: #fff !important;
    font-size: 12px !important;
    text-align: center;
}

.sg-list-card__form .form-error-message,
.sg-list-card__form .invalid-feedback,
.sg-list-card__form ul {
    margin: 3px 0 0;
    padding: 0;
    color: #ff8c73;
    font-size: 10px;
    list-style: none;
}

.sg-list-card__cart-button,
.sg-list-card__detail-button {
    display: inline-flex;
    width: 100%;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #ef6440;
    border-radius: 4px;
    background: #ef6440;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.sg-list-card__detail-button {
    background: transparent;
}

.sg-list-card__cart-button:hover:not(:disabled),
.sg-list-card__detail-button:hover {
    border-color: #fff;
    background: #fff;
    color: #111 !important;
    transform: translateY(-1px);
}

.sg-list-card__cart-button:disabled {
    border-color: #333;
    background: #222;
    color: #777 !important;
    cursor: not-allowed;
}

.sg-list-card__cart-button.is-loading {
    opacity: .65;
    pointer-events: none;
}

/* ---------- Pagination ---------- */
.sg-list-pager {
    margin-top: 56px;
}

body.sg-product-list-page .ec-pagerRole {
    margin: 0;
    padding: 0;
}

body.sg-product-list-page .ec-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.sg-product-list-page .ec-pager__item,
body.sg-product-list-page .ec-pager__item--active {
    margin: 0;
}

body.sg-product-list-page .ec-pager__item a,
body.sg-product-list-page .ec-pager__item--active a,
body.sg-product-list-page .ec-pager__item--active {
    display: grid;
    min-width: 40px;
    height: 40px;
    place-items: center;
    padding: 0 10px;
    border: 1px solid #303030;
    border-radius: 5px;
    background: #101010;
    color: #fff !important;
    font-size: 12px;
}

body.sg-product-list-page .ec-pager__item a:hover,
body.sg-product-list-page .ec-pager__item--active a,
body.sg-product-list-page .ec-pager__item--active {
    border-color: #ef6440;
    background: #ef6440;
}

/* ---------- Empty/error states ---------- */
.sg-list-error,
.sg-list-empty {
    margin-top: 48px;
    margin-bottom: 80px;
    padding: 48px 24px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: #101010;
    color: #fff;
    text-align: center;
}

.sg-list-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ff947d;
}

.sg-list-error p {
    margin: 0;
}

.sg-list-empty__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(239, 100, 64, .14);
    color: #ef6440;
    font-size: 21px;
}

.sg-list-empty h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 23px;
}

.sg-list-empty p {
    margin: 0 0 22px;
    color: #929292;
    font-size: 13px;
}

.sg-list-empty a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 10px 22px;
    border-radius: 4px;
    background: #ef6440;
    color: #fff !important;
    font-weight: 700;
}

/* ---------- Page-scoped cart modal ---------- */
body.sg-product-list-page .sg-list-modal {
    position: fixed;
    z-index: 13000;
    inset: 0;
    display: none;
}

body.sg-product-list-page .sg-list-modal .ec-modal-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .72);
}

body.sg-product-list-page .sg-list-modal .ec-modal-wrap {
    position: relative;
    width: min(440px, 100%);
    padding: 34px 26px 26px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 10px;
    background: #111;
    color: #fff;
    box-shadow: 0 22px 65px rgba(0, 0, 0, .45);
}

body.sg-product-list-page .sg-list-modal .ec-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #222;
    color: #fff;
    cursor: pointer;
}

body.sg-product-list-page .sg-list-modal #ec-modal-header {
    margin-bottom: 22px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

body.sg-product-list-page .sg-list-modal .ec-role {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

body.sg-product-list-page .sg-list-modal .ec-inlineBtn--cancel,
body.sg-product-list-page .sg-list-modal .ec-inlineBtn--action {
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px;
    border: 1px solid #ef6440;
    border-radius: 4px;
    background: transparent;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

body.sg-product-list-page .sg-list-modal .ec-inlineBtn--action {
    background: #ef6440;
}

@media (max-width: 1380px) {
    .sg-list-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1020px) {
    .sg-list-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sg-list-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .sg-list-toolbar__controls {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 700px) {
    .sg-list-shell {
        width: calc(100% - 28px);
    }

    .sg-list-hero {
        padding: 24px 0 28px;
    }

    .sg-list-breadcrumb {
        margin-bottom: 15px;
        font-size: 14px;
    }

    .sg-list-hero__heading {
        align-items: flex-start;
        /*flex-direction: column;*/
        gap: 16px;
    }

    .sg-list-eyebrow {
        margin-bottom: 5px;
        font-size: 10px;
    }

    .sg-list-hero h1 {
        font-size: clamp(24px, 6.2vw, 34px);
    }

    .sg-list-result-count {
        padding: 8px 13px;
    }

    .sg-list-result-count strong {
        font-size: 18px;
    }

    .sg-list-content {
        padding: 26px 0 60px;
    }

    .sg-list-toolbar {
        gap: 13px;
        margin-bottom: 20px;
        padding: 12px;
    }

    .sg-list-toolbar__summary {
        font-size: 14px;
    }

    .sg-list-toolbar__controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .sg-list-toolbar__select {
        display: block;
        min-width: 0;
    }

    .sg-list-toolbar__select > span {
        display: block;
        margin-bottom: 5px;
        font-size: 9px;
    }

    .sg-list-toolbar select {
        width: 100%;
        min-width: 0;
        height: 39px;
        padding-left: 9px;
        font-size: 10px;
    }

    /* Mobile deliberately stays a static two-column grid, not a carousel. */
    .sg-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 10px;
    }

    .sg-list-card__media {
        border-radius: 5px;
    }

    .sg-list-card__image-link {
        aspect-ratio: 4 / 5.35;
    }

    .sg-list-card__badge {
        top: 7px;
        left: 7px;
        padding: 4px 6px;
        font-size: 8px;
    }

    .sg-list-card__view {
        display: none;
    }

    .sg-list-card__content {
        padding-top: 9px;
    }

    .sg-list-card__title {
        min-height: 39px;
        margin-bottom: 4px;
        font-size: 11.5px;
        line-height: 1.55;
    }

    .sg-list-card__description {
        display: none;
    }

    .sg-list-card__price {
        display: block;
        min-height: 35px;
        margin-bottom: 4px;
        font-size: 11px;
    }

    .sg-list-card__old-price,
    .sg-list-card__current-price {
        display: block;
        font-size: 10.5px;
        line-height: 1.5;
    }

    .sg-list-card__current-price {
        font-size: 11.5px;
    }

    .sg-list-card__rating {
        gap: 3px;
        margin-bottom: 8px;
        font-size: 9px;
    }

    .sg-list-card__stars {
        font-size: 9.5px;
        letter-spacing: 0;
    }

    .sg-list-card__form {
        gap: 5px;
    }

    .sg-list-card__select select {
        height: 34px;
        padding-right: 23px;
        padding-left: 7px;
        font-size: 9px;
    }

    .sg-list-card__quantity-row {
        font-size: 9px;
    }

    .sg-list-card__quantity {
        width: 52px !important;
        height: 32px !important;
        font-size: 10px !important;
    }

    .sg-list-card__cart-button,
    .sg-list-card__detail-button {
        min-height: 38px;
        gap: 4px;
        padding: 7px 5px;
        font-size: 9.5px;
    }

    .sg-list-card__cart-button i {
        font-size: 10px;
    }

    .sg-list-pager {
        margin-top: 38px;
    }

    body.sg-product-list-page .ec-pager__item a,
    body.sg-product-list-page .ec-pager__item--active a,
    body.sg-product-list-page .ec-pager__item--active {
        min-width: 34px;
        height: 34px;
        padding: 0 7px;
        font-size: 10px;
    }

    body.sg-product-list-page .sg-list-modal .ec-role {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 370px) {
    .sg-list-shell {
        width: calc(100% - 20px);
    }

    .sg-list-grid {
        column-gap: 7px;
    }

    .sg-list-card__title {
        font-size: 10.5px;
    }

    .sg-list-card__cart-button span {
        font-size: 9px;
    }
}

body.sg-list-modal-open {
    overflow: hidden;
}


/* ========================================================================
   V5.5 inline database-driven category sidebar
   The sidebar is rendered inside Product/list.twig and no longer depends on
   an EC-CUBE SIDE_LEFT block being assigned. Scoped to the product-list page.
   ======================================================================== */

/* Prevent an empty legacy SIDE_LEFT column from reserving space. */
body.sg-product-list-page .ec-layoutRole__contents {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.sg-product-list-page .ec-layoutRole__left,
body.sg-product-list-page .ec-layoutRole__right {
    display: none !important;
}

body.sg-product-list-page .ec-layoutRole__main,
body.sg-product-list-page .ec-layoutRole__mainWithColumn,
body.sg-product-list-page .ec-layoutRole__mainBetweenColumn {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sg-list-layout {
    display: grid;
    grid-template-columns: clamp(220px, 17vw, 270px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(22px, 2.3vw, 40px);
    width: 100%;
    min-width: 0;
}

.sg-list-results,
.sg-list-category-sidebar {
    min-width: 0;
}

.sg-list-category-panel {
    position: sticky;
    top: 18px;
    overflow: hidden;
    width: 100%;
    padding: 19px 17px 16px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 8px;
    background: #101010;
    color: #fff;
    box-shadow: 0 15px 38px rgba(0,0,0,.22);
}

.sg-list-category-heading {
    margin-bottom: 10px;
    padding: 0 2px 15px;
    border-bottom: 1px solid rgba(255,255,255,.11);
}

.sg-list-category-heading span {
    display: block;
    margin-bottom: 4px;
    color: #ef6440;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .17em;
}

.sg-list-category-heading strong {
    display: block;
    color: #fff;
    font-family: "Maven Pro", Inter, "Noto Sans JP", sans-serif;
    font-size: 20px;
    line-height: 1.4;
}

.sg-list-category-all,
.sg-list-category-row {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
}

.sg-list-category-all {
    min-height: 44px;
    justify-content: space-between;
    gap: 9px;
    padding: 9px 5px 9px 3px;
    border-bottom: 1px solid rgba(255,255,255,.075);
    color: #cfcfcf !important;
    font-size: 16px;
    font-weight: 600;
    transition: color .22s ease, padding-left .22s ease;
}

.sg-list-category-all i {
    color: #555;
    font-size: 8px;
}

.sg-list-category-all:hover,
.sg-list-category-all.is-current {
    padding-left: 9px;
    color: #ef6440 !important;
}

.sg-list-category-all:hover i,
.sg-list-category-all.is-current i {
    color: #ef6440;
}

.sg-list-category-tree {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sg-list-category-item {
    min-width: 0;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,.075);
}

.sg-list-category-item:last-child {
    border-bottom: 0;
}

.sg-list-category-link {
    display: flex;
    min-width: 0;
    min-height: 43px;
    flex: 1 1 auto;
    align-items: center;
    padding: 9px 5px 9px 3px;
    color: #c6c6c6 !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
    transition: color .22s ease, padding-left .22s ease;
}

.sg-list-category-link:hover,
.sg-list-category-link:focus-visible,
.sg-list-category-link.is-current {
    padding-left: 9px;
    color: #ef6440 !important;
    outline: none;
}

.sg-list-category-toggle {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.055);
    color: #777;
    cursor: pointer;
    transition: background .22s ease, color .22s ease, transform .22s ease;
}

.sg-list-category-toggle:hover,
.sg-list-category-toggle:focus-visible {
    background: rgba(239,100,64,.16);
    color: #ef6440;
    outline: none;
}

.sg-list-category-toggle i {
    font-size: 8px;
    transition: transform .25s ease;
}

.sg-list-category-item.is-expanded > .sg-list-category-row .sg-list-category-toggle i {
    transform: rotate(180deg);
}

.sg-list-category-children {
    display: none;
    margin: 0 0 5px 7px;
    padding-left: 10px;
    border-left: 1px solid rgba(239,100,64,.22);
}

.sg-list-category-item.is-expanded > .sg-list-category-children {
    display: block;
}

.sg-list-category-tree--level-2 .sg-list-category-link {
    min-height: 37px;
    color: #a7a7a7 !important;
    font-size: 14px;
}

.sg-list-category-tree--level-3 .sg-list-category-link,
.sg-list-category-tree--level-4 .sg-list-category-link {
    min-height: 34px;
    color: #929292 !important;
    font-size: 12px;
}

.sg-list-category-tree--level-2 .sg-list-category-link:hover,
.sg-list-category-tree--level-2 .sg-list-category-link.is-current,
.sg-list-category-tree--level-3 .sg-list-category-link:hover,
.sg-list-category-tree--level-3 .sg-list-category-link.is-current,
.sg-list-category-tree--level-4 .sg-list-category-link:hover,
.sg-list-category-tree--level-4 .sg-list-category-link.is-current {
    color: #ef6440 !important;
}

.sg-list-category-empty {
    margin: 13px 0 0;
    color: #888;
    font-size: 12px;
    line-height: 1.7;
}

.sg-list-category-mobile-toggle {
    display: none;
}

/* Five columns remain possible on wide screens; use four when the sidebar
   leaves less horizontal room. */
@media (max-width: 1480px) and (min-width: 1021px) {
    .sg-list-layout .sg-list-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1020px) {
    .sg-list-layout {
        display: block;
    }

    .sg-list-category-sidebar {
        width: 100%;
        margin-bottom: 20px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,.11);
        border-radius: 8px;
        background: #101010;
    }

    .sg-list-category-mobile-toggle {
        display: flex;
        width: 100%;
        min-height: 52px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0;
        padding: 12px 15px;
        border: 0;
        background: #101010;
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
    }

    .sg-list-category-mobile-toggle span {
        display: inline-flex;
        align-items: center;
        gap: 9px;
    }

    .sg-list-category-mobile-toggle span i,
    .sg-list-category-mobile-toggle > i {
        color: #ef6440;
    }

    .sg-list-category-mobile-toggle > i {
        font-size: 9px;
        transition: transform .25s ease;
    }

    .sg-list-category-sidebar.is-open .sg-list-category-mobile-toggle > i {
        transform: rotate(180deg);
    }

    .sg-list-category-panel {
        position: static;
        display: none;
        padding: 15px 14px 14px;
        border: 0;
        border-top: 1px solid rgba(255,255,255,.09);
        border-radius: 0;
        box-shadow: none;
    }

    .sg-list-category-sidebar.is-open .sg-list-category-panel {
        display: block;
    }

    .sg-list-category-heading {
        display: none;
    }
}

@media (max-width: 700px) {
    .sg-list-category-sidebar {
        margin-bottom: 15px;
        display: none;
    }

    .sg-list-category-mobile-toggle {
        min-height: 48px;
        padding: 10px 13px;
        font-size: 12px;
    }

    .sg-list-category-panel {
        max-height: min(70vh, 540px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .sg-list-category-link,
    .sg-list-category-all {
        font-size: 12px;
    }
}
