.woocommerce-cart .sp-cart-page {
    background: var(--ve-bg, #f3ede6);
    color: var(--ve-ink, #2b2b2b);
    min-height: 70vh;
    padding-bottom: 72px;
}

.woocommerce-cart .sp-cart-page > .container {
    max-width: 1240px;
}

.woocommerce-cart .sp-cart-page .ve-breadcrumbs {
    margin-bottom: 28px;
}

.sp-cart-shell {
    font-family: var(--ve-body, "Inter", Arial, sans-serif);
}

.sp-cart-shell [hidden] {
    display: none !important;
}

.sp-cart-heading {
    align-items: flex-end;
    display: flex;
    gap: 48px;
    justify-content: space-between;
    margin: 0 0 36px;
}

.sp-cart-heading__title > p,
.sp-cart-empty__intro > p,
.sp-cart-section-heading p {
    color: var(--ve-terracotta-600, #a12c2f);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.sp-cart-heading h1 {
    color: var(--ve-wine-700, #6f0d22);
    font-family: var(--ve-display, "Playfair Display", Georgia, serif);
    font-size: clamp(38px, 4.4vw, 58px);
    font-weight: 600;
    line-height: 1.05;
    margin: 0;
}

.sp-cart-heading h1 span {
    color: var(--ve-secondary, #6b5750);
    font-family: var(--ve-body, "Inter", Arial, sans-serif);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.sp-cart-progress {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0 0 5px;
    padding: 0;
}

.sp-cart-progress li {
    align-items: center;
    color: var(--ve-muted, #a8968d);
    display: flex;
    font-size: 12px;
    font-weight: 600;
    gap: 8px;
    position: relative;
}

.sp-cart-progress li:not(:last-child) {
    margin-right: 54px;
}

.sp-cart-progress li:not(:last-child)::after {
    background: var(--ve-border, #d8c9bf);
    content: "";
    height: 1px;
    left: calc(100% + 12px);
    position: absolute;
    top: 14px;
    width: 30px;
}

.sp-cart-progress li span {
    align-items: center;
    border: 1px solid var(--ve-border, #d8c9bf);
    border-radius: 50%;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.sp-cart-progress li.is-current {
    color: var(--ve-wine-700, #6f0d22);
}

.sp-cart-progress li.is-current span {
    background: var(--ve-wine-700, #6f0d22);
    border-color: var(--ve-wine-700, #6f0d22);
    color: #fff;
}

.sp-cart-content {
    margin: 0;
}

.sp-cart-shell.is-empty .sp-cart-content,
.sp-cart-content .wp-block-woocommerce-empty-cart-block {
    display: none !important;
}

.sp-cart-content .wp-block-woocommerce-cart {
    margin: 0;
}

.sp-cart-content .wc-block-components-sidebar-layout {
    align-items: flex-start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 380px;
    margin: 0;
}

.sp-cart-content .wc-block-cart__main,
.sp-cart-content .wc-block-cart__sidebar {
    background: var(--ve-surface, #fff);
    border: 1px solid var(--ve-border, #d8c9bf);
    border-radius: 18px;
    box-shadow: var(--ve-shadow-sm, 0 2px 10px rgba(58, 34, 40, .07));
    box-sizing: border-box;
    margin: 0;
    width: 100%;
}

.sp-cart-content .wc-block-cart__main {
    padding: 10px 30px 8px;
}

.sp-cart-content .wc-block-cart__sidebar {
    padding: 28px;
    position: sticky;
    top: 24px;
}

.sp-cart-content .wc-block-cart-items,
.sp-cart-content .wc-block-cart-items td,
.sp-cart-content .wc-block-cart-items th {
    border: 0;
}

.sp-cart-content .wc-block-cart-items thead {
    display: none;
}

.sp-cart-content .wc-block-cart-items__row {
    border-bottom: 1px solid var(--ve-border, #d8c9bf);
    display: grid;
    gap: 22px;
    grid-template-columns: 116px minmax(0, 1fr) auto;
    padding: 26px 0;
}

.sp-cart-content .wc-block-cart-items__row:last-child {
    border-bottom: 0;
}

.sp-cart-content .wc-block-cart-item__image {
    padding: 0;
    width: auto;
}

.sp-cart-content .wc-block-cart-item__image a {
    background: var(--ve-bg-alt, #fbf7f3);
    border-radius: 12px;
    display: block;
    overflow: hidden;
}

.sp-cart-content .wc-block-cart-item__image img {
    aspect-ratio: 1 / 1;
    display: block;
    height: auto;
    object-fit: contain;
    padding: 8px;
    width: 100%;
}

.sp-cart-content .wc-block-cart-item__product {
    min-width: 0;
    padding: 2px 0 0;
}

.sp-cart-content .wc-block-components-product-name {
    color: var(--ve-wine-700, #6f0d22);
    font-family: var(--ve-display, "Playfair Display", Georgia, serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 8px;
    padding-right: 18px;
    text-decoration: none;
}

.sp-cart-content .wc-block-components-product-name:hover {
    color: var(--ve-terracotta-600, #a12c2f);
}

.sp-cart-content .wc-block-components-product-metadata,
.sp-cart-content .wc-block-components-product-details {
    color: var(--ve-secondary, #6b5750);
    font-size: 13px;
    line-height: 1.55;
}

.sp-cart-content .wc-block-cart-item__prices {
    color: var(--ve-secondary, #6b5750);
    font-size: 13px;
    margin-top: 8px;
}

.sp-cart-content .wc-block-cart-item__quantity {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    margin-top: 18px;
}

.sp-cart-content .wc-block-cart-item__total {
    align-self: start;
    color: var(--ve-ink, #2b2b2b);
    font-size: 17px;
    font-weight: 700;
    padding: 2px 0 0;
    white-space: nowrap;
}

.sp-cart-content .wc-block-cart-item__total-price-and-sale-badge-wrapper {
    align-items: flex-end;
}

/* WooCommerce switches the cart table to its own grid at narrow container widths. */
.sp-cart-content .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
    grid-template-columns: 116px minmax(0, 1fr) auto;
    padding: 26px 0;
}

.sp-cart-content .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
    grid-column: 1;
    grid-row: 1;
    padding-right: 0;
}

.sp-cart-content .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
    grid-column: 2;
    grid-row: 1;
    padding: 2px 0 0;
}

.sp-cart-content .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity {
    grid-column: 2;
    grid-row: 2;
    padding: 0;
}

.sp-cart-content .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
    grid-column: 3;
    grid-row: 1;
}

.sp-cart-content .wc-block-components-quantity-selector {
    border: 1px solid var(--ve-border, #d8c9bf);
    border-radius: 9px;
    height: 40px;
    margin: 0;
    width: 116px;
}

.sp-cart-content .wc-block-components-quantity-selector::after {
    border: 0;
}

.sp-cart-content .wc-block-components-quantity-selector input,
.sp-cart-content .wc-block-components-quantity-selector button {
    color: var(--ve-ink, #2b2b2b);
    font-family: var(--ve-body, "Inter", Arial, sans-serif);
}

.sp-cart-content .wc-block-cart-item__remove-link {
    align-items: center;
    color: var(--ve-secondary, #6b5750) !important;
    display: inline-flex !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    height: auto !important;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    width: auto !important;
}

.sp-cart-content .wc-block-cart-item__remove-link:hover {
    color: var(--ve-terracotta-600, #a12c2f) !important;
    text-decoration-color: currentColor;
}

.sp-cart-content .wc-block-components-sidebar-layout .wc-block-cart__totals-title {
    color: var(--ve-wine-700, #6f0d22);
    font-family: var(--ve-display, "Playfair Display", Georgia, serif);
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 0;
    margin: 0 0 18px;
    padding: 0;
    text-align: left;
    text-transform: none;
}

.sp-cart-content .wc-block-components-totals-wrapper {
    border-color: var(--ve-border, #d8c9bf);
    padding: 15px 0;
}

.sp-cart-content .wc-block-components-totals-item {
    color: var(--ve-secondary, #6b5750);
    font-size: 14px;
    padding-left: 0;
    padding-right: 0;
}

.sp-cart-content .wc-block-components-totals-footer-item {
    color: var(--ve-wine-700, #6f0d22);
    font-size: 18px;
    font-weight: 700;
}

.sp-cart-content .wc-block-components-totals-coupon-link {
    color: var(--ve-wine-700, #6f0d22);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.sp-cart-content .wc-block-components-totals-coupon-link:hover {
    color: var(--ve-terracotta-600, #a12c2f);
}

.sp-cart-content .wc-block-components-text-input input,
.sp-cart-content .wc-block-components-combobox-control input {
    border-color: var(--ve-border, #d8c9bf);
    border-radius: 8px;
}

.sp-cart-content .wc-block-components-totals-coupon__button {
    background: transparent;
    border: 1px solid var(--ve-wine-700, #6f0d22);
    border-radius: 8px;
    color: var(--ve-wine-700, #6f0d22);
    font-weight: 600;
}

.sp-cart-content .wc-block-cart__submit {
    margin: 20px 0 0;
}

.sp-cart-content .wc-block-cart__submit-button {
    background: var(--ve-terracotta-600, #a12c2f);
    border: 1px solid var(--ve-terracotta-600, #a12c2f);
    border-radius: 9px;
    box-shadow: none;
    color: #fff;
    font-family: var(--ve-body, "Inter", Arial, sans-serif);
    font-size: 15px;
    font-weight: 700;
    min-height: 52px;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.sp-cart-content .wc-block-cart__submit-button:hover {
    background: var(--ve-terracotta-700, #8f2528);
    border-color: var(--ve-terracotta-700, #8f2528);
    color: #fff;
    transform: translateY(-1px);
}

.sp-cart-content .wc-block-components-payment-method-icons {
    justify-content: center;
    margin-top: 14px;
}

.sp-cart-empty {
    display: block;
}

.sp-cart-empty__intro {
    background: var(--ve-surface, #fff);
    border: 1px solid var(--ve-border, #d8c9bf);
    border-radius: 22px;
    box-shadow: var(--ve-shadow-sm, 0 2px 10px rgba(58, 34, 40, .07));
    overflow: hidden;
    padding: 58px 32px 54px;
    position: relative;
    text-align: center;
}

.sp-cart-empty__intro::before,
.sp-cart-empty__intro::after {
    border: 1px solid rgba(111, 13, 34, .1);
    border-radius: 50%;
    content: "";
    height: 210px;
    position: absolute;
    width: 210px;
}

.sp-cart-empty__intro::before {
    left: -122px;
    top: -120px;
}

.sp-cart-empty__intro::after {
    bottom: -142px;
    right: -105px;
}

.sp-cart-empty__icon {
    align-items: center;
    background: var(--ve-bg-alt, #fbf7f3);
    border: 1px solid var(--ve-border, #d8c9bf);
    border-radius: 50%;
    color: var(--ve-wine-700, #6f0d22);
    display: inline-flex;
    font-size: 27px;
    height: 68px;
    justify-content: center;
    margin: 0 0 20px;
    transform: rotate(-8deg);
    width: 68px;
}

.sp-cart-empty__intro h2,
.sp-cart-section-heading h2 {
    color: var(--ve-wine-700, #6f0d22);
    font-family: var(--ve-display, "Playfair Display", Georgia, serif);
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
}

.sp-cart-empty__copy {
    color: var(--ve-secondary, #6b5750);
    font-size: 15px;
    line-height: 1.65;
    margin: 16px auto 0;
    max-width: 570px;
}

.sp-cart-empty__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

.sp-cart-empty__actions .ve-button {
    justify-content: center;
    min-width: 210px;
}

.sp-cart-empty__recommendations {
    margin-top: 64px;
}

.sp-cart-section-heading {
    align-items: flex-end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sp-cart-section-heading h2 {
    font-size: clamp(28px, 3vw, 38px);
}

.sp-cart-section-heading > a {
    color: var(--ve-wine-700, #6f0d22);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.sp-cart-section-heading > a i {
    margin-left: 6px;
    transition: transform .2s ease;
}

.sp-cart-section-heading > a:hover i {
    transform: translateX(3px);
}

.sp-cart-empty__grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sp-cart-empty__grid .ve-catalog-wine-card {
    margin: 0;
    width: auto;
}

.sp-cart-assurances {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
}

.sp-cart-assurances > div {
    align-items: center;
    background: rgba(255, 255, 255, .55);
    border: 1px solid var(--ve-border, #d8c9bf);
    border-radius: 12px;
    display: flex;
    gap: 13px;
    min-height: 74px;
    padding: 13px 16px;
}

.sp-cart-assurances i {
    align-items: center;
    background: var(--ve-surface, #fff);
    border-radius: 50%;
    color: var(--ve-terracotta-600, #a12c2f);
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
}

.sp-cart-assurances span {
    display: grid;
    gap: 3px;
}

.sp-cart-assurances strong {
    color: var(--ve-dark, #3a2228);
    font-size: 13px;
    line-height: 1.3;
}

.sp-cart-assurances small {
    color: var(--ve-secondary, #6b5750);
    font-size: 11px;
    line-height: 1.35;
}

.sp-cart-mobile-bar {
    display: none;
}

.sp-cart-shell :is(a, button, input):focus-visible {
    outline: 3px solid rgba(161, 44, 47, .28);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .sp-cart-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .sp-cart-content .wc-block-components-sidebar-layout {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

    .sp-cart-content .wc-block-cart__main {
        padding-left: 22px;
        padding-right: 22px;
    }

    .sp-cart-content .wc-block-cart__sidebar {
        padding: 22px;
    }
}

@media (max-width: 767px) {
    .woocommerce-cart .sp-cart-page {
        padding-bottom: 96px;
    }

    .woocommerce-cart .sp-cart-page > .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .woocommerce-cart .sp-cart-page .ve-breadcrumbs {
        margin-bottom: 20px;
    }

    .sp-cart-heading {
        gap: 20px;
        margin-bottom: 26px;
    }

    .sp-cart-heading h1 span {
        display: block;
        margin-top: 8px;
    }

    .sp-cart-progress {
        justify-content: space-between;
        width: 100%;
    }

    .sp-cart-progress li {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .sp-cart-progress li:not(:last-child) {
        margin-right: 0;
    }

    .sp-cart-progress li:not(:last-child)::after {
        left: calc(50% + 23px);
        top: 14px;
        width: calc(50vw - 70px);
    }

    .sp-cart-content .wc-block-components-sidebar-layout {
        display: block;
    }

    .sp-cart-content .wc-block-cart__main,
    .sp-cart-content .wc-block-cart__sidebar {
        border-radius: 14px;
    }

    .sp-cart-content .wc-block-cart__main {
        padding: 0 16px;
    }

    .sp-cart-content .wc-block-cart__sidebar {
        margin-top: 16px;
        padding: 22px 18px;
        position: static;
    }

    .sp-cart-content .wc-block-cart-items__row {
        gap: 15px;
        grid-template-columns: 88px minmax(0, 1fr);
        padding: 20px 0;
    }

    .sp-cart-content .wc-block-cart-item__product {
        display: block;
    }

    .sp-cart-content .wc-block-components-product-name {
        font-size: 17px;
        padding-right: 0;
    }

    .sp-cart-content .wc-block-cart-item__prices {
        font-size: 13px;
        margin-top: 8px;
    }

    .sp-cart-content .wc-block-cart-item__total {
        font-size: 15px;
        grid-column: 2;
        padding: 0;
    }

    .sp-cart-content .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
        grid-template-columns: 88px minmax(0, 1fr);
        padding: 20px 0;
    }

    .sp-cart-content .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product,
    .sp-cart-content .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity,
    .sp-cart-content .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
        grid-column: 2;
    }

    .sp-cart-content .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity {
        grid-row: 2;
    }

    .sp-cart-content .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
        grid-row: 3;
    }

    .sp-cart-content .wc-block-cart-item__quantity {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-top: 14px;
    }

    .sp-cart-empty__intro {
        border-radius: 16px;
        padding: 42px 20px 38px;
    }

    .sp-cart-empty__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .sp-cart-empty__actions .ve-button {
        width: 100%;
    }

    .sp-cart-empty__recommendations {
        margin-top: 48px;
    }

    .sp-cart-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .sp-cart-empty__grid {
        gap: 16px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-cart-assurances {
        grid-template-columns: 1fr;
    }

    .sp-cart-mobile-bar:not([hidden]) {
        align-items: center;
        background: rgba(255, 255, 255, .97);
        border-top: 1px solid var(--ve-border, #d8c9bf);
        bottom: 0;
        box-shadow: 0 -8px 24px rgba(58, 34, 40, .11);
        display: flex;
        gap: 14px;
        justify-content: space-between;
        left: 0;
        padding: 12px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
        position: fixed;
        right: 0;
        z-index: 999;
    }

    .sp-cart-mobile-bar > span {
        color: var(--ve-secondary, #6b5750);
        display: grid;
        flex: 0 0 auto;
        font-size: 11px;
        gap: 1px;
    }

    .sp-cart-mobile-bar strong {
        color: var(--ve-wine-700, #6f0d22);
        font-size: 17px;
    }

    .sp-cart-mobile-bar > a {
        align-items: center;
        background: var(--ve-terracotta-600, #a12c2f);
        border-radius: 8px;
        color: #fff;
        display: inline-flex;
        font-size: 14px;
        font-weight: 700;
        justify-content: center;
        min-height: 46px;
        padding: 0 22px;
        text-decoration: none;
    }
}

@media (max-width: 520px) {
    .sp-cart-progress li strong {
        font-size: 10px;
    }

    .sp-cart-progress li:not(:last-child)::after {
        width: calc(50vw - 62px);
    }

    .sp-cart-empty__grid {
        grid-template-columns: 1fr;
    }

    .sp-cart-mobile-bar > a {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-cart-shell *,
    .sp-cart-shell *::before,
    .sp-cart-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
