/* WC Carrinho de Alta Conversão - estilos principais */

.wccc-floating-cart-wrapper {
    position: relative;
    z-index: 9998;
}

.wccc-floating-cart-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    background: #1e88e5;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    cursor: pointer;
}

.wccc-floating-cart-button .wccc-cart-icon {
    font-size: 18px;
}

.wccc-floating-cart-button .wccc-cart-count {
    background: #e53935;
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
}

.wccc-floating-cart-button .wccc-cart-total {
    font-size: 13px;
}

/* Drawer / mini-carrinho */
.wccc-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9997;
}

.wccc-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 100%;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.28s ease-out;
    z-index: 9998;
    display: flex;
    flex-direction: column;
}

.wccc-cart-drawer.is-open {
    transform: translateX(0);
}

.wccc-cart-header {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wccc-cart-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.wccc-cart-close {
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.wccc-cart-body {
    padding: 12px 16px;
    overflow-y: auto;
    flex: 1;
}

.wccc-cart-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wccc-cart-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
    position: relative;
}

.wccc-cart-item-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.wccc-cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wccc-cart-item-name {
    font-size: 14px;
    font-weight: 600;
}

.wccc-cart-item-meta {
    font-size: 13px;
    color: #666;
}

.wccc-cart-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.wccc-qty-btn {
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    background: #f0f0f0;
}

.wccc-qty-input {
    width: 46px;
    text-align: center;
    font-size: 13px;
}

.wccc-cart-item-subtotal {
    font-size: 13px;
    margin-top: 4px;
}

.wccc-cart-item-remove {
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #999;
}

/* Footer */
.wccc-cart-footer {
    padding: 12px 16px 16px 16px;
    border-top: 1px solid #f0f0f0;
}

.wccc-cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.wccc-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wccc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.wccc-btn-primary {
    background: #1e88e5;
    color: #fff;
}

.wccc-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

/* Toast */
.wccc-toast {
    position: fixed;
    z-index: 9999;
    bottom: 20px;
    right: 20px;
    max-width: 320px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    padding: 10px 12px;
}

.wccc-toast-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wccc-toast-icon {
    font-size: 20px;
}

.wccc-toast-title {
    font-size: 14px;
    font-weight: 600;
}

.wccc-toast-product {
    font-size: 13px;
    color: #555;
}

.wccc-toast-close {
    margin-left: auto;
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

/* Mobile drawer adaptação */
@media (max-width: 768px) {
    .wccc-cart-drawer {
        width: 100%;
        height: 80%;
        bottom: 0;
        top: auto;
        right: 0;
        transform: translateY(100%);
    }

    .wccc-cart-drawer.is-open {
        transform: translateY(0);
    }

    .wccc-cart-overlay {
        z-index: 9997;
    }

    .wccc-toast {
        right: 10px;
        left: 10px;
        bottom: 10px;
    }
}
