/* =============================================================================
   Da Chapada — dc-cart.css
   SlideCart drawer + redesigned /cart page
   Tokens: --dc-* defined in dc-global.css
   ============================================================================= */

/* =============================================================================
   SLIDECART DRAWER
   ============================================================================= */

/* Root element — no visual by itself */
#dc-slidecart {
    /* intentionally empty — children handle all visuals */
}

/* Overlay */
.dc-slidecart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 33, 24, 0.45);
    z-index: 997; /* Sits just below fixed bottom navigation bar (999) */
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

#dc-slidecart.is-open .dc-slidecart-overlay {
    opacity: 1;
    pointer-events: all;
}

/* Panel */
.dc-slidecart-panel {
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: 440px;
    background: var(--dc-cream);
    border-left: 1px solid var(--dc-border);
    z-index: 998; /* Sits just below fixed bottom navigation bar (999) to keep navigation visible */
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(0.16, 0.84, 0.36, 1);
}

/* Spinner e Estados de Carregamento AJAX */
.dc-slidecart-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
    z-index: 100;
}
.dc-slidecart-panel.is-loading::after {
    opacity: 1;
    pointer-events: auto;
}
.dc-slidecart-panel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    margin-left: -16px;
    border: 3px solid rgba(90, 58, 38, 0.1);
    border-top-color: var(--dc-sage);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 101;
    animation: dc-spin 0.6s linear infinite;
    transition: opacity 200ms ease;
}
.dc-slidecart-panel.is-loading::before {
    opacity: 1;
}

@keyframes dc-spin {
    to { transform: rotate(360deg); }
}

.dc-slidecart-body {
    transition: opacity 200ms ease;
}
.dc-slidecart-panel.is-loading .dc-slidecart-body {
    opacity: 0.55;
    pointer-events: none;
}

#dc-slidecart.is-open .dc-slidecart-panel {
    transform: translateX(0);
}

/* Lock body scroll when open */
body.dc-cart-open {
    overflow: hidden;
}

/* Esconder sticky bar do PDP quando o cart está aberto */
body.dc-cart-open .dc-sticky-bar {
    display: none !important;
}

/* ── Head ── */
.dc-slidecart-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--dc-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dc-slidecart-head-inner {
    flex: 1;
    min-width: 0;
}

.dc-slidecart-title {
    font-family: var(--dc-font-display);
    font-size: 26px;
    line-height: 1;
    color: var(--dc-cacau-deep);
    display: block;
}

.dc-slidecart-title em {
    font-style: italic;
}

.dc-slidecart-count-badge {
    font-family: var(--dc-font-wm);
    font-size: 13px;
    color: var(--dc-fg3);
    font-weight: 700;
}

.dc-slidecart-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dc-cacau-deep);
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 150ms ease;
}

.dc-slidecart-close:hover {
    background: var(--dc-cream-deep);
}

/* ── Ship bar ── */
.dc-slidecart-ship {
    padding: 12px 20px;
    background: var(--dc-cream-soft);
    border-bottom: 1px solid var(--dc-border);
    flex-shrink: 0;
}

.dc-slidecart-ship:empty {
    display: none;
}

.dc-slidecart-ship-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--dc-font-wm);
    font-size: 15px;
    font-weight: 700;
    color: var(--dc-cacau-deep);
    gap: 8px;
}

.dc-slidecart-ship-text {
    font-size: 15px;
}

.dc-slidecart-ship-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dc-slidecart-ship-text strong {
    color: var(--dc-sage-deep);
}

.dc-slidecart-progress {
    margin-top: 8px;
    height: 6px;
    border-radius: var(--dc-r-pill);
    background: var(--dc-cream-deep);
    overflow: hidden;
}

.dc-slidecart-progress-bar {
    height: 100%;
    background: var(--dc-sage-deep);
    border-radius: var(--dc-r-pill);
    transition: width 240ms ease;
}

/* ── Body ── */
.dc-slidecart-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.dc-slidecart-items {
    /* container only */
}

