.stilo-cart-page {
    max-width: 1240px;
    width: 100%;
    margin: 24px auto 50px;
    padding: 0 20px;
    box-sizing: border-box;
    color: #202020;
}

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

.sc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.sc-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.sc-heading h1 {
    font-size: 28px;
    font-weight: 750;
    margin: 0;
}

.sc-heading h1 span {
    font-size: 15px;
    color: #777;
    font-weight: 500;
}

.sc-heading h1 span::before {
    content: "(";
}

.sc-heading h1 span::after {
    content: ")";
}

.sc-heading > a {
    font-size: 13px;
    text-decoration: underline;
}

.sc-steps {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
}

.sc-steps span {
    flex: 1;
    text-align: center;
    padding: 13px 8px;
    background: #f5f5f5;
    color: #888;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.sc-steps span.active {
    background: #eaf8ef;
    color: #15803d;
}

.sc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 355px;
    align-items: start;
    gap: 24px;
}

.sc-products {
    min-width: 0;
}

.sc-campaign {
    padding: 18px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 9px;
    margin-bottom: 16px;
    color: #166534;
}

.sc-campaign-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
}

.sc-campaign-title svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}

.sc-campaign p {
    margin: 9px 0 13px;
    font-size: 13px;
}

.sc-progress {
    height: 7px;
    border-radius: 10px;
    background: #d6ebdc;
    overflow: hidden;
}

.sc-progress span {
    display: block;
    height: 100%;
    border-radius: 10px;
    background: #16a34a;
    transition: width .25s ease;
}

.sc-product {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid #e6e6e6;
    border-radius: 9px;
    background: #fff;
    padding: 16px;
    margin-bottom: 12px;
}

.sc-product-image {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border-radius: 7px;
    overflow: hidden;
}

.sc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sc-product-image svg {
    width: 30px;
    height: 30px;
    color: #aaa;
}

.sc-product-info {
    min-width: 0;
}

.sc-product-name {
    display: block;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.5;
    color: #222;
    overflow-wrap: anywhere;
}

.sc-prices {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.sc-prices del {
    color: #dc2626;
    font-size: 13px;
}

.sc-prices strong {
    color: #16a34a;
    font-size: 17px;
    font-weight: 750;
}

.sc-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
}

.sc-quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.sc-quantity button {
    border: 0;
    background: #f8f8f8;
    width: 34px;
    height: 33px;
    font-size: 18px;
    cursor: pointer;
}

.sc-quantity span {
    min-width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.sc-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: #888;
    cursor: pointer;
    width: 34px;
    height: 34px;
}

.sc-remove:hover {
    color: #dc2626;
}

.sc-remove svg {
    width: 19px;
    height: 19px;
}

.sc-line-total {
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 6px;
    white-space: nowrap;
}

.sc-line-total small {
    color: #888;
    font-size: 12px;
}

.sc-line-total strong {
    font-size: 18px;
    color: #16a34a;
}

.sc-clear {
    border: 0;
    background: transparent;
    color: #888;
    text-decoration: underline;
    font-size: 12px;
    cursor: pointer;
    padding: 8px 0;
}

.sc-summary {
    position: sticky;
    top: 100px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 3px 15px rgba(0,0,0,.035);
}

.sc-summary h2 {
    margin: 0 0 18px;
    font-size: 21px;
    font-weight: 750;
}

.sc-summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    padding: 9px 0;
}

.sc-summary-line strong {
    white-space: nowrap;
}

.sc-summary-line.discount strong,
.sc-summary-line.shipping strong {
    color: #16a34a;
}

.sc-summary-line.grand-total {
    border-top: 1px solid #e5e5e5;
    padding-top: 18px;
    margin-top: 12px;
    font-size: 16px;
    font-weight: 700;
}

.sc-summary-line.grand-total strong {
    color: #16a34a;
    font-size: 24px;
}

.sc-coupon {
    border-top: 1px solid #eee;
    margin-top: 16px;
    padding-top: 16px;
}

