/* Custom Uruimporta Mini Cart (uc-* Design System) */
.cart-widget-side {
    width: 440px !important;
    max-width: 100% !important;
    background: #ffffff !important;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.25) !important;
    padding: 0 !important;
}

.cart-widget-side > .wd-heading {
    display: none !important;
}

.cart-widget-side .widget_shopping_cart {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.cart-widget-side .widget_shopping_cart_content,
.cart-widget-side .uc-wrap {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    font-family: 'Open Sans', sans-serif !important;
    color: #0d1b2e !important;
    background: #ffffff !important;
}

.uc-wrap * {
    box-sizing: border-box !important;
}

.uc-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 26px 28px 22px !important;
    border-bottom: 1px solid #edf0f4 !important;
    flex-shrink: 0 !important;
}

.uc-title {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.uc-title h2 {
    margin: 0 !important;
    font: 800 26px/1 'Nunito Sans', sans-serif !important;
    color: #0d1b2e !important;
    text-transform: none !important;
}

.uc-count {
    background: #e8eef7 !important;
    color: #133b6b !important;
    font: 800 12px/1 'Nunito Sans', sans-serif !important;
    padding: 5px 9px !important;
    border-radius: 999px !important;
}

.uc-close {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #f3f5f8 !important;
    font-size: 16px !important;
    color: #0d1b2e !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.uc-close:hover {
    background: #e6eaf0 !important;
}

.uc-list {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    padding: 8px 28px !important;
}

.uc-empty {
    padding: 64px 16px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    color: #5b6678 !important;
    font-size: 14px !important;
}

.uc-item {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 16px !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid #edf0f4 !important;
    transition: opacity 0.15s ease !important;
}

.uc-item.is-updating {
    opacity: 0.45 !important;
    pointer-events: none !important;
}

.uc-img {
    width: 76px !important;
    height: 76px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    background: #f1f3f7 !important;
    display: block !important;
}

.uc-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-width: 0 !important;
}

.uc-top {
    display: flex !important;
    gap: 6px !important;
    align-items: flex-start !important;
}

.uc-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.uc-name {
    font: 800 15px/1.25 'Nunito Sans', sans-serif !important;
    color: #0d1b2e !important;
    text-decoration: none !important;
    display: block !important;
}

.uc-name:hover {
    color: #133b6b !important;
}

.uc-sku {
    font: 600 11px ui-monospace, Menlo, monospace !important;
    color: #7a8597 !important;
    letter-spacing: 0.04em !important;
}

.uc-oferta {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font: 600 11px/1.3 'Open Sans', sans-serif !important;
    color: #a35200 !important;
}

.uc-oferta b {
    background: #a35200 !important;
    color: #ffffff !important;
    font: 800 9px/1 'Nunito Sans', sans-serif !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 4px 6px !important;
    border-radius: 5px !important;
}

.uc-ship {
    align-self: flex-start !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-top: 2px !important;
    background: #eef1f5 !important;
    color: #4a5568 !important;
    font: 800 10px/1 'Nunito Sans', sans-serif !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    padding: 5px 9px !important;
    border-radius: 999px !important;
}

.uc-ship.free {
    background: #e7f6ec !important;
    color: #17713a !important;
}

.uc-remove {
    flex: none !important;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #8a93a3 !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.uc-remove:hover {
    background: #fdecec !important;
    color: #c0392b !important;
}