/* ── Empty state ── */
.dc-slidecart-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
}

.dc-slidecart-empty-sun {
    width: 64px;
    height: 64px;
    color: var(--dc-tropical);
    animation: dc-spin 12s linear infinite;
}

@keyframes dc-spin {
    to {
        transform: rotate(360deg);
    }
}

.dc-slidecart-empty-title {
    font-family: var(--dc-font-display);
    font-size: 28px;
    color: var(--dc-cacau-deep);
    line-height: 1.1;
    margin-top: 20px;
}

.dc-slidecart-empty-title em {
    font-style: italic;
}

.dc-slidecart-empty-sub {
    font-size: 14px;
    color: var(--dc-fg2);
    margin-top: 8px;
}

/* ── Items list ── */
.dc-slidecart-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dc-slidecart-item {
    padding: 16px;
    border-bottom: 1px solid var(--dc-border);
    display: flex;
    gap: 12px;
}

.dc-slidecart-item-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--dc-r-lg);
    border: 1px solid var(--dc-border);
    background: var(--dc-cream-deep);
    overflow: hidden;
}

.dc-slidecart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dc-slidecart-item-body {
    flex: 1;
    min-width: 0;
}

.dc-slidecart-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.dc-slidecart-item-name {
    font-family: var(--dc-font-display);
    font-size: 16px;
    color: var(--dc-cacau-deep);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 150ms ease;
}

.dc-slidecart-item-name:hover {
    color: var(--dc-sage-deep);
}

.dc-slidecart-item-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dc-fg3);
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 150ms ease, background 150ms ease;
    text-decoration: none;
}

.dc-slidecart-item-remove:hover {
    color: var(--dc-cranberry);
    background: var(--dc-cream-deep);
}

.dc-slidecart-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.dc-slidecart-tag {
    font-family: var(--dc-font-wm);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--dc-cream-deep);
    padding: 2px 8px;
    border-radius: var(--dc-r-pill);
}

.dc-slidecart-tag--flavor {
    color: var(--dc-sage-deep);
}

.dc-slidecart-tag--size {
    color: var(--dc-cacau-deep);
}

.dc-slidecart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

/* ── Small stepper (slidecart) ── */
.dc-stepper-sm {
    display: inline-flex;
    align-items: center;
    height: 28px;
    border-radius: var(--dc-r-pill);
    border: 1px solid rgba(90, 58, 38, 0.5);
    background: var(--dc-cream);
    overflow: hidden;
}

.dc-stepper-sm button {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dc-cacau-deep);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background 150ms ease;
}

.dc-stepper-sm button:first-child {
    border-radius: var(--dc-r-pill) 0 0 var(--dc-r-pill);
}

.dc-stepper-sm button:last-child {
    border-radius: 0 var(--dc-r-pill) var(--dc-r-pill) 0;
}

.dc-stepper-sm button:hover {
    background: var(--dc-cream-deep);
}

.dc-stepper-sm span {
    font-family: var(--dc-font-display);
    font-size: 14px;
    color: var(--dc-cacau-deep);
    width: 24px;
    text-align: center;
}

.dc-slidecart-item-price {
    font-family: var(--dc-font-display);
    font-size: 16px;
    color: var(--dc-cacau-deep);
}

/* ── Cross-sell ── */
.dc-slidecart-xsell {
    padding: 20px 16px;
    background: var(--dc-cream-soft);
    border-top: 1px solid var(--dc-border);
}

.dc-slidecart-xsell-eyebrow {
    font-family: var(--dc-font-wm);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dc-cacau-deep);
    margin-bottom: 12px;
}

.dc-slidecart-xsell-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-inline: -16px;
    padding-inline: 16px;
    scrollbar-width: none;
}

.dc-slidecart-xsell-list::-webkit-scrollbar {
    display: none;
}

.dc-slidecart-xsell-card {
    flex-shrink: 0;
    width: 120px;
    border-radius: var(--dc-r-md);
    background: var(--dc-cream);
    border: 1px solid var(--dc-border);
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: border-color 150ms ease;
}