.sc-coupon h3 {
    font-size: 14px;
    margin: 0 0 10px;
}

.sc-coupon form {
    display: flex;
    gap: 8px;
}

.sc-coupon input {
    width: 100%;
    min-width: 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 11px;
    font-size: 13px;
    background: #fff;
}

.sc-coupon button {
    border: 0;
    border-radius: 6px;
    background: #222;
    color: #fff;
    padding: 10px 15px;
    font-size: 13px;
    cursor: pointer;
}

.sc-coupon-active {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f0fdf4;
    color: #15803d;
    border-radius: 6px;
}

.sc-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 49px;
    margin-top: 20px;
    border: 0;
    border-radius: 7px;
    background: #16a34a;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.sc-checkout svg {
    width: 19px;
    height: 19px;
}

.sc-checkout:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.sc-checkout-note {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #888;
    margin-top: 8px;
}

.sc-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    color: #777;
    margin-top: 15px;
}

.sc-secure svg {
    width: 15px;
    height: 15px;
}

.sc-benefits {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    padding: 24px 12px;
    margin-top: 25px;
    border-top: 1px solid #eee;
}

.sc-benefits > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 13px;
}

.sc-benefits svg {
    color: #16a34a;
    width: 23px;
    height: 23px;
}

.sc-empty {
    text-align: center;
    padding: 65px 20px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.sc-empty > svg {
    width: 65px;
    height: 65px;
    color: #aaa;
    margin-bottom: 16px;
}

.sc-empty h2 {
    font-size: 24px;
}

.sc-empty p {
    color: #777;
    font-size: 14px;
}

.sc-empty .sc-checkout {
    max-width: 240px;
    margin: 24px auto 0;
}

.sc-nav-link {
    position: relative;
}

.sc-nav-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 20px;
    background: #16a34a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    z-index: 2;
}

.sc-nav-count[hidden] {
    display: none !important;
}

.stilo-cart-toast {
    position: fixed;
    left: 50%;
    bottom: 100px;
    transform: translate(-50%, 15px);
    z-index: 99999;
    max-width: calc(100vw - 32px);
    width: max-content;
    padding: 14px 22px;
    border-radius: 8px;
    background: #16a34a;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}

.stilo-cart-toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.stilo-cart-toast.error {
    background: #dc2626;
}

[data-cart-add][disabled] {
    opacity: .65;
    cursor: wait;
}

#stilo-cart-content[aria-busy="true"] {
    opacity: .75;
}

@media (max-width: 900px) {

    .sc-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .sc-summary {
        position: static;
    }
}

@media (max-width: 767px) {

    .stilo-cart-page {
        margin-top: 16px;
        padding: 0 12px 90px;
    }

    .sc-heading h1 {
        font-size: 23px;
    }

    .sc-heading > a {
        font-size: 11px;
    }

    .sc-steps span {
        font-size: 11px;
        padding: 12px 4px;
    }

    .sc-product {
        grid-template-columns: 86px minmax(0, 1fr);
        padding: 12px;
        gap: 12px;
    }

    .sc-product-image {
        width: 86px;
        height: 96px;
    }

    .sc-product-name {
        font-size: 13px;
    }

    .sc-prices strong {
        font-size: 16px;
    }

    .sc-prices del {
        font-size: 12px;
    }

    .sc-line-total {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }

    .sc-summary {
        padding: 17px;
    }

    .sc-benefits {
        gap: 8px;
    }

    .sc-benefits > div {
        flex: 1;
        flex-direction: column;
        text-align: center;
        font-size: 10px;
    }

    .sc-campaign {
        padding: 13px;
    }

    .sc-campaign-title {
        font-size: 13px;
    }
}

/* STILO CART RECOMMENDATIONS V244 */

#stilo-cart-recommendations {
    min-width: 0;
    width: 100%;
}

.sc-recommendations {
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid #e8e8e8;
    min-width: 0;
}

.sc-rec-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.sc-rec-heading h2 {
    font-size: 23px;
    font-weight: 750;
    margin: 0 0 6px;
    color: #222;
}