.uc-row {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

.uc-qty {
    display: flex !important;
    align-items: center !important;
    border: 1.5px solid #dfe4eb !important;
    border-radius: 999px !important;
    height: 38px !important;
    background: #ffffff !important;
}

.uc-qty button {
    width: 38px !important;
    height: 100% !important;
    border: 0 !important;
    background: transparent !important;
    font: 700 18px 'Nunito Sans', sans-serif !important;
    color: #133b6b !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.uc-qty button:hover {
    background: #f0f3f7 !important;
}

.uc-qty span,
.uc-qty input.uc-qty-input {
    width: 42px !important;
    min-width: 34px !important;
    height: 35px !important;
    min-height: 0 !important;
    max-height: 35px !important;
    line-height: 35px !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 2px !important;
    margin: 0 !important;
    text-align: center !important;
    font: 800 14px/35px 'Nunito Sans', sans-serif !important;
    color: #0d1b2e !important;
    -webkit-text-fill-color: #0d1b2e !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    position: relative !important;
    z-index: 2 !important;
    outline: none !important;
    box-shadow: none !important;
}

.uc-price {
    text-align: right !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 3px !important;
}

.uc-total {
    font: 800 18px/1 'Nunito Sans', sans-serif !important;
    color: #0d1b2e !important;
}

.uc-detail {
    font: 500 11px 'Open Sans', sans-serif !important;
    color: #7a8597 !important;
}

.uc-detail s {
    color: #a3abb8 !important;
    margin-right: 5px !important;
}

.uc-desc {
    background: #e8eef7 !important;
    color: #133b6b !important;
    font: 800 10px/1 'Nunito Sans', sans-serif !important;
    padding: 4px 7px !important;
    border-radius: 6px !important;
}

.uc-desc.vol {
    background: #fdf0e1 !important;
    color: #a35200 !important;
}

.uc-foot {
    padding: 20px 28px 28px !important;
    border-top: 1px solid #edf0f4 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    background: #fbfcfd !important;
    flex-shrink: 0 !important;
}

.uc-sub {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
}

.uc-sub span:first-child {
    font: 700 15px 'Nunito Sans', sans-serif !important;
    color: #5b6678 !important;
}

.uc-sub span:last-child,
.uc-sub span:last-child .amount {
    font: 900 24px 'Nunito Sans', sans-serif !important;
    color: #0d1b2e !important;
}

.uc-cta {
    height: 56px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #133b6b !important;
    color: #ffffff !important;
    font: 800 15px 'Nunito Sans', sans-serif !important;
    letter-spacing: 0.08em !important;
    box-shadow: 0 8px 20px rgba(19, 59, 107, 0.28) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    width: 100% !important;
}

.uc-cta:hover,
.uc-cta:active {
    background: #0e2d53 !important;
    color: #ffffff !important;
}

@media (max-width: 480px) {
    .uc-head {
        padding: 20px 18px 16px !important;
    }
    .uc-list {
        padding: 4px 18px !important;
    }
    .uc-foot {
        padding: 16px 18px 22px !important;
    }
}

/* Stock Limit Modal for Mini Cart */
#uc-stock-modal.uc-stock-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

#uc-stock-modal.uc-stock-modal.is-open {
    display: flex !important;
}

#uc-stock-modal .uc-stock-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(8, 15, 28, 0.55) !important;
    backdrop-filter: blur(3px) !important;
}

#uc-stock-modal .uc-stock-card {
    position: relative !important;
    width: 100% !important;
    max-width: 380px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 26px 24px 22px !important;
    text-align: center !important;
    box-shadow: 0 24px 60px rgba(8, 15, 28, 0.3) !important;
    font-family: 'Open Sans', sans-serif !important;
}

#uc-stock-modal .uc-stock-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 24px !important;
    background: #fff6e5 !important;
    color: #a35200 !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 auto 14px !important;
}

#uc-stock-modal .uc-stock-title {
    margin: 0 0 8px !important;
    font: 800 18px/1.25 'Nunito Sans', sans-serif !important;
    color: #0d1b2e !important;
}

#uc-stock-modal .uc-stock-msg {
    margin: 0 0 20px !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    color: #5b6678 !important;
}

#uc-stock-modal .uc-stock-accept {
    width: 100% !important;
    height: 46px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #133b6b !important;
    color: #ffffff !important;
    font: 800 13.5px 'Nunito Sans', sans-serif !important;
    letter-spacing: 0.06em !important;
    cursor: pointer !important;
}

#uc-stock-modal .uc-stock-accept:hover {
    background: #0e2d53 !important;
}