.dc-slidecart-xsell-card:hover {
    border-color: var(--dc-sage-deep);
}

.dc-slidecart-xsell-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--dc-cream-deep);
}

.dc-slidecart-xsell-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dc-slidecart-xsell-card-body {
    padding: 8px;
}

.dc-slidecart-xsell-card-name {
    font-family: var(--dc-font-display);
    font-size: 12px;
    color: var(--dc-cacau-deep);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dc-slidecart-xsell-card-price {
    font-family: var(--dc-font-display);
    font-size: 13px;
    color: var(--dc-cacau-deep);
    margin-top: 2px;
}

/* ── Footer ── */
.dc-slidecart-foot {
    flex-shrink: 0;
    background: var(--dc-cacau-deep);
    color: var(--dc-cream);
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 767px) {
    .dc-slidecart-foot {
        /* Extra padding to lift the content and checkout button completely above the mobile bottom bar (64px) */
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }
}

.dc-slidecart-foot:empty {
    display: none;
}

.dc-slidecart-subtotal-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.dc-slidecart-subtotal-label {
    font-family: var(--dc-font-wm);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(241, 233, 214, 0.65);
}

.dc-slidecart-subtotal-note {
    font-family: var(--dc-font-wm);
    font-size: 12px;
    color: rgba(241, 233, 214, 0.5);
    margin-top: 2px;
}

.dc-slidecart-subtotal-value {
    font-family: var(--dc-font-display);
    font-size: 28px;
    line-height: 1;
    color: var(--dc-cream);
}

.dc-slidecart-subtotal-value .woocommerce-Price-amount,
.dc-slidecart-subtotal-value .amount {
    color: var(--dc-cream);
}

.dc-slidecart-btn-checkout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--dc-tropical);
    color: var(--dc-cream);
    font-family: var(--dc-font-wm);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 14px;
    border-radius: var(--dc-r-pill);
    margin-top: 16px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 150ms ease;
}

.dc-slidecart-btn-checkout:hover {
    opacity: 0.93;
    color: var(--dc-cream);
}

.dc-slidecart-btn-view {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(241, 233, 214, 0.25);
    color: var(--dc-cream);
    font-family: var(--dc-font-wm);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 12px;
    border-radius: var(--dc-r-pill);
    margin-top: 8px;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 150ms ease;
}

.dc-slidecart-btn-view:hover {
    background: rgba(241, 233, 214, 0.1);
    color: var(--dc-cream);
}

.dc-slidecart-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    font-family: var(--dc-font-wm);
    font-size: 12px;
    color: rgba(241, 233, 214, 0.65);
    flex-wrap: wrap;
}

/* =============================================================================
   CART PAGE
   ============================================================================= */

/* Container overrides */
body.woocommerce-cart .dc-page-main {
    padding: 0;
}

body.woocommerce-cart .dc-container {
    max-width: 1440px;
    padding-inline: 20px;
    padding-top: 0;
    padding-bottom: 60px;
}

@media (min-width: 1024px) {
    body.woocommerce-cart .dc-container {
        padding-inline: 40px;
        padding-top: 0;
        padding-bottom: 80px;
    }
}

/* Hide WordPress page title injected by index.php wrapper */
body.woocommerce-cart article > h1:first-child {
    display: none;
}

/* Remove article/content default spacing */
body.woocommerce-cart article {
    margin: 0;
    padding: 0;
}

body.woocommerce-cart .dc-content {
    margin: 0;
    padding: 0;
}

/* Hide WooCommerce default empty cart message (we have our own) */
body.woocommerce-cart .wc-empty-cart-message {
    display: none;
}

/* WC notices */
body.woocommerce-cart .woocommerce-notices-wrapper {
    margin-bottom: 16px;
}

/* Hide WC default breadcrumb */
.woocommerce-cart .woocommerce-breadcrumb {
    display: none;
}

/* Hide WC default update button */
.dc-cart-update-hidden {
    display: none;
}