.sc-rec-heading p {
    font-size: 13px;
    color: #777;
    margin: 0;
}

.sc-rec-arrows {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.sc-rec-arrows button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #222;
    cursor: pointer;
    transition: background .2s;
}

.sc-rec-arrows button:hover {
    background: #f0fdf4;
    border-color: #16a34a;
    color: #16a34a;
}

.sc-rec-arrows svg {
    width: 19px;
    height: 19px;
}

.sc-rec-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 56px) / 5);
    align-items: stretch;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    padding: 2px 0 12px;
}

.sc-rec-item {
    min-width: 0;
    display: flex;
    scroll-snap-align: start;
}

.sc-rec-item > .product-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    margin: 0;
}

.sc-rec-item img {
    max-width: 100%;
}

@media (max-width: 1100px) {

    .sc-rec-track {
        grid-auto-columns: calc((100% - 42px) / 4);
    }
}

@media (max-width: 900px) {

    .sc-rec-track {
        grid-auto-columns: calc((100% - 28px) / 3);
    }
}

@media (max-width: 767px) {

    .sc-recommendations {
        margin-top: 26px;
        padding-top: 20px;
    }

    .sc-rec-heading {
        margin-bottom: 14px;
    }

    .sc-rec-heading h2 {
        font-size: 17px;
        line-height: 1.4;
    }

    .sc-rec-heading p {
        font-size: 11px;
        line-height: 1.5;
    }

    .sc-rec-track {
        grid-auto-columns: calc((100% - 10px) / 2);
        gap: 10px;
    }

    .sc-rec-arrows {
        gap: 5px;
    }

    .sc-rec-arrows button {
        width: 29px;
        height: 29px;
    }

    .sc-rec-arrows svg {
        width: 16px;
        height: 16px;
    }
}


/* STILO CART LAYOUT V244C */

.sc-cart-bottom {
    width: 100%;
    min-width: 0;
}

.sc-cart-bottom .sc-recommendations {
    margin-top: 25px;
    padding-top: 22px;
}

.sc-cart-actions {
    width: 100%;
    max-width: 420px;
    margin: 22px 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sc-cart-actions .sc-checkout {
    margin: 0;
    min-height: 52px;
}

.sc-continue-shopping {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #16a34a;
    border-radius: 7px;
    background: #fff;
    color: #15803d !important;
    font-size: 15px;
    font-weight: 650;
    text-decoration: none !important;
    transition: background .2s ease;
}

.sc-continue-shopping:hover {
    background: #f0fdf4;
}

.sc-continue-shopping svg {
    width: 19px;
    height: 19px;
}

.sc-cart-actions .sc-checkout-note {
    margin: 0;
}

@media (max-width: 767px) {

    .sc-cart-actions {
        max-width: none;
        margin-top: 18px;
        gap: 10px;
    }

    .sc-cart-actions .sc-checkout,
    .sc-continue-shopping {
        min-height: 48px;
        font-size: 14px;
    }
}


/* STILO CART POSITION V244D */

.sc-products > #stilo-cart-recommendations {
    width: 100%;
    min-width: 0;
    margin-top: 12px;
}

.sc-products .sc-recommendations {
    margin-top: 10px;
    padding-top: 18px;
}

.sc-products .sc-rec-heading h2 {
    font-size: 20px;
}

.sc-products .sc-rec-track {
    grid-auto-columns: calc((100% - 28px) / 3);
    gap: 14px;
}

.sc-summary .sc-cart-actions {
    width: 100%;
    max-width: none;
    margin: 20px 0 0;
}

@media (max-width: 767px) {

    .sc-products .sc-rec-track {
        grid-auto-columns: calc((100% - 10px) / 2);
        gap: 10px;
    }

    .sc-products .sc-rec-heading h2 {
        font-size: 17px;
    }

    .sc-products .sc-recommendations {
        margin-top: 6px;
        padding-top: 14px;
    }

    .sc-summary .sc-cart-actions {
        margin-top: 18px;
    }
}

