/* Public Quote Cart Styles */
.nova-b2b-cart-icon {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.nova-public-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ef4444;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

.nova-public-cart-badge[data-counter="0"] {
    display: none;
}

/* Fly-to-cart Animation */
.nova-fly-item {
    position: fixed;
    z-index: 9999;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Drawer & Overlay */
.nova-public-drawer-overlay,
.nova-public-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}

.nova-public-drawer-overlay.active,
.nova-public-modal-overlay.active {
    opacity: 1; visibility: visible;
}

.nova-public-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 400px; max-width: 100%;
    background: #fff;
    z-index: 100000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
}

.nova-public-drawer.active {
    transform: translateX(0);
}

/* Drawer contents */
.nova-drawer-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex; justify-content: space-between; align-items: center;
}
.nova-drawer-header h3 { margin: 0; font-size: 18px; }
.nova-icon-btn {
    background: none; border: none; cursor: pointer; color: #6b7280;
    display: flex; align-items: center; justify-content: center;
}
.nova-icon-btn:hover { color: #111; }

.nova-drawer-body {
    flex: 1; overflow-y: auto; padding: 20px;
}

.nova-drawer-footer {
    padding: 20px; border-top: 1px solid #e5e7eb; background: #f9fafb;
}

.nova-cart-item {
    display: flex; gap: 15px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #e5e7eb;
}
.nova-cart-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.nova-cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.nova-cart-item-info { flex: 1; }
.nova-cart-item-title { font-weight: bold; font-size: 14px; margin-bottom: 5px; }
.nova-cart-item-controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.nova-cart-item-controls input { width: 60px; padding: 5px; border: 1px solid #d1d5db; border-radius: 4px; text-align: center; }
.nova-cart-item-remove { color: #ef4444; font-size: 12px; cursor: pointer; text-decoration: underline; background: none; border: none; padding: 0; }

.nova-btn {
    display: inline-flex; align-items: center; padding: 10px 20px;
    border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.2s;
    border: 1px solid #e5e7eb; background: #fff; color: #111;
}
.nova-btn-primary { background: #111; color: #fff; border-color: #111; width: 100%; justify-content: center; }
.nova-btn-primary:hover { background: #333; }

/* Modal */
.nova-modal-content {
    background: #fff; margin: auto; border-radius: 12px;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 90%; max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.nova-modal-header { padding: 20px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
.nova-modal-body { padding: 20px; }
.nova-input { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-family: inherit; box-sizing: border-box; }
.nova-input:focus { border-color: #111; outline: none; }