/* ── Breadcrumb ── */
.dc-cart-breadcrumb {
    border-bottom: 1px solid var(--dc-border);
    margin-bottom: 0;
}

.dc-cart-breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--dc-font-wm);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dc-fg3);
    padding-block: 12px;
}

.dc-cart-breadcrumb-inner a {
    color: var(--dc-fg3);
    text-decoration: none;
    transition: color 150ms ease;
}

.dc-cart-breadcrumb-inner a:hover {
    color: var(--dc-cacau-deep);
}

.dc-cart-breadcrumb-current {
    color: var(--dc-cacau-deep);
}

/* ── Page head ── */
.dc-cart-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
    margin-bottom: 32px;
}

.dc-cart-page-title {
    font-family: var(--dc-font-display);
    font-size: clamp(40px, 5.4vw, 72px);
    color: var(--dc-cacau-deep);
    line-height: 1;
    margin: 0;
}

.dc-cart-page-title em {
    font-style: italic;
}

.dc-cart-page-count {
    font-family: var(--dc-font-wm);
    font-size: 14px;
    color: var(--dc-fg2);
    font-weight: 700;
}

/* ── Grid layout ── */
.dc-cart-grid {
    display: grid;
    gap: 32px;
}

/* Prevent cross-sell negative-margin from overflowing the viewport */
.dc-cart-left {
    overflow-x: clip;
    min-width: 0;
}

@media (min-width: 1024px) {
    .dc-cart-grid {
        grid-template-columns: 1.4fr 1fr;
        gap: 48px;
        align-items: start;
    }
}

/* ── Free ship bar (cart page) ── */
.dc-cart-ship-bar {
    border-radius: var(--dc-r-lg);
    background: var(--dc-cream-soft);
    border: 1px solid var(--dc-border);
    padding: 16px;
    margin-bottom: 24px;
}

.dc-cart-ship-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--dc-font-wm);
    font-size: 15px;
    color: var(--dc-cacau-deep);
    font-weight: 700;
}

.dc-cart-ship-text {
    font-size: 15px;
}

.dc-cart-ship-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dc-cart-ship-text strong {
    color: var(--dc-sage-deep);
}

.dc-cart-ship-progress {
    margin-top: 8px;
    height: 8px;
    border-radius: var(--dc-r-pill);
    background: var(--dc-cream-deep);
    overflow: hidden;
}

.dc-cart-ship-progress-bar {
    height: 100%;
    background: var(--dc-sage-deep);
    border-radius: var(--dc-r-pill);
    transition: width 240ms ease;
}

/* ── Cart item (class names usados pelo cart.php) ── */
.dc-cart-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: var(--dc-r-xl);
    border: 1px solid var(--dc-border);
    overflow: hidden;
    background: var(--dc-cream);
}

.dc-cart-item {
    display: grid;
    /* mobile: thumb | (info + remove) — segunda linha: qty + subtotal */
    grid-template-areas:
        "thumb info remove"
        "thumb qty  sub";
    grid-template-columns: 80px 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 14px;
    padding: 16px;
    border-bottom: 1px solid var(--dc-border);
}

.dc-cart-item:last-child {
    border-bottom: none;
}

@media (min-width: 640px) {
    .dc-cart-item {
        grid-template-columns: 96px 1fr auto;
        gap: 10px 16px;
        padding: 20px;
    }
}

.dc-cart-item-thumb {
    grid-area: thumb;
    align-self: start;
    width: 80px;
    height: 80px;
    border-radius: var(--dc-r-lg);
    border: 1px solid var(--dc-border);
    background: var(--dc-cream-deep);
    overflow: hidden;
}

@media (min-width: 640px) {
    .dc-cart-item-thumb { width: 96px; height: 96px; }
}

.dc-cart-item-thumb img,
.dc-cart-item-thumb a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dc-cart-item-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.dc-cart-item-info {
    grid-area: info;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-self: start;
}

.dc-cart-item-line {
    font-family: var(--dc-font-wm);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dc-sage-deep);
}

