/* ========================================================================
   SUPERGIRL Cart Page V5.14
   Scope: Cart/index.twig only.
   Styling only: cart routes, CSRF, quantity operations, wholesale discount,
   custom-design data, shipping threshold and checkout behavior are untouched.
   ======================================================================== */

body.sg-cart-page {
    --sg-cart-bg: #000;
    --sg-cart-panel: #111;
    --sg-cart-panel-soft: #181818;
    --sg-cart-panel-hover: #202020;
    --sg-cart-text: #fff;
    --sg-cart-muted: #a7a7a7;
    --sg-cart-border: rgba(255, 255, 255, .14);
    --sg-cart-border-strong: rgba(255, 255, 255, .25);
    --sg-cart-accent: #ef6440;
    --sg-cart-accent-dark: #d94f2d;
    --sg-cart-danger: #ff6c6c;
    margin: 0;
    overflow-x: hidden;
    background: var(--sg-cart-bg) !important;
    color: var(--sg-cart-text);
    font-family: Inter, "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

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

body.sg-cart-page img {
    max-width: 100%;
    height: auto;
}

body.sg-cart-page .ec-layoutRole,
body.sg-cart-page .ec-layoutRole__contents,
body.sg-cart-page .ec-layoutRole__main,
body.sg-cart-page .ec-layoutRole__mainWithColumn,
body.sg-cart-page .ec-layoutRole__mainBetweenColumn,
body.sg-cart-page .ec-layoutRole__mainTop,
body.sg-cart-page .ec-layoutRole__mainBottom,
body.sg-cart-page .ec-layoutRole__contentBottom {
    background: var(--sg-cart-bg) !important;
    color: var(--sg-cart-text);
}

body.sg-cart-page .ec-layoutRole__contents {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

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

body.sg-cart-page .ec-layoutRole__main,
body.sg-cart-page .ec-layoutRole__mainWithColumn,
body.sg-cart-page .ec-layoutRole__mainBetweenColumn {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: clamp(44px, 5vw, 76px) 0 clamp(72px, 7vw, 110px) !important;
}

body.sg-cart-page a {
    color: var(--sg-cart-accent);
    text-decoration: none;
    transition: color .22s ease, border-color .22s ease, background-color .22s ease, transform .22s ease;
}

body.sg-cart-page a:hover {
    color: #ff8566;
    text-decoration: none;
}

/* ---------- Page width / title ---------- */
body.sg-cart-page .ec-layoutRole__main > .ec-role,
body.sg-cart-page .ec-layoutRole__mainWithColumn > .ec-role,
body.sg-cart-page .ec-layoutRole__mainBetweenColumn > .ec-role,
body.sg-cart-page .ec-layoutRole__main > .ec-cartRole,
body.sg-cart-page .ec-layoutRole__mainWithColumn > .ec-cartRole,
body.sg-cart-page .ec-layoutRole__mainBetweenColumn > .ec-cartRole {
    width: min(90%, 1260px) !important;
    max-width: 1260px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.sg-cart-page form.ec-cartRole {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.sg-cart-page .ec-pageHeader {
    width: 100%;
    margin: 0 0 28px !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
}

body.sg-cart-page .ec-pageHeader h1 {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #fff !important;
    font-family: "Maven Pro", Inter, "Noto Sans JP", sans-serif;
    font-size: clamp(30px, 3.1vw, 50px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -.025em;
    text-align: left !important;
}

body.sg-cart-page .ec-pageHeader h1::before {
    content: "SHOPPING CART";
    display: block;
    margin-bottom: 9px;
    color: var(--sg-cart-accent);
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .14em;
}

/* ---------- Checkout progress ---------- */
body.sg-cart-page .ec-layoutRole__main > .ec-cartRole > .ec-cartRole__progress,
body.sg-cart-page .ec-layoutRole__mainWithColumn > .ec-cartRole > .ec-cartRole__progress,
body.sg-cart-page .ec-layoutRole__mainBetweenColumn > .ec-cartRole > .ec-cartRole__progress {
    width: 100%;
    margin: 0 0 28px !important;
    padding: 20px 24px !important;
    overflow: hidden;
    border: 1px solid var(--sg-cart-border);
    border-radius: 12px;
    background: var(--sg-cart-panel);
}

body.sg-cart-page .ec-progress {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 920px;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
}

body.sg-cart-page .ec-progress__item {
    position: relative;
    display: flex !important;
    flex: 1 1 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 8px !important;
    background: transparent !important;
    color: var(--sg-cart-muted) !important;
    text-align: center !important;
}

body.sg-cart-page .ec-progress__item:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 18px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 1px;
    background: var(--sg-cart-border-strong);
}

body.sg-cart-page .ec-progress__number {
    position: relative;
    z-index: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 0 9px !important;
    padding: 0 !important;
    border: 1px solid var(--sg-cart-border-strong) !important;
    border-radius: 50% !important;
    background: #090909 !important;
    color: #a9a9a9 !important;
    font-family: Inter, sans-serif;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

body.sg-cart-page .ec-progress__label {
    width: 100%;
    color: inherit !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
}

body.sg-cart-page .ec-progress__item.is-complete {
    color: #fff !important;
}

body.sg-cart-page .ec-progress__item.is-complete .ec-progress__number {
    border-color: var(--sg-cart-accent) !important;
    background: var(--sg-cart-accent) !important;
    color: #fff !important;
    box-shadow: 0 0 0 5px rgba(239, 100, 64, .14);
}

/* ---------- Alerts and total message ---------- */
body.sg-cart-page .ec-cartRole__error {
    width: 100% !important;
    margin: 0 0 14px !important;
}

body.sg-cart-page .ec-alert-warning,
body.sg-cart-page .ec-alert-danger,
body.sg-cart-page .ec-alert-success {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 17px !important;
    border: 1px solid var(--sg-cart-border) !important;
    border-left: 4px solid var(--sg-cart-accent) !important;
    border-radius: 8px !important;
    background: var(--sg-cart-panel-soft) !important;
    color: #eee !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
}

body.sg-cart-page .ec-alert-warning__icon {
    flex: 0 0 20px !important;
    width: 20px !important;
    margin: 1px 0 0 !important;
}

body.sg-cart-page .ec-alert-warning__icon img {
    display: block;
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
}

body.sg-cart-page .ec-alert-warning__text {
    min-width: 0;
    color: inherit !important;
    overflow-wrap: anywhere;
}

body.sg-cart-page .ec-cartRole__totalText {
    width: 100% !important;
    margin: 0 0 18px !important;
    padding: 17px 20px !important;
    border: 1px solid rgba(239, 100, 64, .36) !important;
    border-radius: 9px !important;
    background: rgba(239, 100, 64, .08) !important;
    color: #e9e9e9 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

body.sg-cart-page .ec-cartRole__totalText p {
    margin: 0 !important;
    color: inherit !important;
}

body.sg-cart-page .ec-cartRole__totalText strong {
    color: var(--sg-cart-accent) !important;
    font-size: 18px;
}

/* ---------- Cart table ---------- */
body.sg-cart-page .ec-cartRole__cart {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--sg-cart-border) !important;
    border-radius: 12px !important;
    background: var(--sg-cart-panel) !important;
}

body.sg-cart-page .ec-cartTable {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.sg-cart-page .ec-cartHeader,
body.sg-cart-page .ec-cartRow {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) 112px 132px 132px !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.sg-cart-page .ec-cartHeader {
    border-bottom: 1px solid var(--sg-cart-border) !important;
    background: #0a0a0a !important;
}

body.sg-cart-page .ec-cartHeader__label {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    border: 0 !important;
    border-right: 1px solid var(--sg-cart-border) !important;
    background: transparent !important;
    color: var(--sg-cart-muted) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: center !important;
}

body.sg-cart-page .ec-cartHeader__label:last-child {
    border-right: 0 !important;
}

body.sg-cart-page .ec-cartRow {
    border-bottom: 1px solid var(--sg-cart-border) !important;
    background: var(--sg-cart-panel) !important;
}

body.sg-cart-page .ec-cartRow:last-child {
    border-bottom: 0 !important;
}

body.sg-cart-page .ec-cartRow > li {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 20px 14px !important;
    border: 0 !important;
    border-right: 1px solid var(--sg-cart-border) !important;
    background: transparent !important;
    color: #ddd !important;
}

body.sg-cart-page .ec-cartRow > li:last-child {
    border-right: 0 !important;
}

body.sg-cart-page .ec-cartRow__delColumn,
body.sg-cart-page .ec-cartRow__amountColumn,
body.sg-cart-page .ec-cartRow__subtotalColumn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Delete operation: only visual replacement; original anchor and data-method remain. */
body.sg-cart-page .ec-cartRow__delColumn > a.ec-icon {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--sg-cart-border-strong) !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #fff !important;
}

body.sg-cart-page .ec-cartRow__delColumn > a.ec-icon::before {
    content: "×";
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
}

body.sg-cart-page .ec-cartRow__delColumn > a.ec-icon img {
    display: none !important;
}

body.sg-cart-page .ec-cartRow__delColumn > a.ec-icon:hover {
    border-color: var(--sg-cart-danger) !important;
    background: rgba(255, 108, 108, .12) !important;
    color: var(--sg-cart-danger) !important;
}

body.sg-cart-page .ec-cartRow__delColumn > a.ec-icon:hover::before {
    color: var(--sg-cart-danger);
}

body.sg-cart-page .ec-cartRow__contentColumn {
    display: grid !important;
    grid-template-columns: 142px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 20px !important;
    min-width: 0 !important;
}

body.sg-cart-page .ec-cartRow__img {
    width: 142px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.sg-cart-page .ec-cartRow__img > a:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 142px !important;
    height: 142px !important;
    margin: 0 !important;
    padding: 8px !important;
    overflow: hidden !important;
    border-radius: 9px !important;
    background: #ededed !important;
}

body.sg-cart-page .ec-cartRow__img > a:first-child > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

body.sg-cart-page .ec-cartRow__summary {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 2px 0 0 !important;
    color: #d6d6d6 !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
    overflow-wrap: anywhere;
}

body.sg-cart-page .ec-cartRow__name {
    margin: 0 0 12px !important;
    color: #cfcfcf !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
}

body.sg-cart-page .ec-cartRow__name a {
    display: inline-block;
    margin-bottom: 4px;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

body.sg-cart-page .ec-cartRow__name a:hover {
    color: var(--sg-cart-accent) !important;
}

body.sg-cart-page .ec-cartRow__unitPrice {
    color: var(--sg-cart-accent) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

body.sg-cart-page .ec-cartRow__sutbtotalSP,
body.sg-cart-page .ec-cartRow__amountSP {
    display: none !important;
}

/* Custom-design previews remain based on the original session queue/map. */
body.sg-cart-page .pz-designThumbs {
    width: 100% !important;
    min-width: 0 !important;
    margin: 10px 0 0 !important;
    padding: 9px !important;
    border: 1px solid var(--sg-cart-border) !important;
    border-radius: 8px !important;
    background: var(--sg-cart-panel-soft) !important;
}

body.sg-cart-page .pz-designThumbs > div:first-child {
    margin-bottom: 6px !important;
    color: var(--sg-cart-accent) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

body.sg-cart-page .pz-designThumbs > div:nth-child(2) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
    width: 100% !important;
}

body.sg-cart-page .pz-designThumbs a {
    display: block !important;
    min-width: 0 !important;
    line-height: 0 !important;
}

body.sg-cart-page .pz-designThumbs img {
    display: block !important;
    width: 100% !important;
    height: 50px !important;
    padding: 2px !important;
    object-fit: contain !important;
    border: 1px solid var(--sg-cart-border-strong) !important;
    border-radius: 6px !important;
    background: #eee !important;
}

body.sg-cart-page .pz-designThumbs > div:last-child {
    margin-top: 6px !important;
    color: var(--sg-cart-muted) !important;
    font-size: 10px !important;
    line-height: 1.4 !important;
}

body.sg-cart-page .ec-cartRow__amount {
    margin: 0 0 12px !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}

body.sg-cart-page .ec-cartRow__amountUpDown {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.sg-cart-page .ec-cartRow__amountDownButton,
body.sg-cart-page .ec-cartRow__amountUpButton,
body.sg-cart-page .ec-cartRow__amountDownButtonDisabled {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--sg-cart-border-strong) !important;
    border-radius: 50% !important;
    background: #f2f2f2 !important;
    color: #111 !important;
}

body.sg-cart-page .ec-cartRow__amountDownButtonDisabled {
    opacity: .35;
    cursor: not-allowed;
}

body.sg-cart-page .ec-cartRow__amountDownButton:hover,
body.sg-cart-page .ec-cartRow__amountUpButton:hover {
    border-color: var(--sg-cart-accent) !important;
    background: var(--sg-cart-accent) !important;
    transform: translateY(-1px);
}

body.sg-cart-page .ec-cartRow__amountDownButton__icon,
body.sg-cart-page .ec-cartRow__amountUpButton__icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 14px !important;
    height: 14px !important;
}

body.sg-cart-page .ec-cartRow__amountDownButton__icon img,
body.sg-cart-page .ec-cartRow__amountUpButton__icon img {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    object-fit: contain !important;
}

body.sg-cart-page .ec-cartRow__sutbtotal,
body.sg-cart-page .ec-cartRow__subtotalColumn .ec-cartRow__unitPrice {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    white-space: nowrap;
}

body.sg-cart-page .ec-cartRow__subtotalColumn:last-child .ec-cartRow__unitPrice {
    color: var(--sg-cart-accent) !important;
}

/* ---------- Shipping threshold / cart actions ---------- */
body.sg-cart-page form.ec-cartRole > .ec-cartRole__progress {
    width: 100% !important;
    margin: 0 0 15px !important;
    padding: 14px 17px !important;
    border: 1px solid var(--sg-cart-border) !important;
    border-radius: 8px !important;
    background: var(--sg-cart-panel-soft) !important;
    color: #d8d8d8 !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
    text-align: center !important;
}

body.sg-cart-page form.ec-cartRole > .ec-cartRole__progress strong {
    color: var(--sg-cart-accent) !important;
}

body.sg-cart-page .ec-color-red,
body.sg-cart-page .ec-color-accent {
    color: var(--sg-cart-accent) !important;
}

body.sg-cart-page .ec-cartRole__actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 290px) minmax(180px, 240px) !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 0 28px !important;
    padding: 22px !important;
    border: 1px solid var(--sg-cart-border) !important;
    border-radius: 10px !important;
    background: var(--sg-cart-panel) !important;
}

body.sg-cart-page .ec-cartRole__total {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

body.sg-cart-page .ec-cartRole__totalAmount {
    margin-left: 10px !important;
    color: var(--sg-cart-accent) !important;
    font-size: clamp(24px, 2.4vw, 34px) !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

body.sg-cart-page .ec-blockBtn--action,
body.sg-cart-page .ec-blockBtn--cancel {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 13px 18px !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: center !important;
}

body.sg-cart-page .ec-blockBtn--action {
    border: 1px solid var(--sg-cart-accent) !important;
    background: var(--sg-cart-accent) !important;
    color: #fff !important;
}

body.sg-cart-page .ec-blockBtn--action:hover {
    border-color: var(--sg-cart-accent-dark) !important;
    background: var(--sg-cart-accent-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

body.sg-cart-page .ec-blockBtn--cancel {
    border: 1px solid var(--sg-cart-border-strong) !important;
    background: transparent !important;
    color: #fff !important;
}

body.sg-cart-page .ec-blockBtn--cancel:hover {
    border-color: #fff !important;
    background: #fff !important;
    color: #111 !important;
}

/* Empty cart message. */
body.sg-cart-page .ec-off3Grid,
body.sg-cart-page .ec-off3Grid__cell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.sg-cart-page .ec-off3Grid__cell > .ec-alert-warning {
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 26px !important;
    justify-content: center !important;
    text-align: center !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    body.sg-cart-page .ec-cartHeader,
    body.sg-cart-page .ec-cartRow {
        grid-template-columns: 56px minmax(0, 1fr) 100px 112px 112px !important;
    }

    body.sg-cart-page .ec-cartRow__contentColumn {
        grid-template-columns: 116px minmax(0, 1fr) !important;
        gap: 15px !important;
    }

    body.sg-cart-page .ec-cartRow__img,
    body.sg-cart-page .ec-cartRow__img > a:first-child {
        width: 116px !important;
    }

    body.sg-cart-page .ec-cartRow__img > a:first-child {
        height: 116px !important;
    }
}

@media (max-width: 820px) {
    body.sg-cart-page .ec-cartHeader {
        display: none !important;
    }

    body.sg-cart-page .ec-cartRole__cart {
        overflow: visible;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    body.sg-cart-page .ec-cartRow {
        grid-template-columns: 38px minmax(0, 1fr) !important;
        grid-template-areas:
            "delete content"
            ". amount" !important;
        margin: 0 0 14px !important;
        overflow: hidden;
        border: 1px solid var(--sg-cart-border) !important;
        border-radius: 10px !important;
        background: var(--sg-cart-panel) !important;
    }

    body.sg-cart-page .ec-cartRow > li {
        border-right: 0 !important;
    }

    body.sg-cart-page .ec-cartRow__delColumn {
        grid-area: delete;
        justify-content: flex-start !important;
        padding: 14px 0 0 10px !important;
    }

    body.sg-cart-page .ec-cartRow__delColumn > a.ec-icon {
        width: 28px !important;
        height: 28px !important;
    }

    body.sg-cart-page .ec-cartRow__delColumn > a.ec-icon::before {
        font-size: 18px;
    }

    body.sg-cart-page .ec-cartRow__contentColumn {
        grid-area: content;
        grid-template-columns: 104px minmax(0, 1fr) !important;
        gap: 14px !important;
        padding: 15px 14px 8px 8px !important;
    }

    body.sg-cart-page .ec-cartRow__img,
    body.sg-cart-page .ec-cartRow__img > a:first-child {
        width: 104px !important;
    }

    body.sg-cart-page .ec-cartRow__img > a:first-child {
        height: 104px !important;
        padding: 5px !important;
    }

    body.sg-cart-page .ec-cartRow__amountColumn {
        grid-area: amount;
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        gap: 14px !important;
        padding: 8px 14px 15px 8px !important;
        border-top: 1px solid var(--sg-cart-border) !important;
    }

    body.sg-cart-page .ec-cartRow__amount,
    body.sg-cart-page .ec-cartRow__subtotalColumn {
        display: none !important;
    }

    body.sg-cart-page .ec-cartRow__amountSP,
    body.sg-cart-page .ec-cartRow__sutbtotalSP {
        display: block !important;
        margin: 6px 0 0 !important;
        color: #cfcfcf !important;
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    body.sg-cart-page .ec-cartRow__sutbtotalSP:last-child {
        color: var(--sg-cart-accent) !important;
        font-weight: 700 !important;
    }

    body.sg-cart-page .ec-cartRole__actions {
        grid-template-columns: 1fr 1fr !important;
    }

    body.sg-cart-page .ec-cartRole__total {
        grid-column: 1 / -1 !important;
        text-align: center !important;
    }
}

@media (max-width: 720px) {
    body.sg-cart-page .ec-layoutRole__main,
    body.sg-cart-page .ec-layoutRole__mainWithColumn,
    body.sg-cart-page .ec-layoutRole__mainBetweenColumn {
        padding: 34px 0 70px !important;
    }

    body.sg-cart-page .ec-layoutRole__main > .ec-role,
    body.sg-cart-page .ec-layoutRole__mainWithColumn > .ec-role,
    body.sg-cart-page .ec-layoutRole__mainBetweenColumn > .ec-role,
    body.sg-cart-page .ec-layoutRole__main > .ec-cartRole,
    body.sg-cart-page .ec-layoutRole__mainWithColumn > .ec-cartRole,
    body.sg-cart-page .ec-layoutRole__mainBetweenColumn > .ec-cartRole {
        width: calc(100% - 28px) !important;
    }

    body.sg-cart-page .ec-pageHeader {
        margin-bottom: 21px !important;
    }

    body.sg-cart-page .ec-pageHeader h1 {
        font-size: clamp(28px, 9vw, 40px) !important;
    }

    body.sg-cart-page .ec-layoutRole__main > .ec-cartRole > .ec-cartRole__progress,
    body.sg-cart-page .ec-layoutRole__mainWithColumn > .ec-cartRole > .ec-cartRole__progress,
    body.sg-cart-page .ec-layoutRole__mainBetweenColumn > .ec-cartRole > .ec-cartRole__progress {
        padding: 16px 8px !important;
    }

    body.sg-cart-page .ec-progress__item {
        padding: 0 2px !important;
    }

    body.sg-cart-page .ec-progress__number {
        width: 31px !important;
        height: 31px !important;
        margin-bottom: 7px !important;
        font-size: 11px !important;
    }

    body.sg-cart-page .ec-progress__item:not(:last-child)::after {
        top: 15px;
        left: calc(50% + 18px);
        width: calc(100% - 36px);
    }

    body.sg-cart-page .ec-progress__label {
        font-size: 9px !important;
        line-height: 1.35 !important;
        word-break: keep-all;
    }

    body.sg-cart-page .ec-cartRole__totalText {
        padding: 14px !important;
        font-size: 13px !important;
    }

    body.sg-cart-page .ec-cartRole__actions {
        grid-template-columns: 1fr !important;
        padding: 17px !important;
    }

    body.sg-cart-page .ec-cartRole__total {
        grid-column: auto !important;
    }

    body.sg-cart-page .ec-cartRole__totalAmount {
        display: block;
        margin: 5px 0 0 !important;
    }
}

@media (max-width: 520px) {
    body.sg-cart-page .ec-cartRow {
        grid-template-columns: 34px minmax(0, 1fr) !important;
    }

    body.sg-cart-page .ec-cartRow__contentColumn {
        grid-template-columns: 86px minmax(0, 1fr) !important;
        gap: 11px !important;
        padding-right: 10px !important;
    }

    body.sg-cart-page .ec-cartRow__img,
    body.sg-cart-page .ec-cartRow__img > a:first-child {
        width: 86px !important;
    }

    body.sg-cart-page .ec-cartRow__img > a:first-child {
        height: 86px !important;
    }

    body.sg-cart-page .ec-cartRow__summary,
    body.sg-cart-page .ec-cartRow__name {
        font-size: 11px !important;
    }

    body.sg-cart-page .ec-cartRow__name a {
        font-size: 13px !important;
    }

    body.sg-cart-page .ec-cartRow__unitPrice {
        font-size: 14px !important;
    }

    body.sg-cart-page .pz-designThumbs {
        padding: 6px !important;
    }

    body.sg-cart-page .pz-designThumbs img {
        height: 38px !important;
    }

    body.sg-cart-page .ec-cartRow__amountColumn {
        gap: 9px !important;
    }

    body.sg-cart-page .ec-cartRow__amountDownButton,
    body.sg-cart-page .ec-cartRow__amountUpButton,
    body.sg-cart-page .ec-cartRow__amountDownButtonDisabled {
        width: 31px !important;
        height: 31px !important;
    }
}

/* ========================================================================
   V5.14 Empty-cart state
   Display only. No cart operation, route, amount or checkout logic changed.
   ======================================================================== */
body.sg-cart-page .sg-cart-emptyRole {
    width: 100% !important;
    max-width: none !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
}

body.sg-cart-page .sg-cart-empty {
    position: relative;
    width: min(100%, 760px);
    margin: 0 auto;
    padding: clamp(48px, 7vw, 78px) clamp(24px, 6vw, 72px);
    overflow: hidden;
    border: 1px solid var(--sg-cart-border);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 0, rgba(239, 100, 64, .14), transparent 42%),
        linear-gradient(145deg, #151515 0%, #0d0d0d 100%);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
    color: #fff;
    text-align: center;
}

body.sg-cart-page .sg-cart-empty::before,
body.sg-cart-page .sg-cart-empty::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

body.sg-cart-page .sg-cart-empty::before {
    top: -76px;
    right: -76px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(239, 100, 64, .16);
    border-radius: 50%;
}

body.sg-cart-page .sg-cart-empty::after {
    bottom: -88px;
    left: -58px;
    width: 170px;
    height: 170px;
    border: 1px solid rgba(255, 255, 255, .07);
    transform: rotate(35deg);
}

body.sg-cart-page .sg-cart-empty__icon {
    position: relative;
    z-index: 1;
    width: 92px;
    height: 92px;
    margin: 0 auto 25px;
    border: 1px solid rgba(239, 100, 64, .48);
    border-radius: 50%;
    background: rgba(239, 100, 64, .1);
    box-shadow: 0 0 0 10px rgba(239, 100, 64, .04);
}

/* CSS shopping-bag icon: avoids introducing a new image or script dependency. */
body.sg-cart-page .sg-cart-empty__icon::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 34px;
    width: 38px;
    height: 31px;
    border: 2px solid #fff;
    border-radius: 4px 4px 7px 7px;
}

body.sg-cart-page .sg-cart-empty__icon::after {
    content: "";
    position: absolute;
    left: 35px;
    top: 24px;
    width: 22px;
    height: 18px;
    border: 2px solid var(--sg-cart-accent);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
}

body.sg-cart-page .sg-cart-empty__eyebrow {
    position: relative;
    z-index: 1;
    margin: 0 0 10px !important;
    color: var(--sg-cart-accent) !important;
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: .18em;
}

body.sg-cart-page .sg-cart-empty__title {
    position: relative;
    z-index: 1;
    margin: 0 0 14px !important;
    color: #fff !important;
    font-family: "Maven Pro", Inter, "Noto Sans JP", sans-serif;
    font-size: clamp(25px, 3vw, 38px) !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: -.02em;
}

body.sg-cart-page .sg-cart-empty__message {
    position: relative;
    z-index: 1;
    margin: 0 auto 30px !important;
    color: var(--sg-cart-muted) !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
}

body.sg-cart-page .sg-cart-empty__button {
    position: relative;
    z-index: 1;
    width: min(100%, 300px) !important;
    margin: 0 auto !important;
}

@media (max-width: 720px) {
    body.sg-cart-page .sg-cart-emptyRole {
        margin-top: 0 !important;
    }

    body.sg-cart-page .sg-cart-empty {
        padding: 42px 20px 38px;
        border-radius: 12px;
    }

    body.sg-cart-page .sg-cart-empty__icon {
        width: 78px;
        height: 78px;
        margin-bottom: 21px;
    }

    body.sg-cart-page .sg-cart-empty__icon::before {
        left: 23px;
        top: 30px;
        width: 32px;
        height: 26px;
    }

    body.sg-cart-page .sg-cart-empty__icon::after {
        left: 30px;
        top: 21px;
        width: 18px;
        height: 16px;
    }

    body.sg-cart-page .sg-cart-empty__message {
        margin-bottom: 24px !important;
        font-size: 13px !important;
    }
}
