/* HT Cart: side panel ("sacola") and header badge */

.elementor-widget-woocommerce-cart { display: none !important; }

#botao-sacola { position: relative; overflow: visible; }
body.ht-tem-itens #botao-sacola::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    background: #e53935;
    border-radius: 50%;
    border: 2px solid #fff;
    pointer-events: none;
    z-index: 5;
}

#ht-cart-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 99998; display: none; }
#ht-cart-overlay.open { display: block; }

#ht-cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 460px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    box-shadow: -4px 0 24px rgba(0, 0, 0, .15);
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
}
#ht-cart-panel.open { transform: translateX(0); }

.htp-head { display: flex; justify-content: flex-end; padding: 14px 18px 0; }
.htp-close { background: none; border: none; font-size: 28px; line-height: 1; cursor: pointer; color: #333; }
.htp-body { flex: 1; overflow: auto; padding: 6px 24px 28px; }

.htmc-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #eee; }
.htmc-item img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.htmc-info { flex: 1; min-width: 0; }
.htmc-nome { font-weight: 600; margin-bottom: 4px; }
.htmc-linha { color: #555; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.htmc-qtd { width: 54px; padding: 5px; text-align: center; border: 1px solid #ccc; border-radius: 4px; }
.htmc-rem { flex: none; cursor: pointer; background: none; border: none; color: #e53935; font-size: 22px; line-height: 1; }
.htmc-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; padding: 16px 0; }
.htmc-vazio { padding: 48px 16px; text-align: center; color: #555; font-size: 17px; }
.htmc-fin {
    display: block;
    text-align: center;
    background: #4a89dc;
    color: #fff !important;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
}
.htmc-fin:hover { opacity: .92; }