.dc-cart-item-name {
    font-family: var(--dc-font-display);
    font-size: 17px;
    color: var(--dc-cacau-deep);
    line-height: 1.2;
}

.dc-cart-item-name a {
    color: inherit;
    text-decoration: none;
}

.dc-cart-item-price {
    font-family: var(--dc-font-wm);
    font-size: 14px;
    color: var(--dc-fg2);
    margin-top: 2px;
}

.dc-cart-item-qty {
    grid-area: qty;
    align-self: center;
}

.dc-cart-item-subtotal {
    grid-area: sub;
    align-self: center;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.dc-cart-item-subtotal-label {
    font-family: var(--dc-font-wm);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dc-fg3);
}

.dc-cart-item-subtotal-val {
    font-family: var(--dc-font-display);
    font-size: 18px;
    color: var(--dc-cacau-deep);
}

.dc-cart-item-remove {
    grid-area: remove;
    align-self: start;
    justify-self: end;
}

/* ── Items list ── */
.dc-cart-items-wrap {
    border-radius: var(--dc-r-xl);
    border: 1px solid var(--dc-border);
    overflow: hidden;
    background: var(--dc-cream);
}

.dc-cart-item-v2 {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--dc-border);
}

.dc-cart-item-v2:last-child {
    border-bottom: none;
}

@media (min-width: 640px) {
    .dc-cart-item-v2 {
        padding: 20px;
    }
}

/* Item thumb */
.dc-cart-item-thumb-v2 {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--dc-r-lg);
    border: 1px solid var(--dc-border);
    background: var(--dc-cream-deep);
    overflow: hidden;
}

@media (min-width: 640px) {
    .dc-cart-item-thumb-v2 {
        width: 96px;
        height: 96px;
    }
}

.dc-cart-item-thumb-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.dc-cart-item-thumb-v2:hover img {
    transform: scale(1.04);
}

/* Item body */
.dc-cart-item-body-v2 {
    flex: 1;
    min-width: 0;
}

.dc-cart-item-top-v2 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dc-cart-item-info-col {
    flex: 1;
    min-width: 0;
}

.dc-cart-item-name-v2 {
    font-family: var(--dc-font-display);
    font-size: 20px;
    color: var(--dc-cacau-deep);
    text-decoration: none;
    transition: color 150ms ease;
    line-height: 1.2;
}

.dc-cart-item-name-v2:hover {
    color: var(--dc-sage-deep);
}

.dc-cart-item-tags-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.dc-cart-item-remove-v2 {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dc-fg3);
    background: transparent;
    text-decoration: none;
    flex-shrink: 0;
    transition: color 150ms ease, background 150ms ease;
}

.dc-cart-item-remove-v2:hover {
    color: var(--dc-cranberry);
    background: var(--dc-cream-deep);
}

.dc-cart-item-foot-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

/* ── Cart page stepper override ── */
/* Uses dc-qty-stepper from dc-woo.css, we override sizing here */
.dc-cart-item-qty .dc-qty-stepper,
.dc-stepper-cart.dc-qty-stepper {
    height: 38px;
    width: 120px;
    background: var(--dc-cream-soft);
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-r-pill);
    display: inline-flex;
    align-items: center;
    overflow: hidden;
}

.dc-cart-item-qty .dc-qty-stepper .dc-qty-btn,
.dc-stepper-cart .dc-qty-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--dc-cacau-deep);
    background: transparent;
    cursor: pointer;
    transition: background var(--dc-fast) ease;
}

.dc-cart-item-qty .dc-qty-stepper .dc-qty-btn:hover,
.dc-stepper-cart .dc-qty-btn:hover {
    background: var(--dc-cream-deep);
}

.dc-cart-item-qty .dc-qty-stepper .dc-qty-input,
.dc-stepper-cart .dc-qty-input {
    font-size: 16px;
    width: 44px;
    height: 100%;
    background: transparent;
    border: none;
    text-align: center;
    font-family: var(--dc-font-display);
    color: var(--dc-cacau-deep);
}

/* ── Price column ── */
.dc-cart-item-price-col {
    text-align: right;
    flex-shrink: 0;
}

.dc-cart-item-total-v2 {
    font-family: var(--dc-font-display);
    font-size: 20px;
    color: var(--dc-cacau-deep);
    line-height: 1;
}

.dc-cart-item-total-v2 .woocommerce-Price-amount,
.dc-cart-item-total-v2 .amount {
    color: var(--dc-cacau-deep);
}

.dc-cart-item-unit-v2 {
    font-family: var(--dc-font-wm);
    font-size: 13px;
    color: var(--dc-fg3);
    margin-top: 4px;
}

/* ── Coupon + CEP forms ── */
.dc-cart-forms {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
}

@media (min-width: 640px) {
    .dc-cart-forms {
        grid-template-columns: 1fr 1fr;
    }
}

.dc-cart-form-card {
    border-radius: var(--dc-r-lg);
    border: 1px solid var(--dc-border);
    background: var(--dc-cream-soft);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dc-cart-form-card input,
.dc-cart-form-input {
    flex: 1;
    background: transparent;
    border: none;
    font-family: var(--dc-font-wm);
    font-size: 16px; /* ≥16px evita auto-zoom no iOS Safari */
    color: var(--dc-cacau-deep);
    outline: none;
    padding: 8px 0;
    min-width: 0;
}

.dc-cart-form-card input::placeholder,
.dc-cart-form-input::placeholder {
    color: var(--dc-fg3);
}

.dc-cart-form-btn {
    font-family: var(--dc-font-wm);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dc-cacau-deep);
    padding: 8px 14px;
    border-radius: var(--dc-r-pill);
    border: 1px solid var(--dc-border);
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background 150ms ease;
}

.dc-cart-form-btn:hover {
    background: var(--dc-cream-deep);
}

/* Backorder note */
.dc-cart-backorder {
    font-family: var(--dc-font-wm);
    font-size: 12px;
    color: var(--dc-fg3);
    margin-top: 4px;
}

/* Sold individually display */
.dc-stepper-cart-solo {
    font-family: var(--dc-font-display);
    font-size: 16px;
    color: var(--dc-cacau-deep);
}

/* ── Cross-sell (cart page) ── */
.dc-cart-xsell-section {
    margin-top: 48px;
}

.dc-cart-xsell-title {
    font-family: var(--dc-font-display);
    font-size: 28px;
    color: var(--dc-cacau-deep);
    margin-bottom: 20px;
    line-height: 1.1;
}

.dc-cart-xsell-title em {
    font-style: italic;
}

.dc-cart-xsell-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-inline: -20px;
    padding-inline: 20px;
    scrollbar-width: none;
}

.dc-cart-xsell-list::-webkit-scrollbar {
    display: none;
}

.dc-cart-xsell-card {
    flex-shrink: 0;
    width: 180px;
    border-radius: 16px;
    background: var(--dc-cream);
    border: 1px solid var(--dc-border);
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: border-color 150ms ease;
}

.dc-cart-xsell-card:hover {
    border-color: var(--dc-sage-deep);
}

.dc-cart-xsell-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--dc-cream-deep);
}

.dc-cart-xsell-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dc-cart-xsell-card-body {
    padding: 12px;
}

.dc-cart-xsell-card-name {
    font-family: var(--dc-font-display);
    font-size: 14px;
    color: var(--dc-cacau-deep);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dc-cart-xsell-card-price {
    font-family: var(--dc-font-display);
    font-size: 16px;
    color: var(--dc-cacau-deep);
    margin-top: 4px;
}

.dc-cart-xsell-card-price .amount {
    color: var(--dc-cacau-deep);
}

/* ── Summary sidebar ── */
/* No mobile ocultamos o card de resumo pois o sticky CTA já mostra o total */
.dc-cart-summary-col {
    position: static;
    display: none;
}

@media (min-width: 1024px) {
    .dc-cart-summary-col {
        display: block;
        position: sticky;
        top: 110px;
    }
}

.dc-cart-summary {
    border-radius: var(--dc-r-xl);
    background: var(--dc-cacau-deep);
    color: var(--dc-cream);
    padding: 24px;
    box-shadow: var(--dc-shadow-3);
}

@media (min-width: 1024px) {
    .dc-cart-summary {
        padding: 28px;
    }
}

.dc-cart-summary-eyebrow {
    font-family: var(--dc-font-wm);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--dc-tropical);
    margin-bottom: 16px;
}

.dc-cart-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.dc-cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.dc-cart-summary-row-label {
    color: rgba(241, 233, 214, 0.7);
}

.dc-cart-summary-row-value {
    color: var(--dc-cream);
}

.dc-cart-summary-row-value .amount {
    color: var(--dc-cream);
}

.dc-cart-summary-row-value--accent {
    color: var(--dc-tropical);
}

.dc-cart-summary-divider {
    border: none;
    border-top: 1px solid rgba(241, 233, 214, 0.15);
    margin-block: 20px;
}

.dc-cart-summary-total-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.dc-cart-summary-total-label {
    font-family: var(--dc-font-wm);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(241, 233, 214, 0.7);
}

.dc-cart-summary-total-value {
    font-family: var(--dc-font-display);
    font-size: 36px;
    line-height: 1;
}

.dc-cart-summary-total-value .amount {
    color: var(--dc-cream);
}

.dc-cart-summary-installments {
    text-align: right;
    font-family: var(--dc-font-wm);
    font-size: 12px;
    color: rgba(241, 233, 214, 0.6);
    margin-top: 4px;
}

.dc-cart-btn-checkout-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--dc-tropical);
    color: var(--dc-cream);
    font-family: var(--dc-font-wm);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 16px;
    border-radius: var(--dc-r-pill);
    margin-top: 20px;
    text-decoration: none;
    transition: opacity 150ms ease;
}

.dc-cart-btn-checkout-link:hover {
    opacity: 0.93;
    color: var(--dc-cream);
}

.dc-cart-summary-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-family: var(--dc-font-wm);
    font-size: 12px;
    color: rgba(241, 233, 214, 0.65);
    flex-wrap: wrap;
}

/* ── WhatsApp block ── */
.dc-cart-whatsapp {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    border-radius: var(--dc-r-lg);
    background: var(--dc-cream-soft);
    border: 1px solid var(--dc-border);
    padding: 16px;
    text-decoration: none;
    transition: border-color 150ms ease;
}

.dc-cart-whatsapp:hover {
    border-color: var(--dc-sage-deep);
}

.dc-cart-whatsapp-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dc-sage-deep);
    color: var(--dc-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dc-cart-whatsapp-title {
    font-family: var(--dc-font-display);
    font-size: 16px;
    color: var(--dc-cacau-deep);
    line-height: 1;
}

.dc-cart-whatsapp-sub {
    font-family: var(--dc-font-wm);
    font-size: 13px;
    color: var(--dc-fg3);
    margin-top: 4px;
}

/* ── Continue link ── */
.dc-cart-continue-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-family: var(--dc-font-wm);
    font-size: 13px;
    color: var(--dc-cacau-deep);
    text-decoration: none;
    transition: color 150ms ease;
}

.dc-cart-continue-link:hover {
    color: var(--dc-sage-deep);
}

/* ── Empty state (cart page) ── */
.dc-cart-empty-v2 {
    margin-top: 48px;
    max-width: 560px;
    margin-inline: auto;
    text-align: center;
    background: var(--dc-cream-soft);
    border: 1px solid var(--dc-border);
    border-radius: 28px;
    padding: 40px;
}

@media (min-width: 1024px) {
    .dc-cart-empty-v2 {
        padding: 56px;
    }
}

.dc-cart-empty-sun-v2 {
    display: block;
    width: 84px;
    height: 84px;
    color: var(--dc-tropical);
    animation: dc-spin 12s linear infinite;
    margin-inline: auto;
}

.dc-cart-empty-title-v2 {
    font-family: var(--dc-font-display);
    font-size: 40px;
    color: var(--dc-cacau-deep);
    line-height: 1.1;
    margin-top: 24px;
}

.dc-cart-empty-title-v2 em {
    font-style: italic;
}

.dc-cart-empty-lead-v2 {
    font-size: 15px;
    color: var(--dc-fg2);
    margin-top: 12px;
}

.dc-cart-empty-ctas-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 28px;
}

/* ── Mobile sticky CTA ── */
.dc-cart-sticky-cta {
    display: none;
}

@media (max-width: 640px) {
    /* Espaço para não ficar atrás do sticky CTA */
    .dc-cart-left {
        padding-bottom: 80px;
    }

    .dc-cart-sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px 16px;
        background: var(--dc-cacau-deep);
        z-index: 40;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

.dc-cart-sticky-cta a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--dc-tropical);
    color: var(--dc-cream);
    font-family: var(--dc-font-wm);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 14px;
    border-radius: var(--dc-r-pill);
    text-decoration: none;
    transition: opacity 150ms ease;
}

.dc-cart-sticky-cta a:hover {
    opacity: 0.93;
}

/* =============================================================================
   CUSTOM DISCOUNT PROGRESSIVE HIGHLIGHTS (SLIDECART DRAWER)
   ============================================================================= */

.dc-slidecart-discount-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--dc-font-wm);
    font-size: 12px;
    font-weight: 700;
    color: var(--dc-sage-deep);
    background: rgba(117, 137, 114, 0.12); /* light sage tint */
    padding: 4px 10px;
    border-radius: var(--dc-r-pill);
    margin-top: 8px;
    letter-spacing: 0.02em;
}

.dc-slidecart-discount-suggestion {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-family: var(--dc-font-wm);
    font-size: 12px;
    color: var(--dc-fg2);
    background: rgba(220, 163, 62, 0.08); /* light gold tint */
    border: 1px dashed rgba(220, 163, 62, 0.4);
    padding: 8px 10px;
    border-radius: var(--dc-r-md);
    margin-top: 8px;
    line-height: 1.3;
}

.dc-slidecart-discount-suggestion svg {
    color: #cca43b;
    margin-top: 2px;
    flex-shrink: 0;
}

.dc-slidecart-discount-suggestion strong {
    color: var(--dc-cacau-deep);
    font-weight: 700;
}

/* Dynamic Slidecart Toast Notification */
.dc-slidecart-toast {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    background: var(--dc-cacau-deep);
    color: var(--dc-cream);
    border-radius: var(--dc-r-lg);
    box-shadow: 0 8px 30px rgba(45, 33, 24, 0.16);
    padding: 12px 16px;
    z-index: 110;
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
    transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1), 
                transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    border: 1px solid rgba(241, 233, 214, 0.1);
}

.dc-slidecart-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dc-slidecart-toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--dc-font-wm);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.dc-slidecart-toast-content svg {
    color: var(--dc-tropical);
    flex-shrink: 0;
}

/* Responsive adjustments for mobile screens */
@media (max-width: 440px) {
    .dc-slidecart-discount-badge {
        font-size: 11px;
        padding: 3px 8px;
        margin-top: 6px;
        line-height: 1.2;
    }
    
    .dc-slidecart-discount-suggestion {
        font-size: 11px;
        padding: 6px 8px;
        margin-top: 6px;
        line-height: 1.25;
        gap: 4px;
    }
    
    .dc-slidecart-discount-suggestion svg {
        width: 10px;
        height: 10px;
        margin-top: 2px;
    }
    
    .dc-slidecart-toast {
        top: 48px;
        left: 12px;
        right: 12px;
        padding: 10px 12px;
        border-radius: var(--dc-r-md);
    }
    
    .dc-slidecart-toast-content {
        font-size: 11px;
        gap: 6px;
    }
    
    .dc-slidecart-toast-content svg {
        width: 14px;
        height: 14px;
    }
}
